Enhance product import validation by adding checks for duplicate country and weight band entries. Update related error messages in properties file. Introduce new method to delete auto fees while retaining manual entries during rebill operations. Update front-end components to manage build mode changes and ensure proper handling of product lists during price set creation.

This commit is contained in:
wuweihua
2026-10-09 15:51:21 +08:00
parent 94e7a18e0b
commit 853187ad58
11 changed files with 519 additions and 54 deletions
@@ -91,6 +91,17 @@ export function isPriceEditableVersion(row) {
return isDraftVersion(row) || isPendingVersion(row)
}
/**
* Build-mode cards stay visible; locked for enabled/expired versions (已生效/已失效).
* Draft / pending / create wizard remain selectable.
*/
export function isBuildModeLockedVersion(rowOrStatus) {
const s = rowOrStatus && typeof rowOrStatus === 'object' ? rowOrStatus.status : rowOrStatus
if (s == null || s === '') return false
const status = String(s)
return status === VER_STATUS.EFFECT || status === VER_STATUS.EXPIRED
}
export function nextVersionNo(versions) {
const seqs = (versions || []).map(v => Number(v.versionSeq) || 0)
const max = seqs.length ? Math.max.apply(null, seqs) : 0