新增批发价

This commit is contained in:
weipengfei 2024-03-19 14:25:17 +08:00
parent b3477f03fe
commit 70d5e103d5

View File

@ -1555,6 +1555,7 @@ const defaultObj = {
{
image: '',
price: null,
wholesale_price: null,
cost: null,
ot_price: null,
svip_price: null,
@ -1582,11 +1583,8 @@ const objTitle = {
price: {
title: '售价'
},
cost: {
title: '成本价'
},
ot_price: {
title: '市场价'
wholesale_price: {
title: '批发价'
},
svip_price: {
title: '付费会员价'
@ -1602,7 +1600,13 @@ const objTitle = {
},
volume: {
title: '体积(m³)'
}
},
cost: {
title: '成本价'
},
ot_price: {
title: '市场价'
},
}
const proOptions = [{ name: '店铺推荐', value: 'is_good' }]
export default {
@ -1811,6 +1815,7 @@ export default {
modals: false,
attrVal: {
price: null,
wholesale_price: null,
cost: null,
ot_price: null,
stock: null,
@ -1842,6 +1847,7 @@ export default {
attr:"全部",
image: "",
price: "",
wholesale_price: "",
cost: "",
ot_price: "",
svip_price: "",
@ -2314,6 +2320,7 @@ export default {
const rep4 = {
image: '',
price: 0,
wholesale_price: 0,
cost: 0,
ot_price: 0,
select: true,
@ -2351,6 +2358,7 @@ export default {
res[kk] = {
image: '',
price: 0,
wholesale_price: 0,
cost: 0,
ot_price: 0,
select: true,
@ -2375,6 +2383,7 @@ export default {
that.generateArr.forEach((v, i) => {
res[i]['image'] = v.pic
res[i]['price'] = v.price
res[i]['wholesale_price'] = v.wholesale_price
res[i]['cost'] = v.cost
res[i]['ot_price'] = v.ot_price
res[i]['sku'] = v.sku
@ -2617,6 +2626,7 @@ export default {
this.formThead.svip_price = { title: "付费会员价" }
this.attrVal = {
price: null,
wholesale_price: null,
cost: null,
ot_price: null,
svip_price: null,
@ -2638,6 +2648,7 @@ export default {
delete this.formThead.svip_price
this.attrVal = {
price: null,
wholesale_price: null,
cost: null,
ot_price: null,
stock: null,
@ -2679,6 +2690,7 @@ export default {
if(this.oneFormBatch[0].attr!= '')this.$set(val, 'attr', this.oneFormBatch[0].attr)
if(this.oneFormBatch[0].image!= '')this.$set(val, 'image', this.oneFormBatch[0].image)
if(this.oneFormBatch[0].price!= null && this.oneFormBatch[0].price!= '')this.$set(val, 'price', this.oneFormBatch[0].price)
if(this.oneFormBatch[0].wholesale_price!= null && this.oneFormBatch[0].wholesale_price!= '')this.$set(val, 'wholesale_price', this.oneFormBatch[0].wholesale_price)
if(this.oneFormBatch[0].cost!= null && this.oneFormBatch[0].cost!= '')this.$set(val, 'cost', this.oneFormBatch[0].cost)
if(this.oneFormBatch[0].ot_price!= null && this.oneFormBatch[0].ot_price!= '')this.$set(val, 'ot_price', this.oneFormBatch[0].ot_price)
if(this.oneFormBatch[0].svip_price!= null && this.oneFormBatch[0].svip_price!= '')this.$set(val, 'svip_price', this.oneFormBatch[0].svip_price)
@ -2882,6 +2894,7 @@ export default {
if (info.svip_price_type != 0 && info.mer_svip_status)
this.attrVal = {
price: null,
wholesale_price: null,
cost: null,
ot_price: null,
svip_price: null,