002201 2 gadi atpakaļ
vecāks
revīzija
ba48d2c63e
1 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 9 0
      src/views/purchase/apply/add/index.vue

+ 9 - 0
src/views/purchase/apply/add/index.vue

@@ -60,6 +60,15 @@ export default {
         const { code, data } = await ITEM(prop);
         if (code === 200) {
           this.params = data;
+          this.params.createBy = null;
+          this.params.createByName = null;
+          this.params.effectiveDate = null;
+          this.params.priceApplyItems = this.params.priceApplyItems.map(
+            (item) => ({ ...item, createByName: null, updateByName: null })
+          );
+          this.params.priceApplyOrgs = this.params.priceApplyOrgs.map(
+            (item) => ({ ...item, createByName: null, updateByName: null })
+          );
           return true;
         } else {
           return false;