outaozhen 3 vuotta sitten
vanhempi
commit
c3c92c3fc9
1 muutettua tiedostoa jossa 32 lisäystä ja 25 poistoa
  1. 32 25
      src/pages/Business/ProcessUser/index.tsx

+ 32 - 25
src/pages/Business/ProcessUser/index.tsx

@@ -82,35 +82,42 @@ const ProcessUser = props => {
         <div className="w-6/7 ml-8 bg-white p-4 rounded-20px">
           <div className="flex flex-row mb-5 w-full text-xl">流程用户设置</div>
           <div className="max-w-800px">
+            <div className="flex justify-start items-center">
+              <div>收件员:</div>
+              <div>
+                <Select
+                  style={{ width: 250 }}
+                  placeholder="请选择单位"
+                  onChange={handleInstitutionChange}
+                  onClick={() => {
+                    setState({ ...state, name: 'receiver' })
+                  }}
+                  options={institutionList?.items?.map(item => ({ value: item.ID, label: item.name }))}
+                />
+              </div>
+              <div className="ml-2">
+                <TreeSelect
+                  style={{ width: 250 }}
+                  placeholder="请选择用户"
+                  treeDefaultExpandAll
+                  treeNodeFilterProp="label"
+                  multiple
+                  maxTagCount="responsive"
+                  onChange={handleApprovalonChange}
+                  treeData={renderTreeNodes(state.organizationListNew).filter(item => item.children?.length)}
+                />
+              </div>
+            </div>
             <Form labelCol={{ span: 4 }} wrapperCol={{ span: 20 }} layout="horizontal" form={form}>
-              <Form.Item label="收件员">
+              {/* <Form.Item label="收件员">
                 <Form.Item name="receiver" style={{ display: 'inline-block', margin: '0' }}>
-                  <Select
-                    style={{ width: 250 }}
-                    placeholder="请选择单位"
-                    onChange={handleInstitutionChange}
-                    onClick={() => {
-                      setState({ ...state, name: 'receiver' })
-                    }}
-                    options={institutionList?.items?.map(item => ({ value: item.ID, label: item.name }))}
-                  />
+
                 </Form.Item>
                 <Form.Item name="accountIDs" style={{ display: 'inline-block', margin: '0 8px' }}>
-                  <TreeSelect
-                    style={{ width: 250 }}
-                    placeholder="请选择用户"
-                    treeDefaultExpandAll
-                    treeNodeFilterProp="label"
-                    multiple
-                    maxTagCount="responsive"
-                    onChange={handleApprovalonChange}
-                    treeData={renderTreeNodes(state.organizationListNew).filter(
-                      item => item.children?.length
-                    )}
-                  />
+
                 </Form.Item>
-              </Form.Item>
-              <Form.Item label="分管领导">
+              </Form.Item> */}
+              {/* <Form.Item label="分管领导">
                 <Form.Item name="cc" style={{ display: 'inline-block', margin: '0' }}>
                   <Select
                     style={{ width: 250 }}
@@ -198,7 +205,7 @@ const ProcessUser = props => {
                     )}
                   />
                 </Form.Item>
-              </Form.Item>
+              </Form.Item> */}
               {/* <Form.Item wrapperCol={{ offset: 4, span: 20 }}>
                 <Button
                   type="primary"