|
@@ -123,12 +123,19 @@
|
|
|
</view>
|
|
|
<view v-if='typevalue==1' class="c-row ">
|
|
|
<view class="title">车牌号</view>
|
|
|
- <view class="con-list">
|
|
|
- <input v-model='gridList.carNumber' @click.stop="handleShowKeyboard" :disabled="true"
|
|
|
+ <view class="con-list" v-if='tranCarInfoList.length==0&&gridList.inOutType!="移库入库"'>
|
|
|
+ <input v-model='gridList.carNumber' @click.stop="handleShowKeyboard" :disabled="true"
|
|
|
placeholder="请输入车牌号" name="input"></input>
|
|
|
<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
|
|
|
:defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
|
|
|
</view>
|
|
|
+ <view class="con-list" v-else>
|
|
|
+ <view @click='show9=true'>{{gridList.carNumber?gridList.carNumber:'请选择车牌号'}}</view>
|
|
|
+ <u-picker :range="tranCarInfoList" range-key="carNo1" @confirm='carNopicker($event,1)'
|
|
|
+ v-model="show9" mode="selector">
|
|
|
+ </u-picker>
|
|
|
+
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view v-if="gridList.outType=='汽运'&&typevalue==1 ||gridList.outType == '集装箱船'&&typevalue==1" class="c-row ">
|
|
|
<view class="title">箱号-1</view>
|
|
@@ -186,12 +193,19 @@
|
|
|
</view>
|
|
|
<view v-if='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
|
|
|
<view class="title">车牌号</view>
|
|
|
- <view class="con-list">
|
|
|
+ <view class="con-list" v-if='tranCarInfoList.length==0'>
|
|
|
<input v-model='gridList.carNumber' @click.stop="handleShowKeyboard" :disabled="true"
|
|
|
placeholder="请输入车牌号" name="input"></input>
|
|
|
<master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
|
|
|
:defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
|
|
|
</view>
|
|
|
+ <view class="con-list" v-if='tranCarInfoList.length>0'>
|
|
|
+ <view @click='show9=true'>{{gridList.carNumber?gridList.carNumber:'请选择车牌号'}}</view>
|
|
|
+ <u-picker :range="tranCarInfoList" range-key="carNo1" @confirm='carNopicker($event,1)'
|
|
|
+ v-model="show9" mode="selector">
|
|
|
+ </u-picker>
|
|
|
+
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<!-- <view v-if="gridList.paramType != '1'&&utils.getCurrectRoles('acquisitionQuality.initial')" class="c-row ">
|
|
|
<view class="title">扣重比</view>
|
|
@@ -412,6 +426,7 @@
|
|
|
show5: false,
|
|
|
show6: false,
|
|
|
show7: false,
|
|
|
+ show9:false,
|
|
|
edit: true,
|
|
|
goodsdisabled: false,
|
|
|
freighttext: '手动填写',
|
|
@@ -523,13 +538,13 @@
|
|
|
warehouseList: [],
|
|
|
warehouseCount: '',
|
|
|
commonWarehouseNo: '',
|
|
|
- tranCarInfoList: [],
|
|
|
warehouseTradeCount: 0,
|
|
|
showTran: true,
|
|
|
companyId: 1,
|
|
|
contractNolist: [],
|
|
|
current: 4,
|
|
|
taskNolist: [],
|
|
|
+ tranCarInfoList:[],
|
|
|
fleetNameList: [],
|
|
|
multiSelector: [{
|
|
|
name: '汽运',
|
|
@@ -750,6 +765,28 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ carNopicker(e){
|
|
|
+ this.gridList.carNumber=this.tranCarInfoList[e[0]].carNo
|
|
|
+ for (let i = 0; i < this.tranCarInfoList.length; i++) {
|
|
|
+ if (i == e[0]) {
|
|
|
+ this.gridList.carNo = this.tranCarInfoList[i].carNo
|
|
|
+ this.gridList.carNoCopy = this.tranCarInfoList[i].carNo + '(' + this.tranCarInfoList[i].tranCarNo +
|
|
|
+ ')'
|
|
|
+ this.gridList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
|
+ this.gridList.carId = this.tranCarInfoList[i].id
|
|
|
+ this.gridList.freight = Math.round(
|
|
|
+ this.tranCarInfoList[i].tranPrice
|
|
|
+ )
|
|
|
+ if (this.gridList.inOutType == '移库入库') {
|
|
|
+ if (!this.gridList.cost) {
|
|
|
+ this.gridList.cost = this.tranCarInfoList[i].cost
|
|
|
+ }
|
|
|
+ this.gridList.loadNetWeight =
|
|
|
+ this.tranCarInfoList[i].loadNetWeight
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
obtainPrice(){//根据容重获取价格
|
|
|
if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
|
|
|
// if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
|
|
@@ -1011,10 +1048,18 @@
|
|
|
this.carstatus = false
|
|
|
}
|
|
|
if (this.contractNolist[i].tranCarInfoList) {
|
|
|
+ for (var q = 0; q < this.contractNolist[i].tranCarInfoList.length; q++) {
|
|
|
+ if(this.contractNolist[i].tranCarInfoList.tranCarNo){
|
|
|
+ this.contractNolist[i].tranCarInfoList[q].carNo1=this.contractNolist[i].tranCarInfoList.carNo+'('+this.contractNolist[i].tranCarInfoList.tranCarNo+')'
|
|
|
+ }else{
|
|
|
+ this.contractNolist[i].tranCarInfoList[q].carNo1=this.contractNolist[i].tranCarInfoList.carNo
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
this.tranCarInfoList = this.contractNolist[i].tranCarInfoList
|
|
|
// this.carstatus = true
|
|
|
} else {
|
|
|
- this.options2 = []
|
|
|
+ this.tranCarInfoList = []
|
|
|
}
|
|
|
this.fleetNameList = this.contractNolist[i].tranCarInfoList1
|
|
|
}
|