|
@@ -23,7 +23,7 @@
|
|
|
<view class="c-row ">
|
|
|
<text class="tit">车牌号</text>
|
|
|
<view class="con-list">
|
|
|
- <text>{{WarehouseInOutInfo1.carNo}}</text>
|
|
|
+ <text>{{WarehouseInOutInfo.carNo}}({{this.WarehouseInOutInfo.tranCarNo}})</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -105,6 +105,7 @@
|
|
|
<text class="tit">上传磅单照片</text>
|
|
|
</view>
|
|
|
<upload
|
|
|
+ v-if="WarehouseInOutInfo.addressUrl == null || WarehouseInOutInfo.addressUrl == ''"
|
|
|
class="upload"
|
|
|
ref="upload"
|
|
|
:action="action"
|
|
@@ -116,6 +117,7 @@
|
|
|
@on-uploaded="isAdd = true"
|
|
|
:before-upload="filterFileType"
|
|
|
></upload>
|
|
|
+ <image v-bind:src="WarehouseInOutInfo.addressUrl" mode="" v-if="WarehouseInOutInfo.addressUrl != null || WarehouseInOutInfo.addressUrl != ''" class="picture"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -281,6 +283,7 @@ import upload from '@/components/upload.vue';
|
|
|
this.WarehouseInOutInfo.goodsName = option.goodsName
|
|
|
this.WarehouseInOutInfo.startWeight = option.startWeight
|
|
|
this.WarehouseInOutInfo1.carNo = option.carNo + '(' + option.tranCarNo + ')'
|
|
|
+ this.WarehouseInOutInfo.tranCarNo = option.tranCarNo
|
|
|
this.WarehouseInOutInfo.warehouseName = option.warehouseName
|
|
|
this.WarehouseInOutInfo.id = option.id
|
|
|
this.WarehouseInOutInfo.carNo = option.carNo
|
|
@@ -292,8 +295,27 @@ import upload from '@/components/upload.vue';
|
|
|
month="0"+(month+1)
|
|
|
}
|
|
|
this.time = year+'-'+month+"-"+date1
|
|
|
+ this.getList(this.WarehouseInOutInfo.id)
|
|
|
},
|
|
|
methods: {
|
|
|
+ getList(id1){
|
|
|
+ var that=this
|
|
|
+ this.$api.doRequest('get','/warehouseInOutInfo/getInfo',{id:id1}).then(res => {
|
|
|
+
|
|
|
+ that.WarehouseInOutInfo = res.data.data
|
|
|
+ that.list = that.WarehouseInOutInfo.warehouseInOutDetail
|
|
|
+ this.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
|
+ this.WarehouseInOutInfo.deductionAmount = Math.abs(res.data.data.deductionAmount)
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.errmsg,
|
|
|
+ icon:'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ });
|
|
|
+ },
|
|
|
warehouseChange(e){
|
|
|
var id=''
|
|
|
this.warehouseIndex=e.detail.value
|
|
@@ -334,7 +356,7 @@ import upload from '@/components/upload.vue';
|
|
|
}
|
|
|
},
|
|
|
getImgUrl(res) {
|
|
|
- this.imgUrls.push(res.data);
|
|
|
+ this.imgUrls.push(res);
|
|
|
},
|
|
|
onRemove(index) {
|
|
|
this.imgUrls.splice(index, 1);
|
|
@@ -344,8 +366,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('毛重输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.grossWeight.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.grossWeight.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.grossWeight.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.grossWeight.toString().split('.')[1].length>2){
|
|
|
this.$api.msg('毛重输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -354,8 +376,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('皮重输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.tare.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.tare.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.tare.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.tare.toString().split('.')[1].length>2){
|
|
|
this.$api.msg('皮重输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -364,8 +386,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('扣款金额输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.deductionAmount&&this.WarehouseInOutInfo.deductionAmount.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.deductionAmount.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.deductionAmount&&this.WarehouseInOutInfo.deductionAmount.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.deductionAmount.toString().split('.')[1].length>2){
|
|
|
this.$api.msg('扣款金额输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -460,7 +482,9 @@ import upload from '@/components/upload.vue';
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
- uni.navigateBack({})
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack({})
|
|
|
+ }, 200)
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
title: res.data.message,
|
|
@@ -500,8 +524,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('毛重输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.grossWeight.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.grossWeight.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.grossWeight.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.grossWeight.toString().split('.')[1].length>2){
|
|
|
this.$api.msg('毛重输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -510,8 +534,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('皮重输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.tare.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.tare.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.tare.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.toString().tare.split('.')[1].length>2){
|
|
|
this.$api.msg('皮重输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -520,8 +544,8 @@ import upload from '@/components/upload.vue';
|
|
|
this.$api.msg('扣款金额输入错误')
|
|
|
return
|
|
|
}
|
|
|
- if(this.WarehouseInOutInfo.deductionAmount&&this.WarehouseInOutInfo.deductionAmount.indexOf('.')!=-1){
|
|
|
- if(this.WarehouseInOutInfo.deductionAmount.split('.')[1].length>2){
|
|
|
+ if(this.WarehouseInOutInfo.deductionAmount&&this.WarehouseInOutInfo.deductionAmount.toString().indexOf('.')!=-1){
|
|
|
+ if(this.WarehouseInOutInfo.deductionAmount.toString().split('.')[1].length>2){
|
|
|
this.$api.msg('扣款金额输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -606,11 +630,11 @@ import upload from '@/components/upload.vue';
|
|
|
}
|
|
|
this.WarehouseInOutInfo.warehouseInOutDetail = this.list
|
|
|
this.WarehouseInOutInfo.statusFlag = 3
|
|
|
+ this.WarehouseInOutInfo.pcFlag = 0
|
|
|
this.WarehouseInOutInfo.taskType = "入库任务"
|
|
|
uni.showLoading({
|
|
|
title:"正在提交"
|
|
|
})
|
|
|
-
|
|
|
this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.WarehouseInOutInfo).then(res => {
|
|
|
if(res.data.code==200){
|
|
|
uni.showToast({
|
|
@@ -659,10 +683,12 @@ import upload from '@/components/upload.vue';
|
|
|
}
|
|
|
},
|
|
|
ruChange(e) {
|
|
|
+ this.ruIndex = e.detail.value
|
|
|
this.WarehouseInOutInfo.inOutTypeKey = e.detail.value
|
|
|
this.WarehouseInOutInfo.inOutType = this.ruType[this.ruIndex];
|
|
|
},
|
|
|
pinChange(e) {
|
|
|
+ this.pinIndex = e.detail.value
|
|
|
this.WarehouseInOutInfo.gradeKey = e.detail.value
|
|
|
this.WarehouseInOutInfo.grade = this.pinType[this.pinIndex];
|
|
|
},
|
|
@@ -808,10 +834,14 @@ import upload from '@/components/upload.vue';
|
|
|
font-size: 46upx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
.container{
|
|
|
padding-bottom: 160upx;
|
|
|
}
|
|
|
+ .picture{
|
|
|
+ width: 75px;
|
|
|
+ height: 75px;
|
|
|
+ border-radius: 10px;
|
|
|
+ margin-left: 16px;
|
|
|
+ }
|
|
|
</style>
|