Enhance price set import functionality with preview options and update handling. Added new endpoints for previewing product library pulls and Excel imports, along with support for update-only imports. Updated internationalization messages for import success and error scenarios.

This commit is contained in:
wuweihua
2026-09-30 16:15:44 +08:00
parent 90cde8da4a
commit 6e301ecee7
19 changed files with 1260 additions and 260 deletions
@@ -12,6 +12,20 @@ export const SET_TYPE = {
DISCOUNT: 'DISCOUNT'
}
/** Version create-price mode */
export const PRICE_BUILD_MODE = {
PULL: 'PULL',
IMPORT: 'IMPORT'
}
export function isPullBuildMode(mode) {
return mode === PRICE_BUILD_MODE.PULL
}
export function isImportBuildMode(mode) {
return mode === PRICE_BUILD_MODE.IMPORT
}
/** 套餐状态枚举:D 待启用 / A 审核中 / E 生效 / R 驳回 / S 已停用 */
export const SET_STATUS = {
DRAFT: 'D',
@@ -359,6 +373,7 @@ export function createEmptyBasicInfo() {
priceSetName: '',
setType: SET_TYPE.FIXED,
defaultDiscount: 88,
priceBuildMode: undefined,
effectiveDate: undefined,
expireDate: undefined,
priceSetNote: ''