From f0cd1d0219523e70162336c207da80712b9fb2c2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 18 四月 2025 10:12:00 +0800
Subject: [PATCH] 1.下单导出条件修改

---
 src/views/business/productOrder/index.vue                                   |    8 +++++++-
 src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue |    2 +-
 src/views/business/materialOrder/index.vue                                  |    9 ++++++++-
 3 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue
index 11b857b..1809fa2 100644
--- a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue
+++ b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenancePlan.vue
@@ -24,7 +24,7 @@
             </template>
           </el-table-column>
           <!-- 鎿嶄綔鎸夐挳 -->
-          <el-table-column align="center" fixed="right" label="鎿嶄綔" min-width="240">
+          <el-table-column align="center" fixed="right" label="鎿嶄綔" min-width="260">
             <template slot-scope="scope">
               <el-button :disabled="scope.row.status === 1" size="small" type="text"
                 @click="handleForm('edit', scope.row)">缂栬緫</el-button>
diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue
index 9c2ac08..770931d 100644
--- a/src/views/business/materialOrder/index.vue
+++ b/src/views/business/materialOrder/index.vue
@@ -1351,7 +1351,13 @@
     // 瀵煎嚭
     handleOut() {
       this.outLoading = true
-      rawAllExport({ ...this.entity }).then(res => {
+      let params = {}
+      if (this.multipleSelection.length > 0) {
+        params.ids = this.multipleSelection.map(item => item.id).join(',');
+      } else {
+        params = {...this.entity}
+      }
+      rawAllExport(params).then(res => {
         this.outLoading = false
         const blob = new Blob([res], { type: 'application/octet-stream' });
         this.$download.saveAs(blob, '鍘熸潗鏂欐娴嬩俊鎭鍑�.xlsx');
@@ -1379,6 +1385,7 @@
     // 鍒囨崲涓嬪崟tab琛ㄦ牸
     handleTab(m) {
       this.tabIndex = m;
+      this.multipleSelection = []
       this.refreshTable()
     },
     // 琛ㄦ牸閫夋嫨鏂规硶
diff --git a/src/views/business/productOrder/index.vue b/src/views/business/productOrder/index.vue
index 44f96ec..b602274 100644
--- a/src/views/business/productOrder/index.vue
+++ b/src/views/business/productOrder/index.vue
@@ -927,7 +927,12 @@
     },
     // 瀵煎嚭璁板綍
     downLoad() {
-      const params = { ...this.entity, state: this.tabList[this.tabIndex].value }
+      let params = {}
+      if (this.multipleSelection.length > 0) {
+        params.ids = this.multipleSelection.map(item => item.id).join(',');
+      } else {
+        params = { ...this.entity, state: this.tabList[this.tabIndex].value }
+      }
       rawAllInsOrderExport({ ...params }).then(res => {
         const blob = new Blob([res], { type: 'application/octet-stream' });
         this.$download.saveAs(blob, '濮旀墭妫�娴嬩俊鎭鍑�.xlsx');
@@ -1260,6 +1265,7 @@
     },
     handleTab(i) {
       this.tabIndex = i;
+      this.multipleSelection = []
       this.refreshTable()
     },
     // 鏌ョ湅妫�楠屾暟鎹�

--
Gitblit v1.9.3