|
@@ -34,14 +34,14 @@
|
|
|
<text class="tit">毛重(吨)</text>
|
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder-style="font-size:14px" placeholder="请输入毛重" name="input" v-model="WarehouseInOutInfo.grossWeight" @input="grossWeightInput"></input>
|
|
|
+ <input placeholder-style="font-size:14px" style="font-size: 14px;" placeholder="请输入毛重" name="input" v-model="WarehouseInOutInfo.grossWeight" @input="grossWeightInput"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
|
<view class="tit">皮重(吨)</view>
|
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
|
<view class="con-list">
|
|
|
- <input placeholder-style="font-size:14px" placeholder="请输入皮重" name="input" v-model="WarehouseInOutInfo.tare"
|
|
|
+ <input placeholder-style="font-size:14px" style="font-size: 14px;" placeholder="请输入皮重" name="input" v-model="WarehouseInOutInfo.tare"
|
|
|
@input="tareInput"></input>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -266,7 +266,9 @@ import upload from '@/components/upload.vue';
|
|
|
onShow(){
|
|
|
this.$api.doRequest('get', '/warehouseInOutInfo/selectCompId', {contractNo:this.WarehouseInOutInfo.contractNo,warehouseType:1,}).then(res => {
|
|
|
if(res.data.code==200){
|
|
|
+ console.log("selectCompId",res.data)
|
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:res.data.data,warehouseType:1,}).then(res => {
|
|
|
+ console.log("selectWarehouse",res.data)
|
|
|
if(res.data.code==200){
|
|
|
var arr=[]
|
|
|
for(var i=0;i<res.data.data.length;i++){
|
|
@@ -275,23 +277,26 @@ import upload from '@/components/upload.vue';
|
|
|
}
|
|
|
arr.push(res.data.data[i].warehouseName)
|
|
|
}
|
|
|
+ this.warehouse = arr
|
|
|
+ console.log(arr,this.warehouseIndex)
|
|
|
this.warehouselist=res.data.data
|
|
|
for(var i=0;i<this.warehouselist.length;i++){
|
|
|
if(this.warehouselist[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
|
var id=this.warehouselist[i].id
|
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {id:id,}).then(res => {
|
|
|
var arr=[]
|
|
|
- for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++){
|
|
|
+ for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++)
|
|
|
+ {
|
|
|
+ if(res.data.data.warehousePositionInfoList[i].binNumber==this.WarehouseInOutInfo.binNumber){
|
|
|
+ this.warehouseIndex1=i
|
|
|
+ }
|
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
|
}
|
|
|
this.warehouse1=arr
|
|
|
this.warehouselist11=res.data.data
|
|
|
})
|
|
|
- break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- this.warehouse=arr
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -306,6 +311,10 @@ import upload from '@/components/upload.vue';
|
|
|
this.WarehouseInOutInfo.warehouseName = option.warehouseName
|
|
|
this.WarehouseInOutInfo.id = option.id
|
|
|
this.WarehouseInOutInfo.carNo = option.carNo
|
|
|
+ this.WarehouseInOutInfo.addressUrl = option.addressUrl
|
|
|
+ this.WarehouseInOutInfo.binNumber = option.binNumber
|
|
|
+ this.WarehouseInOutInfo.inOutDate = option.inOutDate
|
|
|
+ debugger
|
|
|
var date=new Date()
|
|
|
var year=date.getFullYear()
|
|
|
var month=date.getMonth()
|
|
@@ -314,6 +323,7 @@ import upload from '@/components/upload.vue';
|
|
|
month="0"+(month+1)
|
|
|
}
|
|
|
this.time = year+'-'+month+"-"+date1
|
|
|
+ this.getList(this.WarehouseInOutInfo.id)
|
|
|
},
|
|
|
methods: {
|
|
|
getList(id1){
|
|
@@ -325,7 +335,7 @@ import upload from '@/components/upload.vue';
|
|
|
that.list = that.WarehouseInOutInfo.warehouseInOutDetail
|
|
|
}
|
|
|
this.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
|
- this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
+ this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
|
})
|
|
|
.catch(res => {
|