商品编辑和添加隐藏成本和售出
This commit is contained in:
parent
8ae5c20714
commit
1cfec880ca
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue