Commit bd7f0b1f authored by 卢均锐's avatar 卢均锐

fix: [22203] 修改竞价结果保存无法成功,报当前竞价单不是可审核状态,正确可以保存才对

-修改判断状态类型
parent c51739af
...@@ -296,7 +296,7 @@ const SearchDetail = () => { ...@@ -296,7 +296,7 @@ const SearchDetail = () => {
switch (pathPci) { switch (pathPci) {
case 'readyAdd': case 'readyAdd':
case 'readyAddShop': case 'readyAddShop':
if (button === 1) { if (button === '1') {
return ( return (
<Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm1' })} okText={intl.formatMessage({ id: 'detail.purchase.okText' })} cancelText={intl.formatMessage({ id: 'detail.purchase.cancelText' })} onConfirm={fetchSubmitBatch}> <Popconfirm title={intl.formatMessage({ id: 'table.purchase.popconfirm1' })} okText={intl.formatMessage({ id: 'detail.purchase.okText' })} cancelText={intl.formatMessage({ id: 'detail.purchase.cancelText' })} onConfirm={fetchSubmitBatch}>
<Button type='primary'> <Button type='primary'>
...@@ -321,7 +321,7 @@ const SearchDetail = () => { ...@@ -321,7 +321,7 @@ const SearchDetail = () => {
case 'readySubmitExamineResult': case 'readySubmitExamineResult':
return ( return (
<Button onClick={() => setUploadBidResultVisible(true)} type='primary'> <Button onClick={() => setUploadBidResultVisible(true)} type='primary'>
<CheckCircleOutlined /> {button === 1 ? intl.formatMessage({ id: 'table.purchase.eidt' }) : intl.formatMessage({ id: 'table.purchase.submit' })}{intl.formatMessage({ id: 'detail.purchase.bidResultLayout' })} <CheckCircleOutlined /> {button === '1' ? intl.formatMessage({ id: 'table.purchase.eidt' }) : intl.formatMessage({ id: 'table.purchase.submit' })}{intl.formatMessage({ id: 'detail.purchase.bidResultLayout' })}
</Button> </Button>
) )
case 'readyConfirm': case 'readyConfirm':
...@@ -600,7 +600,7 @@ const SearchDetail = () => { ...@@ -600,7 +600,7 @@ const SearchDetail = () => {
signUpIdea, signUpIdea,
urls urls
} }
const _fetch = button === 1 ? postPurchaseBiddingUpdateBiddingReturn : postPurchaseBiddingSubmitExamineBiddingReturn; const _fetch = button === '1' ? postPurchaseBiddingUpdateBiddingReturn : postPurchaseBiddingSubmitExamineBiddingReturn;
setConfirmLoading(true) setConfirmLoading(true)
_fetch(_params).then(res => { _fetch(_params).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
......
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