|
@@ -101,9 +101,17 @@
|
|
|
</u-picker>
|
|
|
</view>
|
|
|
<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>
|
|
|
- <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view>
|
|
|
+ <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view> -->
|
|
|
+ <view class="left">车牌号</view>
|
|
|
+ <!-- 他运合同车牌号输入 -->
|
|
|
+ <input v-model='detailData.carNo' class="right-bottom" placeholder="请输入车牌号" v-if="!showCar"></input>
|
|
|
+ <!-- <view @click='slectCarNo' v-if="isPC">{{detailData.carNo}}</view> -->
|
|
|
+ <!-- 自运合同车牌号需下拉 -->
|
|
|
+ <view v-if="!carno" v-show="showCar" @click="carno = true">{{detailData.carNo?detailData.carNo :"请选择车牌号"}}</view>
|
|
|
+ <u-picker :range="carList" range-key="carNo" @confirm='carPicker($event)' v-model="carno" mode="selector">
|
|
|
+ </u-picker>
|
|
|
</view>
|
|
|
<view class="row row-bottom" v-if="detailData.outType=='火运'">
|
|
|
<view class="left">车号</view>
|
|
@@ -214,6 +222,7 @@
|
|
|
show7: false,
|
|
|
isPC: true,
|
|
|
show8: false,
|
|
|
+ carno:false,
|
|
|
usestart: '',
|
|
|
multiSelector: [{
|
|
|
name: '汽运',
|
|
@@ -303,6 +312,8 @@
|
|
|
netWeight: "",
|
|
|
inOutShow: false,
|
|
|
inOutNoList: [],
|
|
|
+ carList:[],//车牌号下拉
|
|
|
+ showCar:false,
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -396,6 +407,27 @@
|
|
|
this.detailData.goodsName = this.inOutNoList[0].goodsName
|
|
|
this.detailData.grade = this.inOutNoList[0].grade
|
|
|
this.detailData.inOutType = this.inOutNoList[0].inOutType
|
|
|
+ //查询所有的合同 进行获取车牌号
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/selectContractNoList', {
|
|
|
+ flag: 5,
|
|
|
+ compId: helper.erpWarehouse.compId,
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 200) {
|
|
|
+ for(let i = 0 ; i < res.data.data.length ; i++){
|
|
|
+ // "MYCGYMHLJ2021102401"
|
|
|
+ if(res.data.data[i].contractNo == this.detailData.contractNo){//如果查到该合同
|
|
|
+ if(res.data.data[i].deliverType == '1'){//判断自运1,他运2合同
|
|
|
+ this.showCar = true
|
|
|
+ }else{
|
|
|
+ this.showCar = false
|
|
|
+ }
|
|
|
+ if(res.data.data[i].tranCarInfoList){
|
|
|
+ this.carList = res.data.data[i].tranCarInfoList //车牌号下拉列表
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
// this.$api.doRequest('get', 'warehouseBaseInfo/selectContractNoList', ).then(res => {
|
|
|
// this.contractNoList = res.data.data
|
|
@@ -422,13 +454,9 @@
|
|
|
this.detailData.grade = this.inOutNoList[e[0]].grade
|
|
|
this.detailData.inOutType = this.inOutNoList[e[0]].inOutType
|
|
|
if (this.detailData.inOutType == '销售出库') {
|
|
|
- this.detailData.tips = '买方' + this.contractNoList[i].buyer+'('+this.contractNoList[i].unitContractPrice+'元/吨)'
|
|
|
+ this.detailData.tips = '买方' + this.contractNoList[i].buyer
|
|
|
} else if (this.detailData.inOutType == '移库出库') {
|
|
|
- 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
|
|
|
- }
|
|
|
+ this.detailData.tips = '入货库' + this.inOutNoList[e[0]].warehouseName
|
|
|
}
|
|
|
},
|
|
|
toUpperCase(val) {
|
|
@@ -533,6 +561,10 @@
|
|
|
binNumberpicker(e) {
|
|
|
this.detailData.binNumber = this.positionList[e[0]].binNumber
|
|
|
},
|
|
|
+ carPicker(e) {
|
|
|
+ // this.detailData.gradeKey = e[0] + 1
|
|
|
+ this.detailData.carNo = this.carList[e].carNo
|
|
|
+ },
|
|
|
onProgress(e) {},
|
|
|
onRemove() {
|
|
|
this.detailData.addressUrl = ""
|