|
@@ -17,8 +17,10 @@
|
|
|
<template slot="menuLeft">
|
|
|
<el-button type="primary" size="small" icon="el-icon-plus" @click="addButton">新 增
|
|
|
</el-button>
|
|
|
- <!-- <el-button type="success" size="small" icon="el-icon-plus" :disabled="selectionList.length != 1" @click="copyButton">复制订单
|
|
|
+ <!-- <el-button type="success" size="small" :disabled="selectionList.length != 1" @click="copyButton">复制订单
|
|
|
</el-button> -->
|
|
|
+ <el-button type="warning" size="small" @click="outExport">导 出
|
|
|
+ </el-button>
|
|
|
<el-button type="info" size="small" :disabled="selectionList.length == 0"
|
|
|
@click="allClick('生成申请收款')">生成货款收款
|
|
|
</el-button>
|
|
@@ -59,6 +61,7 @@
|
|
|
<script>
|
|
|
import { getList, remove, copyAgent, applyForPaymentList, generate } from "@/api/tradeAgency/tradeAgency";
|
|
|
import detailsPage from "./detailsPage";
|
|
|
+import { getToken } from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -75,7 +78,7 @@ export default {
|
|
|
menu: false,
|
|
|
selection: true,
|
|
|
align: 'center',
|
|
|
- height:'450',
|
|
|
+ height: '450',
|
|
|
column: [
|
|
|
{
|
|
|
label: "往来单位",
|
|
@@ -542,7 +545,7 @@ export default {
|
|
|
copyButton() {
|
|
|
this.isShow = false
|
|
|
this.detailData = {
|
|
|
- copyId:this.selectionList[0].id
|
|
|
+ copyId: this.selectionList[0].id
|
|
|
};
|
|
|
},
|
|
|
allClick(name) {
|
|
@@ -656,7 +659,32 @@ export default {
|
|
|
// }
|
|
|
this.detailData = {}
|
|
|
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) {
|
|
@@ -670,7 +698,7 @@ export default {
|
|
|
this.$message.success("保存成功");
|
|
|
//关闭窗口
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
- this.searchReset()
|
|
|
+ this.queryReset()
|
|
|
}
|
|
|
},
|
|
|
//自定义列重置
|
|
@@ -680,7 +708,7 @@ export default {
|
|
|
if (inSave) {
|
|
|
this.$message.success("重置成功");
|
|
|
this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
- this.searchReset()
|
|
|
+ this.queryReset()
|
|
|
}
|
|
|
},
|
|
|
// 更改表格颜色
|