wangggziwen 2 سال پیش
والد
کامیت
ce441fe931

+ 22 - 1
master/src/main/java/com/ruoyi/project/production/controller/TSaiApplyController.java

@@ -489,7 +489,28 @@ public class TSaiApplyController extends BaseController
         String userId = getUserId().toString();
         tSaiApply.setUpdateBy(userId);
         tSaiApply.setUpdateTime(new Date());
-        tSaiApply.setHandler(tSaiApply.getApplicant());
+
+        long applyStatus = tSaiApply.getApplyStatus();
+        switch (applyStatus + "") {
+            case "0":
+                tSaiApply.setHandler(tSaiApply.getApplicant());
+                break;
+            case "1":
+                tSaiApply.setHandler("20276");
+                break;
+            case "2":
+                tSaiApply.setHandler(tSaiApply.getExecutor());
+                break;
+            case "3":
+                tSaiApply.setHandler(tSaiApply.getInspectors());
+                break;
+            case "4":
+                tSaiApply.setHandler(null);
+                break;
+            case "5":
+                tSaiApply.setHandler(null);
+                break;
+        }
 
         TSaiApproveFile tSaiApproveFile = new TSaiApproveFile();
         tSaiApproveFile.setApproveId(tSaiApply.getSaiApplyId());

+ 1 - 0
ui/src/views/approve/approveDetail/sai-apply-detail.vue

@@ -1263,6 +1263,7 @@ export default {
             this.msgSuccess("保存成功");
             // refreshDataList事件:调用父组件getList方法刷新页面
             this.$emit('refreshDataList');
+            this.visible = false;
           });
         }
       })