@kmkf-fe-packages/kmkf-work-order-service-component 0.11.0-alpha.7 → 0.11.0-alpha.8
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/ForWardModal/index.d.ts +2 -2
- package/dist/esm/FlowTemplateDetail/components/ForWardModal/index.js +7 -7
- package/dist/esm/FlowTemplateDetail/index.js +1 -1
- package/dist/esm/model/flowTemplateDetail/api.d.ts +9 -0
- package/dist/esm/model/flowTemplateDetail/api.js +8 -0
- package/package.json +5 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare type ForWardModalProps = {
|
|
3
|
-
|
|
3
|
+
flowTemplateId: string;
|
|
4
4
|
nodeId: string;
|
|
5
5
|
handleForWard: (p: any) => void;
|
|
6
6
|
};
|
|
7
|
-
declare const ForWardModal: ({
|
|
7
|
+
declare const ForWardModal: ({ flowTemplateId, nodeId, handleForWard }: ForWardModalProps) => React.JSX.Element;
|
|
8
8
|
export default ForWardModal;
|
|
@@ -12,13 +12,13 @@ import React, { useEffect } from 'react';
|
|
|
12
12
|
import { Modal, Form, Select, Input, Spin } from 'antd';
|
|
13
13
|
import { useSelector, useDispatch } from 'react-redux';
|
|
14
14
|
import { useRequest } from 'ahooks';
|
|
15
|
-
import {
|
|
15
|
+
import { queryMultiNodeAssistantInfo } from "../../../model/flowTemplateDetail/api";
|
|
16
16
|
import { selectCurrentAction } from "../../../model/flowTemplateDetail/selector";
|
|
17
17
|
import { setAction } from "../../../model/flowTemplateDetail";
|
|
18
18
|
var TextArea = Input.TextArea;
|
|
19
19
|
var ForWardModal = function ForWardModal(_ref) {
|
|
20
20
|
var _data$data, _data$data$userList;
|
|
21
|
-
var
|
|
21
|
+
var flowTemplateId = _ref.flowTemplateId,
|
|
22
22
|
nodeId = _ref.nodeId,
|
|
23
23
|
handleForWard = _ref.handleForWard;
|
|
24
24
|
var _Form$useForm = Form.useForm(),
|
|
@@ -31,10 +31,10 @@ var ForWardModal = function ForWardModal(_ref) {
|
|
|
31
31
|
form.resetFields();
|
|
32
32
|
};
|
|
33
33
|
var _useRequest = useRequest(function () {
|
|
34
|
-
return
|
|
35
|
-
|
|
34
|
+
return queryMultiNodeAssistantInfo([{
|
|
35
|
+
flowTemplateId: flowTemplateId,
|
|
36
36
|
currentNodeId: nodeId
|
|
37
|
-
});
|
|
37
|
+
}]);
|
|
38
38
|
}, {
|
|
39
39
|
manual: true
|
|
40
40
|
}),
|
|
@@ -89,7 +89,7 @@ var ForWardModal = function ForWardModal(_ref) {
|
|
|
89
89
|
name: "appointAssistantStaffIds",
|
|
90
90
|
rules: [{
|
|
91
91
|
required: true,
|
|
92
|
-
message:
|
|
92
|
+
message: '请选择执行人'
|
|
93
93
|
}]
|
|
94
94
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
95
95
|
options: userList,
|
|
@@ -100,7 +100,7 @@ var ForWardModal = function ForWardModal(_ref) {
|
|
|
100
100
|
name: "remark",
|
|
101
101
|
rules: [{
|
|
102
102
|
required: true,
|
|
103
|
-
message:
|
|
103
|
+
message: '请输入备注内容'
|
|
104
104
|
}]
|
|
105
105
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
106
106
|
rows: 4,
|
|
@@ -823,7 +823,7 @@ var FlowTemplateDetail = function FlowTemplateDetail(props) {
|
|
|
823
823
|
form: form,
|
|
824
824
|
orderRemarkObj: orderRemarkObj
|
|
825
825
|
}), /*#__PURE__*/React.createElement(RemarkListModal, null), /*#__PURE__*/React.createElement(ForWardModal, {
|
|
826
|
-
|
|
826
|
+
flowTemplateId: flowTemplateId,
|
|
827
827
|
nodeId: currentNodeDetail === null || currentNodeDetail === void 0 ? void 0 : (_currentNodeDetail$no19 = currentNodeDetail.nodeInfo) === null || _currentNodeDetail$no19 === void 0 ? void 0 : _currentNodeDetail$no19.id,
|
|
828
828
|
handleForWard: handleForWard
|
|
829
829
|
}), /*#__PURE__*/React.createElement(StopModal, {
|
|
@@ -31,6 +31,15 @@ export declare const querySubmitter: (data: {
|
|
|
31
31
|
name: string;
|
|
32
32
|
}>;
|
|
33
33
|
}>>;
|
|
34
|
+
export declare const queryMultiNodeAssistantInfo: (data: {
|
|
35
|
+
flowTemplateId: string;
|
|
36
|
+
currentNodeId: string;
|
|
37
|
+
}[]) => Promise<serverProps<{
|
|
38
|
+
userList: Array<{
|
|
39
|
+
id: string;
|
|
40
|
+
name: string;
|
|
41
|
+
}>;
|
|
42
|
+
}>>;
|
|
34
43
|
export declare const forwardWorkOrder: (data: any) => Promise<serverProps<{
|
|
35
44
|
failList: Array<{
|
|
36
45
|
failReason: string;
|
|
@@ -95,6 +95,14 @@ export var querySubmitter = function querySubmitter(data) {
|
|
|
95
95
|
data: data
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
|
+
//批量查询转交人
|
|
99
|
+
export var queryMultiNodeAssistantInfo = function queryMultiNodeAssistantInfo(data) {
|
|
100
|
+
return request({
|
|
101
|
+
url: '/qy/flow/queryMultiNodeAssistantInfo',
|
|
102
|
+
method: 'post',
|
|
103
|
+
data: data
|
|
104
|
+
});
|
|
105
|
+
};
|
|
98
106
|
|
|
99
107
|
// 转交
|
|
100
108
|
export var forwardWorkOrder = function forwardWorkOrder(data) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-work-order-service-component",
|
|
3
|
-
"version": "0.11.0-alpha.
|
|
3
|
+
"version": "0.11.0-alpha.8",
|
|
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.11.0-alpha.
|
|
36
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.
|
|
37
|
-
"@kmkf-fe-packages/services-components": "^0.11.0-alpha.
|
|
35
|
+
"@kmkf-fe-packages/basic-components": "^0.11.0-alpha.8",
|
|
36
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.8",
|
|
37
|
+
"@kmkf-fe-packages/services-components": "^0.11.0-alpha.8",
|
|
38
38
|
"@reduxjs/toolkit": "^1.8.5",
|
|
39
39
|
"ahooks": "^3.7.4",
|
|
40
40
|
"copy-to-clipboard": "^3.3.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"publishConfig": {
|
|
73
73
|
"access": "public"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "5157803be30a86d0fe89ab8da2fe2ccb6bda63df",
|
|
76
76
|
"gitHooks": {
|
|
77
77
|
"pre-commit": "lint-staged"
|
|
78
78
|
}
|