|
@@ -78,8 +78,7 @@
|
|
<text class="tit">入库类型 </text>
|
|
<text class="tit">入库类型 </text>
|
|
<picker @change="ruChange" :value="ruIndex" :range="ruType" class="con-list">
|
|
<picker @change="ruChange" :value="ruIndex" :range="ruType" class="con-list">
|
|
<view >
|
|
<view >
|
|
- {{ruIndex > -1?ruType[ruIndex]:'请选择入库类型'}}
|
|
|
|
-
|
|
|
|
|
|
+ {{ruIndex > -1?ruType[ruIndex]:'请选择入库类型'}}
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
@@ -179,7 +178,7 @@
|
|
<text class="tit">品级 </text>
|
|
<text class="tit">品级 </text>
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
<picker @change="pinChange" :value="pinIndex" :range="pinType" class="con-list">
|
|
<view >
|
|
<view >
|
|
- {{pinIndex>-1?pinType[pinIndex]:'请选择品级'}}
|
|
|
|
|
|
+ {{pinIndex > -1 ? pinType[pinIndex]:'请选择品级'}}
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
@@ -216,10 +215,10 @@ import upload from '@/components/upload.vue';
|
|
contractNo: {},
|
|
contractNo: {},
|
|
carNo: {},
|
|
carNo: {},
|
|
},
|
|
},
|
|
- pinIndex: 0,
|
|
|
|
|
|
+ pinIndex: -1,
|
|
pinTypes: '',
|
|
pinTypes: '',
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
- ruIndex: -2,
|
|
|
|
|
|
+ ruIndex: -1,
|
|
rutypes: '',
|
|
rutypes: '',
|
|
warehouse:[],
|
|
warehouse:[],
|
|
warehouseIndex:-1,
|
|
warehouseIndex:-1,
|
|
@@ -267,9 +266,7 @@ import upload from '@/components/upload.vue';
|
|
onShow(){
|
|
onShow(){
|
|
this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
|
|
this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
- console.log("selectCompId",res.data)
|
|
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:res.data.data,warehouseType:1,}).then(res => {
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:res.data.data,warehouseType:1,}).then(res => {
|
|
- console.log("selectWarehouse",res.data)
|
|
|
|
if(res.data.code==200){
|
|
if(res.data.code==200){
|
|
var arr=[]
|
|
var arr=[]
|
|
for(var i=0;i<res.data.data.length;i++){
|
|
for(var i=0;i<res.data.data.length;i++){
|
|
@@ -279,7 +276,6 @@ import upload from '@/components/upload.vue';
|
|
arr.push(res.data.data[i].warehouseName)
|
|
arr.push(res.data.data[i].warehouseName)
|
|
}
|
|
}
|
|
this.warehouse = arr
|
|
this.warehouse = arr
|
|
- console.log(arr,this.warehouseIndex)
|
|
|
|
this.warehouselist=res.data.data
|
|
this.warehouselist=res.data.data
|
|
for(var i=0;i<this.warehouselist.length;i++){
|
|
for(var i=0;i<this.warehouselist.length;i++){
|
|
if(this.warehouselist[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
if(this.warehouselist[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
@@ -335,8 +331,13 @@ import upload from '@/components/upload.vue';
|
|
if( that.WarehouseInOutInfo.warehouseInOutDetail != null){
|
|
if( that.WarehouseInOutInfo.warehouseInOutDetail != null){
|
|
that.list = that.WarehouseInOutInfo.warehouseInOutDetail
|
|
that.list = that.WarehouseInOutInfo.warehouseInOutDetail
|
|
}
|
|
}
|
|
- this.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
|
|
- this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
|
|
|
+ if(this.WarehouseInOutInfo.gradeKey != null){
|
|
|
|
+ this.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
|
|
+ }
|
|
|
|
+ if(this.WarehouseInOutInfo.inOutTypeKey != null){
|
|
|
|
+ this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
|
+ }
|
|
|
|
+
|
|
this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
})
|
|
})
|
|
.catch(res => {
|
|
.catch(res => {
|