|
@@ -8,7 +8,7 @@
|
8
|
8
|
<el-form-item style="padding-left:1%;" label="工单号:">
|
9
|
9
|
<span>{{listQuery.id}}</span>
|
10
|
10
|
</el-form-item>
|
11
|
|
- <el-form-item style='padding-left:230px' label="工单类型:">
|
|
11
|
+ <el-form-item style='margin-left:330px' label="工单类型:">
|
12
|
12
|
<span v-if="listQuery.type==='1'">{{'投诉'}}</span>
|
13
|
13
|
<span v-if="listQuery.type==='2'">报修
|
14
|
14
|
<span v-if="listQuery.repairType==='0'">{{'(公共区域)'}}</span>
|
|
@@ -17,14 +17,14 @@
|
17
|
17
|
</span>
|
18
|
18
|
<span v-if="listQuery.type==='3'">{{'联系物业'}}</span>
|
19
|
19
|
</el-form-item>
|
20
|
|
- <el-form-item style='padding-left:230px' label="发起时间:">
|
|
20
|
+ <el-form-item style='margin-left:330px' label="发起时间:">
|
21
|
21
|
<span>{{ formatDate(listQuery.createDate) }}</span>
|
22
|
22
|
<!-- <span>{{ listQuery.createDate }}</span> -->
|
23
|
23
|
</el-form-item>
|
24
|
|
- <el-form-item style='padding-left:230px' label="发起人:">
|
|
24
|
+ <el-form-item style='margin-left:330px' label="发起人:">
|
25
|
25
|
<span>{{listQuery.createUserNmae}}</span>
|
26
|
26
|
</el-form-item>
|
27
|
|
- <el-form-item style='padding-left:200px' label="发起人联系方式:">
|
|
27
|
+ <el-form-item style='margin-left:300px' label="发起人联系方式:">
|
28
|
28
|
<span>{{listQuery.loginName}}</span>
|
29
|
29
|
</el-form-item>
|
30
|
30
|
</div>
|
|
@@ -58,18 +58,18 @@
|
58
|
58
|
</template>
|
59
|
59
|
</div>
|
60
|
60
|
|
61
|
|
- <hr width="100%"/>
|
|
61
|
+ <hr width="101%"/>
|
62
|
62
|
<div class="stepComponent" >
|
63
|
63
|
<div class="stepsTitle">
|
64
|
64
|
<div style="float:left;width:2px;height:20px; background:#219AFF;"></div>
|
65
|
65
|
<span> 沟通记录</span>
|
66
|
66
|
</div>
|
67
|
67
|
<!-- 一下状态是数据库的所有状态,如需要加状态,页面得加相同状态的div -->
|
68
|
|
- <div class="approvalProcess" >
|
|
68
|
+ <div class="approvalProcess">
|
69
|
69
|
<el-steps :active="7" finish-status="success" direction="vertical">
|
70
|
70
|
<el-step :title="item.statusName+'_________'+formatDate(item.createDate)" v-for="item in approvalProcessProject">
|
71
|
71
|
<template slot="description">
|
72
|
|
- <div class="step-row">
|
|
72
|
+ <div class="step-row" >
|
73
|
73
|
<tr v-if="item.status - 0 === 5"><td>评价:</td><td><el-rate
|
74
|
74
|
v-model="listQuery.score"
|
75
|
75
|
disabled
|
|
@@ -78,37 +78,28 @@
|
78
|
78
|
score-template="{value}">
|
79
|
79
|
</el-rate></td></tr>
|
80
|
80
|
<tr v-if="item.status - 0 === 5"><td>评语:</td><td>{{listQuery.comment}}</td></tr>
|
81
|
|
- <!-- <div v-if="item.status - 0 === 5" style="float:left">评价<el-rate
|
82
|
|
- v-model="value5"
|
83
|
|
- disabled
|
84
|
|
- show-score
|
85
|
|
- text-color="#ff9900"
|
86
|
|
- score-template="{value}">
|
87
|
|
- </el-rate>
|
88
|
|
- </div> -->
|
89
|
81
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="processing_content" v-for="itemContent in item.statusContent" >
|
90
|
82
|
<tr>
|
91
|
83
|
<td>
|
92
|
84
|
<div class="processing_content_detail" style="float:left;width:70%">
|
93
|
|
- <span>{{itemContent.userName}}:{{itemContent.content}}
|
|
85
|
+ <span>{{itemContent.userName}}:{{itemContent.content}}
|
94
|
86
|
<span style="color:#219AFF"></span>
|
95
|
87
|
</span>
|
96
|
|
- </div>
|
97
|
|
- <div class="processing_content_detail" style="float:right;"><span ><i class="el-icon-time"></i>{{formatDate(itemContent.createDate)}}</span> </div>
|
|
88
|
+ </div>
|
98
|
89
|
</td>
|
99
|
90
|
</tr>
|
100
|
91
|
<tr>
|
101
|
92
|
<td>
|
102
|
|
- <div class="processing_content_detail" style="float:left;width:70%">
|
|
93
|
+ <div class="processing_content_detail" style="float:left;width:90%">
|
103
|
94
|
<div style="float:left;width: 2px;height: 20px; background:#C7D4E9;margin-left:10px;margin-right:10px"></div>
|
104
|
95
|
<!-- <img :src="contentImgURL.imageUrl" v-for="contentImgURL in itemContent.imgURL" preview preview-text="描述" width="200" style="margin:5px;"> -->
|
105
|
|
- <img v-for="contentImgURL in itemContent.imgURL" :src="contentImgURL.imageUrl" preview width="100" height="100" style="margin:5px;">
|
106
|
|
- </div>
|
|
96
|
+ <img v-for="contentImgURL in itemContent.imgURL" :src="contentImgURL.imageUrl" preview width="100" height="100" style="margin:5px;">
|
|
97
|
+ <div><span ><i class="el-icon-time"></i>{{formatDate(itemContent.createDate)}}</span> </div>
|
|
98
|
+ <div> <hr style="height:1px;border:none;border-top:1px solid #FF8888;" width="200%"/></div>
|
|
99
|
+ </div>
|
107
|
100
|
</td>
|
108
|
101
|
</tr>
|
109
|
|
- </table>
|
110
|
|
-
|
111
|
|
-
|
|
102
|
+ </table>
|
112
|
103
|
</div>
|
113
|
104
|
</template>
|
114
|
105
|
</el-step>
|
|
@@ -145,7 +136,7 @@
|
145
|
136
|
</div>
|
146
|
137
|
<div v-if="listQuery.status==='3'">
|
147
|
138
|
<div>
|
148
|
|
- <span>流程操作(压缩测试)</span>
|
|
139
|
+ <span>流程操作</span>
|
149
|
140
|
</div>
|
150
|
141
|
<br>
|
151
|
142
|
<div>
|
|
@@ -168,23 +159,6 @@
|
168
|
159
|
<img :src="dialogImageUrl" width="100%" alt="">
|
169
|
160
|
</el-dialog>
|
170
|
161
|
</el-form-item>
|
171
|
|
- <!-- <el-form-item label="图片附件">
|
172
|
|
- <el-upload
|
173
|
|
- :limit="8"
|
174
|
|
- :on-preview="handlePictureCardPreviewIO"
|
175
|
|
- :on-remove="handleRemoveIO"
|
176
|
|
- :on-success="handleSuccessContentImgIO"
|
177
|
|
- :file-list="listQuery.imgIO"
|
178
|
|
- :show-file-list="Ass"
|
179
|
|
- name="uploadFiles"
|
180
|
|
- action="http://106.14.20.193:8086/property-api/uploadimage"
|
181
|
|
- list-type="picture-card">
|
182
|
|
- <i class="el-icon-plus"/>
|
183
|
|
- </el-upload>
|
184
|
|
- <el-dialog :visible.sync="dialogVisible">
|
185
|
|
- <img :src="dialogImageUrlIO" width="100%" alt="">
|
186
|
|
- </el-dialog>
|
187
|
|
- </el-form-item> -->
|
188
|
162
|
<el-button type="primary" @click="succeedClick">提交</el-button>
|
189
|
163
|
</div>
|
190
|
164
|
</div>
|
|
@@ -210,7 +184,6 @@ import Qs from 'qs'
|
210
|
184
|
export default {
|
211
|
185
|
data() {
|
212
|
186
|
return {
|
213
|
|
- imgUploadUrl: 'http://106.14.20.193:8086/property-api/uploadimage',
|
214
|
187
|
listQuery: {
|
215
|
188
|
id: '',
|
216
|
189
|
userName: '',
|
|
@@ -273,18 +246,16 @@ export default {
|
273
|
246
|
const resDate=res.data
|
274
|
247
|
this.listQuery=resDate
|
275
|
248
|
this.approvalProcessProject = resDate.recordList
|
276
|
|
- // for(let i = 0;i<resDate.recordListzz;i++){
|
277
|
|
- // this.imgURL=resDate.recordList[i]
|
278
|
|
- // }
|
279
|
|
- // console.log('this.imgURL',this.imgURL)
|
280
|
249
|
}).catch(() => {
|
281
|
250
|
console.log('error TicketEdit')
|
282
|
251
|
})
|
283
|
252
|
},
|
|
253
|
+ //对话的图片控件
|
284
|
254
|
handlePictureCardPreview(file) { // 配图文件列表中已上传的文件时的钩子
|
285
|
255
|
this.dialogImageUrl = file.url
|
286
|
256
|
this.dialogVisible = true
|
287
|
257
|
},
|
|
258
|
+ //对话的图片控件
|
288
|
259
|
handleRemove(file, fileList) { // 配图移除时
|
289
|
260
|
this.contentImgAA = []
|
290
|
261
|
for (let i = 0; i < fileList.length; i++) {
|
|
@@ -292,16 +263,18 @@ export default {
|
292
|
263
|
}
|
293
|
264
|
console.log('file',file, fileList)
|
294
|
265
|
},
|
|
266
|
+ //对话的图片控件
|
295
|
267
|
handleSuccessContentImg(response, file, fileList) { // 配图上传成功时回调
|
296
|
268
|
const resImg = response.data[0]
|
297
|
269
|
console.log('resImg',resImg)
|
298
|
270
|
this.contentImgAA.push(resImg)
|
299
|
271
|
},
|
300
|
|
- //流程
|
301
|
|
- handlePictureCardPreviewIO(file) { // 流程
|
|
272
|
+ //流程的图片
|
|
273
|
+ handlePictureCardPreviewIO(file) {
|
302
|
274
|
this.dialogImageUrlIO = file.url
|
303
|
275
|
this.dialogVisible = true
|
304
|
276
|
},
|
|
277
|
+ //流程的图片
|
305
|
278
|
handleRemoveIO(file, fileList) { // 流程配图移除时
|
306
|
279
|
this.contentImgIO = []
|
307
|
280
|
for (let i = 0; i < fileList.length; i++) {
|
|
@@ -309,6 +282,7 @@ export default {
|
309
|
282
|
}
|
310
|
283
|
console.log('file',file, fileList)
|
311
|
284
|
},
|
|
285
|
+ //流程的图片
|
312
|
286
|
handleSuccessContentImgIO(response, file, fileList) { // 流程配图上传成功时回调
|
313
|
287
|
const resImg = response.data[0]
|
314
|
288
|
this.contentImgIO.push(resImg)
|
|
@@ -416,7 +390,7 @@ export default {
|
416
|
390
|
}
|
417
|
391
|
return new Blob([ia], { type: mimeString });
|
418
|
392
|
},
|
419
|
|
-
|
|
393
|
+ // 时间处理
|
420
|
394
|
formatDate(val) {
|
421
|
395
|
var value = new Date(val)
|
422
|
396
|
var year = value.getFullYear()
|
|
@@ -444,16 +418,13 @@ export default {
|
444
|
418
|
loading.close()
|
445
|
419
|
return
|
446
|
420
|
}
|
447
|
|
- // console.log("contentImg",this.listQuery.contentImg)
|
448
|
|
- console.log('this.listQuery.img',this.listQuery.img)
|
449
|
|
- console.log('sss',this.listQuery.textContent)
|
450
|
|
- this.listQuery.img=this.contentImgAA
|
451
|
|
- this.$store.dispatch('AddRecordComment', this.listQuery,).then((res) => {
|
452
|
|
- this.Ass=false
|
453
|
|
- this.contentImgAA=[]
|
454
|
|
- this.dataQuery()
|
455
|
|
- this.Ass=true
|
456
|
|
- loading.close()
|
|
421
|
+ this.listQuery.img=this.contentImgAA
|
|
422
|
+ this.$store.dispatch('AddRecordComment', this.listQuery,).then((res) => {
|
|
423
|
+ this.Ass=false
|
|
424
|
+ this.contentImgAA=[]
|
|
425
|
+ this.dataQuery()
|
|
426
|
+ this.Ass=true
|
|
427
|
+ loading.close()
|
457
|
428
|
}).catch(() => {
|
458
|
429
|
console.log('error addRecordComment')
|
459
|
430
|
})
|
|
@@ -470,15 +441,13 @@ export default {
|
470
|
441
|
spinner: 'el-icon-loading',
|
471
|
442
|
background: 'rgba(0, 0, 0, 0.7)'
|
472
|
443
|
})
|
473
|
|
- console.log('sss',this.listQuery.textContent)
|
474
|
444
|
this.$store.dispatch('AddRecord', this.listQuery).then((res) => {
|
475
|
445
|
this.dataQuery()
|
476
|
446
|
loading.close()
|
477
|
447
|
this.$message({
|
478
|
448
|
message: '分配成功',
|
479
|
449
|
type: 'success'
|
480
|
|
- })
|
481
|
|
-
|
|
450
|
+ })
|
482
|
451
|
}).catch(() => {
|
483
|
452
|
console.log('error AddRecord')
|
484
|
453
|
})
|
|
@@ -555,7 +524,6 @@ export default {
|
555
|
524
|
</script>
|
556
|
525
|
<style scoped>
|
557
|
526
|
.stepComponent{
|
558
|
|
-
|
559
|
527
|
width: 100%-20px;
|
560
|
528
|
padding: 10px 10px 10px 10px;
|
561
|
529
|
margin: 10px 10px 10px 10px;
|
|
@@ -566,14 +534,14 @@ export default {
|
566
|
534
|
.approvalProcess{
|
567
|
535
|
color: #9EADC4;
|
568
|
536
|
font-size: 14px;
|
569
|
|
- /* width: 100%; */
|
|
537
|
+ width: 100%;
|
570
|
538
|
margin-left:20px;
|
571
|
539
|
margin-right:0px;
|
572
|
540
|
margin-top:10px;
|
573
|
541
|
}
|
574
|
|
- .processing_content{
|
|
542
|
+ /* .processing_content{
|
575
|
543
|
background-color: #D9E5F9;
|
576
|
|
- }
|
|
544
|
+ } */
|
577
|
545
|
.processing_content_detail{
|
578
|
546
|
margin-left: 10px;
|
579
|
547
|
margin-top: 3.5px;
|
|
@@ -582,7 +550,7 @@ export default {
|
582
|
550
|
display:inline-block;
|
583
|
551
|
}
|
584
|
552
|
.step-row{
|
585
|
|
- min-width:500px;
|
|
553
|
+ min-width:400px;
|
586
|
554
|
margin-bottom:12px;
|
587
|
555
|
margin-top:12px;
|
588
|
556
|
}
|
|
@@ -594,12 +562,15 @@ export default {
|
594
|
562
|
float:right;width:218px;
|
595
|
563
|
}
|
596
|
564
|
.textarea-inherit {
|
597
|
|
- width: 90%;
|
|
565
|
+ width: 100%;
|
598
|
566
|
overflow: auto;
|
599
|
567
|
word-break: break-all;
|
600
|
568
|
}
|
601
|
569
|
.select-inherit {
|
602
|
|
- width: 90%;
|
|
570
|
+ width: 100%;
|
603
|
571
|
|
604
|
572
|
}
|
|
573
|
+ .table-finally{
|
|
574
|
+ padding-right: 10%;
|
|
575
|
+ }
|
605
|
576
|
</style>
|