fix
parent
81d563036f
commit
3fbe3acbd8
|
|
@ -90,7 +90,7 @@ function FiledManageListPage(props) {
|
|||
<FilingListTable
|
||||
PageLayout={PageLayout}
|
||||
listTitle="已备案资质管理"
|
||||
listDesc="对已备案资质进行周期性填报与维护。"
|
||||
|
||||
createLabel="资质备案填报"
|
||||
mode={FILING_FORM_MODE.FILED}
|
||||
dataSource={dataSource}
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ function FilingApplicationListPage(props) {
|
|||
<FilingListTable
|
||||
PageLayout={PageLayout}
|
||||
listTitle="资质备案申请"
|
||||
listDesc="机构提交资质备案申请,填写备案基本信息、材料、人员及装备清单。"
|
||||
|
||||
createLabel="申请备案"
|
||||
mode={FILING_FORM_MODE.APPLICATION}
|
||||
dataSource={dataSource}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ function FilingChangeListPage(props) {
|
|||
<FilingListTable
|
||||
PageLayout={PageLayout}
|
||||
listTitle="备案变更管理"
|
||||
listDesc="对已备案资质发起变更申请,查看变更次数与变更明细。"
|
||||
|
||||
mode={FILING_FORM_MODE.CHANGE}
|
||||
showChangeCount
|
||||
dataSource={dataSource}
|
||||
|
|
@ -90,18 +90,7 @@ function FilingChangeListPage(props) {
|
|||
onSearch={handleSearch}
|
||||
onPageChange={handlePageChange}
|
||||
onChangeCountClick={(record) => setHistoryRecord(record)}
|
||||
extraActions={(record) =>
|
||||
[ 1,3].includes(record.filingStatusCode) ? (
|
||||
<Button
|
||||
type="link"
|
||||
size="small"
|
||||
|
||||
onClick={() => handleStartChange(record)}
|
||||
>
|
||||
修改备案信息
|
||||
</Button>
|
||||
) : null
|
||||
}
|
||||
|
||||
/>
|
||||
<ChangeHistoryModal
|
||||
open={!!historyRecord}
|
||||
|
|
|
|||
|
|
@ -36,10 +36,11 @@ export default function FilingListTable({
|
|||
|
||||
const canEditRow = (record) => {
|
||||
|
||||
if (mode === FILING_FORM_MODE.FILED) {
|
||||
return record.filingStatusCode === 1;
|
||||
if (mode === FILING_FORM_MODE.CHANGE) {
|
||||
|
||||
return [1,3,5].includes(record.filingStatusCode);
|
||||
}
|
||||
return isQualFilingEditable(record.filingStatusCode);
|
||||
return [3,5].includes(record.filingStatusCode);
|
||||
};
|
||||
|
||||
const columns = [
|
||||
|
|
@ -102,7 +103,7 @@ export default function FilingListTable({
|
|||
查看
|
||||
</Button>
|
||||
{extraActions?.(record)}
|
||||
{canEditRow(record) && mode !== FILING_FORM_MODE.CHANGE && (
|
||||
{canEditRow(record) && (
|
||||
<Button
|
||||
type="link"
|
||||
size="small"
|
||||
|
|
|
|||
Loading…
Reference in New Issue