gjy 2 年之前
父節點
當前提交
299a086ad2
共有 1 個文件被更改,包括 12 次插入10 次删除
  1. 12 10
      pages/erp/exWarehousing/exWarehousing.vue

+ 12 - 10
pages/erp/exWarehousing/exWarehousing.vue

@@ -553,6 +553,11 @@
 				console.log(e)
 				console.log(e)
 				this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
 				this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
 				this.detailData.inOutType  = this.inOutNoList[e[0]].inOutType
 				this.detailData.inOutType  = this.inOutNoList[e[0]].inOutType
+				this.detailData.goodsName = this.inOutNoList[e[0]].goodsName
+				this.detailData.goodsNameKey = this.inOutNoList[e[0]].goodsNameKey
+				this.detailData.grade = this.inOutNoList[e[0]].grade
+				// this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
+				this.weightbills.goodsName = this.inOutNoList[e[0]].goodsName
 				// this.contractType = this.inOutNoList[e[0]].contractType //获取合同类型   用于判断输入车牌号
 				// this.contractType = this.inOutNoList[e[0]].contractType //获取合同类型   用于判断输入车牌号
 				this.detailData.agent = this.inOutNoList[e[0]].agent
 				this.detailData.agent = this.inOutNoList[e[0]].agent
 				if (this.inOutNoList[e[0]].contractNo) {
 				if (this.inOutNoList[e[0]].contractNo) {
@@ -578,24 +583,18 @@
 						}
 						}
 						this.carList = res.data.data.tranCarInfoList //车牌号下拉列表
 						this.carList = res.data.data.tranCarInfoList //车牌号下拉列表
 					}
 					}
-				})
-				this.detailData.goodsName = this.inOutNoList[e[0]].goodsName
-				this.detailData.goodsNameKey = this.inOutNoList[e[0]].goodsNameKey
-				this.detailData.grade = this.inOutNoList[e[0]].grade
-				// this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
-				this.weightbills.goodsName = this.inOutNoList[e[0]].goodsName
 				if (this.detailData.inOutType == '销售出库') {
 				if (this.detailData.inOutType == '销售出库') {
 					this.weightbills.buyer = this.inOutNoList[e[0]].buyer
 					this.weightbills.buyer = this.inOutNoList[e[0]].buyer
 					if(uni.getStorageSync('compName1')){
 					if(uni.getStorageSync('compName1')){
 						this.weightbills.seller = uni.getStorageSync('compName1').company
 						this.weightbills.seller = uni.getStorageSync('compName1').company
 					}
 					}
-					if (this.detailData.tips = '买方' + this.contractNoList[e[0]].buyer) {
-						this.detailData.tips = '买方' + this.contractNoList[e[0]].buyer +
+					if (this.detailData.tips = '买方' + this.contractList.buyer) {
+						this.detailData.tips = '买方' + this.contractList.buyer +
 							'( ' +
 							'( ' +
-							this.contractNoList[e[0]].unitContractPrice +
+							this.contractList.unitContractPrice +
 							'元/吨)'
 							'元/吨)'
 					} else {
 					} else {
-						this.detailData.tips = '买方' + this.contractNoList[e[0]].buyer
+						this.detailData.tips = '买方' + this.contractList.buyer
 					}
 					}
 				} else if (this.detailData.inOutType == '移库出库') {
 				} else if (this.detailData.inOutType == '移库出库') {
 					this.weightbills.buyer = this.inOutNoList[e[0]].receiveWarehouse
 					this.weightbills.buyer = this.inOutNoList[e[0]].receiveWarehouse
@@ -604,6 +603,9 @@
 					}
 					}
 					this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
 					this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
 				}
 				}
+				})
+				
+				
 			},
 			},
 			toUpperCase(val) {
 			toUpperCase(val) {
 				this.detailData.boxNo = val.detail.value.toUpperCase()
 				this.detailData.boxNo = val.detail.value.toUpperCase()