Commit df215095 authored by zhengke's avatar zhengke

修改

parent 9809a98a
...@@ -399,14 +399,14 @@ ...@@ -399,14 +399,14 @@
<distributePrice :shareGroup_list="shareGroup_list"></distributePrice> <distributePrice :shareGroup_list="shareGroup_list"></distributePrice>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="会员价设置"> <el-tab-pane label="会员价设置">
<memberPrice></memberPrice> <memberPrice :SpecificationPriceList="TempSpecPriceList" :SpecificationList="TempSpecList"></memberPrice>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-row> </el-row>
</el-form> </el-form>
<div class="bottom-div" flex="cross:center" style="margin-top:20px"> <div class="bottom-div" flex="cross:center" style="margin-top:20px">
<el-button size="small" class="button-item" type="primary" @click="SaveActivity()">保存</el-button> <el-button size="small" class="button-item" type="primary" @click="SaveActivity()">保存</el-button>
<el-button size="small" class="button-item">预览</el-button> <el-button size="small" class="button-item" style="margin-left:10px;">预览</el-button>
</div> </div>
</div> </div>
<!-- 选择商品 --> <!-- 选择商品 -->
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<el-tag>{{scope.row.GoodsStatusStr}}</el-tag> <el-tag>{{scope.row.GoodsStatusStr}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="address" label="操作" min-width="120"> <el-table-column prop="address" label="操作" min-width="130">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top"> <el-tooltip class="item" effect="dark" content="编辑" placement="top">
<img style="width:32px;height:32px;margin:0 10px" @click="CommonJump('pintuanActive',{Id:scope.row.ActivityId})" src="../../assets/img/userman/edit.png" alt=""> <img style="width:32px;height:32px;margin:0 10px" @click="CommonJump('pintuanActive',{Id:scope.row.ActivityId})" src="../../assets/img/userman/edit.png" alt="">
......
...@@ -2,36 +2,75 @@ ...@@ -2,36 +2,75 @@
<div> <div>
<el-form label-width="180px"> <el-form label-width="180px">
<el-form-item label="是否享受会员功能" size="small"> <el-form-item label="是否享受会员功能" size="small">
<el-switch :active-value="1" :inactive-value="0" v-model="msg.is_level"> <el-switch :active-value="1" :inactive-value="0" v-model="msg.EnjoyMember">
</el-switch> </el-switch>
<span class="red">注:必须在“<el-button type="text">拼团设置=>基础设置=>优惠叠加设置</el-button>
”中开启,才能使用</span>
</el-form-item> </el-form-item>
<el-form-item label="是否单独设置会员价" size="small"> <el-form-item label="是否单独设置会员价" size="small">
<el-switch :active-value="1" :inactive-value="0" v-model="msg.is_level_alone"> <el-switch :active-value="1" :inactive-value="0" v-model="msg.SeparateSetMember">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<el-form-item size="small"> <el-form-item v-if="msg.SeparateSetMember == 1 && huiyList.length == 0" label="会员价设置">
<el-tag type="danger">请先添加阶梯团</el-tag> <el-button @click="CommonJump('setMember')" size="small" type="danger">如需设置请先添加会员</el-button>
</el-form-item> </el-form-item>
<el-form-item label='会员价设置' size="small">
<el-button type="danger"> <el-form-item v-if="
如需设置,请先添加会员 msg.SeparateSetMember == 1 &&
</el-button> SpecificationPriceList.length > 0
" label="会员价设置">
<div class="app-attr">
<div class="box">
<el-form-item style="display:inline-block">
<el-input style="width:500px;position:relative;top:5px" size="small" v-model="memberinput"
placeholder="请输入内容">
<el-select slot="prepend" style="width:130px" v-model="memberVal" size="small">
<el-option v-for="(item, index) in huiyList" :label="item.Name" :value="item.Grade" :key="index">
</el-option>
</el-select>
<el-button @click="HySet" slot="append">确定</el-button>
</el-input>
</el-form-item>
</div>
<el-table ref="table" :data="memberList2" border style="width: 100%"
@selection-change="TbaleSelectionChange">
<el-table-column type="selection" width="55">
</el-table-column>
<template v-for="(item, index) in SpecificationList">
<el-table-column :key="index+'16'" :label="item.Name" width="100">
<template slot-scope="scope">
<span v-if="index == index2" v-for="(item2, index2) in scope.row.AttrList" :key="index2+'17'">
{{ scope.row.AttrList[index2].SVName }}
</span>
</template>
</el-table-column>
</template>
<template v-for="(item, index) in huiyList">
<el-table-column :key="index+'18'" :label="item.Name">
<template slot-scope="scope">
<el-input v-model="scope.row.GradePriceList[index].MemberPrice" size="small"></el-input>
</template>
</el-table-column>
</template>
</el-table>
</div>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
props: { props: ['SpecificationPriceList', 'SpecificationList'],
},
data() { data() {
return { return {
huiyList: [], //会员数组
memberinput: "", //会员价设置输入
memberVal: '', //会员类型下拉
memberList2: [], //列表数据
msg: { msg: {
is_level: 1, //是否享受会员功能 EnjoyMember: 1, //是否享受会员功能
is_level_alone: 0, //是否开启会员价 SeparateSetMember: 0, //是否开启会员价
} }
}; };
}, },
...@@ -39,10 +78,48 @@ ...@@ -39,10 +78,48 @@
}, },
methods: { methods: {
gethuiyList() {
let msg = {
Grade: 0,
Name: "",
Enabled: 1
};
this.apipost("/api/user/GetMemberGradeList", msg, res => {
this.loading = false;
if (res.data.resultCode == 1) {
let pageData = res.data.data;
this.huiyList = pageData;
// this.huiyList.forEach(item => {
// let obj = {
// Name: item.Name,
// MemberGrade: item.Grade,
// MemberPrice: 0
// };
// this.memberList1[0].GradePriceList.push(obj);
// });
}
});
},
// HySet() {
// this.memberList2.forEach(item => {
// this.memberCheck.forEach(check => {
// if (item.Id == check.Id) {
// item.GradePriceList.forEach(list1 => {
// if (list1.MemberGrade == this.memberVal) {
// list1.MemberPrice = this.memberinput;
// }
// });
// }
// });
// });
// },
TbaleSelectionChange(){
}
}, },
mounted() { mounted() {
this.gethuiyList();
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment