|
@@ -250,6 +250,7 @@
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
onShow() {
|
|
|
+ debugger
|
|
|
let _data = uni.getStorageSync('erpContractNo')==''?{}:uni.getStorageSync('erpContractNo')
|
|
|
if(helper.erpWarehouse.personCharge)
|
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
@@ -287,6 +288,12 @@
|
|
|
this.detailData.carNo = _data.tranCarInfoList[0].carNo
|
|
|
}
|
|
|
}
|
|
|
+ if(this.detailData.carNo){
|
|
|
+ for(let i = 0 ; i < uni.getStorageSync('erpContractNo').tranCarInfoList.length ;i++){
|
|
|
+ if(uni.getStorageSync('erpContractNo').tranCarInfoList[i].carNo == this.detailData.carNo)
|
|
|
+ this.detailData.tranCarNo = uni.getStorageSync('erpContractNo').tranCarInfoList[i].tranCarNo
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!this.detailData.contractNo) {
|
|
|
this.detailData.contractNo = '请选择合同编号'
|
|
|
}
|
|
@@ -353,6 +360,7 @@
|
|
|
this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + "-" + e.hour + "-" + e.minute + "-" + e.second
|
|
|
},
|
|
|
warehousingTypePicker(e) {
|
|
|
+ this.detailData.inOutTypeKey = e[0]+1
|
|
|
this.detailData.inOutType = this.warehousingTypeList[e].constValue
|
|
|
let _data = uni.getStorageSync('erpContractNo')==''?{}:uni.getStorageSync('erpContractNo')
|
|
|
if (this.detailData.inOutType == '采购入库') {
|