diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index 21cbef6..b42d0e5 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -1011,9 +1011,6 @@ export default { // 提交 submitHandle() { - console.log(this.form.skuList) - - // return const hasUndefined = this.form.skuList.some(obj => { for (const key in obj) { if (obj[key] === undefined) { @@ -1045,8 +1042,8 @@ export default { this.form.selectSpec = JSON.stringify(this.selectSpec); this.form.specTableHeaders = JSON.stringify(this.specTableHeaders); this.form.specInfo = JSON.stringify(this.form.skuList); - this.form.costPrice = 0 - this.form.originPrice = this.form.salePrice + this.form.skuList[0].costPrice = 0 + this.form.skuList[0].originPrice = this.form.skuList[0].salePrice if (this.form.id) { await tbProductPut(this.form); } else {