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

save

parent 718ee491
......@@ -589,7 +589,7 @@
</div>
<div>
<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'
:key='item.customerId'>
</el-option>
......
......@@ -490,12 +490,12 @@
border="0"
cellspacing="0"
cellpadding="0"
v-loading="loading"
>
<tr>
<th>姓名</th>
<th>联系电话</th>
<th>门店名称</th>
<th>签约到期时间</th>
<th>累计交易额</th>
<th>签约额度</th>
<th>未结算额度</th>
......@@ -506,6 +506,7 @@
</td>
<td>{{ item.contactNumber }}</td>
<td>{{ item.customerName }}</td>
<td>{{ item.signingEndTime }}</td>
<td><span @click="goUrlCC(item.customerId,3)"
style="cursor: pointer;text-decoration: underline;">{{item.tradeTotal}}</span></td>
<td><span @click="goUrlCCC(item.customerId,3)"
......
......@@ -1489,7 +1489,6 @@
}, err => {})
},
saveVisa() {
this.addMsg.SigningType = this.addMsg.SigningType ? 1 : 0
if (!this.addMsg.contactNumber) {
this.$message.error('请输入联系电话')
return
......@@ -1564,6 +1563,7 @@
this.$message.error('请输入输入详情地址')
return
}
this.addMsg.SigningType = this.addMsg.SigningType ? 1 : 0
this.apipost('app_add_new_visit_customer', this.addMsgS, res => {
if (res.data.resultCode == 1) {
this.addMsg = {
......
......@@ -346,21 +346,44 @@
}
</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>
<div class="page_MyCustomer MyCustomerDiv">
<div class="page_MyCustomerSearch">
<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">
<div class="page_MyCustomer MyCustomerDiv page_fnDm">
<ul class=" _mc_addbox">
<li :class="{active:type==1}" @click="type=1;clickGetList(1)">
未结算
<div class="divActive" v-show="type==1"></div>
......@@ -369,13 +392,27 @@
已结算
<div class="divActive" v-show="type==2"></div>
</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 style="margin: 10px">汇总金额:{{totalData.Money}}</div>
<div v-if="type == 1" style="margin: 10px">
<el-checkbox v-model="allCheck" @change="changeSelect">全选</el-checkbox>
<el-button style="margin-left: 10px" type="primary" size="small" @click="eidtItems">批量操作</el-button>
</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>
<th v-if="type == 1"></th>
<th>单号</th>
......@@ -426,7 +463,7 @@
@click="DeleteFile(subIndex)">删除</a>
</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">
<img v-if="BusinessCardPhotos" :src="BusinessCardPhotos" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
......@@ -449,6 +486,7 @@
export default {
data() {
return {
uploadLoading: false,
totalData: {},
allCheck: false,
addMsg: {},
......@@ -523,6 +561,8 @@
return;
}
this.showCheck = true;
this.BusinessCardPhotos = ''
this.addMsg = {}
},
getSelcetedIds() {
return this.czList
......@@ -541,6 +581,8 @@
this.apipost('customer_post_GetSigningFinance', this.addMsg, res => {
if (res.data.resultCode == 1) {
this.showCheck = false
this.$message.success(res.data.message || '操作成功')
this.getList()
} else {
this.$message.error(res.data.message || '发生异常,请重试')
}
......@@ -548,11 +590,14 @@
},
uploadImg(file) {
//上传
this.uploadLoading = true
let newArr = [];
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.UploadSelfFileT(path, newArr, x => {
this.BusinessCardPhotos = this.domainManager().ViittoFileUrl + x.data.FilePath
this.uploadLoading = false
});
},
uploadFileBtn(file) { //上传
......@@ -590,6 +635,8 @@
link.click();
},
checkFinance(item) {
this.BusinessCardPhotos = ''
this.addMsg = {}
this.showCheck = true;
this.checkObj = item;
},
......@@ -612,15 +659,14 @@
}
this.apipost('customer_post_GetSigningCustomerStatistics', this.msg, res => {
if (res.data.resultCode == 0) {
this.loading = false;
this.totalData = {}
} else {
this.totalData = res.data.data;
this.loading = false;
}
}, err => {})
},
getList() { // 获取列表数据
this.loading = true
this.czList = []
if(this.msg.OutDate && this.msg.OutDate.length) {
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