@kmkf-fe-packages/kmkf-work-order-service-component 2.2.13-beta.61 → 2.2.13-beta.63
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.
|
@@ -41,7 +41,7 @@ var formProps = {
|
|
|
41
41
|
layout: 'vertical'
|
|
42
42
|
};
|
|
43
43
|
var CurrentNode = function CurrentNode(props, ref) {
|
|
44
|
-
var _currentNodeDetail$no, _currentNodeDetail$no2, _currentNodeDetail$no3, _currentNodeDetail$no4, _currentNodeDetail$no18, _currentNodeDetail$fl, _currentNodeDetail$wo12, _localStorage, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$wo22;
|
|
44
|
+
var _currentNodeDetail$no, _currentNodeDetail$no2, _currentNodeDetail$no3, _currentNodeDetail$no4, _currentNodeDetail$no18, _currentNodeDetail$fl, _currentNodeDetail$wo12, _localStorage, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23, _currentNodeDetail$wo22, _currentNodeDetail$no24, _currentNodeDetail$wo23;
|
|
45
45
|
var formRenderRef = useRef(null);
|
|
46
46
|
useImperativeHandle(ref, function () {
|
|
47
47
|
return {
|
|
@@ -336,6 +336,7 @@ var CurrentNode = function CurrentNode(props, ref) {
|
|
|
336
336
|
handleChangeTradeId: handleChangeTradeId,
|
|
337
337
|
canModifyPayment: true,
|
|
338
338
|
flowAllShowHideRules: allShowHideRules,
|
|
339
|
+
isStartNodeWaiting: NodeType.START_NODE === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no24 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no24 === void 0 ? void 0 : _currentNodeDetail$no24.nodeType) && [NodeStatus.WAITING].includes(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo23 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo23 === void 0 ? void 0 : _currentNodeDetail$wo23.flowStatus),
|
|
339
340
|
firstOrderBackfill: flowStatus !== FlowStatus.COMPLETED,
|
|
340
341
|
autoSubmit: autoSubmit
|
|
341
342
|
})), isShowAutoNodeDetail && /*#__PURE__*/React.createElement(AutoTaskDetail, {
|
|
@@ -32,6 +32,7 @@ declare type FormRenderProps = {
|
|
|
32
32
|
firstOrderBackfill?: boolean;
|
|
33
33
|
isErpUse?: boolean;
|
|
34
34
|
autoSubmit?: boolean;
|
|
35
|
+
isStartNodeWaiting?: boolean;
|
|
35
36
|
};
|
|
36
37
|
declare const _default: React.ForwardRefExoticComponent<FormRenderProps & React.RefAttributes<unknown>>;
|
|
37
38
|
export default _default;
|
|
@@ -93,6 +93,8 @@ var FormRender = function FormRender(props, ref) {
|
|
|
93
93
|
isErpUse = _props$isErpUse === void 0 ? false : _props$isErpUse,
|
|
94
94
|
_props$autoSubmit = props.autoSubmit,
|
|
95
95
|
autoSubmit = _props$autoSubmit === void 0 ? false : _props$autoSubmit,
|
|
96
|
+
_props$isStartNodeWai = props.isStartNodeWaiting,
|
|
97
|
+
isStartNodeWaiting = _props$isStartNodeWai === void 0 ? false : _props$isStartNodeWai,
|
|
96
98
|
onJumpPage = props.onJumpPage;
|
|
97
99
|
var shopIdToUniqueKeyMap = useMemo(function () {
|
|
98
100
|
var json = {};
|
|
@@ -104,7 +106,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
104
106
|
var userInfo = JSON.parse(localStorage.getItem('reduxData_userInfo') || '{}');
|
|
105
107
|
var canEditShopName = useMemo(function () {
|
|
106
108
|
var _userInfo$companyUser, _userInfo$companyUser2;
|
|
107
|
-
return (userInfo
|
|
109
|
+
return !!(userInfo !== null && userInfo !== void 0 && (_userInfo$companyUser = userInfo.companyUserConfig) !== null && _userInfo$companyUser !== void 0 && (_userInfo$companyUser2 = _userInfo$companyUser.pc) !== null && _userInfo$companyUser2 !== void 0 && _userInfo$companyUser2.canEditShopName);
|
|
108
110
|
}, [userInfo]);
|
|
109
111
|
var mappingConfig = useMemo(function () {
|
|
110
112
|
return getMappingConfigByTemplateDetail(templateDetail);
|
|
@@ -1582,6 +1584,18 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1582
1584
|
labelList: labelList,
|
|
1583
1585
|
shopId: shopId
|
|
1584
1586
|
}));
|
|
1587
|
+
var shopNameDisabled = useMemo(function () {
|
|
1588
|
+
if (isStartNodeWaiting && !look) {
|
|
1589
|
+
return false;
|
|
1590
|
+
}
|
|
1591
|
+
if (canEditShopName && !look) {
|
|
1592
|
+
return false;
|
|
1593
|
+
}
|
|
1594
|
+
if (look || !!workOrderId) {
|
|
1595
|
+
return true;
|
|
1596
|
+
}
|
|
1597
|
+
return false;
|
|
1598
|
+
}, [workOrderId, look, canEditShopName, isStartNodeWaiting]);
|
|
1585
1599
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
1586
1600
|
locale: zhCN
|
|
1587
1601
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1614,7 +1628,7 @@ var FormRender = function FormRender(props, ref) {
|
|
|
1614
1628
|
shopList: shopList,
|
|
1615
1629
|
handleChangeShopId: handleChangeShopId,
|
|
1616
1630
|
hidden: !isShowShopList,
|
|
1617
|
-
disabled:
|
|
1631
|
+
disabled: shopNameDisabled
|
|
1618
1632
|
}), /*#__PURE__*/React.createElement(Form.Item, {
|
|
1619
1633
|
name: "fixed_field_buyerOpenUid",
|
|
1620
1634
|
hidden: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.63",
|
|
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.2.13-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.2.13-beta.62",
|
|
36
36
|
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.61",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.13-beta.
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.13-beta.62",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "d520c3ef7d25168bc073b5dc8d646bf24e3525b3",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|