Sfoglia il codice sorgente

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-app

ccjgmwz 3 anni fa
parent
commit
7a5bc4da2f

+ 11 - 2
pages/erpbusiness/add_quality_testing.vue

@@ -232,7 +232,15 @@
 					buckleMiscellaneous: '',
 					buckleMiscellaneous: '',
 					carNumber:'',
 					carNumber:'',
 					customerName:'',
 					customerName:'',
-					customerPhone:''
+					customerPhone:'',
+					bulkDensity:"",
+					imperfectGrain:"",
+					waterContent:"",
+					jiaorenli:"",
+					impurity:"",
+					mildewGrain:"",
+					compName:"",
+					
 				},
 				},
 				typeList: ['潮粮', '干粮'],
 				typeList: ['潮粮', '干粮'],
 				managementType: '',
 				managementType: '',
@@ -301,7 +309,7 @@
 			this.gridList.warehouseName = options.warehouseName
 			this.gridList.warehouseName = options.warehouseName
 			this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
 			this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
 			this.cangid = options.cangid
 			this.cangid = options.cangid
-			this.gridList.compName = uni.getStorageSync('pcUserInfo').compName
+			this.gridList.compName = uni.getStorageSync('compName')
 			this.gridList.person= options.personCharge
 			this.gridList.person= options.personCharge
 			this.gridList.personPhone= options.personPhone
 			this.gridList.personPhone= options.personPhone
 			this.gridList.qualityInspector= uni.getStorageSync("userInfo").userName
 			this.gridList.qualityInspector= uni.getStorageSync("userInfo").userName
@@ -627,6 +635,7 @@
 																that.$api.msg('提交成功')
 																that.$api.msg('提交成功')
 																that.isShowPrint = true
 																that.isShowPrint = true
 																that.gridList.warehouseId = that.cangid
 																that.gridList.warehouseId = that.cangid
+																that.gridList.compId = uni.getStorageSync('pcUserInfo').compId
 																uni.setStorageSync("quality_print",that.gridList)
 																uni.setStorageSync("quality_print",that.gridList)
 																console.log('that.gridList',that.gridList)
 																console.log('that.gridList',that.gridList)
 																// uni.navigateBack({})
 																// uni.navigateBack({})

+ 1 - 0
pages/erpbusiness/sendCommand.vue

@@ -104,6 +104,7 @@
 		},
 		},
 		onShow() {
 		onShow() {
 			this.gridList = uni.getStorageSync("quality_print")
 			this.gridList = uni.getStorageSync("quality_print")
+			this.utils.nullToString(this.gridList)
 			if(!this.gridList.compId){
 			if(!this.gridList.compId){
 				this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
 				this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
 			}
 			}

+ 5 - 3
pages/erpbusiness/sm/sm.vue

@@ -120,8 +120,8 @@
 		},
 		},
 		onShow() {
 		onShow() {
 			// this.compId = "2710b21efc1e4393930c5dc800010dc4"
 			// this.compId = "2710b21efc1e4393930c5dc800010dc4"
-			// this.qualityNo = "SGRK202112200080001"
-			// this.cangid = "715d87adeea548cc9a70d03f72952816"
+			// this.qualityNo = "SGRK202201170060001"
+			// this.cangid = "374a8a02ecfe40dc9abdcd902dd564f5"
 			console.log("查看",this.qualityNo,this.compId,this.cangid)
 			console.log("查看",this.qualityNo,this.compId,this.cangid)
 			if (this.cangid) { //判断是在哪扫码进入的
 			if (this.cangid) { //判断是在哪扫码进入的
 				if(this.compId.indexOf(",") != -1){
 				if(this.compId.indexOf(",") != -1){
@@ -188,7 +188,9 @@
 						this.status = this.detailData.qualityInspectionManagement.status
 						this.status = this.detailData.qualityInspectionManagement.status
 						this.confirm = this.detailData.qualityInspectionManagement.confirm
 						this.confirm = this.detailData.qualityInspectionManagement.confirm
 						this.weightStatus = this.detailData.status
 						this.weightStatus = this.detailData.status
-						this.payStatus = this.detailData.paymentManagement.approveStatus
+						if(this.detailData.paymentManagement){
+							this.payStatus = this.detailData.paymentManagement.approveStatus
+						}	
 					})
 					})
 					.catch(res => {
 					.catch(res => {
 						if (res.message) {
 						if (res.message) {