|
@@ -193,6 +193,7 @@ import { assetsCheckPage, majorCheckPage } from '@/api/commissonDeclare';
|
|
|
import { getTodoTotalNum } from '@/api/workNodeTaskRecord';
|
|
|
import { mapStores } from 'pinia';
|
|
|
import { menuStore } from '@/stores/menuStore';
|
|
|
+import { queryLastComments } from '@/api/workflowLog'
|
|
|
|
|
|
export default {
|
|
|
data() {
|
|
@@ -345,6 +346,8 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
if (res.data.records) {
|
|
|
this.personalListData = this.personalListData.concat(res.data.records);
|
|
|
+ const businessIds = res.data.records.map(item=>item.businessId)
|
|
|
+ this.queryPersonalComments(businessIds);
|
|
|
}
|
|
|
// 判断是否还有下一页
|
|
|
if (res.data.pages > this.personalListQuery.current) {
|
|
@@ -664,6 +667,21 @@ export default {
|
|
|
toMajorDeclDetail(item) {
|
|
|
this.$router.push(`/index/commissonDeclare/major/declareDetail?businessId=${item.businessId}&businessType=${item.businessType}&couldEdit=${true}`);
|
|
|
},
|
|
|
+
|
|
|
+ // 个贷获取最新备注
|
|
|
+ queryPersonalComments(businessIds){
|
|
|
+ queryLastComments(businessIds).then(res=>{
|
|
|
+ if (res.code === 200){
|
|
|
+ for (let i in this.personalListData){
|
|
|
+ for (let j in res.data){
|
|
|
+ if (this.personalListData[i].businessId == res.data[j].id){
|
|
|
+ this.personalListData[i].comments = res.data[j].comments;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
};
|
|
|
</script>
|