|
@@ -245,22 +245,20 @@
|
|
this.cangId = options.cangId
|
|
this.cangId = options.cangId
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
|
|
+ let _data = uni.getStorageSync('erpContractNo')
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
- this.detailData.goodsName = uni.getStorageSync('erpContractNo').goodsName;
|
|
|
|
- if (uni.getStorageSync('erpContractNo').contractNo) {
|
|
|
|
- this.detailData.contractNo = uni.getStorageSync('erpContractNo').contractNo;
|
|
|
|
|
|
+ this.detailData.goodsName = _data.goodsName;
|
|
|
|
+ if (_data.contractNo) {
|
|
|
|
+ this.detailData.contractNo = _data.contractNo;
|
|
}
|
|
}
|
|
- this.detailData.goodsNameKey = uni.getStorageSync('erpContractNo').goodsNameKey;
|
|
|
|
- if (!uni.getStorageSync('erpContractNo').tranCarInfoList)
|
|
|
|
- uni.getStorageSync('erpContractNo').tranCarInfoList = []
|
|
|
|
|
|
+ this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
|
|
+ if (!_data.tranCarInfoList) _data.tranCarInfoList = []
|
|
if (!this.detailData.contractNo) {
|
|
if (!this.detailData.contractNo) {
|
|
this.detailData.contractNo = '请选择合同编号'
|
|
this.detailData.contractNo = '请选择合同编号'
|
|
} else {
|
|
} else {
|
|
- if (uni.getStorageSync('erpContractNo').tranCarInfoList) {
|
|
|
|
- if (uni.getStorageSync('erpContractNo').tranCarInfoList.length == 0) {
|
|
|
|
- this.isPC = false
|
|
|
|
- }
|
|
|
|
|
|
+ if (_data.tranCarInfoList.length == 0) {
|
|
|
|
+ this.isPC = false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!this.detailData.goodsName) {
|
|
if (!this.detailData.goodsName) {
|
|
@@ -274,7 +272,7 @@
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
//经办人
|
|
//经办人
|
|
this.handler()
|
|
this.handler()
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//计算纯重
|
|
//计算纯重
|