@kmkf-fe-packages/kmkf-work-order-service-component 0.26.1-beta.0 → 0.26.1-beta.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.
|
@@ -21,7 +21,7 @@ import { get, every, maxBy } from 'lodash';
|
|
|
21
21
|
import V from 'voca';
|
|
22
22
|
import { orderDetail, jstOrderDetail, bsOrderDetail, wlnOrderDetail, wdtOrderDetail } from "../../model/servers/api";
|
|
23
23
|
import moment from 'moment';
|
|
24
|
-
import { AddressData, ExpressData, orderBackFormValues, bsOrderBackFormValues, wlnOrderBackFormValues, wdtOrderBackFormValues, findLabelBySelectValue, request, isNull, bsOrderTransform, wlnOrderTransform, wdtOrderTransform, unTransField } from '@kmkf-fe-packages/kmkf-utils';
|
|
24
|
+
import { AddressData, ExpressData, ExpressInterceptData, orderBackFormValues, bsOrderBackFormValues, wlnOrderBackFormValues, wdtOrderBackFormValues, findLabelBySelectValue, request, isNull, bsOrderTransform, wlnOrderTransform, wdtOrderTransform, unTransField } from '@kmkf-fe-packages/kmkf-utils';
|
|
25
25
|
import { cloneDeep, isEqual, set } from 'lodash';
|
|
26
26
|
import Monitor from 'kmkf-monitor';
|
|
27
27
|
import { PlatForm } from "../../model/flowTemplateDetail/types";
|
|
@@ -1298,7 +1298,7 @@ var transDataSource = function transDataSource(templateColumns) {
|
|
|
1298
1298
|
interceptLogisticsSnapshot: item.jsonMap["".concat(nex.uniqueKey, "_interceptLogisticsSnapshot")]
|
|
1299
1299
|
}));
|
|
1300
1300
|
} else if (nex.workOrderComponentType === 'LOGISTICS_INTERCEPTION_MORE') {
|
|
1301
|
-
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_logisticsInterceptList")], [])));
|
|
1301
|
+
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), jsonParseSecurity(item.jsonMap["".concat(nex.uniqueKey, "_logisticsInterceptList")], [{}])));
|
|
1302
1302
|
} else if (nex.workOrderComponentType === 'LOGISTICS_TRAJECTORY') {
|
|
1303
1303
|
return _objectSpread(_objectSpread({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey), {
|
|
1304
1304
|
trajectoryCompany: item.jsonMap["".concat(nex.uniqueKey, "_trajectoryCompany")],
|
|
@@ -2406,21 +2406,45 @@ export var setLogisticsInfo = function setLogisticsInfo(_ref9) {
|
|
|
2406
2406
|
});
|
|
2407
2407
|
}
|
|
2408
2408
|
} else if (next.workOrderComponentType === 'LOGISTICS_INTERCEPTION_MORE') {
|
|
2409
|
+
var expressInterceptData = ExpressInterceptData.getInstance().getExpressData();
|
|
2409
2410
|
if (companyType === 'INPUT') {
|
|
2411
|
+
var interceptCompany = expressInterceptData.find(function (item) {
|
|
2412
|
+
return item.value === value;
|
|
2413
|
+
});
|
|
2414
|
+
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
2415
|
+
var _item$config;
|
|
2416
|
+
return item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.isDefault;
|
|
2417
|
+
});
|
|
2410
2418
|
prv[next.uniqueKey] = [_objectSpread(_objectSpread({}, logisticsValues === null || logisticsValues === void 0 ? void 0 : logisticsValues[0]), {}, {
|
|
2411
|
-
interceptCompany: ExpressData.getInstance().getExpressCodeByName(value, false)
|
|
2419
|
+
interceptCompany: ExpressData.getInstance().getExpressCodeByName(value, false),
|
|
2420
|
+
interceptType: returnValue === null || returnValue === void 0 ? void 0 : returnValue.value
|
|
2412
2421
|
})];
|
|
2413
2422
|
} else if (companyType === 'EXPRESS_LOGISTICS_SELECT') {
|
|
2423
|
+
var _interceptCompany = expressInterceptData.find(function (item) {
|
|
2424
|
+
return item.value === value;
|
|
2425
|
+
});
|
|
2426
|
+
var _returnValue = ((_interceptCompany === null || _interceptCompany === void 0 ? void 0 : _interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
2427
|
+
var _item$config2;
|
|
2428
|
+
return item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.isDefault;
|
|
2429
|
+
});
|
|
2414
2430
|
prv[next.uniqueKey] = [_objectSpread(_objectSpread({}, logisticsValues === null || logisticsValues === void 0 ? void 0 : logisticsValues[0]), {}, {
|
|
2415
2431
|
interceptCompany: value.company,
|
|
2416
|
-
interceptCode: value.order
|
|
2432
|
+
interceptCode: value.order,
|
|
2433
|
+
interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value
|
|
2417
2434
|
})];
|
|
2418
2435
|
} else if (companyType === 'BS_LOGISTICS') {
|
|
2419
2436
|
prv[next.uniqueKey] = value.map(function (item) {
|
|
2437
|
+
var interceptCompany = expressInterceptData.find(function (t) {
|
|
2438
|
+
return item.logisticsCompany === t.value;
|
|
2439
|
+
});
|
|
2440
|
+
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (t) {
|
|
2441
|
+
var _t$config;
|
|
2442
|
+
return t === null || t === void 0 ? void 0 : (_t$config = t.config) === null || _t$config === void 0 ? void 0 : _t$config.isDefault;
|
|
2443
|
+
});
|
|
2420
2444
|
return {
|
|
2421
2445
|
interceptCompany: item.logisticsCompany,
|
|
2422
2446
|
interceptCode: item.logisticsCode,
|
|
2423
|
-
interceptType:
|
|
2447
|
+
interceptType: returnValue === null || returnValue === void 0 ? void 0 : returnValue.value,
|
|
2424
2448
|
interceptSenderMobile: undefined,
|
|
2425
2449
|
interceptAddress: [],
|
|
2426
2450
|
interceptDetail: undefined,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.26.1-beta.
|
|
3
|
+
"version": "0.26.1-beta.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.26.1-beta.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.26.1-beta.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.26.1-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.26.1-beta.2",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.26.1-beta.1",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.26.1-beta.2",
|
|
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": "0f86e41513ba362d7321c043e752d938a8eec024",
|
|
77
77
|
"gitHooks": {
|
|
78
78
|
"pre-commit": "lint-staged"
|
|
79
79
|
}
|