Commit 28cc8722 authored by feifei's avatar feifei

优化

parent 2ff7f25f
......@@ -278,6 +278,18 @@
</template>
</el-table-column>
</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 title="催收记录" name="7">
......@@ -296,6 +308,18 @@
:formatter="formatSeconds"></el-table-column>
<el-table-column prop="collectContact.record" label="催记"></el-table-column>
</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 title="操作日志" name="8">
......@@ -458,6 +482,16 @@ export default {
size: 10,
total: 0
},
customerPage: {
current: 1,
size: 10,
total: 0
},
collectPage: {
current: 1,
size: 10,
total: 0
},
loanBackedList: [],
customerFeedList: [],
collectFeedList: [{
......@@ -600,6 +634,8 @@ export default {
},
loanNos: '',
clientNos: '',
clientCells: '',
clientProducts: '',
},
}
},
......@@ -617,6 +653,8 @@ export default {
},
created() {
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.addLoanDetail(this.$route.query.loanNo);
},
......@@ -736,37 +774,46 @@ export default {
this.clientDailyInfo(this.$route.query.clientNo);
// 请求当前的反馈问题/customer/getQuestionList/
this.$$post('/feed/feedList/', {
clientNo: clientNo,
// 请求当前日志
this.$$post('/feed/feedPageList',
{clientCell: phoneNo,
feedProduct: clientProductName,
feedSource: 'CUSTOMER',
feedProduct: clientProductName
}).then(res => {
size: this.customerPage.size,
current: this.customerPage.current,
sort: 'id desc'}).then(res => {
if (res.data.code != 200) {
// this.isShow = false;
this.$message.error(res.data.message);
return
} else {
if (res.data.result != null) {
this.customerFeedList = res.data.result ? res.data.result : '';
}
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 || '网络异常,请稍后。。。');
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) {
// this.isShow = false;
this.$message.error(res.data.message);
return
} else {
if (res.data.result != null) {
this.collectFeedList = res.data.result ? res.data.result : '';
}
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 || '网络异常,请稍后。。。');
this.$message.error(error || '系统异常');
});
......@@ -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) {
this.isNeedAudit = true;
......@@ -1075,6 +1168,27 @@ export default {
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) {
let result = row['result'];
......
......@@ -274,13 +274,13 @@
}
return_hash['feedSource'] = 'APP'
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=new Date(end);
end=end.setDate(end.getDate()+1);
end=new Date(end);
          return_hash['gmtStartTime'] = this.searchInfo.gmtStartTime[0];
          return_hash['gmtEndTime'] = end
return_hash['gmtStartTime'] = this.searchInfo.gmtStartTime[0];
return_hash['gmtEndTime'] = end
}
......
......@@ -310,6 +310,8 @@ const enumUtils = {
{code: 'RNY_DAI', message: '任你用'},
{code: 'QYD_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