feat(goods): 商品配置 复购专区默认比率 且当分红方式为比率时,区域分红不可编辑

This commit is contained in:
woody 2025-07-09 10:24:20 +08:00
parent 2f225fbeac
commit b1aef14cab
2 changed files with 10 additions and 4 deletions

View File

@ -134,7 +134,7 @@
style="width: 100%" style="width: 100%"
:controls="false" :controls="false"
clearable clearable
:disabled="methods == 0" :disabled="methods == 0 || form.areaIncomeType == 1"
:placeholder="'请输入'" :placeholder="'请输入'"
> >
<template v-if="form.areaIncomeType == 1" slot="append"> <template v-if="form.areaIncomeType == 1" slot="append">
@ -1152,6 +1152,8 @@ export default {
handleAreaIncomeTypeChange(val) { handleAreaIncomeTypeChange(val) {
if (val == 1) { if (val == 1) {
this.form.areaIncome = 0.5 this.form.areaIncome = 0.5
} else {
this.form.areaIncome = ''
} }
}, },
// getWaresSort() { // getWaresSort() {
@ -1447,7 +1449,8 @@ export default {
}, },
selSpecial(e) { selSpecial(e) {
if (e == 43) { if (e == 43) {
this.$set(this.form, 'areaIncomeType', 2) this.$set(this.form, 'areaIncomeType', 1)
this.$set(this.form, 'areaIncome', 0.5)
} }
this.get_hierarchy_list(e) this.get_hierarchy_list(e)
console.log( console.log(

View File

@ -128,7 +128,7 @@
style="width: 100%" style="width: 100%"
:controls="false" :controls="false"
clearable clearable
:disabled="methods == 0" :disabled="methods == 0 || form.areaIncomeType == 1"
:placeholder="'请输入'" :placeholder="'请输入'"
> >
<template v-if="form.areaIncomeType == 1" slot="append"> <template v-if="form.areaIncomeType == 1" slot="append">
@ -1049,6 +1049,8 @@ export default {
handleAreaIncomeTypeChange(val) { handleAreaIncomeTypeChange(val) {
if (val == 1) { if (val == 1) {
this.form.areaIncome = 0.5 this.form.areaIncome = 0.5
} else {
this.form.areaIncome = ''
} }
}, },
// getWaresSort() { // getWaresSort() {
@ -1241,7 +1243,8 @@ export default {
}, },
selSpecial(e) { selSpecial(e) {
if (e == 43) { if (e == 43) {
this.$set(this.form, 'areaIncomeType', 2) this.$set(this.form, 'areaIncomeType', 1)
this.$set(this.form, 'areaIncome', 0.5)
} }
this.get_hierarchy_list(e) this.get_hierarchy_list(e)
if ( if (