Commit f3c554be authored by huangyuanyuan's avatar huangyuanyuan

会员客户添加交易额

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