8.3 bug修改
This commit is contained in:
@ -109,8 +109,8 @@ const BidAssessmentResults: React.FC<{}> = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//确认评审结果ListRender封装
|
//确认评审结果ListRender封装
|
||||||
const ResultListRender = (props: { item: any, setSpintype: (value: boolean) => void, getResultList: (record: any) => void, ListData: any, pushResult: (record: any) => void }) => {
|
const ResultListRender = (props: { item: any, setRefresh: () => void, getResultList: (record: any) => void, ListData: any, pushResult: (record: any) => void }) => {
|
||||||
const { item, setSpintype, getResultList, ListData, pushResult } = props;
|
const { item, setRefresh, getResultList, ListData, pushResult } = props;
|
||||||
//单一来源简化
|
//单一来源简化
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
//综合得分展开关闭
|
//综合得分展开关闭
|
||||||
@ -395,9 +395,8 @@ const BidAssessmentResults: React.FC<{}> = (props) => {
|
|||||||
<Button
|
<Button
|
||||||
hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase']) || defId != 'negotiation_single_simple' || item1.pushStatus == "1"}
|
hidden={btnAuthority(['ebtp-agency-project-manager', 'ebtp-purchase']) || defId != 'negotiation_single_simple' || item1.pushStatus == "1"}
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={async () => {
|
onClick={() => {
|
||||||
setSpintype(true);
|
form.validateFields().then(async () => {
|
||||||
await form.validateFields().then(async () => {
|
|
||||||
await saveResult({
|
await saveResult({
|
||||||
id: form.getFieldValue("resultId"),
|
id: form.getFieldValue("resultId"),
|
||||||
suppliers: [
|
suppliers: [
|
||||||
@ -411,9 +410,9 @@ const BidAssessmentResults: React.FC<{}> = (props) => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
if (res.success) { message.success('保存成功!') }
|
if (res.success) { message.success('保存成功!'); setRefresh(); }
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}).finally(() => setSpintype(false));
|
|
||||||
}}
|
}}
|
||||||
>保存</Button>
|
>保存</Button>
|
||||||
{
|
{
|
||||||
@ -463,7 +462,7 @@ const BidAssessmentResults: React.FC<{}> = (props) => {
|
|||||||
<Collapse activeKey={collapseActiveKeys} onChange={onCollapseChange} className="calibration-panel">
|
<Collapse activeKey={collapseActiveKeys} onChange={onCollapseChange} className="calibration-panel">
|
||||||
{ListData.map((item, index) => (
|
{ListData.map((item, index) => (
|
||||||
<Panel header={item.sectionName} key={index}>
|
<Panel header={item.sectionName} key={index}>
|
||||||
<ResultListRender item={item} setSpintype={(value) => { setSpintype(value); }} getResultList={getResultList} ListData={ListData} pushResult={pushResult} />
|
<ResultListRender item={item} setRefresh={() => { setRefresh(Refresh + 1); }} getResultList={getResultList} ListData={ListData} pushResult={pushResult} />
|
||||||
</Panel>
|
</Panel>
|
||||||
))}
|
))}
|
||||||
</Collapse>
|
</Collapse>
|
||||||
|
Reference in New Issue
Block a user