Skip to content

Commit 7fee9cb

Browse files
committed
1 parent ed1e2e2 commit 7fee9cb

File tree

3 files changed

+51
-3
lines changed

3 files changed

+51
-3
lines changed

admin-ui/src/api/flow.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export async function postponed(body:any) {
5454
return post('/api/cmd/flowRecord/postponed', body);
5555
}
5656

57+
export async function transfer(body:any) {
58+
return post('/api/cmd/flowRecord/transfer', body);
59+
}
60+
5761

5862
// 待办中心控制
5963

admin-ui/src/components/Flow/view/FlowView.tsx

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import React from "react";
22
import {Button, Divider, Form, message, Modal, Row, Space, Tabs} from "antd";
33
import {detail, postponed, recall, saveFlow, submitFlow} from "@/api/flow";
4-
import {ModalForm, ProDescriptions, ProForm, ProFormDigit, ProFormTextArea} from "@ant-design/pro-components";
4+
import {
5+
ModalForm,
6+
ProDescriptions,
7+
ProForm,
8+
ProFormDigit,
9+
ProFormText,
10+
ProFormTextArea
11+
} from "@ant-design/pro-components";
512
import moment from "moment";
613

714

@@ -24,6 +31,7 @@ const FlowView: React.FC<FlowViewProps> = (props) => {
2431
const [data, setData] = React.useState<any>(null);
2532

2633
const [postponedVisible, setPostponedVisible] = React.useState(false);
34+
const [transferVisible,setTransferVisible] = React.useState(false);
2735

2836
const [viewForm] = Form.useForm();
2937

@@ -213,6 +221,9 @@ const FlowView: React.FC<FlowViewProps> = (props) => {
213221
{!props.review && (
214222
<Button
215223
type={"primary"}
224+
onClick={()=>{
225+
setTransferVisible(true);
226+
}}
216227
>转办</Button>
217228
)}
218229

@@ -409,7 +420,6 @@ const FlowView: React.FC<FlowViewProps> = (props) => {
409420
</>
410421
)}
411422

412-
413423
<ModalForm
414424
title={"延期调整"}
415425
open={postponedVisible}
@@ -439,6 +449,41 @@ const FlowView: React.FC<FlowViewProps> = (props) => {
439449
</ModalForm>
440450

441451

452+
<ModalForm
453+
title={"延期人员选择"}
454+
open={transferVisible}
455+
modalProps={{
456+
onCancel: () => {
457+
setTransferVisible(false);
458+
},
459+
onClose: () => {
460+
setTransferVisible(false);
461+
}
462+
}}
463+
onFinish={async (values) => {
464+
console.log(values);
465+
}}
466+
>
467+
<ProFormText
468+
name={"user"}
469+
label={"转交人员"}
470+
fieldProps={{
471+
addonAfter: (
472+
<a onClick={()=>{
473+
console.log('选人员');
474+
}}>选人员</a>
475+
)
476+
}}
477+
rules={[
478+
{
479+
required: true,
480+
message: "请输入转交人员"
481+
}
482+
]}
483+
/>
484+
</ModalForm>
485+
486+
442487
</Modal>
443488
)
444489
}

admin-ui/src/pages/flow/record/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ const FlowRecordPage = () => {
137137
}}
138138
>办理</a>,
139139
<a>催办</a>,
140-
<a>延期</a>,
141140
]
142141
}
143142
}

0 commit comments

Comments
 (0)