加入客户type

feature_0521
yechenhao 5 years ago
parent 57aca05efd
commit 86054700b7

@ -118,6 +118,14 @@
{
title: '日增好友平均(去重)',
key: 'avgNewCustomer'
},
{
title: '历史门店拓客总数',
key: 'historyAllCustomers'
},
{
title: '历史门店新增好友数',
key: 'historyAddCustomers'
}
],
data1: [],

@ -221,7 +221,7 @@ export default {
return h("div", [
h("i-switch", {
props: {
value: params.row.status,
value: params.row.accountFlag,
"true-value": 1, //
"false-value": 2, //
size: "large"
@ -233,11 +233,11 @@ export default {
// _this.modifyStatus(params.row.accountId, value);
let request = {
status: value,
id: _this.formValidate.id
id: params.row.accountId
};
debugger;
//
_this.editSattf(request);
_this.editSattfStatus(request);
}
},
scopedSlots: {
@ -441,6 +441,17 @@ export default {
}
});
},
editSattfStatus: function(request) {
let that = this;
staff.editSattf(request, function(data) {
data = data.data;
if (data.code == "0000") {
that.$Message.success("修改成功!");
that.isShowAdd = false;
that.listOfLogistics();
}
});
},
searchCustomerDataBtnClick: function() {
this.listOfLogistics();

@ -44,6 +44,10 @@ export function editSattf(params, call) {
return http.post('/store/staff/edit',params).then(call)
}
export function editSattfStatus(params, call) {
return http.post('/account/modify/status',params).then(call)
}
export function removeStaff(params, call) {
return http.post('/store/staff/delete',params).then(call)
}
@ -55,5 +59,6 @@ export default {
downRoleData,
addSattf,
editSattf,
editSattfStatus,
removeStaff
}

Loading…
Cancel
Save