Compare commits

...

2 Commits

Author SHA1 Message Date
01f0638a37 fix(store): 修复获取店员列表时缺少店铺ID参数问题
- 移除调用 listShopStoreUser 时的 storeId 参数
- 解决因参数传递导致的加载店员失败问题
- 保持加载和错误提示逻辑不变
2026-07-17 11:24:06 +08:00
197722adeb fix(orders): 修复确认完成按钮显示逻辑
- 调整确认完成按钮的注释缩进,提升代码可读性
- 保持确认完成按钮仅在已付款状态下显示
- 未改变按钮显示的实际逻辑行为
2026-07-17 04:01:38 +08:00

View File

@@ -135,14 +135,14 @@ function getOrderActions(order: ShopOrder): { label: string; type: OpType }[] {
if (!order.payStatus && order.payType === 9 && order.orderStatus === 0) { if (!order.payStatus && order.payType === 9 && order.orderStatus === 0) {
actions.push({label: '确认收款', type: 'confirmPay'}) actions.push({label: '确认收款', type: 'confirmPay'})
} }
// 确认完成:仅在确认收款后显示(已付款才能确认完成)
if (order.payStatus) {
actions.push({label: '确认完成', type: 'complete'})
}
// 发货确认收款后、且尚未发货deliveryStatus<20时显示 // 发货确认收款后、且尚未发货deliveryStatus<20时显示
if (order.payStatus && (order.deliveryStatus == null || order.deliveryStatus < 20) && order.orderStatus !== 1) { if (order.payStatus && (order.deliveryStatus == null || order.deliveryStatus < 20) && order.orderStatus !== 1) {
actions.push({label: '发货', type: 'ship'}) actions.push({label: '发货', type: 'ship'})
} }
// 确认完成:仅在确认收款后显示(已付款才能确认完成)
if (order.payStatus) {
actions.push({label: '确认完成', type: 'complete'})
}
return actions return actions
} }
@@ -462,7 +462,7 @@ export default function StoreOrdersPage() {
setShowShipModal(true) setShowShipModal(true)
setLoadingClerks(true) setLoadingClerks(true)
try { try {
const res = await listShopStoreUser({storeId: order.storeId}) const res = await listShopStoreUser()
setClerkList(res || []) setClerkList(res || [])
} catch (e) { } catch (e) {
Taro.showToast({title: '加载店员失败', icon: 'none'}) Taro.showToast({title: '加载店员失败', icon: 'none'})