Преглед на файлове

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

hezhanp преди 8 месеца
родител
ревизия
6450ea66d1
променени са 2 файла, в които са добавени 721 реда и са изтрити 687 реда
  1. 713 687
      src/views/materialPlan/components/plan-edit-dialog.vue
  2. 8 0
      src/views/materialPlan/components/producePlan.vue

Файловите разлики са ограничени, защото са твърде много
+ 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) {

Някои файлове не бяха показани, защото твърде много файлове са промени