评审规则设置

This commit is contained in:
jlzhangyx5
2025-06-11 14:39:30 +08:00
parent 300a9945cf
commit 380a850800
7 changed files with 127 additions and 54 deletions

View File

@ -397,7 +397,44 @@ const DetailedMain: React.FC<detailType> = (props) => {
}
}} value={parseInt(record.effectiveType)}>
<Radio className={styles.radioStyle} value={1}></Radio>
<Radio className={styles.radioStyle} value={2}><a className={styles.orange}></a></Radio>
<Radio className={styles.radioStyle} value={2} >
<div style={{ float: "right" }}>
<div style={{ float: "left" }}>
{returnInput(record, 'removeMaxNumber', 1, parseInt(record.effectiveType), record.removeMaxNumber, 2)} <a className={styles.orange}></a>
</div>
<div style={{ float: "left", marginLeft: '100px' }}>
</div>
</div>
<div >
<div style={{ float: "left", marginLeft: '24px' }}>
{returnInput(record, 'removeMinNumber', 1, parseInt(record.effectiveType), record.removeMinNumber, 2)} <a className={styles.orange}></a>
</div>
</div>
</Radio>
<div style={{ clear: 'both' }} />
<Radio className={styles.radioStyle} value={6}>
<div style={{ float: "right" }}>
<div style={{ float: "left" , marginLeft: '-7px' }}>
{returnInput(record, 'includeLowPrice', 1, parseInt(record.effectiveType), record.includeLowPrice, 6)} {/*TODO zyx-获取币种*/}
</div>
<div style={{ float: "left", marginLeft: '2px' }}>
<Radio.Group
disabled={hideOffer || dis}
value={parseInt(record.effectiveType) == 6 ? parseInt(record.includeLowStatus) : null}
onChange={(event) => {
const value = event.target.value;
if (value != undefined) {
record.includeLowStatus = value;
reTable();
}
}}
>
<Radio className={styles.radioStyle} value={1} checked ></Radio>
</Radio.Group>
</div>
</div>
</Radio>
{/* <Radio className={styles.radioStyle} value={2}>去掉最高和最低各一家后的<a className={styles.orange}>报价</a></Radio>
<Radio className={styles.radioStyle} value={3}>去掉最两家高和最低各一家后的<a className={styles.orange}>报价</a></Radio>
<Radio className={styles.radioStyle} value={4}>去掉最低一家后的<a className={styles.orange}>报价</a></Radio>
<Radio className={styles.radioStyle} value={5}>去掉最高一家后的<a className={styles.orange}>报价</a></Radio>
@ -444,7 +481,7 @@ const DetailedMain: React.FC<detailType> = (props) => {
</Radio.Group>
</div>
</div>
</Radio>
</Radio> */}
<div style={{ clear: 'both' }} />
<Radio className={styles.radioStyle} value={7}>{showNameT.pb}</Radio>
</Radio.Group>
@ -675,7 +712,7 @@ const DetailedMain: React.FC<detailType> = (props) => {
initialValue="请选择"
rules={[{ required: true, message: '请选择类别' }]}
>
<Select style={{ width: "80%" }}>
<Select style={{ width: "80%" }} placeholder="请选择">
<Option value="商务" key="addCateKey1"></Option>
<Option value="技术" key="addCateKey2"></Option>
<Option value="服务" key="addCateKey3"></Option>
@ -687,7 +724,7 @@ const DetailedMain: React.FC<detailType> = (props) => {
{({ getFieldValue }) => {
const selectedType = getFieldValue('type');
return (
selectedType !== '报价' && (
selectedType !== '报价' && selectedType!='请选择' && (
<Row>
<Col span={24}><FormItem
name="calculationMethod"
@ -1063,9 +1100,12 @@ const DetailedMain: React.FC<detailType> = (props) => {
useEffect(() => {
if (show !== '1') {
queryDetData();
detailTem().then(res => {
res?.code == 200 ? oidSet(res.data.documentCenterId) : null;
});
//TODO zyx 假数据-start
oidSet("1673219453012992001");
// detailTem().then(res => {
// res?.code == 200 ? oidSet(res.data.documentCenterId) : null;
// });
//TODO zyx 假数据-end
}
}, [show]);
@ -1256,6 +1296,8 @@ const DetailedMain: React.FC<detailType> = (props) => {
includeHighPrice: '',
includeLowStatus: 1,//最低价 含税不含税
includeLowPrice: '',
removeMaxNumber: '',
removeMinNumber: '',
}]
}
let data1T: any = [...data1]
@ -1416,6 +1458,8 @@ const DetailedMain: React.FC<detailType> = (props) => {
case 'priceMultiplierSecond': now.priceMultiplierSecond = value; break;
case 'lowScore': now.lowScore = value; break;
case 'lowScoreSecond': now.lowScoreSecond = value; break;
case 'removeMaxNumber': now.removeMaxNumber = value; break;
case 'removeMinNumber': now.removeMinNumber = value; break;
default: break;
}
setData4(data);

View File

@ -240,37 +240,39 @@ export const getTreeDataOut = async (assessRoomId: any, turnSort: any) => {
let data: any = [];
let rootT: any = [];
let childT: any = [];
await getTree({ assessRoomId: assessRoomId, turnSort: turnSort }).then((res) => {
if (res.data != undefined) {
res.data.map((item: any, index: any) => {
const title1 = item.name;
const key1 = item.id;
let children1: any = [];
if (item.children != undefined) {
const children = item.children.map((item: any, index: any) => {
const title2 = item.name;
const key2 = item.id;
let children2: any = [];
if (item.children != undefined) {
const children = item.children.map((item: any, index: any) => {
const title3 = item.name;
const key3 = item.id;
childT.push(key3)
return { title: title3, key: key3, pId: key2 }
});
children2 = children;
}
childT.push(key2)
return { title: title2, key: key2, children: children2, pId: key1 }
});
children1 = children;
}
const first = { title: title1, key: key1, children: children1, pId: null }
rootT.push(key1)
data.push(first);
});
}
})
//TODO zyx假数据-start
// await getTree({ assessRoomId: assessRoomId, turnSort: turnSort }).then((res) => {
// if (res.data != undefined) {
// res.data.map((item: any, index: any) => {
// const title1 = item.name;
// const key1 = item.id;
// let children1: any = [];
// if (item.children != undefined) {
// const children = item.children.map((item: any, index: any) => {
// const title2 = item.name;
// const key2 = item.id;
// let children2: any = [];
// if (item.children != undefined) {
// const children = item.children.map((item: any, index: any) => {
// const title3 = item.name;
// const key3 = item.id;
// childT.push(key3)
// return { title: title3, key: key3, pId: key2 }
// });
// children2 = children;
// }
// childT.push(key2)
// return { title: title2, key: key2, children: children2, pId: key1 }
// });
// children1 = children;
// }
// const first = { title: title1, key: key1, children: children1, pId: null }
// rootT.push(key1)
// data.push(first);
// });
// }
// })
//TODO zyx假数据-end
return { roots: rootT, childs: childT, treeData: data }
}
export default FileTree;

View File

@ -246,7 +246,7 @@ const FirstMain: React.FC<FirstType> = (props) => {
onClick={showConfirm}
>
</Button>
</Button>
}
<FileTree