|
@@ -246,7 +246,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
- @click="handleEdit()"
|
|
|
+ @click="handleExport()"
|
|
|
:disabled="true"
|
|
|
>导出报表</el-button
|
|
|
>
|
|
@@ -614,7 +614,7 @@ export default {
|
|
|
type: this.$route.query.type ? this.$route.query.type * 1 : 0,
|
|
|
showFinance:
|
|
|
getToken() && JSON.parse(getToken())
|
|
|
- ? JSON.parse(getToken()).popedom_code_list.indexOf(30002) > -1
|
|
|
+ ? JSON.parse(getToken()).popedom_code_list.indexOf(30003) > -1
|
|
|
: false,
|
|
|
quickList: [], // 快速查询
|
|
|
validity: "",
|
|
@@ -798,6 +798,54 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 导出
|
|
|
+ handleExport() {
|
|
|
+ let MethodName =
|
|
|
+ "/ShopServer/Manager/FinanceManager/StartCreateOrderExportFile";
|
|
|
+ getLogin(MethodName, {
|
|
|
+ pay_status: 1,
|
|
|
+ content: this.searchInput.trim(),
|
|
|
+ pay_date_begin: this.validity ? this.validity[0] : "",
|
|
|
+ pay_date_end: this.validity ? this.validity[1] : "",
|
|
|
+ goods_study_phase: -1,
|
|
|
+ discount_code_use_status: -1,
|
|
|
+ order_status: -1,
|
|
|
+ person_org_id_list: [],
|
|
|
+ person_province_city_id_list: [],
|
|
|
+ pay_type: -1,
|
|
|
+ page_capacity: this.pageSizess,
|
|
|
+ cur_page: this.pageNumberss,
|
|
|
+ order_column_list: [],
|
|
|
+ goods_type: -1,
|
|
|
+ is_query_discount_code_user_order: "true",
|
|
|
+ discount_code_id: this.$route.query.id ? this.$route.query.id : "",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ // let MethodName2 = "/FileServer/FilePackManager/GetFileCompressTaskProgress";
|
|
|
+ // let timer = setTimeout(() => {
|
|
|
+ // getLogin(MethodName2, {
|
|
|
+ // file_compress_task_id: res.file_compress_task_id,
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // if (res.is_finish == "true") {
|
|
|
+ // data.FileID = res.compress_pack_file_id;
|
|
|
+ // clearTimeout(timer);
|
|
|
+ // timer = null;
|
|
|
+ // _this.loading = false;
|
|
|
+ // location.href =
|
|
|
+ // process.env.VUE_APP_BASE_API +
|
|
|
+ // `/FileServer/WebFileDownload?AccessToken=${data.access_token}&FileID=${data.FileID}`;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // .catch((res) => {
|
|
|
+ // this.loading = false;
|
|
|
+ // });
|
|
|
+ // }, 1000);
|
|
|
+ })
|
|
|
+ .catch((res) => {
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|