浏览代码

修改bug

QuKatie 3 年之前
父节点
当前提交
0c895832f7

+ 6 - 2
src/views/finance/charge/kaihe-detail.vue

@@ -34,7 +34,9 @@
               size="small"
               placeholder="请选择"
               clearable
-              :disabled="form.fBillstatus >= 4 || readOnly == 0 || form.fId!=null"
+              :disabled="
+                form.fBillstatus >= 4 || readOnly == 0 || form.fId != null
+              "
               style="width: 100%"
               filterable
             >
@@ -702,6 +704,7 @@ export default {
       formDate.append("tFeeDo", JSON.stringify(this.tableData));
       revoke(formDate).then((response) => {
         this.msgSuccess("撤回成功");
+        Object.assign(this.$data, this.$options.data());
         this.$emit("goBack", false);
       });
     },
@@ -761,8 +764,9 @@ export default {
       formDate.append("billsType", JSON.stringify("KHDZ"));
       confirm(formDate).then((res) => {
         if (res.code == 200) {
-          this.$emit("goBack", false);
           this.$message.success("收费成功");
+          Object.assign(this.$data, this.$options.data());
+          this.$emit("goBack", false);
         }
       });
     },

+ 3 - 1
src/views/finance/contrast/kaihe-detail.vue

@@ -687,6 +687,7 @@ export default {
       formDate.append("tFeeDo", JSON.stringify(this.tableData));
       revoke(formDate).then((response) => {
         this.msgSuccess("撤回成功");
+        Object.assign(this.$data, this.$options.data());
         this.$emit("goBack", false);
       });
     },
@@ -745,8 +746,9 @@ export default {
       formDate.append("billsType", JSON.stringify("KHDZ"));
       confirm(formDate).then((res) => {
         if (res.code == 200) {
-          this.$emit("goBack", false);
           this.$message.success("对账成功");
+          Object.assign(this.$data, this.$options.data());
+          this.$emit("goBack", false);
         }
       });
     },

+ 6 - 2
src/views/finance/payment/kaihe-detail.vue

@@ -34,7 +34,9 @@
               size="small"
               placeholder="请选择"
               clearable
-              :disabled="form.fBillstatus >= 4 || readOnly == 0 || form.fId!=null"
+              :disabled="
+                form.fBillstatus >= 4 || readOnly == 0 || form.fId != null
+              "
               style="width: 100%"
               filterable
             >
@@ -702,6 +704,7 @@ export default {
       formDate.append("tFeeDo", JSON.stringify(this.tableData));
       revoke(formDate).then((response) => {
         this.msgSuccess("撤回成功");
+        Object.assign(this.$data, this.$options.data());
         this.$emit("goBack", false);
       });
     },
@@ -761,8 +764,9 @@ export default {
       formDate.append("billsType", JSON.stringify("KHDZ"));
       confirm(formDate).then((res) => {
         if (res.code == 200) {
-          this.$emit("goBack", false);
           this.$message.success("付费成功");
+          Object.assign(this.$data, this.$options.data());
+          this.$emit("goBack", false);
         }
       });
     },