Jelajahi Sumber

解决扫码报错

zhongtianhaoyuan 3 tahun lalu
induk
melakukan
531481b505
1 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 7 4
      pages/erpbusiness/sm/sm.vue

+ 7 - 4
pages/erpbusiness/sm/sm.vue

@@ -119,9 +119,9 @@
 			//#endif
 		},
 		onShow() {
-			// this.compId = "2710b21efc1e4393930c5dc800010dc4"
-			// this.qualityNo = "SGRK202112200080001"
-			// this.cangid = "715d87adeea548cc9a70d03f72952816"
+			this.compId = "2710b21efc1e4393930c5dc800010dc4"
+			this.qualityNo = "SGRK202201170060001"
+			this.cangid = "374a8a02ecfe40dc9abdcd902dd564f5"
 			console.log("查看",this.qualityNo,this.compId,this.cangid)
 			if (this.cangid) { //判断是在哪扫码进入的
 				if(this.compId.indexOf(",") != -1){
@@ -183,12 +183,15 @@
 					number: this.qualityNo,
 					warehouseId: this.cangid
 				}
+				console.log("a-------------",this.detailData.paymentManagement)
 				this.$api.doRequest('get', '/weighingManagement/getQRcode', tmp).then(res => {
 						this.detailData = res.data.data
 						this.status = this.detailData.qualityInspectionManagement.status
 						this.confirm = this.detailData.qualityInspectionManagement.confirm
 						this.weightStatus = this.detailData.status
-						this.payStatus = this.detailData.paymentManagement.approveStatus
+						if(this.detailData.paymentManagement){
+							this.payStatus = this.detailData.paymentManagement.approveStatus
+						}	
 					})
 					.catch(res => {
 						if (res.message) {