Commit 397d8c02 authored by 黄奎's avatar 黄奎

页面修改

parent 73174598
......@@ -196,9 +196,9 @@
</el-switch>
</el-form-item>
<el-form-item label="商品服务">
<template v-if="addMsg.GoodsService && addMsg.GoodsService.length > 0">
<template v-if="addMsg.ServiceList && addMsg.ServiceList.length > 0">
<el-tag style="margin-right:10px;" @close="ServiceCheck(item, index)"
v-for="(item, index) in addMsg.GoodsService" :key="index+'7'" closable>{{ item.Name }}
v-for="(item, index) in addMsg.ServiceList" :key="index+'7'" closable>{{ item.Name }}
</el-tag>
</template>
<el-button @click="serviceDig = true,checkService=[]" v-if="addMsg.IsDefaultService == 2"
......@@ -429,7 +429,7 @@
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="serviceDig=false" size="small">取消</el-button>
<el-button @click="(addMsg.GoodsService = checkService), (serviceDig = false)" size="small" type="primary">确定
<el-button @click="(addMsg.ServiceList = checkService), (serviceDig = false)" size="small" type="primary">确定
</el-button>
</span>
</el-dialog>
......@@ -506,7 +506,7 @@
Virtual_Sales: 0, //已团商品数
Is_Alone_Buy: 0, //是否允许单独购买
IsDefaultService: 1, //是否默认商品服务(1是,2否)
GoodsService: [], //商品服务字段
ServiceList: [], //商品服务字段
FreightId: 0, //运费设置
FormsId: 0, //自定义表单
Confine_Count: -1, //限购数量
......@@ -520,7 +520,7 @@
Is_forehead_integral: 0, //积分抵扣
Forehead_integral_type: 1, //积分抵扣=>1固定值 2百分比
Accumulative: 0, //允许多件累计抵扣
CardIds: [], //卡券发放
CardIds: "", //卡券发放
App_share_title: '', //自定义分享标题、
App_share_pic: '', //自定义分享图片
},
......@@ -571,7 +571,7 @@
SaveActivity() {
this.addMsg.SpecificationPriceList = this.SpecificationPriceList;
this.addMsg.SpecificationList = this.SpecificationList;
this.addMsg.GroupList=this.GroupList;
this.apipost("/api/GroupBuy/SetGroupbuyActivity", this.addMsg, res => {
console.log("res", res);
if (res.data.resultCode == 1) {
......@@ -604,9 +604,9 @@
},
//删除商品服务
ServiceCheck(item, index) {
this.addMsg.GoodsService.forEach((list, k) => {
this.addMsg.ServiceList.forEach((list, k) => {
if (list.Id == item.Id) {
this.addMsg.GoodsService.splice(k, 1);
this.addMsg.ServiceList.splice(k, 1);
}
});
},
......@@ -628,7 +628,7 @@
//服务改变
getServeChange(type) {
if (type == 1) {
this.addMsg.GoodsService = [];
this.addMsg.ServiceList = [];
}
},
//获取运费规则
......
......@@ -107,17 +107,17 @@
<td>
<el-checkbox></el-checkbox>
</td>
<template v-for="(attrItem, attrIndex) in attrGroups">
<td v-if="attrIndex == index2" v-for="(item2, index2) in item.AttrList" :key="index2+'6'">
{{ item.AttrList[index2].SVName }}
</td>
</template>
<td>
<el-input v-model="item.PintuanPrice" />
<td>
<el-input v-model="item.PintuanPrice" />
</td>
<td>
<el-input v-model="item.PintuanStock" />
<el-input v-model="item.PintuanStock" />
</td>
</tr>
</tbody>
......@@ -139,10 +139,7 @@
},
methods: {
getItemName()
{
}
},
mounted() {
......
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