|
@@ -227,10 +227,16 @@
|
|
|
<ws-input v-model="deptBudgetList.wingNumberOther" placeholder="请输入车厢号" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="船名" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'">
|
|
|
- <ws-input v-model="deptBudgetList.shipName" placeholder="请输入船名" maxlength="20" size="small" />
|
|
|
+ <ws-input v-if='shipInfoList.length<2' v-model="deptBudgetList.shipName" placeholder="请输入船名" maxlength="20" size="small" />
|
|
|
+ <el-select v-else v-model="deptBudgetList.shipName" placeholder="请选择船名" @change='shipNamechange'>
|
|
|
+ <el-option v-for="item in shipInfoList" :key="item.value" :label="item.shipName" :value="item.shipName" />
|
|
|
+ </el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="航次" span="1" prop="shipNumber" v-if="deptBudgetList.outType == '散船'">
|
|
|
- <ws-input v-model="deptBudgetList.shipNumber" placeholder="请输入航次" maxlength="20" size="small" />
|
|
|
+ <ws-input v-if='shipInfoList.length<2' v-model="deptBudgetList.shipNumber" placeholder="请输入航次" maxlength="20" size="small" />
|
|
|
+ <el-select v-else disabled v-model="deptBudgetList.shipNumber" placeholder="请选择航次">
|
|
|
+ <el-option v-for="item in shipInfoList" :key="item.value" :label="item.shipNo" :value="item.shipNo" />
|
|
|
+ </el-select>
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
</div>
|
|
@@ -376,6 +382,7 @@
|
|
|
// 提交类型
|
|
|
submitType: true,
|
|
|
deliveryType: [],
|
|
|
+ shipInfoList:[],
|
|
|
typeList: ['干粮', '潮粮'],
|
|
|
outContractNo: [],
|
|
|
appendixIdsAdd: '',
|
|
@@ -481,6 +488,13 @@
|
|
|
// }
|
|
|
},
|
|
|
methods: {
|
|
|
+ shipNamechange(e){
|
|
|
+ for (let i = 0; i < this.shipInfoList.length; i++) {
|
|
|
+ if(this.shipInfoList[i].shipName==e){
|
|
|
+ this.deptBudgetList.shipNumber=this.shipInfoList[i].shipNo
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//切换车牌号输入状态
|
|
|
carNoTypeChange() {
|
|
|
this.carjudge = !this.carjudge
|
|
@@ -570,7 +584,6 @@
|
|
|
}
|
|
|
this.deptBudgetList.inOutTypeKey = 1
|
|
|
} else if (this.outContractNo[i].inOutType == '移库出库') {
|
|
|
-
|
|
|
this.weightbills.buyer = this.outContractNo[i].receiveWarehouse
|
|
|
this.weightbills.seller = this.outContractNo[i].sendWarehouse
|
|
|
this.deptBudgetList.goodsName = data.goodsName
|
|
@@ -604,6 +617,9 @@
|
|
|
this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
|
|
|
this.carstatus = true
|
|
|
}
|
|
|
+ if(this.outContractNo[i].shipInfoList){
|
|
|
+ this.shipInfoList = this.outContractNo[i].shipInfoList
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|