商品编辑和添加隐藏成本和售出

This commit is contained in:
duan 2024-09-03 16:18:25 +08:00
parent 8ae5c20714
commit 1cfec880ca
1 changed files with 2 additions and 5 deletions

View File

@ -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 {