|
@@ -29,12 +29,28 @@
|
|
|
<span v-html="huanHangXianShi(scope.row.startTime)"></span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="80">
|
|
|
+ <el-table-column label="操作" width="120">
|
|
|
<template #default="scope">
|
|
|
- <el-button circle icon="el-icon-view" title="查看"
|
|
|
- @click="dianJiaJianChaXiangQing(scope.row,scope.$index)"></el-button>
|
|
|
- <el-button circle icon="iconfont icon-dayin" title="打印"
|
|
|
- @click="dianJiDaYingJianCha(scope.row,scope.$index)"></el-button>
|
|
|
+ <el-dropdown size="small" split-button type="primary"
|
|
|
+ @click="dianJiaJianChaXiangQing(scope.row,scope.$index)">
|
|
|
+ 查看
|
|
|
+ <template #dropdown>
|
|
|
+ <el-dropdown-menu>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button icon="el-icon-printer" type="success"
|
|
|
+ @click="dianJiDaYingJianCha(scope.row,scope.$index)">
|
|
|
+ 打印
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <br>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button icon="el-icon-delete" type="danger" @click="dianJiShanChu(scope.row,scope.$index)">
|
|
|
+ 删除
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </template>
|
|
|
+ </el-dropdown>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -61,7 +77,8 @@ import {computed, ref, watch} from "vue";
|
|
|
import {
|
|
|
huoQuJianChaShenQing,
|
|
|
huoQuJianYanJianChaMing,
|
|
|
- huoQuShengQingXiangQing
|
|
|
+ huoQuShengQingXiangQing,
|
|
|
+ shanChuJianChaJianYan
|
|
|
} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
|
|
|
import store from "@/store";
|
|
|
import DaYingJianCha from "@/components/zhu-yuan-yi-sheng/jian-cha-shen-qing/da-ying/DaYingJianCha.vue";
|
|
@@ -69,6 +86,7 @@ import {getDateRangeFormatDate, huanHangXianShi} from "@/utils/date";
|
|
|
import {shortcuts} from '@/data/shortcuts'
|
|
|
import TianJiaJianChaJianYan from "@/components/zhu-yuan-yi-sheng/TianJiaJianChaJianYan.vue";
|
|
|
import router from "@/router";
|
|
|
+import {ElMessageBox} from "element-plus";
|
|
|
|
|
|
export default {
|
|
|
name: "JianChaShenQing",
|
|
@@ -132,6 +150,17 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ const dianJiShanChu = (row, index) => {
|
|
|
+ console.log(row)
|
|
|
+ ElMessageBox.confirm(`您确定要删除【${row.orderName}】吗?`, '提示').then(() => {
|
|
|
+ shanChuJianChaJianYan(row.reqNo, row.inpatientNo, row.admissTimes).then((res) => {
|
|
|
+ console.log(row, index)
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
const querySearchAsync = (val, cb) => {
|
|
|
if (youWuXuanZheHuanZhe()) return
|
|
|
huoQuJianYanJianChaMing(val, huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes, huanZheXinXi.value.bedNo, '3').then(res => {
|
|
@@ -150,7 +179,6 @@ export default {
|
|
|
path: '/inpatient/zhuYuanYiSheng/jianChaShenQing'
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
}
|
|
|
|
|
|
const tableRowClassName = ({rowIndex}) => {
|
|
@@ -178,7 +206,8 @@ export default {
|
|
|
querySearchAsync,
|
|
|
shortcuts,
|
|
|
daKaiTianJiaJianCha,
|
|
|
- tableRowClassName
|
|
|
+ tableRowClassName,
|
|
|
+ dianJiShanChu
|
|
|
}
|
|
|
}
|
|
|
|