fix
parent
70bee2fe2c
commit
96a70d39c3
|
|
@ -52,7 +52,9 @@ const splitContactNamePhone = (value) => {
|
|||
return {
|
||||
// 按首个 / 拆分;/后全部作为电话(剔除首尾空白),多余字符交给校验/提交时处理
|
||||
contactName: String(value).slice(0, idx).trim(),
|
||||
contactPhone: String(value).slice(idx + 1).trim(),
|
||||
contactPhone: String(value)
|
||||
.slice(idx + 1)
|
||||
.trim(),
|
||||
};
|
||||
}
|
||||
// 无分隔符:整体作为联系人姓名,电话置空(由校验拦截)
|
||||
|
|
@ -76,7 +78,9 @@ function OrgInfoPage(props) {
|
|||
setDetail(res.data);
|
||||
let attachmentUrls = res.data.attachmentUrls;
|
||||
if (typeof attachmentUrls === "string" && attachmentUrls) {
|
||||
try { attachmentUrls = JSON.parse(attachmentUrls); } catch {}
|
||||
try {
|
||||
attachmentUrls = JSON.parse(attachmentUrls);
|
||||
} catch {}
|
||||
}
|
||||
form.setFieldsValue({
|
||||
...res.data,
|
||||
|
|
@ -166,7 +170,7 @@ function OrgInfoPage(props) {
|
|||
};
|
||||
return (
|
||||
<PageLayout
|
||||
title='基础信息管理'
|
||||
title="基础信息管理"
|
||||
extra={
|
||||
hasExistingData &&
|
||||
!editing && (
|
||||
|
|
@ -179,10 +183,32 @@ function OrgInfoPage(props) {
|
|||
</Button>
|
||||
)
|
||||
}
|
||||
footer={
|
||||
editing && (
|
||||
<Space>
|
||||
<Button onClick={handleCancelEdit}>取消</Button>
|
||||
{!hasExistingData && (
|
||||
<Button loading={submitting} onClick={() => handleSave("draft")}>
|
||||
暂存
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="primary"
|
||||
loading={submitting}
|
||||
onClick={() => handleSave("submit")}
|
||||
>
|
||||
提交
|
||||
</Button>
|
||||
</Space>
|
||||
)
|
||||
}
|
||||
>
|
||||
<Form
|
||||
form={form}
|
||||
layout="vertical"
|
||||
disabled={!editing}
|
||||
scrollToFirstError
|
||||
>
|
||||
|
||||
|
||||
<Form form={form} layout="vertical" disabled={!editing} scrollToFirstError>
|
||||
<Row gutter={16}>
|
||||
{/* 2026-08-08 字段顺序严格对齐原型 institution.html 434-450 行 */}
|
||||
<Col span={12}>
|
||||
|
|
@ -299,7 +325,11 @@ function OrgInfoPage(props) {
|
|||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item name="fax" label="传真" rules={[{ required: true, message: "请输入传真" }]}>
|
||||
<Form.Item
|
||||
name="fax"
|
||||
label="传真"
|
||||
rules={[{ required: true, message: "请输入传真" }]}
|
||||
>
|
||||
<Input placeholder="请输入传真" allowClear maxLength={20} />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
|
|
@ -499,27 +529,7 @@ function OrgInfoPage(props) {
|
|||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
{editing && (
|
||||
<div style={{ marginTop: 24, textAlign: "center" }}>
|
||||
<Space>
|
||||
<Button onClick={handleCancelEdit}>取消</Button>
|
||||
{!hasExistingData && (
|
||||
<Button loading={submitting} onClick={() => handleSave("draft")}>
|
||||
暂存
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
type="primary"
|
||||
loading={submitting}
|
||||
onClick={() => handleSave("submit")}
|
||||
>
|
||||
提交
|
||||
</Button>
|
||||
</Space>
|
||||
</div>
|
||||
)}
|
||||
</Form>
|
||||
|
||||
</PageLayout>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ const ReviewModal = (props) => {
|
|||
footer={
|
||||
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8 }}>
|
||||
<Button onClick={onCancel}>取消</Button>
|
||||
{reviewResult !== 3 && (
|
||||
{reviewResult !== 2 && reviewResult !== 3 && (
|
||||
<Button loading={qualReviewSubmitLoading} onClick={handlePass} color="green" variant="solid">
|
||||
通过
|
||||
</Button>
|
||||
|
|
@ -244,32 +244,6 @@ const ReviewModal = (props) => {
|
|||
style={{ marginTop: "7px" }}
|
||||
scrollToFirstError
|
||||
>
|
||||
{/* 专家核验场景:审核结果 + 核验意见(2026-08-14 补充审核结果选项) */}
|
||||
{isExpert ? (
|
||||
<>
|
||||
<Form.Item
|
||||
label="审核结果"
|
||||
name="reviewResult"
|
||||
rules={[{ required: true, message: "请选择审核结果" }]}
|
||||
>
|
||||
<Select placeholder="请选择">
|
||||
{QUAL_RESULT_OPTIONS.map((item) => (
|
||||
<Select.Option key={item.value} value={item.value}>
|
||||
{item.label}
|
||||
</Select.Option>
|
||||
))}
|
||||
</Select>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="核验意见"
|
||||
name="expertOpinion"
|
||||
rules={[{ required: true, message: "请输入核验意见" }]}
|
||||
>
|
||||
<TextArea rows={3} placeholder="请输入核验意见..." maxLength={200} />
|
||||
</Form.Item>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<Form.Item
|
||||
label="审核结果"
|
||||
name="reviewResult"
|
||||
|
|
@ -284,8 +258,8 @@ const ReviewModal = (props) => {
|
|||
</Select>
|
||||
</Form.Item>
|
||||
|
||||
{/* 2026-08-14 指派专家:仅资质备案初审显示(原型 modal-review-action),备案变更/专家核验不显示 */}
|
||||
{!isChangeScene && (
|
||||
{/* 2026-08-14 指派专家:仅资质备案初审显示(非变更、非专家核验,原型 modal-review-action) */}
|
||||
{!isChangeScene && !isExpert && (
|
||||
<Form.Item
|
||||
label="指派专家"
|
||||
name="filingExpertId"
|
||||
|
|
@ -309,6 +283,15 @@ const ReviewModal = (props) => {
|
|||
</Form.Item>
|
||||
)}
|
||||
|
||||
{isExpert ? (
|
||||
<Form.Item
|
||||
label="核验意见"
|
||||
name="expertOpinion"
|
||||
rules={[{ required: true, message: "请输入核验意见" }]}
|
||||
>
|
||||
<TextArea rows={3} placeholder="请输入核验意见..." maxLength={200} />
|
||||
</Form.Item>
|
||||
) : (
|
||||
<Form.Item
|
||||
label="综合审核意见"
|
||||
name="reviewOpinion"
|
||||
|
|
@ -316,7 +299,6 @@ const ReviewModal = (props) => {
|
|||
>
|
||||
<TextArea rows={3} placeholder="请输入综合审核意见..." maxLength={200} />
|
||||
</Form.Item>
|
||||
</>
|
||||
)}
|
||||
</Form>
|
||||
</Modal>
|
||||
|
|
|
|||
Loading…
Reference in New Issue