@kmkf-fe-packages/kmkf-work-order-service-component 0.19.2 → 0.19.4-alpha.0
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/FlowTemplateDetail/components/ActionList/index.d.ts +2 -1
- package/dist/esm/FlowTemplateDetail/components/ActionList/index.js +47 -38
- package/dist/esm/FlowTemplateDetail/components/SubmitRemindModal/index.d.ts +6 -0
- package/dist/esm/FlowTemplateDetail/components/SubmitRemindModal/index.js +31 -0
- package/dist/esm/FlowTemplateDetail/index.js +160 -119
- package/dist/esm/common/cache/index.d.ts +2 -0
- package/dist/esm/common/cache/index.js +11 -1
- package/dist/esm/model/flowTemplateDetail/index.d.ts +1 -1
- package/dist/esm/model/flowTemplateDetail/index.js +23 -16
- package/dist/esm/model/flowTemplateDetail/selector.d.ts +14 -0
- package/dist/esm/model/flowTemplateDetail/selector.js +3 -0
- package/dist/esm/model/flowTemplateDetail/types.d.ts +9 -0
- package/dist/esm/model/flowTemplateDetail/types.js +8 -1
- package/dist/esm/model/logicFlow/selector.d.ts +0 -3
- package/package.json +5 -5
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NodeType, FlowStatus } from '../../../model/flowTemplateDetail/types';
|
|
2
|
+
import { NodeType, FlowStatus, FlowType } from '../../../model/flowTemplateDetail/types';
|
|
3
3
|
interface ActionListProps {
|
|
4
4
|
flowStatus: FlowStatus | undefined;
|
|
5
|
+
flowType: FlowType;
|
|
5
6
|
nodeType: NodeType;
|
|
6
7
|
handleAction: (s: string) => void;
|
|
7
8
|
hasPreNode: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Menu, Button, Space, Dropdown } from 'antd';
|
|
3
3
|
import { DownOutlined } from '@ant-design/icons';
|
|
4
|
-
import { FlowStatus } from "../../../model/flowTemplateDetail/types";
|
|
4
|
+
import { FlowStatus, FlowType } from "../../../model/flowTemplateDetail/types";
|
|
5
5
|
import styles from "./index.module.less";
|
|
6
6
|
var getActionMap = function getActionMap(nodeStatus, hasPreNode) {
|
|
7
7
|
// 非开始节点看状态
|
|
@@ -16,41 +16,49 @@ var getActionMap = function getActionMap(nodeStatus, hasPreNode) {
|
|
|
16
16
|
return ['save', 'submit'];
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
var buttonMap = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
19
|
+
var buttonMap = function buttonMap(flowType) {
|
|
20
|
+
return {
|
|
21
|
+
save: {
|
|
22
|
+
label: '暂存',
|
|
23
|
+
type: 'default',
|
|
24
|
+
style: {
|
|
25
|
+
backgroundColor: flowType === FlowType.SINGLE_PAGE ? '#52c41a' : '',
|
|
26
|
+
color: flowType === FlowType.SINGLE_PAGE ? '#fff' : '#000'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
submit: {
|
|
30
|
+
label: flowType === FlowType.SINGLE_PAGE ? '完成' : '提交',
|
|
31
|
+
type: 'primary'
|
|
32
|
+
},
|
|
33
|
+
forward: {
|
|
34
|
+
label: '转交',
|
|
35
|
+
type: 'default'
|
|
36
|
+
},
|
|
37
|
+
rejected: {
|
|
38
|
+
label: '驳回',
|
|
39
|
+
type: 'default'
|
|
40
|
+
},
|
|
41
|
+
close: {
|
|
42
|
+
label: '关闭',
|
|
43
|
+
type: 'default'
|
|
44
|
+
},
|
|
45
|
+
stop: {
|
|
46
|
+
label: '暂停',
|
|
47
|
+
type: 'default'
|
|
48
|
+
},
|
|
49
|
+
open: {
|
|
50
|
+
label: '启用',
|
|
51
|
+
type: 'primary'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
48
54
|
};
|
|
49
55
|
var ActionList = function ActionList(props) {
|
|
50
56
|
var _buttonList$slice;
|
|
51
57
|
var _props$flowStatus = props.flowStatus,
|
|
52
58
|
flowStatus = _props$flowStatus === void 0 ? FlowStatus.NON_START : _props$flowStatus,
|
|
53
59
|
hasPreNode = props.hasPreNode,
|
|
60
|
+
_props$flowType = props.flowType,
|
|
61
|
+
flowType = _props$flowType === void 0 ? FlowType.SINGLE_PAGE : _props$flowType,
|
|
54
62
|
handleAction = props.handleAction;
|
|
55
63
|
var buttonList = getActionMap(flowStatus, hasPreNode);
|
|
56
64
|
var menu = function menu(list) {
|
|
@@ -59,12 +67,12 @@ var ActionList = function ActionList(props) {
|
|
|
59
67
|
key: index,
|
|
60
68
|
label: /*#__PURE__*/React.createElement(Button, {
|
|
61
69
|
type: "link",
|
|
62
|
-
"data-spm-click": buttonMap[item].label,
|
|
63
|
-
"data-spm-param": buttonMap[item].label,
|
|
70
|
+
"data-spm-click": buttonMap(flowType)[item].label,
|
|
71
|
+
"data-spm-param": buttonMap(flowType)[item].label,
|
|
64
72
|
onClick: function onClick() {
|
|
65
73
|
return handleAction(item);
|
|
66
74
|
}
|
|
67
|
-
}, buttonMap[item].label)
|
|
75
|
+
}, buttonMap(flowType)[item].label)
|
|
68
76
|
};
|
|
69
77
|
});
|
|
70
78
|
return /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -80,16 +88,17 @@ var ActionList = function ActionList(props) {
|
|
|
80
88
|
return e.preventDefault();
|
|
81
89
|
}
|
|
82
90
|
}, /*#__PURE__*/React.createElement(Space, null, "\u66F4\u591A", /*#__PURE__*/React.createElement(DownOutlined, null)))), (_buttonList$slice = buttonList.slice(0, 3)) === null || _buttonList$slice === void 0 ? void 0 : _buttonList$slice.map(function (button, index) {
|
|
83
|
-
var _buttonMap$button, _buttonMap$button2, _buttonMap$button3;
|
|
91
|
+
var _buttonMap$button, _buttonMap$button2, _buttonMap$button3, _buttonMap$button4;
|
|
84
92
|
return /*#__PURE__*/React.createElement(Button, {
|
|
85
93
|
key: "button".concat(index),
|
|
86
|
-
type: buttonMap[button].type,
|
|
94
|
+
type: buttonMap(flowType)[button].type,
|
|
87
95
|
onClick: function onClick() {
|
|
88
96
|
return handleAction(button);
|
|
89
97
|
},
|
|
90
|
-
"data-spm-click": (_buttonMap$button = buttonMap[button]) === null || _buttonMap$button === void 0 ? void 0 : _buttonMap$button.label,
|
|
91
|
-
"data-spm-param": (_buttonMap$button2 = buttonMap[button]) === null || _buttonMap$button2 === void 0 ? void 0 : _buttonMap$button2.label
|
|
92
|
-
|
|
98
|
+
"data-spm-click": (_buttonMap$button = buttonMap(flowType)[button]) === null || _buttonMap$button === void 0 ? void 0 : _buttonMap$button.label,
|
|
99
|
+
"data-spm-param": (_buttonMap$button2 = buttonMap(flowType)[button]) === null || _buttonMap$button2 === void 0 ? void 0 : _buttonMap$button2.label,
|
|
100
|
+
style: (_buttonMap$button3 = buttonMap(flowType)[button]) === null || _buttonMap$button3 === void 0 ? void 0 : _buttonMap$button3.style
|
|
101
|
+
}, (_buttonMap$button4 = buttonMap(flowType)[button]) === null || _buttonMap$button4 === void 0 ? void 0 : _buttonMap$button4.label);
|
|
93
102
|
})));
|
|
94
103
|
};
|
|
95
104
|
export default ActionList;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
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
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import React, { useState } from 'react';
|
|
8
|
+
import { Modal, Checkbox } from 'antd';
|
|
9
|
+
import cache from "../../../common/cache";
|
|
10
|
+
export default (function (props) {
|
|
11
|
+
var onCallback = props.onCallback;
|
|
12
|
+
var _useState = useState(false),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
remind = _useState2[0],
|
|
15
|
+
setRemind = _useState2[1];
|
|
16
|
+
var onOk = function onOk() {
|
|
17
|
+
remind && cache.setRemind();
|
|
18
|
+
onCallback();
|
|
19
|
+
};
|
|
20
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
21
|
+
visible: true,
|
|
22
|
+
title: "\u63D0\u9192",
|
|
23
|
+
okText: "\u786E\u8BA4",
|
|
24
|
+
cancelText: "\u53D6\u6D88",
|
|
25
|
+
onOk: onOk
|
|
26
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", null, "\u786E\u8BA4\u5B8C\u7ED3\u5DE5\u5355\u5417?\u5B8C\u7ED3\u540E\u5DE5\u5355\u5185\u5BB9\u4E0D\u53EF\u53D8\u66F4"), /*#__PURE__*/React.createElement(Checkbox, {
|
|
27
|
+
onChange: function onChange(e) {
|
|
28
|
+
return setRemind(e.target.checked);
|
|
29
|
+
}
|
|
30
|
+
}, "\u77E5\u9053\u4E86\uFF0C\u4E0D\u7528\u518D\u63D0\u9192\u6211\u4E86")));
|
|
31
|
+
});
|
|
@@ -23,8 +23,8 @@ import zhCN from 'antd/es/locale/zh_CN';
|
|
|
23
23
|
import { AddressData, ExpressData, ExpressInterceptData, PlatData, BsAddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
24
24
|
import { calcWorkOrderList, deleteCacheOrder } from "../common/utils/tools";
|
|
25
25
|
import { setPlat, fetchPanelInfo, fetchAllFlowOperateRecord, setAction, setVisibleRemarkList, setAddRemarkVisible, setLoading, setClearStore } from "../model/flowTemplateDetail";
|
|
26
|
-
import { selectFlowRecordList, selectRemarkRecordList, selectCurrentNodeDetail, selectTid, selectShopUniqueKey, selectOperateParams, selectFlowStatus, selectCurrentTradeIdWOrkOrderNumber, selectFlowTemplateId, selectLoading, selectWithDrawOrder, selectNodeAssistantMap } from "../model/flowTemplateDetail/selector";
|
|
27
|
-
import { NodeType, FlowStatus } from "../model/flowTemplateDetail/types";
|
|
26
|
+
import { selectFlowRecordList, selectRemarkRecordList, selectCurrentNodeDetail, selectTid, selectShopUniqueKey, selectOperateParams, selectFlowStatus, selectCurrentTradeIdWOrkOrderNumber, selectFlowTemplateId, selectLoading, selectWithDrawOrder, selectNodeAssistantMap, selectFlowTemplateType } from "../model/flowTemplateDetail/selector";
|
|
27
|
+
import { NodeType, FlowStatus, FlowType } from "../model/flowTemplateDetail/types";
|
|
28
28
|
import NodeItem from "./components/Item";
|
|
29
29
|
import CurrentNode from "./components/CurrentNode";
|
|
30
30
|
import RemarkShow from "./components/RemarkShow";
|
|
@@ -37,10 +37,12 @@ import RejectedModal from "./components/RejectedModal";
|
|
|
37
37
|
import RemarkListModal from "./components/RemarkListModal";
|
|
38
38
|
import RemarkModal from "./components/RemarkModal";
|
|
39
39
|
import WithdrawModal from "./components/WithdrawModal";
|
|
40
|
+
import SubmitRemindModal from "./components/SubmitRemindModal";
|
|
40
41
|
import { useSignal } from "../hooks/useSignal";
|
|
41
42
|
import { verifyHandle, submitParams, FLOW_STATUS_V2, getTag, currentUserHasOperatorAuth } from "./common";
|
|
42
43
|
import { saveWorkOrder, submitWorkOrder, addRemark, stopWorkOrder, closeWorkOrder, startWorkOrder, forwardWorkOrder, returnWorkOrder, withDrawWorkOrder, reminder, cancelReminder } from "../model/flowTemplateDetail/api";
|
|
43
44
|
import { orderDetail } from "../model/servers/api";
|
|
45
|
+
import cache from "../common/cache";
|
|
44
46
|
import "./index.less";
|
|
45
47
|
var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
46
48
|
var _currentNodeDetail$wo, _currentNodeDetail$no, _currentNodeDetail$wo2, _shopList$find, _currentNodeDetail$no21, _currentNodeDetail$no22, _currentNodeDetail$no23;
|
|
@@ -74,6 +76,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
74
76
|
var loading = useSelector(selectLoading);
|
|
75
77
|
var withdrawWorkOrderDetail = useSelector(selectWithDrawOrder);
|
|
76
78
|
var assistantMap = useSelector(selectNodeAssistantMap);
|
|
79
|
+
var flowTemplateType = useSelector(selectFlowTemplateType);
|
|
77
80
|
var _Form$useForm = Form.useForm(),
|
|
78
81
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
79
82
|
form = _Form$useForm2[0];
|
|
@@ -89,6 +92,10 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
89
92
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
90
93
|
orderRemarkObj = _useState6[0],
|
|
91
94
|
setOrderRemarkObj = _useState6[1];
|
|
95
|
+
var _useState7 = useState(false),
|
|
96
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
97
|
+
remindVisible = _useState8[0],
|
|
98
|
+
setRemindVisible = _useState8[1];
|
|
92
99
|
var componentDtoList = (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo2 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo2 === void 0 ? void 0 : _currentNodeDetail$wo2.componentDtoList) || [];
|
|
93
100
|
var tradeIdComponentDto = componentDtoList.find(function (item) {
|
|
94
101
|
return item.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
@@ -336,33 +343,60 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
336
343
|
return _ref2.apply(this, arguments);
|
|
337
344
|
};
|
|
338
345
|
}();
|
|
339
|
-
|
|
340
|
-
var handleSubmit = /*#__PURE__*/function () {
|
|
346
|
+
var handleSubmitBefore = /*#__PURE__*/function () {
|
|
341
347
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
342
|
-
var
|
|
348
|
+
var kmkf_kmgd_remind;
|
|
343
349
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
344
350
|
while (1) switch (_context3.prev = _context3.next) {
|
|
345
351
|
case 0:
|
|
346
|
-
|
|
352
|
+
try {
|
|
353
|
+
kmkf_kmgd_remind = cache.getRemind();
|
|
354
|
+
console.log(kmkf_kmgd_remind, flowTemplateType);
|
|
355
|
+
if (flowTemplateType === FlowType.SINGLE_PAGE && !kmkf_kmgd_remind) {
|
|
356
|
+
setRemindVisible(true);
|
|
357
|
+
} else {
|
|
358
|
+
handleSubmit();
|
|
359
|
+
}
|
|
360
|
+
} catch (e) {
|
|
361
|
+
handleSubmit();
|
|
362
|
+
}
|
|
363
|
+
case 1:
|
|
364
|
+
case "end":
|
|
365
|
+
return _context3.stop();
|
|
366
|
+
}
|
|
367
|
+
}, _callee3);
|
|
368
|
+
}));
|
|
369
|
+
return function handleSubmitBefore() {
|
|
370
|
+
return _ref3.apply(this, arguments);
|
|
371
|
+
};
|
|
372
|
+
}();
|
|
373
|
+
// 提交
|
|
374
|
+
var handleSubmit = /*#__PURE__*/function () {
|
|
375
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
376
|
+
var _currentNodeDetail$wo7, _currentNodeDetail$wo8, formData, result, params, res, _controllerRef$curren2, _currentNodeDetail$wo9;
|
|
377
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
378
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
379
|
+
case 0:
|
|
380
|
+
_context4.prev = 0;
|
|
347
381
|
if (!submitRequestLock.current) {
|
|
348
|
-
|
|
382
|
+
_context4.next = 3;
|
|
349
383
|
break;
|
|
350
384
|
}
|
|
351
|
-
return
|
|
385
|
+
return _context4.abrupt("return");
|
|
352
386
|
case 3:
|
|
353
387
|
submitRequestLock.current = true;
|
|
354
388
|
dispatch(setLoading(true));
|
|
355
|
-
|
|
389
|
+
_context4.next = 7;
|
|
356
390
|
return form.validateFields();
|
|
357
391
|
case 7:
|
|
358
|
-
formData =
|
|
392
|
+
formData = _context4.sent;
|
|
359
393
|
result = verifyHandle(formData, (currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo7 = currentNodeDetail.workOrderTemplateInfo) === null || _currentNodeDetail$wo7 === void 0 ? void 0 : _currentNodeDetail$wo7.componentDtoList) || []);
|
|
360
394
|
if (result.success) {
|
|
361
|
-
|
|
395
|
+
_context4.next = 12;
|
|
362
396
|
break;
|
|
363
397
|
}
|
|
364
398
|
message.error(result.message);
|
|
365
|
-
return
|
|
399
|
+
return _context4.abrupt("return");
|
|
366
400
|
case 12:
|
|
367
401
|
params = submitParams({
|
|
368
402
|
update: !!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder),
|
|
@@ -378,10 +412,10 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
378
412
|
return s.shopId === formData.shopId;
|
|
379
413
|
}), 'accessToken', '')
|
|
380
414
|
});
|
|
381
|
-
|
|
415
|
+
_context4.next = 15;
|
|
382
416
|
return submitWorkOrder(params);
|
|
383
417
|
case 15:
|
|
384
|
-
res =
|
|
418
|
+
res = _context4.sent;
|
|
385
419
|
if (res.success) {
|
|
386
420
|
handleSuccessCallBack('submit');
|
|
387
421
|
dispatch(fetchPanelInfo({
|
|
@@ -401,13 +435,13 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
401
435
|
unDeleteOrderInfo: false
|
|
402
436
|
});
|
|
403
437
|
}
|
|
404
|
-
|
|
438
|
+
_context4.next = 23;
|
|
405
439
|
break;
|
|
406
440
|
case 19:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
console.log('e',
|
|
410
|
-
if (get(
|
|
441
|
+
_context4.prev = 19;
|
|
442
|
+
_context4.t0 = _context4["catch"](0);
|
|
443
|
+
console.log('e', _context4.t0);
|
|
444
|
+
if (get(_context4.t0, 'errorFields.length') > 0) {
|
|
411
445
|
setTimeout(function () {
|
|
412
446
|
var _get;
|
|
413
447
|
var errorList = document.querySelectorAll('.ant-form-item-has-error');
|
|
@@ -417,21 +451,21 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
417
451
|
});
|
|
418
452
|
}, 0);
|
|
419
453
|
// TODO: 解决显影导致的组件校验失败未提示问题
|
|
420
|
-
message.error(get(
|
|
454
|
+
message.error(get(_context4.t0, 'errorFields.0.errors.0', '组件校验失败'));
|
|
421
455
|
}
|
|
422
456
|
case 23:
|
|
423
|
-
|
|
457
|
+
_context4.prev = 23;
|
|
424
458
|
submitRequestLock.current = false;
|
|
425
459
|
dispatch(setLoading(false));
|
|
426
|
-
return
|
|
460
|
+
return _context4.finish(23);
|
|
427
461
|
case 27:
|
|
428
462
|
case "end":
|
|
429
|
-
return
|
|
463
|
+
return _context4.stop();
|
|
430
464
|
}
|
|
431
|
-
},
|
|
465
|
+
}, _callee4, null, [[0, 19, 23, 27]]);
|
|
432
466
|
}));
|
|
433
467
|
return function handleSubmit() {
|
|
434
|
-
return
|
|
468
|
+
return _ref4.apply(this, arguments);
|
|
435
469
|
};
|
|
436
470
|
}();
|
|
437
471
|
// 行动点操作
|
|
@@ -440,7 +474,8 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
440
474
|
if (status === 'save') {
|
|
441
475
|
handleSave();
|
|
442
476
|
} else if (status === 'submit') {
|
|
443
|
-
|
|
477
|
+
handleSubmitBefore();
|
|
478
|
+
// handleSubmit();
|
|
444
479
|
} else if (status === 'open') {
|
|
445
480
|
handleStart();
|
|
446
481
|
}
|
|
@@ -454,20 +489,20 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
454
489
|
};
|
|
455
490
|
// 添加备注
|
|
456
491
|
var handleSubmitRemark = /*#__PURE__*/function () {
|
|
457
|
-
var
|
|
492
|
+
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(formData) {
|
|
458
493
|
var res;
|
|
459
|
-
return _regeneratorRuntime().wrap(function
|
|
460
|
-
while (1) switch (
|
|
494
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
495
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
461
496
|
case 0:
|
|
462
|
-
|
|
463
|
-
|
|
497
|
+
_context5.prev = 0;
|
|
498
|
+
_context5.next = 3;
|
|
464
499
|
return addRemark(_objectSpread(_objectSpread({}, formData), {}, {
|
|
465
500
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
466
501
|
flowWorkOrderId: flowWorkOrderIdState
|
|
467
502
|
})
|
|
468
503
|
}));
|
|
469
504
|
case 3:
|
|
470
|
-
res =
|
|
505
|
+
res = _context5.sent;
|
|
471
506
|
if (res.success) {
|
|
472
507
|
message.success('添加备注成功');
|
|
473
508
|
dispatch(setAddRemarkVisible(false));
|
|
@@ -478,31 +513,31 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
478
513
|
}));
|
|
479
514
|
}
|
|
480
515
|
}
|
|
481
|
-
|
|
516
|
+
_context5.next = 10;
|
|
482
517
|
break;
|
|
483
518
|
case 7:
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
console.log('提交备注失败',
|
|
519
|
+
_context5.prev = 7;
|
|
520
|
+
_context5.t0 = _context5["catch"](0);
|
|
521
|
+
console.log('提交备注失败', _context5.t0);
|
|
487
522
|
case 10:
|
|
488
523
|
case "end":
|
|
489
|
-
return
|
|
524
|
+
return _context5.stop();
|
|
490
525
|
}
|
|
491
|
-
},
|
|
526
|
+
}, _callee5, null, [[0, 7]]);
|
|
492
527
|
}));
|
|
493
528
|
return function handleSubmitRemark(_x2) {
|
|
494
|
-
return
|
|
529
|
+
return _ref5.apply(this, arguments);
|
|
495
530
|
};
|
|
496
531
|
}();
|
|
497
532
|
// 暂停工单
|
|
498
533
|
var handleStop = /*#__PURE__*/function () {
|
|
499
|
-
var
|
|
534
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(formData) {
|
|
500
535
|
var _currentNodeDetail$no4, _currentNodeDetail$wo10, _res$data6, _res$data6$failList, res, _res$data7, _res$data7$failList, _res$data7$failList$;
|
|
501
|
-
return _regeneratorRuntime().wrap(function
|
|
502
|
-
while (1) switch (
|
|
536
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
537
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
503
538
|
case 0:
|
|
504
|
-
|
|
505
|
-
|
|
539
|
+
_context6.prev = 0;
|
|
540
|
+
_context6.next = 3;
|
|
506
541
|
return stopWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
|
|
507
542
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
508
543
|
nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no4 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no4 === void 0 ? void 0 : _currentNodeDetail$no4.id,
|
|
@@ -512,7 +547,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
512
547
|
})
|
|
513
548
|
}));
|
|
514
549
|
case 3:
|
|
515
|
-
res =
|
|
550
|
+
res = _context6.sent;
|
|
516
551
|
if (((_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : (_res$data6$failList = _res$data6.failList) === null || _res$data6$failList === void 0 ? void 0 : _res$data6$failList.length) === 0) {
|
|
517
552
|
message.success('暂停工单成功');
|
|
518
553
|
handleSuccessCallBack('stop');
|
|
@@ -534,31 +569,31 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
534
569
|
} else {
|
|
535
570
|
message.error((_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : (_res$data7$failList = _res$data7.failList) === null || _res$data7$failList === void 0 ? void 0 : (_res$data7$failList$ = _res$data7$failList[0]) === null || _res$data7$failList$ === void 0 ? void 0 : _res$data7$failList$.failReason);
|
|
536
571
|
}
|
|
537
|
-
|
|
572
|
+
_context6.next = 10;
|
|
538
573
|
break;
|
|
539
574
|
case 7:
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
console.log('暂停工单失败',
|
|
575
|
+
_context6.prev = 7;
|
|
576
|
+
_context6.t0 = _context6["catch"](0);
|
|
577
|
+
console.log('暂停工单失败', _context6.t0);
|
|
543
578
|
case 10:
|
|
544
579
|
case "end":
|
|
545
|
-
return
|
|
580
|
+
return _context6.stop();
|
|
546
581
|
}
|
|
547
|
-
},
|
|
582
|
+
}, _callee6, null, [[0, 7]]);
|
|
548
583
|
}));
|
|
549
584
|
return function handleStop(_x3) {
|
|
550
|
-
return
|
|
585
|
+
return _ref6.apply(this, arguments);
|
|
551
586
|
};
|
|
552
587
|
}();
|
|
553
588
|
// 关闭工单
|
|
554
589
|
var handleClose = /*#__PURE__*/function () {
|
|
555
|
-
var
|
|
590
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(formData) {
|
|
556
591
|
var _currentNodeDetail$wo11, _currentNodeDetail$no5, _currentNodeDetail$wo12, _res$data8, _res$data8$failList, res, _res$data9, _res$data9$failList, _res$data9$failList$;
|
|
557
|
-
return _regeneratorRuntime().wrap(function
|
|
558
|
-
while (1) switch (
|
|
592
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
593
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
559
594
|
case 0:
|
|
560
|
-
|
|
561
|
-
|
|
595
|
+
_context7.prev = 0;
|
|
596
|
+
_context7.next = 3;
|
|
562
597
|
return closeWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
|
|
563
598
|
workOrderFlowStatus: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo11 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo11 === void 0 ? void 0 : _currentNodeDetail$wo11.flowStatus,
|
|
564
599
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
@@ -569,7 +604,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
569
604
|
})
|
|
570
605
|
}));
|
|
571
606
|
case 3:
|
|
572
|
-
res =
|
|
607
|
+
res = _context7.sent;
|
|
573
608
|
if (((_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : (_res$data8$failList = _res$data8.failList) === null || _res$data8$failList === void 0 ? void 0 : _res$data8$failList.length) === 0) {
|
|
574
609
|
handleSuccessCallBack('close');
|
|
575
610
|
message.success('关闭工单成功');
|
|
@@ -586,31 +621,31 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
586
621
|
} else {
|
|
587
622
|
message.error((_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : (_res$data9$failList = _res$data9.failList) === null || _res$data9$failList === void 0 ? void 0 : (_res$data9$failList$ = _res$data9$failList[0]) === null || _res$data9$failList$ === void 0 ? void 0 : _res$data9$failList$.failReason);
|
|
588
623
|
}
|
|
589
|
-
|
|
624
|
+
_context7.next = 10;
|
|
590
625
|
break;
|
|
591
626
|
case 7:
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
console.log('关闭工单失败',
|
|
627
|
+
_context7.prev = 7;
|
|
628
|
+
_context7.t0 = _context7["catch"](0);
|
|
629
|
+
console.log('关闭工单失败', _context7.t0);
|
|
595
630
|
case 10:
|
|
596
631
|
case "end":
|
|
597
|
-
return
|
|
632
|
+
return _context7.stop();
|
|
598
633
|
}
|
|
599
|
-
},
|
|
634
|
+
}, _callee7, null, [[0, 7]]);
|
|
600
635
|
}));
|
|
601
636
|
return function handleClose(_x4) {
|
|
602
|
-
return
|
|
637
|
+
return _ref7.apply(this, arguments);
|
|
603
638
|
};
|
|
604
639
|
}();
|
|
605
640
|
// 转交处理人
|
|
606
641
|
var handleForWard = /*#__PURE__*/function () {
|
|
607
|
-
var
|
|
642
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(formData) {
|
|
608
643
|
var _currentNodeDetail$no6, _currentNodeDetail$wo13, _res$data10, _res$data10$failList, res, _res$data11, _res$data11$failList, _res$data11$failList$;
|
|
609
|
-
return _regeneratorRuntime().wrap(function
|
|
610
|
-
while (1) switch (
|
|
644
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
645
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
611
646
|
case 0:
|
|
612
|
-
|
|
613
|
-
|
|
647
|
+
_context8.prev = 0;
|
|
648
|
+
_context8.next = 3;
|
|
614
649
|
return forwardWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
|
|
615
650
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
616
651
|
nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no6 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no6 === void 0 ? void 0 : _currentNodeDetail$no6.id,
|
|
@@ -620,7 +655,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
620
655
|
})
|
|
621
656
|
}));
|
|
622
657
|
case 3:
|
|
623
|
-
res =
|
|
658
|
+
res = _context8.sent;
|
|
624
659
|
if (((_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : (_res$data10$failList = _res$data10.failList) === null || _res$data10$failList === void 0 ? void 0 : _res$data10$failList.length) === 0) {
|
|
625
660
|
handleSuccessCallBack('forward');
|
|
626
661
|
message.success('转交成功');
|
|
@@ -637,31 +672,31 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
637
672
|
} else {
|
|
638
673
|
message.error((_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : (_res$data11$failList = _res$data11.failList) === null || _res$data11$failList === void 0 ? void 0 : (_res$data11$failList$ = _res$data11$failList[0]) === null || _res$data11$failList$ === void 0 ? void 0 : _res$data11$failList$.failReason);
|
|
639
674
|
}
|
|
640
|
-
|
|
675
|
+
_context8.next = 10;
|
|
641
676
|
break;
|
|
642
677
|
case 7:
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
console.log('转交失败',
|
|
678
|
+
_context8.prev = 7;
|
|
679
|
+
_context8.t0 = _context8["catch"](0);
|
|
680
|
+
console.log('转交失败', _context8.t0);
|
|
646
681
|
case 10:
|
|
647
682
|
case "end":
|
|
648
|
-
return
|
|
683
|
+
return _context8.stop();
|
|
649
684
|
}
|
|
650
|
-
},
|
|
685
|
+
}, _callee8, null, [[0, 7]]);
|
|
651
686
|
}));
|
|
652
687
|
return function handleForWard(_x5) {
|
|
653
|
-
return
|
|
688
|
+
return _ref8.apply(this, arguments);
|
|
654
689
|
};
|
|
655
690
|
}();
|
|
656
691
|
// 驳回
|
|
657
692
|
var handleReturnWorkOrder = /*#__PURE__*/function () {
|
|
658
|
-
var
|
|
693
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(formData) {
|
|
659
694
|
var _currentNodeDetail$no7, _currentNodeDetail$wo14, _res$data12, _res$data12$failList, res, _res$data13, _res$data13$failList, _res$data13$failList$;
|
|
660
|
-
return _regeneratorRuntime().wrap(function
|
|
661
|
-
while (1) switch (
|
|
695
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
696
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
662
697
|
case 0:
|
|
663
|
-
|
|
664
|
-
|
|
698
|
+
_context9.prev = 0;
|
|
699
|
+
_context9.next = 3;
|
|
665
700
|
return returnWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
|
|
666
701
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
667
702
|
nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no7 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no7 === void 0 ? void 0 : _currentNodeDetail$no7.id,
|
|
@@ -671,7 +706,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
671
706
|
})
|
|
672
707
|
}));
|
|
673
708
|
case 3:
|
|
674
|
-
res =
|
|
709
|
+
res = _context9.sent;
|
|
675
710
|
if (((_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : (_res$data12$failList = _res$data12.failList) === null || _res$data12$failList === void 0 ? void 0 : _res$data12$failList.length) === 0) {
|
|
676
711
|
handleSuccessCallBack('rejected');
|
|
677
712
|
message.success('驳回成功');
|
|
@@ -688,31 +723,31 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
688
723
|
} else {
|
|
689
724
|
message.error((_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : (_res$data13$failList = _res$data13.failList) === null || _res$data13$failList === void 0 ? void 0 : (_res$data13$failList$ = _res$data13$failList[0]) === null || _res$data13$failList$ === void 0 ? void 0 : _res$data13$failList$.failReason);
|
|
690
725
|
}
|
|
691
|
-
|
|
726
|
+
_context9.next = 10;
|
|
692
727
|
break;
|
|
693
728
|
case 7:
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
console.log('驳回失败',
|
|
729
|
+
_context9.prev = 7;
|
|
730
|
+
_context9.t0 = _context9["catch"](0);
|
|
731
|
+
console.log('驳回失败', _context9.t0);
|
|
697
732
|
case 10:
|
|
698
733
|
case "end":
|
|
699
|
-
return
|
|
734
|
+
return _context9.stop();
|
|
700
735
|
}
|
|
701
|
-
},
|
|
736
|
+
}, _callee9, null, [[0, 7]]);
|
|
702
737
|
}));
|
|
703
738
|
return function handleReturnWorkOrder(_x6) {
|
|
704
|
-
return
|
|
739
|
+
return _ref9.apply(this, arguments);
|
|
705
740
|
};
|
|
706
741
|
}();
|
|
707
742
|
// 撤回
|
|
708
743
|
var handleWithdraw = /*#__PURE__*/function () {
|
|
709
|
-
var
|
|
744
|
+
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(formData) {
|
|
710
745
|
var _currentNodeDetail$no8, _currentNodeDetail$wo15, _res$data14, _res$data14$failList, res, _res$data15, _res$data15$failList, _res$data15$failList$;
|
|
711
|
-
return _regeneratorRuntime().wrap(function
|
|
712
|
-
while (1) switch (
|
|
746
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
747
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
713
748
|
case 0:
|
|
714
|
-
|
|
715
|
-
|
|
749
|
+
_context10.prev = 0;
|
|
750
|
+
_context10.next = 3;
|
|
716
751
|
return withDrawWorkOrder(_objectSpread(_objectSpread({}, formData), {}, {
|
|
717
752
|
backToNodeId: withdrawWorkOrderDetail === null || withdrawWorkOrderDetail === void 0 ? void 0 : withdrawWorkOrderDetail.nodeId,
|
|
718
753
|
operateParams: _objectSpread(_objectSpread({}, operateParams), {}, {
|
|
@@ -723,7 +758,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
723
758
|
})
|
|
724
759
|
}));
|
|
725
760
|
case 3:
|
|
726
|
-
res =
|
|
761
|
+
res = _context10.sent;
|
|
727
762
|
if (((_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : (_res$data14$failList = _res$data14.failList) === null || _res$data14$failList === void 0 ? void 0 : _res$data14$failList.length) === 0) {
|
|
728
763
|
handleSuccessCallBack('withdraw');
|
|
729
764
|
message.success('撤回成功');
|
|
@@ -744,30 +779,30 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
744
779
|
} else {
|
|
745
780
|
message.error((_res$data15 = res.data) === null || _res$data15 === void 0 ? void 0 : (_res$data15$failList = _res$data15.failList) === null || _res$data15$failList === void 0 ? void 0 : (_res$data15$failList$ = _res$data15$failList[0]) === null || _res$data15$failList$ === void 0 ? void 0 : _res$data15$failList$.failReason);
|
|
746
781
|
}
|
|
747
|
-
|
|
782
|
+
_context10.next = 10;
|
|
748
783
|
break;
|
|
749
784
|
case 7:
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
console.log('撤回成功',
|
|
785
|
+
_context10.prev = 7;
|
|
786
|
+
_context10.t0 = _context10["catch"](0);
|
|
787
|
+
console.log('撤回成功', _context10.t0);
|
|
753
788
|
case 10:
|
|
754
789
|
case "end":
|
|
755
|
-
return
|
|
790
|
+
return _context10.stop();
|
|
756
791
|
}
|
|
757
|
-
},
|
|
792
|
+
}, _callee10, null, [[0, 7]]);
|
|
758
793
|
}));
|
|
759
794
|
return function handleWithdraw(_x7) {
|
|
760
|
-
return
|
|
795
|
+
return _ref10.apply(this, arguments);
|
|
761
796
|
};
|
|
762
797
|
}();
|
|
763
798
|
//催单
|
|
764
799
|
var handleReminder = /*#__PURE__*/function () {
|
|
765
|
-
var
|
|
800
|
+
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(type) {
|
|
766
801
|
var _currentNodeDetail$wo16, _currentNodeDetail$wo17, _currentNodeDetail$no9, _currentNodeDetail$wo18, _currentNodeDetail$wo19, _currentNodeDetail$wo20, _currentNodeDetail$wo21, _currentNodeDetail$no10, _currentNodeDetail$wo22, api, flowTags, newFlowTags, params, res;
|
|
767
|
-
return _regeneratorRuntime().wrap(function
|
|
768
|
-
while (1) switch (
|
|
802
|
+
return _regeneratorRuntime().wrap(function _callee11$(_context11) {
|
|
803
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
769
804
|
case 0:
|
|
770
|
-
|
|
805
|
+
_context11.prev = 0;
|
|
771
806
|
dispatch(setLoading(true));
|
|
772
807
|
api = type === 'reminder' ? reminder : cancelReminder;
|
|
773
808
|
flowTags = JSON.parse((currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo16 = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo16 === void 0 ? void 0 : (_currentNodeDetail$wo17 = _currentNodeDetail$wo16.jsonMap) === null || _currentNodeDetail$wo17 === void 0 ? void 0 : _currentNodeDetail$wo17.flowTags) || '[]');
|
|
@@ -798,10 +833,10 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
798
833
|
}
|
|
799
834
|
}; // console.log(params);
|
|
800
835
|
// return;
|
|
801
|
-
|
|
836
|
+
_context11.next = 8;
|
|
802
837
|
return api(params);
|
|
803
838
|
case 8:
|
|
804
|
-
res =
|
|
839
|
+
res = _context11.sent;
|
|
805
840
|
if (res.success) {
|
|
806
841
|
handleSuccessCallBack(type);
|
|
807
842
|
message.success(type === 'reminder' ? '催单成功' : '取消催单成功');
|
|
@@ -821,24 +856,24 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
821
856
|
} else {
|
|
822
857
|
message.error(res.message);
|
|
823
858
|
}
|
|
824
|
-
|
|
859
|
+
_context11.next = 15;
|
|
825
860
|
break;
|
|
826
861
|
case 12:
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
console.log(type === 'reminder' ? '催单成功' : '取消催单成功',
|
|
862
|
+
_context11.prev = 12;
|
|
863
|
+
_context11.t0 = _context11["catch"](0);
|
|
864
|
+
console.log(type === 'reminder' ? '催单成功' : '取消催单成功', _context11.t0);
|
|
830
865
|
case 15:
|
|
831
|
-
|
|
866
|
+
_context11.prev = 15;
|
|
832
867
|
dispatch(setLoading(false));
|
|
833
|
-
return
|
|
868
|
+
return _context11.finish(15);
|
|
834
869
|
case 18:
|
|
835
870
|
case "end":
|
|
836
|
-
return
|
|
871
|
+
return _context11.stop();
|
|
837
872
|
}
|
|
838
|
-
},
|
|
873
|
+
}, _callee11, null, [[0, 12, 15, 18]]);
|
|
839
874
|
}));
|
|
840
875
|
return function handleReminder(_x8) {
|
|
841
|
-
return
|
|
876
|
+
return _ref11.apply(this, arguments);
|
|
842
877
|
};
|
|
843
878
|
}();
|
|
844
879
|
|
|
@@ -951,6 +986,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
951
986
|
}) === 'artificial' && (!(currentNodeDetail !== null && currentNodeDetail !== void 0 && currentNodeDetail.workOrder) || isCurrentNodeHandler) && !readonly && /*#__PURE__*/React.createElement("div", {
|
|
952
987
|
className: "footer"
|
|
953
988
|
}, /*#__PURE__*/React.createElement(ActionList, {
|
|
989
|
+
flowType: flowTemplateType,
|
|
954
990
|
flowStatus: flowStatus,
|
|
955
991
|
nodeType: nodeType,
|
|
956
992
|
handleAction: handleAction,
|
|
@@ -978,6 +1014,11 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
978
1014
|
handleSubmitRemark: handleSubmitRemark
|
|
979
1015
|
}), /*#__PURE__*/React.createElement(WithdrawModal, {
|
|
980
1016
|
handleWithdraw: handleWithdraw
|
|
1017
|
+
}), remindVisible && /*#__PURE__*/React.createElement(SubmitRemindModal, {
|
|
1018
|
+
onCallback: function onCallback() {
|
|
1019
|
+
handleSubmit();
|
|
1020
|
+
setRemindVisible(false);
|
|
1021
|
+
}
|
|
981
1022
|
})));
|
|
982
1023
|
};
|
|
983
1024
|
var ProviderWrap = function ProviderWrap(props) {
|
|
@@ -76,6 +76,14 @@ var getCookie = function getCookie() {
|
|
|
76
76
|
var removeCookie = function removeCookie() {
|
|
77
77
|
localStorage.removeItem('kmkf_kmgd_cookie');
|
|
78
78
|
};
|
|
79
|
+
//设置工单提交提醒状态
|
|
80
|
+
var setRemind = function setRemind() {
|
|
81
|
+
localStorage.setItem('kmkf_kmgd_remind', 'true');
|
|
82
|
+
};
|
|
83
|
+
//获取工单提交提醒状态
|
|
84
|
+
var getRemind = function getRemind() {
|
|
85
|
+
return localStorage.getItem('kmkf_kmgd_remind');
|
|
86
|
+
};
|
|
79
87
|
export default {
|
|
80
88
|
setAddressData: setAddressData,
|
|
81
89
|
getAddressData: getAddressData,
|
|
@@ -94,5 +102,7 @@ export default {
|
|
|
94
102
|
removeHost: removeHost,
|
|
95
103
|
setCookie: setCookie,
|
|
96
104
|
getCookie: getCookie,
|
|
97
|
-
removeCookie: removeCookie
|
|
105
|
+
removeCookie: removeCookie,
|
|
106
|
+
setRemind: setRemind,
|
|
107
|
+
getRemind: getRemind
|
|
98
108
|
};
|
|
@@ -10,6 +10,6 @@ export declare const setFlowList: import("@reduxjs/toolkit").ActionCreatorWithPa
|
|
|
10
10
|
lastWorkOrderDetail: any;
|
|
11
11
|
}, "flowTemplateDetail/setCurrentTradeIdWOrkOrderNumber">, setFlowTemplateId: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "flowTemplateDetail/setFlowTemplateId">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "flowTemplateDetail/setLoading">, setCurrentFlowAllShowHideRules: import("@reduxjs/toolkit").ActionCreatorWithPayload<CurrentFlowShowHideRules, "flowTemplateDetail/setCurrentFlowAllShowHideRules">, setClearStore: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<undefined, "flowTemplateDetail/setClearStore">, setWithdrawWorkOrderDetail: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
12
12
|
nodeId: string;
|
|
13
|
-
}, "flowTemplateDetail/setWithdrawWorkOrderDetail">;
|
|
13
|
+
}, "flowTemplateDetail/setWithdrawWorkOrderDetail">, setFlowTemplateType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "flowTemplateDetail/setFlowTemplateType">;
|
|
14
14
|
declare const _default: import("redux").Reducer<FlowTemplateDetailState, import("redux").AnyAction>;
|
|
15
15
|
export default _default;
|
|
@@ -39,12 +39,13 @@ export var initialState = {
|
|
|
39
39
|
nodeId: ''
|
|
40
40
|
},
|
|
41
41
|
tid: '',
|
|
42
|
-
shopUniqueKey: ''
|
|
42
|
+
shopUniqueKey: '',
|
|
43
|
+
flowTemplateType: ''
|
|
43
44
|
};
|
|
44
45
|
export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
45
46
|
return /*#__PURE__*/function () {
|
|
46
47
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dispatch) {
|
|
47
|
-
var res, _res$data, _res$data$flowRecordL, _res$data2, _res$data2$currentNod, _res$data2$currentNod2, _last, _res$
|
|
48
|
+
var res, _res$data, _res$data$flowRecordL, _res$data2, _res$data2$currentNod, _res$data2$currentNod2, _last, _res$data14, _currentNodeDetail$wo, _currentNodeDetail$no, _res$data15, _currentNodeDetail$no2, recordList, _recordList, currentNodeDetail, handlerList, assistants, _res$data16, _currentNodeDetail$no3, assistantRes, _assistantRes$data;
|
|
48
49
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
49
50
|
while (1) switch (_context.prev = _context.next) {
|
|
50
51
|
case 0:
|
|
@@ -78,7 +79,7 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
|
78
79
|
recordList = (_recordList = recordList) === null || _recordList === void 0 ? void 0 : _recordList.slice(0, -1);
|
|
79
80
|
}
|
|
80
81
|
batch(function () {
|
|
81
|
-
var _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data11, _res$data12;
|
|
82
|
+
var _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8, _res$data9, _res$data10, _res$data11, _res$data12, _res$data13;
|
|
82
83
|
dispatch(setFlowList(recordList || []));
|
|
83
84
|
dispatch(setTid((res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.tid) || ''));
|
|
84
85
|
dispatch(setShopUniqueKey((res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.shopUniqueKey) || ''));
|
|
@@ -91,26 +92,27 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
|
91
92
|
flowWorkOrderUpdateTime: res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.flowWorkOrderUpdateTime,
|
|
92
93
|
workOrderUpdateTime: res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.workOrderUpdateTime
|
|
93
94
|
}));
|
|
94
|
-
dispatch(
|
|
95
|
-
dispatch(
|
|
95
|
+
dispatch(setFlowTemplateType(res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.flowTemplateType));
|
|
96
|
+
dispatch(setFlowStatus(res === null || res === void 0 ? void 0 : (_res$data11 = res.data) === null || _res$data11 === void 0 ? void 0 : _res$data11.flowStatus));
|
|
97
|
+
dispatch(setFlowTemplateId((res === null || res === void 0 ? void 0 : (_res$data12 = res.data) === null || _res$data12 === void 0 ? void 0 : _res$data12.flowTemplateId) || ''));
|
|
96
98
|
dispatch(setCurrentFlowAllShowHideRules({
|
|
97
|
-
allShowHideRules: res === null || res === void 0 ? void 0 : (_res$
|
|
99
|
+
allShowHideRules: res === null || res === void 0 ? void 0 : (_res$data13 = res.data) === null || _res$data13 === void 0 ? void 0 : _res$data13.allShowHideRules
|
|
98
100
|
}));
|
|
99
101
|
});
|
|
100
102
|
// 如果
|
|
101
|
-
currentNodeDetail = res === null || res === void 0 ? void 0 : (_res$
|
|
103
|
+
currentNodeDetail = res === null || res === void 0 ? void 0 : (_res$data14 = res.data) === null || _res$data14 === void 0 ? void 0 : _res$data14.currentNodeDetail;
|
|
102
104
|
handlerList = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$wo = currentNodeDetail.workOrder) === null || _currentNodeDetail$wo === void 0 ? void 0 : _currentNodeDetail$wo.handlerList;
|
|
103
105
|
assistants = currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no === void 0 ? void 0 : _currentNodeDetail$no.assistants;
|
|
104
106
|
if (!(Array.isArray(handlerList) && handlerList.length &&
|
|
105
107
|
// 有处理人
|
|
106
108
|
!(assistants !== null && assistants !== void 0 && assistants.isAllStaff) && // 不是所有人都能处理,查询能够处理的人
|
|
107
|
-
res !== null && res !== void 0 && (_res$
|
|
109
|
+
res !== null && res !== void 0 && (_res$data15 = res.data) !== null && _res$data15 !== void 0 && _res$data15.flowTemplateId && currentNodeDetail !== null && currentNodeDetail !== void 0 && (_currentNodeDetail$no2 = currentNodeDetail.nodeInfo) !== null && _currentNodeDetail$no2 !== void 0 && _currentNodeDetail$no2.id)) {
|
|
108
110
|
_context.next = 17;
|
|
109
111
|
break;
|
|
110
112
|
}
|
|
111
113
|
_context.next = 15;
|
|
112
114
|
return queryMultiNodeAssistantInfo([{
|
|
113
|
-
flowTemplateId: res === null || res === void 0 ? void 0 : (_res$
|
|
115
|
+
flowTemplateId: res === null || res === void 0 ? void 0 : (_res$data16 = res.data) === null || _res$data16 === void 0 ? void 0 : _res$data16.flowTemplateId,
|
|
114
116
|
currentNodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no3 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no3 === void 0 ? void 0 : _currentNodeDetail$no3.id
|
|
115
117
|
}]);
|
|
116
118
|
case 15:
|
|
@@ -143,7 +145,7 @@ export var fetchPanelInfo = function fetchPanelInfo(params, options) {
|
|
|
143
145
|
export var fetchAllFlowOperateRecord = function fetchAllFlowOperateRecord(params) {
|
|
144
146
|
return /*#__PURE__*/function () {
|
|
145
147
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(dispatch) {
|
|
146
|
-
var res, _res$
|
|
148
|
+
var res, _res$data17, list;
|
|
147
149
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
148
150
|
while (1) switch (_context2.prev = _context2.next) {
|
|
149
151
|
case 0:
|
|
@@ -154,7 +156,7 @@ export var fetchAllFlowOperateRecord = function fetchAllFlowOperateRecord(params
|
|
|
154
156
|
case 4:
|
|
155
157
|
res = _context2.sent;
|
|
156
158
|
if (res.success) {
|
|
157
|
-
list = res === null || res === void 0 ? void 0 : (_res$
|
|
159
|
+
list = res === null || res === void 0 ? void 0 : (_res$data17 = res.data) === null || _res$data17 === void 0 ? void 0 : _res$data17.map(function (item) {
|
|
158
160
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
159
161
|
time: (item === null || item === void 0 ? void 0 : item.created) || '',
|
|
160
162
|
operator: (item === null || item === void 0 ? void 0 : item.operator) || '',
|
|
@@ -189,7 +191,7 @@ export var fetchAllFlowOperateRecord = function fetchAllFlowOperateRecord(params
|
|
|
189
191
|
export var fetchCurrentTradeIdLinkWorkOrder = function fetchCurrentTradeIdLinkWorkOrder(params) {
|
|
190
192
|
return /*#__PURE__*/function () {
|
|
191
193
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(dispatch) {
|
|
192
|
-
var res, _res$
|
|
194
|
+
var res, _res$data18, _res$data19, _res$data19$list, total, detail;
|
|
193
195
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
194
196
|
while (1) switch (_context3.prev = _context3.next) {
|
|
195
197
|
case 0:
|
|
@@ -200,8 +202,8 @@ export var fetchCurrentTradeIdLinkWorkOrder = function fetchCurrentTradeIdLinkWo
|
|
|
200
202
|
case 4:
|
|
201
203
|
res = _context3.sent;
|
|
202
204
|
if (res.success) {
|
|
203
|
-
total = (res === null || res === void 0 ? void 0 : (_res$
|
|
204
|
-
detail = res === null || res === void 0 ? void 0 : (_res$
|
|
205
|
+
total = (res === null || res === void 0 ? void 0 : (_res$data18 = res.data) === null || _res$data18 === void 0 ? void 0 : _res$data18.total) || 0;
|
|
206
|
+
detail = res === null || res === void 0 ? void 0 : (_res$data19 = res.data) === null || _res$data19 === void 0 ? void 0 : (_res$data19$list = _res$data19.list) === null || _res$data19$list === void 0 ? void 0 : _res$data19$list[0];
|
|
205
207
|
dispatch(setCurrentTradeIdWOrkOrderNumber({
|
|
206
208
|
total: total,
|
|
207
209
|
lastWorkOrderDetail: detail
|
|
@@ -307,6 +309,10 @@ var slice = createSlice({
|
|
|
307
309
|
// @ts-ignore
|
|
308
310
|
state[key] = initialState[key];
|
|
309
311
|
});
|
|
312
|
+
},
|
|
313
|
+
setFlowTemplateType: function setFlowTemplateType(state, _ref22) {
|
|
314
|
+
var payload = _ref22.payload;
|
|
315
|
+
state.flowTemplateType = payload;
|
|
310
316
|
}
|
|
311
317
|
}
|
|
312
318
|
});
|
|
@@ -328,6 +334,7 @@ var _slice$actions = slice.actions,
|
|
|
328
334
|
setLoading = _slice$actions.setLoading,
|
|
329
335
|
setCurrentFlowAllShowHideRules = _slice$actions.setCurrentFlowAllShowHideRules,
|
|
330
336
|
setClearStore = _slice$actions.setClearStore,
|
|
331
|
-
setWithdrawWorkOrderDetail = _slice$actions.setWithdrawWorkOrderDetail
|
|
332
|
-
|
|
337
|
+
setWithdrawWorkOrderDetail = _slice$actions.setWithdrawWorkOrderDetail,
|
|
338
|
+
setFlowTemplateType = _slice$actions.setFlowTemplateType;
|
|
339
|
+
export { setFlowList, setNodeAssistantInfo, setTid, setShopUniqueKey, setRemarkList, setCurrentNode, setAction, setVisibleRemarkList, setPlat, setOperateParams, setAddRemarkVisible, setFlowStatus, setCurrentTradeIdWOrkOrderNumber, setFlowTemplateId, setLoading, setCurrentFlowAllShowHideRules, setClearStore, setWithdrawWorkOrderDetail, setFlowTemplateType };
|
|
333
340
|
export default slice.reducer;
|
|
@@ -684,3 +684,17 @@ export declare const selectWithDrawOrder: ((state: {
|
|
|
684
684
|
}> & {
|
|
685
685
|
clearCache: () => void;
|
|
686
686
|
};
|
|
687
|
+
export declare const selectFlowTemplateType: ((state: {
|
|
688
|
+
login: import("../login").GlobalState;
|
|
689
|
+
global: import("../global").GlobalState;
|
|
690
|
+
workOrder: import("../workOrder").WorkOrderState;
|
|
691
|
+
customizeWorkOrder: import("../customizeWorkOrder/types").CustomizeWorkOrderState;
|
|
692
|
+
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
693
|
+
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
694
|
+
logicFlow: import("../logicFlow/types").LogicFlowState;
|
|
695
|
+
flowWOrkOrderDetail: import("./types").FlowTemplateDetailState;
|
|
696
|
+
}) => import("./types").FlowType) & import("reselect").OutputSelectorFields<(args_0: import("./types").FlowTemplateDetailState) => import("./types").FlowType, {
|
|
697
|
+
clearCache: () => void;
|
|
698
|
+
}> & {
|
|
699
|
+
clearCache: () => void;
|
|
700
|
+
};
|
|
@@ -54,4 +54,7 @@ export var selectCurrentFlowAllShowHideRules = createSelector([selectSlice], fun
|
|
|
54
54
|
});
|
|
55
55
|
export var selectWithDrawOrder = createSelector([selectSlice], function (state) {
|
|
56
56
|
return state.withdrawWorkOrderDetail;
|
|
57
|
+
});
|
|
58
|
+
export var selectFlowTemplateType = createSelector([selectSlice], function (state) {
|
|
59
|
+
return state.flowTemplateType;
|
|
57
60
|
});
|
|
@@ -59,6 +59,7 @@ export interface FlowTemplateDetailState {
|
|
|
59
59
|
};
|
|
60
60
|
tid: string;
|
|
61
61
|
shopUniqueKey: string;
|
|
62
|
+
flowTemplateType: FlowType;
|
|
62
63
|
}
|
|
63
64
|
export interface QyFlowPanelInfoRequest {
|
|
64
65
|
/**
|
|
@@ -90,6 +91,10 @@ export interface QyFlowPanelInfoResponse {
|
|
|
90
91
|
* 流程模版版本 - 前端帮忙传一下,在某些操作场景下就不用再查数据库了
|
|
91
92
|
*/
|
|
92
93
|
flowVersion?: number;
|
|
94
|
+
/**
|
|
95
|
+
* 流程模版类型 - 前端帮忙传一下,在某些操作场景下就不用再查数据库了
|
|
96
|
+
*/
|
|
97
|
+
flowTemplateType?: FlowType;
|
|
93
98
|
/**
|
|
94
99
|
* 流程工单更新时间 - 即流程工单的 modified 字段传回来即可,必传
|
|
95
100
|
*/
|
|
@@ -869,6 +874,10 @@ export declare enum FlowStatus {
|
|
|
869
874
|
COMPLETED = "COMPLETED",
|
|
870
875
|
CLOSE = "CLOSED"
|
|
871
876
|
}
|
|
877
|
+
export declare enum FlowType {
|
|
878
|
+
SINGLE_PAGE = "SINGLE_PAGE",
|
|
879
|
+
MULTI_NODE = "MULTI_NODE"
|
|
880
|
+
}
|
|
872
881
|
export interface QueryAllFlowOperateRecordRequest {
|
|
873
882
|
flowWorkOrderId: string;
|
|
874
883
|
flowTemplateId: string;
|
|
@@ -36,10 +36,17 @@ export var NodeStatus;
|
|
|
36
36
|
NodeStatus["CLOSE"] = "CLOSE";
|
|
37
37
|
})(NodeStatus || (NodeStatus = {}));
|
|
38
38
|
export var FlowStatus;
|
|
39
|
+
|
|
40
|
+
// 工单类型
|
|
39
41
|
(function (FlowStatus) {
|
|
40
42
|
FlowStatus["NON_START"] = "NON_START";
|
|
41
43
|
FlowStatus["PROCESSING"] = "PROCESSING";
|
|
42
44
|
FlowStatus["STOPPING"] = "STOPPING";
|
|
43
45
|
FlowStatus["COMPLETED"] = "COMPLETED";
|
|
44
46
|
FlowStatus["CLOSE"] = "CLOSED";
|
|
45
|
-
})(FlowStatus || (FlowStatus = {}));
|
|
47
|
+
})(FlowStatus || (FlowStatus = {}));
|
|
48
|
+
export var FlowType;
|
|
49
|
+
(function (FlowType) {
|
|
50
|
+
FlowType["SINGLE_PAGE"] = "SINGLE_PAGE";
|
|
51
|
+
FlowType["MULTI_NODE"] = "MULTI_NODE";
|
|
52
|
+
})(FlowType || (FlowType = {}));
|
|
@@ -6,7 +6,6 @@ export declare const selectFlowList: ((state: {
|
|
|
6
6
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
7
7
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
8
8
|
logicFlow: import("./types").LogicFlowState;
|
|
9
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
10
9
|
}) => import("./types").LogicFlow[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").LogicFlow[], {
|
|
11
10
|
clearCache: () => void;
|
|
12
11
|
}> & {
|
|
@@ -20,7 +19,6 @@ export declare const selectGroupFlowList: ((state: {
|
|
|
20
19
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
21
20
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
22
21
|
logicFlow: import("./types").LogicFlowState;
|
|
23
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
24
22
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
25
23
|
clearCache: () => void;
|
|
26
24
|
}> & {
|
|
@@ -34,7 +32,6 @@ export declare const selectFlowTemplateGroupWorkOrderTemplateList: ((state: {
|
|
|
34
32
|
paymentWorkOrder: import("../paymentWorkOrder/types").PaymentWorkOrderState;
|
|
35
33
|
singleWorkOrder: import("../singleShopWorkOrder/types").SingleWorkOrderState;
|
|
36
34
|
logicFlow: import("./types").LogicFlowState;
|
|
37
|
-
flowWOrkOrderDetail: import("../flowTemplateDetail/types").FlowTemplateDetailState;
|
|
38
35
|
}) => import("./types").Option[]) & import("reselect").OutputSelectorFields<(args_0: import("./types").LogicFlowState) => import("./types").Option[], {
|
|
39
36
|
clearCache: () => void;
|
|
40
37
|
}> & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4-alpha.0",
|
|
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.19.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.19.0",
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.19.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.19.4-alpha.0",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.19.4-alpha.0",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.19.4-alpha.0",
|
|
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": "9167e39d58f95aee56df46fabfc9f7bc7e2f2667",
|
|
78
78
|
"gitHooks": {
|
|
79
79
|
"pre-commit": "lint-staged"
|
|
80
80
|
}
|