|
@@ -1707,7 +1707,12 @@ Mock.mock(/\/api\/coupon-audit\/list/, 'get', (options) => {
|
|
|
const productId = url.searchParams.get('productId') || ''
|
|
const productId = url.searchParams.get('productId') || ''
|
|
|
// 券码审核类型暂时仅保留「导入」,回收相关类型先去掉
|
|
// 券码审核类型暂时仅保留「导入」,回收相关类型先去掉
|
|
|
let filtered = couponAuditList.filter(a => a.type === 'import')
|
|
let filtered = couponAuditList.filter(a => a.type === 'import')
|
|
|
- if (auditStatus) filtered = filtered.filter(a => a.auditStatus === auditStatus)
|
|
|
|
|
|
|
+ if (auditStatus === 'reviewed') {
|
|
|
|
|
+ // 已审核 = 审核通过 + 审核驳回
|
|
|
|
|
+ filtered = filtered.filter(a => a.auditStatus === 'approved' || a.auditStatus === 'rejected')
|
|
|
|
|
+ } else if (auditStatus) {
|
|
|
|
|
+ filtered = filtered.filter(a => a.auditStatus === auditStatus)
|
|
|
|
|
+ }
|
|
|
if (productId) filtered = filtered.filter(a => a.productId === productId)
|
|
if (productId) filtered = filtered.filter(a => a.productId === productId)
|
|
|
return { code: 200, data: filtered, msg: 'ok' }
|
|
return { code: 200, data: filtered, msg: 'ok' }
|
|
|
})
|
|
})
|