预审评委会修改,去掉无用代码
This commit is contained in:
@ -33,35 +33,18 @@ const Config: React.FC<{}> = () => {
|
||||
roomType = getURLInformation("roomType");
|
||||
}
|
||||
//查评分办法和采购方式
|
||||
//TODO zyx假数据 start
|
||||
// getBizInfo(bizId).then((res) => {
|
||||
let methodT = false;
|
||||
// if (res.code == 200) {
|
||||
// const data = res.data;
|
||||
const data = {
|
||||
"createBy": "ex-wanghy623", "createDate": "2025-05-09 08:58:57",
|
||||
"updateBy": "ex-wanghy623", "updateDate": null, "tenantId": "ebtp_mall", "tenantName": "ebtp_mall", "deleteFlag": "normal",
|
||||
"lastUpdateTime": "2024-10-28 15:56:21", "id": "1920644626720436224", "projectId": "1920644626460389376",
|
||||
"bidSectBizNum": "ZX36102410002138", "bidSectCode": 1, "bidSectName": "测试001", "bidSectContent": null, "bidSectTypeDict": null,
|
||||
"bidSectContractPrice": 1000.00000, "contractPriceCurrencyDict": null, "selectionMethod": null, "reviewRules": null,
|
||||
"priceUnitDict": null, "bidderQual": null, "quotationMethodDict": "quotation_method_2", "tenderOpeningTime": null,
|
||||
"ptcpMode": null, "ptcpCount": null, "businessModule": 8, "status": 2, "attDatasetId": null, "checkMethodDict": null,
|
||||
"chooseProcess": "choose_process_4", "reviewReportId": null, "sectionNumber": null, "evalMethodDict": "eval_method_2",
|
||||
"procurementTypeDict": null, "miitSectionId": null, "monetaryUnit": null, "remarks": null, "parentSectionId": "1916736930678689792",
|
||||
"projectPlanId": "1850785019690168356", "subprojectId": "1850783951401635842", "isAnnouncement": null, "priceCeiling": 800.00000,
|
||||
"priceCeilingExplain": null, "isStructureQuote": "1", "structureQuoteModel": "003", "structureQuoteLimitType": "002",
|
||||
"bidNumberIsDefinite": "1", "projBidRatioInfoVoList": [], "bidDefiniteNumber": "2", "structureNote": null,
|
||||
"basePriceUnitLimit": null, "materialList": [], "purcModel": null, "preBidAnalysisFlag": 0, "quotePreResultFlag": "0"
|
||||
};
|
||||
//TODO zyx假数据 end
|
||||
if (roomType == '2') {
|
||||
data.evalMethodDict === 'eval_method_2' ? methodT = true : null;//评分办法 1最低价 2综合评估
|
||||
}
|
||||
data.ptcpMode === 'ptcp_mode_2' ? methodT = true : null;//采购方式 1合格制 2有限数量制
|
||||
// }
|
||||
methodSet(methodT);
|
||||
// });
|
||||
//TODO zyx假数据 end
|
||||
getBizInfo(bizId).then((res) => {
|
||||
let methodT = false;
|
||||
if (res.code == 200) {
|
||||
const data = res.data;
|
||||
console.log("data",data)
|
||||
if (roomType == '2') {
|
||||
data.evalMethodDict === 'eval_method_2' ? methodT = true : null;//评分办法 1最低价 2综合评估
|
||||
}
|
||||
data.ptcpMode === 'ptcp_mode_2' ? methodT = true : null;//采购方式 1合格制 2有限数量制
|
||||
}
|
||||
methodSet(methodT);
|
||||
});
|
||||
|
||||
}, [])
|
||||
return (
|
||||
|
@ -455,7 +455,6 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
|
||||
const juryNumber = parseInt(uniqueJuryNumbers[0]) || 0;
|
||||
const repNumber = parseInt(form.getFieldValue('representativeNumber')) || 0;
|
||||
|
||||
|
||||
if (repNumber < 0 || repNumber > juryNumber) {
|
||||
message.error(`直接录入数量应在 0 ~ ${juryNumber} 之间`);
|
||||
@ -469,11 +468,11 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
};
|
||||
|
||||
// 在 useEffect 中监听依赖项
|
||||
useEffect(() => {
|
||||
if (Array.isArray(sections) && sections.length > 0) {
|
||||
calculateExpertNumber();
|
||||
}
|
||||
}, [form.getFieldValue('representativeNumber'), checkedList, sections]);
|
||||
// useEffect(() => {
|
||||
// if (Array.isArray(sections) && sections.length > 0) {
|
||||
// calculateExpertNumber();
|
||||
// }
|
||||
// }, [form.getFieldValue('representativeNumber'), checkedList, sections]);
|
||||
const tab1 = () => {//cqtab1
|
||||
return (
|
||||
<>
|
||||
@ -600,20 +599,7 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
rules={[...rule(`直接录入数量`), { pattern: /^([1-9]?\d|100)$/, message: '请输入正确数值' }]}
|
||||
{...formLayout}
|
||||
>
|
||||
<Input style={{ width: "90%" }} type="number" disabled={disabled} placeholder={`直接录入数量`}
|
||||
// onChange={(e) => {
|
||||
// const value = e.target.value;
|
||||
// if (value && !checkedList?.length) {
|
||||
// form.resetFields(['representativeNumber']);
|
||||
// message.error("请先选择关联标段");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// 继续触发计算
|
||||
// form.setFieldsValue({ representativeNumber: value });
|
||||
// calculateExpertNumber();
|
||||
// }}
|
||||
/>
|
||||
<Input style={{ width: "90%" }} type="number" disabled={disabled} placeholder={`直接录入数量`}/>
|
||||
</FormItem></Col>
|
||||
<Col span={12}>
|
||||
<FormItem
|
||||
@ -622,7 +608,7 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
rules={[...rule('抽取数量'), { pattern: /^([1-9]?\d|100)$/, message: '请输入正确数值' }]}
|
||||
{...formLayout}
|
||||
>
|
||||
<Input style={{ width: "90%" }} type="number" />
|
||||
<Input style={{ width: "90%" }} type="number" disabled={disabled} placeholder={`专家抽取数量`} />
|
||||
</FormItem>
|
||||
</Col>
|
||||
<Col span={24}>
|
||||
@ -668,13 +654,6 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
}}
|
||||
</Form.Item>
|
||||
</Col>
|
||||
{/* <Col span={12}><FormItem
|
||||
name="description"
|
||||
label="申请要求"
|
||||
rules={[{ type: 'string', message: '请输入正确内容' }, { max: 100, message: '内容超长' }]}
|
||||
>
|
||||
<Input style={{ width: "90%" }} disabled={disabled} />
|
||||
</FormItem></Col> */}
|
||||
</Row>
|
||||
</Form>
|
||||
</>
|
||||
@ -698,13 +677,16 @@ const JudgingPanel: React.FC<{}> = () => {
|
||||
valueType: 'select',
|
||||
valueEnum: professionalMap,
|
||||
width: '30%',
|
||||
fieldProps: {
|
||||
disabled: disabled // 查看时禁用选择
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '人数',
|
||||
dataIndex: 'extractNumber',
|
||||
width: '30%',
|
||||
renderFormItem: (_, { record }) => {
|
||||
return <InputNumber min={0} addonAfter="人" />;
|
||||
return <InputNumber min={0} addonAfter="人" disabled={disabled} />;
|
||||
},
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user