diff --git a/src/views/commodity/combination.vue b/src/views/commodity/combination.vue index 86e525a..11578f4 100644 --- a/src/views/commodity/combination.vue +++ b/src/views/commodity/combination.vue @@ -203,7 +203,9 @@ export default { data.goodsSkus = [] data.itemInfo = { sort: 0, - status: 1 + status: 1, + goods_cost: 0, + freight_cost: 0 } data.showDialog = true } @@ -219,7 +221,7 @@ export default { function commitOpa() { if(!data.itemInfo.goods_cost || data.itemInfo.goods_cost * 1 == 0) { - return ElMessage({ type: 'info', message: '商品成本必填' }) + // return ElMessage({ type: 'info', message: '商品成本必填' }) } data.opa_loading = true let params = { diff --git a/src/views/commodity/sku.vue b/src/views/commodity/sku.vue index 8e8ffc1..7cfee03 100644 --- a/src/views/commodity/sku.vue +++ b/src/views/commodity/sku.vue @@ -403,7 +403,7 @@ export default { function commitOpa() { if(!data.itemInfo.goods_cost || data.itemInfo.goods_cost * 1 == 0) { - return ElMessage({ type: 'info', message: '商品成本必填' }) + // return ElMessage({ type: 'info', message: '商品成本必填' }) } data.opa_loading = true let params = {