This commit is contained in:
cun-nan 2024-03-11 11:36:07 +08:00
parent 4233e5bdf1
commit 4dbf96ae32
2 changed files with 9 additions and 8 deletions

View File

@ -246,7 +246,7 @@
</el-form-item>
<el-form-item v-if="form.memberDayType=='1'" prop="monthDay">
<el-checkbox-group v-model="monthDay" @change="changeMonth">
<el-checkbox v-for="item in 31" :key="item" :label="item">{{item}}</el-checkbox>
<el-checkbox v-for="item in 31" :key="item" :label="item+''">{{item}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item v-if="form.memberDayType=='2'" prop="weekDay">

View File

@ -234,7 +234,7 @@
</el-form-item>
<el-form-item v-if="form.memberDayType=='1'" prop="monthDay">
<el-checkbox-group v-model="monthDay">
<el-checkbox v-for="item in 31" :key="item" :label="item">{{item}}</el-checkbox>
<el-checkbox v-for="item in 31" :key="item" :label="item+''">{{item}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item v-if="form.memberDayType=='2'" prop="weekDay">
@ -392,6 +392,9 @@ export default {
naturalUserLevel:[
{ required: true, message: '不能为空', trigger: 'change' }
],
memberDayType:[
{ required: true, message: '不能为空', trigger: 'change' }
],
participationCondition:[
{ required: true, message: '不能为空', trigger: 'change' }
],
@ -424,7 +427,6 @@ export default {
},
getoilName(){
getoilName().then(res=>{
console.log(res)
this.oillist = res.data
})
@ -533,20 +535,19 @@ export default {
this.reset();
const id = row.id || this.ids
getActiveFullminus(id).then(response => {
console.log(response)
this.form = response.data;
if (response.data.activeDiscountChildList && response.data.activeDiscountChildList.length>0){
this.activeDiscountChildList = response.data.activeDiscountChildList
}else {
this.activeDiscountChildList = [ {amount:'',deductionAmount:''}, ]
}
if (this.form.monthDay){
this.monthDay = this.form.monthDay.split(",")
if (response.data.monthDay){
this.monthDay = response.data.monthDay.split(",")
}else {
this.monthDay = []
}
if (this.form.weekDay){
this.weekDay = this.form.weekDay.split(",")
if (response.data.weekDay){
this.weekDay = response.data.weekDay.split(",")
}else {
this.weekDay = []
}