|
@@ -80,9 +80,7 @@
|
|
<view class="left">入库日期</view>
|
|
<view class="left">入库日期</view>
|
|
<view @click='show4=true'>{{detailData.inOutDate}}</view>
|
|
<view @click='show4=true'>{{detailData.inOutDate}}</view>
|
|
<u-picker v-model="show4" mode="time" @confirm='dateChange($event)' :params="params">
|
|
<u-picker v-model="show4" mode="time" @confirm='dateChange($event)' :params="params">
|
|
- <!-- <view >{{detailData.inOutDate ? detailData.inOutDate:"请选择日期" }}</view> -->
|
|
|
|
</u-picker>
|
|
</u-picker>
|
|
- <!-- <u-calendar v-model="show4" mode="date" @change='dateChange'></u-calendar> -->
|
|
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">入库类型</view>
|
|
<view class="left">入库类型</view>
|
|
@@ -132,7 +130,7 @@
|
|
<input @input='' v-model='detailData.warehouseInOutDetail.waterContent' class="right-bottom"
|
|
<input @input='' v-model='detailData.warehouseInOutDetail.waterContent' class="right-bottom"
|
|
placeholder="输入水分占比"></input>
|
|
placeholder="输入水分占比"></input>
|
|
</view>
|
|
</view>
|
|
- <view class="row row-bottom" style="border: 0;">
|
|
|
|
|
|
+ <view class="row row-bottom">
|
|
<view class="left">容重(克/升)</view>
|
|
<view class="left">容重(克/升)</view>
|
|
<input v-model='detailData.warehouseInOutDetail.bulkDensity' class="right-bottom"
|
|
<input v-model='detailData.warehouseInOutDetail.bulkDensity' class="right-bottom"
|
|
placeholder="输入容重"></input>
|
|
placeholder="输入容重"></input>
|
|
@@ -190,17 +188,12 @@
|
|
year: true,
|
|
year: true,
|
|
month: true,
|
|
month: true,
|
|
day: true,
|
|
day: true,
|
|
- // hour: true,
|
|
|
|
- // minute: true,
|
|
|
|
- // second: true
|
|
|
|
},
|
|
},
|
|
isEditCB: 'false',
|
|
isEditCB: 'false',
|
|
isEditYF: 'false',
|
|
isEditYF: 'false',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
binNumber: '',
|
|
binNumber: '',
|
|
- contractNoList: [{
|
|
|
|
- contractNo: "123"
|
|
|
|
- }],
|
|
|
|
|
|
+ contractNoList: [],
|
|
typeList: [{
|
|
typeList: [{
|
|
type: "干粮"
|
|
type: "干粮"
|
|
},
|
|
},
|
|
@@ -221,19 +214,7 @@
|
|
grade: "等外"
|
|
grade: "等外"
|
|
}
|
|
}
|
|
],
|
|
],
|
|
- handlerList: [{
|
|
|
|
- agent: "张三"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- agent: "二等"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- agent: "三等"
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- agent: "等外"
|
|
|
|
- }
|
|
|
|
- ],
|
|
|
|
|
|
+ handlerList: [],
|
|
warehousingTypeList: [],
|
|
warehousingTypeList: [],
|
|
action: this.$uploadUrl,
|
|
action: this.$uploadUrl,
|
|
maxSize: 50 * 1024 * 1024, //限制文件大小 50M
|
|
maxSize: 50 * 1024 * 1024, //限制文件大小 50M
|
|
@@ -245,7 +226,7 @@
|
|
contractNo: "请选择合同编号",
|
|
contractNo: "请选择合同编号",
|
|
carNo: '请输入车牌号',
|
|
carNo: '请输入车牌号',
|
|
type: "干粮",
|
|
type: "干粮",
|
|
- goodsName: "123",
|
|
|
|
|
|
+ goodsName: "",
|
|
inOutDate: '请选择入库日期',
|
|
inOutDate: '请选择入库日期',
|
|
grade: "一等品",
|
|
grade: "一等品",
|
|
agent: '请选择经办人',
|
|
agent: '请选择经办人',
|
|
@@ -264,13 +245,13 @@
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.compId = helper.erpWarehouse.compId
|
|
this.compId = helper.erpWarehouse.compId
|
|
- console.log(helper.erpWarehouse)
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- let _data = uni.getStorageSync('erpContractNo')
|
|
|
|
|
|
+ let _data = uni.getStorageSync('erpContractNo')==''?{}:uni.getStorageSync('erpContractNo')
|
|
|
|
+ if(helper.erpWarehouse.personCharge)
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
this.detailData.agent = helper.erpWarehouse.personCharge
|
|
this.detailData.goodsName = _data.goodsName;
|
|
this.detailData.goodsName = _data.goodsName;
|
|
this.detailData.contractNo = _data.contractNo;
|
|
this.detailData.contractNo = _data.contractNo;
|
|
@@ -284,13 +265,24 @@
|
|
if (_data.inOutType == '采购入库') {
|
|
if (_data.inOutType == '采购入库') {
|
|
this.detailData.freight = 0
|
|
this.detailData.freight = 0
|
|
}
|
|
}
|
|
- this.detailData.carNo = uni.getStorageSync('erpcarNo')
|
|
|
|
|
|
+ this.detailData.freight = uni.getStorageSync('CarFreight')
|
|
if (!_data.tranCarInfoList){
|
|
if (!_data.tranCarInfoList){
|
|
|
|
+ this.isPC = false
|
|
|
|
+ this.detailData.carNo = ""
|
|
|
|
+ this.detailData.cost = ""
|
|
_data.tranCarInfoList = []
|
|
_data.tranCarInfoList = []
|
|
} else{
|
|
} else{
|
|
this.isPC = true
|
|
this.isPC = true
|
|
if(uni.getStorageSync('ContractNoCar')){
|
|
if(uni.getStorageSync('ContractNoCar')){
|
|
this.detailData.carNo = uni.getStorageSync('ContractNoCar')
|
|
this.detailData.carNo = uni.getStorageSync('ContractNoCar')
|
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/selectCost', {
|
|
|
|
+ contractNo: this.detailData.contractNo,
|
|
|
|
+ carNo:this.detailData.carNo
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
+ this.detailData.cost = res.data.data
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}else{
|
|
}else{
|
|
this.detailData.carNo = _data.tranCarInfoList[0].carNo
|
|
this.detailData.carNo = _data.tranCarInfoList[0].carNo
|
|
}
|
|
}
|
|
@@ -306,7 +298,6 @@
|
|
if (!this.detailData.goodsName) {
|
|
if (!this.detailData.goodsName) {
|
|
this.detailData.goodsName = '货名'
|
|
this.detailData.goodsName = '货名'
|
|
}
|
|
}
|
|
- console.log('当前合同', _data)
|
|
|
|
// 获取入库类型
|
|
// 获取入库类型
|
|
this.getrkType()
|
|
this.getrkType()
|
|
//获取经办人
|
|
//获取经办人
|
|
@@ -493,8 +484,8 @@
|
|
this.$api.msg('皮重不能大于毛重')
|
|
this.$api.msg('皮重不能大于毛重')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.netWeight < 0) {
|
|
|
|
- this.$api.msg('净重不能小于0')
|
|
|
|
|
|
+ if (this.netWeight <= 0) {
|
|
|
|
+ this.$api.msg('净重不能小于等于0')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (this.detailData.type == "潮粮") {
|
|
if (this.detailData.type == "潮粮") {
|
|
@@ -726,7 +717,6 @@
|
|
let title = ""
|
|
let title = ""
|
|
if (num == 1) {
|
|
if (num == 1) {
|
|
this.detailData.statusFlag = 1
|
|
this.detailData.statusFlag = 1
|
|
- this.detailData.inOutDate = this.inOutDate1
|
|
|
|
title = "暂存成功"
|
|
title = "暂存成功"
|
|
} else if (num == 2) {
|
|
} else if (num == 2) {
|
|
this.detailData.statusFlag = 3
|
|
this.detailData.statusFlag = 3
|
|
@@ -734,14 +724,18 @@
|
|
}
|
|
}
|
|
let that = this
|
|
let that = this
|
|
uni.showModal({
|
|
uni.showModal({
|
|
- content: "确定提交入库库信息?",
|
|
|
|
|
|
+ content: "确定提交入库信息?",
|
|
success(res) {
|
|
success(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
that.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse',
|
|
that.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse',
|
|
that.detailData).then(res => {
|
|
that.detailData).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
- that.$api.msg(title)
|
|
|
|
|
|
+ that.$api.msg(title)
|
|
|
|
+ setTimeout(() => {
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
|
+ }, 1000)
|
|
|
|
+ }else{
|
|
|
|
+ that.$api.msg(res.data.message)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -827,7 +821,7 @@
|
|
|
|
|
|
.content2 {
|
|
.content2 {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
- display: flex;
|
|
|
|
|
|
+ // display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
|
.left {
|
|
.left {
|