Parcourir la source

采购申请名称,产品名称+日期,后面的审批到采购计划的名称都同步过去

hezhanp il y a 8 mois
Parent
commit
6450ea66d1

Fichier diff supprimé car celui-ci est trop grand
+ 713 - 687
src/views/materialPlan/components/plan-edit-dialog.vue


+ 8 - 0
src/views/materialPlan/components/producePlan.vue

@@ -986,6 +986,14 @@
           planIds: planIds,
           demandType: this.formData.demandType
         });
+        
+        if (this.$store.state.user.info.clientEnvironmentId == '4') {
+          if (res && res.length > 0) {
+            const firstOrderName = res[0].productName || '';
+            this.formData.name =
+              `${firstOrderName} ${this.formData.name}`.trim();
+          }
+        }
         this.renderTable(tableList, res);
       },
       renderTable(tableList, res) {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff