用户修改
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
:title="!dataForm.id ? '新增' : '修改'"
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="visible"
|
||||
@close="handleClose"
|
||||
width="900px"
|
||||
>
|
||||
<el-form
|
||||
@@ -175,8 +176,8 @@
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="region" label="赠送">
|
||||
<template slot-scope="scope">
|
||||
<el-table-column prop="region" label="赠送">
|
||||
<template slot-scope="scope">
|
||||
<el-checkbox-group @change="manjianSChange(scope.$index)" v-model="dataForm.activedContent.chongZList[scope.$index].gift.code">
|
||||
<el-checkbox
|
||||
v-for="item in zengsongCodeList"
|
||||
@@ -580,7 +581,7 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
<el-button @click="handleClose">取消</el-button>
|
||||
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
@@ -759,6 +760,51 @@ export default {
|
||||
this.getActivityOprateType();
|
||||
});
|
||||
},
|
||||
handleClose(){
|
||||
console.log('关闭了')
|
||||
this.$refs['dataForm'].resetFields()
|
||||
this.dataForm.activityType = "0"
|
||||
this.dataForm.activityManner = "1"
|
||||
this.dataForm.productImages = ""
|
||||
this.dataForm.activedeProductsImgList = []
|
||||
this.dataForm.activedContent.shopProd = {
|
||||
// zengsongCode:[],
|
||||
ACProductsList:[],
|
||||
couponList:[],
|
||||
zProductsList:[],
|
||||
point:null
|
||||
}
|
||||
this.dataForm.activedContent.registerObj = {
|
||||
// 注册活动
|
||||
zengsongCode: [],
|
||||
zProductsList: [], // 赠送商品列表
|
||||
couponList: [], // 优惠券列表
|
||||
point:null
|
||||
}
|
||||
this.dataForm.activedContent.chongzhiMJList = [
|
||||
{
|
||||
// 充值阶梯满减List
|
||||
region: null,
|
||||
value: null
|
||||
}
|
||||
]
|
||||
this.dataForm.activedContent.chongZList = [ // 满额赠送
|
||||
{
|
||||
region: null,
|
||||
gift: {
|
||||
// 赠品
|
||||
code: [], // 赠品状态码
|
||||
Productslist: [], // 赠送商品列表
|
||||
Pointnumber: null, // 赠送的积分数 int
|
||||
couponlist: [], // 赠送优惠券列表
|
||||
}
|
||||
}
|
||||
]
|
||||
this.dataForm.activedContent.vipCharge = [{ // vip充值
|
||||
chargeType: '',
|
||||
zpoint:null
|
||||
}]
|
||||
},
|
||||
deleteMECoupon(index, rowindex) {
|
||||
this.dataForm.activedContent.chongZList[index].gift.couponlist.splice(rowindex,1)
|
||||
},
|
||||
@@ -805,6 +851,7 @@ export default {
|
||||
this.dataForm.activedContent.chongZList.splice(index,1)
|
||||
},
|
||||
manjianSChange(index){
|
||||
console.log('点击了')
|
||||
if (this.dataForm.activedContent.chongZList[index].gift.code.includes('coupon')) {
|
||||
} else {
|
||||
this.dataForm.activedContent.chongZList[index].gift.couponlist = []
|
||||
@@ -827,18 +874,18 @@ export default {
|
||||
this.dataForm.activedContent.chongZList[index].gift.Productslist.splice(rowindex,1)
|
||||
},
|
||||
zengpinTypeChange() {
|
||||
console.log(this.dataForm.activedContent.zengsongCode);
|
||||
if (this.dataForm.activedContent.zengsongCode.includes('coupon')) {
|
||||
// console.log(this.dataForm.activedContent.registerObj.zengsongCode);
|
||||
if (this.dataForm.activedContent.registerObj.zengsongCode.includes('coupon')) {
|
||||
this.couponButtonShow = true;
|
||||
} else {
|
||||
this.couponButtonShow = false;
|
||||
}
|
||||
if (this.dataForm.activedContent.zengsongCode.includes('point')) {
|
||||
if (this.dataForm.activedContent.registerObj.zengsongCode.includes('point')) {
|
||||
this.pointButtonShow = true;
|
||||
} else {
|
||||
this.pointButtonShow = false;
|
||||
}
|
||||
if (this.dataForm.activedContent.zengsongCode.includes('products')) {
|
||||
if (this.dataForm.activedContent.registerObj.zengsongCode.includes('products')) {
|
||||
this.proButtonShow = true;
|
||||
} else {
|
||||
this.proButtonShow = false;
|
||||
|
||||
Reference in New Issue
Block a user