|
@@ -82,9 +82,9 @@
|
|
|
<u-picker v-model="show4" mode="time" @confirm='dateChange($event)' :params="params">
|
|
|
</u-picker>
|
|
|
</view>
|
|
|
- <view class="row">
|
|
|
+ <view class="row row-bottom">
|
|
|
<view class="left">入库类型</view>
|
|
|
- <view @click='show5=true'>{{detailData.inOutType}}</view>
|
|
|
+ <input v-model='detailData.inOutType' class="right-bottom" @click="show5=true" :disabled="isSelectType"></input>
|
|
|
<u-picker :range="warehousingTypeList" range-key="constValue" @confirm='warehousingTypePicker($event)'
|
|
|
v-model="show5" mode="selector">
|
|
|
</u-picker>
|
|
@@ -184,6 +184,7 @@
|
|
|
show5: false,
|
|
|
show6: false,
|
|
|
isPC: true,
|
|
|
+ isSelectType:true,
|
|
|
params: {
|
|
|
year: true,
|
|
|
month: true,
|
|
@@ -215,7 +216,7 @@
|
|
|
}
|
|
|
],
|
|
|
handlerList: [],
|
|
|
- warehousingTypeList: [],
|
|
|
+ warehousingTypeList: [{constValue:'移库入库'},{constValue:'退库'}],
|
|
|
action: this.$uploadUrl,
|
|
|
maxSize: 50 * 1024 * 1024, //限制文件大小 50M
|
|
|
btnLoading: false, //防止重复点击
|
|
@@ -241,7 +242,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- onLoad(options) {debugger
|
|
|
+ onLoad(options) {
|
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
|
this.compId = helper.erpWarehouse.compId
|
|
@@ -249,13 +250,15 @@
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
|
},
|
|
|
- onShow() {debugger
|
|
|
+ onShow() {
|
|
|
+ console.log("当前合同",uni.getStorageSync('erpContractNo'))
|
|
|
let _data = uni.getStorageSync('erpContractNo')==''?{}:uni.getStorageSync('erpContractNo')
|
|
|
if(helper.erpWarehouse.personCharge)
|
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
|
this.detailData.goodsName = _data.goodsName;
|
|
|
this.detailData.contractNo = _data.contractNo;
|
|
|
this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
|
+ this.detailData.inOutType = _data.inOutType;
|
|
|
if(_data.unitContractPrice) {
|
|
|
this.detailData.cost = _data.unitContractPrice
|
|
|
}
|
|
@@ -264,8 +267,13 @@
|
|
|
this.detailData.inOutDate = _day.getFullYear() + "-" + (_day.getMonth() + 1) + "-" + _day.getDate();
|
|
|
if (_data.inOutType == '采购入库') {
|
|
|
this.detailData.freight = 0
|
|
|
- }else{this.detailData.freight = uni.getStorageSync('CarFreight')}
|
|
|
-
|
|
|
+ }else if(_data.inOutType == '移库入库'){
|
|
|
+ this.isSelectType = true
|
|
|
+ }
|
|
|
+
|
|
|
+ else{this.detailData.freight = uni.getStorageSync('CarFreight')
|
|
|
+ }
|
|
|
+ this.changeType()
|
|
|
if (!_data.tranCarInfoList){
|
|
|
this.isPC = false
|
|
|
this.detailData.carNo = ""
|
|
@@ -305,7 +313,7 @@
|
|
|
this.detailData.goodsName = '货名'
|
|
|
}
|
|
|
// 获取入库类型
|
|
|
- this.getrkType()
|
|
|
+ // this.getrkType()
|
|
|
//获取经办人
|
|
|
this.getPerson()
|
|
|
|
|
@@ -316,6 +324,10 @@
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+ changeType(){
|
|
|
+ this.inOutType
|
|
|
+
|
|
|
+ },
|
|
|
//计算纯重
|
|
|
pureWeightCount() {
|
|
|
if (this.netWeight && this.detailData.buckleWeightRatio && this.detailData.solidGrainWater && this
|