From c51167b62fea2831abba53ba9c05bc13646340cf Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 22 三月 2024 14:53:34 +0800
Subject: [PATCH] 原材料报检时间修改

---
 src/views/quality/rawMaterial/index.vue |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/src/views/quality/rawMaterial/index.vue b/src/views/quality/rawMaterial/index.vue
index fc085ef..c5af6e0 100644
--- a/src/views/quality/rawMaterial/index.vue
+++ b/src/views/quality/rawMaterial/index.vue
@@ -187,12 +187,13 @@
                     },
                     {
                         minWidth: '120',
-                        prop: 'createTime',
+                        prop: 'startTime',
                         label: '鎶ユ鏃ユ湡',
                         isTrue: true,
                         sort: true,
                         isSearch: true,
                         searchInfoType: 'text',
+                        searchInfoType: 'datetimerange',
                         formatter: this.formatDateTime,
                     },
                     {
@@ -210,6 +211,7 @@
                         isTrue: true,
                         isSearch: true,
                         searchInfoType: 'text',
+                        searchInfoType: 'datetimerange',
                         formatter: this.formatDateTime,
                     },
                     {
@@ -317,25 +319,22 @@
                 cancelButtonText: '涓嶉�氳繃',
                 type: 'warning'
             }).then(() => {
-                checkPutIFS(val.id,{result: 1}).then(res=>{
-                    if(res.status===200){
-                        console.log(res)
-                    }
-                }).catch(error=>{
-                    console.error(error)
-                })
+                this.checkPutIFSFun(val.id,1);
             }).catch((action) => {
                 if(action === 'cancel'){
-                    checkPutIFS(val.id,{result: 2}).then(res=>{
-                        if(res.status===200){
-                            console.log(res)
-                        }
-                    }).catch(error=>{
-                        console.error(error)
-                    })
+                    this.checkPutIFSFun(val.id,2);
                 }
             });
         },
+        checkPutIFSFun(id,result){
+            checkPutIFS(id, result).then(res=>{
+                if(res.status===200){
+                    this.getData()
+                }
+            }).catch(error=>{
+                console.error(error)
+            })
+        },
         downloadReport(){
             let selection = this.multipleSelection
             if(!selection || selection.length < 1){

--
Gitblit v1.9.3