商城测试版v6
This commit is contained in:
@@ -22,10 +22,11 @@ type Param = {
|
||||
is_return?: true|false, //是否申请了售后
|
||||
|
||||
},
|
||||
showStatus?: 'detail'|'list', //订单详情,订单列表
|
||||
onClick?: (val: number) => void //点击后触发的事件,返回订单状态
|
||||
}
|
||||
|
||||
export default memo(({orderInfo, onClick}:Param) => {
|
||||
export default memo(({orderInfo, showStatus = 'detail', onClick}:Param) => {
|
||||
//订单状态枚举
|
||||
const {
|
||||
SaleOrderStatusBooking,
|
||||
@@ -126,6 +127,13 @@ export default memo(({orderInfo, onClick}:Param) => {
|
||||
return orderStatus.includes(orderInfo.status)
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
label: '销售码单',
|
||||
validatarFunc: (orderInfo) => {
|
||||
return orderInfo.actual_amount > 0 && orderInfo.wait_pay_amount == 0 && showStatus == 'detail'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
label: '去付款',
|
||||
@@ -142,7 +150,8 @@ export default memo(({orderInfo, onClick}:Param) => {
|
||||
]
|
||||
return orderInfo.wait_pay_amount != 0 && orderStatus.includes(orderInfo.status)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
])
|
||||
|
||||
//显示的按钮数组
|
||||
|
||||
Reference in New Issue
Block a user