Commit 4bfa519a080eae179dc752a286faecac6e939f71

Authored by chenxt
1 parent 3df153d8

增加sParentId

src/mes/common/commonModelComponent/index.js
... ... @@ -477,7 +477,11 @@ const useCommonModelEvent = props => {
477 477 const returnData = dataReturn.dataset?.rows?.[0];
478 478 if (commonUtils.isNotEmptyObject(returnData)) {
479 479 for (const key of Object.keys(returnData)) {
480   - addState[`${key}Data`] = returnData[key];
  480 + const data = returnData[key].map(x => {
  481 + x.sParentId = props.masterData.sId
  482 + return x
  483 + })
  484 + addState[`${key}Data`] = data;
481 485 }
482 486 }
483 487 } else {
... ...