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:
@@ -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: ''
|
||||
|
||||
Reference in New Issue
Block a user