Sfoglia il codice sorgente

Merge branch 'purchaseDev' of http://172.16.100.139/new-business/drp-web into purchaseDev

002390 2 anni fa
parent
commit
5ad11e2e8c
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      src/views/purchase/apply/add/index.vue

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

@@ -60,6 +60,16 @@ export default {
         const { code, data } = await ITEM(prop);
         if (code === 200) {
           this.params = data;
+          this.params.createBy = null;
+          this.params.priceCode = 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;