商品管理编辑更新,修复单规格多规格切换保存报错问题,增加部分必填项验证

This commit is contained in:
2024-10-15 15:22:37 +08:00
parent 24f34e8f8c
commit a5091f8f2d
5 changed files with 323 additions and 171 deletions

View File

@@ -28,16 +28,17 @@ export const $types = [{
// 商品默认sku
export const $defaultSku = {
salePrice: 0,
memberPrice: 0,
costPrice: 0,
originPrice: 0,
stockNumber: 0,
firstShared: 0,
suit: 0,
salePrice: '',
memberPrice: '',
costPrice: '',
originPrice: '',
stockNumber: '',
firstShared: '',
suit: 1,
barCode: `${uni.getStorageSync("shopId")}${dayjs().valueOf()}`,
}
// 库存记录筛选类型
export const $invoicingType = [{
text: '全部',