Commit 45a3e716 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 隐藏账期月结到付支付方式

parent ed8fad19
......@@ -84,6 +84,8 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
const { id } = usePageStatus()
const { data, payList, currentPayInfoId } = useContext(OrderDetailContext)
const transformPayList: any = data ? formatting(payList, "payType") : []
/** 先隐藏账期月结 */
delete transformPayList['-1']
console.log(transformPayList, 'trans')
const [visible, setVisible] = useState(false)
const [checked, setChecked] = useState<any>({})
......@@ -446,11 +448,11 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
<div className={style.radioBox}>
{
(value as any[]).map(v => {
// if(payOnReceived && v.value === 7) { // 过滤到付
// return null
// } else {
if(payOnReceived && v.value === 7) { // 过滤到付
return null
} else {
return <div key={v.value} className={cx(style.payRadio, (checked && v.value === checked.id) ? style.active : '')} onClick={() => setChecked({ id: v.value, channel: v.channel })}>{v.label}</div>
// }
}
})
}
</div>
......
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