Commit 6fcbaa0e authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 修改渠道积分商品禁用会员折扣,招标提交评标报告线下模式显示评分项

parent 9ac7e002
......@@ -491,7 +491,7 @@ const ModifyDirectChannel:React.FC<{}> = () => {
label="会员折扣"
valuePropName="checked"
>
<Checkbox>允许使用会员折扣价购买</Checkbox>
<Checkbox disabled={priceTypeRef.current === 3}>允许使用会员折扣价购买</Checkbox>
</Form.Item>
</Form>
<Button onClick={()=>setVisibleAddSpec(true)} style={{width:'100%', marginBottom: 24, backgroundColor: '#fafbfc'}}>
......
......@@ -92,7 +92,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle, editable})
console.log(dataSource, computedScore, dataBySort, 'computedScore')
setEvaluationRecord(dataBySort)
// 线下评标或者线上评标但是没有去评 评分项Radio来自评标模板接口
// 线下评标 评分项Radio来自评标模板接口
if(data?.templateId) {
PublicApi.getPurchaseTemplateGetTemplate({id: data.templateId}).then(res => {
const { code, data } = res
......@@ -343,7 +343,10 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle, editable})
<h3 className="commonPanelTitle">评标记录</h3>
<Radio.Group value={transferRadio} buttonStyle="solid" size="small" onChange={handleChangeType}>
{
Object.keys(evaluationRecord).map((item, index) => (typeof item === "undefined" ? <Radio.Button key={index} value={index}>{item}</Radio.Button> : null))
data?.isOnlineEvaluation ?
Object.keys(evaluationRecord).map((item, index) => ( item === 'undefined' ? null : <Radio.Button key={index} value={index}>{item}</Radio.Button>))
:
templateSort.map((item, index) => <Radio.Button key={index} value={index}>{item['sort']}</Radio.Button>)
}
</Radio.Group>
</div>
......@@ -367,7 +370,8 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle, editable})
};
});
if(transferRadio === index) {
// if(transferRadio === index) {
if(transferRadio === index || !data?.isOnlineEvaluation) {
return <Table
key={index}
components={components}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment