Parcourir la source

JLHWEB: 1、修复清单保存错误

JohnnyChan il y a 1 jour
Parent
commit
083b6e45ab
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

+ 4 - 4
JLHWEB/src/views/erpapi/mattressInterface/hooks/index.tsx

@@ -1990,7 +1990,7 @@ export const useHooks = (t?: any) => {
       // 刷新清单
       visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
 
-      state.mattressYWList = res.mxList.map(mx => {
+      state.mattressQDList = res.mxList.map(mx => {
         const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
         if (copyMap.has(key)) {
           matchQty++;
@@ -2017,7 +2017,7 @@ export const useHooks = (t?: any) => {
       ];
       res.mxList.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
 
-      state.mattressYWList = visibleData.map(mx => {
+      state.mattressQDList = visibleData.map(mx => {
         const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
         if (copyMap.has(key)) {
           matchQty++;
@@ -2033,7 +2033,7 @@ export const useHooks = (t?: any) => {
       // 重新刷新清单
       visibleData.forEach(mx => copyMap.set(`${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`, mx));
 
-      state.mattressYWList = res.mxList.map(mx => {
+      state.mattressQDList = res.mxList.map(mx => {
         const key = `${mx.itemname}|${mx.bj_pzname}|${mx.bj_pzname_mx}`;
         if (copyMap.has(key)) {
           matchQty++;
@@ -2046,7 +2046,7 @@ export const useHooks = (t?: any) => {
     }
 
     if (res.mxList.length > 0) {
-      await $table.reloadData(state.mattressYWList);
+      await $table.reloadData(state.mattressQDList);
       resetMergeCellsQd();
 
       ElNotification({