Jelajahi Sumber

跳转到订单详情页自动滚动到指定模块

祁鹏飞 4 bulan lalu
induk
melakukan
027f8b6295
2 mengubah file dengan 13 tambahan dan 1 penghapusan
  1. 11 0
      src/views/insurancePolicy/orderDetail.vue
  2. 2 1
      src/views/platform/index.vue

+ 11 - 0
src/views/insurancePolicy/orderDetail.vue

@@ -1685,6 +1685,15 @@ const getQuoteNumber = (licenseNo, vinNo, engineNo) => {
   })
   })
 }
 }
 
 
+/** 根据路由参数 jumpType 跳转至对应的提示项,并触发提示切换处理 */
+const jumpFn=()=>{
+  const jumpType= myRoute.query.jumpType
+  if(!jumpType) return
+  const obj=tipsList.value.find(v=>v.id===jumpType)
+  const index=tipsList.value.findIndex(v=>v.id===jumpType)
+  handleTipsIndexChange(obj,index)
+}
+
 // 获取详情
 // 获取详情
 const detailData = ref<any>(null)
 const detailData = ref<any>(null)
 const initDetail = () => {
 const initDetail = () => {
@@ -1746,6 +1755,8 @@ const initDetail = () => {
         }));
         }));
       }
       }
       imageEcho(res.data.order.quoteNo)
       imageEcho(res.data.order.quoteNo)
+
+      nextTick(()=>jumpFn())
       // if (res.data.imageVoList && res.data.imageVoList.length > 0) {
       // if (res.data.imageVoList && res.data.imageVoList.length > 0) {
       //   images.value = res.data.imageVoList.map(a => {
       //   images.value = res.data.imageVoList.map(a => {
       //     return {
       //     return {

+ 2 - 1
src/views/platform/index.vue

@@ -845,7 +845,8 @@ const toEdit = (row: any) => {
     myRouter.push({
     myRouter.push({
         path: '/insurancePolicy/order/insurancePolicyOrderDetail',
         path: '/insurancePolicy/order/insurancePolicyOrderDetail',
         query: {
         query: {
-            orderNo: row.orderNo
+            orderNo: row.orderNo,
+            jumpType:'costMsg'
         }
         }
     })
     })
 }
 }