Commit 2568f422 authored by zhengke's avatar zhengke

修改

parent 97514dd1
...@@ -391,11 +391,11 @@ ...@@ -391,11 +391,11 @@
</el-card> </el-card>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="阶梯团设置"> <el-tab-pane label="阶梯团设置">
<ladderGroup :Goods="addMsg" :GroupList="GroupList" :SpecList="SpecificationList" <ladderGroup :Goods="addMsg" :GroupList="GroupList" @getGroup="getGroup" :SpecList="SpecificationList"
:PriceList="SpecificationPriceList"></ladderGroup> :PriceList="SpecificationPriceList"></ladderGroup>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分销价设置"> <el-tab-pane label="分销价设置">
<distributePrice></distributePrice> <distributePrice :shareGroup_list="shareGroup_list"></distributePrice>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="会员价设置"> <el-tab-pane label="会员价设置">
<memberPrice></memberPrice> <memberPrice></memberPrice>
...@@ -545,6 +545,7 @@ ...@@ -545,6 +545,7 @@
formName: '', formName: '',
imgDialog: false, imgDialog: false,
rules: {}, rules: {},
shareGroup_list:[]
}; };
}, },
created() {}, created() {},
...@@ -672,6 +673,10 @@ ...@@ -672,6 +673,10 @@
this.addMsg.App_share_pic = that.getIconLink(msg[0].url); this.addMsg.App_share_pic = that.getIconLink(msg[0].url);
this.imgDialog = false; this.imgDialog = false;
}, },
//获取子组件group_list
getGroup(group_list){
this.shareGroup_list=group_list
}
} }
}; };
......
...@@ -9,18 +9,18 @@ ...@@ -9,18 +9,18 @@
</style> </style>
<template> <template>
<div> <div>
<el-form-item label="是否开启分销佣金" prop="individual_share" size="small"> <el-form-item label="是否开启分销佣金" size="small">
<el-switch :active-value="1" :inactive-value="0" v-model="msg.individual_share"> <el-switch :active-value="1" :inactive-value="0" v-model="msg.SeparateDistribution">
</el-switch> </el-switch>
</el-form-item> </el-form-item>
<template v-if="msg.individual_share == 1"> <template v-if="msg.SeparateDistribution == 1">
<!-- <el-form-item label="分销类型" prop="attr_setting_type" v-if="cForm.use_attr == 1 && ruleForm.type == 'goods'"> <el-form-item label="分销类型">
<el-radio v-model="ruleForm.attr_setting_type" :label="0">普通设置</el-radio> <el-radio v-model="msg.SeparateDistributionType" :label="0">普通设置</el-radio>
<el-radio v-model="ruleForm.attr_setting_type" :label="1">详细设置</el-radio> <el-radio v-model="msg.SeparateDistributionType" :label="1">详细设置</el-radio>
</el-form-item> --> </el-form-item>
<el-form-item label="分销佣金类型" prop="share_type" size="small"> <el-form-item label="分销佣金类型" size="small">
<el-radio v-model="msg.share_type" :label="0">固定金额</el-radio> <el-radio v-model="msg.SeparateDistributionMoneyType" :label="0">固定金额</el-radio>
<el-radio v-model="msg.share_type" :label="1">百分比</el-radio> <el-radio v-model="msg.SeparateDistributionMoneyType" :label="1">百分比</el-radio>
</el-form-item> </el-form-item>
<!-- <template v-if="sign !== 'pintuan'"> <!-- <template v-if="sign !== 'pintuan'">
<app-goods-share v-model="ruleForm" :is_mch="is_mch" :attr-groups="attrGroups" <app-goods-share v-model="ruleForm" :is_mch="is_mch" :attr-groups="attrGroups"
...@@ -34,24 +34,28 @@ ...@@ -34,24 +34,28 @@
</template> --> </template> -->
<el-form-item> <el-form-item>
<div class="pintuan-share"> <div class="pintuan-share">
<el-card> <el-card v-for="(item,index) in shareGroup_list" :key="index">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<div class="box"> <div class="box">
<div style="display:inline-block;"> <div style="display:inline-block;">
<el-tag type="danger">3人团</el-tag> <el-tag type="danger">{{item.people_num}}人团</el-tag>
</div> </div>
<label style="margin-bottom:0;padding:18px 10px;">批量设置</label> <label style="margin-bottom:0;padding:18px 10px;">批量设置</label>
<el-select placeholder="请选择层级" v-model="fenxiao" style="width:130px;" size="small"> <el-select placeholder="请选择层级" v-model="fxVal" style="width:130px;" size="small">
<el-option label="一级分销" :value="1"></el-option> <el-option v-for="(item, index) in butorInt" :label="`${index + 1}级分销`" :value="index + 1"
<el-option label="二级分销" :value="2"></el-option> :key="index+'12'">
</el-option>
</el-select> </el-select>
<el-input type="text" size="small" style="width:150px;margin-top:5px;"> <el-input type="text" size="small" style="width:150px;margin-top:5px;">
<el-button slot="append"></el-button> <el-button slot="append">
<span v-if="msg.SeparateDistributionMoneyType == 2"></span>
<span v-if="msg.SeparateDistributionMoneyType == 1">%</span>
</el-button>
</el-input> </el-input>
<el-button size="small" type="primary">设置</el-button> <el-button size="small" type="primary">设置</el-button>
</div> </div>
<el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%;border:1px solid #E8EAEE" <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark"
@selection-change="handleSelectionChange"> style="width: 100%;border:1px solid #E8EAEE" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"> <el-table-column type="selection" width="55">
</el-table-column> </el-table-column>
<el-table-column label="等级名称" prop="leval" width="100"> <el-table-column label="等级名称" prop="leval" width="100">
...@@ -80,35 +84,43 @@ ...@@ -80,35 +84,43 @@
</template> </template>
<script> <script>
export default { export default {
props: { props: ["shareGroup_list"],
},
data() { data() {
return { return {
fenxiao:0, fxVal: '',
butorInt: 0,
msg: { msg: {
individual_share: 1, SeparateDistribution: 0, //是否开启分销佣金
share_type: 0 SeparateDistributionType: 1, //分销类型
SeparateDistributionMoneyType: 1, //分销佣金类型
}, },
tableData:[ tableData: [{
{ leval: '默认等级',
leval:'默认等级', yiji: 0,
yiji:0, erji: 3
erji:3 }]
}
]
}; };
}, },
created() { created() {
}, },
methods: { methods: {
handleSelectionChange(){ handleSelectionChange() {
},
getDistributor() {
this.apipost("/api/user/GetDistributorBasicsInfo", {}, res => {
if (res.data.resultCode == 1) {
console.log(res,'resss');
this.butorInt = res.data.data.DistributorTier;
} }
});
},
}, },
mounted() { mounted() {
console.log(this.shareGroup_list, 'shareGroup_list');
this.getDistributor();
}, },
computed: { computed: {
......
...@@ -162,10 +162,12 @@ ...@@ -162,10 +162,12 @@
goods_id: 0, goods_id: 0,
attr: JSON.parse(JSON.stringify(this.new_PriceList)) attr: JSON.parse(JSON.stringify(this.new_PriceList))
}); });
 this.$emit('getGroup',this.group_list); //params是传递的参数
}, },
//删除拼团 //删除拼团
destroyPintuan(index) { destroyPintuan(index) {
this.group_list.splice(index, 1); this.group_list.splice(index, 1);
 this.$emit('getGroup',this.group_list); //params是传递的参数
} }
}, },
mounted() { mounted() {
......
...@@ -63,20 +63,19 @@ ...@@ -63,20 +63,19 @@
<div class="app-attr"> <div class="app-attr">
<div class="box"> <div class="box">
<el-form label-width="180px"> <el-form label-width="180px">
<el-checkbox v-model="attrBatch" @change="selectClick" :disabled="!cData || cData.length == 0" <el-checkbox v-model="attrBatch" @change="selectClick"
style="position:absolute">全选 style="position:absolute">全选
</el-checkbox> </el-checkbox>
<el-form-item label="批量设置" size="small" style="margin-bottom:0;padding:18px 0;display:inline-block;"> <el-form-item label="批量设置" size="small" style="margin-bottom:0;padding:18px 0;display:inline-block;">
<el-input @keyup.enter.native="batchAttr(selectData)" size="small" <el-input @keyup.enter.native="batchAttr()" size="small" type="number" v-model="batchNum">
:type="selectData == 'no' ? 'text' : 'number'" v-model="batch">
<el-select v-model="selectData" slot="prepend"> <el-select v-model="selectData" slot="prepend">
<el-option v-for="(item, index) in cList" :value="index" :key="item" v-if="index!='pic_url'" <!-- <el-option label="不限" :value="0"></el-option> -->
:label="item"> <el-option v-for="(item, index) in cList" :value="index" :key="item.Id" :label="item.namwe">
{{item}} {{item.name}}
</el-option> </el-option>
</el-select> </el-select>
<template slot="append"> <template slot="append">
<el-button @click="batchAttr(selectData)"> <el-button @click="batchAttr()">
确定 确定
</el-button> </el-button>
</template> </template>
...@@ -91,9 +90,9 @@ ...@@ -91,9 +90,9 @@
<td style="width:55px;"> <td style="width:55px;">
<el-checkbox></el-checkbox> <el-checkbox></el-checkbox>
</td> </td>
<template v-for="headerItem in attrGroups">
<td v-for="(headerItem,headerIndex) in attrGroups" :key="headerIndex">{{headerItem.Name}}</td> <td>{{headerItem.Name}}</td>
</template>
<td> <td>
<div class="header-require">拼团价</div> <div class="header-require">拼团价</div>
</td> </td>
...@@ -103,20 +102,21 @@ ...@@ -103,20 +102,21 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr v-for="(item,index) in pinTuanPriceList" :key="index"> <tr v-for="item in pinTuanPriceList">
<td> <td>
<el-checkbox></el-checkbox> <el-checkbox></el-checkbox>
</td> </td>
<template v-for="(attrItem, attrIndex) in attrGroups"> <template v-for="(attrItem, attrIndex) in attrGroups">
<td v-if="attrIndex == index2" v-for="(item2, index2) in item.AttrList" :key="index2+6"> <td v-if="attrIndex == index2" v-for="(item2, index2) in item.AttrList" :key="index2+'6'">
{{ item.AttrList[index2].SVName }} {{ item.AttrList[index2].SVName }}
</td> </td>
</template> </template>
<td> <td>
<el-input v-model="item.PintuanPrice" /> <el-input type="number" v-model="item.PintuanPrice" size="small" style="padding:0 10px" />
</td> </td>
<td> <td>
<el-input v-model="item.PintuanStock" /> <el-input type="number" v-model="item.PintuanStock" size="small" style="padding:0 10px" />
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -128,7 +128,17 @@ ...@@ -128,7 +128,17 @@
props: ["pinTuanPriceList", "attrGroups"], props: ["pinTuanPriceList", "attrGroups"],
data() { data() {
return { return {
attrBatch:false, //是否全选
cList:[{
Id:0,
name:'拼团价'
},{
Id:1,
name:'拼团库存'
}],
selectData:'',
//批量设置价格
batchNum:''
}; };
}, },
created() { created() {
...@@ -138,10 +148,19 @@ ...@@ -138,10 +148,19 @@
}, },
methods: { methods: {
//点击全选
selectClick(){
}, },
mounted() { //点击批量设置确定
batchAttr(){
// if(this.){
// }
}
},
mounted() {
console.log(this.attrGroups,'attrgrop');
}, },
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