|
|
@@ -93,7 +93,7 @@
|
|
|
width="400"
|
|
|
title="支付码"
|
|
|
>
|
|
|
- <img class="payCode" src="">
|
|
|
+ <img class="payCode" :src="payCodeUrl">
|
|
|
<template #footer>
|
|
|
<el-button plain type="danger">撤销二维码</el-button>
|
|
|
<el-button plain type="primary">保存二维码</el-button>
|
|
|
@@ -165,8 +165,20 @@ const handleCancel = () => {
|
|
|
|
|
|
// 支付码
|
|
|
let payCodeShow = ref(false)
|
|
|
+let payCodeUrl = ref('')
|
|
|
const payCode = (scope) => {
|
|
|
- payCodeShow.value = true
|
|
|
+ payCodeShow.value = true
|
|
|
+ api.insurancePolicyApi.getQrCode(scope.row.ordersNo).then((res: any) => {
|
|
|
+ if(res.code == 200) {
|
|
|
+ payCodeUrl.value = res.data
|
|
|
+ } else {
|
|
|
+ payCodeUrl.value = ''
|
|
|
+ ElMessage({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
const uploadStatus = (row) => {
|