From dc3af0cbb4a6d105bdff497b510cc0a87b3e8d0a Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 28 二月 2025 17:53:44 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/business/rawMaterialInspection/index.vue |   17 ++++++-----------
 1 files changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/views/business/rawMaterialInspection/index.vue b/src/views/business/rawMaterialInspection/index.vue
index 2ea2eb7..7573f89 100644
--- a/src/views/business/rawMaterialInspection/index.vue
+++ b/src/views/business/rawMaterialInspection/index.vue
@@ -549,7 +549,7 @@
     // 寰呮姤妫�銆佸緟涓嬪崟鏌ヨ
     getWarehouseSubmitApi () {
       this.tableLoading = true
-      const params = {...this.componentData, isInspect: this.tabIndex, state: this.tabIndex === 0 ? null : 0}
+      const params = {...this.componentData, isInspect: this.tabIndex, state: this.tabIndex === 0 ? null : 0, ...this.page}
       getWarehouseSubmit(params).then(res => {
         this.tableLoading = false
         if (res.code === 200) {
@@ -563,7 +563,7 @@
     // 宸插畬鎴愰儴鏌ヨ
     getIfsByFinishList () {
       this.tableLoading1 = true
-      getIfsByFinish({...this.componentData}).then(res => {
+      getIfsByFinish({...this.componentData, ...this.page1}).then(res => {
         this.tableLoading1 = false
         if (res.code === 200) {
           this.tableData1 = res.data.records
@@ -576,7 +576,7 @@
     // 鍏ㄩ儴鏌ヨ
     getIfsByAllList () {
       this.tableLoading1 = true
-      getIfsByAll({...this.componentData}).then(res => {
+      getIfsByAll({...this.componentData, ...this.page1}).then(res => {
         this.tableLoading1 = false
         if (res.code === 200) {
           this.tableData1 = res.data.records
@@ -795,16 +795,11 @@
       this.outLoading = true
       rawAllExport({
         entity:entity
-      },{
-        responseType: "blob"}).then(res => {
+      }).then(res => {
         this.outLoading = false
         this.$message.success('瀵煎嚭鎴愬姛')
-        const blob = new Blob([res],{ type: 'application/octet-stream' });
-        const url = URL.createObjectURL(blob);
-        const link = document.createElement('a');
-        link.href = url;
-        link.download = '鍘熸潗鏂欐娴嬩俊鎭鍑�.xlsx';
-        link.click();
+        let url = this.javaApi + '/word/' + res.data
+        this.$download.saveAs(url, "鍘熸潗鏂欐娴嬩俊鎭鍑�.xlsx");
       })
     },
     clear() {

--
Gitblit v1.9.3