ysy 2 лет назад
Родитель
Сommit
78ef5b0667
1 измененных файлов с 13 добавлено и 12 удалено
  1. 13 12
      pages/pda/turnover/index/index.vue

+ 13 - 12
pages/pda/turnover/index/index.vue

@@ -49,7 +49,7 @@
 				workOrderId: null,
 				workOrderId: null,
 				List: [],
 				List: [],
 				taskId: null,
 				taskId: null,
-	
+
 
 
 
 
 			}
 			}
@@ -133,21 +133,22 @@
 				scanLedger(result).then(res => {
 				scanLedger(result).then(res => {
 
 
 					if (res[0].rootCategoryLevelId == 7) { // 周转车
 					if (res[0].rootCategoryLevelId == 7) { // 周转车
-						let isFals = this.List[0].turnover.some(m => m.code == result)
-						if (isFals) {
-							uni.showToast({
-								title: '周转车已存在',
-								icon: 'none'
-							})
-							return false
-						}
-
-
+						// let isFals = this.List[0].turnover.some(m => m.code == result)
+						// if (isFals) {
+						// 	uni.showToast({
+						// 		title: '周转车已存在',
+						// 		icon: 'none'
+						// 	})
+						// 	return false
+						// }
+
+                          this.List[0].turnover = []
 						let _List = JSON.parse(JSON.stringify(this.List))
 						let _List = JSON.parse(JSON.stringify(this.List))
-
 						_List[0]['newTurnover'] = []
 						_List[0]['newTurnover'] = []
 
 
 
 
+
+
 						res[0].isOld = 1
 						res[0].isOld = 1
 						res[0].extInfo.positionList.length && res[0].extInfo.positionList.forEach(o => {
 						res[0].extInfo.positionList.length && res[0].extInfo.positionList.forEach(o => {
 							o['check'] = false
 							o['check'] = false