Commit 12f0f94b authored by 沈良进's avatar 沈良进

save

parent 718ee491
...@@ -589,7 +589,7 @@ ...@@ -589,7 +589,7 @@
</div> </div>
<div> <div>
<p>签约客户:<span> <p>签约客户:<span>
<el-select filterable v-model='msg.SigningCustomerId' class="w135 _border_b_1"> <el-select clearable filterable v-model='msg.SigningCustomerId' class="w135 _border_b_1">
<el-option v-for='item in CustomerIdList' :label='item.customerName' :value='item.customerId' <el-option v-for='item in CustomerIdList' :label='item.customerName' :value='item.customerId'
:key='item.customerId'> :key='item.customerId'>
</el-option> </el-option>
......
...@@ -490,12 +490,12 @@ ...@@ -490,12 +490,12 @@
border="0" border="0"
cellspacing="0" cellspacing="0"
cellpadding="0" cellpadding="0"
v-loading="loading"
> >
<tr> <tr>
<th>姓名</th> <th>姓名</th>
<th>联系电话</th> <th>联系电话</th>
<th>门店名称</th> <th>门店名称</th>
<th>签约到期时间</th>
<th>累计交易额</th> <th>累计交易额</th>
<th>签约额度</th> <th>签约额度</th>
<th>未结算额度</th> <th>未结算额度</th>
...@@ -506,6 +506,7 @@ ...@@ -506,6 +506,7 @@
</td> </td>
<td>{{ item.contactNumber }}</td> <td>{{ item.contactNumber }}</td>
<td>{{ item.customerName }}</td> <td>{{ item.customerName }}</td>
<td>{{ item.signingEndTime }}</td>
<td><span @click="goUrlCC(item.customerId,3)" <td><span @click="goUrlCC(item.customerId,3)"
style="cursor: pointer;text-decoration: underline;">{{item.tradeTotal}}</span></td> style="cursor: pointer;text-decoration: underline;">{{item.tradeTotal}}</span></td>
<td><span @click="goUrlCCC(item.customerId,3)" <td><span @click="goUrlCCC(item.customerId,3)"
......
...@@ -1489,7 +1489,6 @@ ...@@ -1489,7 +1489,6 @@
}, err => {}) }, err => {})
}, },
saveVisa() { saveVisa() {
this.addMsg.SigningType = this.addMsg.SigningType ? 1 : 0
if (!this.addMsg.contactNumber) { if (!this.addMsg.contactNumber) {
this.$message.error('请输入联系电话') this.$message.error('请输入联系电话')
return return
...@@ -1564,6 +1563,7 @@ ...@@ -1564,6 +1563,7 @@
this.$message.error('请输入输入详情地址') this.$message.error('请输入输入详情地址')
return return
} }
this.addMsg.SigningType = this.addMsg.SigningType ? 1 : 0
this.apipost('app_add_new_visit_customer', this.addMsgS, res => { this.apipost('app_add_new_visit_customer', this.addMsgS, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.addMsg = { this.addMsg = {
......
...@@ -346,21 +346,44 @@ ...@@ -346,21 +346,44 @@
} }
</style> </style>
<style scoped>
._nav {
margin: 20px 0 0 0;
background-color: #f5f5f5;
}
._nav li {
float: left;
font-size: 14px;
color: #666666;
padding: 15px 20px;
cursor: pointer;
position: relative;
background-color: #f1f1f1;
margin-right: 5px;
}
._nav li._active {
background-color: #ffffff;
color: #333333;
}
._nav li._active::after {
content: "";
width: 20px;
height: 3px;
background-color: #e95252;
display: inline-block;
position: absolute;
bottom: 0;
left: 38%;
}
.page_fnDm .query-box li:last-child {
top: 97px !important;
}
.page_fnDm {
background-color: white;
}</style>
<template> <template>
<div class="page_MyCustomer MyCustomerDiv"> <div class="page_MyCustomer MyCustomerDiv page_fnDm">
<div class="page_MyCustomerSearch"> <ul class=" _mc_addbox">
<li>
<span>
<em>日期:</em>
<el-date-picker type="daterange" v-model="msg.OutDate" value-format="yyyy-MM-dd"
placeholder=''></el-date-picker>
</span>
</li>
<li>
<button class="hollowFixedBtn" @click="getList(),getTotalData()">{{$t('pub.searchBtn')}}</button>
</li>
</div>
<div class="_mc_addbox">
<li :class="{active:type==1}" @click="type=1;clickGetList(1)"> <li :class="{active:type==1}" @click="type=1;clickGetList(1)">
未结算 未结算
<div class="divActive" v-show="type==1"></div> <div class="divActive" v-show="type==1"></div>
...@@ -369,13 +392,27 @@ ...@@ -369,13 +392,27 @@
已结算 已结算
<div class="divActive" v-show="type==2"></div> <div class="divActive" v-show="type==2"></div>
</li> </li>
<li class="hight_query" style="float: right">
<button class="hollowFixedBtn" @click="getList(),getTotalData()">{{$t('pub.searchBtn')}}</button>
</li>
</ul>
<div class="Myquery-box">
<ul class="clearfix">
<li>
<span style="display: block;padding: 10px">
<em>日期:</em>
<el-date-picker type="daterange" v-model="msg.OutDate" value-format="yyyy-MM-dd"
placeholder=''></el-date-picker>
</span>
</li>
</ul>
</div> </div>
<div style="margin: 10px">汇总金额:{{totalData.Money}}</div> <div style="margin: 10px">汇总金额:{{totalData.Money}}</div>
<div v-if="type == 1" style="margin: 10px"> <div v-if="type == 1" style="margin: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox> <el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button> <el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
</div> </div>
<div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''"><table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0"> <div class="_mc_list _scrollbar" :class="addShow==true?'_edHeight':''"><table v-loading='loading' class="leaderPayTable" border="0" cellspacing="1" cellpadding="0">
<tr> <tr>
<th v-if="type == 1"></th> <th v-if="type == 1"></th>
<th>单号</th> <th>单号</th>
...@@ -426,7 +463,7 @@ ...@@ -426,7 +463,7 @@
@click="DeleteFile(subIndex)">删除</a> @click="DeleteFile(subIndex)">删除</a>
</template> </template>
</template> --> </template> -->
<el-upload class="avatar-uploader" action="" :http-request="uploadImg" <el-upload v-loading="uploadLoading" class="avatar-uploader" action="" :http-request="uploadImg"
accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false"> accept="image/jpeg,image/gif,image/png,image/bmp" :show-file-list="false">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar"> <img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i> <i v-else class="el-icon-plus avatar-uploader-icon"></i>
...@@ -449,6 +486,7 @@ ...@@ -449,6 +486,7 @@
export default { export default {
data() { data() {
return { return {
uploadLoading: false,
totalData: {}, totalData: {},
allCheck: false, allCheck: false,
addMsg: {}, addMsg: {},
...@@ -523,6 +561,8 @@ ...@@ -523,6 +561,8 @@
return; return;
} }
this.showCheck = true; this.showCheck = true;
this.BusinessCardPhotos = ''
this.addMsg = {}
}, },
getSelcetedIds() { getSelcetedIds() {
return this.czList return this.czList
...@@ -541,6 +581,8 @@ ...@@ -541,6 +581,8 @@
this.apipost('customer_post_GetSigningFinance', this.addMsg, res => { this.apipost('customer_post_GetSigningFinance', this.addMsg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.showCheck = false this.showCheck = false
this.$message.success(res.data.message || '操作成功')
this.getList()
} else { } else {
this.$message.error(res.data.message || '发生异常,请重试') this.$message.error(res.data.message || '发生异常,请重试')
} }
...@@ -548,11 +590,14 @@ ...@@ -548,11 +590,14 @@
}, },
uploadImg(file) { uploadImg(file) {
//上传 //上传
this.uploadLoading = true
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/Temporary/"; let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
this.uploadLoading = false
}); });
}, },
uploadFileBtn(file) { //上传 uploadFileBtn(file) { //上传
...@@ -590,6 +635,8 @@ ...@@ -590,6 +635,8 @@
link.click(); link.click();
}, },
checkFinance(item) { checkFinance(item) {
this.BusinessCardPhotos = ''
this.addMsg = {}
this.showCheck = true; this.showCheck = true;
this.checkObj = item; this.checkObj = item;
}, },
...@@ -612,15 +659,14 @@ ...@@ -612,15 +659,14 @@
} }
this.apipost('customer_post_GetSigningCustomerStatistics', this.msg, res => { this.apipost('customer_post_GetSigningCustomerStatistics', this.msg, res => {
if (res.data.resultCode == 0) { if (res.data.resultCode == 0) {
this.loading = false;
this.totalData = {} this.totalData = {}
} else { } else {
this.totalData = res.data.data; this.totalData = res.data.data;
this.loading = false;
} }
}, err => {}) }, err => {})
}, },
getList() { // 获取列表数据 getList() { // 获取列表数据
this.loading = true
this.czList = [] this.czList = []
if(this.msg.OutDate && this.msg.OutDate.length) { if(this.msg.OutDate && this.msg.OutDate.length) {
this.msg.StartTime = this.msg.OutDate[0] this.msg.StartTime = this.msg.OutDate[0]
......
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