zy-react-library 1.1.13 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{request as e}from"@cqsjjb/jjb-common-lib/http";import{Spin as i,Divider as d,Descriptions as l,Space as n,Button as t}from"antd";import r from"dayjs";import{useState as a,useEffect as c}from"react";import{HIDDEN_SOURCE_ENUM as s,HIDDEN_STATE_ENUM as h,HIDDEN_RECTIFICATION_TYPE_ENUM as o}from"../../../enum/hidden/gwj/index.js";import{UPLOAD_FILE_TYPE_ENUM as m}from"../../../enum/uploadFile/gwj/index.js";import p from"../../../hooks/useDownloadFile/index.js";import f from"../../../hooks/useGetFile/index.js";import b from"../../../hooks/useGetUrlQuery/index.js";import{getLabelName as C,getFileSuffix as O,getFileName as u}from"../../../utils/index.js";import y from"../../Icon/VideoIcon/index.js";import U from"../../PreviewImg/index.js";import g from"../../PreviewPdf/index.js";import N from"../../Video/index.js";import{jsxs as k,jsx as j,Fragment as T}from"react/jsx-runtime";function F(F){const{id:S="",idKey:R="id",hiddenId:I="",hiddenIdKey:A="hiddenId",history:L=!1,onGetData:w}=F,[D,q]=a({hiddenUserPresetsCO:{},hiddenRectifyUserCO:[],hiddenConfirmUserCO:[],hiddenAcceptUserCO:[],hiddenAcceptQualifiedUserCO:[],hiddenAcceptUnqualifiedUserCO:[],hiddenInspecCO:{},hiddenSpecialList:[],hiddenExtensionList:[]}),[x,P]=a([]),[v,Q]=a([]),[K,M]=a([]),[Y,$]=a([]),[E,G]=a([]),[H,z]=a([]),[B,V]=a(!0),[J,W]=a(!1),{getFile:X}=f(),Z=b(),{loading:_,downloadFile:ee}=p();return c(()=>{(async()=>{e(L?`/hidden/hidden/history/${S||Z[R]}`:`/hidden/hidden/${S||Z[R]}`,"get").then(e=>{if(e.data.hiddenAcceptQualifiedUserCO=[],e.data.hiddenAcceptUnqualifiedUserCO=[],e.data.hiddenAcceptUserCO&&e.data.hiddenAcceptUserCO.length>0)for(let i=0;i<e.data.hiddenAcceptUserCO.length;i++)1===e.data.hiddenAcceptUserCO[i].status?e.data.hiddenAcceptQualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]):e.data.hiddenAcceptUnqualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]);q(e.data),(async e=>{const i=await X({eqType:m[3],eqForeignKey:I||Z[A]});P(i);const d=await X({eqType:m[102],eqForeignKey:I||Z[A]});if(Q(d),e.hiddenRectifyUserCO&&e.hiddenRectifyUserCO.length>0)for(let i=0;i<e.hiddenRectifyUserCO.length;i++){if(e.hiddenRectifyUserCO[i].hiddenUserId){const d=await X({eqType:m[4],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenUserId});M(e=>[...e,d])}if(1===e.hiddenRectifyUserCO[i].isRectificationScheme&&e.hiddenRectifyUserCO[i].hiddenSchemeCO&&Object.keys(e.hiddenRectifyUserCO[i].hiddenSchemeCO).length>0&&e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId){const d=await X({eqType:m[8],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId});$(e=>[...e,d])}}if(e.hiddenAcceptQualifiedUserCO&&e.hiddenAcceptQualifiedUserCO.length>0)for(let i=0;i<e.hiddenAcceptQualifiedUserCO.length;i++)if(e.hiddenAcceptQualifiedUserCO[i].hiddenUserId){const d=await X({eqType:m[5],eqForeignKey:e.hiddenAcceptQualifiedUserCO[i].hiddenUserId});G(e=>[...e,d])}if(e.hiddenInspecCO&&Object.keys(e.hiddenInspecCO).length>0){const e=await X({eqType:m[146],eqForeignKey:I||Z[A]});z(e)}})(e.data),V(!1),w?.(e.data)})})()},[F.id,F.hiddenId]),k("div",{children:[k(i,{spinning:B||_,children:[j(d,{orientation:"left",children:"隐患信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"隐患来源",children:C({list:s,status:D.source})},{label:"隐患类型",children:D.hiddenTypeName},{label:"隐患级别",children:D.hiddenLevelName},{label:"隐患状态",children:C({list:h,status:D.state})},{label:"隐患描述",children:D.hiddenDesc},...D.hiddenPartName?[{label:"隐患部位",children:D.hiddenPartName}]:[],...(2===D.source||3===D.source)&&D.hiddenCheckListCO&&Object.keys(D.hiddenCheckListCO).length>0?[{label:"风险点(单元)",children:D.hiddenCheckListCO.listRiskPoints},{label:"辨识部位",children:D.hiddenCheckListCO.identifiedLocations},{label:"存在风险",children:D.hiddenCheckListCO.existingRisks},{label:"风险分级",children:D.hiddenCheckListCO.riskLevel},{label:"隐患清单",children:D.hiddenCheckListCO.listName},{label:"检查内容",children:D.hiddenCheckListCO.inspectionContent}]:[],...D.longitude?[{label:"隐患上报位置(经纬度)",children:[D.longitude&&`经度:${D.longitude}`,D.latitude&&`纬度:${D.latitude}`].filter(Boolean).join(" ")}]:[],...D.positionDesc?[{label:"隐患位置描述",children:D.positionDesc}]:[],{label:"隐患发现人",children:D.creatorName},{label:"隐患发现时间",children:r(D.hiddenFindTime).format("YYYY-MM-DD HH:mm:ss")},{label:"整改类型",children:C({list:o,status:D.rectificationType})},{label:"是否相关方",children:C({list:[{bianma:"1",name:"是"},{bianma:"0",name:"否"}],status:D.isRelated})},...1===D.isRelated?[{label:"相关方项目",children:D.projectName}]:[],{label:"隐患图片",children:j(U,{files:x})},...v.length>0?[{label:"隐患视频",children:j(y,{onClick:()=>{W(!0)}})}]:[]]}),D.hiddenUserPresetsCO&&Object.keys(D.hiddenUserPresetsCO).length>0&&k(T,{children:[j(d,{orientation:"left",children:"整改信息(发现人预填)"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:D.hiddenUserPresetsCO.rectifyDeptName},{label:"整改人",children:D.hiddenUserPresetsCO.rectifyUserName},...2===D.rectificationType?[{label:"整改期限",children:D.hiddenUserPresetsCO.rectifyDeadline?r(D.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD"):""}]:[],...1===D.rectificationType?[{label:"验收部门",children:D.hiddenUserPresetsCO.checkDeptName},{label:"验收人",children:D.hiddenUserPresetsCO.checkUserName}]:[]]})]}),D.hiddenConfirmUserCO&&D.hiddenConfirmUserCO.length>0&&k(T,{children:[j(d,{orientation:"left",children:"隐患确认"}),D.hiddenConfirmUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.hiddenLevelName?[{label:"隐患级别",children:e.hiddenLevelName}]:[],...e.userName?[{label:"隐患确认人",children:e.userName}]:[],...e.rectificationTime?[{label:"隐患确认时间",children:e.rectificationTime}]:[],...e.rectifyDeptName?[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:e.rectifyDeptName}]:[],...e.rectifyUserName?[{label:"整改人",children:e.rectifyUserName}]:[],...e.rectificationDeadline?[{label:"整改完成期限",children:e.rectificationDeadline}]:[],...e.checkDeptName?[{label:"验收部门",children:e.checkDeptName}]:[],...e.checkUserName?[{label:"验收人",children:e.checkUserName}]:[],...e.repulseCause?[...e.repulseCause?[{label:"打回意见",children:e.repulseCause}]:[],...e.rectificationTime?[{label:"打回时间",children:e.rectificationTime}]:[]]:[]]},e.id))]}),D.hiddenExtensionList&&D.hiddenExtensionList.length>0&&k(T,{children:[j(d,{orientation:"left",children:"延期信息"}),D.hiddenExtensionList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.createTime?[{label:"申请延期日期",children:e.createTime}]:[],...e.delayTime?[{label:"延期日期",children:e.delayTime}]:[],...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===O(e.disposalFile)?j(g,{name:u(e.disposalFile),url:e.disposalFile}):k(n,{children:[j("span",{children:u(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee(e.disposalFile),children:"下载"})]})}]:[],{label:"延期审核状态",children:k(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})},...3===e.state||4===e.state?[{label:"延期审核时间",children:e.updateTime}]:[]]},e.id))]}),D.hiddenSpecialList&&D.hiddenSpecialList.length>0&&k(T,{children:[j(d,{orientation:"left",children:"特殊处置审核信息"}),D.hiddenSpecialList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...3===e.state||4===e.state?[...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.updateTime?[{label:"审核时间",children:e.updateTime}]:[]]:[],{label:"无法整改原因",children:e.examine},...3===e.state?[...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===O(e.disposalFile)?j(g,{name:u(e.disposalFile),url:e.disposalFile}):k(n,{children:[j("span",{children:u(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee(e.disposalFile),children:"下载"})]})}]:[],{label:"是否更换整改负责人",children:e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?"是":"否"},...e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?[{label:"整改负责人",children:e.rectifyUserCO.userName}]:[]]:[],{label:"特殊处置审核状态",children:k(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})}]},e.id))]}),D.hiddenRectifyUserCO&&D.hiddenRectifyUserCO.length>0&&k(T,{children:[j(d,{orientation:"left",children:"整改信息"}),D.hiddenRectifyUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.deptName?[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:e.deptName}]:[],...e.userName?[{label:"整改人",children:e.userName}]:[],...e.rectificationTime?[{label:"整改时间",children:e.rectificationTime}]:[],...e.descr?[{label:"整改描述",children:e.descr}]:[],...e.investmentFunds?[{label:"投入资金",children:`${e.investmentFunds}元`}]:[],...D.tempSafeMeasure?[{label:"临时安全措施",children:D.tempSafeMeasure}]:[],{label:"整改后图片",children:j(U,{files:K[i]})},{label:"整改方案",children:k(T,{children:[0===e.isRectificationScheme&&j("span",{children:"无"}),1===e.isRectificationScheme&&j("span",{children:"有"})]})},...1===e.isRectificationScheme&&e.hiddenSchemeCO&&Object.keys(e.hiddenSchemeCO).length>0?[{label:"治理标准",children:e.hiddenSchemeCO.governStanDards},{label:"治理方法",children:e.hiddenSchemeCO.governMethod},{label:"经费落实",children:e.hiddenSchemeCO.expenditure},{label:"负责人员",children:e.hiddenSchemeCO.principal},{label:"工时安排",children:e.hiddenSchemeCO.programming},{label:"时限要求",children:e.hiddenSchemeCO.timeLimitFor},{label:"工作要求",children:e.hiddenSchemeCO.jobRequireMent},{label:"其他事项",children:e.hiddenSchemeCO.otherBusiness},{label:"方案图片",children:j(U,{files:Y[i]})}]:[]]},e.id))]}),D.hiddenAcceptQualifiedUserCO.length>0?k(T,{children:[j(d,{orientation:"left",children:"验收信息"}),D.hiddenAcceptQualifiedUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},...e.repulseCause?[{label:"验收打回意见",children:e.repulseCause}]:[],{label:"是否合格",children:e.rectificationTime?"合格":""},...e.descr?[{label:"验收描述",children:e.descr}]:[],...E[i]&&E[i].length>0?[{label:"验收图片",children:j(U,{files:E[i]})}]:[]]},e.id))]}):null,D.hiddenAcceptUnqualifiedUserCO.length>0?k(T,{children:[j(d,{orientation:"left",children:"验收打回信息"}),D.hiddenAcceptUnqualifiedUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},{label:"验收打回意见",children:e.repulseCause}]},e.id))]}):null,D.hiddenInspecCO&&Object.keys(D.hiddenInspecCO).length>0?k(T,{children:[j(d,{orientation:"left",children:"安全环保验收信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收人",children:D.hiddenInspecCO.finalCheckOr},{label:"验收时间",children:D.hiddenInspecCO.finalCheckTime},{label:"是否合格",children:1===D.hiddenInspecCO.finalCheck?"合格":"不合格"},{label:"验收描述",children:D.hiddenInspecCO.finalCheckDesc},{label:"验收图片",children:j(U,{files:H})}]})]}):null]}),J&&j(N,{visible:J,source:v[0].url,onCancel:()=>W(!1),title:"隐患视频"})]})}F.displayName="HiddenInfo";export{F as default};
1
+ import{request as e}from"@cqsjjb/jjb-common-lib/http";import{Spin as i,Divider as d,Descriptions as l,Space as n,Button as t}from"antd";import r from"dayjs";import{useState as a,useEffect as c}from"react";import{HIDDEN_SOURCE_ENUM as s,HIDDEN_STATE_ENUM as h,HIDDEN_RECTIFICATION_TYPE_ENUM as o}from"../../../enum/hidden/gwj/index.js";import{UPLOAD_FILE_TYPE_ENUM as m}from"../../../enum/uploadFile/gwj/index.js";import p from"../../../hooks/useDownloadFile/index.js";import f from"../../../hooks/useGetFile/index.js";import b from"../../../hooks/useGetUrlQuery/index.js";import{getLabelName as C,getFileSuffix as O,getFileName as u}from"../../../utils/index.js";import y from"../../Icon/VideoIcon/index.js";import U from"../../PreviewImg/index.js";import g from"../../PreviewPdf/index.js";import N from"../../Video/index.js";import{jsxs as k,jsx as j,Fragment as T}from"react/jsx-runtime";function F(F){const{id:S="",idKey:R="id",hiddenId:I="",hiddenIdKey:A="hiddenId",history:L=!1,onGetData:w}=F,[D,q]=a({hiddenUserPresetsCO:{},hiddenRectifyUserCO:[],hiddenConfirmUserCO:[],hiddenAcceptUserCO:[],hiddenAcceptQualifiedUserCO:[],hiddenAcceptUnqualifiedUserCO:[],hiddenInspecCO:{},hiddenSpecialList:[],hiddenExtensionList:[]}),[x,P]=a([]),[v,Q]=a([]),[K,M]=a([]),[Y,$]=a([]),[E,G]=a([]),[H,z]=a([]),[B,V]=a(!0),[J,W]=a(!1),{getFile:X}=f(),Z=b(),{loading:_,downloadFile:ee}=p();return c(()=>{(async()=>{e(L?`/hidden/hidden/history/${S||Z[R]}`:`/hidden/hidden/${S||Z[R]}`,"get").then(e=>{if(e.data.hiddenAcceptQualifiedUserCO=[],e.data.hiddenAcceptUnqualifiedUserCO=[],e.data.hiddenAcceptUserCO&&e.data.hiddenAcceptUserCO.length>0)for(let i=0;i<e.data.hiddenAcceptUserCO.length;i++)1===e.data.hiddenAcceptUserCO[i].status?e.data.hiddenAcceptQualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]):e.data.hiddenAcceptUnqualifiedUserCO.push(e.data.hiddenAcceptUserCO[i]);q(e.data),(async e=>{const i=await X({eqType:m[3],eqForeignKey:I||Z[A]});P(i);const d=await X({eqType:m[102],eqForeignKey:I||Z[A]});if(Q(d),e.hiddenRectifyUserCO&&e.hiddenRectifyUserCO.length>0)for(let i=0;i<e.hiddenRectifyUserCO.length;i++){if(e.hiddenRectifyUserCO[i].hiddenUserId){const d=await X({eqType:m[4],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenUserId});M(e=>[...e,d])}if(1===e.hiddenRectifyUserCO[i].isRectificationScheme&&e.hiddenRectifyUserCO[i].hiddenSchemeCO&&Object.keys(e.hiddenRectifyUserCO[i].hiddenSchemeCO).length>0&&e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId){const d=await X({eqType:m[8],eqForeignKey:e.hiddenRectifyUserCO[i].hiddenSchemeCO.hiddenSchemeId});$(e=>[...e,d])}}if(e.hiddenAcceptQualifiedUserCO&&e.hiddenAcceptQualifiedUserCO.length>0)for(let i=0;i<e.hiddenAcceptQualifiedUserCO.length;i++)if(e.hiddenAcceptQualifiedUserCO[i].hiddenUserId){const d=await X({eqType:m[5],eqForeignKey:e.hiddenAcceptQualifiedUserCO[i].hiddenUserId});G(e=>[...e,d])}if(e.hiddenInspecCO&&Object.keys(e.hiddenInspecCO).length>0){const e=await X({eqType:m[146],eqForeignKey:I||Z[A]});z(e)}})(e.data),V(!1),w?.(e.data)})})()},[F.id,F.hiddenId]),k("div",{children:[k(i,{spinning:B||_,children:[j(d,{orientation:"left",children:"隐患信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"隐患来源",children:C({list:s,status:D.source})},{label:"隐患类型",children:D.hiddenTypeName},{label:"隐患级别",children:D.hiddenLevelName},{label:"隐患状态",children:C({list:h,status:D.state})},{label:"隐患描述",children:D.hiddenDesc},...D.hiddenPartName?[{label:"隐患部位",children:D.hiddenPartName}]:[],...(2===D.source||3===D.source)&&D.hiddenCheckListCO&&Object.keys(D.hiddenCheckListCO).length>0?[{label:"风险点(单元)",children:D.hiddenCheckListCO.listRiskPoints},{label:"辨识部位",children:D.hiddenCheckListCO.identifiedLocations},{label:"存在风险",children:D.hiddenCheckListCO.existingRisks},{label:"风险分级",children:D.hiddenCheckListCO.riskLevel},{label:"隐患清单",children:D.hiddenCheckListCO.listName},{label:"检查内容",children:D.hiddenCheckListCO.inspectionContent}]:[],...D.longitude?[{label:"隐患上报位置(经纬度)",children:[D.longitude&&`经度:${D.longitude}`,D.latitude&&`纬度:${D.latitude}`].filter(Boolean).join(" ")}]:[],...D.positionDesc?[{label:"隐患位置描述",children:D.positionDesc}]:[],{label:"隐患发现人",children:D.creatorName},{label:"隐患发现时间",children:r(D.hiddenFindTime).format("YYYY-MM-DD HH:mm:ss")},{label:"整改类型",children:C({list:o,status:D.rectificationType})},{label:"是否相关方",children:C({list:[{bianma:"1",name:"是"},{bianma:"0",name:"否"}],status:D.isRelated})},...1===D.isRelated?[{label:"相关方项目",children:D.projectName}]:[],{label:"隐患图片",children:j(U,{files:x})},...v.length>0?[{label:"隐患视频",children:j(y,{onClick:()=>{W(!0)}})}]:[]]}),D.hiddenUserPresetsCO&&Object.keys(D.hiddenUserPresetsCO).length>0&&k(T,{children:[j(d,{orientation:"left",children:"整改信息(发现人预填)"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:D.hiddenUserPresetsCO.rectifyDeptName},{label:"整改人",children:D.hiddenUserPresetsCO.rectifyUserName},...2===D.rectificationType?[{label:"整改期限",children:D.hiddenUserPresetsCO.rectifyDeadline?r(D.hiddenUserPresetsCO.rectifyDeadline).format("YYYY-MM-DD"):""}]:[],...1===D.rectificationType?[{label:"验收部门",children:D.hiddenUserPresetsCO.checkDeptName},{label:"验收人",children:D.hiddenUserPresetsCO.checkUserName}]:[]]})]}),D.hiddenConfirmUserCO&&D.hiddenConfirmUserCO.length>0&&k(T,{children:[j(d,{orientation:"left",children:"隐患确认"}),D.hiddenConfirmUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.hiddenLevelName?[{label:"隐患级别",children:e.hiddenLevelName}]:[],...e.userName?[{label:"隐患确认人",children:e.userName}]:[],...e.rectificationTime?[{label:"隐患确认时间",children:e.rectificationTime}]:[],...e.rectifyDeptName?[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:e.rectifyDeptName}]:[],...e.rectifyUserName?[{label:"整改人",children:e.rectifyUserName}]:[],...e.rectificationDeadline?[{label:"整改完成期限",children:e.rectificationDeadline}]:[],...e.checkDeptName?[{label:"验收部门",children:e.checkDeptName}]:[],...e.checkUserName?[{label:"验收人",children:e.checkUserName}]:[],...e.repulseCause?[...e.repulseCause?[{label:"打回意见",children:e.repulseCause}]:[],...e.rectificationTime?[{label:"打回时间",children:e.rectificationTime}]:[]]:[]]},e.id))]}),D.hiddenExtensionList&&D.hiddenExtensionList.length>0&&k(T,{children:[j(d,{orientation:"left",children:"延期信息"}),D.hiddenExtensionList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.createTime?[{label:"申请延期日期",children:e.createTime}]:[],...e.delayTime?[{label:"延期日期",children:e.delayTime}]:[],...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===O(e.disposalFile)?j(g,{name:u(e.disposalFile),url:e.disposalFile}):k(n,{children:[j("span",{children:u(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee({url:e.disposalFile}),children:"下载"})]})}]:[],{label:"延期审核状态",children:k(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})},...3===e.state||4===e.state?[{label:"延期审核时间",children:e.updateTime}]:[]]},e.id))]}),D.hiddenSpecialList&&D.hiddenSpecialList.length>0&&k(T,{children:[j(d,{orientation:"left",children:"特殊处置审核信息"}),D.hiddenSpecialList.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...3===e.state||4===e.state?[...e.updateName?[{label:"审核人",children:e.updateName}]:[],...e.updateTime?[{label:"审核时间",children:e.updateTime}]:[]]:[],{label:"无法整改原因",children:e.examine},...3===e.state?[...e.disposalPlan?[{label:"处置方案",children:e.disposalPlan}]:[],...e.disposalFile?[{label:"处置方案附件",children:"pdf"===O(e.disposalFile)?j(g,{name:u(e.disposalFile),url:e.disposalFile}):k(n,{children:[j("span",{children:u(e.disposalFile)}),j(t,{type:"primary",size:"small",onClick:()=>ee({url:e.disposalFile}),children:"下载"})]})}]:[],{label:"是否更换整改负责人",children:e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?"是":"否"},...e.rectifyUserCO&&Object.keys(e.rectifyUserCO).length>0?[{label:"整改负责人",children:e.rectifyUserCO.userName}]:[]]:[],{label:"特殊处置审核状态",children:k(T,{children:[1===e.state&&j("span",{children:"待审核"}),2===e.state&&j("span",{children:"审批中"}),3===e.state&&j("span",{children:"已通过"}),4===e.state&&j("span",{children:"已拒绝"}),5===e.state&&j("span",{children:"已撤回"})]})}]},e.id))]}),D.hiddenRectifyUserCO&&D.hiddenRectifyUserCO.length>0&&k(T,{children:[j(d,{orientation:"left",children:"整改信息"}),D.hiddenRectifyUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[...e.deptName?[{label:"整改"+(1===D.isRelated?"单位":"部门"),children:e.deptName}]:[],...e.userName?[{label:"整改人",children:e.userName}]:[],...e.rectificationTime?[{label:"整改时间",children:e.rectificationTime}]:[],...e.descr?[{label:"整改描述",children:e.descr}]:[],...e.investmentFunds?[{label:"投入资金",children:`${e.investmentFunds}元`}]:[],...D.tempSafeMeasure?[{label:"临时安全措施",children:D.tempSafeMeasure}]:[],{label:"整改后图片",children:j(U,{files:K[i]})},{label:"整改方案",children:k(T,{children:[0===e.isRectificationScheme&&j("span",{children:"无"}),1===e.isRectificationScheme&&j("span",{children:"有"})]})},...1===e.isRectificationScheme&&e.hiddenSchemeCO&&Object.keys(e.hiddenSchemeCO).length>0?[{label:"治理标准",children:e.hiddenSchemeCO.governStanDards},{label:"治理方法",children:e.hiddenSchemeCO.governMethod},{label:"经费落实",children:e.hiddenSchemeCO.expenditure},{label:"负责人员",children:e.hiddenSchemeCO.principal},{label:"工时安排",children:e.hiddenSchemeCO.programming},{label:"时限要求",children:e.hiddenSchemeCO.timeLimitFor},{label:"工作要求",children:e.hiddenSchemeCO.jobRequireMent},{label:"其他事项",children:e.hiddenSchemeCO.otherBusiness},{label:"方案图片",children:j(U,{files:Y[i]})}]:[]]},e.id))]}),D.hiddenAcceptQualifiedUserCO.length>0?k(T,{children:[j(d,{orientation:"left",children:"验收信息"}),D.hiddenAcceptQualifiedUserCO.map((e,i)=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},...e.repulseCause?[{label:"验收打回意见",children:e.repulseCause}]:[],{label:"是否合格",children:e.rectificationTime?"合格":""},...e.descr?[{label:"验收描述",children:e.descr}]:[],...E[i]&&E[i].length>0?[{label:"验收图片",children:j(U,{files:E[i]})}]:[]]},e.id))]}):null,D.hiddenAcceptUnqualifiedUserCO.length>0?k(T,{children:[j(d,{orientation:"left",children:"验收打回信息"}),D.hiddenAcceptUnqualifiedUserCO.map(e=>j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收部门",children:e.deptName},{label:"验收人",children:e.userName},{label:"验收时间",children:e.rectificationTime},{label:"验收打回意见",children:e.repulseCause}]},e.id))]}):null,D.hiddenInspecCO&&Object.keys(D.hiddenInspecCO).length>0?k(T,{children:[j(d,{orientation:"left",children:"安全环保验收信息"}),j(l,{bordered:!0,column:1,styles:{label:{width:200}},items:[{label:"验收人",children:D.hiddenInspecCO.finalCheckOr},{label:"验收时间",children:D.hiddenInspecCO.finalCheckTime},{label:"是否合格",children:1===D.hiddenInspecCO.finalCheck?"合格":"不合格"},{label:"验收描述",children:D.hiddenInspecCO.finalCheckDesc},{label:"验收图片",children:j(U,{files:H})}]})]}):null]}),J&&j(N,{visible:J,source:v[0].url,onCancel:()=>W(!1),title:"隐患视频"})]})}F.displayName="HiddenInfo";export{F as default};
@@ -1 +1 @@
1
- import{Modal as e,Form as n,Row as l,Col as r,Select as t,Input as a,Button as i,Spin as o}from"antd";import{useRef as c,useState as d,useEffect as s}from"react";import{dynamicLoadJs as p}from"../../utils/index.js";import{jsxs as u,jsx as h}from"react/jsx-runtime";const w=w=>{const{visible:m,onClose:b,longitude:g,latitude:y,onConfirm:f,area:C="",showArea:v=!1,disable:k=!1}=w,L=c(null),M=c(null),O=c(null),[B,G]=d(!1),[x,I]=d(g||""),[A,F]=d(y||""),[K,N]=d(""),[z,E]=d("");s(()=>{I(g||""),F(y||""),E(C||"")},[g,y,C]);const P=()=>{N(""),b&&b()};s(()=>{let e;return m&&(e=setTimeout(()=>{(async()=>{if(window.BMapGL||(window?.base?.loadDynamicResource?await window.base.loadDynamicResource({url:"https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize",type:"script"}):await p("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize")),G(!0),await new Promise(e=>setTimeout(e,100)),L.current){if(!M.current){const e=new window.BMapGL.Map(L.current);if(M.current=e,e.centerAndZoom(new window.BMapGL.Point(g||"119.69457721306945",y||"39.940504336846665"),16),e.enableScrollWheelZoom(!0),g&&y){const n=new window.BMapGL.Point(g,y),l=new window.BMapGL.Marker(n);e.addOverlay(l)}k||e.addEventListener("click",n=>{e.clearOverlays();const l=new window.BMapGL.Point(n.latlng.lng,n.latlng.lat),r=new window.BMapGL.Marker(l);e.addOverlay(r),F(n.latlng.lat),I(n.latlng.lng)})}G(!1)}})()},100)),()=>{e&&clearTimeout(e)}},[m]);const j=()=>{if(M.current){try{M.current.clearOverlays(),M.current.destroy(),M.current=null}catch(e){console.warn("Error destroying map on unmount:",e)}M.current=null}};return s(()=>()=>{j()},[]),u(e,{open:m,title:"坐标",onCancel:P,width:1e3,destroyOnHidden:!1,maskClosable:!1,afterClose:j,footer:[h(i,{onClick:P,children:"取消"},"back"),!k&&h(i,{type:"primary",onClick:()=>{f&&f(x,A,{area:z}),P()},children:"确定"},"submit")],children:[u(n,{labelAlign:"right",labelCol:{span:6},wrapperCol:{span:18},children:[v&&h(l,{gutter:24,children:h(r,{span:12,children:h(n.Item,{label:"所属区域",children:u(t,{value:z,onChange:e=>E(e),allowClear:!0,children:[h(t.Option,{value:"1",children:"东港区"}),h(t.Option,{value:"2",children:"西港区"})]})})})}),!k&&u(l,{gutter:24,children:[h(r,{span:12,children:h(n.Item,{label:"关键字搜索",children:h(a,{value:K,onChange:e=>N(e.target.value),allowClear:!0})})}),h(r,{span:12,children:u(n.Item,{label:" ",colon:!1,style:{textAlign:"right"},children:[h(i,{type:"primary",onClick:()=>{K&&M.current&&(O.current=new window.BMapGL.LocalSearch(M.current,{renderOptions:{map:M.current}}),O.current.search(K))},children:"搜索"}),h(i,{onClick:()=>{N(""),M.current&&O.current.search("")},style:{marginLeft:8},children:"重置"})]})})]}),u(l,{gutter:24,children:[h(r,{span:12,children:h(n.Item,{label:"经度",children:h(a,{disabled:!0,value:x})})}),h(r,{span:12,children:h(n.Item,{label:"纬度",children:h(a,{disabled:!0,value:A})})})]})]}),h("div",{ref:L,style:{width:"100%",height:"500px",position:"relative"},children:h(o,{size:"large",tip:"地图正在加载中...",spinning:B,children:h("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3}})})})]})};w.displayName="MapSelector";export{w as default};
1
+ import{Modal as e,Form as n,Row as r,Col as l,Select as t,Input as a,Button as i,Spin as o}from"antd";import{useRef as c,useState as d,useEffect as s}from"react";import{dynamicLoadJs as p}from"../../utils/index.js";import{jsxs as u,jsx as h}from"react/jsx-runtime";const w=w=>{const{visible:m,onClose:b,longitude:g,latitude:y,onConfirm:f,area:v="",showArea:C=!1,disable:k=!1}=w,L=c(null),M=c(null),O=c(null),[x,B]=d(!1),[G,I]=d(g||""),[A,F]=d(y||""),[K,N]=d(""),[j,z]=d("");s(()=>{I(g||""),F(y||""),z(v||"")},[g,y,v]);const E=()=>{N(""),b&&b()};s(()=>{let e;return m&&(e=setTimeout(()=>{(async()=>{if(window.BMapGL||(window?.base?.loadDynamicResource?await window.base.loadDynamicResource({url:"https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize",type:"script",attr:{type:"text/javascript"}}):await p("https://api.map.baidu.com/api?v=1.0&type=webgl&ak=OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr&callback=initialize")),B(!0),await new Promise(e=>setTimeout(e,100)),L.current){if(!M.current){const e=new window.BMapGL.Map(L.current);if(M.current=e,e.centerAndZoom(new window.BMapGL.Point(g||"119.69457721306945",y||"39.940504336846665"),16),e.enableScrollWheelZoom(!0),g&&y){const n=new window.BMapGL.Point(g,y),r=new window.BMapGL.Marker(n);e.addOverlay(r)}k||e.addEventListener("click",n=>{e.clearOverlays();const r=new window.BMapGL.Point(n.latlng.lng,n.latlng.lat),l=new window.BMapGL.Marker(r);e.addOverlay(l),F(n.latlng.lat),I(n.latlng.lng)})}B(!1)}})()},100)),()=>{e&&clearTimeout(e)}},[m]);const P=()=>{if(M.current){try{M.current.clearOverlays(),M.current.destroy(),M.current=null}catch(e){console.warn("Error destroying map on unmount:",e)}M.current=null}};return s(()=>()=>{P()},[]),u(e,{open:m,title:"坐标",onCancel:E,width:1e3,destroyOnHidden:!1,maskClosable:!1,afterClose:P,footer:[h(i,{onClick:E,children:"取消"},"back"),!k&&h(i,{type:"primary",onClick:()=>{f&&f(G,A,{area:j}),E()},children:"确定"},"submit")],children:[u(n,{labelAlign:"right",labelCol:{span:6},wrapperCol:{span:18},children:[C&&h(r,{gutter:24,children:h(l,{span:12,children:h(n.Item,{label:"所属区域",children:u(t,{value:j,onChange:e=>z(e),allowClear:!0,children:[h(t.Option,{value:"1",children:"东港区"}),h(t.Option,{value:"2",children:"西港区"})]})})})}),!k&&u(r,{gutter:24,children:[h(l,{span:12,children:h(n.Item,{label:"关键字搜索",children:h(a,{value:K,onChange:e=>N(e.target.value),allowClear:!0})})}),h(l,{span:12,children:u(n.Item,{label:" ",colon:!1,style:{textAlign:"right"},children:[h(i,{type:"primary",onClick:()=>{K&&M.current&&(O.current=new window.BMapGL.LocalSearch(M.current,{renderOptions:{map:M.current}}),O.current.search(K))},children:"搜索"}),h(i,{onClick:()=>{N(""),M.current&&O.current.search("")},style:{marginLeft:8},children:"重置"})]})})]}),u(r,{gutter:24,children:[h(l,{span:12,children:h(n.Item,{label:"经度",children:h(a,{disabled:!0,value:G})})}),h(l,{span:12,children:h(n.Item,{label:"纬度",children:h(a,{disabled:!0,value:A})})})]})]}),h("div",{ref:L,style:{width:"100%",height:"500px",position:"relative"},children:h(o,{size:"large",tip:"地图正在加载中...",spinning:x,children:h("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:1e3}})})})]})};w.displayName="MapSelector";export{w as default};
@@ -1 +1 @@
1
- import{useDocumentVisibility as a}from"ahooks";import{uniqueId as e}from"lodash-es";import{forwardRef as i,useRef as r,useImperativeHandle as n,useEffect as t}from"react";import{dynamicLoadJs as l,dynamicLoadCss as s}from"../../utils/index.js";import{jsx as o}from"react/jsx-runtime";const p=i(({source:i="",vid:p="",playAuth:m="",cover:u="",width:c="100%",height:y="600px",autoplay:d=!0,showProgress:g=!0,isLive:h=!1,playTime:b=0,onEnded:w,onTimeupdate:x},f)=>{const v=r(null),k=r(null),D=a(),B=r(e("_")).current;n(f,()=>({play:()=>{v.current&&v.current.play()},pause:()=>{v.current&&v.current.pause()}}));const L=()=>{v.current&&(v.current.dispose(),v.current=null)};return t(()=>((i||p&&m)&&(async()=>{if(!k.current)return;window.Aliplayer||(window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js",type:"script"}),await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css",type:"link"})):(await l("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js"),await s("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css"))),L();const a=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:7},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}];g&&a[a.length-1].children.unshift({name:"progress",align:"blabs",x:0,y:44}),v.current=new window.Aliplayer({id:B,...i?{source:i}:{vid:p,playauth:m,qualitySort:"asc",format:"m3u8",encryptType:1,mediaType:"video",isLive:!0,rePlay:!1,playsinline:!0,controlBarVisibility:"hover"},cover:u,width:c,height:y,autoplay:d,isLive:h,useH5Prism:!0,skinLayout:a},a=>{d&&a.play(),a.on("ended",()=>{w&&w()}),a.on("timeupdate",()=>{x&&x(a.getCurrentTime())}),b>0&&a.seek(b)})})(),()=>{L()}),[i,p,m]),t(()=>{"hidden"===D?v.current&&v.current.pause():v.current&&v.current.play()},[D]),o("div",{ref:k,id:B,style:{width:c,height:y}})});p.displayName="AliPlayer";export{p as default};
1
+ import{useDocumentVisibility as a}from"ahooks";import{uniqueId as e}from"lodash-es";import{forwardRef as i,useRef as t,useImperativeHandle as r,useEffect as n}from"react";import{dynamicLoadJs as l,dynamicLoadCss as s}from"../../utils/index.js";import{jsx as o}from"react/jsx-runtime";const p=i(({source:i="",vid:p="",playAuth:m="",cover:y="",width:c="100%",height:u="600px",autoplay:d=!0,showProgress:h=!0,isLive:g=!1,playTime:b=0,onEnded:w,onTimeupdate:x},f)=>{const v=t(null),k=t(null),D=a(),j=t(e("_")).current;r(f,()=>({play:()=>{v.current&&v.current.play()},pause:()=>{v.current&&v.current.pause()}}));const B=()=>{v.current&&(v.current.dispose(),v.current=null)};return n(()=>((i||p&&m)&&(async()=>{if(!k.current)return;window.Aliplayer||(window?.base?.loadDynamicResource?(await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js",type:"script",attr:{type:"text/javascript"}}),await window.base.loadDynamicResource({url:"https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css",type:"link",attr:{rel:"stylesheet",type:"text/css"}})):(await l("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/aliplayer-min.js"),await s("https://g.alicdn.com/apsara-media-box/imp-web-player/2.16.3/skins/default/aliplayer-min.css"))),B();const a=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:56},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:7},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}];h&&a[a.length-1].children.unshift({name:"progress",align:"blabs",x:0,y:44}),v.current=new window.Aliplayer({id:j,...i?{source:i}:{vid:p,playauth:m,qualitySort:"asc",format:"m3u8",encryptType:1,mediaType:"video",isLive:!0,rePlay:!1,playsinline:!0,controlBarVisibility:"hover"},cover:y,width:c,height:u,autoplay:d,isLive:g,useH5Prism:!0,skinLayout:a},a=>{d&&a.play(),a.on("ended",()=>{w&&w()}),a.on("timeupdate",()=>{x&&x(a.getCurrentTime())}),b>0&&a.seek(b)})})(),()=>{B()}),[i,p,m]),n(()=>{"hidden"===D?v.current&&v.current.pause():v.current&&v.current.play()},[D]),o("div",{ref:k,id:j,style:{width:c,height:u}})});p.displayName="AliPlayer";export{p as default};
@@ -1 +1 @@
1
- import{Modal as e,Button as r}from"antd";import{useState as t,useRef as i,useEffect as o}from"react";import{getFileUrl as l}from"../../utils/index.js";import n from"./AliPlayer.js";import{jsx as s}from"react/jsx-runtime";const a=({source:a="",vid:c="",playAuth:p="",cover:u="",autoplay:h=!0,showProgress:m=!0,playTime:d=0,inline:f=!1,isLive:y=!1,width:v="100%",height:w="600px",title:g="视频",visible:x=!1,onCancel:C})=>{const[j,A]=t(!1),P=i(null),b=C?x:j,k=C||A;o(()=>{f||(b?P.current&&P.current.play():P.current&&P.current.pause())},[b,f]);const L=s(n,{ref:P,source:(()=>{if(a)return a.includes("http")||a.includes("https")?a:l()+a})(),vid:c,playAuth:p,cover:u,autoplay:h,showProgress:m,playTime:d,isLive:y,width:v,height:w});return f?L:s(e,{open:b,width:800,title:g,footer:[s(r,{onClick:()=>k(!1),children:"取消"},"cancel")],maskClosable:!1,onCancel:()=>k(!1),children:L})};a.displayName="Video";export{a as default};
1
+ import{Modal as e,Button as r}from"antd";import{useState as t,useRef as i,useEffect as o}from"react";import{getFileUrl as l}from"../../utils/index.js";import n from"./AliPlayer.js";import{jsx as s}from"react/jsx-runtime";const a=({source:a="",vid:c="",playAuth:p="",cover:u="",autoplay:h=!0,showProgress:m=!0,playTime:d=0,inline:f=!1,isLive:y=!1,width:v="100%",height:w="600px",title:g="视频",visible:x=!1,onCancel:C})=>{const[j,A]=t(!1),P=i(null),b=C?x:j,k=C||A;o(()=>{f||(b?P.current&&P.current.play():P.current&&P.current.pause())},[b,f]);const L=s(n,{ref:P,source:(()=>{if(a)return a.includes("http")||a.includes("https")?a:l()+a})(),vid:c,playAuth:p,cover:u,autoplay:h,showProgress:m,playTime:d,isLive:y,width:v,height:w});return f?L:s(e,{open:b,width:800,title:g,footer:[s(r,{onClick:()=>k(!1),children:"关闭"},"cancel")],maskClosable:!1,onCancel:()=>k(!1),children:L})};a.displayName="Video";export{a as default};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * 数据字典 appKey 枚举
3
+ */
4
+ export declare const DICTIONARY_APP_KEY_ENUM: {
5
+ DEFAULT: "0bb989ecada5470c87635018ece9f327";
6
+ GWJ: "0bb989ecada5470c87635018ece9f327";
7
+ };
@@ -0,0 +1,31 @@
1
+ // 隐患来源
2
+ export declare const HIDDEN_SOURCE_ENUM: [
3
+ { bianma: "1"; name: "隐患快报" },
4
+ { bianma: "2"; name: "清单排查" },
5
+ { bianma: "4"; name: "安全环保检查(监管端)" },
6
+ { bianma: "5"; name: "安全环保检查(企业端)" },
7
+ { bianma: "6"; name: "消防检查" },
8
+ ];
9
+
10
+ // 隐患状态
11
+ export declare const HIDDEN_STATE_ENUM: [
12
+ { bianma: "100"; name: "待确认" },
13
+ { bianma: "97"; name: "已过期" },
14
+ { bianma: "200"; name: "未整改" },
15
+ { bianma: "300"; name: "已整改" },
16
+ { bianma: "301"; name: "已验收" },
17
+ { bianma: "101"; name: "已忽略" },
18
+ { bianma: "202"; name: "待处理特殊处置" },
19
+ { bianma: "400"; name: "已处理特殊处置" },
20
+ { bianma: "201"; name: "确认打回" },
21
+ { bianma: "302"; name: "验收打回" },
22
+ { bianma: "99"; name: "强制关闭(人员变动)" },
23
+ { bianma: "98"; name: "安全环保检查/清单排查暂存" },
24
+ { bianma: "102"; name: "安全环保检查,隐患带指派" },
25
+ ];
26
+
27
+ // 隐患整改类型
28
+ export declare const HIDDEN_RECTIFICATION_TYPE_ENUM: [
29
+ { bianma: 1; name: "立即整改" },
30
+ { bianma: 2; name: "限期整改" },
31
+ ];
@@ -0,0 +1,173 @@
1
+ /**
2
+ * 文件上传类型枚举
3
+ */
4
+ export declare const UPLOAD_FILE_TYPE_ENUM: {
5
+ 10: 10; // labor_contract_image - 劳动合同图片
6
+ 11: 11; // commercial_insurance_image - 商业保险图片
7
+ 12: 12; // certificate_information - 证书信息
8
+ 13: 13; // user_avatar - 用户头像
9
+ 14: 14; // id_card_photo - 身份证照片
10
+ 15: 15; // social_security_card_photo - 社保卡照片
11
+ 16: 16; // work_related_injury_insurance_certificate - 工伤保险凭证
12
+ 19: 19; // three_level_safety_education_training - 三级教育培训
13
+ 601: 601; // gate_access_vehicle_license_photo - 门口门禁车辆行驶证照片
14
+ 602: 602; // gate_access_vehicle_photo - 门口门禁车辆车辆照片
15
+ 603: 603; // gate_access_vehicle_attachment - 门口门禁车辆附件
16
+ 604: 604; // emission_standard_certificate - 排放标准证明
17
+ 605: 605; // motor_vehicle_registration_certificate_green_book - 机动车登记证书(绿本)
18
+ 3: 3; // hidden_danger_photo - 隐患照片
19
+ 4: 4; // hidden_danger_rectification_photo - 隐患整改照片
20
+ 5: 5; // hidden_danger_verification_photo - 隐患验证照片
21
+ 6: 6; // certificate_photo - 证书照片
22
+ 7: 7; // confined_space_plan - 受限空间平面图
23
+ 8: 8; // hidden_danger_rectification_plan - 隐患整改方案图
24
+ 9: 9; // confined_space_confirmation_signature - 有限空间确认人签字
25
+ 17: 17; // special_equipment_inspection_photo - 特种设备巡检照片
26
+ 18: 18; // personnel_certificate - 人员证书
27
+ 20: 20; // major_hazard_source_alarm_before_handling_photo - 重大危险源报警处置前照片
28
+ 21: 21; // major_hazard_source_alarm_after_handling_photo - 重大危险源报警处置后照片
29
+ 22: 22; // smart_access_control_external_vehicle_driver_license_photo - 智能门禁外来车辆驾驶证照片
30
+ 23: 23; // smart_access_control_external_vehicle_registration_photo - 智能门禁外来车辆行驶证照片
31
+ 50: 50; // safety_and_environmental_inspection_final_acceptance_image - 安全环保检查终验图片
32
+ 101: 101; // hidden_danger_extension_temporary_measures_attachment - 隐患延期临时措施附件
33
+ 102: 102; // hidden_danger_video - 隐患视频
34
+ 105: 105; // blind_plate_position_map - 盲板位置图
35
+ 106: 106; // temporary_disposal_information - 临时处置信息
36
+ 107: 107; // rectification_suggestions_and_plan - 整改建议及方案
37
+ 108: 108; // major_hidden_danger_investigation_report - 重大隐患上传隐患调查报告
38
+ 109: 109; // major_hidden_danger_safety_committee_or_party_committee_resolution_record - 重大隐患安委会或党委会决议记录
39
+ 110: 110; // significant_hidden_danger_rectification_temporary_disposal_measures - 较大隐患整改-临时处置措施
40
+ 111: 111; // significant_hidden_danger_rectification_hidden_danger_rectification_process_record - 较大隐患整改-隐患整改过程记录
41
+ 112: 112; // supplement_major_hidden_danger_information - 补充重大隐患信息
42
+ 113: 113; // safety_committee_office_meeting_record - 安委会办公室会议记录
43
+ 114: 114; // alarm_photo - 报警图片
44
+ 115: 115; // fire_equipment_type_qualification_photo - 消防器材类型合格表中照片
45
+ 116: 116; // hot_work_personnel_photo - 动火人图片
46
+ 117: 117; // safety_pledge_signature - 安全承诺书签名
47
+ 118: 118; // hot_work_unit_responsible_person_confirmation_signature - 动火单位负责人确认签字
48
+ 119: 119; // on_site_jurisdiction_unit_responsible_person_signature - 现场管辖单位负责人签字
49
+ 120: 120; // hot_work_permit_issuing_unit_signature - 动火许可证签发单位签字
50
+ 121: 121; // hot_work_permit_signature - 动火许可证签字
51
+ 122: 122; // pre_hot_work_jurisdiction_unit_confirmation_signature - 动火前管辖单位确认签字
52
+ 123: 123; // on_site_responsible_person_confirmation_signature - 现场负责人确实签字
53
+ 124: 124; // post_hot_work_site_jurisdiction_unit_confirmation - 动火后现场管辖单位确认
54
+ 125: 125; // delayed_fire_monitoring_pictures - 延迟监火图片
55
+ 126: 126; // safety_and_environmental_inspection_initiation_signature - 安全环保检查发起签字(弃用)
56
+ 127: 127; // inspector_confirmation_signature - 检查人确认签字(弃用)
57
+ 128: 128; // inspected_person_confirmation_signature - 被检查人确认签字(弃用)
58
+ 129: 129; // safety_and_environmental_inspection_appeal_signature - 安全环保检查申辩签字(弃用)
59
+ 130: 130; // hk_safety_committee_office_director_safety_director_issuance - (港股安委办主任)安全总监签发
60
+ 131: 131; // hot_work_contracting_unit_signature - 动火发包单位签字
61
+ 132: 132; // safety_director_approval - 安全总监审批
62
+ 133: 133; // branch_safety_director_approval - 分公司安全总监审批
63
+ 134: 134; // project_authority_review_signature - 项目主管部门负责人审核
64
+ 135: 135; // branch_manager_approval_signature - 分公司主要负责人签批
65
+ 136: 136; // accident_incident - 事故/事件
66
+ 137: 137; // accident_incident - 事故/事件
67
+ 138: 138; // hidden_disposal_plan - 隐患处置方案
68
+ 139: 139; // safety_environmental_inspection_inspection_signature - 安全环保检查-检查签字
69
+ 140: 140; // safety_environmental_inspection_inspection_situation - 安全环保检查-检查情况
70
+ 141: 141; // safety_environmental_inspection_inspector_signature - 安全环保检查-检查人签字
71
+ 142: 142; // safety_environmental_inspection_inspected_signature - 安全环保检查-被检查人签字
72
+ 143: 143; // safety_environmental_inspection_inspected_file - 安全环保检查-被检查文件
73
+ 144: 144; // safety_environmental_inspection_defense_signature - 安全环保检查-申辩签字
74
+ 146: 146; // safety_environmental_inspection_acceptance - 安全环保检查-验收
75
+ 145: 145; // qualified_list_inspection - 清单检查合格
76
+ 147: 147; // hidden_qualified_listInspection_signature - 隐患清单排查签字
77
+ 148: 148; // special_qualification - 相关方-专项资质
78
+ 149: 149; // safety_qualification - 相关方-安全资质(弃用,全部改成使用148)
79
+ 150: 150; // promise_bookmark_photo - 安全承诺签字
80
+ 151: 151; // project_related_materials - 相关方-项目相关资料
81
+ 152: 152; // legal_and_regulatory_database - 法律法规库
82
+ 153: 153; // regulations_resource_library - 安全生产操作规程资源库
83
+ 154: 154; // responsibility_based_resource_library - 安全生产责任制资源库
84
+ 155: 155; // institutional_resource_library - 安全生产管理制度资源库
85
+ 156: 156; // security_management_agreement - 相关方-安全管理协议
86
+ };
87
+
88
+ /**
89
+ * 文件上传类型对应的 path 枚举
90
+ */
91
+ export declare const UPLOAD_FILE_PATH_ENUM: {
92
+ 10: "labor_contract_image";
93
+ 11: "commercial_insurance_image";
94
+ 12: "certificate_information";
95
+ 13: "user_avatar";
96
+ 14: "id_card_photo";
97
+ 15: "social_security_card_photo";
98
+ 16: "work_related_injury_insurance_certificate";
99
+ 19: "three_level_safety_education_training";
100
+ 601: "gate_access_vehicle_license_photo";
101
+ 602: "gate_access_vehicle_photo";
102
+ 603: "gate_access_vehicle_attachment";
103
+ 604: "emission_standard_certificate";
104
+ 605: "motor_vehicle_registration_certificate_green_book";
105
+ 3: "hidden_danger_photo";
106
+ 4: "hidden_danger_rectification_photo";
107
+ 5: "hidden_danger_verification_photo";
108
+ 6: "certificate_photo";
109
+ 7: "confined_space_plan";
110
+ 8: "hidden_danger_rectification_plan";
111
+ 9: "confined_space_confirmation_signature";
112
+ 17: "special_equipment_inspection_photo";
113
+ 18: "personnel_certificate";
114
+ 20: "major_hazard_source_alarm_before_handling_photo";
115
+ 21: "major_hazard_source_alarm_after_handling_photo";
116
+ 22: "smart_access_control_external_vehicle_driver_license_photo";
117
+ 23: "smart_access_control_external_vehicle_registration_photo";
118
+ 50: "safety_and_environmental_inspection_final_acceptance_image";
119
+ 101: "hidden_danger_extension_temporary_measures_attachment";
120
+ 102: "hidden_danger_video";
121
+ 105: "blind_plate_position_map";
122
+ 106: "temporary_disposal_information";
123
+ 107: "rectification_suggestions_and_plan";
124
+ 108: "major_hidden_danger_investigation_report";
125
+ 109: "major_hidden_danger_safety_committee_or_party_committee_resolution_record";
126
+ 110: "significant_hidden_danger_rectification_temporary_disposal_measures";
127
+ 111: "significant_hidden_danger_rectification_hidden_danger_rectification_process_record";
128
+ 112: "supplement_major_hidden_danger_information";
129
+ 113: "safety_committee_office_meeting_record";
130
+ 114: "alarm_photo";
131
+ 115: "fire_equipment_type_qualification_photo";
132
+ 116: "hot_work_personnel_photo";
133
+ 117: "safety_pledge_signature";
134
+ 118: "hot_work_unit_responsible_person_confirmation_signature";
135
+ 119: "on_site_jurisdiction_unit_responsible_person_signature";
136
+ 120: "hot_work_permit_issuing_unit_signature";
137
+ 121: "hot_work_permit_signature";
138
+ 122: "pre_hot_work_jurisdiction_unit_confirmation_signature";
139
+ 123: "on_site_responsible_person_confirmation_signature";
140
+ 124: "post_hot_work_site_jurisdiction_unit_confirmation";
141
+ 125: "delayed_fire_monitoring_pictures";
142
+ 126: "safety_and_environmental_inspection_initiation_signature";
143
+ 127: "inspector_confirmation_signature";
144
+ 128: "inspected_person_confirmation_signature";
145
+ 129: "safety_and_environmental_inspection_appeal_signature";
146
+ 130: "hk_safety_committee_office_director_safety_director_issuance";
147
+ 131: "hot_work_contracting_unit_signature";
148
+ 132: "safety_director_approval";
149
+ 133: "branch_safety_director_approval";
150
+ 134: "project_authority_review_signature";
151
+ 135: "branch_manager_approval_signature";
152
+ 136: "accident_incident";
153
+ 137: "accident_incident";
154
+ 138: "hidden_disposal_plan";
155
+ 139: "safety_environmental_inspection_inspection_signature";
156
+ 140: "safety_environmental_inspection_inspection_situation";
157
+ 141: "safety_environmental_inspection_inspector_signature";
158
+ 142: "safety_environmental_inspection_inspected_signature";
159
+ 143: "safety_environmental_inspection_inspected_file";
160
+ 144: "safety_environmental_inspection_defense_signature";
161
+ 145: "qualified_list_inspection";
162
+ 146: "safety_environmental_inspection_acceptance";
163
+ 147: "hidden_qualified_listInspection_signature";
164
+ 148: "special_qualification";
165
+ 149: "safety_qualification";
166
+ 150: "promise_bookmark_photo";
167
+ 151: "project_related_materials";
168
+ 152: "legal_and_regulatory_database";
169
+ 153: "regulations_resource_library";
170
+ 154: "responsibility_based_resource_library";
171
+ 155: "institutional_resource_library";
172
+ 156: "security_management_agreement";
173
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.1.13",
4
+ "version": "1.1.15",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",