@kmkf-fe-packages/kmkf-work-order-service-component 0.10.0-alpha.0 → 0.10.0-alpha.2

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.
@@ -252,7 +252,7 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
252
252
  if (interceptCompany && !ExpressData.getInstance().getExpressNameByCode(interceptCompany, false)) {
253
253
  needTransForm = true;
254
254
  }
255
- var interceptValuesMap = ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot'];
255
+ var interceptValuesMap = ['interceptCompany', 'interceptCode', 'interceptSenderMobile', 'interceptType', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther'];
256
256
  interceptValuesMap.forEach(function (t) {
257
257
  contentVoList.push({
258
258
  uniqueKey: "".concat(item.uniqueKey, "_").concat(t),
@@ -583,7 +583,7 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
583
583
  content: get(nowData, "".concat(item.uniqueKey), ''),
584
584
  name: item.name
585
585
  });
586
- } else if (['REISSUE_STATUS', 'EXCHANGE_STATUS', 'ADJUST_WORK_ORDER_STATUS', 'CREATE_STATUS'].includes(item.workOrderComponentType)) {
586
+ } else if (['REISSUE_STATUS', 'EXCHANGE_STATUS', 'ADJUST_WORK_ORDER_STATUS', 'CREATE_STATUS', 'INVOICE_STATUS'].includes(item.workOrderComponentType)) {
587
587
  var STATUS_MAP = {
588
588
  REISSUE_STATUS: {
589
589
  status: 'reissueStatusValue',
@@ -600,6 +600,10 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
600
600
  CREATE_STATUS: {
601
601
  status: 'createStatusValue',
602
602
  reason: 'createReason'
603
+ },
604
+ INVOICE_STATUS: {
605
+ status: 'invoiceStatusValue',
606
+ reason: 'invoiceReason'
603
607
  }
604
608
  };
605
609
  contentVoList.push({
@@ -1075,8 +1079,7 @@ var transDataSource = function transDataSource(templateColumns) {
1075
1079
  interceptReceiverName: item.jsonMap["".concat(nex.uniqueKey, "_interceptReceiverName")],
1076
1080
  interceptReceiverMobile: item.jsonMap["".concat(nex.uniqueKey, "_interceptReceiverMobile")],
1077
1081
  interceptLogisticsStatus: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsStatus")],
1078
- interceptLogisticsStatusOther: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsStatusOther")],
1079
- interceptLogisticsSnapshot: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsSnapshot")]
1082
+ interceptLogisticsStatusOther: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsStatusOther")]
1080
1083
  }));
1081
1084
  } else if (nex.workOrderComponentType === 'LOGISTICS_TRAJECTORY') {
1082
1085
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), {
@@ -1168,7 +1171,7 @@ var transDataSource = function transDataSource(templateColumns) {
1168
1171
  EXCHANGE_TRADE_ID: 'exchangeTradeId'
1169
1172
  };
1170
1173
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_").concat(TRADE_ID_MAP[nex.workOrderComponentType])]));
1171
- } else if (['REISSUE_STATUS', 'EXCHANGE_STATUS', 'ADJUST_WORK_ORDER_STATUS', 'CREATE_STATUS'].includes(nex.workOrderComponentType)) {
1174
+ } else if (['REISSUE_STATUS', 'EXCHANGE_STATUS', 'ADJUST_WORK_ORDER_STATUS', 'CREATE_STATUS', 'INVOICE_STATUS'].includes(nex.workOrderComponentType)) {
1172
1175
  var STATUS_MAP = {
1173
1176
  REISSUE_STATUS: {
1174
1177
  status: 'reissueStatusValue',
@@ -1185,6 +1188,10 @@ var transDataSource = function transDataSource(templateColumns) {
1185
1188
  CREATE_STATUS: {
1186
1189
  status: 'createStatusValue',
1187
1190
  reason: 'createReason'
1191
+ },
1192
+ INVOICE_STATUS: {
1193
+ status: 'invoiceStatusValue',
1194
+ reason: 'invoiceReason'
1188
1195
  }
1189
1196
  };
1190
1197
  return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), {
@@ -1898,7 +1905,7 @@ export var getMappingConfigByTemplateDetail = function getMappingConfigByTemplat
1898
1905
  return i.componentUniqueKey === item.uniqueKey;
1899
1906
  })) === null || _componentTemplateCon === void 0 ? void 0 : _componentTemplateCon.config) || {});
1900
1907
  if ((_newItem$componentCon = newItem.componentConfig.mapping) !== null && _newItem$componentCon !== void 0 && _newItem$componentCon.triggerComponentKey && newItem.componentConfig.mapping.triggerComponentKey !== 'SHOP_SELECT_MAPPING' && (_newItem$componentCon2 = newItem.componentConfig.mapping) !== null && _newItem$componentCon2 !== void 0 && (_newItem$componentCon3 = _newItem$componentCon2.rules) !== null && _newItem$componentCon3 !== void 0 && _newItem$componentCon3.length) {
1901
- // PS: 直接修改triggerComponentKey会报错
1908
+ // PS: 直接修改triggerComponentKey会报错
1902
1909
  // Cannot assign to read only property 'triggerComponentKey' of object '#<Object>'
1903
1910
  // 所以修改整个mapping
1904
1911
  // newItem.componentConfig.mapping.triggerComponentKey = `${nodeId}-${newItem.componentConfig.mapping.triggerComponentKey}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/kmkf-work-order-service-component",
3
- "version": "0.10.0-alpha.0",
3
+ "version": "0.10.0-alpha.2",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -34,7 +34,7 @@
34
34
  "@ant-design/icons": "^4.7.0",
35
35
  "@kmkf-fe-packages/basic-components": "^0.10.0-alpha.0",
36
36
  "@kmkf-fe-packages/kmkf-utils": "^0.10.0-alpha.0",
37
- "@kmkf-fe-packages/services-components": "^0.10.0-alpha.0",
37
+ "@kmkf-fe-packages/services-components": "^0.10.0-alpha.2",
38
38
  "@reduxjs/toolkit": "^1.8.5",
39
39
  "ahooks": "^3.7.4",
40
40
  "copy-to-clipboard": "^3.3.3",
@@ -72,7 +72,7 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "7d9c668d6c0762e22076c64a714273a87f57d87d",
75
+ "gitHead": "ffccb9d6a1dcab6b94533309e7869e93b5d62f1b",
76
76
  "gitHooks": {
77
77
  "pre-commit": "lint-staged"
78
78
  }