瀏覽代碼

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

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) {

部分文件因文件數量過多而無法顯示