gjy 2 năm trước cách đây
mục cha
commit
504fe6f2dc
1 tập tin đã thay đổi với 10 bổ sung45 xóa
  1. 10 45
      pages/erpbusiness/add_quality_testing.vue

+ 10 - 45
pages/erpbusiness/add_quality_testing.vue

@@ -796,18 +796,9 @@
 						that.purchasePriceList = uni.getStorageSync('purchasePriceList')
 					}
 
-					// for (let i = 0; i < res.data.data.length; i++) {
-					// 	this.goodsList.push(res.data.data[i].goodsName)
-					// }
-					// if(this.goodsList.some(item=>{return item.goodsName=='玉米'})){
-					// 	this.gridList.goodsName='玉米'
-					// 	uni.setStorageSync('goodsName',this.gridList.goodsName)
-					// }else{
-					// 	this.gridList.goodsName=this.goodsList[0].goodsName
-					// 	uni.setStorageSync('goodsName',this.gridList.goodsName)
-					// }
 				}
 			})
+			console.log(this.gridList)
 			this.gridListInit = this.gridList
 		},
 		onShow() {
@@ -860,17 +851,6 @@
 				}
 				// this.taskNolist=res.data.data
 			})
-			// this.$api.doRequest('get', '/warehouseBaseInfo/selectContractNoList', {
-			// 	flag: this.contractFlag,
-
-			// }).then(res => {
-			// 	if (res.data.data) {
-			// 		console.log(res.data.data)
-			// 		
-			// 	}
-			// 	this.contractNolist = res.data.data
-			// })
-
 			if (uni.getStorageSync('checkcustomer')) {
 
 				let _customerInfo = uni.getStorageSync('checkcustomer')
@@ -949,37 +929,22 @@
 				}
 			},
 			groupChange(e) {
-				console.log(e)
-				this.gridList = JSON.parse(JSON.stringify(this.gridListInit))
+				console.log(e,this.gridListInit)
+				this.gridListInit.warehouseName=this.gridList.warehouseName
+				// this.gridList = JSON.parse(JSON.stringify(this.gridListInit))
+				this.gridList = this.$u.deepClone(this.gridListInit)
 				this.gridList.serviceManagementType = e
 				if (e == 1) {
 					this.gridList.qualityNo = ''
 					this.flag = 2
-					this.contractFlag = 7
+					// this.contractFlag = 7
 				} else {
 					this.flag = 3
-					this.contractFlag = 10
-					let number = '000' + this.warehouseCount
-					number = number.substring(number.length - 4, number.length)
-					this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
+					// this.contractFlag = 10
+					// let number = '000' + this.warehouseCount
+					// number = number.substring(number.length - 4, number.length)
+					// this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
 				}
-				// uni.showLoading({
-				// 	title: '加载中',
-				// 	mask: true
-				// });
-				// this.$api.doRequest('get', '/warehouseBaseInfo/selectContractNoList', {
-				// 	flag: this.contractFlag,
-				// }).then(res => {
-					
-				// 	if (res.data.data) {
-				// 		this.contractNolist = res.data.data
-				// 		uni.hideLoading()
-				// 	}
-					
-				// }).catch(error => {
-				//     uni.hideLoading()
-				// 	// this.$emit('on-error', error);
-				// });
 				this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
 					flag: this.flag,
 					warehouseName: this.gridList.warehouseName