|
@@ -7,7 +7,7 @@
|
|
<view class="content">
|
|
<view class="content">
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">任务编号</view>
|
|
<view class="left">任务编号</view>
|
|
- <view @click='inOutShow=true'>{{detailData.inOutTaskNo ? detailData.inOutTaskNo : "请选择任务编号"}}</view>
|
|
|
|
|
|
+ <view @click='inOutShow=true'>{{detailData.inOutTaskNo ? detailData.inOutTaskNo : "暂未获取到任务编号"}}</view>
|
|
<u-picker :range="inOutNoList" range-key="inOutTaskNo" @confirm='inOutChange' v-model="inOutShow"
|
|
<u-picker :range="inOutNoList" range-key="inOutTaskNo" @confirm='inOutChange' v-model="inOutShow"
|
|
mode="selector">
|
|
mode="selector">
|
|
</u-picker>
|
|
</u-picker>
|
|
@@ -280,7 +280,7 @@
|
|
binNumber: '',
|
|
binNumber: '',
|
|
detailData: {
|
|
detailData: {
|
|
outType: '汽运',
|
|
outType: '汽运',
|
|
- contractNo: "请选择合同编号或移库任务编号",
|
|
|
|
|
|
+ contractNo: "",
|
|
type: "干粮",
|
|
type: "干粮",
|
|
grade: "请输入品级",
|
|
grade: "请输入品级",
|
|
agent: "请选择经办人",
|
|
agent: "请选择经办人",
|
|
@@ -315,7 +315,6 @@
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
let _data = uni.getStorageSync('erpContractNoCK') == '' ? {} : uni.getStorageSync('erpContractNoCK')
|
|
let _data = uni.getStorageSync('erpContractNoCK') == '' ? {} : uni.getStorageSync('erpContractNoCK')
|
|
- console.log("当前合同", _data)
|
|
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.detailData.goodsName = _data.goodsName;
|
|
this.detailData.goodsName = _data.goodsName;
|
|
@@ -331,9 +330,9 @@
|
|
} else if (this.detailData.inOutType == '采购出库') {
|
|
} else if (this.detailData.inOutType == '采购出库') {
|
|
this.detailData.inOutTypeKey = 6
|
|
this.detailData.inOutTypeKey = 6
|
|
}
|
|
}
|
|
- if (_data.contractNo) {
|
|
|
|
- this.detailData.contractNo = _data.contractNo;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (_data.contractNo) {
|
|
|
|
+ // this.detailData.contractNo = _data.contractNo;
|
|
|
|
+ // }
|
|
this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
this.detailData.goodsNameKey = _data.goodsNameKey;
|
|
if (!_data.tranCarInfoList) {
|
|
if (!_data.tranCarInfoList) {
|
|
this.isPC = false
|
|
this.isPC = false
|
|
@@ -378,7 +377,9 @@
|
|
methods: {
|
|
methods: {
|
|
inOutNo() {
|
|
inOutNo() {
|
|
this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
|
|
this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
|
|
- flag: 1
|
|
|
|
|
|
+ flag: 1,
|
|
|
|
+ warehouseName:this.warehouseName,
|
|
|
|
+ agentKey : this.userInfo.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.inOutNoList = res.data.data
|
|
this.inOutNoList = res.data.data
|
|
this.detailData.inOutTaskNo = this.inOutNoList[0].inOutTaskNo
|
|
this.detailData.inOutTaskNo = this.inOutNoList[0].inOutTaskNo
|
|
@@ -392,18 +393,18 @@
|
|
this.detailData.grade = this.inOutNoList[0].grade
|
|
this.detailData.grade = this.inOutNoList[0].grade
|
|
this.detailData.inOutType = this.inOutNoList[0].inOutType
|
|
this.detailData.inOutType = this.inOutNoList[0].inOutType
|
|
})
|
|
})
|
|
- this.$api.doRequest('get', 'warehouseBaseInfo/selectContractNoList', ).then(res => {
|
|
|
|
- this.contractNoList = res.data.data
|
|
|
|
- for (var i = 0; i < this.contractNoList.length; i++) {
|
|
|
|
- if (this.contractNoList[i].contractNo == this.detailData.contractNo) {
|
|
|
|
- if (this.detailData.inOutType == '销售出库') {
|
|
|
|
- this.detailData.tips = '买方' + this.contractNoList[i].buyer
|
|
|
|
- } else if (this.detailData.inOutType == '移库出库') {
|
|
|
|
- this.detailData.tips = '入货库' + this.inOutNoList[0].warehouseName
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ // this.$api.doRequest('get', 'warehouseBaseInfo/selectContractNoList', ).then(res => {
|
|
|
|
+ // this.contractNoList = res.data.data
|
|
|
|
+ // for (var i = 0; i < this.contractNoList.length; i++) {
|
|
|
|
+ // if (this.contractNoList[i].contractNo == this.detailData.contractNo) {
|
|
|
|
+ // if (this.detailData.inOutType == '销售出库') {
|
|
|
|
+ // this.detailData.tips = '买方' + this.contractNoList[i].buyer
|
|
|
|
+ // } else if (this.detailData.inOutType == '移库出库') {
|
|
|
|
+ // this.detailData.tips = '入货库' + this.inOutNoList[0].warehouseName
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
inOutChange(e) {
|
|
inOutChange(e) {
|
|
this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
|
|
this.detailData.inOutTaskNo = this.inOutNoList[e[0]].inOutTaskNo
|