35 lines
833 B
JavaScript
35 lines
833 B
JavaScript
export const SPEC_TYPE = [
|
||
{
|
||
label: '单规格',
|
||
value: false,
|
||
},
|
||
{
|
||
label: '多规格',
|
||
value: true,
|
||
},
|
||
]
|
||
|
||
// sku 相关属性校验
|
||
export const SKU_RULE_CONFIG = [
|
||
{
|
||
name: 'stock',
|
||
rule: (arg) => arg >= 0,
|
||
message: '商品库存必须大于等于 1 !!!',
|
||
},
|
||
{
|
||
name: 'price',
|
||
rule: (arg) => arg >= 0.01,
|
||
message: '商品销售价格必须大于等于 0.01 元!!!',
|
||
},
|
||
{
|
||
name: 'marketPrice',
|
||
rule: (arg) => arg >= 0.01,
|
||
message: '商品市场价格必须大于等于 0.01 元!!!',
|
||
},
|
||
{
|
||
name: 'costPrice',
|
||
rule: (arg) => arg >= 0.01,
|
||
message: '商品成本价格必须大于等于 0.00 元!!!',
|
||
},
|
||
]
|