|
|
@@ -134,30 +134,32 @@
|
|
|
disabled
|
|
|
></el-input>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="info-line"
|
|
|
- v-if="!insertDiscPortVisable"
|
|
|
- style="margin-left: 140px"
|
|
|
- >
|
|
|
- <el-button type="primary" @click="insertDiscPortVisable = true"
|
|
|
- >添加提前卸货港</el-button
|
|
|
- >
|
|
|
- </div>
|
|
|
- <div class="info-line" v-else style="margin-left: 40px">
|
|
|
- <div class="info-line-title" style="width: 80px">提前卸货港</div>
|
|
|
- <el-autocomplete
|
|
|
- class="info-line-text mr20"
|
|
|
- v-model="toInsertDiscPortValue"
|
|
|
- :fetch-suggestions="getCol"
|
|
|
- @blur="clear('toInsertDiscPortId')"
|
|
|
- placeholder="选择卸货港"
|
|
|
- @select="selectToInsertDiscProt($event)"
|
|
|
- style="width: 120px !important"
|
|
|
- />
|
|
|
- <el-button type="primary" @click="addNewPort">确认添加</el-button>
|
|
|
- <el-button type="default" @click="cancelInsertDiscPort"
|
|
|
- >取消添加</el-button
|
|
|
+ <div v-if="voyage.voyageStatus != 2">
|
|
|
+ <div
|
|
|
+ class="info-line"
|
|
|
+ v-if="!insertDiscPortVisable"
|
|
|
+ style="margin-left: 140px"
|
|
|
>
|
|
|
+ <el-button type="primary" @click="insertDiscPortVisable = true"
|
|
|
+ >添加提前卸货港</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ <div class="info-line" v-else style="margin-left: 40px">
|
|
|
+ <div class="info-line-title" style="width: 80px">提前卸货港</div>
|
|
|
+ <el-autocomplete
|
|
|
+ class="info-line-text mr20"
|
|
|
+ v-model="toInsertDiscPortValue"
|
|
|
+ :fetch-suggestions="getCol"
|
|
|
+ @blur="clear('toInsertDiscPortId')"
|
|
|
+ placeholder="选择卸货港"
|
|
|
+ @select="selectToInsertDiscProt($event)"
|
|
|
+ style="width: 120px !important"
|
|
|
+ />
|
|
|
+ <el-button type="primary" @click="addNewPort">确认添加</el-button>
|
|
|
+ <el-button type="default" @click="cancelInsertDiscPort"
|
|
|
+ >取消添加</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="line">
|
|
|
@@ -915,7 +917,6 @@
|
|
|
<el-button
|
|
|
v-if="voyage.canComplete && disabledStatus"
|
|
|
type="primary"
|
|
|
- size="small"
|
|
|
@click="finishVoyage"
|
|
|
>
|
|
|
完成航次
|
|
|
@@ -1818,6 +1819,7 @@ async function submitVoyageChange() {
|
|
|
});
|
|
|
console.log(res);
|
|
|
}
|
|
|
+ getVoyageDetail();
|
|
|
}
|
|
|
let options = ref([
|
|
|
{ value: 0, label: "请选择" },
|
|
|
@@ -1850,10 +1852,9 @@ async function finishVoyage() {
|
|
|
});
|
|
|
|
|
|
if (res.data.status == 0) {
|
|
|
- voyage.value.voyageStatus = 2;
|
|
|
ElNotification({
|
|
|
type: "success",
|
|
|
- title: res.data.msg,
|
|
|
+ title: "航次已完成",
|
|
|
});
|
|
|
} else {
|
|
|
ElNotification({
|
|
|
@@ -1862,6 +1863,7 @@ async function finishVoyage() {
|
|
|
});
|
|
|
console.log(res);
|
|
|
}
|
|
|
+ getVoyageDetail();
|
|
|
}
|
|
|
let currentUrl = ref("");
|
|
|
let mediaModal = ref(false);
|