liuzhihui 2 gadi atpakaļ
vecāks
revīzija
59fa24d485

+ 23 - 9
CallCenterWeb.UI/RMYYAPP/pages/myTask/comDispatch/addComDispatch/addComDispatch.vue

@@ -198,7 +198,7 @@
198 198
 				dicList: [{
199 199
 					F_DicId: 0,
200 200
 					F_DicName: '',
201
-					F_Number: 1,
201
+					F_Number: 0,
202 202
 					F_IsBorrow: '',
203 203
 					F_ToDept: '',
204 204
 				}],
@@ -379,7 +379,7 @@
379 379
 					this.dicList = [{
380 380
 						F_DicId: 0,
381 381
 						F_DicName: '',
382
-						F_Number: 1
382
+						F_Number: 0
383 383
 					}]
384 384
 				}else{
385 385
 					this.dicList = 0
@@ -396,7 +396,7 @@
396 396
 				const params = {
397 397
 					F_DicId: 0,
398 398
 					F_DicName: '',
399
-					F_Number: 1
399
+					F_Number: 0
400 400
 				}
401 401
 				this.dicList.push(params)
402 402
 
@@ -497,16 +497,30 @@
497 497
 					}
498 498
 				}
499 499
 				if(this.identification === '2001' || this.identification === '2003'|| this.identification === 'YQT'){
500
-					if(this.dicList.length > 0 && !this.dicList[0].F_IsBorrow){
501
-						this.$mHelper.toast('请选择对应物资信息')
502
-						return
500
+					const index = this.dicList.findIndex((o) => {
501
+					  return !o.F_IsBorrow || !o.F_DicName || !o.F_Number;
502
+					});
503
+					if (index >= 0) {
504
+					  this.$mHelper.toast('请选择对应物资信息')
505
+					  return;
503 506
 					}
507
+					// if(this.dicList.length > 0 && !this.dicList[0].F_IsBorrow){
508
+					// 	this.$mHelper.toast('请选择对应物资信息')
509
+					// 	return
510
+					// }
504 511
 				}
505 512
 				if(this.identification === '2007'){
506
-					if(this.dicList.length > 0 && !this.dicList[0].F_ToDept){
507
-						this.$mHelper.toast('请选择对应物资信息')
508
-						return
513
+					const index = this.dicList.findIndex((o) => {
514
+					  return !o.F_ToDept || !o.F_DicName || !o.F_Number;
515
+					});
516
+					if (index >= 0) {
517
+					  this.$mHelper.toast('请选择对应物资信息')
518
+					  return;
509 519
 					}
520
+					// if(this.dicList.length > 0 && !this.dicList[0].F_ToDept){
521
+					// 	this.$mHelper.toast('请选择对应物资信息')
522
+					// 	return
523
+					// }
510 524
 				}
511 525
 				if(this.dicList.length == 0 || (this.dicList.length>0 && !this.dicList[0].F_DicName)){
512 526
 					this.dicList = null