Commit 28cc8722 authored by feifei's avatar feifei

优化

parent 2ff7f25f
...@@ -278,6 +278,18 @@ ...@@ -278,6 +278,18 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="page">
<el-pagination
@current-change="customerHandleCurrentChange"
@size-change="customerHandleSizeChange"
:current-page.sync="customerPage.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="customerPage.size"
layout="total, sizes, prev, pager, next, jumper"
:total="customerPage.total">
</el-pagination>
</div>
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="催收记录" name="7"> <el-collapse-item title="催收记录" name="7">
...@@ -296,6 +308,18 @@ ...@@ -296,6 +308,18 @@
:formatter="formatSeconds"></el-table-column> :formatter="formatSeconds"></el-table-column>
<el-table-column prop="collectContact.record" label="催记"></el-table-column> <el-table-column prop="collectContact.record" label="催记"></el-table-column>
</el-table> </el-table>
<div class="page">
<el-pagination
@current-change="collectHandleCurrentChange"
@size-change="collectHandleSizeChange"
:current-page.sync="collectPage.current"
:page-sizes="[10, 20, 50, 100]"
:page-size="collectPage.size"
layout="total, sizes, prev, pager, next, jumper"
:total="collectPage.total">
</el-pagination>
</div>
</el-collapse-item> </el-collapse-item>
<el-collapse-item title="操作日志" name="8"> <el-collapse-item title="操作日志" name="8">
...@@ -458,6 +482,16 @@ export default { ...@@ -458,6 +482,16 @@ export default {
size: 10, size: 10,
total: 0 total: 0
}, },
customerPage: {
current: 1,
size: 10,
total: 0
},
collectPage: {
current: 1,
size: 10,
total: 0
},
loanBackedList: [], loanBackedList: [],
customerFeedList: [], customerFeedList: [],
collectFeedList: [{ collectFeedList: [{
...@@ -600,6 +634,8 @@ export default { ...@@ -600,6 +634,8 @@ export default {
}, },
loanNos: '', loanNos: '',
clientNos: '', clientNos: '',
clientCells: '',
clientProducts: '',
}, },
} }
}, },
...@@ -617,6 +653,8 @@ export default { ...@@ -617,6 +653,8 @@ export default {
}, },
created() { created() {
this.clientNos = this.$route.query.clientNo; this.clientNos = this.$route.query.clientNo;
this.clientProducts = this.$route.query.clientProductName;
this.clientCells = this.$route.query.phoneNo;
this.backedData(this.$route.query.phoneNo, this.$route.query.clientNo, this.$route.query.clientProductName); this.backedData(this.$route.query.phoneNo, this.$route.query.clientNo, this.$route.query.clientProductName);
this.addLoanDetail(this.$route.query.loanNo); this.addLoanDetail(this.$route.query.loanNo);
}, },
...@@ -736,37 +774,46 @@ export default { ...@@ -736,37 +774,46 @@ export default {
this.clientDailyInfo(this.$route.query.clientNo); this.clientDailyInfo(this.$route.query.clientNo);
// 请求当前的反馈问题/customer/getQuestionList/ // 请求当前的反馈问题/customer/getQuestionList/
this.$$post('/feed/feedList/', {
clientNo: clientNo, // 请求当前日志
feedSource: 'CUSTOMER', this.$$post('/feed/feedPageList',
feedProduct: clientProductName {clientCell: phoneNo,
}).then(res => { feedProduct: clientProductName,
feedSource: 'CUSTOMER',
size: this.customerPage.size,
current: this.customerPage.current,
sort: 'id desc'}).then(res => {
if (res.data.code != 200) { if (res.data.code != 200) {
// this.isShow = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
return return
} else { }
if (res.data.result != null) { if (res.data.result.records != null) {
this.customerFeedList = res.data.result ? res.data.result : ''; this.customerFeedList = res.data.result.records ? res.data.result.records : '';
} this.customerPage.total = res.data.result.total;
} }
}).catch(error => { }).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。'); this.$message.error(error || '系统异常');
}); });
this.$$post('/feed/feedList/', {clientCell: phoneNo, feedProduct: 'GXD', feedSource: 'COLLECT'}).then(res => { // 请求当前日志
this.$$post('/feed/feedPageList',
{clientCell: phoneNo,
feedProduct: 'GXD',
feedSource: 'COLLECT',
size: this.collectPage.size,
current: this.collectPage.current,
sort: 'id desc'}).then(res => {
if (res.data.code != 200) { if (res.data.code != 200) {
// this.isShow = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
return return
} else { }
if (res.data.result != null) { if (res.data.result.records != null) {
this.collectFeedList = res.data.result ? res.data.result : ''; this.collectFeedList = res.data.result.records ? res.data.result.records : '';
} this.collectPage.total = res.data.result.total;
} }
}).catch(error => { }).catch(error => {
this.$message.error(error || '网络异常,请稍后。。。'); this.$message.error(error || '系统异常');
}); });
...@@ -803,6 +850,52 @@ export default { ...@@ -803,6 +850,52 @@ export default {
}); });
}, },
//客服反馈信息
customerInfo(phoneNo) {
// 请求当前日志
this.$$post('/feed/feedPageList',
{clientCell: phoneNo,
feedProduct: this.clientProducts,
feedSource: 'CUSTOMER',
size: this.customerPage.size,
current: this.customerPage.current,
sort: 'id desc'}).then(res => {
if (res.data.code != 200) {
this.$message.error(res.data.message);
return
}
if (res.data.result.records != null) {
this.customerFeedList = res.data.result.records ? res.data.result.records : '';
this.customerPage.total = res.data.result.total;
}
}).catch(error => {
this.$message.error(error || '系统异常');
});
},
//客户催收信息
collectInfo(phoneNo) {
// 请求当前日志
this.$$post('/feed/feedPageList',
{clientCell: phoneNo,
feedProduct: 'GXD',
feedSource: 'COLLECT',
size: this.collectPage.size,
current: this.collectPage.current,
sort: 'id desc'}).then(res => {
if (res.data.code != 200) {
this.$message.error(res.data.message);
return
}
if (res.data.result.records != null) {
this.collectFeedList = res.data.result.records ? res.data.result.records : [];
this.collectPage.total = res.data.result.total;
}
}).catch(error => {
this.$message.error(error || '系统异常');
});
},
//根据借款信息查借款所有信息 //根据借款信息查借款所有信息
addLoanDetail(record) { addLoanDetail(record) {
this.isNeedAudit = true; this.isNeedAudit = true;
...@@ -1075,6 +1168,27 @@ export default { ...@@ -1075,6 +1168,27 @@ export default {
this.clientDailyInfo(this.clientNos); this.clientDailyInfo(this.clientNos);
}, },
/** 客服反馈处理分页操作*/
customerHandleCurrentChange() {
this.customerFeedList = this.customerInfo(this.clientCells);
},
customerHandleSizeChange(row) {
this.customerPage.size = row
this.customerPage.current = 1;
this.customerInfo(this.clientCells);
},
/** 客户催收处理分页操作*/
collectHandleCurrentChange() {
this.collectFeedList = this.collectInfo(this.clientCells);
},
collectHandleSizeChange(row) {
this.collectPage.size = row
this.collectPage.current = 1;
this.collectInfo(this.clientCells);
},
//结果状态 //结果状态
resultFormat: function (row, column) { resultFormat: function (row, column) {
let result = row['result']; let result = row['result'];
......
...@@ -274,13 +274,13 @@ ...@@ -274,13 +274,13 @@
} }
return_hash['feedSource'] = 'APP' return_hash['feedSource'] = 'APP'
if (this.searchInfo.gmtStartTime != null && this.searchInfo.gmtStartTime.length>0) { if (this.searchInfo.gmtStartTime != null && this.searchInfo.gmtStartTime.length>0) {
var  end = new Date(this.searchInfo.gmtStartTime[1]) var end = new Date(this.searchInfo.gmtStartTime[1])
          end=end.setDate(end.getDate()+1); end=end.setDate(end.getDate()+1);
          end=new Date(end); end=new Date(end);
          return_hash['gmtStartTime'] = this.searchInfo.gmtStartTime[0]; return_hash['gmtStartTime'] = this.searchInfo.gmtStartTime[0];
          return_hash['gmtEndTime'] = end return_hash['gmtEndTime'] = end
} }
......
...@@ -310,6 +310,8 @@ const enumUtils = { ...@@ -310,6 +310,8 @@ const enumUtils = {
{code: 'RNY_DAI', message: '任你用'}, {code: 'RNY_DAI', message: '任你用'},
{code: 'QYD_DAI', message: '钱有道'}, {code: 'QYD_DAI', message: '钱有道'},
{code: 'JP_DAI', message: '榕树九品贷'}, {code: 'JP_DAI', message: '榕树九品贷'},
{code: 'HY_DAI', message: '花鸭'},
{code: 'R360_DAI', message: '融360'},
] ]
}; };
......
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