加入客户type

feature_0521
yechenhao 5 years ago
parent 57aca05efd
commit 86054700b7

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

@ -221,7 +221,7 @@ export default {
return h("div", [ return h("div", [
h("i-switch", { h("i-switch", {
props: { props: {
value: params.row.status, value: params.row.accountFlag,
"true-value": 1, // "true-value": 1, //
"false-value": 2, // "false-value": 2, //
size: "large" size: "large"
@ -233,11 +233,11 @@ export default {
// _this.modifyStatus(params.row.accountId, value); // _this.modifyStatus(params.row.accountId, value);
let request = { let request = {
status: value, status: value,
id: _this.formValidate.id id: params.row.accountId
}; };
debugger; debugger;
// //
_this.editSattf(request); _this.editSattfStatus(request);
} }
}, },
scopedSlots: { 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() { searchCustomerDataBtnClick: function() {
this.listOfLogistics(); this.listOfLogistics();

@ -44,6 +44,10 @@ export function editSattf(params, call) {
return http.post('/store/staff/edit',params).then(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) { export function removeStaff(params, call) {
return http.post('/store/staff/delete',params).then(call) return http.post('/store/staff/delete',params).then(call)
} }
@ -55,5 +59,6 @@ export default {
downRoleData, downRoleData,
addSattf, addSattf,
editSattf, editSattf,
editSattfStatus,
removeStaff removeStaff
} }

Loading…
Cancel
Save