From c41f8c8a75c4475831e3c7e9cde7467d2fb39950 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 28 六月 2024 10:38:17 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/base/BaseOpera.vue |   62 +++++++++++++++++++++++++++++++
 1 files changed, 62 insertions(+), 0 deletions(-)

diff --git a/company/src/components/base/BaseOpera.vue b/company/src/components/base/BaseOpera.vue
index 70681bd..f5c7aba 100644
--- a/company/src/components/base/BaseOpera.vue
+++ b/company/src/components/base/BaseOpera.vue
@@ -14,6 +14,16 @@
       }
     }
   },
+  // watch: {
+  //   visible() {
+  //     console.log(this.visible);
+  //   }
+  // },
+  watch: {
+    $route (to, from) {
+      this.close()
+    }
+  },
   methods: {
     // 閰嶇疆
     config (extParams = {}) {
@@ -49,6 +59,55 @@
         }
       })
     },
+    getApplyTimeTitle (type, solutionType, model) {
+      if (type == 0) {
+        // 濡傛灉鏄捣鏈�
+        if (solutionType === 1) {
+          // 濡傛灉鏄鎵樻姇淇濈敵璇�
+          return [3].includes(model.unionApplyTbdStatus) ? '淇濋櫓鐢熸晥璧锋湡' : '鏈熸湜鐢熸晥璧锋湡'
+        } else {
+          // 濡傛灉鏄洿淇濈敵璇�
+          return model.status === 5 ? '淇濋櫓鐢熸晥璧锋湡' : '鏈熸湜鐢熸晥璧锋湡'
+        }
+      } else {
+        // 濡傛灉鏄鏈�
+        if (solutionType === 1) {
+          // 濡傛灉鏄鎵樻姇淇濈敵璇�
+          return [3].includes(model.unionApplyTbdStatus) ? '淇濋櫓鐢熸晥姝㈡湡' : '棰勮鐢熸晥姝㈡湡'
+        } else {
+          // 濡傛灉鏄洿淇濈敵璇�
+          return model.status === 5 ? '淇濋櫓鐢熸晥姝㈡湡' : '棰勮鐢熸晥姝㈡湡'
+        }
+      }
+    },
+    getChangApplyTimeTitle (changeType, model) {
+      if (changeType === 2) {
+        return model.status === 2 ? '鎵瑰崟鐢熸晥鏈�' : '鏈熸湜鎵瑰崟鐢熸晥鏈�'
+      } else if (changeType === 1) {
+        return model.status === 2 ? '鎵瑰鐢熸晥璧锋湡' : '鏈熸湜鎵瑰鐢熸晥璧锋湡'
+      } else {
+        return model.status === 2 ? '鎵瑰噺鐢熸晥璧锋湡' : '鏈熸湜鎵瑰噺鐢熸晥璧锋湡'
+      }
+    },
+    getUnionApplyTimeTitle (type, model) {
+      if (type === 1) {
+        return model.status === 3 ? '淇濋櫓鐢熸晥璧锋湡' : '鏈熸湜鐢熸晥璧锋湡'
+      } else {
+        return model.status === 3 ? '淇濋櫓鐢熸晥姝㈡湡' : '鏈熸湜鐢熸晥姝㈡湡'
+      }
+    },
+    getUnionChangTimeTitle (changeType, model) {
+      if (changeType === 2) {
+        return model.status === 2 ? '鎵瑰崟鐢熸晥鏈�' : '鏈熸湜鎵瑰崟鐢熸晥鏈�'
+      } else if (changeType === 1) {
+        return model.status === 2 ? '鎵瑰鐢熸晥璧锋湡' : '鏈熸湜鎵瑰鐢熸晥璧锋湡'
+      } else {
+        return model.status === 2 ? '鎵瑰噺鐢熸晥璧锋湡' : '鏈熸湜鎵瑰噺鐢熸晥璧锋湡'
+      }
+    },
+    close () {
+      this.visible = false
+    },
     // 纭鏂板缓/淇敼
     confirm () {
       if (this.form.id == null || this.form.id === '') {
@@ -60,9 +119,12 @@
     // 纭鏂板缓
     __confirmCreate () {
       this.$refs.form.validate((valid) => {
+        // debugger
         if (!valid) {
           return
         }
+        // console.log(this.form);
+        // debugger
         // 璋冪敤鏂板缓鎺ュ彛
         this.isWorking = true
         this.api.create(this.form)

--
Gitblit v1.9.3