|  | @@ -35,33 +35,22 @@ export enum LeftMenuEnum {
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  export const menuOptions = [{ label: '预算业务审批', value: LeftMenuEnum.BUDGET }]
 |  |  export const menuOptions = [{ label: '预算业务审批', value: LeftMenuEnum.BUDGET }]
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -export enum InstitutionEnum {
 |  | 
 | 
												
													
														
															|  | -  RECEIVER = 'receiver', // 收件员
 |  | 
 | 
												
													
														
															|  | -  FGLEADER = 'fgLeader', // 分管领导
 |  | 
 | 
												
													
														
															|  | -  ZXLEADER = 'zxLeader', // 中心领导
 |  | 
 | 
												
													
														
															|  | -  POST = 'post', // 发文
 |  | 
 | 
												
													
														
															|  | -  ARCHIVE = 'archive' // 归档
 |  | 
 | 
												
													
														
															|  | -}
 |  | 
 | 
												
													
														
															|  | -
 |  | 
 | 
												
													
														
															|  | -type ProcessUserProps = {
 |  | 
 | 
												
													
														
															|  | -  name: Nullable<string>
 |  | 
 | 
												
													
														
															|  | -  organizationListNew: API.OrganizationalStructureListItem[]
 |  | 
 | 
												
													
														
															|  | 
 |  | +type iProcessProps = {
 | 
												
													
														
															|  | 
 |  | +  activeKey: LeftMenuEnum
 | 
												
													
														
															|  |    approvalAccountDetail: API.ApprovalAccountDetail[]
 |  |    approvalAccountDetail: API.ApprovalAccountDetail[]
 | 
												
													
														
															|  |  }
 |  |  }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -const ProcessUser = props => {
 |  | 
 | 
												
													
														
															|  | 
 |  | +const Process: React.FC = props => {
 | 
												
													
														
															|  |    const { institutionList } = props
 |  |    const { institutionList } = props
 | 
												
													
														
															|  |    const dispatch = useDispatch()
 |  |    const dispatch = useDispatch()
 | 
												
													
														
															|  | -  const [state, setState] = useState<ProcessUserProps>({
 |  | 
 | 
												
													
														
															|  | 
 |  | +  const [state, setState] = useState<iProcessProps>({
 | 
												
													
														
															|  |      activeKey: LeftMenuEnum.BUDGET,
 |  |      activeKey: LeftMenuEnum.BUDGET,
 | 
												
													
														
															|  | -    name: null,
 |  | 
 | 
												
													
														
															|  | -    organizationListNew: [],
 |  | 
 | 
												
													
														
															|  | -    approvalAccountDetail: []
 |  | 
 | 
												
													
														
															|  | 
 |  | +    approvalAccountDetail: null
 | 
												
													
														
															|  |    })
 |  |    })
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -  const { run: tryApprovalAccountDetail } = useRequest(queryApprovalAccountDetail, {
 |  | 
 | 
												
													
														
															|  | -    manual: true,
 |  | 
 | 
												
													
														
															|  | -    onSuccess: (result: API.ApprovalAccountDetail[]) => {
 |  | 
 | 
												
													
														
															|  | 
 |  | +  const {} = useRequest(queryApprovalAccountDetail, {
 | 
												
													
														
															|  | 
 |  | +    // manual: true,
 | 
												
													
														
															|  | 
 |  | +    onSuccess: (result: API.ApprovalAccountDetail) => {
 | 
												
													
														
															|  |        setState({
 |  |        setState({
 | 
												
													
														
															|  |          ...state,
 |  |          ...state,
 | 
												
													
														
															|  |          approvalAccountDetail:
 |  |          approvalAccountDetail:
 | 
												
											
												
													
														
															|  | @@ -104,7 +93,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |          type: 'business/queryInstitution'
 |  |          type: 'business/queryInstitution'
 | 
												
													
														
															|  |        })
 |  |        })
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  | -    tryApprovalAccountDetail()
 |  | 
 | 
												
													
														
															|  | 
 |  | +    // tryApprovalAccountDetail()
 | 
												
													
														
															|  |    }, [])
 |  |    }, [])
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |    const form = createForm({
 |  |    const form = createForm({
 | 
												
											
												
													
														
															|  | @@ -125,7 +114,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 |  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 | 
												
													
														
															|  |            if (code === consts.RET_CODE.SUCCESS) {
 |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
												
													
														
															|  |              form.setFieldState('receiver.receiverAccountIDs', field => {
 |  |              form.setFieldState('receiver.receiverAccountIDs', field => {
 | 
												
													
														
															|  | -              field.dataSource = renderTreeNodes(data).filter(item => item.children?.length)
 |  | 
 | 
												
													
														
															|  | 
 |  | +              field.dataSource = renderTreeNodes(data)
 | 
												
													
														
															|  |              })
 |  |              })
 | 
												
													
														
															|  |            }
 |  |            }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -143,7 +132,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 |  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 | 
												
													
														
															|  |            if (code === consts.RET_CODE.SUCCESS) {
 |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
												
													
														
															|  |              form.setFieldState('fgLeader.fgLeaderAccountIDs', field => {
 |  |              form.setFieldState('fgLeader.fgLeaderAccountIDs', field => {
 | 
												
													
														
															|  | -              field.dataSource = renderTreeNodes(data).filter(item => item.children?.length)
 |  | 
 | 
												
													
														
															|  | 
 |  | +              field.dataSource = renderTreeNodes(data)
 | 
												
													
														
															|  |              })
 |  |              })
 | 
												
													
														
															|  |            }
 |  |            }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -158,7 +147,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 |  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 | 
												
													
														
															|  |            if (code === consts.RET_CODE.SUCCESS) {
 |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
												
													
														
															|  |              form.setFieldState('zxLeader.zxLeaderAccountIDs', field => {
 |  |              form.setFieldState('zxLeader.zxLeaderAccountIDs', field => {
 | 
												
													
														
															|  | -              field.dataSource = renderTreeNodes(data).filter(item => item.children?.length)
 |  | 
 | 
												
													
														
															|  | 
 |  | +              field.dataSource = renderTreeNodes(data)
 | 
												
													
														
															|  |              })
 |  |              })
 | 
												
													
														
															|  |            }
 |  |            }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -173,7 +162,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 |  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 | 
												
													
														
															|  |            if (code === consts.RET_CODE.SUCCESS) {
 |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
												
													
														
															|  |              form.setFieldState('post.postAccountIDs', field => {
 |  |              form.setFieldState('post.postAccountIDs', field => {
 | 
												
													
														
															|  | -              field.dataSource = renderTreeNodes(data).filter(item => item.children?.length)
 |  | 
 | 
												
													
														
															|  | 
 |  | +              field.dataSource = renderTreeNodes(data)
 | 
												
													
														
															|  |              })
 |  |              })
 | 
												
													
														
															|  |            }
 |  |            }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -188,7 +177,7 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 |  |            const { code = -1, data } = await queryOrganizationalMembersList({ institutionID })
 | 
												
													
														
															|  |            if (code === consts.RET_CODE.SUCCESS) {
 |  |            if (code === consts.RET_CODE.SUCCESS) {
 | 
												
													
														
															|  |              form.setFieldState('archive.archiveAccountIDs', field => {
 |  |              form.setFieldState('archive.archiveAccountIDs', field => {
 | 
												
													
														
															|  | -              field.dataSource = renderTreeNodes(data).filter(item => item.children?.length)
 |  | 
 | 
												
													
														
															|  | 
 |  | +              field.dataSource = renderTreeNodes(data)
 | 
												
													
														
															|  |              })
 |  |              })
 | 
												
													
														
															|  |            }
 |  |            }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
											
												
													
														
															|  | @@ -251,6 +240,5 @@ const ProcessUser = props => {
 | 
												
													
														
															|  |  }
 |  |  }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  export default connect(({ business }) => ({
 |  |  export default connect(({ business }) => ({
 | 
												
													
														
															|  | -  institutionList: business.institutionList,
 |  | 
 | 
												
													
														
															|  | -  organizationList: business.organizationalMembersList
 |  | 
 | 
												
													
														
															|  | -}))(ProcessUser)
 |  | 
 | 
												
													
														
															|  | 
 |  | +  institutionList: business.institutionList
 | 
												
													
														
															|  | 
 |  | +}))(Process)
 |