更新
This commit is contained in:
parent
6fe9ee6142
commit
05bf13f861
@ -639,6 +639,28 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
|
<el-table-column
|
||||||
|
key="single_price_ss"
|
||||||
|
v-if="$store.state.user.merchantType.type_code == 'TypeSupplyChain'"
|
||||||
|
align="center"
|
||||||
|
label="单个售价"
|
||||||
|
min-width="80"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.single_price }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$store.state.user.merchantType.type_code == 'TypeSupplyChain'"
|
||||||
|
key="single_procure_price_ss"
|
||||||
|
align="center"
|
||||||
|
label="单个批发价"
|
||||||
|
min-width="80"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.single_procure_price }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- 多规格表格-->
|
<!-- 多规格表格-->
|
||||||
@ -767,6 +789,28 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</template>
|
</template>
|
||||||
|
<el-table-column
|
||||||
|
key="single_price_dd"
|
||||||
|
v-if="$store.state.user.merchantType.type_code == 'TypeSupplyChain'"
|
||||||
|
align="center"
|
||||||
|
label="单个售价"
|
||||||
|
min-width="80"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.single_price }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
v-if="$store.state.user.merchantType.type_code == 'TypeSupplyChain'"
|
||||||
|
key="single_procure_price_dd"
|
||||||
|
align="center"
|
||||||
|
label="单个批发价"
|
||||||
|
min-width="80"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.single_procure_price }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
key="3"
|
key="3"
|
||||||
align="center"
|
align="center"
|
||||||
@ -1293,6 +1337,7 @@ const defaultObj = {
|
|||||||
cost: null,
|
cost: null,
|
||||||
ot_price: null,
|
ot_price: null,
|
||||||
procure_price: null,
|
procure_price: null,
|
||||||
|
single_number: null,
|
||||||
svip_price: null,
|
svip_price: null,
|
||||||
stock: null,
|
stock: null,
|
||||||
bar_code: '',
|
bar_code: '',
|
||||||
@ -1328,6 +1373,9 @@ const objTitle = {
|
|||||||
procure_price: {
|
procure_price: {
|
||||||
title: '批发价'
|
title: '批发价'
|
||||||
},
|
},
|
||||||
|
single_number: {
|
||||||
|
title: '单件数量'
|
||||||
|
},
|
||||||
svip_price: {
|
svip_price: {
|
||||||
title: '付费会员价'
|
title: '付费会员价'
|
||||||
},
|
},
|
||||||
@ -1552,6 +1600,7 @@ export default {
|
|||||||
cost: null,
|
cost: null,
|
||||||
ot_price: null,
|
ot_price: null,
|
||||||
procure_price: null,
|
procure_price: null,
|
||||||
|
single_number: null,
|
||||||
stock: null,
|
stock: null,
|
||||||
bar_code: '',
|
bar_code: '',
|
||||||
weight: null,
|
weight: null,
|
||||||
@ -1603,6 +1652,9 @@ export default {
|
|||||||
// console.log(this.$store.state.user.merchantType.type_code); // 店铺类型, 非市级供应链不显示批发价
|
// console.log(this.$store.state.user.merchantType.type_code); // 店铺类型, 非市级供应链不显示批发价
|
||||||
if (this.$store.state.user.merchantType.type_code != 'TypeSupplyChain') {
|
if (this.$store.state.user.merchantType.type_code != 'TypeSupplyChain') {
|
||||||
delete this.attrVal.procure_price
|
delete this.attrVal.procure_price
|
||||||
|
delete this.attrVal.single_number
|
||||||
|
delete this.attrVal.single_procure_price
|
||||||
|
delete this.attrVal.single_price
|
||||||
}
|
}
|
||||||
this.formValidate.slider_image = []
|
this.formValidate.slider_image = []
|
||||||
if (this.$route.params.id) {
|
if (this.$route.params.id) {
|
||||||
@ -2388,7 +2440,8 @@ export default {
|
|||||||
}
|
}
|
||||||
let priceObj = {
|
let priceObj = {
|
||||||
price: false,
|
price: false,
|
||||||
procure_price: false
|
procure_price: false,
|
||||||
|
single_number: false,
|
||||||
}
|
}
|
||||||
this.formValidate.attrValue.forEach(e => {
|
this.formValidate.attrValue.forEach(e => {
|
||||||
if (!e.price || e.price == 0) priceObj.price = true;
|
if (!e.price || e.price == 0) priceObj.price = true;
|
||||||
@ -2396,6 +2449,7 @@ export default {
|
|||||||
})
|
})
|
||||||
if (priceObj.price) return Message.error('零售价不能为小于等于0');
|
if (priceObj.price) return Message.error('零售价不能为小于等于0');
|
||||||
if (priceObj.procure_price && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('批发价不能为小于等于0');
|
if (priceObj.procure_price && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('批发价不能为小于等于0');
|
||||||
|
if (priceObj.single_number && this.$store.state.user.merchantType.type_code == 'TypeSupplyChain') return Message.error('单件数量不能为小于等于0');
|
||||||
this.$refs[name].validate(valid => {
|
this.$refs[name].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.validateAttr();
|
this.validateAttr();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user