|
|
@@ -261,7 +261,7 @@
|
|
|
<template slot="boxNumber">
|
|
|
<el-input-number
|
|
|
v-model="form.boxNumber"
|
|
|
- :disabled="editDisabled || (fixData && form.whetherEnable == '是') || form.suitcaseNum != 0"
|
|
|
+ :disabled="editDisabled || (fixData && form.whetherEnable == '是')"
|
|
|
:min="1"
|
|
|
:controls="false"
|
|
|
placeholder="请输入 箱量"
|
|
|
@@ -308,10 +308,8 @@
|
|
|
<el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0" @click="allClick('批量删除')"
|
|
|
>批量删除</el-button
|
|
|
>
|
|
|
- <el-button type="success" size="small" :disabled="!form.id || form.tradingBoxItemsList.length == 0" @click="allClick('导出')"
|
|
|
- >导出</el-button
|
|
|
- >
|
|
|
- <el-button type="primary" size="small" :disabled="editDisabled || selectionList.length == 0" @click="allClick('批量修改POD场站')">
|
|
|
+ <el-button type="success" size="small" :disabled="!form.id" @click="allClick('导出')">导出</el-button>
|
|
|
+ <el-button type="primary" size="small" :disabled="editDisabled" @click="allClick('批量修改POD场站')">
|
|
|
批量修改POD场站
|
|
|
</el-button>
|
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
|
@@ -323,13 +321,7 @@
|
|
|
<span>{{ index + 1 }}</span>
|
|
|
</template>
|
|
|
<template slot="codeSearch">
|
|
|
- <el-input
|
|
|
- v-model="boxQuery.code"
|
|
|
- size="small"
|
|
|
- placeholder="请输入箱号 多个箱号用空格区分"
|
|
|
- type="textarea"
|
|
|
- autosize
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="boxQuery.code" size="small" placeholder="请输入箱号 多个箱号用空格区分" type="textarea" autosize></el-input>
|
|
|
</template>
|
|
|
<template slot="codeForm" slot-scope="{ row }">
|
|
|
<el-input
|
|
|
@@ -1120,26 +1112,21 @@
|
|
|
></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="polStationCname">
|
|
|
- <div style="display: flex;">
|
|
|
- <dic-select
|
|
|
- v-model="activationForm.polStationCname"
|
|
|
- placeholder="场站"
|
|
|
- :key="updateStationKey"
|
|
|
- label="cnName"
|
|
|
- res="records"
|
|
|
- :slotRight="true"
|
|
|
- rightLabel="code"
|
|
|
- :url="'/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=场站&status=0&ids=' + (form.cyTextOne ? form.cyTextOne : '')"
|
|
|
- :filterable="true"
|
|
|
- :remote="true"
|
|
|
- dataName="cnName"
|
|
|
- @selectChange="dicChange('polStationCname2', $event)"
|
|
|
- :disabled="editDisabled || !activationForm.polCname"
|
|
|
- ></dic-select>
|
|
|
- <el-tooltip class="item" effect="dark" content="同步起运港场站" placement="top">
|
|
|
- <el-button size="small" icon="el-icon-refresh"></el-button>
|
|
|
- </el-tooltip>
|
|
|
- </div>
|
|
|
+ <dic-select
|
|
|
+ v-model="activationForm.polStationCname"
|
|
|
+ placeholder="场站"
|
|
|
+ :key="updateStationKey"
|
|
|
+ label="cnName"
|
|
|
+ res="records"
|
|
|
+ :slotRight="true"
|
|
|
+ rightLabel="code"
|
|
|
+ :url="'/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=场站&status=0&ids=' + (form.cyTextOne ? form.cyTextOne : '')"
|
|
|
+ :filterable="true"
|
|
|
+ :remote="true"
|
|
|
+ dataName="cnName"
|
|
|
+ @selectChange="dicChange('polStationCname2', $event)"
|
|
|
+ :disabled="editDisabled || !activationForm.polCname"
|
|
|
+ ></dic-select>
|
|
|
</tempalte>
|
|
|
<tempalte slot="podCname">
|
|
|
<dic-select
|
|
|
@@ -2100,7 +2087,7 @@ export default {
|
|
|
label: "箱号",
|
|
|
prop: "code",
|
|
|
width: 140,
|
|
|
- searchSpan:12,
|
|
|
+ searchSpan: 12,
|
|
|
searchPlaceholder: "请输入箱号 多个箱号用空格区分",
|
|
|
search: true,
|
|
|
cell: true,
|
|
|
@@ -2125,6 +2112,12 @@ export default {
|
|
|
overHidden: true
|
|
|
},
|
|
|
{
|
|
|
+ label: "收箱号",
|
|
|
+ prop: "offhireReference",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "箱型",
|
|
|
prop: "boxType",
|
|
|
width: 100,
|
|
|
@@ -2437,6 +2430,30 @@ export default {
|
|
|
overHidden: true
|
|
|
},
|
|
|
{
|
|
|
+ label: "目的港场站联系人",
|
|
|
+ prop: "podCyContact",
|
|
|
+ overHidden: true,
|
|
|
+ width: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "目的港场站地址",
|
|
|
+ prop: "podCyAddress",
|
|
|
+ overHidden: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "目的港场站邮箱",
|
|
|
+ prop: "podCyEmail",
|
|
|
+ overHidden: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "目的港场站电话",
|
|
|
+ prop: "podCyTel",
|
|
|
+ overHidden: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "启用日期",
|
|
|
prop: "activationDate",
|
|
|
// cell: true,
|
|
|
@@ -4284,8 +4301,23 @@ export default {
|
|
|
this.excelBox = true;
|
|
|
}
|
|
|
if (name == "导出") {
|
|
|
+ let ids = [];
|
|
|
+ if (this.boxQuery.code) {
|
|
|
+ for (let item of this.form.tradingBoxItemsList) {
|
|
|
+ ids.push(item.id);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.selectionList.length == 0) {
|
|
|
+ return this.$message.error("请选择箱明细");
|
|
|
+ }
|
|
|
+ for (let item of this.selectionList) {
|
|
|
+ ids.push(item.id);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
let data = {
|
|
|
- id: this.form.id
|
|
|
+ id: this.form.id,
|
|
|
+ itemIds: ids.join(",")
|
|
|
};
|
|
|
const routeData = this.$router.resolve({
|
|
|
path: "/api/blade-los/tradingBox/exportTradingBoxItemOut", //跳转目标窗口的地址
|
|
|
@@ -5313,16 +5345,31 @@ export default {
|
|
|
this.$refs["form3"].validate((valid, done) => {
|
|
|
done();
|
|
|
if (valid) {
|
|
|
- let ids = [];
|
|
|
- for (let item of this.selectionList) {
|
|
|
- ids.push(item.id);
|
|
|
+ // let ids = [];
|
|
|
+ // for (let item of this.selectionList) {
|
|
|
+ // ids.push(item.id);
|
|
|
+ // }
|
|
|
+ let obj = {};
|
|
|
+ if (this.boxQuery.code) {
|
|
|
+ obj = {
|
|
|
+ id: this.form.id,
|
|
|
+ sysNo: this.form.sysNo,
|
|
|
+ ...this.podForm,
|
|
|
+ tradingBoxItemsList: this.form.tradingBoxItemsList
|
|
|
+ };
|
|
|
}
|
|
|
- let obj = {
|
|
|
- id: this.form.id,
|
|
|
- sysNo: this.form.sysNo,
|
|
|
- ...this.podForm,
|
|
|
- tradingBoxItemsList: this.selectionList
|
|
|
- };
|
|
|
+ if (!this.boxQuery.code) {
|
|
|
+ if (this.selectionList.length == 0) {
|
|
|
+ return this.$message.error("请选择箱明细");
|
|
|
+ }
|
|
|
+ obj = {
|
|
|
+ id: this.form.id,
|
|
|
+ sysNo: this.form.sysNo,
|
|
|
+ ...this.podForm,
|
|
|
+ tradingBoxItemsList: this.selectionList
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|