|
@@ -42,6 +42,7 @@
|
|
|
import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
import detailsPage from "./detailsPage"
|
|
|
import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
+import {getToken} from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
|
name: "index",
|
|
@@ -252,7 +253,7 @@ export default {
|
|
|
// label: "dictValue",
|
|
|
// value: "dictKey"
|
|
|
// }
|
|
|
- // },
|
|
|
+ // },
|
|
|
{
|
|
|
label: '所属公司',
|
|
|
prop: "salesCompanyName",
|
|
@@ -268,7 +269,7 @@ export default {
|
|
|
label: 'cname',
|
|
|
value: 'id'
|
|
|
},
|
|
|
- dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS&enableOrNot=1',
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/listAll?cname={{key}}&corpType=GYS',
|
|
|
}, {
|
|
|
label: '仓库',
|
|
|
prop: "storageId",
|
|
@@ -336,7 +337,7 @@ export default {
|
|
|
// label: '应结日期',
|
|
|
// prop: "dueDate",
|
|
|
// overHidden: true,
|
|
|
- // },
|
|
|
+ // },
|
|
|
{
|
|
|
label: "制单人",
|
|
|
prop: "createUserName",
|
|
@@ -413,7 +414,7 @@ export default {
|
|
|
if (this.$route.query.check) {
|
|
|
this.editOpen({ id: this.$route.query.check.srcBillId }, 1)
|
|
|
this.$store.commit("IN_LTCG_STATUS");
|
|
|
- }
|
|
|
+ }
|
|
|
if(this.$route.query.type == 'F'){
|
|
|
this.editOpen({ id: this.$route.query.detail.srcParentId }, 1)
|
|
|
}
|
|
@@ -438,6 +439,34 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 导出
|
|
|
+ outExport() {
|
|
|
+ console.log(this.search,412)
|
|
|
+ let config = { params: { ...this.search } }
|
|
|
+ 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]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ config.params.bsType = 'CG'
|
|
|
+ console.log(config,427)
|
|
|
+ const routeData = this.$router.resolve({
|
|
|
+ path: '/api/blade-sales-part/order/listExport', //跳转目标下载地址
|
|
|
+ query: {
|
|
|
+ ...config.params //括号内是要传递给新窗口的参数
|
|
|
+ }
|
|
|
+ })
|
|
|
+ window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
|
|
|
+ },
|
|
|
check(row) {
|
|
|
this.form = row
|
|
|
this.detailsOpen = true
|