|
@@ -199,12 +199,12 @@
|
|
|
maxlength="10" size="small" />
|
|
|
</ws-form-item>
|
|
|
|
|
|
- <ws-form-item v-if='deptBudgetList.outType == "移库入库" && serviceManagementType == 1' label="移库编号"
|
|
|
+ <ws-form-item v-if='deptBudgetList.inOutType == "移库入库" && serviceManagementType == 1' label="移库编号"
|
|
|
span="1" prop="contractNo">
|
|
|
<ws-input v-model="deptBudgetList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
|
size="small" />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if='deptBudgetList.outType != "移库入库" && serviceManagementType == 1' label="合同编号"
|
|
|
+ <ws-form-item v-if='deptBudgetList.inOutType != "移库入库" && serviceManagementType == 1' label="合同编号"
|
|
|
span="1" prop="contractNo">
|
|
|
<ws-input v-model="deptBudgetList.contractNo" placeholder="自动获取,不可编辑" maxlength="100" disabled
|
|
|
size="small" />
|
|
@@ -276,10 +276,10 @@
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item v-if="serviceManagementType == 1&&deptBudgetList.outType != '散船'&&deptBudgetList.outType != '火运'" label="车牌号" span="1" prop="carNo">
|
|
|
- <ws-input :disabled="disabled2"
|
|
|
- v-if="options2.length == 0 && serviceManagementType == 1 || serviceManagementType == 3 && carNumberList.length == 0"
|
|
|
+ <ws-input :disabled="disabled2"
|
|
|
+ v-if="options2.length == 0 && serviceManagementType == 1&&deptBudgetList.inOutType!='移库入库' || serviceManagementType == 3 && carNumberList.length == 0"
|
|
|
v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
- <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType != 3"
|
|
|
+ <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType != 3||carstatus && options2.length == 0 && serviceManagementType != 3&&deptBudgetList.inOutType=='移库入库' "
|
|
|
filterable clearable v-model="deptBudgetList.carNo1" placeholder="请选择车牌号" class="typeselect"
|
|
|
@change="carChange($event, 0)">
|
|
|
<el-option v-for="(item, index) in options2" :key="index"
|
|
@@ -321,14 +321,14 @@
|
|
|
<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-form-item label="船名" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'||deptBudgetList.outType == '集装箱船'">
|
|
|
<el-select filterable clearable v-model="deptBudgetList.shipName"
|
|
|
placeholder="请选择船名" class="typeselect" @change="shipInfoChange($event)">
|
|
|
<el-option v-for="item in shipInfoList" :key="item.constKey" :label="item.shipName"
|
|
|
:value="item.shipName" />
|
|
|
</el-select>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="航次" span="1" prop="shipNumber" v-if="deptBudgetList.outType == '散船'">
|
|
|
+ <ws-form-item label="航次" span="1" prop="shipNumber" v-if="deptBudgetList.outType == '散船'||deptBudgetList.outType == '集装箱船'">
|
|
|
<ws-input disabled v-model="deptBudgetList.shipNumber" placeholder="请输入航次" maxlength="20" size="small" />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="箱号-1" span="1" prop="boxNo"
|
|
@@ -668,6 +668,7 @@ export default {
|
|
|
searchType: 0,
|
|
|
id: '',
|
|
|
warehouseList: [],
|
|
|
+ shipInfoList:[],
|
|
|
warehouseList1: [],
|
|
|
serviceManagementType: 1,
|
|
|
statusType: 1,
|
|
@@ -772,8 +773,8 @@ export default {
|
|
|
methods: {
|
|
|
shipInfoChange(e){
|
|
|
for (let i = 0; i < this.shipInfoList.length; i++) {
|
|
|
- if(this.shipInfoList[i].shipName==this.weighingList.shipName){
|
|
|
- this.weighingList.shipNumber=this.shipInfoList[i].shipNo
|
|
|
+ if(this.shipInfoList[i].shipName==this.deptBudgetList.shipName){
|
|
|
+ this.deptBudgetList.shipNumber=this.shipInfoList[i].shipNo
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1569,13 +1570,13 @@ export default {
|
|
|
// }
|
|
|
console.log(this.serviceManagementType)
|
|
|
if (this.serviceManagementType == 1) {
|
|
|
- if (!this.deptBudgetList.cost) {
|
|
|
- this.$message({
|
|
|
- message: '未获取到成本,请编辑后提交',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.deptBudgetList.cost) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '未获取到成本,请编辑后提交',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.deptBudgetList.dryGrainPrice = parseFloat(this.deptBudgetList.cost / 1000).toFixed(3)
|
|
|
if (
|
|
|
this.deptBudgetList.cost < 0 ||
|
|
@@ -2116,13 +2117,13 @@ export default {
|
|
|
}
|
|
|
console.log(this.serviceManagementType)
|
|
|
if (this.serviceManagementType == 1) {
|
|
|
- if (!this.deptBudgetList.cost) {
|
|
|
- this.$message({
|
|
|
- message: '未获取到成本,请编辑后提交',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.deptBudgetList.cost) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '未获取到成本,请编辑后提交',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.deptBudgetList.dryGrainPrice = parseFloat(this.deptBudgetList.cost / 1000).toFixed(3)
|
|
|
if (
|
|
|
this.deptBudgetList.cost < 0 ||
|