Commit f3c554be authored by huangyuanyuan's avatar huangyuanyuan

会员客户添加交易额

parent 99b0fa47
...@@ -35,6 +35,20 @@ ...@@ -35,6 +35,20 @@
</span> </span>
<el-input v-model="msg.CustomerName" placeholder="请输入门店名称或电话"></el-input> <el-input v-model="msg.CustomerName" placeholder="请输入门店名称或电话"></el-input>
</li> </li>
<li>
<span>
<em>所属品牌</em>
</span>
<el-select filterable class='multiple_input' v-model='msg.Brand' :placeholder="$t('pub.pleaseSel')">
<el-option label="不限" :value="-1"></el-option>
<el-option v-for='item in CustomerBrandList'
:label='item.name'
:value='item.id'
:key='item.id'>
</el-option>
</el-select>
</li>
<li style="float:right;padding-top:10px;color:#111111">交易额总计:{{datainfo.sumMoney}}</li>
<li> <li>
<input <input
type="button" type="button"
...@@ -93,17 +107,18 @@ ...@@ -93,17 +107,18 @@
<th width="15%">门店名称 <th width="15%">门店名称
<!--<label><input type="checkbox" v-model="isCkedAll" @click='checkedAll()' style="vertical-align: middle;"/>门店名称</label>--> <!--<label><input type="checkbox" v-model="isCkedAll" @click='checkedAll()' style="vertical-align: middle;"/>门店名称</label>-->
</th> </th>
<th width="10%">联系人</th> <th width="7%">联系人</th>
<th width="10%">联系电话</th> <th width="10%">联系电话</th>
<th width="20%">地址</th> <th width="20%">地址</th>
<th width="8%">所属销售</th> <th width="8%">所属销售</th>
<th width="8%">客户状态</th> <th width="8%">客户状态</th>
<th width="5%">交易额</th>
<th width="5%">幸福存折</th> <th width="5%">幸福存折</th>
<th width="10%">备注</th> <th width="10%">备注</th>
<th width="12%">操作</th> <th width="14%">操作</th>
</tr> </tr>
<tr> <tr>
<td colspan="8" align="center" v-show="list.length==0">暂无数据</td> <td colspan="10" align="center" v-show="list.length==0">暂无数据</td>
</tr> </tr>
<tr v-for="(item,index) in list"> <tr v-for="(item,index) in list">
<td> <td>
...@@ -127,6 +142,7 @@ ...@@ -127,6 +142,7 @@
<td>{{item.Address}}</td> <td>{{item.Address}}</td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td>{{valueToWord(item.CustomerStatus)}}</td> <td>{{valueToWord(item.CustomerStatus)}}</td>
<td>{{item.TotalPrice}}</td>
<td>{{item.CL_Balance}}</td> <td>{{item.CL_Balance}}</td>
<td>{{item.Remark}}</td> <td>{{item.Remark}}</td>
...@@ -453,6 +469,8 @@ export default { ...@@ -453,6 +469,8 @@ export default {
children: node.ChildList children: node.ChildList
}; };
}, },
datainfo:{},
CustomerBrandList:[],
DepartmentId: null, DepartmentId: null,
isSelLayer: false, isSelLayer: false,
layerShow: false, layerShow: false,
...@@ -461,7 +479,8 @@ export default { ...@@ -461,7 +479,8 @@ export default {
pageSize: 15, pageSize: 15,
CustomerName: "", CustomerName: "",
CreateBy: "-1", CreateBy: "-1",
DepartmentId: "-1" DepartmentId: "-1",
Brand:-1,
}, },
RecipientMsg: { RecipientMsg: {
CustomerIdArr: [], CustomerIdArr: [],
...@@ -522,7 +541,6 @@ export default { ...@@ -522,7 +541,6 @@ export default {
HousePhotos: "", HousePhotos: "",
Images: "", Images: "",
isOldPerson: false, isOldPerson: false,
CustomerBrandList: [],
provinceList: [], provinceList: [],
cityList: [], cityList: [],
regionList: [], regionList: [],
...@@ -572,6 +590,15 @@ export default { ...@@ -572,6 +590,15 @@ export default {
}; };
}, },
methods: { methods: {
getCustomerBrandList(){ // 获取品牌
this.apipost('app_get_customer_brand',{},res=>{
if(res.data.resultCode==1){
this.CustomerBrandList = res.data.data;
}else{
this.$message.error(res.data.message)
}
},err=>{})
},
getUrl(item){ getUrl(item){
this.$router.push({ name:"CustomerAnalysis",query:{"customerId":item.CustomerIdS,blank: 'y'} }) this.$router.push({ name:"CustomerAnalysis",query:{"customerId":item.CustomerIdS,blank: 'y'} })
}, },
...@@ -959,9 +986,9 @@ export default { ...@@ -959,9 +986,9 @@ export default {
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.loading = false; this.loading = false;
this.allLength = res.data.data.pageData.length; this.allLength = res.data.data.pages.pageData.length;
this.customerListAll = []; this.customerListAll = [];
res.data.data.pageData.forEach(item => { res.data.data.pages.pageData.forEach(item => {
this.customerListAll.push(item.CustomerId); this.customerListAll.push(item.CustomerId);
item.CustomerIdS = item.CustomerId; item.CustomerIdS = item.CustomerId;
item.CustomerId = item.CustomerId =
...@@ -973,8 +1000,9 @@ export default { ...@@ -973,8 +1000,9 @@ export default {
item["disabled"] = false; item["disabled"] = false;
item.Address = item.Address.split(",").join(""); item.Address = item.Address.split(",").join("");
}); });
this.list = res.data.data.pageData; this.datainfo=res.data.data;
this.total = res.data.data.count; this.list = res.data.data.pages.pageData;
this.total = res.data.data.pages.count;
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
this.loading = false; this.loading = false;
...@@ -1055,7 +1083,7 @@ export default { ...@@ -1055,7 +1083,7 @@ export default {
ContactNumber: "", ContactNumber: "",
Address: "", Address: "",
remark: "", remark: "",
brandIds: [] Brand: []
}; };
(this.BusinessCardPhotos = ""), (this.BusinessCardPhotos = ""),
(this.HousePhotos = ""), (this.HousePhotos = ""),
...@@ -1149,6 +1177,7 @@ export default { ...@@ -1149,6 +1177,7 @@ export default {
this.getJycs(); this.getJycs();
this.getZw(); this.getZw();
this.getKhly(); this.getKhly();
this.getCustomerBrandList();
} }
}; };
</script> </script>
......
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