11import React from "react" ;
22import { Button , Divider , Form , message , Modal , Row , Space , Tabs } from "antd" ;
33import { 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" ;
512import 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}
0 commit comments