|
@@ -17,13 +17,19 @@
|
|
<text>{{WarehouseInOutInfo.contractNo}}</text>
|
|
<text>{{WarehouseInOutInfo.contractNo}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="出库任务"' class="c-row ">
|
|
|
|
+ <text class="tit">收货方</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <text>{{WarehouseInOutInfo.consignee}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
<text class="tit">货名</text>
|
|
<text class="tit">货名</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<text>{{WarehouseInOutInfo.goodsName}}</text>
|
|
<text>{{WarehouseInOutInfo.goodsName}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row ">
|
|
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="入库任务"' class="c-row ">
|
|
<text class="tit">发车净重(吨)</text>
|
|
<text class="tit">发车净重(吨)</text>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<text>{{WarehouseInOutInfo.startWeight}}</text>
|
|
<text>{{WarehouseInOutInfo.startWeight}}</text>
|
|
@@ -35,6 +41,18 @@
|
|
<text>{{WarehouseInOutInfo.carNo}}({{this.WarehouseInOutInfo.tranCarNo}})</text>
|
|
<text>{{WarehouseInOutInfo.carNo}}({{this.WarehouseInOutInfo.tranCarNo}})</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="出库任务"' class="c-row ">
|
|
|
|
+ <text class="tit">箱号</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <text>{{WarehouseInOutInfo.boxNo}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="出库任务"' class="c-row ">
|
|
|
|
+ <text class="tit">封号</text>
|
|
|
|
+ <view class="con-list">
|
|
|
|
+ <text>{{WarehouseInOutInfo.titleNo}}</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
<view class="center">
|
|
<view class="center">
|
|
<view v-if='WarehouseInOutInfo.taskType=="入库任务"' class="title_c ">入库信息</view>
|
|
<view v-if='WarehouseInOutInfo.taskType=="入库任务"' class="title_c ">入库信息</view>
|
|
@@ -99,18 +117,18 @@
|
|
<picker v-if='WarehouseInOutInfo.taskType=="出库任务"' @change="chuChange" :value="chuIndex"
|
|
<picker v-if='WarehouseInOutInfo.taskType=="出库任务"' @change="chuChange" :value="chuIndex"
|
|
:range="chuType" class="con-list">
|
|
:range="chuType" class="con-list">
|
|
<view v-model="WarehouseInOutInfo.inOutType">
|
|
<view v-model="WarehouseInOutInfo.inOutType">
|
|
- {{chuIndex > -1?chuType[chuIndex]:'请选择入库类型'}}
|
|
|
|
|
|
+ {{chuIndex > -1?chuType[chuIndex]:'请选择出库类型'}}
|
|
</view>
|
|
</view>
|
|
</picker>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="入库任务"' class="c-row b-b">
|
|
<view class="title">扣款金额</view>
|
|
<view class="title">扣款金额</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input style="font-size:14px" placeholder="请输入扣款金额" name="input"
|
|
<input style="font-size:14px" placeholder="请输入扣款金额" name="input"
|
|
v-model="WarehouseInOutInfo.deductionAmount"></input>
|
|
v-model="WarehouseInOutInfo.deductionAmount"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="c-row b-b">
|
|
|
|
|
|
+ <view v-if='WarehouseInOutInfo.taskType=="入库任务"' class="c-row b-b">
|
|
<view class="title">扣款项</view>
|
|
<view class="title">扣款项</view>
|
|
<view class="con-list">
|
|
<view class="con-list">
|
|
<input style="font-size:14px" maxlength='16' placeholder="请输入扣款项" name="input"
|
|
<input style="font-size:14px" maxlength='16' placeholder="请输入扣款项" name="input"
|
|
@@ -126,6 +144,14 @@
|
|
</u-picker>
|
|
</u-picker>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ <!-- <view v-if='WarehouseInOutInfo.taskType=="出库任务"' class="c-row b-b">
|
|
|
|
+ <text class="tit">经办人</text>
|
|
|
|
+ <view class="con-list" @click="show1 = true">
|
|
|
|
+ {{ WarehouseInOutInfo.agent != null ? WarehouseInOutInfo.agent :'请选择经办人' }}
|
|
|
|
+ </view>
|
|
|
|
+ <u-picker @confirm="DateChange" v-model="show1" :range="selectorObj" mode="selector">
|
|
|
|
+ </u-picker>
|
|
|
|
+ </view> -->
|
|
<view class="c-row ">
|
|
<view class="c-row ">
|
|
<text class="tit">上传磅单照片</text>
|
|
<text class="tit">上传磅单照片</text>
|
|
</view>
|
|
</view>
|
|
@@ -240,11 +266,13 @@
|
|
inOutType: '采购入库',
|
|
inOutType: '采购入库',
|
|
inOutTypeKey: 1,
|
|
inOutTypeKey: 1,
|
|
},
|
|
},
|
|
|
|
+ selectorObj:[],
|
|
WarehouseInOutInfo1: {
|
|
WarehouseInOutInfo1: {
|
|
contractNo: {},
|
|
contractNo: {},
|
|
carNo: {},
|
|
carNo: {},
|
|
},
|
|
},
|
|
pinIndex: -1,
|
|
pinIndex: -1,
|
|
|
|
+ show1:false,
|
|
pinTypes: '',
|
|
pinTypes: '',
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
pinType: ['一等品', '二等品', '三等品', '等外'],
|
|
ruIndex: 0,
|
|
ruIndex: 0,
|
|
@@ -264,6 +292,7 @@
|
|
isAdd: true,
|
|
isAdd: true,
|
|
warehouselist: [],
|
|
warehouselist: [],
|
|
warehouselist1: [],
|
|
warehouselist1: [],
|
|
|
|
+ compId:'',
|
|
params: {
|
|
params: {
|
|
year: true,
|
|
year: true,
|
|
month: true,
|
|
month: true,
|
|
@@ -296,17 +325,44 @@
|
|
return new Date()
|
|
return new Date()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ onLoad(option) {
|
|
|
|
+ this.compId = option.compId
|
|
|
|
+ this.WarehouseInOutInfo.goodsName = option.goodsName
|
|
|
|
+ this.WarehouseInOutInfo.startWeight = option.startWeight
|
|
|
|
+ this.WarehouseInOutInfo1.carNo = option.carNo + '(' + option.tranCarNo + ')'
|
|
|
|
+ this.WarehouseInOutInfo.tranCarNo = option.tranCarNo
|
|
|
|
+ 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
|
|
|
|
+ var date = new Date()
|
|
|
|
+ var year = date.getFullYear()
|
|
|
|
+ var month = date.getMonth()
|
|
|
|
+ var date1 = date.getDate()
|
|
|
|
+ if (month + 1 < 10) {
|
|
|
|
+ month = "0" + (month + 1)
|
|
|
|
+ }
|
|
|
|
+ this.time = year + '-' + month + "-" + date1
|
|
|
|
+ this.getList(this.WarehouseInOutInfo.id)
|
|
|
|
+ },
|
|
onShow() {
|
|
onShow() {
|
|
- this.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {
|
|
|
|
- compId: this.WarehouseInOutInfo.compId,
|
|
|
|
|
|
+
|
|
|
|
+ var that=this
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ console.log(that.WarehouseInOutInfo)
|
|
|
|
+ that.$api.doRequest('get', '/warehouseBaseInfo/selectWarehouse', {
|
|
|
|
+ compId: that.compId,
|
|
warehouseType: 1,
|
|
warehouseType: 1,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(res,"cang")
|
|
console.log(res,"cang")
|
|
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++) {
|
|
- if (res.data.data[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
|
|
|
|
- this.warehouseIndex = i
|
|
|
|
|
|
+ console.log(res.data.data[i].warehouseName,that.WarehouseInOutInfo.warehouseName)
|
|
|
|
+ if (res.data.data[i].warehouseName == that.WarehouseInOutInfo.warehouseName) {
|
|
|
|
+ console.log(11111)
|
|
|
|
+ that.warehouseIndex = i
|
|
}
|
|
}
|
|
// if(res.data.data[i].positionId==this.WarehouseInOutInfo.positionId){
|
|
// if(res.data.data[i].positionId==this.WarehouseInOutInfo.positionId){
|
|
// this.warehouseIndex=i
|
|
// this.warehouseIndex=i
|
|
@@ -314,56 +370,36 @@
|
|
arr.push(res.data.data[i].warehouseName)
|
|
arr.push(res.data.data[i].warehouseName)
|
|
// arr.push(res.data[i].positionId)
|
|
// arr.push(res.data[i].positionId)
|
|
}
|
|
}
|
|
- this.warehouse = arr
|
|
|
|
- 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', {
|
|
|
|
|
|
+ that.warehouse = arr
|
|
|
|
+ that.warehouselist = res.data.data
|
|
|
|
+ for (var i = 0; i < that.warehouselist.length; i++) {
|
|
|
|
+ if (that.warehouselist[i].warehouseName == that.WarehouseInOutInfo.warehouseName) {
|
|
|
|
+ var id = that.warehouselist[i].id
|
|
|
|
+ that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
id: id,
|
|
id: id,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
var arr = []
|
|
var arr = []
|
|
var arr1 = []
|
|
var arr1 = []
|
|
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
|
|
|
|
|
|
+ if (res.data.data.warehousePositionInfoList[i].binNumber == that
|
|
.WarehouseInOutInfo.binNumber) {
|
|
.WarehouseInOutInfo.binNumber) {
|
|
- this.warehouseIndex1 = i
|
|
|
|
|
|
+ that.warehouseIndex1 = i
|
|
}
|
|
}
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
- this.arr1.push(res.data.data.warehousePositionInfoList[i].binNumber.id)
|
|
|
|
|
|
+ arr1.push(res.data.data.warehousePositionInfoList[i].binNumber.id)
|
|
// arr.push(res.data.data.warehousePositionInfoList[i].positionId)
|
|
// arr.push(res.data.data.warehousePositionInfoList[i].positionId)
|
|
}
|
|
}
|
|
- this.warehouse1 = arr
|
|
|
|
- this.warehouse2 = arr1
|
|
|
|
- this.warehouselist11 = res.data.data
|
|
|
|
|
|
+ that.warehouse1 = arr
|
|
|
|
+ that.warehouse2 = arr1
|
|
|
|
+ that.warehouselist11 = res.data.data
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// this.warehouse=arr
|
|
// this.warehouse=arr
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- },
|
|
|
|
- onLoad(option) {
|
|
|
|
- this.WarehouseInOutInfo.compId = option.compId
|
|
|
|
- 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
|
|
|
|
- this.WarehouseInOutInfo.addressUrl = option.addressUrl
|
|
|
|
- this.WarehouseInOutInfo.binNumber = option.binNumber
|
|
|
|
- this.WarehouseInOutInfo.inOutDate = option.inOutDate
|
|
|
|
- var date = new Date()
|
|
|
|
- var year = date.getFullYear()
|
|
|
|
- var month = date.getMonth()
|
|
|
|
- var date1 = date.getDate()
|
|
|
|
- if (month + 1 < 10) {
|
|
|
|
- month = "0" + (month + 1)
|
|
|
|
- }
|
|
|
|
- this.time = year + '-' + month + "-" + date1
|
|
|
|
- this.getList(this.WarehouseInOutInfo.id)
|
|
|
|
|
|
+ },1000)
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
navBack() {
|
|
navBack() {
|
|
@@ -745,7 +781,6 @@
|
|
this.WarehouseInOutInfo.baseId = this.warehouselist[i].id
|
|
this.WarehouseInOutInfo.baseId = this.warehouselist[i].id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.WarehouseInOutInfo.taskType = "入库任务"
|
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "正在提交"
|
|
title: "正在提交"
|
|
})
|
|
})
|
|
@@ -761,7 +796,7 @@
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: res.data.message,
|
|
|
|
|
|
+ title: '系统异常,请联系管理员',
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
@@ -770,7 +805,7 @@
|
|
|
|
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
- title: res.data.message,
|
|
|
|
|
|
+ title: '系统异常,请联系管理员',
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|