forked from gzzfw/frontEnd/gzDyh

zhangyongtian
2024-08-21 43c316de7163b3ea25bd8d554b07c0b7098c9456
gz-customerSystem/src/views/register/visit/component/visitorRegister.jsx
@@ -352,9 +352,9 @@
    return `${year}-${month}-${day} ${hours}:${minutes}`;
  }
  //添加申请人: 0、被申请人: 1、代理人: 2
  //添加申请人: 0、被申请人: 1、申请代理人: 2、被申请代理人:3
  const handleAdd = (type) => {
    if (type === 2) {
    if (type === 2 || type === 3) {
      setAgentVisible(true)
    } else {
      setAddVisabled(true)
@@ -727,11 +727,14 @@
        autoFocus={false}
        focusLock={true}
        footer={null}
        unmountOnExit={true}
        maskClosable={false}
      >
        <AgentDialog
          handleAddParty={handleAddParty}
          onClose={() => setAgentVisible(false)}
          fakeData={fakeData}
          dialogType={dialogType}
        />
      </Modal>
      <Modal