002201 il y a 2 ans
Parent
commit
14824b6a8c
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      src/views/purchase/apply/edit/index.vue

+ 8 - 1
src/views/purchase/apply/edit/index.vue

@@ -23,7 +23,11 @@ export default {
       ...useData(Column),
     };
   },
-  computed: {},
+  computed: {
+    root: function () {
+      return this.$parent.$parent;
+    },
+  },
   watch: {
     "params.puOrgName": watchPuOrgName(),
     "params.priceApplyOrgs": watchPriceApplyOrgs(),
@@ -124,6 +128,9 @@ export default {
             const params = { ...this.params };
             const { msg, code } = await SAVE(params);
             if (code === 200) {
+              const { id } = this.params;
+              const { fetchItem } = this.root.$refs.SeeModel;
+              await fetchItem(id);
               this.hide();
               this.$emit("success");
               this.$notify.success(msg);