|
@@ -15,7 +15,7 @@
|
|
|
<view class="row row-bottom">
|
|
|
<view class="left">合同编号</view>
|
|
|
<!-- <view @click='slectcontractNo'>{{detailData.contractNo}}</view> -->
|
|
|
- <input v-model='detailData.contractNo' class="right-bottom" placeholder="暂未获取到合同编号" disabled=""></input>
|
|
|
+ <input v-model='detailData.contractNo' style="width: 200px;" class="right-bottom" placeholder="暂未获取到合同编号" disabled=""></input>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
<view class="left">提示</view>
|
|
@@ -26,14 +26,14 @@
|
|
|
<view class="right">{{detailData.goodsName ? detailData.goodsName : "选择合同,自动获取"}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="row">
|
|
|
+ <!-- <view class="row">
|
|
|
<view class="left">类型</view>
|
|
|
<view @click='show1=true'>{{detailData.type}}</view>
|
|
|
<u-picker :range="typeList" range-key="type" @confirm='typePicker($event)' v-model="show1"
|
|
|
mode="selector">
|
|
|
<view class="">{{detailData.type}}</view>
|
|
|
</u-picker>
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="row row-bottom">
|
|
|
<view class="left">毛重(吨)</view>
|
|
|
<input type="digit" @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
@@ -367,7 +367,7 @@
|
|
|
// if (_data.contractNo) {
|
|
|
// this.detailData.contractNo = _data.contractNo;
|
|
|
// }
|
|
|
- this.detailData.goodsNameKey = _data.goodsNameKey ? _data.goodsNameKey : '';
|
|
|
+ // this.detailData.goodsNameKey = _data.goodsNameKey ? _data.goodsNameKey : '';
|
|
|
if (!_data.tranCarInfoList) {
|
|
|
this.isPC = false
|
|
|
_data.tranCarInfoList = []
|
|
@@ -437,29 +437,34 @@
|
|
|
warehouseName: this.warehouseName,
|
|
|
agentKey: this.userInfo.id
|
|
|
}).then(res => {
|
|
|
- this.inOutNoList = res.data.data
|
|
|
- this.detailData.inOutTaskNo = this.inOutNoList[0].inOutTaskNo ? this.inOutNoList[0]
|
|
|
- .inOutTaskNo : ''
|
|
|
- this.detailData.agent = this.inOutNoList[0].agent
|
|
|
- if (this.inOutNoList[0].contractNo) {
|
|
|
- this.detailData.contractNo = this.inOutNoList[0].contractNo
|
|
|
- } else {
|
|
|
- this.detailData.contractNo = this.inOutNoList[0].moveTaskNo
|
|
|
- }
|
|
|
- this.detailData.goodsName = this.inOutNoList[0].goodsName
|
|
|
- this.detailData.goodsNameKey = this.inOutNoList[0].goodsNameKey
|
|
|
- this.detailData.grade = this.inOutNoList[0].grade
|
|
|
- this.detailData.inOutType = this.inOutNoList[0].inOutType
|
|
|
- if (this.detailData.inOutType == '销售出库') {
|
|
|
- this.detailData.inOutTypeKey = 1
|
|
|
- } else if (this.detailData.inOutType == '移库出库') {
|
|
|
- this.detailData.inOutTypeKey = 3
|
|
|
- } else if (this.detailData.inOutType == '暂存出库') {
|
|
|
- this.detailData.inOutTypeKey = 4
|
|
|
- } else if (this.detailData.inOutType == '贸易服务出库') {
|
|
|
- this.detailData.inOutTypeKey = 5
|
|
|
- } else if (this.detailData.inOutType == '采购出库') {
|
|
|
- this.detailData.inOutTypeKey = 6
|
|
|
+ if(res.data.data.length == 0){
|
|
|
+ this.$api.msg('暂无出库任务')
|
|
|
+ }else{
|
|
|
+ this.inOutNoList = res.data.data
|
|
|
+ this.detailData.goodsNameKey = res.data.data[0].goodsNameKey
|
|
|
+ this.detailData.inOutTaskNo = this.inOutNoList[0].inOutTaskNo ? this.inOutNoList[0]
|
|
|
+ .inOutTaskNo : ''
|
|
|
+ this.detailData.agent = this.inOutNoList[0].agent
|
|
|
+ if (this.inOutNoList[0].contractNo) {
|
|
|
+ this.detailData.contractNo = this.inOutNoList[0].contractNo
|
|
|
+ } else {
|
|
|
+ this.detailData.contractNo = this.inOutNoList[0].moveTaskNo
|
|
|
+ }
|
|
|
+ this.detailData.goodsName = this.inOutNoList[0].goodsName
|
|
|
+ this.detailData.goodsNameKey = this.inOutNoList[0].goodsNameKey
|
|
|
+ this.detailData.grade = this.inOutNoList[0].grade
|
|
|
+ this.detailData.inOutType = this.inOutNoList[0].inOutType
|
|
|
+ if (this.detailData.inOutType == '销售出库') {
|
|
|
+ this.detailData.inOutTypeKey = 1
|
|
|
+ } else if (this.detailData.inOutType == '移库出库') {
|
|
|
+ this.detailData.inOutTypeKey = 3
|
|
|
+ } else if (this.detailData.inOutType == '暂存出库') {
|
|
|
+ this.detailData.inOutTypeKey = 4
|
|
|
+ } else if (this.detailData.inOutType == '贸易服务出库') {
|
|
|
+ this.detailData.inOutTypeKey = 5
|
|
|
+ } else if (this.detailData.inOutType == '采购出库') {
|
|
|
+ this.detailData.inOutTypeKey = 6
|
|
|
+ }
|
|
|
}
|
|
|
console.log(this.detailData.inOutType)
|
|
|
//查询所有的合同 进行获取车牌号
|
|
@@ -474,7 +479,7 @@
|
|
|
if (this.detailData.inOutType == '销售出库') {
|
|
|
this.detailData.tips = '买方' + res.data.data[i].buyer
|
|
|
} else if (this.detailData.inOutType == '移库出库') {
|
|
|
- this.detailData.tips = '入货库' + this.inOutNoList[0].warehouseName
|
|
|
+ this.detailData.tips = '入货库' + this.inOutNoList[0].receiveWarehouse
|
|
|
}
|
|
|
//如果查到该合同
|
|
|
res.data.data[i].deliverType = !res.data.data[i].deliverType?'1':res.data.data[i].deliverType
|
|
@@ -485,6 +490,9 @@
|
|
|
}
|
|
|
|
|
|
if (res.data.data[i].tranCarInfoList) {
|
|
|
+ for(var num = 0 ; num < res.data.data[i].tranCarInfoList.length; num++){
|
|
|
+ res.data.data[i].tranCarInfoList[num].carNo = res.data.data[i].tranCarInfoList[num].carNo + '('+res.data.data[i].tranCarInfoList[num].tranCarNo+')'
|
|
|
+ }
|
|
|
this.carList = res.data.data[i].tranCarInfoList //车牌号下拉列表
|
|
|
}
|
|
|
}
|
|
@@ -533,7 +541,7 @@
|
|
|
} else if (this.detailData.inOutType == '移库出库') {
|
|
|
this.weightbills.buyer = this.inOutNoList[e[0]].receiveWarehouse
|
|
|
this.weightbills.seller = uni.getStorageSync('compName')
|
|
|
- this.detailData.tips = '入货库' + this.inOutNoList[e[0]].warehouseName
|
|
|
+ this.detailData.tips = '入货库' + this.inOutNoList[e[0]].receiveWarehouse
|
|
|
}
|
|
|
},
|
|
|
toUpperCase(val) {
|
|
@@ -641,6 +649,7 @@
|
|
|
carPicker(e) {
|
|
|
// this.detailData.gradeKey = e[0] + 1
|
|
|
this.detailData.carNo = this.carList[e].carNo
|
|
|
+ this.detailData.tranCarNo = this.carList[e].tranCarNo
|
|
|
this.detailData.carId = this.carList[e].id
|
|
|
},
|
|
|
onProgress(e) {},
|
|
@@ -648,6 +657,10 @@
|
|
|
this.detailData.addressUrl = ""
|
|
|
},
|
|
|
submit(num) {
|
|
|
+ if (!this.detailData.inOutTaskNo) {
|
|
|
+ this.$api.msg('暂无出库任务')
|
|
|
+ return
|
|
|
+ }
|
|
|
if (!this.detailData.contractNo) {
|
|
|
this.$api.msg('合同编号不能为空')
|
|
|
return
|
|
@@ -888,7 +901,6 @@
|
|
|
this.detailData.warehouseName = helper.erpWarehouse.warehouseName
|
|
|
this.detailData.positionId = helper.erpWarehouse.positionId
|
|
|
this.detailData.binNumber = this.binNumber
|
|
|
- this.detailData.goodsNameKey = uni.getStorageSync('erpContractNoCK').goodsNameKey;
|
|
|
this.detailData.compId = helper.erpWarehouse.compId
|
|
|
this.detailData.netWeight = this.netWeight
|
|
|
this.detailData.inOutFlag = 1
|