|
@@ -38,7 +38,7 @@
|
|
|
<el-table-column>
|
|
|
<template #default="scope">
|
|
|
<el-button type="success" circle icon="Check" @click="approve(scope.row)" :disabled="scope.row.applyStatus === 1"></el-button>
|
|
|
- <el-button type="danger" circle icon="Close" @click="reject(scope.row)" :disabled="scope.row.applyStatus === 1"></el-button>
|
|
|
+ <el-button type="danger" circle icon="Close" @click="reject(scope.row)"></el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -51,8 +51,9 @@ import maleIcon from '@/assets/male-icon.png'
|
|
|
import femaleIcon from '@/assets/female-icon.png'
|
|
|
import {computed, onMounted, ref, Ref} from "vue";
|
|
|
import {getAllApplies, confirmHandleApply} from '@/api/medical-insurance/hospital-approval.js'
|
|
|
-import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
+import {ElMessageBox} from "element-plus";
|
|
|
import {formatMonth} from "@/utils/date";
|
|
|
+import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
|
|
|
interface ApplyItem {
|
|
|
name: string
|
|
@@ -123,12 +124,7 @@ const reject = (row: ApplyItem): void => {
|
|
|
|
|
|
const executeHandle = (row: ApplyItem): void => {
|
|
|
confirmHandleApply(row).then(res => {
|
|
|
- ElMessage({
|
|
|
- message: res,
|
|
|
- type: 'success',
|
|
|
- duration: 2500,
|
|
|
- showClose: true
|
|
|
- })
|
|
|
+ xcMessage.success(res)
|
|
|
})
|
|
|
}
|
|
|
|