@kmkf-fe-packages/kmkf-work-order-service-component 2.0.74 → 2.0.75
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.
|
@@ -32,7 +32,7 @@ import { calcWorkOrderList, orderBack, getReplaceWarnValues, COMPONENT_MAP_NAME,
|
|
|
32
32
|
INNER_REPLACE_COMPONENT, reversalFormValues, bsSystemOrderBackValues, kmSystemOrderBackValues, bsE3SystemOrderBackValues, wlnSystemOrderBackValues, gySystemOrderBackValues, jstSystemOrderBackValues, getMappingConfigByTemplateDetail, wdtSystemOrderBackValues, setLogisticsInfo, getMappingTargetValue } from "../../../common/utils/tools";
|
|
33
33
|
import { replaceCheck, orderDetail, queryLabelByTradeId, queryMemberLevel } from "../../../model/servers/api";
|
|
34
34
|
import { factory } from '@kmkf-fe-packages/services-components';
|
|
35
|
-
import { getExpression, formatDisplayConfig, isNull, LabelData, setSessionStorage
|
|
35
|
+
import { getExpression, formatDisplayConfig, isNull, LabelData, setSessionStorage } from '@kmkf-fe-packages/kmkf-utils';
|
|
36
36
|
import ShopName from "../ShopName";
|
|
37
37
|
import { PlatForm } from "../../../model/flowTemplateDetail/types";
|
|
38
38
|
import { groupByPreNode, getCurrentNodeModifiedShowHideRule } from "./common";
|
|
@@ -758,25 +758,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
758
758
|
};
|
|
759
759
|
}();
|
|
760
760
|
// 组件值变化
|
|
761
|
-
var componentOnValueChange = function componentOnValueChange(uniqueKey, value, workOrderComponentType, type
|
|
762
|
-
// 花西子定制问题场景处理
|
|
763
|
-
if (componentConfig) {
|
|
764
|
-
var hasQuality = hasQualityValue(value, uniqueKey, componentConfig);
|
|
765
|
-
if (hasQuality) {
|
|
766
|
-
var _templateDetail$compo3;
|
|
767
|
-
var bsGoods = templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$compo3 = templateDetail.componentDtoList) === null || _templateDetail$compo3 === void 0 ? void 0 : _templateDetail$compo3.find(function (item) {
|
|
768
|
-
return ['BS_GOODS'].includes(item.workOrderComponentType);
|
|
769
|
-
});
|
|
770
|
-
if (bsGoods) {
|
|
771
|
-
var _bsGoodsValue$bsGoods;
|
|
772
|
-
var bsGoodsValue = cloneDeep(form.getFieldValue(bsGoods === null || bsGoods === void 0 ? void 0 : bsGoods.uniqueKey));
|
|
773
|
-
bsGoodsValue === null || bsGoodsValue === void 0 ? void 0 : (_bsGoodsValue$bsGoods = bsGoodsValue.bsGoods) === null || _bsGoodsValue$bsGoods === void 0 ? void 0 : _bsGoodsValue$bsGoods.forEach(function (good) {
|
|
774
|
-
good.mark = '是';
|
|
775
|
-
});
|
|
776
|
-
form.setFieldsValue(_defineProperty({}, bsGoods === null || bsGoods === void 0 ? void 0 : bsGoods.uniqueKey, bsGoodsValue));
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
}
|
|
761
|
+
var componentOnValueChange = function componentOnValueChange(uniqueKey, value, workOrderComponentType, type) {
|
|
780
762
|
if (workOrderComponentType === 'KM_REISSUE_GOODS') {
|
|
781
763
|
var _value$kmSystemOrder, _value$kmSystemOrder$;
|
|
782
764
|
if (value !== null && value !== void 0 && value.kmSystemOrderNo && value !== null && value !== void 0 && (_value$kmSystemOrder = value.kmSystemOrder) !== null && _value$kmSystemOrder !== void 0 && (_value$kmSystemOrder$ = _value$kmSystemOrder.orders) !== null && _value$kmSystemOrder$ !== void 0 && _value$kmSystemOrder$.length && type === 'kmSystemOrder') {
|
|
@@ -1223,7 +1205,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1223
1205
|
return instance.editRender({
|
|
1224
1206
|
onBlur: componentOnBlur,
|
|
1225
1207
|
onChange: function onChange(value, type) {
|
|
1226
|
-
return componentOnValueChange(uniqueKey, value, workOrderComponentType, type
|
|
1208
|
+
return componentOnValueChange(uniqueKey, value, workOrderComponentType, type);
|
|
1227
1209
|
},
|
|
1228
1210
|
hidden: !show || mappingHideComponents.includes(uniqueKey),
|
|
1229
1211
|
platform: platform,
|
|
@@ -1235,7 +1217,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1235
1217
|
return instance.editRender({
|
|
1236
1218
|
onBlur: componentOnBlur,
|
|
1237
1219
|
onChange: function onChange(value, type) {
|
|
1238
|
-
return componentOnValueChange(uniqueKey, value, workOrderComponentType, type
|
|
1220
|
+
return componentOnValueChange(uniqueKey, value, workOrderComponentType, type);
|
|
1239
1221
|
},
|
|
1240
1222
|
hidden: mappingHideComponents.includes(uniqueKey),
|
|
1241
1223
|
platform: platform,
|
|
@@ -1284,8 +1266,8 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1284
1266
|
}, [platform, templateDetail, shopList, shopId, record, mappingHideComponents, currentShopId, look, handleChangeTradeId, innerReplaceValue]);
|
|
1285
1267
|
// TODO: 计算类型组件列表
|
|
1286
1268
|
var calculationTypeComponentList = useMemo(function () {
|
|
1287
|
-
var _templateDetail$
|
|
1288
|
-
return templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$
|
|
1269
|
+
var _templateDetail$compo3;
|
|
1270
|
+
return templateDetail === null || templateDetail === void 0 ? void 0 : (_templateDetail$compo3 = templateDetail.componentDtoList) === null || _templateDetail$compo3 === void 0 ? void 0 : _templateDetail$compo3.filter(function (item) {
|
|
1289
1271
|
return item.workOrderComponentType === 'NUMERICAL_CALCULATION';
|
|
1290
1272
|
});
|
|
1291
1273
|
}, [templateDetail]);
|
|
@@ -318,9 +318,7 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
bsInfo = bsOrderTransform({
|
|
321
|
-
detail: bsOrders || {}
|
|
322
|
-
componentDtoList: templateDetail === null || templateDetail === void 0 ? void 0 : templateDetail.componentDtoList,
|
|
323
|
-
form: form
|
|
321
|
+
detail: bsOrders || {}
|
|
324
322
|
});
|
|
325
323
|
wlnInfo = wlnOrderTransform(wlnOrders || {});
|
|
326
324
|
bsE3Info = bsE3OrderTransform(_objectSpread(_objectSpread({}, bsE3Orders), {}, {
|
|
@@ -1015,14 +1013,11 @@ export var bsSystemOrderBackValues = function bsSystemOrderBackValues(_ref6) {
|
|
|
1015
1013
|
});
|
|
1016
1014
|
if (!(bsGoodsComponent !== null && bsGoodsComponent !== void 0 && bsGoodsComponent.length)) return;
|
|
1017
1015
|
var bsGoodsValue = form.getFieldValue(bsGoodsComponent[0].uniqueKey);
|
|
1018
|
-
// 花西子将是否选择质量类传入给bs商品组件,来判断是否将商品标记默认为是
|
|
1019
1016
|
var orderInfo = bsOrderTransform({
|
|
1020
1017
|
detail: {
|
|
1021
1018
|
orders: value.selectedRows,
|
|
1022
1019
|
shopCode: bsGoodsValue.shopCode
|
|
1023
|
-
}
|
|
1024
|
-
componentDtoList: templateList === null || templateList === void 0 ? void 0 : templateList.componentDtoList,
|
|
1025
|
-
form: form
|
|
1020
|
+
}
|
|
1026
1021
|
});
|
|
1027
1022
|
var values = bsOrderBackFormValues(orderInfo, {
|
|
1028
1023
|
componentDtoList: bsGoodsComponent
|
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.
|
|
3
|
+
"version": "2.0.75",
|
|
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": "2.0.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.0.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.0.75",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.75",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.0.75",
|
|
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": "8a0ed6b8116ac64f521ac9472d5e979e8ba73c18",
|
|
77
77
|
"gitHooks": {
|
|
78
78
|
"pre-commit": "lint-staged"
|
|
79
79
|
}
|