客户明细修改

master
wangweijia 6 years ago
parent c6698fc87f
commit ddf3769b20

@ -15,6 +15,8 @@
<i-col span="32"> <i-col span="32">
<row> <row>
<row style="height: 90px;background: #f7f8fa;border: 1px solid #E8ECF2;line-height: 90px"> <row style="height: 90px;background: #f7f8fa;border: 1px solid #E8ECF2;line-height: 90px">
<span>选择日期</span>
<DatePicker type="daterange" :start-date="new Date()" placement="bottom-end" placeholder="Select date" style="width: 200px"></DatePicker>
<span style="margin-left: 48px" class="txt-font-a" >开始时间</span> <span style="margin-left: 48px" class="txt-font-a" >开始时间</span>
<DatePicker v-model="startDate" class="left-15 txt-font-a" type="date" :options="options1" placeholder="选择开始时间" style="width: 200px"></DatePicker> <DatePicker v-model="startDate" class="left-15 txt-font-a" type="date" :options="options1" placeholder="选择开始时间" style="width: 200px"></DatePicker>
<span class="left-15 txt-font-a">结束时间</span> <span class="left-15 txt-font-a">结束时间</span>
@ -119,7 +121,7 @@
// //
totalSize: null, totalSize: null,
pageNum: 1, pageNum: 1,
pageSize: 1, pageSize: 3,
modal12: false, modal12: false,
startDate: null, startDate: null,
endDate: null, endDate: null,
@ -143,32 +145,49 @@
key: 'name' key: 'name'
}, },
{ {
title: '客户手机', title: '所属门店',
key: 'phone' key: 'shopName'
},
{
title: '店铺编号',
key: 'shopCode'
}, },
{ {
title: '所属导购', title: '所属导购',
key: 'sellerName' key: 'sellerName'
}, },
{ {
title: '关联会员', title: '工号',
key: 'vipName' key: 'sellerCode'
}, },
{ {
title: '消费次数', title: '创建时间',
key: 'salesNum' key: 'createTime'
}, },
{ {
title: '消费金额', title: '客户手机号',
key: 'salesAmt' key: 'phone'
},
{
title: '关联会员',
key: 'vipName'
}, },
{ {
title: '会员等级', title: '会员等级',
key: 'vipLevel' key: 'vipLevel'
}, },
{ {
title: '会员生日', title: '会员生日',
key: 'birthday' key: 'birthday'
}/*,
{
title: '消费次数',
key: 'salesNum'
},
{
title: '消费金额',
key: 'salesAmt'
}, },
{ {
title: '操作', title: '操作',
@ -194,7 +213,7 @@
); );
} }
} }*/
], ],
data1: [ data1: [
{ {
@ -234,7 +253,10 @@
} }
}, },
searchCustomerDataBtnClick: function () { searchCustomerDataBtnClick: function () {
this.totalSize= null;
this.getCustomerData(); this.getCustomerData();
}, },
getCustomerData: function () { getCustomerData: function () {
let that = this; let that = this;
@ -256,9 +278,13 @@
if(entity){ if(entity){
if(i === 0) that.totalSize = entity.totalSize; if(i === 0) that.totalSize = entity.totalSize;
let birthday = entity.birthday; let birthday = entity.birthday;
let createTime = entity.createTime;
if(birthday){ if(birthday){
entity.birthday = that.$moment(birthday).format("MM-DD") entity.birthday = that.$moment(birthday).format("MM-DD")
} }
if(createTime){
entity.createTime = that.$moment(createTime).format("YYYY-MM-DD")
}
that.data1.push(entity); that.data1.push(entity);
that.checkParamBlank(entity); that.checkParamBlank(entity);
} }

Loading…
Cancel
Save