Commit 408039a8 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理采购下单支付比例校验

parent 7d644fd7
...@@ -161,9 +161,10 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => { ...@@ -161,9 +161,10 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
history.goBack() history.goBack()
}, 1000) }, 1000)
} }
} else {
message.error(res.message)
} }
// else {
// message.error(res.message)
// }
}) })
} }
} }
...@@ -189,8 +190,6 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => { ...@@ -189,8 +190,6 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
}).then(res => { }).then(res => {
if(res.code === 1000) { if(res.code === 1000) {
setCreditInfo(res.data) setCreditInfo(res.data)
} else {
message.error(res.message)
} }
setIsSpin(false) setIsSpin(false)
}) })
......
...@@ -223,7 +223,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => { ...@@ -223,7 +223,7 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
throw new Error('请选择支付方式或支付渠道') throw new Error('请选择支付方式或支付渠道')
} }
let judgementByRatio = params.paymentInformationResponses.map(item => { let judgementByRatio = params.paymentInformationResponses.map(item => {
if(Number(item.payRatio) > 0 && Number(item.payRatio) < 100){ if(Number(item.payRatio) > 0 && Number(item.payRatio) <= 100){
return true return true
} else { } else {
return false return false
......
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