|
@@ -147,12 +147,13 @@
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if="fleetNameList.length > 0 && tpyeNo == 1&&weighingList.outType == '汽运'" label="车队" span="1" prop="fleetName">
|
|
|
- <el-select @change="fleetNameChange" :disabled="recheck" v-model="weighingList.fleet" placeholder="非车队车辆">
|
|
|
+ <el-select @change="fleetNameChange" v-if="!recheck" v-model="weighingList.fleetId" placeholder="非车队车辆">
|
|
|
<el-option key="" label="非车队"
|
|
|
value="非车队" />
|
|
|
<el-option v-for="item in fleetNameList" :key="item.value" :label="item.fleetName"
|
|
|
- :value="item.fleetName" />
|
|
|
+ :value="item.id" />
|
|
|
</el-select>
|
|
|
+ <ws-input v-model="weighingList.fleet" maxlength="20" size="small" :disabled="recheck"/>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if=" weighingList.outType == '火运'" label="流向" span="1" prop="carNo">
|
|
|
<el-select :disabled="recheck1" filterable clearable
|
|
@@ -166,12 +167,12 @@
|
|
|
weighingList.outType == '集装箱船'||
|
|
|
weighingList.outType == '火运'
|
|
|
">
|
|
|
- <el-input :maxlength="'7'" v-if="carjudge" v-model="weighingList.carNo" placeholder="请输入车牌号"
|
|
|
+ <el-input :maxlength="'7'" v-if="carjudge||!carjudge&&tpyeNo==2&&!weighingList.tranCarNo" v-model="weighingList.carNo" placeholder="请输入车牌号"
|
|
|
size="small" :disabled="recheck1"/>
|
|
|
- <el-select v-else filterable clearable v-model="weighingList.carNo" placeholder="请选择车牌号"
|
|
|
+ <el-select v-if="!carjudge&&tpyeNo==1||!carjudge&&tpyeNo==2&&weighingList.tranCarNo" filterable clearable v-model="weighingList.carId" placeholder="请选择车牌号"
|
|
|
class="typeselect" @change="carChange" :disabled="recheck1">
|
|
|
<el-option v-for="item in options2" :key="item.constKey"
|
|
|
- :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
|
|
|
+ :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.id" />
|
|
|
</el-select>
|
|
|
<el-button type="primary" @click="carNoTypeChange" v-if="carstatus">{{ carChange1 }}</el-button>
|
|
|
</ws-form-item>
|
|
@@ -311,7 +312,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <el-table @cell-click="listclick" :data="deliveryList" style="width: 100%; margin-top: 20px"
|
|
|
+ <el-table v-show="tpyeNo==2" @cell-click="listclick" :data="deliveryList" style="width: 100%; margin-top: 20px"
|
|
|
ref="deliveryList" border>
|
|
|
<el-table-column prop="number" width="120" label="业务编号"></el-table-column>
|
|
|
<el-table-column prop="carNumber" label="车牌号"></el-table-column>
|
|
@@ -487,6 +488,7 @@
|
|
|
statusType: '3',
|
|
|
warehouseType: 1,
|
|
|
weighingList: {
|
|
|
+ carNumber: '',
|
|
|
grossWeight: '',
|
|
|
tare: '',
|
|
|
selfLoading: 0,
|
|
@@ -1144,9 +1146,7 @@
|
|
|
|
|
|
listclick(row) {
|
|
|
if(this.tpyeNo == 2){
|
|
|
-
|
|
|
- }
|
|
|
- this.id = row.id
|
|
|
+ this.id = row.id
|
|
|
getweighing({
|
|
|
id: row.id,
|
|
|
})
|
|
@@ -1175,6 +1175,11 @@
|
|
|
// this.weighingList.carNo =
|
|
|
// response.qualityInspectionManagement.carNumber
|
|
|
this.$set(this.weighingList,'carNo', response.qualityInspectionManagement.carNumber)
|
|
|
+ if(this.weighingList.inOutType=='移库出库'&&this.tpyeNo == 2){
|
|
|
+ this.options2=[]
|
|
|
+ this.options2.push({id:this.weighingList.carId,carNo:this.weighingList.carNo, tranCarNo:this.weighingList.tranCarNo,tranPrice:this.weighingList.freight })
|
|
|
+ }
|
|
|
+ // console.log(this.weighingList.carId)
|
|
|
this.weighingList.boxNo = response.boxNo
|
|
|
this.weighingList.boxNoOther = response.boxNoOther
|
|
|
this.weighingList.titleNo = response.titleNo
|
|
@@ -1192,6 +1197,8 @@
|
|
|
mildewGrain: '',
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
+
|
|
|
// if(){
|
|
|
|
|
|
// }
|
|
@@ -2062,11 +2069,11 @@
|
|
|
},
|
|
|
carChange(e) {
|
|
|
for (let i = 0; i < this.tranCarInfoList.length; i++) {
|
|
|
- if (this.tranCarInfoList[i].carNo == this.weighingList.carNo) {
|
|
|
+ if (this.tranCarInfoList[i].id == this.weighingList.carId) {
|
|
|
+ this.weighingList.carNo = this.tranCarInfoList[i].carNo
|
|
|
this.weighingList.carNumber = this.tranCarInfoList[i].carNo
|
|
|
this.weighingList.tranCarNo = this.tranCarInfoList[i].tranCarNo
|
|
|
this.weighingList.freight = this.tranCarInfoList[i].tranPrice
|
|
|
- this.weighingList.carId = this.tranCarInfoList[i].id
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -2078,7 +2085,8 @@
|
|
|
this.carChange1 = '手动填写'
|
|
|
}else{
|
|
|
for (let i = 0; i < this.fleetNameList.length; i++) {
|
|
|
- if (this.fleetNameList[i].carNo == this.weighingList.fleetName) {
|
|
|
+ if (this.fleetNameList[i].id == this.weighingList.fleetId) {
|
|
|
+ this.weighingList.fleetName=this.fleetNameList[i].carNo
|
|
|
this.weighingList.freight = this.fleetNameList[i].tranPrice
|
|
|
this.carjudge=true
|
|
|
if (this.carjudge) {
|