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

11

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