Selaa lähdekoodia

Merge branch 'debelop' of http://39.164.159.192:3000/zhoufan/RMYY_CallCenter_UI into debelop

scholar-wei 3 vuotta sitten
vanhempi
commit
35a7d51918

+ 1 - 1
CallCenterWeb.UI/RMYY/src/api/orderManagement/orderList.js

@@ -79,7 +79,7 @@ export function updateSchedulingOrder(data) {
79 79
   return request({
80 80
     url: "Scheduling/UpdateSchedulingWorkOrder",
81 81
     method: "post",
82
-    data
82
+    data: params
83 83
   });
84 84
 }
85 85
 // 综合调度工单删除

File diff suppressed because it is too large
+ 400 - 259
CallCenterWeb.UI/RMYY/src/views/comDispatch/components/addOrEditDispatch.vue


+ 7 - 5
CallCenterWeb.UI/RMYY/src/views/layout/Layout.vue

@@ -35,6 +35,7 @@ export default {
35 35
   data() {
36 36
     return {
37 37
       recordingurl: require("@/assets/mp3/song.mp3"),
38
+      timer: "",
38 39
     };
39 40
   },
40 41
   computed: {
@@ -49,18 +50,19 @@ export default {
49 50
     },
50 51
   },
51 52
   mounted() {
52
-    setInterval(() => {
53
-      this.orderMessage(this.$el.offsetWidth, this.$el.offsetHeight);
54
-    }, 60000);
55
-    // this.playAudio(1);
53
+    this.setIntervalTimer();
56 54
   },
57 55
   methods: {
56
+    setIntervalTimer() {
57
+      this.timer = setInterval(() => {
58
+        this.orderMessage(this.$el.offsetWidth, this.$el.offsetHeight);
59
+      }, 60000);
60
+    },
58 61
     orderMessage(left, top) {
59 62
       getMsg().then((response) => {
60 63
         if (response.state == "success") {
61 64
           const res = response.data[0];
62 65
           if (res && res.length != 0) {
63
-            this.$layer.closeAll();
64 66
             this.$layer.iframe({
65 67
               content: {
66 68
                 content: orderMessage, // 传递的组件对象

+ 24 - 4
CallCenterWeb.UI/RMYY/src/views/layout/components/Navbar/orderMessage.vue

@@ -10,6 +10,7 @@
10 10
 
11 11
           <el-button
12 12
             class="unread"
13
+            v-if="buttonFlag"
13 14
             @click="
14 15
               handleChange(
15 16
                 topNoticeData.SMS_Id,
@@ -29,8 +30,15 @@
29 30
 <script>
30 31
 // getReadData
31 32
 import { getMsg, updateState } from "@/api/commonAPI";
32
-import detail from "@/views/orderManage/components/orderDetail.vue";
33
+// 咨询
33 34
 import askDetail from "@/views/orderManage/components/askdetail.vue";
35
+// 保修
36
+import detail from "@/views/orderManage/components/orderDetail.vue";
37
+// 车辆调度
38
+import cardetail from "@/views/orderManage/components/cardetail.vue";
39
+// 综合调度
40
+import dispatchDetail from "@/views/comDispatch/components/dispatchdetail.vue";
41
+
34 42
 export default {
35 43
   name: "orderMessage",
36 44
   props: {
@@ -42,6 +50,7 @@ export default {
42 50
   data() {
43 51
     return {
44 52
       loading: false,
53
+      buttonFlag: true,
45 54
       topNoticeData: {}, //顶部消息数据
46 55
     };
47 56
   },
@@ -59,6 +68,9 @@ export default {
59 68
           const res = response.data[0];
60 69
           if (res && res.length != 0) {
61 70
             this.topNoticeData = res;
71
+            if (res.SMS_Type) {
72
+              this.buttonFlag = true;
73
+            }
62 74
           }
63 75
         }
64 76
       });
@@ -67,11 +79,19 @@ export default {
67 79
     getOrder(ids, orderId, orderType) {
68 80
       let orderDetail;
69 81
       if (orderType === 0) {
82
+        //咨询
70 83
         orderDetail = askDetail;
71
-      }
72
-      if (orderType === 1) {
84
+      } else if (orderType === 1) {
85
+        //故障
73 86
         orderDetail = detail;
87
+      } else if (orderType === 2) {
88
+        orderDetail = cardetail;
89
+        //车辆
90
+      } else if (orderType === 3) {
91
+        orderDetail = dispatchDetail;
92
+        //综合
74 93
       }
94
+      //司机 orderType === 4
75 95
       const params = {
76 96
         ids: ids,
77 97
         state: 1,
@@ -81,6 +101,7 @@ export default {
81 101
           this.loading = false;
82 102
           if (response.state.toLowerCase() === "success") {
83 103
             this.$parent.$layer.close(this.layerid);
104
+            this.$parent.setIntervalTimer();
84 105
             this.$layer.iframe({
85 106
               content: {
86 107
                 content: orderDetail, // 传递的组件对象
@@ -107,7 +128,6 @@ export default {
107 128
     handleChange(ids, orderId, orderType) {
108 129
       if (ids) {
109 130
         this.getOrder(ids, orderId, orderType);
110
-        console.log("123");
111 131
       }
112 132
     },
113 133
   },

+ 278 - 249
CallCenterWeb.UI/RMYY/src/views/orderManage/components/askdetail.vue

@@ -5,9 +5,13 @@
5 5
         <el-card shadow="hover">
6 6
           <el-col :md="21">
7 7
             <el-col :md="18">
8
-              <h1 class="title" style="display: inline-block;">
9
-                <svg-icon class="title_icon" icon-class="hongqi" />工单编号:{{ orderDetailData.F_WorkOrderCode }}
10
-                <span v-if="orderDetailData.StateName" class="wostate">{{ orderDetailData.StateName }}</span>
8
+              <h1 class="title" style="display: inline-block">
9
+                <svg-icon class="title_icon" icon-class="hongqi" />工单编号:{{
10
+                  orderDetailData.F_WorkOrderCode
11
+                }}
12
+                <span v-if="orderDetailData.StateName" class="wostate">{{
13
+                  orderDetailData.StateName
14
+                }}</span>
11 15
               </h1>
12 16
             </el-col>
13 17
           </el-col>
@@ -19,7 +23,7 @@
19 23
                 <th>工单类别:</th>
20 24
                 <td>{{ orderDetailData.F_TypeName2 }}</td>
21 25
                 <th>超时时限:</th>
22
-                <td>{{ orderDetailData.GapTime || '-' }}</td>
26
+                <td>{{ orderDetailData.GapTime || "-" }}</td>
23 27
               </tr>
24 28
               <tr>
25 29
                 <th>姓名:</th>
@@ -62,7 +66,9 @@
62 66
               </tr>
63 67
               <tr v-if="showAppointmentTime">
64 68
                 <th>预约时间:</th>
65
-                <td colspan="5">{{ orderDetailData.F_AppointmentTime || '-' }}</td>
69
+                <td colspan="5">
70
+                  {{ orderDetailData.F_AppointmentTime || "-" }}
71
+                </td>
66 72
               </tr>
67 73
               <tr>
68 74
                 <th>工单内容:</th>
@@ -82,20 +88,48 @@
82 88
                 <table class="tabdept" cellspacing="0" cellpadding="0">
83 89
                   <tr>
84 90
                     <th>处理意见:</th>
85
-                    <td colspan="5">{{ orderDetailData.F_DealOpinions?orderDetailData.F_DealOpinions:'-' }}</td>
91
+                    <td colspan="5">
92
+                      {{
93
+                        orderDetailData.F_DealOpinions
94
+                          ? orderDetailData.F_DealOpinions
95
+                          : "-"
96
+                      }}
97
+                    </td>
86 98
                   </tr>
87 99
                   <tr>
88 100
                     <th>处理方式:</th>
89
-                    <td colspan="5">{{ orderDetailData.F_DealType?orderDetailData.F_DealType:'-' }}</td>
101
+                    <td colspan="5">
102
+                      {{
103
+                        orderDetailData.F_DealType
104
+                          ? orderDetailData.F_DealType
105
+                          : "-"
106
+                      }}
107
+                    </td>
90 108
                   </tr>
91 109
                 </table>
92 110
               </el-col>
93 111
             </el-tab-pane>
94 112
             <el-tab-pane label="工单流程" name="2">
95
-              <el-table :data="workOrderCirculationList" border style="width: 100%">
96
-                <el-table-column prop="F_CreateUser" label="操作人" align="center"/>
97
-                <el-table-column prop="F_OptContent" label="内容" align="center"/>
98
-                <el-table-column prop="F_CreateTime" label="时间" align="center"/>
113
+              <el-table
114
+                :data="workOrderCirculationList"
115
+                border
116
+                style="width: 100%"
117
+              >
118
+                <el-table-column
119
+                  prop="F_CreateUser"
120
+                  label="操作人"
121
+                  align="center"
122
+                />
123
+                <el-table-column
124
+                  prop="F_OptContent"
125
+                  label="内容"
126
+                  align="center"
127
+                />
128
+                <el-table-column
129
+                  prop="F_CreateTime"
130
+                  label="时间"
131
+                  align="center"
132
+                />
99 133
               </el-table>
100 134
             </el-tab-pane>
101 135
           </el-tabs>
@@ -106,33 +140,28 @@
106 140
 </template>
107 141
 
108 142
 <script>
109
-import {
110
-  mapGetters
111
-} from 'vuex'
112
-import {
113
-  GetOrderDetail,
114
-  GetOrderItem
115
-} from '@/api/orderManagement/orderList'
116
-import Pagination from '@/components/context/Pagination' // 对el-pagination 二次封装
143
+import { mapGetters } from "vuex";
144
+import { GetOrderDetail, GetOrderItem } from "@/api/orderManagement/orderList";
145
+import Pagination from "@/components/context/Pagination"; // 对el-pagination 二次封装
117 146
 
118 147
 export default {
119
-  name: 'AskDetail',
148
+  name: "AskDetail",
120 149
   components: {
121
-    Pagination
150
+    Pagination,
122 151
   },
123 152
   props: {
124 153
     rowid: {
125 154
       type: String,
126
-      default: '0'
155
+      default: "0",
127 156
     },
128 157
     layerid: {
129 158
       type: String,
130
-      default: ''
131
-    }
159
+      default: "",
160
+    },
132 161
   },
133 162
   data() {
134 163
     return {
135
-      activeName: '1',
164
+      activeName: "1",
136 165
       ChatList: [], // 备注详情列表
137 166
       isChatList: false, // 备注列表是否展示
138 167
       // isFamily: false,
@@ -140,314 +169,314 @@ export default {
140 169
       showAppointmentTime: false,
141 170
       // isConduit: false,
142 171
       orderDetailData: {
143
-        F_CallID: '',
144
-        F_WorkOrderCode: '',
145
-        F_ID: '',
146
-        F_Source: '电话', // 业务类别
147
-        F_Type1: '', // 工单类别
148
-        F_TypeName1: '', // 工单类别
149
-        F_Type2: '', // 工单子类
150
-        F_TypeName2: '', // 工单子类
151
-        F_Type3: '', // 工单三类
152
-        F_TypeName3: '', // 工单三类
153
-        F_Customer: '', // 姓名
154
-        F_Sex: '0', // 性别
155
-        F_Phon: '', // 电话
156
-        F_CusAddress: '', // 家庭住址
157
-        F_IdCard: '', // 身份证号
158
-        F_ServiceItems: '', // 服务项目
159
-        F_Address: '', // 地区
160
-        F_FirstCheckHospital: '', // 首次检查医院
161
-        F_NoduleSize: '', // 肺结节大小
162
-        F_FirstFindTime: '', // 首次发现肺结节时间
163
-        F_Urgency: '0', // 紧急程度
164
-        F_Cathetertype: '', // 置管类型
165
-        F_Catheterdept: '', // 置管科室
166
-        F_Cathetertime: '', // 置管时间
167
-        F_BedNum: '', // 床号
168
-        F_InpatientNum: '', // 住院号
169
-        opt: '', // 处理方式
170
-        cont: '',
171
-        F_WorkOrderContents: '', // 工单内容
172
-        F_DealOpinions: '' // 处理意见
172
+        F_CallID: "",
173
+        F_WorkOrderCode: "",
174
+        F_ID: "",
175
+        F_Source: "电话", // 业务类别
176
+        F_Type1: "", // 工单类别
177
+        F_TypeName1: "", // 工单类别
178
+        F_Type2: "", // 工单子类
179
+        F_TypeName2: "", // 工单子类
180
+        F_Type3: "", // 工单三类
181
+        F_TypeName3: "", // 工单三类
182
+        F_Customer: "", // 姓名
183
+        F_Sex: "0", // 性别
184
+        F_Phon: "", // 电话
185
+        F_CusAddress: "", // 家庭住址
186
+        F_IdCard: "", // 身份证号
187
+        F_ServiceItems: "", // 服务项目
188
+        F_Address: "", // 地区
189
+        F_FirstCheckHospital: "", // 首次检查医院
190
+        F_NoduleSize: "", // 肺结节大小
191
+        F_FirstFindTime: "", // 首次发现肺结节时间
192
+        F_Urgency: "0", // 紧急程度
193
+        F_Cathetertype: "", // 置管类型
194
+        F_Catheterdept: "", // 置管科室
195
+        F_Cathetertime: "", // 置管时间
196
+        F_BedNum: "", // 床号
197
+        F_InpatientNum: "", // 住院号
198
+        opt: "", // 处理方式
199
+        cont: "",
200
+        F_WorkOrderContents: "", // 工单内容
201
+        F_DealOpinions: "", // 处理意见
173 202
       },
174 203
       pageParams: {
175 204
         pageindex: 1, // 当前第几页
176 205
         pagesize: 5, // 每页几条数据
177
-        total: 0 // 总共多少数据
206
+        total: 0, // 总共多少数据
178 207
       },
179
-      workOrderCirculationList: [] // 工单流转
180
-    }
208
+      workOrderCirculationList: [], // 工单流转
209
+    };
181 210
   },
182 211
   computed: {
183
-    ...mapGetters(['rolecode'])
212
+    ...mapGetters(["rolecode"]),
184 213
   },
185 214
   created() {
186
-    this.getDetail('0')
187
-    this.getDetail('1')
215
+    this.getDetail("0");
216
+    this.getDetail("1");
188 217
   },
189 218
   methods: {
190 219
     handleClick(tab, event) {
191
-      console.log(tab, event)
220
+      console.log(tab, event);
192 221
     },
193 222
     // 详情
194 223
     getDetail(num) {
195 224
       const params = {
196 225
         WorkOrderCode: this.rowid,
197
-        type: num
198
-      }
226
+        type: num,
227
+      };
199 228
       GetOrderDetail(params).then((response) => {
200
-        if (num === '1') {
201
-          this.workOrderCirculationList = response.data
229
+        if (num === "1") {
230
+          this.workOrderCirculationList = response.data;
202 231
         } else {
203
-          const res = response.data[0]
204
-          this.orderDetailData = res
205
-          const thisTypeInfo = this.$store.getters.workTypeMap[parseInt(res.F_type2)]
206
-          if (thisTypeInfo.tag === 'ywzx_zjyy') {
207
-            this.isSpecial = true
232
+          const res = response.data[0];
233
+          this.orderDetailData = res;
234
+          const thisTypeInfo =
235
+            this.$store.getters.workTypeMap[parseInt(res.F_type2)];
236
+          if (thisTypeInfo.tag === "ywzx_zjyy") {
237
+            this.isSpecial = true;
208 238
           }
209 239
 
210 240
           // 家庭预约类服务内容一致,所以需要判断一下二级类别是否是家庭预约 ywzx_jtyy
211
-          const twoTypeInfo = this.$store.getters.workTypeMap[parseInt(thisTypeInfo.ids[1])]
212
-          if (twoTypeInfo && twoTypeInfo.tag === 'ywzx_jtyy') {
213
-            this.showAppointmentTime = true
241
+          const twoTypeInfo =
242
+            this.$store.getters.workTypeMap[parseInt(thisTypeInfo.ids[1])];
243
+          if (twoTypeInfo && twoTypeInfo.tag === "ywzx_jtyy") {
244
+            this.showAppointmentTime = true;
214 245
           }
215 246
 
216
-          this.orderDetailData.F_TypeName2 = this.$store.getters.workTypeMap[parseInt(res.F_type2)]
217
-            .text // 工单子类
218
-          this.orderDetailData.F_Sex = res.F_Sex // 性别
247
+          this.orderDetailData.F_TypeName2 =
248
+            this.$store.getters.workTypeMap[parseInt(res.F_type2)].text; // 工单子类
249
+          this.orderDetailData.F_Sex = res.F_Sex; // 性别
219 250
           if (res.F_Sex === 0) {
220
-            this.orderDetailData.F_Sex = '男'
251
+            this.orderDetailData.F_Sex = "男";
221 252
           } else if (res.F_Sex === 1) {
222
-            this.orderDetailData.F_Sex = '女'
253
+            this.orderDetailData.F_Sex = "女";
223 254
           }
224
-          this.orderDetailData.F_Urgency = res.F_Urgency // 紧急程度
255
+          this.orderDetailData.F_Urgency = res.F_Urgency; // 紧急程度
225 256
           if (res.F_Urgency === 0) {
226
-            this.orderDetailData.F_Urgency = '常规'
257
+            this.orderDetailData.F_Urgency = "常规";
227 258
           } else if (res.F_Urgency === 1) {
228
-            this.orderDetailData.F_Urgency = '紧急'
259
+            this.orderDetailData.F_Urgency = "紧急";
229 260
           }
230 261
         }
231
-      })
262
+      });
232 263
     },
233 264
     getItem() {
234 265
       const params = {
235 266
         pageindex: this.pageParams.pageindex, // 第几页
236 267
         pagesize: this.pageParams.pagesize, // 每页几条信息
237
-        id: this.rowid
238
-      }
268
+        id: this.rowid,
269
+      };
239 270
       GetOrderItem(params).then((response) => {
240
-        const res = response.rows
271
+        const res = response.rows;
241 272
         if (res) {
242
-          this.workOrderCirculationList = res
243
-          this.pageParams.total = response.total
273
+          this.workOrderCirculationList = res;
274
+          this.pageParams.total = response.total;
244 275
         }
245
-      })
246
-    }
247
-
248
-  }
249
-}
276
+      });
277
+    },
278
+  },
279
+};
250 280
 </script>
251 281
 
252 282
 <style rel="stylesheet/scss" lang="scss">
253
-  .order_detail {
254
-    .tabdept {
255
-      width: 100%;
256
-      margin: 10px 0;
257
-      border: 1px solid #ccc;
258
-    }
283
+.order_detail {
284
+  .tabdept {
285
+    width: 100%;
286
+    margin: 10px 0;
287
+    border: 1px solid #ccc;
288
+  }
259 289
 
260
-    .tabdept th {
261
-      width: 150px;
262
-      padding: 10px 0;
263
-      font-size: 14px;
264
-      text-align: center;
265
-      background-color: #ececec;
266
-      border: 1px solid #ccc;
267
-    }
290
+  .tabdept th {
291
+    width: 150px;
292
+    padding: 10px 0;
293
+    font-size: 14px;
294
+    text-align: center;
295
+    background-color: #ececec;
296
+    border: 1px solid #ccc;
297
+  }
268 298
 
269
-    .tabdept td {
270
-      font-size: 14px;
271
-      text-align: center;
272
-      background-color: #fafafa;
273
-      border: 1px solid #ccc;
274
-    }
299
+  .tabdept td {
300
+    font-size: 14px;
301
+    text-align: center;
302
+    background-color: #fafafa;
303
+    border: 1px solid #ccc;
304
+  }
275 305
 
276
-    .wostate {
277
-      color: #67aa60;
278
-      display: inline-block;
279
-      border: 1px solid #c1c1c1;
280
-      border-radius: 5px;
281
-      padding: 5px 10px 3px 10px;
282
-      font-size: 17px !important;
283
-    }
306
+  .wostate {
307
+    color: #67aa60;
308
+    display: inline-block;
309
+    border: 1px solid #c1c1c1;
310
+    border-radius: 5px;
311
+    padding: 5px 10px 3px 10px;
312
+    font-size: 17px !important;
313
+  }
284 314
 
285
-    .el-col {
286
-      // margin-bottom: 20px;
287
-    }
315
+  .el-col {
316
+    // margin-bottom: 20px;
317
+  }
288 318
 
289
-    .el-icon-time {
290
-      color: #d81e06;
291
-    }
319
+  .el-icon-time {
320
+    color: #d81e06;
321
+  }
292 322
 
293
-    .el-card__header {
294
-      padding-top: 14px;
295
-      padding-bottom: 14px;
296
-      background-color: #f5f5f6;
297
-    }
323
+  .el-card__header {
324
+    padding-top: 14px;
325
+    padding-bottom: 14px;
326
+    background-color: #f5f5f6;
327
+  }
298 328
 
299
-    .order_file {
300
-      .el-card__body {
301
-        padding: 22px 0 0 0;
302
-        text-align: center;
303
-      }
329
+  .order_file {
330
+    .el-card__body {
331
+      padding: 22px 0 0 0;
332
+      text-align: center;
304 333
     }
334
+  }
305 335
 
306
-    .order_steps {
307
-      .el-step__icon-inner {
308
-        display: none;
309
-      }
336
+  .order_steps {
337
+    .el-step__icon-inner {
338
+      display: none;
310 339
     }
340
+  }
311 341
 
312
-    .order_record {
313
-      .el-card__body {
314
-        padding: 0;
315
-      }
342
+  .order_record {
343
+    .el-card__body {
344
+      padding: 0;
345
+    }
316 346
 
317
-      .el-tabs__header {
318
-        padding: 0px 20px;
319
-        background-color: #f5f5f6;
347
+    .el-tabs__header {
348
+      padding: 0px 20px;
349
+      background-color: #f5f5f6;
320 350
 
321
-        .el-tabs__item {
322
-          font-size: 16px;
323
-          height: 47px;
324
-          line-height: 47px;
325
-        }
351
+      .el-tabs__item {
352
+        font-size: 16px;
353
+        height: 47px;
354
+        line-height: 47px;
326 355
       }
327 356
     }
328 357
   }
358
+}
329 359
 </style>
330 360
 
331 361
 <style rel="stylesheet/scss" lang="scss" scoped>
332
-  .order_detail {
333
-    .order_detail_body {
334
-      margin-bottom: 20px;
335
-
336
-      .round_img {
337
-        width: 90px;
338
-        height: 90px;
339
-        border-radius: 50%;
340
-        overflow: hidden;
341
-        margin: 14px;
342
-
343
-        img {
344
-          width: 100%;
345
-          height: 100%;
346
-        }
362
+.order_detail {
363
+  .order_detail_body {
364
+    margin-bottom: 20px;
365
+
366
+    .round_img {
367
+      width: 90px;
368
+      height: 90px;
369
+      border-radius: 50%;
370
+      overflow: hidden;
371
+      margin: 14px;
372
+
373
+      img {
374
+        width: 100%;
375
+        height: 100%;
347 376
       }
377
+    }
348 378
 
349
-      .title {
350
-        font-size: 20px;
351
-
352
-        .title_icon {
353
-          color: #d81e06;
354
-          font-size: 16px;
355
-          margin-right: 20px;
356
-        }
357
-      }
379
+    .title {
380
+      font-size: 20px;
358 381
 
359
-      .title_sub {
360
-        font-size: 14px;
361
-        color: #666666;
382
+      .title_icon {
383
+        color: #d81e06;
384
+        font-size: 16px;
385
+        margin-right: 20px;
362 386
       }
387
+    }
363 388
 
364
-      .order_detail_content {
365
-        background-color: #f5f5f6;
366
-        padding-top: 20px;
367
-        color: #4c4c4c;
368
-        font-size: 14px;
389
+    .title_sub {
390
+      font-size: 14px;
391
+      color: #666666;
392
+    }
369 393
 
370
-        .order_detail_item {
371
-          margin-bottom: 10px;
394
+    .order_detail_content {
395
+      background-color: #f5f5f6;
396
+      padding-top: 20px;
397
+      color: #4c4c4c;
398
+      font-size: 14px;
372 399
 
373
-          .order_content {
374
-            margin-top: 10px;
375
-          }
400
+      .order_detail_item {
401
+        margin-bottom: 10px;
376 402
 
377
-          .order_file {
378
-            position: relative;
379
-            cursor: pointer;
380
-
381
-            .img_mask {
382
-              display: none;
383
-              position: absolute;
384
-              left: 0px;
385
-              top: 0px;
386
-              background-color: rgba(0, 0, 0, 0.3);
387
-              width: 100%;
388
-              height: 22px;
389
-              text-align: right;
390
-              z-index: 1;
391
-
392
-              i {
393
-                font-size: 20px;
394
-                line-height: 22px;
395
-                display: inline-block;
396
-                margin-right: 15px;
397
-                color: #fff;
398
-              }
399
-            }
403
+        .order_content {
404
+          margin-top: 10px;
405
+        }
400 406
 
401
-            p {
402
-              margin-top: 5px;
403
-              padding-left: 14px;
404
-              padding-right: 14px;
405
-              white-space: nowrap;
406
-              overflow: hidden;
407
-              text-overflow: ellipsis;
407
+        .order_file {
408
+          position: relative;
409
+          cursor: pointer;
410
+
411
+          .img_mask {
412
+            display: none;
413
+            position: absolute;
414
+            left: 0px;
415
+            top: 0px;
416
+            background-color: rgba(0, 0, 0, 0.3);
417
+            width: 100%;
418
+            height: 22px;
419
+            text-align: right;
420
+            z-index: 1;
421
+
422
+            i {
423
+              font-size: 20px;
424
+              line-height: 22px;
425
+              display: inline-block;
426
+              margin-right: 15px;
427
+              color: #fff;
408 428
             }
429
+          }
409 430
 
410
-            .file_icon {
411
-              height: 68px;
412
-              line-height: 68px;
413
-              font-size: 68px;
414
-              color: #409eff;
415
-            }
431
+          p {
432
+            margin-top: 5px;
433
+            padding-left: 14px;
434
+            padding-right: 14px;
435
+            white-space: nowrap;
436
+            overflow: hidden;
437
+            text-overflow: ellipsis;
416 438
           }
417 439
 
418
-          .order_file:hover .img_mask {
419
-            display: block;
440
+          .file_icon {
441
+            height: 68px;
442
+            line-height: 68px;
443
+            font-size: 68px;
444
+            color: #409eff;
420 445
           }
421 446
         }
422
-      }
423
-    }
424 447
 
425
-    .green {
426
-      color: #00c1de;
448
+        .order_file:hover .img_mask {
449
+          display: block;
450
+        }
451
+      }
427 452
     }
453
+  }
428 454
 
429
-    .done {
430
-      color: #198120;
431
-    }
455
+  .green {
456
+    color: #00c1de;
457
+  }
432 458
 
433
-    .red {
434
-      color: #d81e06;
435
-    }
459
+  .done {
460
+    color: #198120;
461
+  }
436 462
 
437
-    .yellow {
438
-      color: #e6a23c;
439
-    }
463
+  .red {
464
+    color: #d81e06;
465
+  }
440 466
 
441
-    .order_steps {
467
+  .yellow {
468
+    color: #e6a23c;
469
+  }
442 470
 
443
-      // height: 240px;
444
-      .el-step__icon-inner {
445
-        display: none;
446
-      }
471
+  .order_steps {
472
+    // height: 240px;
473
+    .el-step__icon-inner {
474
+      display: none;
447 475
     }
476
+  }
448 477
 
449
-    .tab_body {
450
-      padding: 0 20px 20px 20px;
451
-    }
478
+  .tab_body {
479
+    padding: 0 20px 20px 20px;
452 480
   }
481
+}
453 482
 </style>

+ 197 - 194
CallCenterWeb.UI/RMYY/src/views/orderManage/mySubmit/index.vue

@@ -162,7 +162,7 @@
162 162
 </template>
163 163
 
164 164
 <script>
165
-import { getOrderTypeDrop } from '@/api/systemSetup/roleSetting/menuSetup'
165
+import { getOrderTypeDrop } from "@/api/systemSetup/roleSetting/menuSetup";
166 166
 import {
167 167
   getorderList,
168 168
   deleteOrder,
@@ -175,111 +175,111 @@ import {
175 175
   schedulRetractOrder,
176 176
   updateSchedulingOrder,
177 177
   deleteSchedulingOrder,
178
-  getSchedulingOrder
179
-} from '@/api/orderManagement/orderList'
178
+  getSchedulingOrder,
179
+} from "@/api/orderManagement/orderList";
180 180
 
181
-import { getOrderTypeList } from '@/api/commonAPI'
182
-import { GetFiledState, AddFiled } from '@/api/commonAPI'
183
-import fieldDATA from '@/utils/fieldsData.js'
184
-import addDefinedList from '@/components/context/addDefinedList'
185
-import addOrEditFaultRepair from '../../faultRepair/clinicalReporting/components/addRepairbase.vue'
186
-import RepairEdit from './repairEdit.vue'
187
-import scheduleEdit from './scheduleEdit.vue'
188
-import addOrEditOrder from '../../callScreen/components/AddOrEditOrder.vue'
189
-import detail from '../components/orderDetail.vue'
190
-import askDetail from '../components/askdetail.vue'
191
-import carDetail from '../components/cardetail.vue'
192
-import dispatchDetail from '../../comDispatch/components/dispatchdetail.vue'
193
-import evaluate from './evaluate.vue'
194
-import Pagination from '@/components/context/Pagination' // 对el-pagination 二次封装
195
-import OrderButtonOperation from '@/components/button/orderList'
181
+import { getOrderTypeList } from "@/api/commonAPI";
182
+import { GetFiledState, AddFiled } from "@/api/commonAPI";
183
+import fieldDATA from "@/utils/fieldsData.js";
184
+import addDefinedList from "@/components/context/addDefinedList";
185
+import addOrEditFaultRepair from "../../faultRepair/clinicalReporting/components/addRepairbase.vue";
186
+import RepairEdit from "./repairEdit.vue";
187
+import scheduleEdit from "./scheduleEdit.vue";
188
+import addOrEditOrder from "../../callScreen/components/AddOrEditOrder.vue";
189
+import detail from "../components/orderDetail.vue";
190
+import askDetail from "../components/askdetail.vue";
191
+import carDetail from "../components/cardetail.vue";
192
+import dispatchDetail from "../../comDispatch/components/dispatchdetail.vue";
193
+import evaluate from "./evaluate.vue";
194
+import Pagination from "@/components/context/Pagination"; // 对el-pagination 二次封装
195
+import OrderButtonOperation from "@/components/button/orderList";
196 196
 
197 197
 export default {
198
-  name: 'MySubmit',
198
+  name: "MySubmit",
199 199
   components: {
200 200
     Pagination,
201
-    OrderButtonOperation
201
+    OrderButtonOperation,
202 202
   },
203 203
   data() {
204 204
     return {
205
-      activeName: '-1',
205
+      activeName: "-1",
206 206
       isDisable: false, // 防止多次点击
207 207
       loading: false,
208 208
       deleteId: [],
209 209
       fieldListFlag: {},
210 210
       secondOrderData: [],
211
-      searchTime: '',
212
-      buttonName: '',
211
+      searchTime: "",
212
+      buttonName: "",
213 213
       searchData: {
214
-        wocode: '', // 工单号
215
-        type: '', // 类型
214
+        wocode: "", // 工单号
215
+        type: "", // 类型
216 216
         loweltype: 0, // 类型
217 217
         state: -1, // 工单状态
218
-        starttime: '', // 开始时间
219
-        endtime: '' // 结束时间
218
+        starttime: "", // 开始时间
219
+        endtime: "", // 结束时间
220 220
         // page: 1, // 第几页
221 221
         // pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条信息
222 222
       },
223 223
       pageParams: {
224 224
         pageindex: 1, // 当前第几页
225 225
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
226
-        total: 0 // 总共多少数据
226
+        total: 0, // 总共多少数据
227 227
       },
228 228
       dataLists: [], // 列表数据数据
229 229
       orderstate: [], // 工单状态数据
230 230
       defaultProps: {
231 231
         checkStrictly: true,
232
-        children: 'children',
233
-        label: 'text',
234
-        value: 'id'
232
+        children: "children",
233
+        label: "text",
234
+        value: "id",
235 235
       },
236 236
       // activeName: '0',
237 237
       orderData: [],
238 238
       subclassData: [],
239
-      selfReason: '',
240
-      title: '',
241
-      dialogSelf: false
242
-    }
239
+      selfReason: "",
240
+      title: "",
241
+      dialogSelf: false,
242
+    };
243 243
   },
244 244
   created() {
245
-    this.getList()
246
-    this.getTreeList()
247
-    this.getOrderTypeData(2, 1000)
248
-    this.getOrderStat()
249
-    this.getFiledTabDetail(this.$route.path.split('/').join('_'))
245
+    this.getList();
246
+    this.getTreeList();
247
+    this.getOrderTypeData(2, 1000);
248
+    this.getOrderStat();
249
+    this.getFiledTabDetail(this.$route.path.split("/").join("_"));
250 250
     document.onkeyup = (e) => {
251 251
       if (e.keyCode === 13) {
252
-        this.getList()
252
+        this.getList();
253 253
       }
254
-    }
254
+    };
255 255
   },
256 256
   methods: {
257 257
     refList() {
258
-      this.getList()
258
+      this.getList();
259 259
     },
260 260
     handleClick(res) {
261
-      this.searchData.state = Number(res.name)
262
-      this.getList()
261
+      this.searchData.state = Number(res.name);
262
+      this.getList();
263 263
     },
264 264
     formtOrder(row, column) {
265 265
       if (row.F_SonType) {
266
-        return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text
266
+        return this.$store.getters.workTypeMap[parseInt(row.F_SonType)].text;
267 267
       }
268 268
     },
269 269
     btnClickEvents(button, wocode, row) {
270
-      this.buttonName = button.key
271
-      this.$refs.butOption.butOptionMethod(this.buttonName, wocode, row)
272
-      if (this.buttonName === 'chehuibianji') {
273
-        this.btn_edit(wocode)
270
+      this.buttonName = button.key;
271
+      this.$refs.butOption.butOptionMethod(this.buttonName, wocode, row);
272
+      if (this.buttonName === "chehuibianji") {
273
+        this.btn_edit(wocode);
274 274
       }
275
-      if (this.buttonName === 'zhdd_bianji') {
276
-        this.btn_zhddjiedit(wocode, row.F_Type, row.F_SonType)
275
+      if (this.buttonName === "zhdd_bianji") {
276
+        this.btn_zhddjiedit(wocode, row.F_Type, row.F_SonType);
277 277
       }
278
-      if (this.buttonName === 'ywzx_bianji') {
279
-        this.btn_ywzxedit(wocode, row.F_Type, row.F_SonType)
278
+      if (this.buttonName === "ywzx_bianji") {
279
+        this.btn_ywzxedit(wocode, row.F_Type, row.F_SonType);
280 280
       }
281
-      if (this.buttonName === 'cldu_bianji') {
282
-        this.btn_clduedit(wocode, row.F_Type, row.F_SonType)
281
+      if (this.buttonName === "cldu_bianji") {
282
+        this.btn_clduedit(wocode, row.F_Type, row.F_SonType);
283 283
       }
284 284
     },
285 285
     // 编辑
@@ -289,12 +289,12 @@ export default {
289 289
           content: RepairEdit, // 传递的组件对象
290 290
           parent: this, // 当前的vue对象
291 291
           data: {
292
-            wid: rid
293
-          } // props
292
+            wid: rid,
293
+          }, // props
294 294
         },
295
-        area: ['70%', '70%'],
296
-        title: '编辑工单'
297
-      })
295
+        area: ["70%", "70%"],
296
+        title: "编辑工单",
297
+      });
298 298
     },
299 299
     btn_ywzxedit(rid, rtype, r2type) {
300 300
       this.$layer.iframe({
@@ -305,46 +305,49 @@ export default {
305 305
             wid: rid,
306 306
             rtype: rtype.toString(),
307 307
             r2type: r2type.toString(),
308
-            iswomanage: '1',
309
-            isedit: '1'
310
-          } // props
308
+            iswomanage: "1",
309
+            isedit: "1",
310
+          }, // props
311 311
         },
312
-        area: ['70%', '70%'],
313
-        title: '编辑工单'
314
-      })
312
+        area: ["70%", "70%"],
313
+        title: "编辑工单",
314
+      });
315 315
     },
316 316
     btn_zhddjiedit(rid, rtype, r2type) {
317
-      console.log(rid)
318 317
       this.$layer.iframe({
319 318
         content: {
320
-          content: scheduleEdit, // 传递的组件对象
319
+          content: addOrEditOrder, // 传递的组件对象
321 320
           parent: this, // 当前的vue对象
322 321
           data: {
323
-            ordreId: rid
324
-          } // props
322
+            wid: rid,
323
+            rtype: rtype.toString(),
324
+            r2type: r2type.toString(),
325
+            iswomanage: "2",
326
+            isedit: "1",
327
+          }, // props
325 328
         },
326
-        area: ['70%', '70%'],
327
-        title: '编辑工单'
328
-      })
329
+        area: ["70%", "70%"],
330
+        title: "编辑工单",
331
+      });
329 332
     },
330 333
     getList() {
331
-      this.loading = true
334
+      this.loading = true;
332 335
       return new Promise((resolve) => {
333 336
         if (this.searchTime) {
334
-          this.searchData.starttime = this.searchTime[0]
335
-          this.searchData.endtime = this.searchTime[1]
337
+          this.searchData.starttime = this.searchTime[0];
338
+          this.searchData.endtime = this.searchTime[1];
336 339
         }
337
-        this.searchData.page = this.pageParams.pageindex
338
-        this.searchData.pagesize = this.pageParams.pagesize
340
+        this.searchData.pageindex = this.pageParams.pageindex;
341
+        this.searchData.pagesize = this.pageParams.pagesize;
339 342
         mySubmitOrderList(this.searchData).then((response) => {
340
-          this.loading = false
341
-          if (response.state.toLowerCase() === 'success') {
342
-            this.pageParams.total = response.total
343
-            this.dataLists = response.rows
343
+          this.loading = false;
344
+          if (response.state.toLowerCase() === "success") {
345
+            this.pageParams.total = response.total;
346
+            this.dataLists = response.rows;
344 347
           }
345
-        })
346
-        resolve()
347
-      })
348
+        });
349
+        resolve();
350
+      });
348 351
     },
349 352
     btn_add_list() {
350 353
       this.$layer.iframe({
@@ -352,48 +355,48 @@ export default {
352 355
           content: addDefinedList, // 传递的组件对象
353 356
           parent: this, // 当前的vue对象
354 357
           data: {
355
-            definedId: this.$route.path
356
-          } // props
358
+            definedId: this.$route.path,
359
+          }, // props
357 360
         },
358
-        area: ['70%', '30%'],
359
-        title: '自定义字段'
360
-      })
361
+        area: ["70%", "30%"],
362
+        title: "自定义字段",
363
+      });
361 364
     },
362 365
     getFiledTabDetail(TableId) {
363 366
       GetFiledState(TableId).then((res) => {
364 367
         if (res.F_Fileds) {
365
-          this.fieldListFlag = fieldDATA.getFieldListFlag(res.F_Fileds)
366
-          this.$refs['multipleTable'].doLayout()
368
+          this.fieldListFlag = fieldDATA.getFieldListFlag(res.F_Fileds);
369
+          this.$refs["multipleTable"].doLayout();
367 370
         } else {
368
-          const Fileds = fieldDATA.getOptionsValue(fieldDATA[TableId])
371
+          const Fileds = fieldDATA.getOptionsValue(fieldDATA[TableId]);
369 372
           AddFiled({
370 373
             TableId,
371
-            Fileds
374
+            Fileds,
372 375
           })
373 376
             .then((response) => {
374
-              if (response.state.toLowerCase() === 'success') {
375
-                this.getFiledTabDetail(TableId)
377
+              if (response.state.toLowerCase() === "success") {
378
+                this.getFiledTabDetail(TableId);
376 379
               }
377 380
             })
378 381
             .catch(() => {
379
-              this.loading = false
380
-            })
382
+              this.loading = false;
383
+            });
381 384
         }
382
-      })
385
+      });
383 386
     },
384 387
     btn_search() {
385
-      this.pageParams.pageindex = 1
386
-      this.getList()
388
+      this.pageParams.pageindex = 1;
389
+      this.getList();
387 390
     },
388 391
     // 自行解决
389 392
     btn_selfsolve(id) {
390
-      this.title = '异常原因'
391
-      this.dialogSelf = true
393
+      this.title = "异常原因";
394
+      this.dialogSelf = true;
392 395
     },
393 396
     // 返工
394 397
     btn_rework(id) {
395
-      this.title = '返工'
396
-      this.dialogSelf = true
398
+      this.title = "返工";
399
+      this.dialogSelf = true;
397 400
     },
398 401
     // 评价
399 402
     btn_evaluate(id) {
@@ -402,19 +405,19 @@ export default {
402 405
           content: evaluate, // 传递的组件对象
403 406
           parent: this, // 当前的vue对象
404 407
           data: {
405
-            rowid: id
406
-          } // props
408
+            rowid: id,
409
+          }, // props
407 410
         },
408
-        area: ['50%', '50%'],
409
-        title: '评价'
410
-      })
411
+        area: ["50%", "50%"],
412
+        title: "评价",
413
+      });
411 414
     },
412 415
     oncancel() {
413
-      this.dialogSelf = false
414
-      this.selfReason = ''
416
+      this.dialogSelf = false;
417
+      this.selfReason = "";
415 418
     },
416 419
     onsure() {
417
-      this.dialogSelf = false
420
+      this.dialogSelf = false;
418 421
     },
419 422
     // 编辑
420 423
     // btn_edit(wocode) {
@@ -432,24 +435,24 @@ export default {
432 435
     // },
433 436
     // 综合调度工单删除
434 437
     btn_deleteSchedulingOrder(operateId) {
435
-      this.deleteId = []
436
-      this.deleteId.push(operateId)
437
-      this.$confirm('此操作将永久删除当前工单, 是否继续?', '提示', {
438
-        confirmButtonText: '确定',
439
-        cancelButtonText: '取消',
440
-        type: 'warning'
438
+      this.deleteId = [];
439
+      this.deleteId.push(operateId);
440
+      this.$confirm("此操作将永久删除当前工单, 是否继续?", "提示", {
441
+        confirmButtonText: "确定",
442
+        cancelButtonText: "取消",
443
+        type: "warning",
441 444
       })
442 445
         .then(() => {
443 446
           deleteSchedulingOrder(this.deleteId).then((response) => {
444
-            if (response.state.toLowerCase() === 'success') {
445
-              this.getList()
446
-              this.$message.success('删除成功!')
447
+            if (response.state.toLowerCase() === "success") {
448
+              this.getList();
449
+              this.$message.success("删除成功!");
447 450
             }
448
-          })
451
+          });
449 452
         })
450 453
         .catch(() => {
451
-          this.$message.info('已取消删除')
452
-        })
454
+          this.$message.info("已取消删除");
455
+        });
453 456
     },
454 457
     hadndleOrderCode(row) {
455 458
       if (row.F_Type === 3000) {
@@ -458,12 +461,12 @@ export default {
458 461
             content: detail, // 传递的组件对象
459 462
             parent: this, // 当前的vue对象
460 463
             data: {
461
-              rowid: row.F_WoCode
462
-            } // props
464
+              rowid: row.F_WoCode,
465
+            }, // props
463 466
           },
464
-          area: ['80%', '90%'],
465
-          title: '订单详情'
466
-        })
467
+          area: ["80%", "90%"],
468
+          title: "订单详情",
469
+        });
467 470
       }
468 471
       if (row.F_Type === 1000) {
469 472
         this.$layer.iframe({
@@ -471,12 +474,12 @@ export default {
471 474
             content: askDetail,
472 475
             parent: this,
473 476
             data: {
474
-              rowid: row.F_WoCode
475
-            } // props
477
+              rowid: row.F_WoCode,
478
+            }, // props
476 479
           },
477
-          area: ['80%', '90%'],
478
-          title: '工单详情'
479
-        })
480
+          area: ["80%", "90%"],
481
+          title: "工单详情",
482
+        });
480 483
       }
481 484
       if (row.F_Type === 2000) {
482 485
         this.$layer.iframe({
@@ -484,12 +487,12 @@ export default {
484 487
             content: dispatchDetail,
485 488
             parent: this,
486 489
             data: {
487
-              rowid: row.F_WoCode
488
-            } // props
490
+              rowid: row.F_WoCode,
491
+            }, // props
489 492
           },
490
-          area: ['80%', '90%'],
491
-          title: '工单详情'
492
-        })
493
+          area: ["80%", "90%"],
494
+          title: "工单详情",
495
+        });
493 496
       }
494 497
       if (row.F_Type === 4000) {
495 498
         this.$layer.iframe({
@@ -497,110 +500,110 @@ export default {
497 500
             content: carDetail,
498 501
             parent: this,
499 502
             data: {
500
-              rowid: row.F_WoCode
501
-            } // props
503
+              rowid: row.F_WoCode,
504
+            }, // props
502 505
           },
503
-          area: ['80%', '90%'],
504
-          title: '工单详情'
505
-        })
506
+          area: ["80%", "90%"],
507
+          title: "工单详情",
508
+        });
506 509
       }
507 510
     },
508 511
     // 删除弹框
509 512
     btn_delete(operateId) {
510
-      this.deleteId = []
511
-      this.deleteId.push(operateId)
512
-      this.$confirm('此操作将永久删除当前工单, 是否继续?', '提示', {
513
-        confirmButtonText: '确定',
514
-        cancelButtonText: '取消',
515
-        type: 'warning'
513
+      this.deleteId = [];
514
+      this.deleteId.push(operateId);
515
+      this.$confirm("此操作将永久删除当前工单, 是否继续?", "提示", {
516
+        confirmButtonText: "确定",
517
+        cancelButtonText: "取消",
518
+        type: "warning",
516 519
       })
517 520
         .then(() => {
518 521
           deleteOrder(this.deleteId).then((response) => {
519
-            if (response.state.toLowerCase() === 'success') {
520
-              this.getList()
521
-              this.$message.success('删除成功!')
522
+            if (response.state.toLowerCase() === "success") {
523
+              this.getList();
524
+              this.$message.success("删除成功!");
522 525
             }
523
-          })
526
+          });
524 527
         })
525 528
         .catch(() => {
526
-          this.$message.info('已取消删除')
527
-        })
529
+          this.$message.info("已取消删除");
530
+        });
528 531
     },
529 532
     // 工单完结
530 533
     btn_Complete(operateId) {
531
-      this.$confirm('此操作完结当前工单, 是否继续?', '提示', {
532
-        confirmButtonText: '确定',
533
-        cancelButtonText: '取消',
534
-        type: 'warning'
534
+      this.$confirm("此操作完结当前工单, 是否继续?", "提示", {
535
+        confirmButtonText: "确定",
536
+        cancelButtonText: "取消",
537
+        type: "warning",
535 538
       })
536 539
         .then(() => {
537 540
           CompleteOrder(operateId).then((response) => {
538
-            if (response.state.toLowerCase() === 'success') {
539
-              this.getList()
540
-              this.$message.success('完结成功!')
541
+            if (response.state.toLowerCase() === "success") {
542
+              this.getList();
543
+              this.$message.success("完结成功!");
541 544
             }
542
-          })
545
+          });
543 546
         })
544 547
         .catch(() => {
545
-          this.$message.info('已取消完结')
546
-        })
548
+          this.$message.info("已取消完结");
549
+        });
547 550
     },
548 551
 
549 552
     // 工单类型
550 553
     getOrderTypeData(id, pid) {
551 554
       getOrderTypeList(id, pid).then((response) => {
552 555
         if (response.rows) {
553
-          this.secondOrderData = response.rows
556
+          this.secondOrderData = response.rows;
554 557
         }
555
-      })
558
+      });
556 559
     },
557 560
     // 工单状态
558 561
     getOrderStat() {
559 562
       return new Promise((resolve) => {
560
-        const params = {}
563
+        const params = {};
561 564
         getOrderStateData(params).then((response) => {
562
-          this.loading = false
565
+          this.loading = false;
563 566
           if (response) {
564
-            this.orderstate = response
567
+            this.orderstate = response;
565 568
           }
566
-        })
567
-        resolve()
568
-      })
569
+        });
570
+        resolve();
571
+      });
569 572
     },
570 573
     getTreeList() {
571 574
       return new Promise((resolve) => {
572 575
         getOrderTypeDrop(this.pid).then((response) => {
573
-          if (response.state.toLowerCase() === 'success') {
574
-            this.orderData = response.data
576
+          if (response.state.toLowerCase() === "success") {
577
+            this.orderData = response.data;
575 578
           }
576
-        })
577
-        resolve()
578
-      })
579
+        });
580
+        resolve();
581
+      });
579 582
     },
580 583
     handleChange(data) {
581
-      this.searchData.loweltype = data[data.length - 1]
584
+      this.searchData.loweltype = data[data.length - 1];
582 585
     },
583 586
     changeOrder(data) {
584
-      console.log(data)
587
+      console.log(data);
585 588
       if (!data) {
586
-        return
589
+        return;
587 590
       }
588 591
       // this.searchData.menutypeid = data
589 592
       const params = {
590 593
         pid: data,
591
-        flag: 1
592
-      }
594
+        flag: 1,
595
+      };
593 596
       return new Promise((resolve) => {
594 597
         getOrderTypeDrop(params).then((response) => {
595
-          if (response.state.toLowerCase() === 'success') {
596
-            this.subclassData = response.data
598
+          if (response.state.toLowerCase() === "success") {
599
+            this.subclassData = response.data;
597 600
           }
598
-        })
599
-        resolve()
600
-      })
601
-    }
602
-  }
603
-}
601
+        });
602
+        resolve();
603
+      });
604
+    },
605
+  },
606
+};
604 607
 </script>
605 608
 
606 609
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 117 - 200
CallCenterWeb.UI/RMYY/src/views/orderManage/mySubmit/scheduleEdit.vue

@@ -198,43 +198,6 @@
198 198
             </el-form-item>
199 199
           </el-col>
200 200
         </el-row>
201
-        <el-row v-if="iswomanage != 1">
202
-          <el-col :span="24">
203
-            <el-form-item label="下步流程" prop="opt">
204
-              <el-radio-group v-model="ruleForm.opt">
205
-                <el-radio label="1">无</el-radio>
206
-                <el-radio label="2">指派</el-radio>
207
-              </el-radio-group>
208
-            </el-form-item>
209
-          </el-col>
210
-        </el-row>
211
-        <el-row v-if="ruleForm.opt == '2'">
212
-          <el-col :span="12">
213
-            <el-form-item label="指派部门">
214
-              <select-dept-tree
215
-                :deptparam="deptidArr1"
216
-                @post-deptid="getDeptid1"
217
-              />
218
-            </el-form-item>
219
-          </el-col>
220
-          <el-col :span="12">
221
-            <el-form-item label="接收人">
222
-              <el-select
223
-                v-model="ruleForm.DealMan"
224
-                placeholder="请选择接收人"
225
-                style="width: 100%"
226
-                @change="changeRepairman1"
227
-              >
228
-                <el-option
229
-                  v-for="item in repairman1"
230
-                  :key="item.usercode"
231
-                  :label="item.username"
232
-                  :value="item.usercode"
233
-                />
234
-              </el-select>
235
-            </el-form-item>
236
-          </el-col>
237
-        </el-row>
238 201
         <el-row>
239 202
           <el-form-item>
240 203
             <el-button type="primary" @click="submitForm">保存</el-button>
@@ -251,64 +214,64 @@ import {
251 214
   GetDicValueList,
252 215
   GetequipList,
253 216
   UpdateSchedulingWorkOrder,
254
-  GetOrderDetail
255
-} from '@/api/comDispatch/addOrEditDispatch'
256
-import { GetPerson } from '@/api/commonAPI'
217
+  GetOrderDetail,
218
+} from "@/api/comDispatch/addOrEditDispatch";
219
+import { GetPerson } from "@/api/commonAPI";
257 220
 export default {
258
-  name: 'ScheduleEdit',
221
+  name: "ScheduleEdit",
259 222
   props: {
260 223
     ordreId: {
261 224
       type: String,
262
-      default: ''
225
+      default: "",
263 226
     },
264 227
     orderTypeData: {
265 228
       type: Object,
266 229
       default() {
267
-        return {}
268
-      }
230
+        return {};
231
+      },
269 232
     },
270 233
     layerid: {
271 234
       type: String,
272
-      default: ''
235
+      default: "",
273 236
     },
274 237
     callid: {
275 238
       type: String,
276
-      default: ''
239
+      default: "",
277 240
     },
278 241
     wid: {
279 242
       type: String,
280
-      default: ''
243
+      default: "",
281 244
     },
282 245
     iswomanage: {
283 246
       type: String,
284
-      default: ''
285
-    }
247
+      default: "",
248
+    },
286 249
   },
287 250
   data() {
288 251
     return {
289 252
       headers: {
290
-        Authorization: localStorage.getItem('Admin-Token')
253
+        Authorization: localStorage.getItem("Admin-Token"),
291 254
       },
292 255
       imgUrl:
293
-        this.$store.getters.serverConfig.BASE_API + 'FaultRepair/UploadFile',
256
+        this.$store.getters.serverConfig.BASE_API + "FaultRepair/UploadFile",
294 257
       type2Arr: [],
295 258
       hospitalsParam: {
296 259
         id: 0,
297
-        name: ''
260
+        name: "",
298 261
       },
299 262
       departmentsParam: {
300 263
         id: 0,
301
-        name: ''
264
+        name: "",
302 265
       },
303 266
       repairmanParam: {
304 267
         id: 0,
305
-        name: ''
268
+        name: "",
306 269
       },
307 270
       devList: [
308 271
         {
309
-          devname: '',
310
-          num: 1
311
-        }
272
+          devname: "",
273
+          num: 1,
274
+        },
312 275
       ],
313 276
       detailists: [],
314 277
       deptidArr: [],
@@ -316,202 +279,158 @@ export default {
316 279
       repairman: [],
317 280
       repairman1: [],
318 281
       equipArr: [
319
-        { label: '设备1', value: '01' },
320
-        { label: '设备2', value: '02' }
282
+        { label: "设备1", value: "01" },
283
+        { label: "设备2", value: "02" },
321 284
       ],
322 285
       goodsArr: [
323
-        { label: '物资1', value: '01' },
324
-        { label: '物资2', value: '02' }
286
+        { label: "物资1", value: "01" },
287
+        { label: "物资2", value: "02" },
325 288
       ],
326 289
       bedsArr: [
327
-        { label: '床1', value: '01' },
328
-        { label: '床2', value: '02' }
290
+        { label: "床1", value: "01" },
291
+        { label: "床2", value: "02" },
329 292
       ],
330 293
       specimenArr: [
331
-        { label: '标本1', value: '01' },
332
-        { label: '标本2', value: '02' }
294
+        { label: "标本1", value: "01" },
295
+        { label: "标本2", value: "02" },
333 296
       ],
334 297
       drugArr: [
335
-        { label: '药1', value: '01' },
336
-        { label: '药2', value: '02' }
298
+        { label: "药1", value: "01" },
299
+        { label: "药2", value: "02" },
337 300
       ],
338 301
       ruleForm: {
339
-        Applicant: '', // 申请人
340
-        ApplicationDept: '', // 申请部门
341
-        Phone: '', // 联系电话
342
-        WorkOrderCategory: '', // 工单类别
343
-        Content: '', // 工单内容
344
-        Location: '', // 科室位置
345
-        ToPlace: '', // 送达地点
346
-        File: '', // 文件
347
-        DealDept: '', // 处理部门
348
-        DealMan: '', // 从节目
349
-        WorkOrderCode: '' // 工单编号
350
-      }
351
-    }
302
+        Applicant: "", // 申请人
303
+        ApplicationDept: "", // 申请部门
304
+        Phone: "", // 联系电话
305
+        WorkOrderCategory: "", // 工单类别
306
+        Content: "", // 工单内容
307
+        Location: "", // 科室位置
308
+        ToPlace: "", // 送达地点
309
+        File: "", // 文件
310
+        DealMan: "", // 从节目
311
+        WorkOrderCode: "", // 工单编号
312
+      },
313
+    };
352 314
   },
353 315
 
354 316
   created() {
355
-    this.getequis()
356
-    this.getgoods()
357
-    this.getbeds()
358
-    this.getbiaoben()
359
-    this.getdrugs()
360
-    console.log(this.ordreId)
317
+    this.getequis();
318
+    this.getgoods();
319
+    this.getbeds();
320
+    this.getbiaoben();
321
+    this.getdrugs();
322
+    console.log(this.ordreId);
361 323
     if (this.ordreId) {
362
-      this.getDetail()
324
+      this.getDetail();
363 325
     }
364
-    console.log(this.iswomanage, '444')
326
+    console.log(this.iswomanage, "444");
365 327
   },
366 328
   methods: {
367 329
     addItem() {
368 330
       const params = {
369
-        devname: '',
370
-        num: 1
371
-      }
372
-      this.devList.push(params)
331
+        devname: "",
332
+        num: 1,
333
+      };
334
+      this.devList.push(params);
373 335
     },
374 336
     removeItem(index) {
375
-      console.log(index)
376
-      this.devList.splice(index, 1)
337
+      console.log(index);
338
+      this.devList.splice(index, 1);
377 339
     },
378 340
     selectChange(val) {
379
-      console.log(val)
341
+      console.log(val);
380 342
     },
381
-    getDeptid(data) {
382
-      this.ruleForm.ApplicationDept = data[data.length - 1]
383
-      this.getRepairman(data[data.length - 1], 0)
384
-    },
385
-    getDeptid1(data) {
386
-      this.ruleForm.DealDept = data[data.length - 1]
387
-      this.getRepairman1(data[data.length - 1], 0)
388
-    },
389
-    getRepairman(id, state) {
390
-      return new Promise((resolve) => {
391
-        const params = {
392
-          deptid: id // 字典管理的工单标识
393
-        }
394
-        GetPerson(params).then((res) => {
395
-          if (state === 0) {
396
-            this.repairman = res.rows
397
-          } else if (state === 1) {
398
-            this.assignman = res.rows
399
-          }
400
-        })
401
-        resolve()
402
-      })
403
-    },
404
-    getRepairman1(id, state) {
405
-      return new Promise((resolve) => {
406
-        const params = {
407
-          deptid: id // 字典管理的工单标识
408
-        }
409
-        GetPerson(params).then((res) => {
410
-          if (state === 0) {
411
-            this.repairman1 = res.rows
412
-          } else if (state === 1) {
413
-            this.assignman1 = res.rows
414
-          }
415
-        })
416
-        resolve()
417
-      })
418
-    },
419
-    changeRepairman(data) {},
420
-    changeRepairman1(data) {},
421 343
     handle_success(res) {
422
-      this.ruleForm.repairImageid += res.data[0].F_FileId + ','
344
+      this.ruleForm.repairImageid += res.data[0].F_FileId + ",";
423 345
     },
424 346
     getequis() {
425
-      const params = {}
347
+      const params = {};
426 348
       GetequipList(params).then((res) => {
427
-        this.equipArr = res.data
428
-      })
349
+        this.equipArr = res.data;
350
+      });
429 351
     },
430 352
     getgoods() {
431 353
       const params = {
432
-        Flag: 'WZXX',
433
-        Name: ''
434
-      }
354
+        Flag: "WZXX",
355
+        Name: "",
356
+      };
435 357
       GetDicValueList(params).then((res) => {
436
-        this.goodsArr = res.rows
437
-      })
358
+        this.goodsArr = res.rows;
359
+      });
438 360
     },
439 361
     getbeds() {
440 362
       const params = {
441
-        Flag: 'BCXX',
442
-        Name: ''
443
-      }
363
+        Flag: "BCXX",
364
+        Name: "",
365
+      };
444 366
       GetDicValueList(params).then((res) => {
445
-        this.bedsArr = res.rows
446
-      })
367
+        this.bedsArr = res.rows;
368
+      });
447 369
     },
448 370
     getbiaoben() {
449 371
       const params = {
450
-        Flag: 'BBXX',
451
-        Name: ''
452
-      }
372
+        Flag: "BBXX",
373
+        Name: "",
374
+      };
453 375
       GetDicValueList(params).then((res) => {
454
-        this.specimenArr = res.rows
455
-      })
376
+        this.specimenArr = res.rows;
377
+      });
456 378
     },
457 379
     getdrugs() {
458 380
       const params = {
459
-        Flag: 'YPXX',
460
-        Name: ''
461
-      }
381
+        Flag: "YPXX",
382
+        Name: "",
383
+      };
462 384
       GetDicValueList(params).then((res) => {
463
-        this.drugArr = res.rows
464
-      })
385
+        this.drugArr = res.rows;
386
+      });
465 387
     },
466 388
     getDetail() {
467 389
       const datas = {
468 390
         WorkOrderCode: this.ordreId,
469
-        type: 0
470
-      }
391
+        type: 0,
392
+      };
471 393
       // 详情 GetWorkOrder
472
-      GetWorkOrder(datas)
394
+      GetOrderDetail(datas)
473 395
         .then((response) => {
474
-          if (response.state.toLowerCase() === 'success') {
475
-            console.log(response)
476
-            const res = response.data[0]
396
+          if (response.state.toLowerCase() === "success") {
397
+            console.log(response);
398
+            const res = response.data[0];
477 399
 
478
-            this.ruleForm.Applicant = res.F_Applicant // 申请人
479
-            this.ruleForm.ApplicationDept = res.F_ApplicationDept // 申请部门
480
-            this.ruleForm.Location = res.F_Location // 科室位置
481
-            this.ruleForm.Phone = res.F_Phone // 联系电话
482
-            this.ruleForm.WorkOrderCategory = res.F_WorkOrderCategory // 工单类别
483
-            this.ruleForm.WorkOrderCode = res.F_WorkOrderCode // 工单编号
400
+            this.ruleForm.Applicant = res.F_Applicant; // 申请人
401
+            this.ruleForm.ApplicationDept = res.F_ApplicationDept; // 申请部门
402
+            this.ruleForm.Location = res.F_Location; // 科室位置
403
+            this.ruleForm.Phone = res.F_Phone; // 联系电话
404
+            this.ruleForm.WorkOrderCategory = res.F_WorkOrderCategory; // 工单类别
405
+            this.ruleForm.WorkOrderCode = res.F_WorkOrderCode; // 工单编号
484 406
 
485 407
             // this.ruleForm.Content = res.F_Content; // 工单内容
486
-            //
487 408
             // this.ruleForm.ToPlace = res.F_ToPlace; // 送达地点
488 409
             // this.ruleForm.File = res.FileUrl; // 文件
489 410
             // this.ruleForm.DealDept = res.F_DealDept; // 处理部门
490 411
             // this.ruleForm.DealMan = res.F_DealMan; // 处理人
491
-            console.log(this.ruleForm)
412
+            console.log(this.ruleForm);
492 413
           }
493 414
         })
494
-        .catch(() => {})
415
+        .catch(() => {});
495 416
     },
496 417
     submitForm() {
497
-      console.log(this.devList)
498
-      const details = []
499
-      this.devList.forEach(function(v, n) {
418
+      console.log(this.devList);
419
+      const details = [];
420
+      this.devList.forEach(function (v, n) {
500 421
         details.push({
501
-          F_DicId: v.devname.split(',')[1],
502
-          F_DicName: v.devname.split(',')[0],
503
-          F_Number: v.num
504
-        })
505
-      })
506
-      console.log(details)
507
-      console.log(this.orderTypeData)
508
-      if (this.ruleForm.repairImageid === '') {
509
-        this.ruleForm.repairImageid = ''
422
+          F_DicId: v.devname.split(",")[1],
423
+          F_DicName: v.devname.split(",")[0],
424
+          F_Number: v.num,
425
+        });
426
+      });
427
+      if (this.ruleForm.repairImageid === "") {
428
+        this.ruleForm.repairImageid = "";
510 429
       } else {
511 430
         this.ruleForm.repairImageid = this.ruleForm.repairImageid.slice(
512 431
           0,
513 432
           this.ruleForm.repairImageid.length - 1
514
-        )
433
+        );
515 434
       }
516 435
 
517 436
       var datas = {
@@ -524,27 +443,25 @@ export default {
524 443
         Location: this.ruleForm.Location, // 科室位置
525 444
         ToPlace: this.ruleForm.ToPlace, // 送达地点
526 445
         File: this.ruleForm.File, // 文件
527
-        DealDept: this.ruleForm.DealDept, // 处理部门
528
-        DealMan: this.ruleForm.DealMan, // 从节目
529 446
         WorkOrderCode: this.ruleForm.WorkOrderCode, // 工单编号
530
-        detailists: details
531
-      }
532
-      console.log(datas)
447
+        detailists: details,
448
+      };
449
+      console.log(datas);
533 450
       // 添加
534 451
       if (this.ordreId) {
535 452
         UpdateSchedulingWorkOrder(datas)
536 453
           .then((response) => {
537
-            if (response.state.toLowerCase() === 'success') {
454
+            if (response.state.toLowerCase() === "success") {
538 455
               if (this.layerid) {
539
-                this.$parent.$layer.close(this.layerid)
540
-                this.$parent.getList() // 重新加载父级数据
456
+                this.$parent.$layer.close(this.layerid);
457
+                this.$parent.getList(); // 重新加载父级数据
541 458
               }
542
-              this.$message.success('恭喜你,修改成功!')
459
+              this.$message.success("恭喜你,修改成功!");
543 460
             }
544 461
           })
545
-          .catch(() => {})
462
+          .catch(() => {});
546 463
       }
547
-    }
464
+    },
548 465
     // resetForm() {
549 466
     //   this.$refs.ruleForm.resetFields()
550 467
     //   this.itemessageList = [
@@ -563,8 +480,8 @@ export default {
563 480
     //     }
564 481
     //   ]
565 482
     // }
566
-  }
567
-}
483
+  },
484
+};
568 485
 </script>
569 486
 <style rel="stylesheet/scss" lang="scss">
570 487
 .addOp span {