Merge branch '20220620-详审打分无最低分校验' into 'release_20220624'
6.24 详审打分无最低分校验 See merge request eshop/fe_service_ebtp_frontend!139
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload, Tooltip } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getEval, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getEval, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
||||||
@ -218,7 +218,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
title: showNameT.tbr + '报价(元)',
|
title: showNameT.tbr + '报价(元)',
|
||||||
dataIndex: 'evaluatingContent',
|
dataIndex: 'evaluatingContent',
|
||||||
sorter: {
|
sorter: {
|
||||||
compare: (a, b) => a.evaluatingContent - b.evaluatingContent,
|
compare: (a: any, b: any) => a.evaluatingContent - b.evaluatingContent,
|
||||||
multiple: 2,
|
multiple: 2,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -921,13 +921,15 @@ const Index: React.FC<{}> = () => {
|
|||||||
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
<Input
|
<Input
|
||||||
disabled={disabled || endProgress}
|
disabled={disabled || endProgress}
|
||||||
min={1} max={record.highScore}
|
min={1} max={record.highScore}
|
||||||
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore)}
|
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore, record.lowScore)}
|
||||||
/>
|
/>
|
||||||
|
</Tooltip>
|
||||||
<br />
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
||||||
@ -936,7 +938,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Input disabled={disabled || endProgress} min={1} max={record.highScore} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore)} style={{ width: 160 }} /><br />
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
|
<Input disabled={disabled || endProgress} min={1} max={record.highScore} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore, record.lowScore)} style={{ width: 160 }} />
|
||||||
|
</Tooltip>
|
||||||
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -1246,7 +1251,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
setDataSource([...totalQualified])
|
setDataSource([...totalQualified])
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputChange = (e: any, val: any, id: any, sorce: any) => { // 输入框操作
|
const inputChange = (e: any, val: any, id: any, sorce: any, lowScore: any) => { // 输入框操作
|
||||||
let inpVal = e.target.value
|
let inpVal = e.target.value
|
||||||
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
||||||
if (inputNum.test(inpVal)) {
|
if (inputNum.test(inpVal)) {
|
||||||
@ -1254,6 +1259,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
message.error('输入分值不可大于最高分值!')
|
message.error('输入分值不可大于最高分值!')
|
||||||
inpVal = sorce
|
inpVal = sorce
|
||||||
}
|
}
|
||||||
|
if (Number(inpVal) < lowScore) {
|
||||||
|
message.error('输入分值不可小于最低分值!')
|
||||||
|
inpVal = lowScore
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error('请输入正确的分值!')
|
message.error('请输入正确的分值!')
|
||||||
inpVal = inpVal.substring(0, inpVal.length - 1)
|
inpVal = inpVal.substring(0, inpVal.length - 1)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload, Tooltip } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, findPriceScoreList, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile, calculationPriceScore, saveOffer, getPage, getProjectById, getOfferUrl } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
import FirstTrialTableDetailed from '../BidDetailedManager/module/FirstTrialTableDetailed';
|
||||||
@ -954,13 +954,15 @@ const Index: React.FC<{}> = () => {
|
|||||||
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
<Input
|
<Input
|
||||||
disabled={disabled || endProgress}
|
disabled={disabled || endProgress}
|
||||||
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore)}
|
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore, record.lowScore)}
|
||||||
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
||||||
/>
|
/>
|
||||||
|
</Tooltip>
|
||||||
<br />
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
||||||
@ -969,7 +971,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Input disabled={disabled || endProgress} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore)} style={{ width: 160 }} /><br />
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
|
<Input disabled={disabled || endProgress} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore, record.lowScore)} style={{ width: 160 }} />
|
||||||
|
</Tooltip>
|
||||||
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看{showNameT.tb}文件</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -1277,7 +1282,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
setDataSource([...totalQualified])
|
setDataSource([...totalQualified])
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputChange = (e: any, val: any, id: any, sorce: any) => { // 输入框操作
|
const inputChange = (e: any, val: any, id: any, sorce: any, lowScore: any) => { // 输入框操作
|
||||||
let inpVal = e.target.value
|
let inpVal = e.target.value
|
||||||
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
||||||
if (inputNum.test(inpVal)) {
|
if (inputNum.test(inpVal)) {
|
||||||
@ -1285,6 +1290,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
message.error('输入分值不可大于最高分值!')
|
message.error('输入分值不可大于最高分值!')
|
||||||
inpVal = sorce
|
inpVal = sorce
|
||||||
}
|
}
|
||||||
|
if (Number(inpVal) < lowScore) {
|
||||||
|
message.error('输入分值不可小于最低分值!')
|
||||||
|
inpVal = lowScore
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error('请输入正确的分值!')
|
message.error('请输入正确的分值!')
|
||||||
inpVal = inpVal.substring(0, inpVal.length - 1)
|
inpVal = inpVal.substring(0, inpVal.length - 1)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Pagination, Spin, Form, message, Upload, Tooltip } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getEval, getFile } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getEval, getFile } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import { getSessionUserData, getRoomId, getUserToken } from '@/utils/session';
|
import { getSessionUserData, getRoomId, getUserToken } from '@/utils/session';
|
||||||
@ -110,7 +110,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
category: typeCategory,
|
category: typeCategory,
|
||||||
judgesStatus: '1',
|
judgesStatus: '1',
|
||||||
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
||||||
assessRoomId: assessRoomId,
|
assessRoomId: assessRoomId,
|
||||||
}
|
}
|
||||||
submitDetail({ ...date }).then((res) => {
|
submitDetail({ ...date }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -138,7 +138,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
category: typeCategory,
|
category: typeCategory,
|
||||||
judgesStatus: '1',
|
judgesStatus: '1',
|
||||||
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
||||||
assessRoomId: assessRoomId,
|
assessRoomId: assessRoomId,
|
||||||
}
|
}
|
||||||
submitDetail({ ...date }).then((res) => {
|
submitDetail({ ...date }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -183,7 +183,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
category: typeCategory,
|
category: typeCategory,
|
||||||
judgesStatus: '1',
|
judgesStatus: '1',
|
||||||
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
bidEvalDetailDTOList: bidEvalDetailDTOList,
|
||||||
assessRoomId: assessRoomId,
|
assessRoomId: assessRoomId,
|
||||||
}
|
}
|
||||||
submitDetail({ ...date }).then((res) => {
|
submitDetail({ ...date }).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
@ -431,14 +431,16 @@ const Index: React.FC<{}> = () => {
|
|||||||
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
<Input
|
<Input
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
min={1} max={record.highScore}
|
min={1} max={record.highScore}
|
||||||
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore)}
|
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore, record.lowScore)}
|
||||||
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
||||||
/>
|
/>
|
||||||
|
</Tooltip>
|
||||||
<br />
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
||||||
@ -447,7 +449,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Input disabled={disabled} min={1} max={record.highScore} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore)} style={{ width: 160 }} /><br />
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
|
<Input disabled={disabled} min={1} max={record.highScore} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore, record.lowScore)} style={{ width: 160 }} />
|
||||||
|
</Tooltip>
|
||||||
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -727,7 +732,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
setDataSource([...totalQualified])
|
setDataSource([...totalQualified])
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputChange = (e: any, val: any, id: any, sorce: any) => { // 输入框操作
|
const inputChange = (e: any, val: any, id: any, sorce: any, lowScore: any) => { // 输入框操作
|
||||||
let inpVal = e.target.value
|
let inpVal = e.target.value
|
||||||
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
||||||
if (inputNum.test(inpVal)) {
|
if (inputNum.test(inpVal)) {
|
||||||
@ -735,6 +740,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
message.error('输入分值不可大于最高分值!')
|
message.error('输入分值不可大于最高分值!')
|
||||||
inpVal = sorce
|
inpVal = sorce
|
||||||
}
|
}
|
||||||
|
if (Number(inpVal) < lowScore) {
|
||||||
|
message.error('输入分值不可小于最低分值!')
|
||||||
|
inpVal = lowScore
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error('请输入正确的分值!')
|
message.error('请输入正确的分值!')
|
||||||
inpVal = inpVal.substring(0, inpVal.length - 1)
|
inpVal = inpVal.substring(0, inpVal.length - 1)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload } from 'antd';
|
import { Button, Table, Tabs, Space, Progress, Radio, Input, Checkbox, Select, Modal, Menu, Pagination, Spin, Form, message, Collapse, Upload, Tooltip } from 'antd';
|
||||||
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile } from './service';
|
import { getTabList, getProgress, getScoreDetail, getRegister, submitDetail, updateJudgesStatus, getMemberInfo, getEval, getUnlock, getCheckData, isStatus, getFile } from './service';
|
||||||
import '@/assets/ld_style.less'
|
import '@/assets/ld_style.less'
|
||||||
import FirstTrialTableLimitedQuantity from '../BidNumberManager/module/FirstTrialTableLimitedQuantity';
|
import FirstTrialTableLimitedQuantity from '../BidNumberManager/module/FirstTrialTableLimitedQuantity';
|
||||||
@ -458,13 +458,15 @@ const Index: React.FC<{}> = () => {
|
|||||||
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
if (record.scoreMap && record.scoreMap[item.supplierRegisterId]) {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
<Input
|
<Input
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
value={record.scoreMap[item.supplierRegisterId].resultValue}
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore)}
|
onChange={e => inputChange(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId, record.highScore, record.lowScore)}
|
||||||
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
// onFocus={e => inputFocus(e, record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}
|
||||||
/>
|
/>
|
||||||
|
</Tooltip>
|
||||||
<br />
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record.scoreMap[item.supplierRegisterId], item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
||||||
@ -473,7 +475,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Input disabled={disabled} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore)} style={{ width: 160 }} /><br />
|
<Tooltip trigger={['focus']} title={<span>评分区间:{record.lowScore}分~{record.highScore}分</span>} placement="topLeft">
|
||||||
|
<Input disabled={disabled} onChange={e => inputChange(e, record, item.supplierRegisterId, record.highScore, record.lowScore)} style={{ width: 160 }} />
|
||||||
|
</Tooltip>
|
||||||
|
<br />
|
||||||
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
<Button type="link" danger onClick={() => getRemark(record, item.supplierRegisterId)}>备注</Button>
|
||||||
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
<Button hidden={btnAuthority(['ebtp-expert'])} type="link" danger onClick={() => lookFile(record.id, item.supplierRegisterId)}>查看应答文件</Button>
|
||||||
</div>
|
</div>
|
||||||
@ -753,7 +758,7 @@ const Index: React.FC<{}> = () => {
|
|||||||
setDataSource([...totalQualified])
|
setDataSource([...totalQualified])
|
||||||
}
|
}
|
||||||
|
|
||||||
const inputChange = (e: any, val: any, id: any, sorce: any) => { // 输入框操作
|
const inputChange = (e: any, val: any, id: any, sorce: any, lowScore: any) => { // 输入框操作
|
||||||
let inpVal = e.target.value
|
let inpVal = e.target.value
|
||||||
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
let inputNum = /^(\-|\+?)\d{0,4}(\.\d{0,5})?$/
|
||||||
if (inputNum.test(inpVal)) {
|
if (inputNum.test(inpVal)) {
|
||||||
@ -761,6 +766,10 @@ const Index: React.FC<{}> = () => {
|
|||||||
message.error('输入分值不可大于最高分值!')
|
message.error('输入分值不可大于最高分值!')
|
||||||
inpVal = sorce
|
inpVal = sorce
|
||||||
}
|
}
|
||||||
|
if (Number(inpVal) < lowScore) {
|
||||||
|
message.error('输入分值不可小于最低分值!')
|
||||||
|
inpVal = lowScore
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
message.error('请输入正确的分值!')
|
message.error('请输入正确的分值!')
|
||||||
inpVal = inpVal.substring(0, inpVal.length - 1)
|
inpVal = inpVal.substring(0, inpVal.length - 1)
|
||||||
|
Reference in New Issue
Block a user