@kmkf-fe-packages/kmkf-work-order-service-component 2.2.5-beta.2 → 2.2.5-beta.21
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/dist/esm/FlowTemplateDetailV2/components/FormRender/component-dependency-finder.d.ts +75 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/component-dependency-finder.js +328 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/index.js +378 -257
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.d.ts +6 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/onBlur.js +67 -1
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/types.d.ts +41 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/types.js +1 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/value-mapping-finder.d.ts +61 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/value-mapping-finder.js +292 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/value-mapping-types.d.ts +65 -0
- package/dist/esm/FlowTemplateDetailV2/components/FormRender/value-mapping-types.js +1 -0
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.d.ts +0 -1
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.js +25 -26
- package/dist/esm/FlowTemplateDetailV2/components/ShareLinkModal/index.module.less +2 -2
- package/dist/esm/FlowTemplateDetailV2/index.js +37 -27
- package/dist/esm/FlowTemplateDetailV2/store/reducers.d.ts +2 -0
- package/dist/esm/FlowTemplateDetailV2/store/reducers.js +13 -7
- package/dist/esm/FlowTemplateDetailV2/store/selector.d.ts +1 -0
- package/dist/esm/FlowTemplateDetailV2/store/selector.js +3 -0
- package/dist/esm/common/utils/tools.js +20 -12
- package/dist/esm/model/flowTemplateDetail/api.js +2 -1
- package/dist/esm/model/flowTemplateDetail/types.d.ts +1 -0
- package/dist/esm/model/servers/request.js +1 -1
- package/package.json +5 -5
|
@@ -5,11 +5,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
|
8
|
-
import { Modal, Button, message, Space } from 'antd';
|
|
8
|
+
import { Modal, Button, message, Space, Typography } from 'antd';
|
|
9
9
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
10
10
|
import { shortLink, createNodeLink, createLink } from "../../../model/flowTemplateDetail/api";
|
|
11
11
|
import QRCode from 'qrcode.react';
|
|
12
|
-
import "./index.module.less";
|
|
12
|
+
import styles from "./index.module.less";
|
|
13
|
+
var Text = Typography.Text;
|
|
13
14
|
var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
14
15
|
var _useState = useState(false),
|
|
15
16
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -55,23 +56,21 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
55
56
|
flowWorkOrderId: info.flowWorkOrderId,
|
|
56
57
|
flowNodeId: info.flowNodeId
|
|
57
58
|
}).then(function (res) {
|
|
58
|
-
var _res$data;
|
|
59
|
+
var _res$data, _res$data2;
|
|
59
60
|
setUrl((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.link);
|
|
60
|
-
|
|
61
|
+
setShortUrl((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.shortShareLink);
|
|
61
62
|
});
|
|
62
63
|
}
|
|
63
|
-
|
|
64
64
|
if (info.type === 'create' && info.companyKey && info.flowTemplateKey) {
|
|
65
65
|
createLink({
|
|
66
66
|
companyKey: info.companyKey,
|
|
67
67
|
flowTemplateKey: info.flowTemplateKey
|
|
68
68
|
}).then(function (res) {
|
|
69
|
-
var _res$
|
|
70
|
-
setUrl((_res$
|
|
71
|
-
|
|
69
|
+
var _res$data3, _res$data4;
|
|
70
|
+
setUrl((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.link);
|
|
71
|
+
setShortUrl((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.shortShareLink);
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
|
|
75
74
|
if (info.url) {
|
|
76
75
|
var regex = /^(https?:\/\/)/;
|
|
77
76
|
var formatUrl = info.url.match(regex) ? info.url : "".concat(window.location.protocol, "//").concat(info.url);
|
|
@@ -95,7 +94,7 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
95
94
|
var handleDownload = function handleDownload(id) {
|
|
96
95
|
var canvasImg = document.getElementById(id); // 获取canvas类型的二维码
|
|
97
96
|
var a = document.createElement('a');
|
|
98
|
-
a.download = info === null || info === void 0 ? void 0 : info.name;
|
|
97
|
+
a.download = (info === null || info === void 0 ? void 0 : info.name) || '数据分享二维码';
|
|
99
98
|
a.href = canvasImg.toDataURL('image/png');
|
|
100
99
|
document.body.appendChild(a);
|
|
101
100
|
a.click();
|
|
@@ -108,11 +107,11 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
108
107
|
onCancel: onCancel,
|
|
109
108
|
footer: null
|
|
110
109
|
}, /*#__PURE__*/React.createElement("div", {
|
|
111
|
-
className:
|
|
110
|
+
className: styles.shareUl
|
|
112
111
|
}, ['url', 'all'].includes(showType) && !!url && /*#__PURE__*/React.createElement("li", {
|
|
113
|
-
className:
|
|
112
|
+
className: styles.shareLi
|
|
114
113
|
}, /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
className:
|
|
114
|
+
className: styles.shareName
|
|
116
115
|
}, "\u5E38\u7528\u94FE\u63A5\uFF1A"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
117
116
|
text: url,
|
|
118
117
|
onCopy: function onCopy() {
|
|
@@ -125,10 +124,10 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
125
124
|
onClick: function onClick() {
|
|
126
125
|
window.open(url);
|
|
127
126
|
}
|
|
128
|
-
}, "\u6253\u5F00"))), url)), ['shortUrl', 'all'].includes(showType) && !!shortUrl && /*#__PURE__*/React.createElement("li", {
|
|
129
|
-
className:
|
|
127
|
+
}, "\u6253\u5F00"))), /*#__PURE__*/React.createElement(Text, null, url))), ['shortUrl', 'all'].includes(showType) && !!shortUrl && /*#__PURE__*/React.createElement("li", {
|
|
128
|
+
className: styles.shareLi
|
|
130
129
|
}, /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className:
|
|
130
|
+
className: styles.shareName
|
|
132
131
|
}, "\u77ED\u94FE\u63A5\uFF1A"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
133
132
|
text: shortUrl,
|
|
134
133
|
onCopy: function onCopy() {
|
|
@@ -141,37 +140,37 @@ var ShareLinkModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
141
140
|
onClick: function onClick() {
|
|
142
141
|
window.open(shortUrl);
|
|
143
142
|
}
|
|
144
|
-
}, "\u6253\u5F00"))), shortUrl)), /*#__PURE__*/React.createElement("li", {
|
|
145
|
-
className:
|
|
143
|
+
}, "\u6253\u5F00"))), /*#__PURE__*/React.createElement(Text, null, shortUrl))), /*#__PURE__*/React.createElement("li", {
|
|
144
|
+
className: styles.shareLi
|
|
146
145
|
}, /*#__PURE__*/React.createElement("div", {
|
|
147
|
-
className:
|
|
146
|
+
className: styles.shareName
|
|
148
147
|
}, "\u4E8C\u7EF4\u7801\uFF1A"), /*#__PURE__*/React.createElement("div", {
|
|
149
|
-
className:
|
|
148
|
+
className: styles.shareCodeBox
|
|
150
149
|
}, ['url', 'all'].includes(showType) && !!url && /*#__PURE__*/React.createElement("div", {
|
|
151
|
-
className:
|
|
150
|
+
className: styles.codeOutBox
|
|
152
151
|
}, /*#__PURE__*/React.createElement("p", null, "\u5E38\u7528\u94FE\u63A5"), /*#__PURE__*/React.createElement(Button, {
|
|
153
152
|
type: "primary",
|
|
154
|
-
className:
|
|
153
|
+
className: styles.codeBtn,
|
|
155
154
|
onClick: function onClick() {
|
|
156
155
|
return handleDownload('urlCode');
|
|
157
156
|
}
|
|
158
157
|
}, "\u4E0B\u8F7D\u4E8C\u7EF4\u7801"), /*#__PURE__*/React.createElement("div", {
|
|
159
|
-
className:
|
|
158
|
+
className: styles.qrcodeBox
|
|
160
159
|
}, /*#__PURE__*/React.createElement(QRCode, {
|
|
161
160
|
id: "urlCode",
|
|
162
161
|
value: url,
|
|
163
162
|
size: 110,
|
|
164
163
|
fgColor: "#000000"
|
|
165
164
|
}))), ['shortUrl', 'all'].includes(showType) && !!shortUrl && /*#__PURE__*/React.createElement("div", {
|
|
166
|
-
className:
|
|
165
|
+
className: styles.codeOutBox
|
|
167
166
|
}, /*#__PURE__*/React.createElement("p", null, "\u77ED\u94FE\u63A5"), /*#__PURE__*/React.createElement(Button, {
|
|
168
167
|
type: "primary",
|
|
169
|
-
className:
|
|
168
|
+
className: styles.codeBtn,
|
|
170
169
|
onClick: function onClick() {
|
|
171
170
|
return handleDownload('shortUrlCode');
|
|
172
171
|
}
|
|
173
172
|
}, "\u4E0B\u8F7D\u4E8C\u7EF4\u7801"), /*#__PURE__*/React.createElement("div", {
|
|
174
|
-
className:
|
|
173
|
+
className: styles.qrcodeBox
|
|
175
174
|
}, /*#__PURE__*/React.createElement(QRCode, {
|
|
176
175
|
id: "shortUrlCode",
|
|
177
176
|
value: shortUrl,
|
|
@@ -27,7 +27,7 @@ import { calcWorkOrderList, deleteCacheOrder, submitParams } from "../common/uti
|
|
|
27
27
|
import { useMemoizedFn } from 'ahooks';
|
|
28
28
|
import moment from 'moment';
|
|
29
29
|
import { fetchPanelInfo, fetchAllFlowOperateRecord, fetchCollectOrder, fetchShareNodeConfig, fetchH5SharePermission } from "./store/reducers";
|
|
30
|
-
import { selectFlowRecordList, selectRemarkRecordList, selectCurrentNodeDetail, selectTid, selectShopUniqueKey, selectOperateParams, selectFlowStatus, selectCurrentTradeIdWOrkOrderNumber, selectFlowTemplateId, selectLoading, selectOrderBackLoading, selectOrderBackKmLoading, selectWithDrawOrder, selectNodeAssistantMap, selectFlowTemplateType, selectFollow, selectShowShareButton, selectH5SharePermission } from "./store/selector";
|
|
30
|
+
import { selectFlowRecordList, selectRemarkRecordList, selectCurrentNodeDetail, selectTid, selectShopUniqueKey, selectOperateParams, selectFlowStatus, selectCurrentTradeIdWOrkOrderNumber, selectFlowTemplateId, selectLoading, selectOrderBackLoading, selectOrderBackKmLoading, selectWithDrawOrder, selectNodeAssistantMap, selectFlowTemplateType, selectFollow, selectShowShareButton, selectH5SharePermission, selectAutoSubmitFlag } from "./store/selector";
|
|
31
31
|
import { NodeType, FlowStatus, FlowType } from "../model/flowTemplateDetail/types";
|
|
32
32
|
import NodeItem from "./components/Item";
|
|
33
33
|
import CurrentNode from "./components/CurrentNode";
|
|
@@ -62,7 +62,7 @@ import { PlatForm } from "../WorkOrder/types";
|
|
|
62
62
|
var Text = Typography.Text,
|
|
63
63
|
Link = Typography.Link;
|
|
64
64
|
var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
65
|
-
var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _currentNodeDetail$no14, _shopList$find, _JSON$parse, _currentNodeDetail$
|
|
65
|
+
var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _currentNodeDetail$no14, _shopList$find, _JSON$parse, _currentNodeDetail$wo31, _currentNodeDetail$wo32, _currentNodeDetail$wo33, _currentNodeDetail$wo34, _currentNodeDetail$no25, _currentNodeDetail$no26, _currentNodeDetail$no27, _currentNodeDetail$no28;
|
|
66
66
|
var flowTemplateKey = props.flowTemplateKey,
|
|
67
67
|
_props$shopList = props.shopList,
|
|
68
68
|
shopList = _props$shopList === void 0 ? [] : _props$shopList,
|
|
@@ -99,6 +99,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
99
99
|
var loading = useSelector(selectLoading);
|
|
100
100
|
var orderBackLoading = useSelector(selectOrderBackLoading);
|
|
101
101
|
var orderBackKmLoading = useSelector(selectOrderBackKmLoading);
|
|
102
|
+
var autoSubmitFlag = useSelector(selectAutoSubmitFlag);
|
|
102
103
|
var withdrawWorkOrderDetail = useSelector(selectWithDrawOrder);
|
|
103
104
|
var assistantMap = useSelector(selectNodeAssistantMap);
|
|
104
105
|
var flowTemplateType = useSelector(selectFlowTemplateType);
|
|
@@ -566,7 +567,6 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
566
567
|
}();
|
|
567
568
|
// 行动点操作
|
|
568
569
|
var handleAction = function handleAction(status) {
|
|
569
|
-
console.log('handleAction', status);
|
|
570
570
|
//保存和提交校验重复订单禁止提交规则
|
|
571
571
|
var isReplace = checkOnlySubmit();
|
|
572
572
|
if (isReplace && ['save', 'submit'].includes(status)) {
|
|
@@ -591,11 +591,12 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
591
591
|
if (!isSuperAdmin && !hasShareAuth) {
|
|
592
592
|
Modal.warning({
|
|
593
593
|
title: '没有权限',
|
|
594
|
-
content: '
|
|
594
|
+
content: '当前账号暂无此权限,请联系管理员设置权限后再操作。'
|
|
595
595
|
});
|
|
596
596
|
return;
|
|
597
597
|
}
|
|
598
598
|
(_ShareLinkModalRef$cu = ShareLinkModalRef.current) === null || _ShareLinkModalRef$cu === void 0 ? void 0 : _ShareLinkModalRef$cu.open({
|
|
599
|
+
title: '单条流程数据分享',
|
|
599
600
|
type: 'edit',
|
|
600
601
|
companyKey: plat.companyKey,
|
|
601
602
|
flowTemplateKey: flowTemplateKey,
|
|
@@ -1122,7 +1123,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1122
1123
|
}, [flowTemplateKey, flowWorkOrderIdState]);
|
|
1123
1124
|
useEffect(function () {
|
|
1124
1125
|
var _currentNodeDetail$no12;
|
|
1125
|
-
if (flowTemplateKey && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$no12 = currentNodeDetail.nodeInfo) !== null && _currentNodeDetail$no12 !== void 0 && _currentNodeDetail$no12.id && !privilege) {
|
|
1126
|
+
if (flowTemplateKey && !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$no12 = currentNodeDetail.nodeInfo) !== null && _currentNodeDetail$no12 !== void 0 && _currentNodeDetail$no12.id) && !privilege) {
|
|
1126
1127
|
var _currentNodeDetail$no13;
|
|
1127
1128
|
dispatch(fetchShareNodeConfig({
|
|
1128
1129
|
companyKey: plat.companyKey,
|
|
@@ -1151,31 +1152,40 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1151
1152
|
payload: privilege
|
|
1152
1153
|
});
|
|
1153
1154
|
}, [plat, privilege]);
|
|
1155
|
+
var autoSubmitFn = function autoSubmitFn() {
|
|
1156
|
+
var _currentNodeDetail$wo25;
|
|
1157
|
+
// TODO: 兼容后端一些时候生成的数据异常情况,防止批量提交出现卡顿不执行情况
|
|
1158
|
+
if (isEmpty(currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder) && typeof callbackAutoSubmitResult === 'function') {
|
|
1159
|
+
return callbackAutoSubmitResult({
|
|
1160
|
+
success: false,
|
|
1161
|
+
message: '当前流程工单无工单数据,请联系实施处理'
|
|
1162
|
+
});
|
|
1163
|
+
}
|
|
1164
|
+
if (flowWorkOrderId === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo25 === void 0 ? void 0 : _currentNodeDetail$wo25.flowWorkOrderId)) {
|
|
1165
|
+
setTimeout(function () {
|
|
1166
|
+
handleSubmit();
|
|
1167
|
+
}, 0);
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1154
1170
|
useEffect(function () {
|
|
1155
1171
|
if (autoSubmit && !isNull(currentNodeDetail)) {
|
|
1156
|
-
var _currentNodeDetail$
|
|
1157
|
-
//
|
|
1158
|
-
if (
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
if (flowWorkOrderId === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo25 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo25 === void 0 ? void 0 : _currentNodeDetail$wo25.flowWorkOrderId)) {
|
|
1165
|
-
setTimeout(function () {
|
|
1166
|
-
handleSubmit();
|
|
1167
|
-
}, 0);
|
|
1172
|
+
var _currentNodeDetail$wo26, _currentNodeDetail$wo27;
|
|
1173
|
+
// SKX首节点满足下列条件、此时批量提交会等订单数据反填再提交, 其余企业批量提交还是原先逻辑,不涉及订单数据反填
|
|
1174
|
+
if (currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo26 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo26 !== void 0 && _currentNodeDetail$wo26.notAutoFillWithFirstSubmit && autoSubmitFlag) {
|
|
1175
|
+
autoSubmitFn();
|
|
1176
|
+
} else if (!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo27 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo27 !== void 0 && _currentNodeDetail$wo27.notAutoFillWithFirstSubmit) && !autoSubmitFlag) {
|
|
1177
|
+
autoSubmitFn();
|
|
1168
1178
|
}
|
|
1169
1179
|
}
|
|
1170
|
-
}, [currentNodeDetail]);
|
|
1180
|
+
}, [currentNodeDetail, autoSubmitFlag]);
|
|
1171
1181
|
var isCurrentNodeHandler = useMemo(function () {
|
|
1172
|
-
var _currentNodeDetail$no15, _currentNodeDetail$no16, _currentNodeDetail$no17, _currentNodeDetail$no18, _currentNodeDetail$no19, _currentNodeDetail$no20, _currentNodeDetail$
|
|
1182
|
+
var _currentNodeDetail$no15, _currentNodeDetail$no16, _currentNodeDetail$no17, _currentNodeDetail$no18, _currentNodeDetail$no19, _currentNodeDetail$no20, _currentNodeDetail$wo28, _currentNodeDetail$no21, _currentNodeDetail$no22;
|
|
1173
1183
|
return currentUserHasOperatorAuth({
|
|
1174
1184
|
assistantList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no15 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no15 === void 0 ? void 0 : _currentNodeDetail$no15.id) && assistantMap[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no16 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no16 === void 0 ? void 0 : _currentNodeDetail$no16.id] || [],
|
|
1175
1185
|
currentUserKey: plat.userKey,
|
|
1176
1186
|
staffIds: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no17 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no17 === void 0 ? void 0 : (_currentNodeDetail$no18 = _currentNodeDetail$no17.assistants) === null || _currentNodeDetail$no18 === void 0 ? void 0 : _currentNodeDetail$no18.staffIds) || [],
|
|
1177
1187
|
operateDataPermission: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no19 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no19 === void 0 ? void 0 : (_currentNodeDetail$no20 = _currentNodeDetail$no19.assistants) === null || _currentNodeDetail$no20 === void 0 ? void 0 : _currentNodeDetail$no20.operateDataPermission,
|
|
1178
|
-
handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1188
|
+
handlerList: (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo28 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo28 === void 0 ? void 0 : _currentNodeDetail$wo28.handlerList) || [],
|
|
1179
1189
|
isAllStaff: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no21 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no21 === void 0 ? void 0 : (_currentNodeDetail$no22 = _currentNodeDetail$no21.assistants) === null || _currentNodeDetail$no22 === void 0 ? void 0 : _currentNodeDetail$no22.isAllStaff
|
|
1180
1190
|
});
|
|
1181
1191
|
}, [currentNodeDetail, plat, assistantMap]);
|
|
@@ -1184,9 +1194,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1184
1194
|
return item.accessToken === (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no23 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no23 === void 0 ? void 0 : (_currentNodeDetail$no24 = _currentNodeDetail$no23.relationEvent) === null || _currentNodeDetail$no24 === void 0 ? void 0 : _currentNodeDetail$no24.defaultShopUniqueKey);
|
|
1185
1195
|
})) === null || _shopList$find === void 0 ? void 0 : _shopList$find.shopId;
|
|
1186
1196
|
var ReportOrderRender = function ReportOrderRender(props) {
|
|
1187
|
-
var _currentNodeDetail$
|
|
1197
|
+
var _currentNodeDetail$wo29, _currentNodeDetail$wo30;
|
|
1188
1198
|
var details = props.details;
|
|
1189
|
-
var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1199
|
+
var componentDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo29 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo29 === void 0 ? void 0 : _currentNodeDetail$wo29.componentDtoList.filter(function (t) {
|
|
1190
1200
|
return !CANNOT_BACK_FILL.includes(t.workOrderComponentType || '');
|
|
1191
1201
|
});
|
|
1192
1202
|
//获取可以返填的组件值
|
|
@@ -1194,7 +1204,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1194
1204
|
_calcWorkOrderList2 = _slicedToArray(_calcWorkOrderList, 1),
|
|
1195
1205
|
transData = _calcWorkOrderList2[0];
|
|
1196
1206
|
//获取表单显示值
|
|
1197
|
-
var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1207
|
+
var _calcWorkOrderList3 = calcWorkOrderList([details], currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo30 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo30 === void 0 ? void 0 : _currentNodeDetail$wo30.componentDtoList),
|
|
1198
1208
|
_calcWorkOrderList4 = _slicedToArray(_calcWorkOrderList3, 1),
|
|
1199
1209
|
transDataall = _calcWorkOrderList4[0];
|
|
1200
1210
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1292,9 +1302,9 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1292
1302
|
}), shopItem === null || shopItem === void 0 ? void 0 : shopItem.shopName, "-"), /*#__PURE__*/React.createElement("span", null, flowWorkOrderId), !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(Button, {
|
|
1293
1303
|
type: "link",
|
|
1294
1304
|
onClick: handleFollow
|
|
1295
|
-
}, !follow ? '关注' : '已关注')), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1305
|
+
}, !follow ? '关注' : '已关注')), /*#__PURE__*/React.createElement("div", null, (_JSON$parse = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo31 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo31 === void 0 ? void 0 : (_currentNodeDetail$wo32 = _currentNodeDetail$wo31.jsonMap) === null || _currentNodeDetail$wo32 === void 0 ? void 0 : _currentNodeDetail$wo32.flowTags) || '[]')) !== null && _JSON$parse !== void 0 && _JSON$parse.includes('AI_BUILD') ? /*#__PURE__*/React.createElement(Tag, {
|
|
1296
1306
|
color: "blue"
|
|
1297
|
-
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
1307
|
+
}, "AI\u81EA\u52A8\u5EFA\u5355-".concat(WORK_ORDER_STATUS_AI_BUILD[currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo33 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo33 === void 0 ? void 0 : (_currentNodeDetail$wo34 = _currentNodeDetail$wo33.jsonMap) === null || _currentNodeDetail$wo34 === void 0 ? void 0 : _currentNodeDetail$wo34.flowStatus])) : null)), flowStatus && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
1298
1308
|
justify: 'space-between',
|
|
1299
1309
|
className: "header"
|
|
1300
1310
|
}, /*#__PURE__*/React.createElement(Col, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1380,7 +1390,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1380
1390
|
}))), getTag({
|
|
1381
1391
|
nodeIsAuto: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no25 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no25 === void 0 ? void 0 : _currentNodeDetail$no25.isAuto,
|
|
1382
1392
|
nodeType: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no26 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no26 === void 0 ? void 0 : _currentNodeDetail$no26.nodeType
|
|
1383
|
-
}) === 'artificial' && (!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder) || isCurrentNodeHandler ||
|
|
1393
|
+
}) === 'artificial' && (!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder) || isCurrentNodeHandler || ['true', 'created'].includes(privilege)) && !readonly && /*#__PURE__*/React.createElement("div", {
|
|
1384
1394
|
className: "footer"
|
|
1385
1395
|
}, /*#__PURE__*/React.createElement(ActionList, {
|
|
1386
1396
|
flowType: flowTemplateType,
|
|
@@ -1389,7 +1399,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
1389
1399
|
handleAction: handleAction,
|
|
1390
1400
|
hasPreNode: (flowRecordList === null || flowRecordList === void 0 ? void 0 : flowRecordList.length) > 0,
|
|
1391
1401
|
privilege: privilege,
|
|
1392
|
-
showShareButton: showShareButton
|
|
1402
|
+
showShareButton: showShareButton && hasShareAuth
|
|
1393
1403
|
})), isShowRemark && !['created', 'edit'].includes(privilege) && /*#__PURE__*/React.createElement(OrderRemark, {
|
|
1394
1404
|
shopUniqueKey: shopUniqueKey,
|
|
1395
1405
|
shopSourceStr: shopSourceStr,
|
|
@@ -45,6 +45,7 @@ export declare const setFollow: (state: FlowTemplateDetailState, { payload }: Pa
|
|
|
45
45
|
export declare const setPrivilege: (state: FlowTemplateDetailState, { payload }: PayloadAction<string>) => void;
|
|
46
46
|
export declare const setShowShareButton: (state: FlowTemplateDetailState, { payload }: PayloadAction<boolean>) => void;
|
|
47
47
|
export declare const setH5SharePermission: (state: FlowTemplateDetailState, { payload }: PayloadAction<boolean>) => void;
|
|
48
|
+
export declare const setaAutoSubmitFlag: (state: FlowTemplateDetailState, { payload }: PayloadAction<boolean>) => void;
|
|
48
49
|
declare const reducers: (state: FlowTemplateDetailState | undefined, action: {
|
|
49
50
|
type: string;
|
|
50
51
|
payload: any;
|
|
@@ -94,5 +95,6 @@ declare const reducers: (state: FlowTemplateDetailState | undefined, action: {
|
|
|
94
95
|
privilege: string;
|
|
95
96
|
showShareButton: boolean;
|
|
96
97
|
hasH5SharePermission: boolean;
|
|
98
|
+
autoSubmitFlag: boolean;
|
|
97
99
|
};
|
|
98
100
|
export default reducers;
|
|
@@ -51,7 +51,9 @@ export var initState = {
|
|
|
51
51
|
privilege: '',
|
|
52
52
|
showShareButton: false,
|
|
53
53
|
//是否展示分享按钮
|
|
54
|
-
hasH5SharePermission: false
|
|
54
|
+
hasH5SharePermission: false,
|
|
55
|
+
//是否有h5分享权限
|
|
56
|
+
autoSubmitFlag: false // 批量提交可操作标识
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
@@ -356,7 +358,7 @@ export var fetchCollectOrder = function fetchCollectOrder(params) {
|
|
|
356
358
|
export var fetchShareNodeConfig = function fetchShareNodeConfig(params) {
|
|
357
359
|
return /*#__PURE__*/function () {
|
|
358
360
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(dispatch) {
|
|
359
|
-
var _yield$queryShareNode, data, success, nowNode,
|
|
361
|
+
var _yield$queryShareNode, data, success, nowNode, hasNodeShareUser;
|
|
360
362
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
361
363
|
while (1) switch (_context5.prev = _context5.next) {
|
|
362
364
|
case 0:
|
|
@@ -368,14 +370,13 @@ export var fetchShareNodeConfig = function fetchShareNodeConfig(params) {
|
|
|
368
370
|
data = _yield$queryShareNode.data;
|
|
369
371
|
success = _yield$queryShareNode.success;
|
|
370
372
|
if (success) {
|
|
371
|
-
console.log('data', data);
|
|
372
373
|
nowNode = data.find(function (item) {
|
|
373
|
-
return item.
|
|
374
|
+
return item.flowNodeId === params.flowNodeId;
|
|
374
375
|
});
|
|
375
|
-
|
|
376
|
+
hasNodeShareUser = !!(nowNode !== null && nowNode !== void 0 && nowNode.userKey);
|
|
376
377
|
dispatch({
|
|
377
378
|
type: 'setShowShareButton',
|
|
378
|
-
payload:
|
|
379
|
+
payload: hasNodeShareUser
|
|
379
380
|
});
|
|
380
381
|
}
|
|
381
382
|
_context5.next = 12;
|
|
@@ -549,6 +550,10 @@ export var setH5SharePermission = function setH5SharePermission(state, _ref34) {
|
|
|
549
550
|
var payload = _ref34.payload;
|
|
550
551
|
state.hasH5SharePermission = payload;
|
|
551
552
|
};
|
|
553
|
+
export var setaAutoSubmitFlag = function setaAutoSubmitFlag(state, _ref35) {
|
|
554
|
+
var payload = _ref35.payload;
|
|
555
|
+
state.autoSubmitFlag = payload;
|
|
556
|
+
};
|
|
552
557
|
var reducerMap = {
|
|
553
558
|
setNodeAssistantInfo: setNodeAssistantInfo,
|
|
554
559
|
setLoading: setLoading,
|
|
@@ -578,7 +583,8 @@ var reducerMap = {
|
|
|
578
583
|
setFollow: setFollow,
|
|
579
584
|
setPrivilege: setPrivilege,
|
|
580
585
|
setShowShareButton: setShowShareButton,
|
|
581
|
-
setH5SharePermission: setH5SharePermission
|
|
586
|
+
setH5SharePermission: setH5SharePermission,
|
|
587
|
+
setaAutoSubmitFlag: setaAutoSubmitFlag
|
|
582
588
|
};
|
|
583
589
|
var reducers = function reducers() {
|
|
584
590
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState;
|
|
@@ -262,6 +262,7 @@ export declare const selectFlowTemplateId: (state: FlowTemplateDetailState) => s
|
|
|
262
262
|
export declare const selectLoading: (state: FlowTemplateDetailState) => boolean;
|
|
263
263
|
export declare const selectOrderBackLoading: (state: FlowTemplateDetailState) => boolean;
|
|
264
264
|
export declare const selectOrderBackKmLoading: (state: FlowTemplateDetailState) => boolean;
|
|
265
|
+
export declare const selectAutoSubmitFlag: (state: FlowTemplateDetailState) => boolean;
|
|
265
266
|
export declare const selectCurrentFlowAllShowHideRules: (state: FlowTemplateDetailState) => import("../../model/flowTemplateDetail/types").CurrentFlowShowHideRules;
|
|
266
267
|
export declare const selectWithDrawOrder: (state: FlowTemplateDetailState) => {
|
|
267
268
|
nodeId: string;
|
|
@@ -50,6 +50,9 @@ export var selectOrderBackLoading = function selectOrderBackLoading(state) {
|
|
|
50
50
|
export var selectOrderBackKmLoading = function selectOrderBackKmLoading(state) {
|
|
51
51
|
return state.orderBackKmLoading;
|
|
52
52
|
};
|
|
53
|
+
export var selectAutoSubmitFlag = function selectAutoSubmitFlag(state) {
|
|
54
|
+
return state.autoSubmitFlag;
|
|
55
|
+
};
|
|
53
56
|
export var selectCurrentFlowAllShowHideRules = function selectCurrentFlowAllShowHideRules(state) {
|
|
54
57
|
return state.currentFlowAllShowHideRules;
|
|
55
58
|
};
|
|
@@ -262,8 +262,8 @@ export var orderBack = /*#__PURE__*/function () {
|
|
|
262
262
|
// 子订单根据订单号/店铺获取
|
|
263
263
|
OrderSubFormComponent = templateDetail.componentDtoList.find(function (item) {
|
|
264
264
|
return item.workOrderComponentType === 'ORDER_SUBFORM';
|
|
265
|
-
});
|
|
266
|
-
if (OrderSubFormComponent) {
|
|
265
|
+
}); // 对接平台才调用子订单退货平台接口
|
|
266
|
+
if (OrderSubFormComponent && JOIN_SHOP) {
|
|
267
267
|
promise.push(servers.orderSubForm.getOrderSubFormDataAsync({
|
|
268
268
|
orderNo: order_no,
|
|
269
269
|
shopId: shopId
|
|
@@ -849,7 +849,7 @@ export var submitParams = function submitParams(_ref4) {
|
|
|
849
849
|
}, operateParams)
|
|
850
850
|
};
|
|
851
851
|
if (update) {
|
|
852
|
-
var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6;
|
|
852
|
+
var _currentNodeDetail$wo, _currentNodeDetail$wo2, _currentNodeDetail$wo3, _currentNodeDetail$wo4, _currentNodeDetail$wo5, _currentNodeDetail$wo6, _currentNodeDetail$wo7;
|
|
853
853
|
params.updateInfo = {
|
|
854
854
|
templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo === void 0 ? void 0 : _currentNodeDetail$wo.templateId,
|
|
855
855
|
workOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo2 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo2 === void 0 ? void 0 : _currentNodeDetail$wo2.id,
|
|
@@ -893,25 +893,33 @@ export var submitParams = function submitParams(_ref4) {
|
|
|
893
893
|
dataValue: false
|
|
894
894
|
});
|
|
895
895
|
}
|
|
896
|
+
// TODO: 兼容后端导入Excel之后,订单未反填问题
|
|
897
|
+
if (update && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo7 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo7 !== void 0 && _currentNodeDetail$wo7.notAutoFillWithFirstSubmit) {
|
|
898
|
+
updateList.push({
|
|
899
|
+
dataKey: 'notAutoFillWithFirstSubmit',
|
|
900
|
+
oldValue: true,
|
|
901
|
+
dataValue: false
|
|
902
|
+
});
|
|
903
|
+
}
|
|
896
904
|
params.updateInfo.updateList = updateList;
|
|
897
905
|
params.updateInfo.needTransForm = params.needTransForm;
|
|
898
906
|
delete params.workOrderUpdateKeyVos;
|
|
899
907
|
delete params.needTransForm;
|
|
900
908
|
} else {
|
|
901
|
-
var _Object$keys, _currentNodeDetail$
|
|
909
|
+
var _Object$keys, _currentNodeDetail$wo8, _currentNodeDetail$wo9, _currentNodeDetail$wo10, _currentNodeDetail$wo11, _currentNodeDetail$wo12, _currentNodeDetail$wo13, _currentNodeDetail$wo14, _currentNodeDetail$wo15, _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$wo18;
|
|
902
910
|
// TODO: 新保存工单
|
|
903
911
|
// 获取当前表单中非空字段
|
|
904
912
|
var finalComponentList = (_Object$keys = Object.keys(formData)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.filter(function (i) {
|
|
905
913
|
return !isNull(formData[i]);
|
|
906
914
|
});
|
|
907
915
|
// 获取非空字段对应的组件
|
|
908
|
-
var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
916
|
+
var finalDtoList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo8 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo8 === void 0 ? void 0 : (_currentNodeDetail$wo9 = _currentNodeDetail$wo8.componentDtoList) === null || _currentNodeDetail$wo9 === void 0 ? void 0 : _currentNodeDetail$wo9.filter(function (item) {
|
|
909
917
|
return finalComponentList.includes(item.uniqueKey) || item.workOrderComponentType === 'BUYER_MESSAGE_NOTICE';
|
|
910
918
|
});
|
|
911
919
|
set(newTemplateDetail, 'componentDtoList', finalDtoList);
|
|
912
920
|
params.workOrder = {
|
|
913
|
-
templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
914
|
-
handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
921
|
+
templateId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo10 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo10 === void 0 ? void 0 : _currentNodeDetail$wo10.uniqueKey,
|
|
922
|
+
handleWorkOrderId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.id,
|
|
915
923
|
buyerNick: plat === null || plat === void 0 ? void 0 : plat.buyerNick,
|
|
916
924
|
buyerOpenUid: plat === null || plat === void 0 ? void 0 : plat.buyerId,
|
|
917
925
|
shopUniqueKey: shopUniqueKey,
|
|
@@ -921,13 +929,13 @@ export var submitParams = function submitParams(_ref4) {
|
|
|
921
929
|
};
|
|
922
930
|
|
|
923
931
|
// 判断是否有订单号组建,订单号数据需要特殊处理
|
|
924
|
-
var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
932
|
+
var tradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo12 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo12 === void 0 ? void 0 : (_currentNodeDetail$wo13 = _currentNodeDetail$wo12.componentDtoList) === null || _currentNodeDetail$wo13 === void 0 ? void 0 : (_currentNodeDetail$wo14 = _currentNodeDetail$wo13.find(function (item) {
|
|
925
933
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
926
|
-
})) === null || _currentNodeDetail$
|
|
934
|
+
})) === null || _currentNodeDetail$wo14 === void 0 ? void 0 : _currentNodeDetail$wo14.uniqueKey;
|
|
927
935
|
// 判断是否有订单号组建,订单号数据需要特殊处理
|
|
928
|
-
var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$
|
|
936
|
+
var paymentTradeIdUniqueKey = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo15 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo15 === void 0 ? void 0 : (_currentNodeDetail$wo16 = _currentNodeDetail$wo15.componentDtoList) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : (_currentNodeDetail$wo17 = _currentNodeDetail$wo16.find(function (item) {
|
|
929
937
|
return item.workOrderComponentType === 'ENTERPRISE_PAYMENT';
|
|
930
|
-
})) === null || _currentNodeDetail$
|
|
938
|
+
})) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.uniqueKey;
|
|
931
939
|
if (paymentTradeIdUniqueKey) {
|
|
932
940
|
var _formData;
|
|
933
941
|
params.workOrder.tid = formData === null || formData === void 0 ? void 0 : (_formData = formData["".concat(paymentTradeIdUniqueKey)]) === null || _formData === void 0 ? void 0 : _formData.enterprisePaymentTid;
|
|
@@ -938,7 +946,7 @@ export var submitParams = function submitParams(_ref4) {
|
|
|
938
946
|
if (formData !== null && formData !== void 0 && formData['fixed_field_buyerOpenUid']) {
|
|
939
947
|
params.workOrder.buyerOpenUid = formData === null || formData === void 0 ? void 0 : formData['fixed_field_buyerOpenUid'];
|
|
940
948
|
}
|
|
941
|
-
params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$
|
|
949
|
+
params.workOrder.workOrderComponents = submitDataTransOldFormat(formData, newTemplateDetail, !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$wo18 = currentNodeDetail.workOrder) !== null && _currentNodeDetail$wo18 !== void 0 && _currentNodeDetail$wo18.id), currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : currentNodeDetail.workOrder, params.workOrder, (plat === null || plat === void 0 ? void 0 : plat.accountName) || '');
|
|
942
950
|
//端上有买家id 就返填当前买家 即使不是当前买家的订单
|
|
943
951
|
if (plat.platform !== PlatForm.PC && plat !== null && plat !== void 0 && plat.buyerId) {
|
|
944
952
|
params.workOrder.buyerOpenUid = plat === null || plat === void 0 ? void 0 : plat.buyerId;
|
|
@@ -224,7 +224,8 @@ export var getH5SharePermission = function getH5SharePermission() {
|
|
|
224
224
|
return request({
|
|
225
225
|
url: "/qy/gdfw/official/queryWorkOrderShareTemplate",
|
|
226
226
|
method: 'post',
|
|
227
|
-
data: {}
|
|
227
|
+
data: {},
|
|
228
|
+
infoLevel: 'quiet'
|
|
228
229
|
});
|
|
229
230
|
};
|
|
230
231
|
export var shortLink = function shortLink(data) {
|
|
@@ -43,7 +43,7 @@ var requestApi = function requestApi(_ref) {
|
|
|
43
43
|
} else if (infoLevel === 'error') {
|
|
44
44
|
message.error("path: ".concat(url, " ").concat(res.message, " traceId: ").concat(res.traceId));
|
|
45
45
|
} else {
|
|
46
|
-
console.log(res.message);
|
|
46
|
+
console.log("".concat(url).concat(res.message));
|
|
47
47
|
}
|
|
48
48
|
reject(res);
|
|
49
49
|
}
|
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.5-beta.
|
|
3
|
+
"version": "2.2.5-beta.21",
|
|
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.5-beta.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "2.2.5-beta.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "2.2.5-beta.21",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.5-beta.18",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "2.2.5-beta.21",
|
|
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": "52e09d850c3d64732636822d50585dc02cfd234f",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|