修改计费逻辑

This commit is contained in:
wuweihua
2026-11-12 11:07:13 +08:00
parent 17ee9731e8
commit d2c75e0c51
7 changed files with 57 additions and 14 deletions
@@ -128,10 +128,9 @@ function statusTag(status) {
return map[String(status)] || 'info'
}
/** 待生效、已生效:可编辑价卡 */
/** 不限状态:待生效/已生效/已失效均可编辑价卡 */
function canEdit(row) {
const s = row ? String(row.status) : ''
return s === '0' || s === '1'
return !!row
}
/** 仅待生效可改生效时间 */
+1 -1
View File
@@ -192,7 +192,7 @@ function openCreateVersion() {
})
}
/** 编辑待生效/已生效版本价卡 */
/** 编辑版本价卡(不限状态) */
function openEditVersion(row) {
if (!priceSetId.value || !row?.versionNo) return
proxy.$router.push({