@@ -957,7 +968,8 @@ const productForm = reactive({
recommend: false,
recommend_rebate: 0,
arg_type: 'all', // 商品参数类型 all/plan/customize
- attribution_id: '' // 归属项ID
+ attribution_id: '', // 归属项ID
+ sold_out: false
})
const productRules = {
@@ -1261,7 +1273,8 @@ const handleEdit = (row) => {
expire_time: row.expireTime,
recommend: row.recommend,
recommend_rebate: row.recommendRebate,
- arg_type: row.argType || 'all'
+ arg_type: row.argType || 'all',
+ sold_out: !!row.soldOut
})
coverPreviewUrl.value = row.cover || ''
}