|
@@ -34,14 +34,14 @@
|
|
<text class="tit">毛重(吨)</text>
|
|
<text class="tit">毛重(吨)</text>
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
<view class="con-list">
|
|
<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>
|
|
</view>
|
|
<view class="c-row b-b">
|
|
<view class="c-row b-b">
|
|
<view class="tit">皮重(吨)</view>
|
|
<view class="tit">皮重(吨)</view>
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
<view style="color: #ff0000; padding-left: 10rpx;">*</view>
|
|
<view class="con-list">
|
|
<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>
|
|
@input="tareInput"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -215,7 +215,7 @@ import upload from '@/components/upload.vue';
|
|
contractNo: {},
|
|
contractNo: {},
|
|
carNo: {},
|
|
carNo: {},
|
|
},
|
|
},
|
|
- //pinIndex: '不限(默认)',
|
|
|
|
|
|
+ pinIndex: 0,
|
|
pinTypes: '',
|
|
pinTypes: '',
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
ruIndex: '采购入库',
|
|
ruIndex: '采购入库',
|
|
@@ -237,7 +237,7 @@ import upload from '@/components/upload.vue';
|
|
month: true,
|
|
month: true,
|
|
day: true,
|
|
day: true,
|
|
},
|
|
},
|
|
- show:false
|
|
|
|
|
|
+ show:false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -264,19 +264,43 @@ import upload from '@/components/upload.vue';
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
- this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {compId:'2710b21efc1e4393930c5dc800010dc4',warehouseType:1,}).then(res => {
|
|
|
|
- if(res.data.code==200){
|
|
|
|
- var arr=[]
|
|
|
|
- for(var i=0;i<res.data.data.length;i++){
|
|
|
|
- if(res.data.data[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
|
|
- this.warehouseIndex=i
|
|
|
|
- }
|
|
|
|
- arr.push(res.data.data[i].warehouseName)
|
|
|
|
|
|
+ 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++){
|
|
|
|
+ if(res.data.data[i].warehouseName==this.WarehouseInOutInfo.warehouseName){
|
|
|
|
+ this.warehouseIndex=i
|
|
|
|
+ }
|
|
|
|
+ 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++)
|
|
|
|
+ {
|
|
|
|
+ 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
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- this.warehouselist=res.data.data
|
|
|
|
- this.warehouse=arr
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ })
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
this.WarehouseInOutInfo.contractNo = option.contractNo
|
|
this.WarehouseInOutInfo.contractNo = option.contractNo
|
|
@@ -287,6 +311,10 @@ import upload from '@/components/upload.vue';
|
|
this.WarehouseInOutInfo.warehouseName = option.warehouseName
|
|
this.WarehouseInOutInfo.warehouseName = option.warehouseName
|
|
this.WarehouseInOutInfo.id = option.id
|
|
this.WarehouseInOutInfo.id = option.id
|
|
this.WarehouseInOutInfo.carNo = option.carNo
|
|
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 date=new Date()
|
|
var year=date.getFullYear()
|
|
var year=date.getFullYear()
|
|
var month=date.getMonth()
|
|
var month=date.getMonth()
|
|
@@ -295,6 +323,7 @@ import upload from '@/components/upload.vue';
|
|
month="0"+(month+1)
|
|
month="0"+(month+1)
|
|
}
|
|
}
|
|
this.time = year+'-'+month+"-"+date1
|
|
this.time = year+'-'+month+"-"+date1
|
|
|
|
+ this.getList(this.WarehouseInOutInfo.id)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList(id1){
|
|
getList(id1){
|
|
@@ -302,12 +331,11 @@ import upload from '@/components/upload.vue';
|
|
this.$api.doRequest('get','/warehouseInOutInfo/getInfo',{id:id1}).then(res => {
|
|
this.$api.doRequest('get','/warehouseInOutInfo/getInfo',{id:id1}).then(res => {
|
|
|
|
|
|
that.WarehouseInOutInfo = res.data.data
|
|
that.WarehouseInOutInfo = res.data.data
|
|
- console.log(that.WarehouseInOutInfo.warehouseInOutDetail != null)
|
|
|
|
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.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
- this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
|
|
|
+ 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 => {
|
|
@@ -330,7 +358,6 @@ import upload from '@/components/upload.vue';
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {id:id,}).then(res => {
|
|
this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {id:id,}).then(res => {
|
|
var arr=[]
|
|
var arr=[]
|
|
for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++){
|
|
for(var i=0;i<res.data.data.warehousePositionInfoList.length;i++){
|
|
- console.log(res.data.data.warehousePositionInfoList[i])
|
|
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
}
|
|
}
|
|
this.warehouse1=arr
|
|
this.warehouse1=arr
|
|
@@ -340,7 +367,13 @@ import upload from '@/components/upload.vue';
|
|
warehouseChange1(e){
|
|
warehouseChange1(e){
|
|
var id=''
|
|
var id=''
|
|
this.warehouseIndex1=e.detail.value
|
|
this.warehouseIndex1=e.detail.value
|
|
- this.WarehouseInOutInfo.binNumber=this.warehouse1[this.warehouseIndex1]
|
|
|
|
|
|
+ this.WarehouseInOutInfo.binNumberKey = this.warehouseIndex1
|
|
|
|
+ this.WarehouseInOutInfo.binNumber = this.warehouse1[this.warehouseIndex1]
|
|
|
|
+ for (var i = 0; i < this.binNumber.length; i++) {
|
|
|
|
+ if(this.binNumber[i].binNumber==this.warehouse1[this.warehouseIndex1]){
|
|
|
|
+ this.WarehouseInOutInfo.baseId=this.binNumber[i].baseId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
},
|
|
},
|
|
DateChange(e) {
|
|
DateChange(e) {
|
|
this.WarehouseInOutInfo.inOutDate=e.year+'-'+e.month+'-'+e.day
|
|
this.WarehouseInOutInfo.inOutDate=e.year+'-'+e.month+'-'+e.day
|
|
@@ -485,8 +518,8 @@ import upload from '@/components/upload.vue';
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- uni.navigateBack({})
|
|
|
|
- }, 200)
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 1000)
|
|
}else{
|
|
}else{
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|
|
@@ -495,7 +528,6 @@ import upload from '@/components/upload.vue';
|
|
})
|
|
})
|
|
}
|
|
}
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
-
|
|
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|
|
@@ -644,8 +676,8 @@ import upload from '@/components/upload.vue';
|
|
icon: 'none'
|
|
icon: 'none'
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
- uni.navigateBack({})
|
|
|
|
- }, 200)
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ }, 1000)
|
|
}else{
|
|
}else{
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.data.message,
|
|
title: res.data.message,
|