Explorar el Código

fix: 修改bug

wuguojie hace 9 meses
padre
commit
4f1863b0c7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/views/insurancePolicy/index.vue

+ 3 - 3
src/views/insurancePolicy/index.vue

@@ -1211,7 +1211,7 @@
               <template #default="scope">
                 <div v-if="currentRow.some(a => a.id === scope.row.id)">
                   <el-button link type="primary" @click="handleCount(scope)">优惠测算</el-button>
-                  <el-button link type="primary" @click="toDetail(scope.row.orderNo)">详情</el-button>
+                  <el-button v-if="scope.row.quoteResult" link type="primary" @click="toDetail(scope)">详情</el-button>
                   <el-button link type="primary" :loading="scope.row.loading" @click="handleSubmit(InsurancePolicyRefs,scope)">计算保费</el-button>
                   <el-button link type="primary" @click="handleShare(scope)">分享</el-button>
                   <el-button link type="primary" @click="handleUnderwriting(scope)">核保</el-button>
@@ -2569,11 +2569,11 @@ const handleCount = (scope) => {
 }
 
 // 详情
-const toDetail = (orderNo: any) => {
+const toDetail = (scope: any) => {
     router.push({
         path: '/insurancePolicy/order/insurancePolicyOrderDetail',
         query: {
-            orderNo: orderNo
+            orderNo: scope.row.quoteResult.ordersNo
         }
     })
 }