From 368b525db5f3f4f82b13c074341708a46b9a4111 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 11 三月 2025 09:11:29 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/business/materialOrder/index.vue |   31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/src/views/business/materialOrder/index.vue b/src/views/business/materialOrder/index.vue
index 51b698e..ce2ca45 100644
--- a/src/views/business/materialOrder/index.vue
+++ b/src/views/business/materialOrder/index.vue
@@ -849,7 +849,7 @@
     // 寰呬笅鍗曟煡璇�
     getPurchaseOrderList() {
       this.tableLoading = true
-      const params = { ...this.entity, isInspect: 1, state: 0 }
+      const params = { ...this.entity, isInspect: 1, state: 0, ...this.page }
       getWarehouseSubmit(params).then(res => {
         this.tableLoading = false
         if (res.code === 200) {
@@ -863,7 +863,7 @@
     // 妫�楠屼腑鏌ヨ
     getIfsByStateOneList() {
       this.tableLoading1 = true
-      const params = { ...this.entity, orderState: 1, state: 1 }
+      const params = { ...this.entity, orderState: 1, state: 1, ...this.page1 }
       getIfsByStateOne(params).then(res => {
         this.tableLoading1 = false
         if (res.code === 200) {
@@ -877,7 +877,14 @@
     // 宸叉楠屾煡璇�
     getIfsByOverList() {
       this.tableLoading2 = true
-      const params = { ...this.entity, orderState: 4, state: 2 }
+      if(null != this.entity.date){
+        this.entity.beginDeclareDate = this.entity.date[0]
+        this.entity.endDeclareDate = this.entity.date[1]
+      } else {
+        this.entity.beginDeclareDate = ''
+        this.entity.endDeclareDate = ''
+      }
+      const params = { ...this.entity, orderState: 4, state: 2, ...this.page2 }
       getIfsByOver(params).then(res => {
         this.tableLoading2 = false
         if (res.code === 200) {
@@ -891,7 +898,14 @@
     // 鏌ヨ瀛e害妫�楠�
     getIfsByQuarterList() {
       this.tableLoading4 = true
-      const params = { ...this.entity }
+      if(null != this.entity.date){
+        this.entity.beginDeclareDate = this.entity.date[0]
+        this.entity.endDeclareDate = this.entity.date[1]
+      } else {
+        this.entity.beginDeclareDate = ''
+        this.entity.endDeclareDate = ''
+      }
+      const params = { ...this.entity, ...this.page4 }
       getIfsByOver(params).then(res => {
         this.tableLoading4 = false
         if (res.code === 200) {
@@ -905,7 +919,14 @@
     // 鍏ㄩ儴
     getIfsByAllList() {
       this.tableLoading3 = true
-      const params = { ...this.entity, isInspect: 1 }
+      if(null != this.entity.date){
+        this.entity.beginDeclareDate = this.entity.date[0]
+        this.entity.endDeclareDate = this.entity.date[1]
+      } else {
+        this.entity.beginDeclareDate = ''
+        this.entity.endDeclareDate = ''
+      }
+      const params = { ...this.entity, isInspect: 1, ...this.page3 }
       getIfsByAll(params).then(res => {
         this.tableLoading3 = false
         if (res.code === 200) {

--
Gitblit v1.9.3