|
|
@@ -138,8 +138,8 @@
|
|
|
@click="toEdit(scope.row)">计算保费</el-button>
|
|
|
<el-button link type="primary" v-if="scope.row.orderStatus === '8'"
|
|
|
@click="toEdit(scope.row)">重新报价</el-button>
|
|
|
- <el-button link type="primary" v-if="scope.row.orderStatus === '5'">下载电子保单</el-button>
|
|
|
- <el-button link type="primary" 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="danger" @click="deleteOrder(scope.row.orderNo)"
|
|
|
v-if="scope.row.orderStatus === '6' || scope.row.orderStatus === '8'">删除订单</el-button>
|
|
|
@@ -559,9 +559,16 @@ const handleSearch = () => {
|
|
|
size.value = 10
|
|
|
initData()
|
|
|
}
|
|
|
-const handleCancel = () => {
|
|
|
- orderForm.value = {}
|
|
|
- initData()
|
|
|
+
|
|
|
+const viewElectronicPolicy = async (row) => {
|
|
|
+ console.log("🚀 ~ viewElectronicPolicy ~ row:", row)
|
|
|
+ const params={
|
|
|
+ order:{
|
|
|
+ orderNo: row.orderNo
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const res=await api.insurancePolicyApi.downloadPolicy(params)
|
|
|
+ console.log("🚀 ~ viewElectronicPolicy ~ res:", res)
|
|
|
}
|
|
|
// 详情
|
|
|
const toDetail = (orderNo: any) => {
|