weiximei 6 年前
父节点
当前提交
370fd428bf
共有 1 个文件被更改,包括 41 次插入70 次删除
  1. 41
    70
      VUECODE/smart-property-manage/src/views/ticket/details.vue

+ 41
- 70
VUECODE/smart-property-manage/src/views/ticket/details.vue 查看文件

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