浏览代码

修改合同管理

Renxy 2 年之前
父节点
当前提交
01d445b91e
共有 3 个文件被更改,包括 14 次插入1 次删除
  1. 12 0
      src/pages/ContractManager/component/Modal.jsx
  2. 1 0
      src/pages/ContractManager/index.jsx
  3. 1 1
      src/pages/Profile/approve.js

+ 12 - 0
src/pages/ContractManager/component/Modal.jsx

@@ -383,6 +383,12 @@ const ContractModal = (props) => {
               name="dep_id"
               label="所属部门:"
               initialValue={data?.dep_id}
+              rules={[
+                {
+                  required: true,
+                  message: '请选择所属部门',
+                },
+              ]}
             >
               <TreeSelect
                 style={{ width: '100%' }}
@@ -738,6 +744,12 @@ const ContractModal = (props) => {
               name="archives_dep"
               initialValue={data?.archives_dep}
               label="合同原件存档部门:"
+              rules={[
+                {
+                  required: true,
+                  message: '请选择合同原件存档部门',
+                },
+              ]}
               tooltip="母公司财务部和采购部门的合同请选择“财务部”,其他部门请选择“行政部”,子公司合同选择“综合管理部”"
             >
               <Select

+ 1 - 0
src/pages/ContractManager/index.jsx

@@ -396,6 +396,7 @@ const ConteactManager = (props) => {
           <Select
             style={{ width: 200 }}
             placeholder="请选择"
+            allowClear
             onChange={(e) => {
               setSearchData({
                 ...searchData,

+ 1 - 1
src/pages/Profile/approve.js

@@ -92,7 +92,7 @@ function Approve(props) {
     data: conAuditData,
     run: conAuditRun,
     loading: conAduitLoading,
-  } = useRequest((data) => queryGetContractList(data), {
+  } = useRequest((data) => queryGetContractList({ ...data, page_size: 999 }), {
     // manual: true,
     formatResult: contractResult,
   });