|
|
@@ -10,7 +10,7 @@
|
|
10
|
10
|
</el-form>
|
|
11
|
11
|
<div slot="footer" class="dialog-footer">
|
|
12
|
12
|
<el-button @click="dialogStatus.dialog_zixingjiejue = false">取 消</el-button>
|
|
13
|
|
- <el-button type="primary" @click="submitForm('errorDoneForm')">确 定</el-button>
|
|
|
13
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('errorDoneForm')">确 定</el-button>
|
|
14
|
14
|
</div>
|
|
15
|
15
|
</el-dialog>
|
|
16
|
16
|
<!-- 返修 -->
|
|
|
@@ -29,7 +29,7 @@
|
|
29
|
29
|
</el-form>
|
|
30
|
30
|
<div slot="footer" class="dialog-footer">
|
|
31
|
31
|
<el-button @click="dialogStatus.dialog_fanxiu = false">取 消</el-button>
|
|
32
|
|
- <el-button type="primary" @click="submitForm('returnWorkForm')">确 定</el-button>
|
|
|
32
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('returnWorkForm')">确 定</el-button>
|
|
33
|
33
|
</div>
|
|
34
|
34
|
</el-dialog>
|
|
35
|
35
|
<!-- 故障报修评价 -->
|
|
|
@@ -70,7 +70,7 @@
|
|
70
|
70
|
</el-form>
|
|
71
|
71
|
<div slot="footer" class="dialog-footer">
|
|
72
|
72
|
<el-button @click="dialogStatus.dialog_pingjia = false">取 消</el-button>
|
|
73
|
|
- <el-button type="primary" @click="submitForm('evaluateForm')">确 定</el-button>
|
|
|
73
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('evaluateForm')">确 定</el-button>
|
|
74
|
74
|
</div>
|
|
75
|
75
|
</el-dialog>
|
|
76
|
76
|
<!-- 综合调度评价 -->
|
|
|
@@ -92,7 +92,7 @@
|
|
92
|
92
|
</el-form>
|
|
93
|
93
|
<div slot="footer" class="dialog-footer">
|
|
94
|
94
|
<el-button @click="dialogStatus.dialog_zhdd_pingjia = false">取 消</el-button>
|
|
95
|
|
- <el-button type="primary" @click="submitForm('schedulingEvaluateForm')">确 定</el-button>
|
|
|
95
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('schedulingEvaluateForm')">确 定</el-button>
|
|
96
|
96
|
</div>
|
|
97
|
97
|
</el-dialog>
|
|
98
|
98
|
<!-- 故障保修指派 -->
|
|
|
@@ -113,7 +113,7 @@
|
|
113
|
113
|
</el-form>
|
|
114
|
114
|
<div slot="footer" class="dialog-footer">
|
|
115
|
115
|
<el-button @click="dialogStatus.dialog_zhipai = false">取 消</el-button>
|
|
116
|
|
- <el-button type="primary" @click="submitForm('transferForm')">确 定</el-button>
|
|
|
116
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('transferForm')">确 定</el-button>
|
|
117
|
117
|
</div>
|
|
118
|
118
|
</el-dialog>
|
|
119
|
119
|
<!-- 综合调度指派 -->
|
|
|
@@ -161,7 +161,7 @@
|
|
161
|
161
|
</el-form>
|
|
162
|
162
|
<div slot="footer" class="dialog-footer">
|
|
163
|
163
|
<el-button @click="dialogStatus.dialog_zhdd_zhipai = false">取 消</el-button>
|
|
164
|
|
- <el-button type="primary" @click="submitForm('zhddtransferForm')">确 定</el-button>
|
|
|
164
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('zhddtransferForm')">确 定</el-button>
|
|
165
|
165
|
</div>
|
|
166
|
166
|
</el-dialog>
|
|
167
|
167
|
<!-- 咨询预约处理 -->
|
|
|
@@ -180,7 +180,7 @@
|
|
180
|
180
|
</el-form>
|
|
181
|
181
|
<div slot="footer" class="dialog-footer">
|
|
182
|
182
|
<el-button @click="dialogStatus.dialog_ywzx_chuli = false">取 消</el-button>
|
|
183
|
|
- <el-button type="primary" @click="submitForm('appointmentForm')">确 定</el-button>
|
|
|
183
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('appointmentForm')">确 定</el-button>
|
|
184
|
184
|
</div>
|
|
185
|
185
|
</el-dialog>
|
|
186
|
186
|
<!-- 确认耗材 -->
|
|
|
@@ -314,7 +314,7 @@
|
|
314
|
314
|
</el-form>
|
|
315
|
315
|
<div slot="footer" class="dialog-footer">
|
|
316
|
316
|
<el-button @click="dialogStatus.dialog_gongdantuihui = false">取 消</el-button>
|
|
317
|
|
- <el-button type="primary" @click="submitForm('gzbxBackWorkForm')">确 定</el-button>
|
|
|
317
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('gzbxBackWorkForm')">确 定</el-button>
|
|
318
|
318
|
</div>
|
|
319
|
319
|
</el-dialog>
|
|
320
|
320
|
<!-- 综合调度退回 -->
|
|
|
@@ -333,7 +333,7 @@
|
|
333
|
333
|
</el-form>
|
|
334
|
334
|
<div slot="footer" class="dialog-footer">
|
|
335
|
335
|
<el-button @click="dialogStatus.dialog_dispatch_tuihui = false">取 消</el-button>
|
|
336
|
|
- <el-button type="primary" @click="submitForm('backWorkForm')">确 定</el-button>
|
|
|
336
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('backWorkForm')">确 定</el-button>
|
|
337
|
337
|
</div>
|
|
338
|
338
|
</el-dialog>
|
|
339
|
339
|
<!-- 综合调度工单列表退回 -->
|
|
|
@@ -346,7 +346,7 @@
|
|
346
|
346
|
</el-form>
|
|
347
|
347
|
<div slot="footer" class="dialog-footer">
|
|
348
|
348
|
<el-button @click="dialogStatus.dialog_zhdd_tuihui = false">取 消</el-button>
|
|
349
|
|
- <el-button type="primary" @click="submitForm('zhddbackWorkForm')">确 定</el-button>
|
|
|
349
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('zhddbackWorkForm')">确 定</el-button>
|
|
350
|
350
|
</div>
|
|
351
|
351
|
</el-dialog>
|
|
352
|
352
|
<!-- 业务咨询退回 -->
|
|
|
@@ -365,7 +365,7 @@
|
|
365
|
365
|
</el-form>
|
|
366
|
366
|
<div slot="footer" class="dialog-footer">
|
|
367
|
367
|
<el-button @click="dialogStatus.dialog_ywzx_tuihui = false">取 消</el-button>
|
|
368
|
|
- <el-button type="primary" @click="submitForm('ywzxbackWorkForm')">确 定</el-button>
|
|
|
368
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('ywzxbackWorkForm')">确 定</el-button>
|
|
369
|
369
|
</div>
|
|
370
|
370
|
</el-dialog>
|
|
371
|
371
|
<!-- 故障报修撤回 -->
|
|
|
@@ -378,7 +378,7 @@
|
|
378
|
378
|
</el-form>
|
|
379
|
379
|
<div slot="footer" class="dialog-footer">
|
|
380
|
380
|
<el-button @click="dialogStatus.dialog_chehui = false">取 消</el-button>
|
|
381
|
|
- <el-button type="primary" @click="submitForm('gzbxRecallForm')">确 定</el-button>
|
|
|
381
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('gzbxRecallForm')">确 定</el-button>
|
|
382
|
382
|
</div>
|
|
383
|
383
|
</el-dialog>
|
|
384
|
384
|
<!-- 故障报修申请人撤回 -->
|
|
|
@@ -391,7 +391,7 @@
|
|
391
|
391
|
</el-form>
|
|
392
|
392
|
<div slot="footer" class="dialog-footer">
|
|
393
|
393
|
<el-button @click="dialogStatus.dialog_mychehui = false">取 消</el-button>
|
|
394
|
|
- <el-button type="primary" @click="submitForm('gzbxUserRecallForm')">确 定</el-button>
|
|
|
394
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('gzbxUserRecallForm')">确 定</el-button>
|
|
395
|
395
|
</div>
|
|
396
|
396
|
</el-dialog>
|
|
397
|
397
|
<!-- <工单列表-综合调度-撤回 -->
|
|
|
@@ -410,7 +410,7 @@
|
|
410
|
410
|
</el-form>
|
|
411
|
411
|
<div slot="footer" class="dialog-footer">
|
|
412
|
412
|
<el-button @click="dialogStatus.dialog_schchehui = false">取 消</el-button>
|
|
413
|
|
- <el-button type="primary" @click="submitForm('zhddBackForm')">确 定</el-button>
|
|
|
413
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('zhddBackForm')">确 定</el-button>
|
|
414
|
414
|
</div>
|
|
415
|
415
|
</el-dialog>
|
|
416
|
416
|
<!-- 综合调度送达 -->
|
|
|
@@ -472,7 +472,7 @@
|
|
472
|
472
|
</el-form>
|
|
473
|
473
|
<div slot="footer" class="dialog-footer">
|
|
474
|
474
|
<el-button @click="dialogStatus.dialog_dispatch_daoda = false">取 消</el-button>
|
|
475
|
|
- <el-button type="primary" @click="submitForm('dealWorkForm')">确 定</el-button>
|
|
|
475
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('dealWorkForm')">确 定</el-button>
|
|
476
|
476
|
</div>
|
|
477
|
477
|
</el-dialog>
|
|
478
|
478
|
<!-- 送达的编辑 -->
|
|
|
@@ -583,7 +583,7 @@
|
|
583
|
583
|
</el-form>
|
|
584
|
584
|
<div slot="footer" class="dialog-footer">
|
|
585
|
585
|
<el-button @click="dialogStatus.dialog_cldu_pingjia = false">取 消</el-button>
|
|
586
|
|
- <el-button type="primary" @click="submitForm('carEvaluteForm')">确 定</el-button>
|
|
|
586
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('carEvaluteForm')">确 定</el-button>
|
|
587
|
587
|
</div>
|
|
588
|
588
|
</el-dialog>
|
|
589
|
589
|
<!--催单-->
|
|
|
@@ -596,7 +596,7 @@
|
|
596
|
596
|
</el-form>
|
|
597
|
597
|
<div slot="footer" class="dialog-footer">
|
|
598
|
598
|
<el-button @click="dialogStatus.dialog_ywzx_cuidan = false">取 消</el-button>
|
|
599
|
|
- <el-button type="primary" @click="submitForm('cuidanForm')">确 定</el-button>
|
|
|
599
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('cuidanForm')">确 定</el-button>
|
|
600
|
600
|
</div>
|
|
601
|
601
|
</el-dialog>
|
|
602
|
602
|
<el-dialog :visible.sync="dialogStatus.dialog_ywzx_cuidanOL" title="催单">
|
|
|
@@ -608,7 +608,7 @@
|
|
608
|
608
|
</el-form>
|
|
609
|
609
|
<div slot="footer" class="dialog-footer">
|
|
610
|
610
|
<el-button @click="dialogStatus.dialog_ywzx_cuidanOL = false">取 消</el-button>
|
|
611
|
|
- <el-button type="primary" @click="submitForm('cuidanQLForm')">确 定</el-button>
|
|
|
611
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('cuidanQLForm')">确 定</el-button>
|
|
612
|
612
|
</div>
|
|
613
|
613
|
</el-dialog>
|
|
614
|
614
|
<!-- 完成 -->
|
|
|
@@ -621,7 +621,7 @@
|
|
621
|
621
|
</el-form>
|
|
622
|
622
|
<div slot="footer" class="dialog-footer">
|
|
623
|
623
|
<el-button @click="dialogStatus.dialog_ywzx_finish = false">取 消</el-button>
|
|
624
|
|
- <el-button type="primary" @click="submitForm('finishForm')">确 定</el-button>
|
|
|
624
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('finishForm')">确 定</el-button>
|
|
625
|
625
|
</div>
|
|
626
|
626
|
</el-dialog>
|
|
627
|
627
|
<!-- 综合调度菜单-指派 -->
|
|
|
@@ -643,7 +643,7 @@
|
|
643
|
643
|
</el-form>
|
|
644
|
644
|
<div slot="footer" class="dialog-footer">
|
|
645
|
645
|
<el-button @click="dialogStatus.dialog_dispatch_zhuanpai = false">取 消</el-button>
|
|
646
|
|
- <el-button type="primary" @click="submitForm('dispatchtransferForm')">确 定</el-button>
|
|
|
646
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('dispatchtransferForm')">确 定</el-button>
|
|
647
|
647
|
</div>
|
|
648
|
648
|
</el-dialog>
|
|
649
|
649
|
<el-dialog :visible.sync="dialogImgVisible" title="查看图片" width="50%" append-to-body>
|
|
|
@@ -666,7 +666,7 @@
|
|
666
|
666
|
</el-form>
|
|
667
|
667
|
<div slot="footer" class="dialog-footer">
|
|
668
|
668
|
<el-button @click="dialogStatus.dialog_dispatch_zhuantongshi = false">取 消</el-button>
|
|
669
|
|
- <el-button type="primary" @click="submitForm('zhddToColleagueForm')">确 定</el-button>
|
|
|
669
|
+ <el-button v-loading.fullscreen.lock="loading" type="primary" @click="submitForm('zhddToColleagueForm')">确 定</el-button>
|
|
670
|
670
|
</div>
|
|
671
|
671
|
</el-dialog>
|
|
672
|
672
|
</div>
|
|
|
@@ -734,6 +734,7 @@
|
|
734
|
734
|
props: {},
|
|
735
|
735
|
data() {
|
|
736
|
736
|
return {
|
|
|
737
|
+ loading: false,
|
|
737
|
738
|
isxylx: "",
|
|
738
|
739
|
xylxdatas: [],
|
|
739
|
740
|
FileUrl: [],
|
|
|
@@ -1444,66 +1445,7 @@
|
|
1444
|
1445
|
this.transferForm.todept = conf.autodept;
|
|
1445
|
1446
|
this.getClassUser(conf.autodept, conf.autousercode);
|
|
1446
|
1447
|
}
|
|
1447
|
|
-
|
|
1448
|
|
- //院区id遍历
|
|
1449
|
|
- // for (var i = 0; i < autoData.length; i++) {
|
|
1450
|
|
- // if (autoData[i].autoyq == applyHos) {
|
|
1451
|
|
- // //有院区
|
|
1452
|
|
- // this.deptidArr =
|
|
1453
|
|
- // this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
1454
|
|
- // this.transferForm.todept = autoData[i].autodept;
|
|
1455
|
|
- // console.log(1, 'getClassUser');
|
|
1456
|
|
- // this.getClassUser(autoData[i].autodept);
|
|
1457
|
|
- // this.transferForm.tousercode = autoData[i].autousercode;
|
|
1458
|
|
- // return;
|
|
1459
|
|
- // } else if (autoData[i].autoyq == "0") {
|
|
1460
|
|
- // //全部
|
|
1461
|
|
- // this.deptidArr =
|
|
1462
|
|
- // this.$store.getters.deptmap[parseInt(autoData[i].autodept)].ids;
|
|
1463
|
|
- // this.transferForm.todept = autoData[i].autodept;
|
|
1464
|
|
- // console.log(2, 'getClassUser');
|
|
1465
|
|
- // this.getClassUser(autoData[i].autodept);
|
|
1466
|
|
- // this.transferForm.tousercode = autoData[i].autousercode;
|
|
1467
|
|
- // }
|
|
1468
|
|
- // }
|
|
1469
|
1448
|
}
|
|
1470
|
|
-
|
|
1471
|
|
- // const deptid = this.$store.getters.workTypeMap[parseInt(row.F_SonType)].autoDept
|
|
1472
|
|
- // const typeArr = this.$store.getters.workTypeMap[parseInt(row.F_SonType)].ids
|
|
1473
|
|
- // const worktypeInfo = this.$store.getters.workTypeMap[parseInt(typeArr[1])].tag
|
|
1474
|
|
- // const assignDeptArr = this.$store.getters.deptmap[parseInt(row.F_ProposerDept)].ids
|
|
1475
|
|
- // console.log(deptid,worktypeInfo, assignDeptArr)
|
|
1476
|
|
- // if (worktypeInfo != 'gzbx_jjhq') {
|
|
1477
|
|
- // if(deptid){
|
|
1478
|
|
- // this.transferForm.todept = deptid
|
|
1479
|
|
- // this.deptidArr = this.$store.getters.deptmap[parseInt(deptid)].ids
|
|
1480
|
|
- // this.getClassUser(deptid)
|
|
1481
|
|
- // }
|
|
1482
|
|
- // }
|
|
1483
|
|
- // if ((worktypeInfo == 'gzbx_jjhq' && assignDeptArr[0] != '1') && (worktypeInfo == 'gzbx_jjhq' && assignDeptArr[
|
|
1484
|
|
- // 0] != '4005')) {
|
|
1485
|
|
- // if (assignDeptArr[0] == '2') {
|
|
1486
|
|
- // this.getDeptByCode(this.deptMents, 'fenyuanqu')
|
|
1487
|
|
- // }
|
|
1488
|
|
- // if (assignDeptArr[0] == '3') {
|
|
1489
|
|
- // this.getDeptByCode(this.deptMents, 'xiyuanqu')
|
|
1490
|
|
- // }
|
|
1491
|
|
- // if (assignDeptArr[0] == '4004') {
|
|
1492
|
|
- // this.getDeptByCode(this.deptMents, 'JJHQ_DYQBZZ')
|
|
1493
|
|
- // }
|
|
1494
|
|
- // if (assignDeptArr[0] == '4006') {
|
|
1495
|
|
- // this.getDeptByCode(this.deptMents, 'JJHQ_NYQBZZ')
|
|
1496
|
|
- // }
|
|
1497
|
|
- // if (assignDeptArr[0] == '4008') {
|
|
1498
|
|
- // this.getDeptByCode(this.deptMents, 'JJHQ_BYQBZZ')
|
|
1499
|
|
- // }
|
|
1500
|
|
- // } else {
|
|
1501
|
|
- // if(deptid){
|
|
1502
|
|
- // this.transferForm.todept = deptid
|
|
1503
|
|
- // this.deptidArr = this.$store.getters.deptmap[parseInt(deptid)].ids
|
|
1504
|
|
- // this.getClassUser(deptid)
|
|
1505
|
|
- // }
|
|
1506
|
|
- // }
|
|
1507
|
1449
|
}
|
|
1508
|
1450
|
if (name === "zhdd_zhipai") {
|
|
1509
|
1451
|
this.zhdddeptidArr = [];
|
|
|
@@ -1815,6 +1757,7 @@
|
|
1815
|
1757
|
submitForm(formName) {
|
|
1816
|
1758
|
// console.log(this.dispatchhaocaiarrError)
|
|
1817
|
1759
|
// return;
|
|
|
1760
|
+ this.loading = true //打开loading
|
|
1818
|
1761
|
if (formName === "transferForm"){
|
|
1819
|
1762
|
this.transferForm.datetime = this.getNowDate()
|
|
1820
|
1763
|
}
|
|
|
@@ -1826,6 +1769,7 @@
|
|
1826
|
1769
|
});
|
|
1827
|
1770
|
if (index >= 0) {
|
|
1828
|
1771
|
this.$message.error("请选择对应物资信息");
|
|
|
1772
|
+ this.loading = false // 关闭loading
|
|
1829
|
1773
|
return;
|
|
1830
|
1774
|
}
|
|
1831
|
1775
|
}
|
|
|
@@ -1840,6 +1784,7 @@
|
|
1840
|
1784
|
});
|
|
1841
|
1785
|
if (index >= 0) {
|
|
1842
|
1786
|
this.$message.error("请选择对应物资信息");
|
|
|
1787
|
+ this.loading = false // 关闭loading
|
|
1843
|
1788
|
return;
|
|
1844
|
1789
|
}
|
|
1845
|
1790
|
}
|
|
|
@@ -1862,6 +1807,7 @@
|
|
1862
|
1807
|
if (formName === "evaluateForm") {
|
|
1863
|
1808
|
if (this.evaluateForm.Attitude == 0 || this.evaluateForm.Quality == 0 || this.evaluateForm.Efficiency == 0) {
|
|
1864
|
1809
|
this.$message.warning("请选择星级评价");
|
|
|
1810
|
+ this.loading = false // 关闭loading
|
|
1865
|
1811
|
return;
|
|
1866
|
1812
|
}
|
|
1867
|
1813
|
if (
|
|
|
@@ -1871,6 +1817,7 @@
|
|
1871
|
1817
|
) {
|
|
1872
|
1818
|
if (this.evaluateForm.EvaluateContent === "") {
|
|
1873
|
1819
|
this.$message.warning("请输入文字评价");
|
|
|
1820
|
+ this.loading = false // 关闭loading
|
|
1874
|
1821
|
return;
|
|
1875
|
1822
|
}
|
|
1876
|
1823
|
}
|
|
|
@@ -1879,6 +1826,7 @@
|
|
1879
|
1826
|
if (this.schedulingEvaluateForm.Attitude == 0 || this.schedulingEvaluateForm.Quality == 0 || this
|
|
1880
|
1827
|
.schedulingEvaluateForm.Efficiency == 0) {
|
|
1881
|
1828
|
this.$message.warning("请选择星级评价");
|
|
|
1829
|
+ this.loading = false // 关闭loading
|
|
1882
|
1830
|
return;
|
|
1883
|
1831
|
}
|
|
1884
|
1832
|
if (
|
|
|
@@ -1888,6 +1836,7 @@
|
|
1888
|
1836
|
) {
|
|
1889
|
1837
|
if (this.schedulingEvaluateForm.EvaluateContent === "") {
|
|
1890
|
1838
|
this.$message.warning("请输入文字评价");
|
|
|
1839
|
+ this.loading = false // 关闭loading
|
|
1891
|
1840
|
return;
|
|
1892
|
1841
|
}
|
|
1893
|
1842
|
}
|
|
|
@@ -1896,6 +1845,7 @@
|
|
1896
|
1845
|
if (this.carEvaluteForm.Attitude == 0 || this.carEvaluteForm.Quality == 0 || this.carEvaluteForm.Efficiency ==
|
|
1897
|
1846
|
0) {
|
|
1898
|
1847
|
this.$message.warning("请选择星级评价");
|
|
|
1848
|
+ this.loading = false // 关闭loading
|
|
1899
|
1849
|
return;
|
|
1900
|
1850
|
}
|
|
1901
|
1851
|
if (
|
|
|
@@ -1905,6 +1855,7 @@
|
|
1905
|
1855
|
) {
|
|
1906
|
1856
|
if (this.carEvaluteForm.Evaluation === "") {
|
|
1907
|
1857
|
this.$message.warning("请输入文字评价");
|
|
|
1858
|
+ this.loading = false // 关闭loading
|
|
1908
|
1859
|
return;
|
|
1909
|
1860
|
}
|
|
1910
|
1861
|
}
|
|
|
@@ -1914,12 +1865,14 @@
|
|
1914
|
1865
|
if (this.consumablesConfirmForm.Attitude == 0 || this.consumablesConfirmForm.Quality == 0 || this
|
|
1915
|
1866
|
.consumablesConfirmForm.Efficiency == 0) {
|
|
1916
|
1867
|
this.$message.warning("请选择星级评价");
|
|
|
1868
|
+ this.loading = false // 关闭loading
|
|
1917
|
1869
|
return;
|
|
1918
|
1870
|
}
|
|
1919
|
1871
|
if (this.consumablesConfirmForm.Attitude < 3 || this.consumablesConfirmForm.Quality < 3 || this
|
|
1920
|
1872
|
.consumablesConfirmForm.Efficiency < 3) {
|
|
1921
|
1873
|
if (this.consumablesConfirmForm.EvaluateContent === "") {
|
|
1922
|
1874
|
this.$message.warning("请输入文字评价");
|
|
|
1875
|
+ this.loading = false // 关闭loading
|
|
1923
|
1876
|
return;
|
|
1924
|
1877
|
}
|
|
1925
|
1878
|
}
|
|
|
@@ -1997,11 +1950,13 @@
|
|
1997
|
1950
|
if (formName === "returnWorkForm") {
|
|
1998
|
1951
|
if (!this.returnWorkForm.value) {
|
|
1999
|
1952
|
this.$message.warning("请选择原因");
|
|
|
1953
|
+ this.loading = false // 关闭loading
|
|
2000
|
1954
|
return;
|
|
2001
|
1955
|
}
|
|
2002
|
1956
|
if (this.returnWorkForm.value === "其他") {
|
|
2003
|
1957
|
if (!this.returnWorkForm.returnReason) {
|
|
2004
|
1958
|
this.$message.warning("请输入其他原因");
|
|
|
1959
|
+ this.loading = false // 关闭loading
|
|
2005
|
1960
|
return;
|
|
2006
|
1961
|
}
|
|
2007
|
1962
|
}
|
|
|
@@ -2009,11 +1964,13 @@
|
|
2009
|
1964
|
if (formName === "backWorkForm") {
|
|
2010
|
1965
|
if (!this.backWorkForm.value) {
|
|
2011
|
1966
|
this.$message.warning("请选择原因");
|
|
|
1967
|
+ this.loading = false // 关闭loading
|
|
2012
|
1968
|
return;
|
|
2013
|
1969
|
}
|
|
2014
|
1970
|
if (this.backWorkForm.value === "其他") {
|
|
2015
|
1971
|
if (!this.backWorkForm.BackReason) {
|
|
2016
|
1972
|
this.$message.warning("请输入其他原因");
|
|
|
1973
|
+ this.loading = false // 关闭loading
|
|
2017
|
1974
|
return;
|
|
2018
|
1975
|
}
|
|
2019
|
1976
|
}
|
|
|
@@ -2021,11 +1978,13 @@
|
|
2021
|
1978
|
if (formName === "ywzxbackWorkForm") {
|
|
2022
|
1979
|
if (!this.ywzxbackWorkForm.value) {
|
|
2023
|
1980
|
this.$message.warning("请选择原因");
|
|
|
1981
|
+ this.loading = false // 关闭loading
|
|
2024
|
1982
|
return;
|
|
2025
|
1983
|
}
|
|
2026
|
1984
|
if (this.ywzxbackWorkForm.value === "其他") {
|
|
2027
|
1985
|
if (!this.ywzxbackWorkForm.reason) {
|
|
2028
|
1986
|
this.$message.warning("请输入其他原因");
|
|
|
1987
|
+ this.loading = false // 关闭loading
|
|
2029
|
1988
|
return;
|
|
2030
|
1989
|
}
|
|
2031
|
1990
|
}
|
|
|
@@ -2125,8 +2084,9 @@
|
|
2125
|
2084
|
if (this.postEvent) {
|
|
2126
|
2085
|
new Promise((resolve) => {
|
|
2127
|
2086
|
this.postEvent(params).then((response) => {
|
|
2128
|
|
- console.log("处理结果", this.optionName);
|
|
|
2087
|
+ console.log("处理结果", this.optionName,response.state);
|
|
2129
|
2088
|
if (response.state === "success") {
|
|
|
2089
|
+ this.loading = false //关闭loading
|
|
2130
|
2090
|
this.$message({
|
|
2131
|
2091
|
type: "success",
|
|
2132
|
2092
|
message: "操作成功!",
|
|
|
@@ -2267,15 +2227,23 @@
|
|
2267
|
2227
|
}
|
|
2268
|
2228
|
this.$emit("refList", {});
|
|
2269
|
2229
|
} else {
|
|
|
2230
|
+ this.loading = false //关闭loading
|
|
2270
|
2231
|
this.$message({
|
|
2271
|
2232
|
type: "info",
|
|
2272
|
2233
|
message: response.message,
|
|
2273
|
2234
|
});
|
|
2274
|
2235
|
}
|
|
2275
|
|
- });
|
|
|
2236
|
+ })
|
|
|
2237
|
+ .catch((err)=>{
|
|
|
2238
|
+ console.log(err)
|
|
|
2239
|
+ this.loading = false //关闭loading
|
|
|
2240
|
+ })
|
|
2276
|
2241
|
resolve();
|
|
2277
|
2242
|
});
|
|
2278
|
2243
|
}
|
|
|
2244
|
+ }else{
|
|
|
2245
|
+ console.log(111)
|
|
|
2246
|
+ this.loading = false //关闭loading
|
|
2279
|
2247
|
}
|
|
2280
|
2248
|
});
|
|
2281
|
2249
|
},
|