Commit 003d5c58 authored by 华国豪's avatar 华国豪 🙄

1

parent e52d6023
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<th width="14%">{{$t('system.table_operation')}}</th> <th width="14%">{{$t('system.table_operation')}}</th>
</tr> </tr>
<tr> <tr>
<td colspan="12" align="center" v-show="list.length==0">{{$t('system.content_noData')}}</td> <td colspan="13" align="center" v-show="list.length==0">{{$t('system.content_noData')}}</td>
</tr> </tr>
<tr v-for="(item,index) in list"> <tr v-for="(item,index) in list">
<td> <td>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<td><span class="cursorpointer text-decoration" @click="goCustomerList(item.ID)">{{item.CustomerCount}}</span></td> <td><span class="cursorpointer text-decoration" @click="goCustomerList(item.ID)">{{item.CustomerCount}}</span></td>
<td>{{item.StartYear}}-{{item.EndYear}}</td> <td>{{item.StartYear}}-{{item.EndYear}}</td>
<td>{{moneyFormat(item.TradeMoney)}}</td> <td>{{moneyFormat(item.TradeMoney)}}</td>
<td><span class="cursorpointer text-decoration" @click="jiesuan(item.ID, 'happyMoneyDetails', 1)" >{{item.TotalGuestNum}}</span></td> <td><span class="cursorpointer text-decoration" @click="jiesuan(item.ID, 'happyMoneyDetails')" >{{item.TotalGuestNum}}</span></td>
<td class="_icon_btn"> <td class="_icon_btn">
<el-tooltip class="item" effect="dark" content="新增客户" placement="top"> <el-tooltip class="item" effect="dark" content="新增客户" placement="top">
<i class="edit el-icon-edit"@click="addCustorm(item)"></i> <i class="edit el-icon-edit"@click="addCustorm(item)"></i>
......
<style> <style>
.LianMengManagement ._icon_btn i {
width: 30px;
height: 30px;
display: inline-block;
color: white !important;
border-radius: 50%;
text-align: center;
line-height: 28px;
margin-right: 10px;
cursor: pointer;
outline: none;
}
.LianMengManagement ._icon_btn i.icon-guanli2{background-color: #E95252;}
</style> </style>
<template> <template>
<div class="LianMengManagement"> <div class="LianMengManagement">
...@@ -9,12 +21,18 @@ ...@@ -9,12 +21,18 @@
<th>联系人</th> <th>联系人</th>
<th>电话</th> <th>电话</th>
<th>是否是会员</th> <th>是否是会员</th>
<th>操作</th>
</tr> </tr>
<tr v-for="item in dataList"> <tr v-for="item in dataList">
<td>{{item.CustomerName}}</td> <td>{{item.CustomerName}} <span v-if="item.IsMain == 1" style="color: #E95252">(主)</span> </td>
<td>{{item.Contact}}</td> <td>{{item.Contact}}</td>
<td>{{item.ContactNumber}}</td> <td>{{item.ContactNumber}}</td>
<td>{{item.IsMember == 1 ? '是' : '否'}}</td> <td>{{item.IsMember == 1 ? '是' : '否'}}</td>
<td class="_icon_btn">
<el-tooltip class="item" effect="dark" content="设置主门店" placement="top">
<i class="iconfont icon-guanli2"@click="setAdmin(item)"></i>
</el-tooltip>
</td>
</tr> </tr>
</table> </table>
<div class="noDataNotice" v-if="dataList.length<1"> <div class="noDataNotice" v-if="dataList.length<1">
...@@ -40,6 +58,31 @@ export default { ...@@ -40,6 +58,31 @@ export default {
let id = this.$route.query.id; let id = this.$route.query.id;
this.getList(id); this.getList(id);
},methods: { },methods: {
setAdmin: function(obj) {
let ParentId = this.$route.query.id
this.$confirm('确认设置“'+ obj.CustomerName + '”为主门店?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.apipost(
"app_customer_UpdateIsMain",
{ParentId: ParentId, Id: obj.ID},
res => {
if (res.data.resultCode === 1) {
this.$message.success(res.data.message)
this.getList(ParentId);
}
},
null
);
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
},
getList: function (id) { getList: function (id) {
this.loading = true this.loading = true
this.apipost('app_customer_GetAlianceCustomerList', {Id: id}, res=>{ this.apipost('app_customer_GetAlianceCustomerList', {Id: id}, res=>{
......
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
<th v-if="hideBtn">操作</th> <th v-if="hideBtn">操作</th>
</tr> </tr>
<tr v-for="(item, index) in dataList.CustomerList"> <tr v-for="(item, index) in dataList.CustomerList">
<td>{{item.CustomerName}} <span v-if="item.IsMain == 1" style="color: #E95252">(主)</span> </td> <td>{{item.CustomerName}}</td>
<td>¥{{moneyFormat(item.TradeMoney)}}</td> <td>¥{{moneyFormat(item.TradeMoney)}}</td>
<td>{{item.TotalGuestNum}}</td> <td>{{item.TotalGuestNum}}</td>
<td v-if="!hideBtn">¥{{moneyFormat(item.PredictPrice)}}</td> <td v-if="!hideBtn">¥{{moneyFormat(item.PredictPrice)}}</td>
......
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