@kmkf-fe-packages/kmkf-work-order-service-component 2.0.54-beta.72 → 2.0.54-beta.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -647,18 +647,29 @@ var handleErpTradeId = function handleErpTradeId(_ref47) {
647
647
  }));
648
648
  };
649
649
  };
650
- var handleWlnGoods = function handleWlnGoods(_ref48) {
650
+ var handleErpAfterSelfTradeId = function handleErpAfterSelfTradeId(_ref48) {
651
651
  var addContent = _ref48.addContent,
652
652
  getNowData = _ref48.getNowData;
653
+ return function (item) {
654
+ var tradeItemList = getNowData(item.uniqueKey, []);
655
+ addContent('erpAfterSaleTradeIdList', tradeItemList);
656
+ addContent('erpAfterSaleTradeItemList', tradeItemList.map(function (item) {
657
+ return item.billNo + '';
658
+ }));
659
+ };
660
+ };
661
+ var handleWlnGoods = function handleWlnGoods(_ref49) {
662
+ var addContent = _ref49.addContent,
663
+ getNowData = _ref49.getNowData;
653
664
  return function (item) {
654
665
  var wlnGoods = getNowData(item.uniqueKey, {});
655
666
  addContent('wlnGoods', wlnGoods.wlnGoods);
656
667
  addContent('shopCode', (wlnGoods === null || wlnGoods === void 0 ? void 0 : wlnGoods.shopCode) || '');
657
668
  };
658
669
  };
659
- var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref49) {
660
- var addContent = _ref49.addContent,
661
- getNowData = _ref49.getNowData;
670
+ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref50) {
671
+ var addContent = _ref50.addContent,
672
+ getNowData = _ref50.getNowData;
662
673
  return function (item) {
663
674
  ['bsE3SystemOrderNo', 'bsE3ReissueType', 'bsE3ReissueMemo', 'bsE3ReissueGoods'].map(function (key) {
664
675
  if (key === 'bsE3ReissueGoods') {
@@ -669,33 +680,33 @@ var handleBsE3ReissueGoods = function handleBsE3ReissueGoods(_ref49) {
669
680
  });
670
681
  };
671
682
  };
672
- var handleWdtShopSelect = function handleWdtShopSelect(_ref50) {
673
- var addContent = _ref50.addContent,
674
- getNowData = _ref50.getNowData;
683
+ var handleWdtShopSelect = function handleWdtShopSelect(_ref51) {
684
+ var addContent = _ref51.addContent,
685
+ getNowData = _ref51.getNowData;
675
686
  return function (item) {
676
687
  ['shopCode'].map(function (key) {
677
688
  addContent(key, getNowData("".concat(item.uniqueKey), ''));
678
689
  });
679
690
  };
680
691
  };
681
- var handleDefault = function handleDefault(_ref51) {
682
- var addContent = _ref51.addContent,
683
- getNowData = _ref51.getNowData;
692
+ var handleDefault = function handleDefault(_ref52) {
693
+ var addContent = _ref52.addContent,
694
+ getNowData = _ref52.getNowData;
684
695
  return function (item) {
685
696
  addContent(V.camelCase(item.workOrderComponentType), getNowData(item.uniqueKey, ''));
686
697
  };
687
698
  };
688
- var handleStatusField = function handleStatusField(_ref52) {
689
- var addContent = _ref52.addContent,
690
- getNowData = _ref52.getNowData;
699
+ var handleStatusField = function handleStatusField(_ref53) {
700
+ var addContent = _ref53.addContent,
701
+ getNowData = _ref53.getNowData;
691
702
  return function (item) {
692
703
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey, ".status"), ''));
693
704
  addContent(SUBMIT_COMPONENT_STATUS_MAP[item.workOrderComponentType].reason, getNowData("".concat(item.uniqueKey, ".reason"), ''));
694
705
  };
695
706
  };
696
- var handleGoodStatus = function handleGoodStatus(_ref53) {
697
- var addContent = _ref53.addContent,
698
- getNowData = _ref53.getNowData;
707
+ var handleGoodStatus = function handleGoodStatus(_ref54) {
708
+ var addContent = _ref54.addContent,
709
+ getNowData = _ref54.getNowData;
699
710
  return function (item) {
700
711
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].list, getNowData("".concat(item.uniqueKey), []));
701
712
  addContent(SUBMIT_COMPONENT_GOOD_STATUS_MAP[item.workOrderComponentType].status, getNowData("".concat(item.uniqueKey), []).map(function (item) {
@@ -703,13 +714,13 @@ var handleGoodStatus = function handleGoodStatus(_ref53) {
703
714
  }));
704
715
  };
705
716
  };
706
- var processComponent = function processComponent(_ref54) {
707
- var params = _ref54.params,
708
- nowData = _ref54.nowData,
709
- updateFlag = _ref54.updateFlag,
710
- detail = _ref54.detail,
711
- accountName = _ref54.accountName,
712
- getValueByField = _ref54.getValueByField;
717
+ var processComponent = function processComponent(_ref55) {
718
+ var params = _ref55.params,
719
+ nowData = _ref55.nowData,
720
+ updateFlag = _ref55.updateFlag,
721
+ detail = _ref55.detail,
722
+ accountName = _ref55.accountName,
723
+ getValueByField = _ref55.getValueByField;
713
724
  return function (item) {
714
725
  var contentVoList = [];
715
726
  var uniqueKeyPrefix = "".concat(item.uniqueKey, "_");
@@ -938,10 +949,12 @@ var processComponent = function processComponent(_ref54) {
938
949
  wrapFn(handleReturnGoodsTradeId);
939
950
  break;
940
951
  case 'REISSUE_TRADE_ID':
941
- case 'ERP_AFTER_SALE_TRADE_ID':
942
952
  case 'EXCHANGE_TRADE_ID':
943
953
  wrapFn(handleErpTradeId);
944
954
  break;
955
+ case 'ERP_AFTER_SALE_TRADE_ID':
956
+ wrapFn(handleErpAfterSelfTradeId);
957
+ break;
945
958
  case 'WLN_GOODS':
946
959
  wrapFn(handleWlnGoods);
947
960
  break;
@@ -940,10 +940,12 @@ export var reversalFormValues = function reversalFormValues() {
940
940
  prv["".concat(next.uniqueKey, "_returnGoodsTradeItemList")] = JSON.stringify(values[next.uniqueKey] || []);
941
941
  break;
942
942
  case 'REISSUE_TRADE_ID':
943
- case 'ERP_AFTER_SALE_TRADE_ID':
944
943
  case 'EXCHANGE_TRADE_ID':
945
944
  prv["".concat(next.uniqueKey, "_tradeItemList")] = JSON.stringify(values[next.uniqueKey] || []);
946
945
  break;
946
+ case 'ERP_AFTER_SALE_TRADE_ID':
947
+ prv["".concat(next.uniqueKey, "_erpAfterSaleTradeItemList")] = JSON.stringify(values[next.uniqueKey] || []);
948
+ break;
947
949
  case 'WDT_GOODS':
948
950
  prv["".concat(next.uniqueKey, "_wdtGoods")] = JSON.stringify(values[next.uniqueKey]['wdtGoods']);
949
951
  prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "2.0.54-beta.72",
3
+ "version": "2.0.54-beta.73",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -73,7 +73,7 @@
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "57029c6ab776b45df269aeb6bf44382d32dafe35",
76
+ "gitHead": "56a610e87d513d9794b31c63a51b635a9c4a27af",
77
77
  "gitHooks": {
78
78
  "pre-commit": "lint-staged"
79
79
  }