| 
					
				 | 
			
			
				@@ -0,0 +1,130 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { PageContainer } from '@ant-design/pro-layout' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { useDispatch, connect } from 'umi' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { Form, Select } from 'antd' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import React, { useState, useEffect } from 'react' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import LeftMenu from './components/LeftMenu' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+export enum LeftMenuEnum { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  BUDGET = '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+export const menuOptions = [{ label: '预算业务审批', value: LeftMenuEnum.BUDGET }] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const ProcessUser = props => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const { institutionList, organizationList } = props 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  console.log(organizationList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const [form] = Form.useForm() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const dispatch = useDispatch() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const [state, setState] = useState({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    activeKey: LeftMenuEnum.BUDGET, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    institutionID: null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const handleInstitutionSelect = ID => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    setState({ ...state, institutionID: ID }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  const handleOrganizationList = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    dispatch({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      type: 'business/queryOrganizationalMembers', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      payload: { institutionID: state.institutionID } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  useEffect(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!institutionList.length) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      dispatch({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        type: 'business/queryInstitution' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, []) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <PageContainer title={false}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <div className="h-full w-full flex flex-row"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <LeftMenu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          title="流程用户设置" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          options={menuOptions} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          value={state.activeKey} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          onChange={key => setState({ ...state, activeKey: key })} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div className="w-6/7 ml-8 bg-white p-4 rounded-20px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          {/* <div className="flex flex-row-reverse mb-4 w-full"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Button type="primary">编辑</Button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> */} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <div className="max-w-800px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <Form 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              labelCol={{ span: 4 }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              wrapperCol={{ span: 20 }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              layout="horizontal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              form={form} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              onFinish={async values => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                console.log(values) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <Form.Item label="收件员:"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  style={{ width: 250 }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  placeholder="请选择单位" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  onChange={handleInstitutionSelect} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  options={institutionList?.items?.map(item => ({ value: item.ID, label: item.name }))} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  style={{ width: 250 }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  placeholder="请选择用户" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  onChange={handleOrganizationList} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  options={organizationList?.items?.map(item => ({ value: item.name }))} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              {/* <Form.Item label="分管领导:" name="fgLeader"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo">Demo</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo1">dasdasd</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <Form.Item label="分管领导:" name="fgLeader"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo">Demo</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo1">dasdasd</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <Form.Item label="中心领导:" name="zxLeader"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo">Demo</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo1">dasdasd</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <Form.Item label="发文:" name="post"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo">Demo</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo1">dasdasd</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <Form.Item label="归档:" name="archive"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo">Demo</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <Select style={{ width: 250 }}> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  <Select.Option value="demo1">dasdasd</Select.Option> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </Select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </Form.Item> */} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </Form> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </PageContainer> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+export default connect(({ business }) => ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  institutionList: business.institutionList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  organizationList: business.organizationalMembersList 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}))(ProcessUser) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// export default ProcessUser 
			 |