新增批发价

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