Commit 0d1c383b authored by 黄奎's avatar 黄奎

11

parent 51b4f6a3
......@@ -130,13 +130,12 @@
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
<el-col :span="6">
<el-form-item label="VIP">
<el-select class="w120" :placeholder="$t('pub.pleaseSel')" filterable
v-model="msg.IsVip">
<el-option v-for="item in VipStatusList" :label="item.Name" :value="item.Id"
:key="item.Id"></el-option>
</el-select>
<el-select class="w120" :placeholder="$t('pub.pleaseSel')" filterable v-model="msg.IsVip">
<el-option v-for="item in VipStatusList" :label="item.Name" :value="item.Id" :key="item.Id">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
......@@ -188,7 +187,7 @@
<th width="14%">{{$t('salesModule.storeName')}}
<!--<label><input type="checkbox" v-model="isCkedAll" @click='checkedAll()' style="vertical-align: middle;"/>{{$t('salesModule.storeName')}}</label>-->
</th>
<th width="3%">VIP</th>
<th width="3%">VIP</th>
<th width="7%">激活状态</th>
<th width="7%">{{$t('hotel.suplier_contact')}}</th>
<th width="8%">{{$t('restaurant.res_ContactNumber')}}</th>
......@@ -228,7 +227,7 @@
<tr>
<td colspan="13" align="center" v-show="list.length==0">{{$t('system.content_noData')}}</td>
</tr>
<tr v-for="(item,index) in list">
<tr v-for="(item,index) in list" :key="`d_`+index">
<td>
<label>
<input :disabled="item.disabled" type="checkbox" :value="item.CustomerId" v-model="customerList"
......@@ -252,9 +251,9 @@
<span v-if="item.ExceptionCount > 0" slot="reference" class="yichangde" @click="yichangde(item)"></span>
</el-popover>
</td>
<td>
<td>
{{item.IsVip==1?$t('fnc.yes'):$t('fnc.fou')}}
</td>
<td>
<span
......@@ -315,20 +314,18 @@
</el-popover>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button v-if="bossID===1 || bossID===5" type="primary" class icon="el-icon-edit" circle
<el-button v-if="isEditAuth" type="primary" class icon="el-icon-edit" circle
@click="updateData(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button v-if="bossID===1 || bossID===5" type="danger" class icon="el-icon-delete" circle
<el-button v-if="isEditAuth" type="danger" class icon="el-icon-delete" circle
@click="deletelist(item)"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.BlackList')" placement="top-start">
<el-button v-if="item.CustomerStatus == 2" type="warning" class icon="iconfont icon-jiaruheimingdan"
circle @click="getBlacklist(item)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.RemoveBlackList')" placement="top-start">
<el-button v-if="item.CustomerStatus == 4" type="info" class icon="iconfont icon-yichuheimingdan" circle
@click="getBlacklist(item)">
......@@ -491,10 +488,18 @@
EnterTime: [],
isSelLayer: false,
layerShow: false,
VipStatusList:[
{ Name: this.$t('objFill.v101.activity.col3.t4'),Id: -1 },
{ Name: this.$t('fnc.yes'),Id: 1 },
{ Name: this.$t('fnc.fou'),Id: 0 },
VipStatusList: [{
Name: this.$t('objFill.v101.activity.col3.t4'),
Id: -1
},
{
Name: this.$t('fnc.yes'),
Id: 1
},
{
Name: this.$t('fnc.fou'),
Id: 0
},
],
msg: {
pageIndex: 1,
......@@ -519,7 +524,7 @@
OpenIdStatus: '',
ActivateStartDate: '',
ActivateEndDate: '',
IsVip:-1,//1-是VIP
IsVip: -1, //1-是VIP
},
RecipientMsg: {
CustomerIdArr: [],
......@@ -674,6 +679,7 @@
Status: "0",
},
userInfo: {},
isEditAuth: false,
};
},
watch: {
......@@ -712,7 +718,7 @@
}
this.getDepartment();
if (this.$route.query.RB_Department_Id && Number(this.$route.query.RB_Department_Id) > 0) {
this.msg.DepartmentId= Number(this.$route.query.RB_Department_Id);
this.msg.DepartmentId = Number(this.$route.query.RB_Department_Id);
this.employeeMsg.departmentId = Number(this.$route.query.RB_Department_Id);
this.getEmployee();
}
......@@ -726,8 +732,13 @@
this.departState = true;
}
this.bossID = this.userInfo.EmployeeId;
if (this.bossID == 1 || this.bossID == 5) {
this.isEditAuth = true;
}
if (!this.isEditAuth && ActionMenuCode.indexOf('EditCustomerInfo') != -1) {
this.isEditAuth = true;
}
this.getList();
this.getCreateByInfoList();
this.getProvince();
......@@ -737,6 +748,7 @@
this.getCustomerBrandList();
},
methods: {
getCompanyList() {
//获取公司列表
this.apipost(
......@@ -837,7 +849,6 @@
let Address = data.Address.split(",");
this.addMsg = data;
this.addMsg.Address = Address[1];
this.$message.success(res.data.message);
this.addShow = true;
this.getCity1();
this.getRegion1();
......
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