|
@@ -17,6 +17,10 @@
|
|
|
<template slot="menuLeft">
|
|
<template slot="menuLeft">
|
|
|
<el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新 增
|
|
<el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新 增
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <!-- <el-button type="success" size="small" :disabled="selectionList.length != 1" @click="copyButton">复制订单
|
|
|
|
|
+ </el-button> -->
|
|
|
|
|
+ <!-- <el-button type="warning" size="small" @click="outExport">导 出
|
|
|
|
|
+ </el-button> -->
|
|
|
</template>
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
<el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row)">编辑</el-button>
|
|
<el-button size="small" icon="el-icon-edit" type="text" @click="rowEdit(row)">编辑</el-button>
|
|
@@ -35,7 +39,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { getList, remove, copyAgent } from "@/api/tradeAgency/oceanFreightImport";
|
|
import { getList, remove, copyAgent } from "@/api/tradeAgency/oceanFreightImport";
|
|
|
import detailsPage from "./detailsPage";
|
|
import detailsPage from "./detailsPage";
|
|
|
-
|
|
|
|
|
|
|
+import { getToken } from "@/util/auth";
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -348,6 +352,13 @@ export default {
|
|
|
this.isShow = false
|
|
this.isShow = false
|
|
|
this.$store.commit("IN_OCEANFS_DETAIL");
|
|
this.$store.commit("IN_OCEANFS_DETAIL");
|
|
|
},
|
|
},
|
|
|
|
|
+ copyButton() {
|
|
|
|
|
+ this.isShow = false
|
|
|
|
|
+ this.detailData = {
|
|
|
|
|
+ copyId: this.selectionList[0].id
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$store.commit("IN_OCEANFS_DETAIL");
|
|
|
|
|
+ },
|
|
|
rowEdit(row) {
|
|
rowEdit(row) {
|
|
|
this.detailData = {
|
|
this.detailData = {
|
|
|
id: row.id
|
|
id: row.id
|
|
@@ -422,7 +433,32 @@ export default {
|
|
|
this.$store.commit("OUT_OCEANFS_DETAIL");
|
|
this.$store.commit("OUT_OCEANFS_DETAIL");
|
|
|
this.detailData = {}
|
|
this.detailData = {}
|
|
|
this.isShow = true;
|
|
this.isShow = true;
|
|
|
- this.onLoad(this.page, this.search);
|
|
|
|
|
|
|
+ this.onLoad(this.page, this.query);
|
|
|
|
|
+ },
|
|
|
|
|
+ outExport() {
|
|
|
|
|
+ let config = { params: { ...this.query } }
|
|
|
|
|
+ if (config.params) {
|
|
|
|
|
+ for (const propName of Object.keys(config.params)) {
|
|
|
|
|
+ const value = config.params[propName];
|
|
|
|
|
+ if (value !== null && typeof (value) !== "undefined") {
|
|
|
|
|
+ if (value instanceof Array) {
|
|
|
|
|
+ for (const key of Object.keys(value)) {
|
|
|
|
|
+ let params = propName + '[' + key + ']';
|
|
|
|
|
+ config.params[params] = value[key]
|
|
|
|
|
+ }
|
|
|
|
|
+ delete config.params[propName]
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ const routeData = this.$router.resolve({
|
|
|
|
|
+ path: '/api/blade-los/agentview/export', //跳转目标窗口的地址
|
|
|
|
|
+ query: {
|
|
|
|
|
+ ...config.params, //括号内是要传递给新窗口的参数
|
|
|
|
|
+ identification: this.url
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
|
|
|
},
|
|
},
|
|
|
//自定义列保存
|
|
//自定义列保存
|
|
|
async saveColumn(ref, option, optionBack, code) {
|
|
async saveColumn(ref, option, optionBack, code) {
|
|
@@ -436,7 +472,7 @@ export default {
|
|
|
this.$message.success("保存成功");
|
|
this.$message.success("保存成功");
|
|
|
//关闭窗口
|
|
//关闭窗口
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
- this.searchReset()
|
|
|
|
|
|
|
+ this.queryReset()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
//自定义列重置
|
|
//自定义列重置
|
|
@@ -446,7 +482,7 @@ export default {
|
|
|
if (inSave) {
|
|
if (inSave) {
|
|
|
this.$message.success("重置成功");
|
|
this.$message.success("重置成功");
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
- this.searchReset()
|
|
|
|
|
|
|
+ this.queryReset()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 更改表格颜色
|
|
// 更改表格颜色
|