|
@@ -68,7 +68,8 @@
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button link type="primary">详情</el-button>
|
|
<el-button link type="primary">详情</el-button>
|
|
|
<el-button link type="primary">上传影像</el-button>
|
|
<el-button link type="primary">上传影像</el-button>
|
|
|
- <el-button link type="primary" v-if="scope.row.orderStatus === '7'">重新核保</el-button>
|
|
|
|
|
|
|
+ <el-button link type="primary" v-if="scope.row.orderStatus === '7'">重新核保</el-button>
|
|
|
|
|
+ <el-button link type="primary" v-if="scope.row.orderStatus === '4' || scope.row.orderStatus === '3'" @click="uploadStatus(scope.row)">状态更新</el-button>
|
|
|
<el-button link type="primary" v-if="scope.row.orderStatus === '1'">核保</el-button>
|
|
<el-button link type="primary" v-if="scope.row.orderStatus === '1'">核保</el-button>
|
|
|
<el-button link type="primary">分享</el-button>
|
|
<el-button link type="primary">分享</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>
|
|
@@ -105,13 +106,16 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import api from '@/api'
|
|
import api from '@/api'
|
|
|
import {ElMessage} from "element-plus";
|
|
import {ElMessage} from "element-plus";
|
|
|
|
|
+import insurancePolicyApi from "@/api/modules/insurancePolicy.ts";
|
|
|
|
|
|
|
|
let orderForm = ref({
|
|
let orderForm = ref({
|
|
|
orderNo: '',
|
|
orderNo: '',
|
|
|
licenseNo: '',
|
|
licenseNo: '',
|
|
|
range: []
|
|
range: []
|
|
|
})
|
|
})
|
|
|
-let tableData = ref([])
|
|
|
|
|
|
|
+let tableData = ref([
|
|
|
|
|
+ {}
|
|
|
|
|
+])
|
|
|
// 分页
|
|
// 分页
|
|
|
let pages = ref(1)
|
|
let pages = ref(1)
|
|
|
let size = ref(10)
|
|
let size = ref(10)
|
|
@@ -165,6 +169,21 @@ const payCode = (scope) => {
|
|
|
payCodeShow.value = true
|
|
payCodeShow.value = true
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const uploadStatus = (row) => {
|
|
|
|
|
+ api.insurancePolicyApi.getOrderStatus({
|
|
|
|
|
+ orderNo: row.id
|
|
|
|
|
+ }).then((res: any) => {
|
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
|
+ initData()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage({
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'warning'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
initData()
|
|
initData()
|
|
|
})
|
|
})
|