|
|
@@ -94,11 +94,11 @@
|
|
|
<container-number
|
|
|
ref="containerNumberRef"
|
|
|
v-model="form.containerNumber"
|
|
|
- placeholder="放箱号"
|
|
|
+ placeholder="自有放箱号"
|
|
|
label="containerNumber"
|
|
|
url="/blade-los/putbox/selectContainerNumber"
|
|
|
@selectChange="dicChange('containerNumber', $event)"
|
|
|
- titleDialog="放箱号"
|
|
|
+ titleDialog="自有放箱号"
|
|
|
:disabled="editDisabled || form.whetherEnable == '是'"
|
|
|
></container-number>
|
|
|
</tempalte>
|
|
|
@@ -263,8 +263,8 @@
|
|
|
<el-button type="primary" size="small" :disabled="editDisabled || selectionList.length == 0" @click="allClick('批量修改POD场站')">
|
|
|
批量修改POD场站
|
|
|
</el-button>
|
|
|
- <el-button type="success" size="small" @click="allClick('客户还箱')">客户还箱</el-button>
|
|
|
- <el-button type="success" size="small" @click="allClick('导出箱号')">导出箱号</el-button>
|
|
|
+ <el-button type="success" size="small" :disabled="!form.id||form.tradingBoxItemsList.length==0" @click="allClick('客户还箱')">客户还箱</el-button>
|
|
|
+ <el-button type="success" size="small" :disabled="!form.id" @click="allClick('导出箱号')">导出箱号</el-button>
|
|
|
<!-- <el-button type="info" size="small" @click="allClick('启用')">启用</el-button> -->
|
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
|
<!-- <el-button size="small" style="margin-right: 8px" :disabled="!form.id || true"
|
|
|
@@ -1287,7 +1287,8 @@ import {
|
|
|
revokePickUpCost,
|
|
|
revokeCheckPleaseVerifyCost,
|
|
|
finstlbillsGetAccBillIdList,
|
|
|
- fininvoicesGetAccBillIdList
|
|
|
+ fininvoicesGetAccBillIdList,
|
|
|
+ exportTemplateById
|
|
|
} from "@/api/boxManagement/buyContainer";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import containerNumber from "@/components/dicSelect/containerNumber";
|
|
|
@@ -1432,7 +1433,7 @@ export default {
|
|
|
disabled: false,
|
|
|
column: [
|
|
|
{
|
|
|
- label: "放箱号",
|
|
|
+ label: "自有放箱号",
|
|
|
prop: "containerNumber",
|
|
|
span: 24,
|
|
|
rules: [
|
|
|
@@ -1444,6 +1445,18 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ label: "放箱号",
|
|
|
+ prop: "internalContainerNumber",
|
|
|
+ span: 24,
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "起运港",
|
|
|
prop: "polCname",
|
|
|
span: 24,
|
|
|
@@ -1560,7 +1573,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- label: "放箱号",
|
|
|
+ label: "自有放箱号",
|
|
|
prop: "containerNumber",
|
|
|
disabled: false,
|
|
|
rules: [
|
|
|
@@ -1572,7 +1585,7 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- label: "内部放箱号",
|
|
|
+ label: "放箱号",
|
|
|
prop: "internalContainerNumber",
|
|
|
disabled: false,
|
|
|
rules: [
|
|
|
@@ -4034,10 +4047,14 @@ export default {
|
|
|
}
|
|
|
} else {
|
|
|
if (this.selectionList.length == 0) {
|
|
|
- return this.$message.error("请选择箱明细");
|
|
|
+ for (let item of this.form.tradingBoxItemsList) {
|
|
|
+ ids.push(item.id);
|
|
|
+ }
|
|
|
}
|
|
|
- for (let item of this.selectionList) {
|
|
|
- ids.push(item.id);
|
|
|
+ if (this.selectionList.length) {
|
|
|
+ for (let item of this.selectionList) {
|
|
|
+ ids.push(item.id);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -4045,14 +4062,17 @@ export default {
|
|
|
id: this.form.id,
|
|
|
ids: ids.join(",")
|
|
|
};
|
|
|
- const routeData = this.$router.resolve({
|
|
|
- path: "/api/blade-los/boxdynamicsrecord/exportTemplateById", //跳转目标窗口的地址
|
|
|
- query: {
|
|
|
- "Blade-Auth": getToken(),
|
|
|
- ...data //括号内是要传递给新窗口的参数
|
|
|
- }
|
|
|
+
|
|
|
+ exportTemplateById(data).then(res => {
|
|
|
+ const routeData = this.$router.resolve({
|
|
|
+ path: "/api/blade-los/boxdynamicsrecord/exportTemplateById", //跳转目标窗口的地址
|
|
|
+ query: {
|
|
|
+ "Blade-Auth": getToken(),
|
|
|
+ ...data //括号内是要传递给新窗口的参数
|
|
|
+ }
|
|
|
+ });
|
|
|
+ window.open(routeData.href.slice(1, routeData.href.length));
|
|
|
});
|
|
|
- window.open(routeData.href.slice(1, routeData.href.length));
|
|
|
}
|
|
|
if (name == "启用") {
|
|
|
if (!this.form.id) {
|
|
|
@@ -4067,6 +4087,7 @@ export default {
|
|
|
this.form.cyTextOne = this.form.cyText;
|
|
|
this.activationForm = {
|
|
|
containerNumber: this.form.containerNumber,
|
|
|
+ internalContainerNumber: this.form.internalContainerNumber,
|
|
|
polId: this.form.polId,
|
|
|
polCode: this.form.polCode,
|
|
|
polEname: this.form.polEname,
|