|
@@ -78,7 +78,7 @@
|
|
|
<view class="c-row b-b">
|
|
|
<text class="tit">入库类型 </text>
|
|
|
<picker @change="ruChange" :value="ruIndex" :range="ruType" class="con-list">
|
|
|
- <view >
|
|
|
+ <view v-model="WarehouseInOutInfo.inOutType">
|
|
|
{{ruIndex > -1?ruType[ruIndex]:'请选择入库类型'}}
|
|
|
</view>
|
|
|
</picker>
|
|
@@ -211,6 +211,8 @@ import upload from '@/components/upload.vue';
|
|
|
pcFlag: 0,
|
|
|
contractNo: {},
|
|
|
carNo: {},
|
|
|
+ inOutType:'采购入库',
|
|
|
+ inOutTypeKey:1,
|
|
|
},
|
|
|
WarehouseInOutInfo1: {
|
|
|
contractNo: {},
|
|
@@ -219,7 +221,7 @@ import upload from '@/components/upload.vue';
|
|
|
pinIndex: -1,
|
|
|
pinTypes: '',
|
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
|
- ruIndex: -1,
|
|
|
+ ruIndex: 0,
|
|
|
rutypes: '',
|
|
|
warehouse:[],
|
|
|
warehouseIndex:-1,
|
|
@@ -338,8 +340,9 @@ import upload from '@/components/upload.vue';
|
|
|
if(this.WarehouseInOutInfo.inOutTypeKey != null){
|
|
|
this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
}
|
|
|
-
|
|
|
- this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
|
+ if(this.WarehouseInOutInfo.deductionAmount!=null){
|
|
|
+ this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
|
+ }
|
|
|
})
|
|
|
.catch(res => {
|
|
|
if(res.errmsg){
|