@kmkf-fe-packages/kmkf-work-order-service-component 1.3.0-rc.0 → 1.3.0
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.
package/README.md
CHANGED
|
@@ -38,6 +38,7 @@ Build library via `father`,
|
|
|
38
38
|
```bash
|
|
39
39
|
$ npm run build
|
|
40
40
|
```
|
|
41
|
+
|
|
41
42
|
11122
|
|
42
43
|
|
|
43
44
|
## 企业工单工单项目抽离模块
|
|
@@ -63,5 +64,5 @@ const Text = ()=>{
|
|
|
63
64
|
|
|
64
65
|
```
|
|
65
66
|
|
|
66
|
-
| 字段 | 说明 | 数据类型 | | ----------------- | ---------------- | ------------------------------------ | | platform | 平台 | TAOBAO =淘宝\|FXG=抖音\|PDD=拼多多\| | | shopId | 店铺 ID | number | | buyerNick | 买家昵称 | string | | buyerId | 买家 id | string | | orderNo | 订单 id | string | | onEmpowerCallback | 授权弹框点击回调 | function |
|
|
67
|
+
| 字段 | 说明 | 数据类型 | | ----------------- | ---------------- | ------------------------------------ | | platform | 平台 | TAOBAO =淘宝\|FXG=抖音\|PDD=拼多多\| | | shopId | 店铺 ID | number | | buyerNick | 买家昵称 | string | | buyerId | 买家 id | string | | orderNo | 订单 id | string | | onEmpowerCallback | 授权弹框点击回调 | function |
|
|
67
68
|
|
|
@@ -691,7 +691,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
691
691
|
setShopId(val);
|
|
692
692
|
// 清空表单字段
|
|
693
693
|
var needClearFormFields = get(templateDetail, 'componentDtoList', []).reduce(function (cur, nxt) {
|
|
694
|
-
if (['ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS'
|
|
694
|
+
if (['ITEM_SELECT_THIRD', 'STATUS', 'ITEM_SELECT', 'ITEM_ID', 'ITEM_ENCODE', 'JST_LOGISTICS', 'JST_ITEM_SELECT_THIRD', 'JST_SUPPLY', 'JST_SEND_GOOD', 'BS_GOODS', 'BS_EXCHANGE_GOODS', 'BS_REISSUE_GOODS', 'BS_RETURN_GOODS', 'BS_LOGISTICS', 'BS_SEND_GOOD', 'BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WLN_GOODS', 'WLN_LOGISTICS', 'WLN_SEND_GOOD', 'WDT_LOGISTICS', 'WDT_SEND_GOOD', 'WDT_SYSTEM_ORDER', 'WDT_REISSUE_GOODS'].includes(nxt === null || nxt === void 0 ? void 0 : nxt.workOrderComponentType)) {
|
|
695
695
|
cur.push(nxt === null || nxt === void 0 ? void 0 : nxt.uniqueKey);
|
|
696
696
|
}
|
|
697
697
|
return cur;
|
|
@@ -793,7 +793,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
793
793
|
});
|
|
794
794
|
};
|
|
795
795
|
var conditionItemResult = function conditionItemResult(item, getFieldValue) {
|
|
796
|
-
var _item$leftValue$split, _item$leftValue$split2,
|
|
796
|
+
var _item$leftValue$split, _item$leftValue$split2, _item$compareSymbol;
|
|
797
797
|
//现支持子组件控制显隐,格式为${uniqueKey}_${type}与普通组件做区分
|
|
798
798
|
var isChildField = item.leftValue.includes('_');
|
|
799
799
|
var prefixId = isChildField ? (_item$leftValue$split = item.leftValue.split('_')) === null || _item$leftValue$split === void 0 ? void 0 : _item$leftValue$split[0] : item.leftValue;
|
|
@@ -816,8 +816,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
816
816
|
if (Reflect.has(currentComponentDisplayStatus.current, prefixId) && !currentComponentDisplayStatus.current[prefixId]) {
|
|
817
817
|
return false;
|
|
818
818
|
}
|
|
819
|
-
|
|
820
|
-
return getExpression((_item$compareSymbol2 = item.compareSymbol) === null || _item$compareSymbol2 === void 0 ? void 0 : _item$compareSymbol2.toUpperCase(), leftValue, item.rightValue);
|
|
819
|
+
return getExpression((_item$compareSymbol = item.compareSymbol) === null || _item$compareSymbol === void 0 ? void 0 : _item$compareSymbol.toUpperCase(), leftValue, item.rightValue);
|
|
821
820
|
};
|
|
822
821
|
var getDisplayAndDisabledConfig = function getDisplayAndDisabledConfig(config) {
|
|
823
822
|
if (isNull(config)) {
|
|
@@ -835,7 +834,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
835
834
|
};
|
|
836
835
|
var newRenderColumnItem = function newRenderColumnItem(effects) {
|
|
837
836
|
return function (item) {
|
|
838
|
-
var _templateDetail$flowT2;
|
|
837
|
+
var _componentConfig$stat, _componentConfig$stat2, _templateDetail$flowT2;
|
|
839
838
|
var _item$componentConfig2 = item.componentConfig,
|
|
840
839
|
componentConfig = _item$componentConfig2 === void 0 ? {} : _item$componentConfig2,
|
|
841
840
|
workOrderComponentType = item.workOrderComponentType,
|
|
@@ -849,19 +848,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
849
848
|
var newComponentConfig = _objectSpread(_objectSpread({}, componentConfig), {}, {
|
|
850
849
|
disabled: disabled
|
|
851
850
|
});
|
|
852
|
-
var
|
|
853
|
-
upgrade = _ref5.upgrade,
|
|
854
|
-
created = _ref5.created;
|
|
855
|
-
if (['REISSUE_TRADE_ID', 'EXCHANGE_TRADE_ID'].includes(workOrderComponentType)) {
|
|
856
|
-
// 补发单id和换货单id默认值是可见不可编辑(2)
|
|
857
|
-
if (typeof upgrade !== 'number') {
|
|
858
|
-
upgrade = 2;
|
|
859
|
-
}
|
|
860
|
-
if (typeof created !== 'number') {
|
|
861
|
-
created = 2;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
var _getDisplayAndDisable = getDisplayAndDisabledConfig(workOrderId ? upgrade : created),
|
|
851
|
+
var _getDisplayAndDisable = getDisplayAndDisabledConfig(workOrderId ? componentConfig === null || componentConfig === void 0 ? void 0 : (_componentConfig$stat = componentConfig.status) === null || _componentConfig$stat === void 0 ? void 0 : _componentConfig$stat.upgrade : componentConfig === null || componentConfig === void 0 ? void 0 : (_componentConfig$stat2 = componentConfig.status) === null || _componentConfig$stat2 === void 0 ? void 0 : _componentConfig$stat2.created),
|
|
865
852
|
componentCanEdit = _getDisplayAndDisable.disabled,
|
|
866
853
|
componentCanShow = _getDisplayAndDisable.display;
|
|
867
854
|
// TODO: 非前置节点组件渲染消费是否可以编辑配置
|
|
@@ -915,8 +902,8 @@ var FormRender = function FormRender(props, ref) {
|
|
|
915
902
|
shouldUpdate: function shouldUpdate() {
|
|
916
903
|
return true; // TODO: 修复重复依赖的问题 https://tb.raycloud.com/task/64e4491e0b8b5c001e1099b9
|
|
917
904
|
}
|
|
918
|
-
}, function (
|
|
919
|
-
var getFieldValue =
|
|
905
|
+
}, function (_ref5) {
|
|
906
|
+
var getFieldValue = _ref5.getFieldValue;
|
|
920
907
|
var show = currentIdDependenceOtherFields === null || currentIdDependenceOtherFields === void 0 ? void 0 : currentIdDependenceOtherFields.reduce(function (cur, nxt) {
|
|
921
908
|
// 如果有一项满足展示条件则展示
|
|
922
909
|
if (cur) {
|
|
@@ -926,18 +926,6 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
|
|
|
926
926
|
name: item.name
|
|
927
927
|
});
|
|
928
928
|
}
|
|
929
|
-
} else if (item.workOrderComponentType === 'WDT_EXCHANGE_GOODS') {
|
|
930
|
-
var wdtExchange = get(nowData, "".concat(item.uniqueKey), {});
|
|
931
|
-
contentVoList.push({
|
|
932
|
-
uniqueKey: "".concat(item.uniqueKey, "_wdtExchangeGoods"),
|
|
933
|
-
content: wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.wdtExchangeGoods,
|
|
934
|
-
name: item.name
|
|
935
|
-
});
|
|
936
|
-
contentVoList.push({
|
|
937
|
-
uniqueKey: "".concat(item.uniqueKey, "_shopCode"),
|
|
938
|
-
content: (wdtExchange === null || wdtExchange === void 0 ? void 0 : wdtExchange.shopCode) || '',
|
|
939
|
-
name: item.name
|
|
940
|
-
});
|
|
941
929
|
} else if (['BS_REISSUE_GOODS', 'WDT_REISSUE_GOODS'].includes(item.workOrderComponentType)) {
|
|
942
930
|
var reissueMap = {
|
|
943
931
|
BS_REISSUE_GOODS: {
|
|
@@ -975,34 +963,21 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
|
|
|
975
963
|
name: item.name
|
|
976
964
|
});
|
|
977
965
|
}
|
|
978
|
-
} else if (
|
|
979
|
-
var
|
|
980
|
-
var compType = item.workOrderComponentType;
|
|
981
|
-
var returnGoodsMap = {
|
|
982
|
-
BS_RETURN_GOODS: {
|
|
983
|
-
returnTypeKey: 'bsReturnType',
|
|
984
|
-
returnGoodsKey: 'bsReturnGoods',
|
|
985
|
-
shopCodeKey: 'shopCode'
|
|
986
|
-
},
|
|
987
|
-
WDT_RETURN_GOODS: {
|
|
988
|
-
returnTypeKey: 'wdtReturnType',
|
|
989
|
-
returnGoodsKey: 'wdtReturnGoods',
|
|
990
|
-
shopCodeKey: 'shopCode'
|
|
991
|
-
}
|
|
992
|
-
};
|
|
966
|
+
} else if (item.workOrderComponentType === 'BS_RETURN_GOODS') {
|
|
967
|
+
var bsReturn = get(nowData, "".concat(item.uniqueKey), {});
|
|
993
968
|
contentVoList.push({
|
|
994
|
-
uniqueKey: "".concat(item.uniqueKey, "
|
|
995
|
-
content:
|
|
969
|
+
uniqueKey: "".concat(item.uniqueKey, "_bsReturnType"),
|
|
970
|
+
content: bsReturn === null || bsReturn === void 0 ? void 0 : bsReturn.bsReturnType,
|
|
996
971
|
name: item.name
|
|
997
972
|
});
|
|
998
973
|
contentVoList.push({
|
|
999
|
-
uniqueKey: "".concat(item.uniqueKey, "
|
|
1000
|
-
content:
|
|
974
|
+
uniqueKey: "".concat(item.uniqueKey, "_bsReturnGoods"),
|
|
975
|
+
content: bsReturn === null || bsReturn === void 0 ? void 0 : bsReturn.bsReturnGoods,
|
|
1001
976
|
name: item.name
|
|
1002
977
|
});
|
|
1003
978
|
contentVoList.push({
|
|
1004
|
-
uniqueKey: "".concat(item.uniqueKey, "
|
|
1005
|
-
content: (
|
|
979
|
+
uniqueKey: "".concat(item.uniqueKey, "_shopCode"),
|
|
980
|
+
content: (bsReturn === null || bsReturn === void 0 ? void 0 : bsReturn.shopCode) || '',
|
|
1006
981
|
name: item.name
|
|
1007
982
|
});
|
|
1008
983
|
} else if (item.workOrderComponentType === 'BS_POSTING') {
|
|
@@ -1400,9 +1375,10 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1400
1375
|
flag: item.jsonMap["".concat(nex.uniqueKey, "_bsFlag")]
|
|
1401
1376
|
}));
|
|
1402
1377
|
} else if (nex.workOrderComponentType === 'REISSUE_LOGISTICS') {
|
|
1403
|
-
var _itemList6 = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_reissueLogisticsList")], [
|
|
1404
|
-
|
|
1405
|
-
|
|
1378
|
+
var _itemList6 = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_reissueLogisticsList")], [{
|
|
1379
|
+
logisticsCompany: null,
|
|
1380
|
+
logisticsCode: null
|
|
1381
|
+
}]);
|
|
1406
1382
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), _itemList6));
|
|
1407
1383
|
} else if (['REISSUE_STATUS', 'ADJUST_WORK_ORDER_STATUS', 'CREATE_STATUS', 'INVOICE_STATUS', 'INVOICING_STATUS'].includes(nex.workOrderComponentType)) {
|
|
1408
1384
|
var STATUS_MAP = {
|
|
@@ -1438,7 +1414,11 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1438
1414
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
1439
1415
|
MSG_STATUS: 'msgStatusValues'
|
|
1440
1416
|
};
|
|
1441
|
-
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])], [])
|
|
1417
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])], ['WAREHOUSING_STATUS', 'MSG_STATUS'].includes(nex.workOrderComponentType) ? [] : [{
|
|
1418
|
+
status: undefined,
|
|
1419
|
+
reason: '',
|
|
1420
|
+
systemOrderId: ''
|
|
1421
|
+
}])));
|
|
1442
1422
|
} else if (['BS_LOGISTICS', 'WLN_LOGISTICS', 'WDT_LOGISTICS'].includes(nex.workOrderComponentType)) {
|
|
1443
1423
|
var LogisticsMap = {
|
|
1444
1424
|
BS_LOGISTICS: {
|
|
@@ -1554,27 +1534,12 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1554
1534
|
bsExchangeGiftGoods: jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsExchangeGiftGoods")], []),
|
|
1555
1535
|
shopCode: item.jsonMap["".concat(nex.uniqueKey, "_shopCode")]
|
|
1556
1536
|
}));
|
|
1557
|
-
} else if (nex.workOrderComponentType === '
|
|
1537
|
+
} else if (nex.workOrderComponentType === 'BS_RETURN_GOODS') {
|
|
1558
1538
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), {
|
|
1559
|
-
|
|
1539
|
+
bsReturnType: jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsReturnType")], []),
|
|
1540
|
+
bsReturnGoods: jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsReturnGoods")], []),
|
|
1560
1541
|
shopCode: item.jsonMap["".concat(nex.uniqueKey, "_shopCode")]
|
|
1561
1542
|
}));
|
|
1562
|
-
} else if (['BS_RETURN_GOODS', 'WDT_RETURN_GOODS'].includes(nex.workOrderComponentType)) {
|
|
1563
|
-
var _$concat2;
|
|
1564
|
-
var compType = nex.workOrderComponentType;
|
|
1565
|
-
var returnGoodsMap = {
|
|
1566
|
-
BS_RETURN_GOODS: {
|
|
1567
|
-
returnTypeKey: 'bsReturnType',
|
|
1568
|
-
returnGoodsKey: 'bsReturnGoods',
|
|
1569
|
-
shopCodeKey: 'shopCode'
|
|
1570
|
-
},
|
|
1571
|
-
WDT_RETURN_GOODS: {
|
|
1572
|
-
returnTypeKey: 'wdtReturnType',
|
|
1573
|
-
returnGoodsKey: 'wdtReturnGoods',
|
|
1574
|
-
shopCodeKey: 'shopCode'
|
|
1575
|
-
}
|
|
1576
|
-
};
|
|
1577
|
-
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), (_$concat2 = {}, _defineProperty(_$concat2, returnGoodsMap[compType].returnTypeKey, jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnTypeKey)], [])), _defineProperty(_$concat2, returnGoodsMap[compType].returnGoodsKey, jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].returnGoodsKey)], [])), _defineProperty(_$concat2, returnGoodsMap[compType].shopCodeKey, item.jsonMap["".concat(nex.uniqueKey, "_").concat(returnGoodsMap[compType].shopCodeKey)]), _$concat2)));
|
|
1578
1543
|
} else if (['BS_SYSTEM_ORDER', 'WLN_SYSTEM_ORDER', 'WDT_SYSTEM_ORDER'].includes(nex.workOrderComponentType)) {
|
|
1579
1544
|
var systemOrderMap = {
|
|
1580
1545
|
BS_SYSTEM_ORDER: {
|
|
@@ -1612,17 +1577,24 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1612
1577
|
},
|
|
1613
1578
|
RETURN_GOODS_TRADE_ID: {
|
|
1614
1579
|
key: 'returnGoodsTradeItemList',
|
|
1615
|
-
defaultValue: [
|
|
1616
|
-
|
|
1580
|
+
defaultValue: [{
|
|
1581
|
+
returnGoodsTradeId: '',
|
|
1582
|
+
systemOrderId: ''
|
|
1583
|
+
}]
|
|
1617
1584
|
},
|
|
1618
|
-
|
|
1619
1585
|
REISSUE_TRADE_ID: {
|
|
1620
1586
|
key: 'tradeItemList',
|
|
1621
|
-
defaultValue: [
|
|
1587
|
+
defaultValue: [{
|
|
1588
|
+
billNo: '',
|
|
1589
|
+
tradeId: ''
|
|
1590
|
+
}]
|
|
1622
1591
|
},
|
|
1623
1592
|
EXCHANGE_TRADE_ID: {
|
|
1624
1593
|
key: 'tradeItemList',
|
|
1625
|
-
defaultValue: [
|
|
1594
|
+
defaultValue: [{
|
|
1595
|
+
billNo: '',
|
|
1596
|
+
tradeId: ''
|
|
1597
|
+
}]
|
|
1626
1598
|
}
|
|
1627
1599
|
};
|
|
1628
1600
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)], SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue)));
|
|
@@ -1639,8 +1611,8 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1639
1611
|
wdtSystemOrderNo: item.jsonMap["".concat(nex.uniqueKey, "_wdtSystemOrderNo")]
|
|
1640
1612
|
}));
|
|
1641
1613
|
} else if (nex.workOrderComponentType === 'LABEL') {
|
|
1642
|
-
var
|
|
1643
|
-
return _objectSpread(_objectSpread({}, cur), {}, (
|
|
1614
|
+
var _objectSpread54;
|
|
1615
|
+
return _objectSpread(_objectSpread({}, cur), {}, (_objectSpread54 = {}, _defineProperty(_objectSpread54, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_label")], [])), _defineProperty(_objectSpread54, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_label")], [])), _objectSpread54));
|
|
1644
1616
|
}
|
|
1645
1617
|
}, {});
|
|
1646
1618
|
};
|
|
@@ -1662,7 +1634,7 @@ export var calcWorkOrderList = function calcWorkOrderList(source, templateColumn
|
|
|
1662
1634
|
//订单返填
|
|
1663
1635
|
export var orderBack = /*#__PURE__*/function () {
|
|
1664
1636
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
|
|
1665
|
-
var order_no, form, shopId, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, JOIN_SHOP, hasBs, hasWdt, hasWln, _ref3, shopSourceStr, _ref3$thirdUserNick, thirdUserNick, _data$value, _jstOrder$value, _jstOrder$value$data, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsOrders$orders, _wlnOrders$orders, _wdtOrders$trades, promise, hasJst, _yield$Promise$allSet, _yield$Promise$allSet2, data, jstOrder, bsOrder, wlnOrder, wdtOrder, orderInfo, jstInfo, bsOrders, wlnOrders, wdtOrders, bsInfo, wlnInfo, wdtInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, values, _templateDetail$compo, paymentUniqueKey, cacheOrderInfo,
|
|
1637
|
+
var order_no, form, shopId, shopList, templateDetail, _ref$type, type, callback, fromQNCreateWorkOrderByOrderNo, _ref$plat, plat, JOIN_SHOP, hasBs, hasWdt, hasWln, _ref3, shopSourceStr, _ref3$thirdUserNick, thirdUserNick, _data$value, _jstOrder$value, _jstOrder$value$data, _bsOrder$value, _wlnOrder$value, _wdtOrder$value, _bsOrders$orders, _wlnOrders$orders, _wdtOrders$trades, promise, hasJst, _yield$Promise$allSet, _yield$Promise$allSet2, data, jstOrder, bsOrder, wlnOrder, wdtOrder, orderInfo, jstInfo, bsOrders, wlnOrders, wdtOrders, bsInfo, wlnInfo, wdtInfo, formValue, detail, hasSelectItem, erpPromiseList, list, promises, _detail$itemList, values, _templateDetail$compo, paymentUniqueKey, cacheOrderInfo, _objectSpread56, _cacheOrderInfo;
|
|
1666
1638
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1667
1639
|
while (1) switch (_context.prev = _context.next) {
|
|
1668
1640
|
case 0:
|
|
@@ -1776,10 +1748,8 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
1776
1748
|
});
|
|
1777
1749
|
}
|
|
1778
1750
|
bsInfo = bsOrderTransform(bsOrders || {});
|
|
1779
|
-
wlnInfo = wlnOrderTransform(wlnOrders || {});
|
|
1780
|
-
wdtInfo = wdtOrderTransform(
|
|
1781
|
-
componentList: templateDetail.componentDtoList
|
|
1782
|
-
}), form);
|
|
1751
|
+
wlnInfo = wlnOrderTransform(wlnOrders || {});
|
|
1752
|
+
wdtInfo = wdtOrderTransform(wdtOrders || {});
|
|
1783
1753
|
if ((bsOrders === null || bsOrders === void 0 ? void 0 : (_bsOrders$orders = bsOrders.orders) === null || _bsOrders$orders === void 0 ? void 0 : _bsOrders$orders.length) > 1) {
|
|
1784
1754
|
bsInfo.bsGoods = _objectSpread(_objectSpread({}, bsInfo.bsGoods), {}, {
|
|
1785
1755
|
bsGoods: []
|
|
@@ -1903,7 +1873,7 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
1903
1873
|
sessionStorage.setItem('cacheOmsOrderInfo', JSON.stringify(_objectSpread(_objectSpread({}, cacheOrderInfo), {}, _defineProperty({}, "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId), _defineProperty({}, plat === null || plat === void 0 ? void 0 : plat.subOrderNo, _objectSpread(_objectSpread({}, formValue), values))))));
|
|
1904
1874
|
} else {
|
|
1905
1875
|
_cacheOrderInfo = JSON.parse(sessionStorage.getItem('cacheOrderInfo') || '{}');
|
|
1906
|
-
sessionStorage.setItem('cacheOrderInfo', JSON.stringify(_objectSpread(_objectSpread({}, _cacheOrderInfo), {}, (
|
|
1876
|
+
sessionStorage.setItem('cacheOrderInfo', JSON.stringify(_objectSpread(_objectSpread({}, _cacheOrderInfo), {}, (_objectSpread56 = {}, _defineProperty(_objectSpread56, order_no, values), _defineProperty(_objectSpread56, "".concat(templateDetail.flowTemplateConfig.flowTemplateId, "-").concat(plat.buyerId), _defineProperty({}, order_no, _objectSpread(_objectSpread({}, formValue), values))), _objectSpread56))));
|
|
1907
1877
|
}
|
|
1908
1878
|
}
|
|
1909
1879
|
// console.log('orderback', values);
|
|
@@ -2224,8 +2194,6 @@ export var reversalFormValues = function reversalFormValues() {
|
|
|
2224
2194
|
case 'BS_EXCHANGE_GOODS':
|
|
2225
2195
|
case 'BS_RETURN_GOODS':
|
|
2226
2196
|
case 'WDT_REISSUE_GOODS':
|
|
2227
|
-
case 'WDT_RETURN_GOODS':
|
|
2228
|
-
case 'WDT_EXCHANGE_GOODS':
|
|
2229
2197
|
prv["".concat(next.uniqueKey, "_shopCode")] = values[next.uniqueKey]['shopCode'];
|
|
2230
2198
|
break;
|
|
2231
2199
|
case 'BS_DELIVERY_NO':
|
|
@@ -89,21 +89,22 @@ export var fetchLogicFlowList = /*#__PURE__*/function () {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
return prv;
|
|
92
|
-
}, []);
|
|
92
|
+
}, []);
|
|
93
|
+
console.log(list);
|
|
93
94
|
dispatch(setLogicFlowList(list || []));
|
|
94
95
|
dispatch(setGroupLogicFlowList(groupLogicFlowList || []));
|
|
95
96
|
dispatch(setFlowTemplateGroupWorkOrderTemplateList(flowTemplateGroupWOrkOrderTemplateList) || []);
|
|
96
|
-
_context.next =
|
|
97
|
+
_context.next = 18;
|
|
97
98
|
break;
|
|
98
|
-
case
|
|
99
|
-
_context.prev =
|
|
99
|
+
case 15:
|
|
100
|
+
_context.prev = 15;
|
|
100
101
|
_context.t0 = _context["catch"](0);
|
|
101
102
|
console.error(_context.t0);
|
|
102
|
-
case
|
|
103
|
+
case 18:
|
|
103
104
|
case "end":
|
|
104
105
|
return _context.stop();
|
|
105
106
|
}
|
|
106
|
-
}, _callee, null, [[0,
|
|
107
|
+
}, _callee, null, [[0, 15]]);
|
|
107
108
|
}));
|
|
108
109
|
return function fetchLogicFlowList(_x) {
|
|
109
110
|
return _ref.apply(this, arguments);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "1.3.0
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@ant-design/icons": "^4.7.0",
|
|
35
|
-
"@kmkf-fe-packages/basic-components": "1.3.0
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "1.3.0
|
|
37
|
-
"@kmkf-fe-packages/services-components": "1.3.0
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "1.3.0",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "1.3.0",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "1.3.0",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "227e5e52ad4e85074c0486fea308033557d75a6e",
|
|
77
77
|
"gitHooks": {
|
|
78
78
|
"pre-commit": "lint-staged"
|
|
79
79
|
}
|