Explorar o código

Merge branch 'master' of http://47.108.172.52:3000/dayou/item-management-vant

GouGengquan hai 1 día
pai
achega
3048ce4696

+ 9 - 0
src/api/workflowLog.js

@@ -0,0 +1,9 @@
+import request from '@/utils/request'
+/*
+* 工作流日志
+*/
+
+// 个贷获取最新备注
+export function queryLastComments(params) {
+  return request.post(`workFlowLog/comments`, { businessIds: params })
+}

+ 1 - 1
src/views/assets/pendingOrder.vue

@@ -24,7 +24,7 @@
           </div>
           <div>
             <van-tag type="primary" size="medium" class="van-tag">{{ item.currentNodeName }}</van-tag>
-            <van-tag type="success" size="medium" class="van-tag">{{ item.clientManagerName }}</van-tag>
+            <van-tag type="success" size="medium" class="van-tag">{{ item.handlerName }}</van-tag>
             <van-tag color="#969799" size="medium" class="van-tag">{{ item.created }}</van-tag>
           </div>
         </div>

+ 20 - 0
src/views/home/todo.vue

@@ -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,23 @@ export default {
     toMajorDeclDetail(item) {
       this.$router.push(`/index/commissonDeclare/major/declareDetail?businessId=${item.businessId}&businessType=${item.businessType}&couldEdit=${true}`);
     },
+
+    // 个贷获取最新备注
+    queryPersonalComments(businessIds){
+      if (businessIds && businessIds.length>0){
+        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>

+ 1 - 1
src/views/major/pendingOrder.vue

@@ -24,7 +24,7 @@
           </div>
           <div>
             <van-tag type="primary" size="medium" class="van-tag">{{ item.nodeName }}</van-tag>
-            <van-tag type="success" size="medium" class="van-tag">{{ item.clientManager }}</van-tag>
+            <van-tag type="success" size="medium" class="van-tag">{{ item.handler }}</van-tag>
             <van-tag color="#969799" size="medium" class="van-tag">{{ item.created }}</van-tag>
           </div>
         </div>

+ 1 - 0
src/views/personal/detail.vue

@@ -14,6 +14,7 @@
         <van-field label="总价" v-model="personal.amount" name="amount" readonly placeholder="-">
           <template #button>万元</template>
         </van-field>
+        <van-field label="客户经理" v-model="personal.clientManager" name="clientManager" readonly placeholder="-" />
         <van-field label="客户名称" v-model="personal.clientName" name="clientName" readonly placeholder="-" />
         <van-field label="业务来源" v-model="personal.clientSubName" name="clientSubName" readonly placeholder="-" />
         <van-field label="中介" v-model="personal.agent" name="agent" readonly placeholder="-" />

+ 29 - 1
src/views/personal/pendingOrder.vue

@@ -23,9 +23,15 @@
           </div>
           <div>
             <van-tag type="primary" size="medium" class="van-tag">{{ item.currentNodeName }}</van-tag>
-            <van-tag type="success" size="medium" class="van-tag">{{ item.clientManager }}</van-tag>
+            <van-tag type="success" size="medium" class="van-tag">{{ item.handlerName }}</van-tag>
             <van-tag color="#969799" size="medium" class="van-tag">{{ item.created }}</van-tag>
           </div>
+          <div class="comments">
+              <div>
+                <van-icon name="notes-o" />
+                {{ item.comments ? item.comments : '-' }}
+              </div>
+            </div>
         </div>
       </van-list>
     </van-pull-refresh>
@@ -35,6 +41,7 @@
 
 <script>
 import { pendingOrder } from '@/api/personal';
+import { queryLastComments } from '@/api/workflowLog'
 
 export default {
   data() {
@@ -75,6 +82,8 @@ export default {
         if (res.code == 200) {
           if (res.data.records) {
             this.listData = this.listData.concat(res.data.records);
+            const businessIds = res.data.records.map(item=>item.id)
+            this.queryPersonalComments(businessIds);
           }
           // 判断是否还有下一页
           if (res.data.pages > this.listQuery.current) {
@@ -108,6 +117,7 @@ export default {
         shouldAmount: item.shouldAmount,
         invoiceAmount: item.invoiceAmount,
         created: item.created,
+        clientManager: item.clientManager
       };
       this.$router.push({
         path: `/index/personal/detail`,
@@ -116,6 +126,20 @@ export default {
         },
       });
     },
+     // 个贷获取最新备注
+     queryPersonalComments(businessIds){
+      queryLastComments(businessIds).then(res=>{
+          if (res.code === 200){
+              for (let i in this.listData){
+                  for (let j in res.data){
+                      if (this.listData[i].id == res.data[j].id){
+                        this.listData[i].comments = res.data[j].comments;
+                      }
+                  }
+              }
+          }
+      })
+    }
   },
 };
 </script>
@@ -150,4 +174,8 @@ export default {
 .clientInfo {
   margin-bottom: 5px;
 }
+.comments {
+  margin-bottom: 5px;
+  color: darkgrey;
+}
 </style>