From 2ad08ea181d8ec1e2b4b90bd1ddd40a2ba595b59 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 07 三月 2024 08:08:25 +0800
Subject: [PATCH] 提交更新

---
 north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue |   35 +++++++++++++++++++++++++++++++----
 1 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
index c1ab4c8..42bf27f 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/ProductionScheduling.vue
@@ -395,10 +395,13 @@
             }
             const type = await VXETable.modal.confirm('鎮ㄧ‘瀹氳鍒犻櫎璇ユ暟鎹�?')
             if (type === 'confirm') {
-              //淇濆瓨鎺掍骇鏁版嵁
-              request.post("/productionScheduling/deleteScheduling").then((res) => {
+              let schedulingData = ref({
+                scheduling: selectRecords,
+              })
+
+              request.post("/productionScheduling/deleteScheduling",schedulingData.value).then((res) => {
                 if (res.code == 200) {
-                  ElMessage.success("淇濆瓨鎴愬姛")
+                  ElMessage.success("鍒犻櫎鎴愬姛")
                   location.reload();
                 } else {
                   ElMessage.warning(res.msg)
@@ -407,9 +410,33 @@
               })
             }
           }
-
+          return;
         }
+        case 'review': {
+          const $table = xGrid.value
+          const selectRecords = $table.getCheckboxRecords()
+          if ($table) {
+            if (selectRecords.length == 0) {
+              ElMessage.warning("璇峰嬀閫夋帓浜ф暟鎹�")
+              return;
+            }
+            let schedulingData = ref({
+              scheduling: selectRecords,
+              userName: username//瀹℃牳浜�
+            })
+            request.post("/productionScheduling/examineScheduling",schedulingData.value).then((res) => {
+              if (res.code == 200) {
+                ElMessage.success("瀹℃牳鎴愬姛")
+                location.reload();
+              } else {
+                ElMessage.warning(res.msg)
 
+              }
+            })
+
+          }
+          return;
+        }
       }
     }
   },

--
Gitblit v1.8.0