Ver código fonte

修改经办人默认提交人

Renxy 2 anos atrás
pai
commit
00b6334ae7

+ 4 - 4
.umirc.ts

@@ -17,14 +17,14 @@ export default defineConfig({
   proxy: {
     '/api/v1/oa': {
       // target: 'http://47.96.12.136:8788/',
-      // target: 'http://47.96.12.136:8896/',
-      target: 'http://120.55.44.4:8902/',
+      target: 'http://47.96.12.136:8895/',
+      // target: 'http://120.55.44.4:8902/',
       changeOrigin: true,
     },
     '/api': {
       // target: 'http://47.96.12.136:8788/',
-      // target: 'http://47.96.12.136:8888/',
-      target: 'http://120.55.44.4:8902/',
+      target: 'http://47.96.12.136:8895/',
+      // target: 'http://120.55.44.4:8902/',
       changeOrigin: true,
     },
   },

+ 5 - 5
src/pages/ContractManager/component/Modal.jsx

@@ -112,11 +112,11 @@ const ContractModal = (props) => {
   useEffect(() => {
     if (company == 135) {
       setDepDisable(false);
-      setDealDisable(false);
+      // setDealDisable(false);
     } else {
       setDepDisable(true);
-      setDealDisable(true);
-      form.setFieldsValue({ deal_by: user?.CName });
+      // setDealDisable(true);
+      // form.setFieldsValue({ deal_by: user?.CName });
     }
   }, [company]);
   useEffect(() => {
@@ -501,7 +501,7 @@ const ContractModal = (props) => {
             <Form.Item
               name="deal_by"
               label="经办人:"
-              initialValue={data?.deal_by}
+              initialValue={data?.deal_by || user?.CName}
               rules={[
                 {
                   required: true,
@@ -513,7 +513,7 @@ const ContractModal = (props) => {
                 showSearch
                 style={{ width: '100%' }}
                 placeholder="请选择"
-                disabled={dealDisable || disableds.contract}
+                disabled
                 filterOption={(input, option) =>
                   (option?.label ?? '')
                     .toLowerCase()

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

@@ -14,7 +14,6 @@ import {
   queryGetContractList,
 } from '../../services/contract';
 import dayjs from 'dayjs';
-import useModal from 'antd/es/modal/useModal';
 import FileViewerModal from '@/components/FileViewerNew';
 import { getToken } from '@/utils/utils';