@kmkf-fe-packages/kmkf-work-order-service-component 0.8.13-alpha.0 → 0.8.13-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.
|
@@ -80,7 +80,7 @@ var FormRender = function FormRender(props) {
|
|
|
80
80
|
return i.componentUniqueKey === item.uniqueKey;
|
|
81
81
|
})) === null || _componentTemplateCon === void 0 ? void 0 : _componentTemplateCon.config) || {});
|
|
82
82
|
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) {
|
|
83
|
-
// PS: 直接修改triggerComponentKey会报错
|
|
83
|
+
// PS: 直接修改triggerComponentKey会报错
|
|
84
84
|
// Cannot assign to read only property 'triggerComponentKey' of object '#<Object>'
|
|
85
85
|
// 所以修改整个mapping
|
|
86
86
|
// newItem.componentConfig.mapping.triggerComponentKey = `${nodeId}-${newItem.componentConfig.mapping.triggerComponentKey}`
|
|
@@ -374,7 +374,11 @@ var CustomizeWorkOrderList = function CustomizeWorkOrderList(_ref4) {
|
|
|
374
374
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
375
375
|
placeholder: "\u521B\u5EFA\u4EBA",
|
|
376
376
|
options: useList,
|
|
377
|
-
allowClear: true
|
|
377
|
+
allowClear: true,
|
|
378
|
+
showSearch: true,
|
|
379
|
+
filterOption: function filterOption(input, option) {
|
|
380
|
+
return option.label.includes(input);
|
|
381
|
+
}
|
|
378
382
|
}))), /*#__PURE__*/React.createElement(Col, {
|
|
379
383
|
span: 16
|
|
380
384
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -546,15 +546,57 @@ export var submitDataTransOldFormat = function submitDataTransOldFormat(nowData,
|
|
|
546
546
|
}).join(),
|
|
547
547
|
name: item.name
|
|
548
548
|
});
|
|
549
|
+
} else if (item.workOrderComponentType === 'REISSUE_LOGISTICS') {
|
|
550
|
+
var reissueLogisticsList = get(nowData, "".concat(item.uniqueKey), []);
|
|
551
|
+
var reissueLogisticsCompany = reissueLogisticsList.map(function (item) {
|
|
552
|
+
return item.logisticsCompany;
|
|
553
|
+
});
|
|
554
|
+
var _hasTrans = reissueLogisticsCompany.some(function (t) {
|
|
555
|
+
return t && !ExpressData.getInstance().getExpressNameByCode(t, false);
|
|
556
|
+
});
|
|
557
|
+
if (_hasTrans) {
|
|
558
|
+
needTransForm = true;
|
|
559
|
+
}
|
|
560
|
+
contentVoList.push({
|
|
561
|
+
uniqueKey: "".concat(item.uniqueKey, "_reissueLogisticsList"),
|
|
562
|
+
content: reissueLogisticsList,
|
|
563
|
+
name: item.name
|
|
564
|
+
});
|
|
565
|
+
contentVoList.push({
|
|
566
|
+
uniqueKey: "".concat(item.uniqueKey, "_reissueLogisticsCompany"),
|
|
567
|
+
content: reissueLogisticsList.map(function (item) {
|
|
568
|
+
return item.logisticsCompany + '';
|
|
569
|
+
}),
|
|
570
|
+
name: item.name
|
|
571
|
+
});
|
|
572
|
+
contentVoList.push({
|
|
573
|
+
uniqueKey: "".concat(item.uniqueKey, "_reissueLogisticsCode"),
|
|
574
|
+
content: reissueLogisticsList.map(function (item) {
|
|
575
|
+
return item.logisticsCode + '';
|
|
576
|
+
}),
|
|
577
|
+
name: item.name
|
|
578
|
+
});
|
|
579
|
+
} else if (item.workOrderComponentType === 'REISSUE_TRADE_ID') {
|
|
580
|
+
contentVoList.push({
|
|
581
|
+
uniqueKey: "".concat(item.uniqueKey, "_resissueTradeId"),
|
|
582
|
+
content: get(nowData, "".concat(item.uniqueKey), ''),
|
|
583
|
+
name: item.name
|
|
584
|
+
});
|
|
585
|
+
} else if (item.workOrderComponentType === 'REISSUE_STATUS') {
|
|
586
|
+
contentVoList.push({
|
|
587
|
+
uniqueKey: "".concat(item.uniqueKey, "_resissueStatus"),
|
|
588
|
+
content: get(nowData, "".concat(item.uniqueKey), ''),
|
|
589
|
+
name: item.name
|
|
590
|
+
});
|
|
549
591
|
} else if (item.workOrderComponentType === 'BS_LOGISTICS') {
|
|
550
592
|
var bsLogisticsList = get(nowData, "".concat(item.uniqueKey), []);
|
|
551
593
|
var bsLogisticsCompany = bsLogisticsList.map(function (item) {
|
|
552
594
|
return item.logisticsCompany;
|
|
553
595
|
});
|
|
554
|
-
var
|
|
596
|
+
var _hasTrans2 = bsLogisticsCompany.some(function (t) {
|
|
555
597
|
return t && !ExpressData.getInstance().getExpressNameByCode(t, false);
|
|
556
598
|
});
|
|
557
|
-
if (
|
|
599
|
+
if (_hasTrans2) {
|
|
558
600
|
needTransForm = true;
|
|
559
601
|
}
|
|
560
602
|
contentVoList.push({
|
|
@@ -1008,21 +1050,31 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1008
1050
|
}));
|
|
1009
1051
|
} else if (nex.workOrderComponentType === 'BS_DEPOSIT') {
|
|
1010
1052
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_bsDeposit")]));
|
|
1053
|
+
} else if (nex.workOrderComponentType === 'REISSUE_LOGISTICS') {
|
|
1054
|
+
var _itemList6 = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_reissueLogisticsList")], [{
|
|
1055
|
+
logisticsCompany: null,
|
|
1056
|
+
logisticsCode: null
|
|
1057
|
+
}]);
|
|
1058
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), _itemList6));
|
|
1059
|
+
} else if (nex.workOrderComponentType === 'REISSUE_TRADE_ID') {
|
|
1060
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_reissueTradeId")]));
|
|
1061
|
+
} else if (nex.workOrderComponentType === 'REISSUE_STATUS') {
|
|
1062
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), item.jsonMap["".concat(nex.uniqueKey, "_reissueStatus")]));
|
|
1011
1063
|
} else if (nex.workOrderComponentType === 'BS_LOGISTICS') {
|
|
1012
|
-
var
|
|
1064
|
+
var _itemList7 = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsLogisticsList")], [{
|
|
1013
1065
|
logisticsCompany: null,
|
|
1014
1066
|
logisticsCode: null
|
|
1015
1067
|
}]);
|
|
1016
|
-
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey),
|
|
1068
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), _itemList7 !== null && _itemList7 !== void 0 && _itemList7.length ? _itemList7 : [{
|
|
1017
1069
|
logisticsCompany: null,
|
|
1018
1070
|
logisticsCode: null
|
|
1019
1071
|
}]));
|
|
1020
1072
|
} else if (nex.workOrderComponentType === 'BS_SEND_GOOD') {
|
|
1021
|
-
var
|
|
1073
|
+
var _itemList8 = jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_bsSendGood")], [{
|
|
1022
1074
|
sendName: '',
|
|
1023
1075
|
sendId: ''
|
|
1024
1076
|
}]);
|
|
1025
|
-
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey),
|
|
1077
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), _itemList8 !== null && _itemList8 !== void 0 && _itemList8.length ? _itemList8 : [{
|
|
1026
1078
|
sendName: '',
|
|
1027
1079
|
sendId: ''
|
|
1028
1080
|
}]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.8.13-alpha.
|
|
3
|
+
"version": "0.8.13-alpha.2",
|
|
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": "^0.8.13-alpha.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.8.13-alpha.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.8.13-alpha.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.8.13-alpha.1",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.8.13-alpha.1",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.8.13-alpha.2",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"gitHooks": {
|
|
76
76
|
"pre-commit": "lint-staged"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "e74ef6ea4058e5458728b9827a09c823c7df14a8"
|
|
79
79
|
}
|