Sfoglia il codice sorgente

转运营转执行完成

XuZinan 2 anni fa
parent
commit
4ba2919bef
1 ha cambiato i file con 22 aggiunte e 8 eliminazioni
  1. 22 8
      pages/Project/detail.vue

+ 22 - 8
pages/Project/detail.vue

@@ -133,7 +133,7 @@
     </view>
 
     <uni-popup ref="exePopup" type="dialog">
-      <uni-popup-dialog title="转执行" type="info">
+      <uni-popup-dialog title="转执行" type="info" before-close>
         <uni-forms
           ref="exe"
           :modelValue="formData"
@@ -152,7 +152,13 @@
       </uni-popup-dialog>
     </uni-popup>
     <uni-popup ref="wtyPopup" type="dialog">
-      <uni-popup-dialog title="转质保" type="info" @confirm="submitWarranty">
+      <uni-popup-dialog
+        title="转质保"
+        type="info"
+        @confirm="submitWarranty"
+        @close="onCancel"
+        before-close
+      >
         <uni-forms
           ref="wty"
           :modelValue="formData"
@@ -171,7 +177,13 @@
       </uni-popup-dialog>
     </uni-popup>
     <uni-popup ref="optPopup" type="dialog">
-      <uni-popup-dialog title="转运营" type="info" @confirm="submitOperate">
+      <uni-popup-dialog
+        title="转运营"
+        type="info"
+        @confirm="submitOperate"
+        @close="onCancel"
+        before-close
+      >
         <uni-forms
           ref="opt"
           :modelValue="formData"
@@ -504,6 +516,7 @@ export default {
             wty_manager_id: Number(manager_id),
           };
           await startWarranty(payload);
+          this.$refs.wtyPopup.close();
           uni.showToast({
             title: "转质保送审成功",
           });
@@ -530,6 +543,7 @@ export default {
             opt_manager_id: Number(manager_id),
           };
           await startOperate(payload);
+          this.$refs.optPopup.close();
           uni.showToast({
             title: "转运营送审成功",
           });
@@ -542,11 +556,11 @@ export default {
         }
       });
     },
-    // onCancel() {
-    //   this.$refs.exe.close();
-    //   this.$refs.wty.close();
-    //   this.$refs.opt.close();
-    // }
+    onCancel() {
+      this.$refs.exePopup.close();
+      this.$refs.wtyPopup.close();
+      this.$refs.optPopup.close();
+    },
   },
 };
 </script>