fix(worker): 整单验收不再被拼单份额防呆拦截
This commit is contained in:
@@ -324,7 +324,8 @@ export default function WorkerOrdersPage() {
|
||||
|
||||
function openAcceptanceModal(order: WorkOrder) {
|
||||
const shares = getOrderShares(order)
|
||||
if (shares.length === 0) {
|
||||
// 整单(非拼单)本来就没有份额,不能拦;只有拼单订单缺份额时才提示刷新。
|
||||
if (shares.length === 0 && order.sharing?.enabled === true) {
|
||||
message.warning('未找到可验收的拼单份额,请刷新后重试')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user