|
@@ -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>
|
|
@@ -100,11 +100,15 @@
|
|
@confirm='outtypeChange($event)'>
|
|
@confirm='outtypeChange($event)'>
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
- <view class="row row-bottom">
|
|
|
|
|
|
+ <view class="row row-bottom" v-if="detailData.outType!='火运' && detailData.outType!='散船'">
|
|
<view class="left">车牌号</view>
|
|
<view class="left">车牌号</view>
|
|
<input v-if="!isPC" v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
|
|
<input v-if="!isPC" v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号"></input>
|
|
<view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view>
|
|
<view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="row row-bottom" v-if="detailData.outType=='火运'">
|
|
|
|
+ <view class="left">车号</view>
|
|
|
|
+ <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车号"></input>
|
|
|
|
+ </view>
|
|
<view v-if='detailData.outType=="集装箱船"||!detailData.outType||detailData.outType=="汽运"'
|
|
<view v-if='detailData.outType=="集装箱船"||!detailData.outType||detailData.outType=="汽运"'
|
|
class="row row-bottom">
|
|
class="row row-bottom">
|
|
<view class="left">箱号</view>
|
|
<view class="left">箱号</view>
|
|
@@ -112,7 +116,7 @@
|
|
<input v-model='detailData.boxNoOther' class="right-bottom"
|
|
<input v-model='detailData.boxNoOther' class="right-bottom"
|
|
placeholder="请输入箱号"></input>
|
|
placeholder="请输入箱号"></input>
|
|
</view>
|
|
</view>
|
|
- <view v-if='!detailData.outType||detailData.outType=="汽运"' class="row row-bottom">
|
|
|
|
|
|
+ <view v-if='!detailData.outType||detailData.outType=="汽运" || detailData.outType=="集装箱船"' class="row row-bottom">
|
|
<view class="left">封号</view>
|
|
<view class="left">封号</view>
|
|
<input v-model='detailData.titleNo' class="right-bottom"
|
|
<input v-model='detailData.titleNo' class="right-bottom"
|
|
placeholder="请输入封号"></input>
|
|
placeholder="请输入封号"></input>
|
|
@@ -126,11 +130,11 @@
|
|
<input v-model='detailData.wingNumberOther' @input="toUpperCase3" class="right-bottom"
|
|
<input v-model='detailData.wingNumberOther' @input="toUpperCase3" class="right-bottom"
|
|
placeholder="请输入车厢号"></input>
|
|
placeholder="请输入车厢号"></input>
|
|
</view>
|
|
</view>
|
|
- <view v-if='detailData.outType=="散船"||detailData.outType=="集装箱船"' class="row row-bottom">
|
|
|
|
|
|
+ <view v-if='detailData.outType=="散船"' class="row row-bottom">
|
|
<view class="left">航次</view>
|
|
<view class="left">航次</view>
|
|
<input v-model='detailData.shipNumber' class="right-bottom" placeholder="请输入航次"></input>
|
|
<input v-model='detailData.shipNumber' class="right-bottom" placeholder="请输入航次"></input>
|
|
</view>
|
|
</view>
|
|
- <view v-if='detailData.outType=="散船"||detailData.outType=="集装箱船"' class="row row-bottom">
|
|
|
|
|
|
+ <view v-if='detailData.outType=="散船"' class="row row-bottom">
|
|
<view class="left">船名</view>
|
|
<view class="left">船名</view>
|
|
<input v-model='detailData.shipName' class="right-bottom" placeholder="请输入船名"></input>
|
|
<input v-model='detailData.shipName' class="right-bottom" placeholder="请输入船名"></input>
|
|
</view>
|
|
</view>
|
|
@@ -280,7 +284,7 @@
|
|
binNumber: '',
|
|
binNumber: '',
|
|
detailData: {
|
|
detailData: {
|
|
outType: '汽运',
|
|
outType: '汽运',
|
|
- contractNo: "请选择合同编号或移库任务编号",
|
|
|
|
|
|
+ contractNo: "",
|
|
type: "干粮",
|
|
type: "干粮",
|
|
grade: "请输入品级",
|
|
grade: "请输入品级",
|
|
agent: "请选择经办人",
|
|
agent: "请选择经办人",
|
|
@@ -315,7 +319,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 +334,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 +381,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 +397,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
|
|
@@ -417,9 +422,13 @@
|
|
this.detailData.grade = this.inOutNoList[e[0]].grade
|
|
this.detailData.grade = this.inOutNoList[e[0]].grade
|
|
this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
|
|
this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
|
|
if (this.detailData.inOutType == '销售出库') {
|
|
if (this.detailData.inOutType == '销售出库') {
|
|
- this.detailData.tips = '买方' + this.contractNoList[i].buyer
|
|
|
|
|
|
+ this.detailData.tips = '买方' + this.contractNoList[i].buyer+'('+this.contractNoList[i].unitContractPrice+'元/吨)'
|
|
} else if (this.detailData.inOutType == '移库出库') {
|
|
} else if (this.detailData.inOutType == '移库出库') {
|
|
- this.detailData.tips = '入货库' + this.inOutNoList[e[0]].warehouseName
|
|
|
|
|
|
+ if(+this.contractNoList[i].unitContractPrice){
|
|
|
|
+ this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse+'('+this.contractNoList[i].unitContractPrice+'元/吨)'
|
|
|
|
+ }else{
|
|
|
|
+ this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
toUpperCase(val) {
|
|
toUpperCase(val) {
|