Quellcode durchsuchen

Merge branch 'dev' of http://39.101.143.165:8090/dong_k/tenant-Platform into dev

@dongkboy vor 3 Monaten
Ursprung
Commit
f9f78d0b52
1 geänderte Dateien mit 9 neuen und 10 gelöschten Zeilen
  1. 9 10
      src/views/insurancePolicy/order.vue

+ 9 - 10
src/views/insurancePolicy/order.vue

@@ -126,8 +126,7 @@
           <el-button link type="primary" v-if="scope.row.orderStatus === '7' || scope.row.orderStatus === '1'"
           <el-button link type="primary" v-if="scope.row.orderStatus === '7' || scope.row.orderStatus === '1'"
             @click="toEdit(scope.row)">提交核保</el-button>
             @click="toEdit(scope.row)">提交核保</el-button>
           <el-button link type="primary" v-if="scope.row.orderStatus === '3'">取消核保</el-button>
           <el-button link type="primary" v-if="scope.row.orderStatus === '3'">取消核保</el-button>
-          <el-button link type="primary"
-            v-if="scope.row.orderStatus === '7'  || scope.row.orderStatus === '4'"
+          <el-button link type="primary" v-if="scope.row.orderStatus === '7' || scope.row.orderStatus === '4'"
             @click="updateOrderStatus(scope.row.orderNo)">更新订单</el-button>
             @click="updateOrderStatus(scope.row.orderNo)">更新订单</el-button>
           <!-- 模拟接口,正式上线后,删除 -->
           <!-- 模拟接口,正式上线后,删除 -->
           <el-button link type="primary" :loading="scope.row.loading" v-if="scope.row.orderStatus === '4'"
           <el-button link type="primary" :loading="scope.row.loading" v-if="scope.row.orderStatus === '4'"
@@ -138,8 +137,10 @@
             @click="toEdit(scope.row)">计算保费</el-button>
             @click="toEdit(scope.row)">计算保费</el-button>
           <el-button link type="primary" v-if="scope.row.orderStatus === '8'"
           <el-button link type="primary" v-if="scope.row.orderStatus === '8'"
             @click="toEdit(scope.row)">重新报价</el-button>
             @click="toEdit(scope.row)">重新报价</el-button>
-          <el-button link type="primary" @click="viewElectronicPolicy(scope.row)" v-if="scope.row.orderStatus === '5'">下载电子保单</el-button>
-          <el-button link type="primary" @click="viewElectronicPolicy(scope.row)" v-if="scope.row.orderStatus === '5'">查看电子保单</el-button>
+          <el-button link type="primary" @click="viewElectronicPolicy(scope.row)"
+            v-if="scope.row.orderStatus === '5'">下载电子保单</el-button>
+          <el-button link type="primary" @click="viewElectronicPolicy(scope.row)"
+            v-if="scope.row.orderStatus === '5'">查看电子保单</el-button>
           <el-button link type="primary" v-if="scope.row.orderStatus === '4'" @click="payCode(scope)">支付码</el-button>
           <el-button link type="primary" v-if="scope.row.orderStatus === '4'" @click="payCode(scope)">支付码</el-button>
           <el-button link type="danger" @click="deleteOrder(scope.row.orderNo)"
           <el-button link type="danger" @click="deleteOrder(scope.row.orderNo)"
             v-if="scope.row.orderStatus === '6' || scope.row.orderStatus === '8'">删除订单</el-button>
             v-if="scope.row.orderStatus === '6' || scope.row.orderStatus === '8'">删除订单</el-button>
@@ -561,14 +562,12 @@ const handleSearch = () => {
 }
 }
 
 
 const viewElectronicPolicy = async (row) => {
 const viewElectronicPolicy = async (row) => {
-  console.log("🚀 ~ viewElectronicPolicy ~ row:", row)
-  const params={
-    order:{
-      orderNo: row.orderNo
+  const params = {
+    order: {
+      ordersNo: row.orderNo
     }
     }
   }
   }
-  const res=await api.insurancePolicyApi.downloadPolicy(params)
-  console.log("🚀 ~ viewElectronicPolicy ~ res:", res)
+  const res = await api.insurancePolicyApi.downloadPolicy(params)
 }
 }
 // 详情
 // 详情
 const toDetail = (orderNo: any) => {
 const toDetail = (orderNo: any) => {