相关方资质申请 需求变更
parent
ae6730336e
commit
6a1cb98da0
|
|
@ -8,3 +8,7 @@ export const qualificationRecordsHistoryList = declareRequest(
|
||||||
"qualificationRecordsLoading",
|
"qualificationRecordsLoading",
|
||||||
`Post > @/xgfManager/qualificationsApply/batchListByApplyId`,
|
`Post > @/xgfManager/qualificationsApply/batchListByApplyId`,
|
||||||
);
|
);
|
||||||
|
export const qualificationsApplyEntrustRecordList = declareRequest(
|
||||||
|
"qualificationRecordsLoading",
|
||||||
|
`Post > @/xgfManager/qualificationsApply/entrustRecordList`,
|
||||||
|
);
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./view?id=${record.id}`);
|
props.history.push(`../ViewInfo?id=${record.id}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,14 @@ function View(props) {
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
{ label: "资质名称", children: info.qualificationsName },
|
{ label: "资质名称", children: info.qualificationsName },
|
||||||
{ label: "维修、保养", children: info.maintainName },
|
|
||||||
{ label: "检测", children: info.detectionName },
|
...(
|
||||||
{ label: "其它高风险业务", children: info.otherHighRiskName },
|
info.qualificationsTypeId === "sbl" ? [
|
||||||
|
{label: "维修、保养", children: info.maintainName && info.maintainName.join(" , ")},
|
||||||
|
{label: "检测", children: info.detectionName && info.detectionName.join(" , ")},
|
||||||
|
{label: "其它高风险业务", children: info.otherHighRiskName && info.otherHighRiskName.join(" , "), span: 2},
|
||||||
|
] : []
|
||||||
|
),
|
||||||
{ label: "备注", children: info.remarks },
|
{ label: "备注", children: info.remarks },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,17 @@ function List(props) {
|
||||||
width: 100,
|
width: 100,
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
|
{/*{*/}
|
||||||
|
{/* props.permission("zrzz-jtgs-xgfzrzzsh-btn-ck") && */}
|
||||||
|
{/*}*/}
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => {
|
||||||
|
props.history.push(`../ViewInfo?id=${record.id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</Button>
|
||||||
{props.permission("zrzz-jtgs-xgfzrzzsh-btn-sh") && (
|
{props.permission("zrzz-jtgs-xgfzrzzsh-btn-sh") && (
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ function List(props) {
|
||||||
<Button
|
<Button
|
||||||
type="link"
|
type="link"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.history.push(`./view?id=${record.id}`);
|
props.history.push(`../ViewInfo?id=${record.id}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,75 @@
|
||||||
|
import { WarningOutlined } from "@ant-design/icons";
|
||||||
|
import { Permission } from "@cqsjjb/jjb-common-decorator/permission";
|
||||||
|
import { Connect } from "@cqsjjb/jjb-dva-runtime";
|
||||||
|
import { Button, Form, Space, Tooltip } from "antd";
|
||||||
|
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 useTable from "zy-react-library/hooks/useTable";
|
||||||
|
import { NS_QUALIFICATION_RECORDS } from "~/enumerate/namespace";
|
||||||
|
|
||||||
|
function List(props) {
|
||||||
|
const [form] = Form.useForm();
|
||||||
|
const { tableProps, getData } = useTable(props["qualificationsApplyEntrustRecordList"], {
|
||||||
|
form,
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page isShowAllAction={false}>
|
||||||
|
<Search
|
||||||
|
labelCol={{ span: 8 }}
|
||||||
|
options={[
|
||||||
|
{ name: "qualificationsName", label: "资质名称" },
|
||||||
|
{
|
||||||
|
name: "qualificationsTypeId",
|
||||||
|
label: "资质类别",
|
||||||
|
render: (<DictionarySelect dictValue="qualificationsType" />),
|
||||||
|
},
|
||||||
|
{ name: "stakeholderLevel", label: "资质等级", render: (<DictionarySelect dictValue="stakeholderLevel" />) },
|
||||||
|
|
||||||
|
]}
|
||||||
|
form={form}
|
||||||
|
onFinish={getData}
|
||||||
|
/>
|
||||||
|
<Table
|
||||||
|
columns={[
|
||||||
|
{ title: "相关方名称", dataIndex: "corpName" },
|
||||||
|
{ title: "所属集团单位", dataIndex: "groupUnitName" },
|
||||||
|
{ title: "资质名称", dataIndex: "qualificationsName" },
|
||||||
|
{ title: "资质类别", dataIndex: "qualificationsTypeName" },
|
||||||
|
{ title: "资质等级", dataIndex: "stakeholderLevelName" },
|
||||||
|
{ title: "材料数", dataIndex: "materialNum" },
|
||||||
|
{ title: "委托人", dataIndex: "entrustUserName" },
|
||||||
|
{ title: "被委托公司", dataIndex: "entrustCorpName" },
|
||||||
|
{ title: "审核人", dataIndex: "auditUserName" },
|
||||||
|
|
||||||
|
// { title: "时效性", dataIndex: "qualificationsTermStart", render: (_, record) => record.qualificationsTermStart ? `${record.qualificationsTermStart}至${record.qualificationsTermEnd}` : "-" },
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
fixed: "right",
|
||||||
|
width: 130,
|
||||||
|
render: (_, record) => (
|
||||||
|
<Space>
|
||||||
|
{/*{props.permission("jgd-zzzwtjl-ck") && (*/}
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => {
|
||||||
|
props.history.push(`../ViewInfo?id=${record.id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</Button>
|
||||||
|
{/*)}*/}
|
||||||
|
</Space>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
{...tableProps}
|
||||||
|
/>
|
||||||
|
</Page>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Connect([NS_QUALIFICATION_RECORDS], true)(Permission(List));
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
function CommissionRecord(props) {
|
||||||
|
return (<div>{props.children}</div>);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default CommissionRecord;
|
||||||
|
|
@ -174,52 +174,7 @@ function Add(props) {
|
||||||
},
|
},
|
||||||
|
|
||||||
{ name: "managerUserName", label: "审核人名称", onlyForLabel: true },
|
{ name: "managerUserName", label: "审核人名称", onlyForLabel: true },
|
||||||
{
|
|
||||||
name: "maintain",
|
|
||||||
label: "维修、保养",
|
|
||||||
render: (
|
|
||||||
<DictionarySelect
|
|
||||||
dictValue="maintain"
|
|
||||||
disabled={query.id}
|
|
||||||
mode="multiple"
|
|
||||||
onGetLabel={(label) => {
|
|
||||||
form.setFieldValue("maintainName", label);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
|
|
||||||
},
|
|
||||||
{ name: "maintainName", label: "维修、保养名称", onlyForLabel: true, componentProps: { disabled: query.id } },
|
|
||||||
{
|
|
||||||
name: "detection",
|
|
||||||
label: "检测",
|
|
||||||
render: (
|
|
||||||
<DictionarySelect
|
|
||||||
dictValue="detection"
|
|
||||||
disabled={query.id}
|
|
||||||
mode="multiple"
|
|
||||||
onGetLabel={(label) => {
|
|
||||||
form.setFieldValue("detectionName", label);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{ name: "detectionName", label: "检测名称", onlyForLabel: true, componentProps: { disabled: query.id } },
|
|
||||||
{
|
|
||||||
name: "otherHighRisk",
|
|
||||||
label: "其它高风险业务",
|
|
||||||
render: (
|
|
||||||
<DictionarySelect
|
|
||||||
dictValue="otherHighRisk"
|
|
||||||
disabled={query.id}
|
|
||||||
mode="multiple"
|
|
||||||
onGetLabel={(label) => {
|
|
||||||
form.setFieldValue("otherHighRiskName", label);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
},
|
|
||||||
{ name: "otherHighRiskName", label: "其它高风险业务名称", onlyForLabel: true, componentProps: { disabled: query.id } },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "shareDeptId",
|
name: "shareDeptId",
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,17 @@ function List(props) {
|
||||||
width: 150,
|
width: 150,
|
||||||
render: (_, record) => (
|
render: (_, record) => (
|
||||||
<Space>
|
<Space>
|
||||||
|
{/*{*/}
|
||||||
|
{/* props.permission("gfd-zrzzsh-ck") &&*/}
|
||||||
|
{/*}*/}
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={() => {
|
||||||
|
props.history.push(`../ViewInfo?id=${record.id}`);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
查看
|
||||||
|
</Button>
|
||||||
{
|
{
|
||||||
(record.entrustAudit === 200 && props.permission("gfd-zrzzsh-wt")) &&
|
(record.entrustAudit === 200 && props.permission("gfd-zrzzsh-wt")) &&
|
||||||
<Button
|
<Button
|
||||||
|
|
|
||||||
|
|
@ -92,9 +92,16 @@ function ViewInfo(props) {
|
||||||
{ label: "资质类别", children: info.qualificationsTypeName },
|
{ label: "资质类别", children: info.qualificationsTypeName },
|
||||||
{ label: "资质等级", children: info.stakeholderLevelName },
|
{ label: "资质等级", children: info.stakeholderLevelName },
|
||||||
{ label: "材料数", children: info.materialNum },
|
{ label: "材料数", children: info.materialNum },
|
||||||
{ label: "维修、保养", children: info.maintainName },
|
|
||||||
{ label: "检测", children: info.detectionName },
|
...(
|
||||||
{ label: "其它高风险业务", children: info.otherHighRiskName,span:2 },
|
info.qualificationsTypeId === "sbl" ? [
|
||||||
|
{label: "维修、保养", children: info.maintainName && info.maintainName.join(" , ")},
|
||||||
|
{label: "检测", children: info.detectionName && info.detectionName.join(" , ")},
|
||||||
|
{label: "其它高风险业务", children: info.otherHighRiskName && info.otherHighRiskName.join(" , "), span: 2},
|
||||||
|
] : []
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
{ label: "备注", children: info.remarks ,span:2 },
|
{ label: "备注", children: info.remarks ,span:2 },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue