From f867c1a87123e0dae74ec36591433082df094b75 Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang <287285524@qq.com>
Date: Tue, 05 Sep 2023 16:25:42 +0800
Subject: [PATCH] 订单选择导出角色管理

---
 src/views/qyp-project-order/admin.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/views/qyp-project-order/admin.vue b/src/views/qyp-project-order/admin.vue
index 7320164..5fcea8f 100644
--- a/src/views/qyp-project-order/admin.vue
+++ b/src/views/qyp-project-order/admin.vue
@@ -143,14 +143,15 @@
   import history from './history.vue';
   import plan from './plan.vue';
   import draw from './draw.vue';
-  import {orderInit,orderDtl} from "@/api/credit";
+  import {orderInit,orderDtl,orderExport} from "@/api/order";
   import uploadImg from "@/components/upload.vue";
+  import downloadUrl from "@/utils/excelDownLoadConfig";
   export default {
     name: "order",
     components: { Etable,uploadImg,history,plan,draw },
     data() {
       return {
-          formInline: {status:"all"},
+          formInline: {promId:"all",orderStatus:"all",agencyName:'all'},
           searchData: {},
           columns: [
             {
@@ -356,8 +357,11 @@
     methods: {
       addProduct(){
         if(!this.exportExcelList.length){
-            return this.$message.error("请选择订单后导出");
+          return this.$message.error("请选择订单后导出");
         }
+        orderExport({orderIdList:this.exportExcelList.join(',')}).then((res) => {
+          downloadUrl.configDate2(res, '管理员订单列表');
+        });
       },
       keyupEvent(e) {
         //只能输入整数
@@ -387,7 +391,9 @@
       getDataList(e) {
       },
       handleSelectionChange(list){
-        this.exportExcelList = list;
+        this.exportExcelList = list.map(d=>{
+          return d.orderId
+        });
       },
       getProductDetail(orderId){
         orderDtl({orderId:orderId}).then(({body})=>{

--
Gitblit v1.8.0