Browse Source

1、修复副规格辅料修改没有替换问题

MY 5 days ago
parent
commit
5847dba461
1 changed files with 6 additions and 6 deletions
  1. 6 6
      JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

+ 6 - 6
JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

@@ -1459,7 +1459,7 @@ export const useHooks = (t?: any) => {
         nextTick(() => {
           $table.setActiveRow(data);
 
-          // 垫层tab、辅料tab,修改物料后,触发刷新规格
+          // 垫层tab、辅料tab,修改物料后,触发刷新规格
           if (data.formulatype == 1 || data.formulatype == 2) {
             updateSubspecsTable();
           }
@@ -6402,11 +6402,11 @@ export const useHooks = (t?: any) => {
 
             // 初始化值
             visibleData.forEach(sub => {
-              if (!(_field in sub)) {
-                sub[_field] = item.mtrlid;
-                sub[_mtrlname] = item.mtrlname;
-                sub[_formulakind] = item.formulakind;
-              }
+              // if (!(_field in sub)) {
+              sub[_field] = item.mtrlid;
+              sub[_mtrlname] = item.mtrlname;
+              sub[_formulakind] = item.formulakind;
+              // }
             });
 
             idx++;