forked from gzzfw/frontEnd/gzDyh

liuwh
2024-09-10 4e3b493f07b4bc7f325a4b8ebc91704ec8e902a9
PC端来访登记
1 files added
5 files modified
120 ■■■■■ changed files
gz-customerSystem/src/api/appUrl.js 46 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/matterDetail/FileTable.jsx 1 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/matterDetail/FileUpLoad.jsx 51 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/matterDetail/index.less 3 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx 7 ●●●●● patch | view | raw | blame | history
gz-customerSystem/src/views/register/visit/index.jsx 12 ●●●● patch | view | raw | blame | history
gz-customerSystem/src/api/appUrl.js
@@ -2,7 +2,7 @@
 * @Company: hugeInfo
 * @Author: ldh
 * @Date: 2022-02-16 11:25:57
 * @LastEditTime: 2024-09-10 10:36:24
 * @LastEditTime: 2024-09-10 16:53:01
 * @LastEditors: lwh
 * @Version: 1.0.0
 * @Description: api地址
@@ -10,39 +10,39 @@
export const debug = {
  // web服务
  // baseUrl: 'http://gz.hugeinfo.com.cn',
  baseUrl: "http://192.168.3.108:9002",
  // baseUrl: 'http://mdqgnh.natappfree.cc',
    // baseUrl: "http://192.168.3.108:9002",
    baseUrl: 'http://6dycet.natappfree.cc',
  // 附件服务
  fileUrl: "http://192.168.3.108:9002",
    // fileUrl: "http://192.168.3.108:9002",
  // fileUrl: 'http://gz.hugeinfo.com.cn',
    fileUrl: 'http://6dycet.natappfree.cc',
  // 文件查看url 后面接附件编号
  fileShowUrl: "/dyh-sys/api/v1/fileInfo/show/",
    fileShowUrl: '/dyh-sys/api/v1/fileInfo/show/',
  // 文件下载url 后面接附件编号
  fileDownUrl: "/dyh-sys/api/v1/fileInfo/down/",
    fileDownUrl: '/dyh-sys/api/v1/fileInfo/down/',
  // 在线文档编辑链接
  fileDocx: "/word/docDraft/showWord",
    fileDocx: '/word/docDraft/showWord',
  // 签章的文档编辑链接
  fileDocx2: "/InsertSeal/Word/AddSeal1/Word1",
    fileDocx2: '/InsertSeal/Word/AddSeal1/Word1',
  // 不同服务接口type
  mediate: "dyh-mediate", // dyh-mediate
  cust: "dyh-cust", // dyh-cust
  oper: "dyh-oper", // dyh-oper
  sys: "dyh-sys", // dyh-sys
  disp: "dyh-disp", //dyh-disp
  utils: "dyh-utils",
    mediate: 'dyh-mediate', // dyh-mediate
    cust: 'dyh-cust', // dyh-cust
    oper: 'dyh-oper', // dyh-oper
    sys: 'dyh-sys', // dyh-sys
    disp: 'dyh-disp', //dyh-disp
    utils: 'dyh-utils',
};
// 正式版
export const web = {
  // web服务
  baseUrl: "https://zfw-dyh.by.gov.cn",
    baseUrl: 'https://zfw-dyh.by.gov.cn',
  // baseUrl: 'http://146.4.99.61:8088/byzfw',
  // 附件服务
  fileUrl: "https://zfw-dyh.by.gov.cn",
    fileUrl: 'https://zfw-dyh.by.gov.cn',
    // 文件查看url 后面接附件编号
    fileShowUrl: '/dyh-sys/api/v1/fileInfo/show/',
@@ -54,10 +54,10 @@
    fileDocx2: '/InsertSeal/Word/AddSeal1/Word1',
  // 不同服务接口type
  mediate: "gzdyh-mediate", // dyh-mediate
  cust: "gzdyh-cust", // dyh-cust
  oper: "gzdyh-oper", // dyh-oper
  sys: "gzdyh-sys", // dyh-sys
  disp: "gzdyh-disp", //dyh-disp
  utils: "gzdyh-utils",
    mediate: 'gzdyh-mediate', // dyh-mediate
    cust: 'gzdyh-cust', // dyh-cust
    oper: 'gzdyh-oper', // dyh-oper
    sys: 'gzdyh-sys', // dyh-sys
    disp: 'gzdyh-disp', //dyh-disp
    utils: 'gzdyh-utils',
};
gz-customerSystem/src/views/register/matterDetail/FileTable.jsx
@@ -363,6 +363,7 @@
              return (
                <Col span={12} key={t}>
                  <div
                    onClick={() => { x.value !== sourceType && setSourceType(x.value) }}
                    className={`casePerfection-cardTab-tab ${x.value === sourceType && 'casePerfection-cardTab-tabActive'}`}
                  >
                    <img src={x.value === sourceType ? personIconType(x.value)?.[1] : personIconType(x.value)?.[0]} alt="" style={{ width: '40px', height: '40px' }} />
gz-customerSystem/src/views/register/matterDetail/FileUpLoad.jsx
@@ -3,7 +3,7 @@
import * as $$ from '@/utils/utility';
import { Form, Input, Modal, Upload } from '@arco-design/web-react';
import { IconLink } from '@arco-design/web-react/icon';
import './index.less'
const FormItem = Form.Item;
const appUrl = $$.appUrl;
@@ -51,6 +51,30 @@
  return (
    <>
      <Modal
        style={{ width: '944px' }}
        visible={scanImage}
        onCancel={() => setScanImage(false)}
        footer={null}
        title='选择识别范围'
        centered
        unmountOnExit={true}
        maskClosable={false}
      >
        <img
          src={fileView?.url}
          alt=""
          style={{
            display: 'block',
            margin: 'auto',
            maxWidth: '100%',
            maxHeight: '100%',
            objectFit: 'contain',
          }}
        />
        <div><Button type="primary" onClick={() => handleScaned()} style={{ marginTop: '20px' }}>开始识别</Button></div>
      </Modal>
      <Modal
        style={{ width: '1200px' }}
        visible={visible}
@@ -107,30 +131,9 @@
      </Modal>
      <Modal
        style={{ width: '944px' }}
        visible={scanImage}
        onCancel={() => setScanImage(false)}
        footer={null}
        title='选择识别范围'
        centered
        unmountOnExit={true}
        maskClosable={false}
      >
        <img
          src={fileView?.url}
          alt=""
          style={{
            display: 'block',
            margin: 'auto',
            maxWidth: '100%',
            maxHeight: '100%',
            objectFit: 'contain',
          }}
        />
        <div><Button type="primary" onClick={() => handleScaned()} style={{ marginTop: '20px' }}>开始识别</Button></div>
      </Modal>
      <Modal
        className='scan-modal'
        style={{ width: '1200px' }}
        wrapStyle={{ zIndex: 1002 }}
        visible={scaned}
        onCancel={() => setScaned(false)}
        footer={null}
gz-customerSystem/src/views/register/matterDetail/index.less
New file
@@ -0,0 +1,3 @@
.scan-modal {
}
gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
@@ -26,6 +26,7 @@
  const [addVisabled, setAddVisabled] = useState(false);//添加当事人弹窗控制
  const [fakeData, setFakeData] = useState([]);//当事人信息数据
  const [scanFile, setScanFile] = useState(false);
  const [ocrText, setOcrText] = useState('');
  const [mapView, setMapView] = useState(false);
  const [visible, setVisible] = useState(false);
@@ -101,7 +102,7 @@
  const handleConfirm = (scanContent) => {
    // 处理确认逻辑
    props.formRef.current.setFieldValue('caseDes', scanContent)
    props.formRef.current.setFieldValue(ocrText, scanContent)
    setScanFile(false);
    console.log(scanContent, 'scanContent')
@@ -330,7 +331,7 @@
                </Tooltip>
                <div className="must" style={{ marginLeft: '4px' }}>必填</div>
                <img src={scan} alt="" style={{ marginRight: '-2px', marginLeft: '8px' }} />
                <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => setScanFile(true)}>识别上传材料</div>
                <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => { setScanFile(true); setOcrText('caseDes') }}>识别上传材料</div>
              </div>
              }
              field='caseDes'
@@ -354,7 +355,7 @@
                </Tooltip> */}
                <div className="must">必填</div>
                <img src={scan} alt="" style={{ marginRight: '-2px', marginLeft: '8px' }} />
                <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => setScanFile(true)}>识别上传材料</div>
                <div style={{ marginLeft: '8px', color: '#1A6FB8', fontSize: '14px', cursor: 'pointer' }} onClick={() => { setScanFile(true); setOcrText('caseClaim') }}>识别上传材料</div>
              </div>
              }
              field='caseClaim'
gz-customerSystem/src/views/register/visit/index.jsx
@@ -1,8 +1,8 @@
/*
 * @Author: dminyi 1301963064@qq.com
 * @Date: 2024-08-09 09:59:43
 * @LastEditors: dminyi 1301963064@qq.com
 * @LastEditTime: 2024-09-10 10:10:03
 * @LastEditors: lwh
 * @LastEditTime: 2024-09-10 11:20:47
 * @FilePath: \gzDyh\gz-customerSystem\src\views\basicInformation\organization\index.jsx
 * @Description: 来访登记
 */
@@ -89,12 +89,20 @@
                if (!errors) {
                    const { myCaseType, myQuesAddress, ...rest } = formRef.current.getFields()
                    const params = handleData(rest)
          $$.modalInfo({
            title: '提醒',
            content: '确定提交吗?',
            cancelText: '我再想想',
            onOk: () => {
                    reauestSubmit({
                        ...params,
                        isSelfAccept: 0,
                        isDraft: 0,
                        operateType: 0,
                    })
            },
          });
                }
            });
        }