fixed:部分bug修复
parent
835fdd96af
commit
be27c2455a
|
|
@ -30,7 +30,7 @@
|
|||
"lodash-es": "^4.17.21",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"zy-react-library": "^1.1.28"
|
||||
"zy-react-library": "^1.1.32"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^5.4.1",
|
||||
|
|
|
|||
|
|
@ -37,46 +37,46 @@ function List(props) {
|
|||
{ title: "资质类别", dataIndex: "qualificationsTypeName" },
|
||||
{ title: "资质等级", dataIndex: "stakeholderLevelName" },
|
||||
{ title: "材料数", dataIndex: "materialNum" },
|
||||
{
|
||||
title: "资质状态",
|
||||
dataIndex: "qualificationsStatus",
|
||||
render: (_, record) => (
|
||||
<div>
|
||||
{record.qualificationsStatus === 0 && "正常"}
|
||||
{record.qualificationsStatus === 1 && "待完善"}
|
||||
{record.qualificationsStatus === 2 && (
|
||||
<Tooltip
|
||||
overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
|
||||
title={
|
||||
record.expireList
|
||||
? (
|
||||
<div style={{ width: "100%" }}>
|
||||
{record.expireList.map((item, index) => (
|
||||
<div key={index}>
|
||||
{item.dataName}
|
||||
{" "}
|
||||
已于
|
||||
{item.qualificationsTermEnd}
|
||||
{" "}
|
||||
过期
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
: "部分资料已过期"
|
||||
}
|
||||
>
|
||||
<span style={{ display: "inline-flex", alignItems: "center" }}>
|
||||
存在异常
|
||||
{" "}
|
||||
<WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
{(record.qualificationsStatus === 3 || record.qualificationsStatus === 4) && "资质过期"}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
// {
|
||||
// title: "资质状态",
|
||||
// dataIndex: "qualificationsStatus",
|
||||
// render: (_, record) => (
|
||||
// <div>
|
||||
// {record.qualificationsStatus === 0 && "正常"}
|
||||
// {record.qualificationsStatus === 1 && "待完善"}
|
||||
// {record.qualificationsStatus === 2 && (
|
||||
// <Tooltip
|
||||
// overlayStyle={{ width: "auto", maxWidth: "700px", whiteSpace: "normal", wordBreak: "break-word" }}
|
||||
// title={
|
||||
// record.expireList
|
||||
// ? (
|
||||
// <div style={{ width: "100%" }}>
|
||||
// {record.expireList.map((item, index) => (
|
||||
// <div key={index}>
|
||||
// {item.dataName}
|
||||
// {" "}
|
||||
// 已于
|
||||
// {item.qualificationsTermEnd}
|
||||
// {" "}
|
||||
// 过期
|
||||
// </div>
|
||||
// ))}
|
||||
// </div>
|
||||
// )
|
||||
// : "部分资料已过期"
|
||||
// }
|
||||
// >
|
||||
// <span style={{ display: "inline-flex", alignItems: "center" }}>
|
||||
// 存在异常
|
||||
// {" "}
|
||||
// <WarningOutlined style={{ color: "#faad14", marginLeft: 4 }} />
|
||||
// </span>
|
||||
// </Tooltip>
|
||||
// )}
|
||||
// {(record.qualificationsStatus === 3 || record.qualificationsStatus === 4) && "资质过期"}
|
||||
// </div>
|
||||
// ),
|
||||
// },
|
||||
{
|
||||
title: "操作",
|
||||
fixed: "right",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import Page from "zy-react-library/components/Page";
|
|||
import Search from "zy-react-library/components/Search";
|
||||
import DictionarySelect from "zy-react-library/components/Select/Dictionary";
|
||||
import Table from "zy-react-library/components/Table";
|
||||
import { FORM_ITEM_RENDER_ENUM } from "zy-react-library/enum/formItemRender";
|
||||
import useTable from "zy-react-library/hooks/useTable";
|
||||
import { NS_QUALIFICATION_RECORDS } from "~/enumerate/namespace";
|
||||
|
||||
|
|
@ -35,16 +34,16 @@ function List(props) {
|
|||
render: (<DictionarySelect dictValue="qualificationsType" />),
|
||||
},
|
||||
{ name: "stakeholderLevel", label: "资质等级", render: (<DictionarySelect dictValue="stakeholderLevel" />) },
|
||||
{
|
||||
name: "auditStatus",
|
||||
label: "审核状态",
|
||||
render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||
items: [
|
||||
{ bianma: "200-200", name: "主管部门审核中" },
|
||||
{ bianma: "200-300", name: "主管部门已驳回" },
|
||||
{ bianma: "400", name: "已完成" },
|
||||
],
|
||||
},
|
||||
// {
|
||||
// name: "auditStatus",
|
||||
// label: "审核状态",
|
||||
// render: FORM_ITEM_RENDER_ENUM.SELECT,
|
||||
// items: [
|
||||
// { bianma: "200-200", name: "主管部门审核中" },
|
||||
// { bianma: "200-300", name: "主管部门已驳回" },
|
||||
// { bianma: "400", name: "已完成" },
|
||||
// ],
|
||||
// },
|
||||
]}
|
||||
form={form}
|
||||
onFinish={getData}
|
||||
|
|
@ -102,10 +101,10 @@ function List(props) {
|
|||
dataIndex: "auditProcess",
|
||||
render: (_, record) => (
|
||||
<div>
|
||||
{record.auditProcess === "100" && "集团单位"}
|
||||
{record.status === 100 && "待审核"}
|
||||
{record.status === 200 && "审核中"}
|
||||
{record.status === 300 && "已驳回"}
|
||||
{/* {record.auditProcess === "100" && "集团单位"} */}
|
||||
{/* {record.status === 100 && "待审核"} */}
|
||||
{/* {record.status === 200 && "审核中"} */}
|
||||
{/* {record.status === 300 && "已驳回"} */}
|
||||
{record.status === 400 && "已通过"}
|
||||
</div>
|
||||
),
|
||||
|
|
@ -117,7 +116,7 @@ function List(props) {
|
|||
width: 130,
|
||||
render: (_, record) => (
|
||||
<Space>
|
||||
{props.permission("zrzz-sdgs-zrzzjl-btn-ck") && (
|
||||
{props.permission("zrzz-wzzx-zrzzjl-btn-ck") && (
|
||||
<Button
|
||||
type="link"
|
||||
onClick={() => {
|
||||
|
|
@ -63,8 +63,8 @@ function List(props) {
|
|||
// { title: "备注", dataIndex: "remarks" },
|
||||
{ title: "审核状态", dataIndex: "status", render: (_, record) => (
|
||||
<>
|
||||
{record.status === 200 && "审核中"}
|
||||
{record.status === 300 && "已驳回"}
|
||||
{record.status === 200 && `${record.auditProcess === 100 ? "集团单位" : "审核部门"}审核中`}
|
||||
{record.status === 300 && `${record.auditProcess === 200 ? "集团单位" : "审核部门"}已驳回`}
|
||||
{record.status === 400 && "已通过"}
|
||||
</>
|
||||
) },
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ function List(props) {
|
|||
{
|
||||
title: "所属集团单位",
|
||||
dataIndex: "groupUnitName",
|
||||
render: (_, record) => record.stakeholderLevel === "one-level" ? "--" : record.groupUnitName,
|
||||
render: (_, record) => record.stakeholderLevel === "one-level" ? "-" : record.groupUnitName,
|
||||
},
|
||||
{ title: "资质名称", dataIndex: "qualificationsName" },
|
||||
{ title: "资质类别", dataIndex: "qualificationsTypeName" },
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ function ViewInfo(props) {
|
|||
styles={{ label: { width: 200 }, content: { width: 500 } }}
|
||||
items={[
|
||||
{ label: "相关方名称", children: info.corpName },
|
||||
{ label: "所属集团单位", children: info.groupUnitName },
|
||||
{ label: "直属审核单位", children: info.groupUnitName },
|
||||
{ label: "资质名称", children: info.qualificationsName },
|
||||
{ label: "资质类别", children: info.qualificationsTypeName },
|
||||
{ label: "资质等级", children: info.stakeholderLevelName },
|
||||
|
|
@ -114,14 +114,14 @@ function ViewInfo(props) {
|
|||
<div className="info">{item.auditUserName}</div>
|
||||
<div className="info">{item.auditCorpDeptName}</div>
|
||||
<div className="info">{item.auditCorpName}</div>
|
||||
{
|
||||
item.auditRemarks && (
|
||||
<div className="info">
|
||||
驳回原因:
|
||||
{item.auditRemarks}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
{/* { */}
|
||||
{/* item.auditRemarks && ( */}
|
||||
{/* <div className="info"> */}
|
||||
{/* 驳回原因: */}
|
||||
{/* {item.auditRemarks} */}
|
||||
{/* </div> */}
|
||||
{/* ) */}
|
||||
{/* } */}
|
||||
<div className="info">{item.auditTime}</div>
|
||||
</div>
|
||||
{index !== info.processFlow.length - 1 && <div className="line" />}
|
||||
|
|
|
|||
Loading…
Reference in New Issue