|
@@ -55,27 +55,30 @@
|
|
|
</el-button>
|
|
|
</el-header>
|
|
|
<el-main>
|
|
|
- <el-table
|
|
|
- ref="tableRef"
|
|
|
- :data="yiZhuPage.data"
|
|
|
- :height="windowSize.h / 1.5"
|
|
|
- :row-class-name="differChildrenRows"
|
|
|
- border
|
|
|
- class="eltable"
|
|
|
- highlight-current-row
|
|
|
- row-key="actOrderNo"
|
|
|
- @selection-change="huoQuXuanZhongDeShuJu"
|
|
|
- @select-all="quanXuanYiZhu"
|
|
|
- @row-click="clickOnTheForm"
|
|
|
- >
|
|
|
- <el-table-column fixed="left" type="index"></el-table-column>
|
|
|
- <el-table-column fixed="left" type="selection"></el-table-column>
|
|
|
+ <xc-table :data="yiZhuPage" row-key="actOrderNo"
|
|
|
+ @currentChange="handleCurrentChange"
|
|
|
+ @sizeChange="handleSizeChange"
|
|
|
+ :height="windowSize.h / 1.5"
|
|
|
+ @selectionChange="huoQuXuanZhongDeShuJu"
|
|
|
+ ref="tableRef">
|
|
|
+ <el-table-column fixed="left" reserve-selection type="selection"></el-table-column>
|
|
|
<el-table-column fixed="left" label="医嘱号" prop="actOrderNo" width="120">
|
|
|
<template #default="scope">
|
|
|
- <el-tag :type="getYiZhuFlag(scope.row.statusFlag)" effect="dark">{{ scope.row.actOrderNo }}</el-tag>
|
|
|
+ <el-tag :type="getYiZhuFlag(scope.row.statusFlag)" effect="dark">
|
|
|
+ {{ scope.row.actOrderNo }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="left" width="20">
|
|
|
+ <template #default="scope">
|
|
|
+ {{ scope.row.orderGroup }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column fixed="left" label="医嘱名称" show-overflow-tooltip width="135">
|
|
|
+ <template #default="scope">
|
|
|
+ {{ scope.row.orderName }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="left" label="医嘱名称" prop="orderName" show-overflow-tooltip width="135"></el-table-column>
|
|
|
<el-table-column label="剂量" prop="doseUnitName">
|
|
|
<template #default="scope">
|
|
|
<span>{{ scope.row.dose }} {{ scope.row.doseUnitName }}</span>
|
|
@@ -115,35 +118,21 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="药房" prop="groupNoName"></el-table-column>
|
|
|
<el-table-column label="序号" prop="serialName"></el-table-column>
|
|
|
- <el-table-column fixed="right" label="操作" width="150">
|
|
|
+ <el-table-column fixed="right" width="220">
|
|
|
+ <template #header>
|
|
|
+ <el-button size="small" @click="clearSelection" type="warning">清空选择</el-button>
|
|
|
+ </template>
|
|
|
<template #default="scope">
|
|
|
- <el-dropdown :hide-on-click="false" size="small" split-button type="primary">
|
|
|
- 操作
|
|
|
- <template #dropdown>
|
|
|
- <el-dropdown-menu>
|
|
|
- <el-dropdown-item :disabled="scope.row.statusFlag === '5'"
|
|
|
- @click="dianJiYiZhuChaoZuo(scope.row, 1,'无')">
|
|
|
- <span v-if="scope.row.emergencyFlag === '1'">取消紧急</span>
|
|
|
- <span v-else>设为紧急</span>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item @click="dianJiYiZhuChaoZuo(scope.row, 2, '撤销医嘱')"> 撤销医嘱</el-dropdown-item>
|
|
|
- <el-dropdown-item @click="dianJiYiZhuChaoZuo(scope.row, 3, '停止医嘱')"> 停止医嘱</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </template>
|
|
|
- </el-dropdown>
|
|
|
+ <el-button text :disabled="scope.row.statusFlag === '5'"
|
|
|
+ @click.stop="dianJiYiZhuChaoZuo(scope.row, 1,'无')">
|
|
|
+ <span v-if="scope.row.emergencyFlag === '1'">取消</span>
|
|
|
+ <span v-else>紧急</span>
|
|
|
+ </el-button>
|
|
|
+ <el-button text @click.stop="dianJiYiZhuChaoZuo(scope.row, 2, '撤销医嘱')" type="warning"> 撤销</el-button>
|
|
|
+ <el-button text @click.stop="dianJiYiZhuChaoZuo(scope.row, 3, '停止医嘱')" type="danger"> 停止</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
- <el-pagination
|
|
|
- :current-page="yiZhuPage.currentPage"
|
|
|
- :page-size="yiZhuPage.pageSize"
|
|
|
- :page-sizes="[10, 20, 30, 40, 50]"
|
|
|
- :total="yiZhuPage.total"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- >
|
|
|
- </el-pagination>
|
|
|
+ </xc-table>
|
|
|
</el-main>
|
|
|
<el-dialog v-model="yiZhuChaoZuoDialog" :close-on-click-modal="false" :close-on-press-escape="false"
|
|
|
:show-close="false" :title="yiZhuChaoZuoBiaoTi" top="25%" width="30%">
|
|
@@ -180,7 +169,7 @@ import store from '@/store'
|
|
|
import {stringIsBlank, stringNotBlank} from '@/utils/blank-utils'
|
|
|
import {getServerDateApi, getTheTransferList} from '@/api/public-api'
|
|
|
import router from '@/router'
|
|
|
-import XcSelectV2 from "@/components/xc/select-v2/XcSelectV2.vue";
|
|
|
+import XcTable from "@/components/xc/xc-table/XcTable.vue";
|
|
|
import sleep from "@/utils/sleep";
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
@@ -197,6 +186,8 @@ let orderName = $ref('')
|
|
|
const yiZhuMingZiData = ref([])
|
|
|
// 获取频率
|
|
|
const pinLv = ref('')
|
|
|
+// 表格
|
|
|
+let tableRef = $ref(null)
|
|
|
// 状态
|
|
|
const zhuangTai = ref(0)
|
|
|
// 分页
|
|
@@ -206,7 +197,6 @@ const yiZhuPage = ref({
|
|
|
total: 0,
|
|
|
data: [],
|
|
|
})
|
|
|
-const tableRef = ref(null)
|
|
|
|
|
|
const remoteMethodChargeCode = (val) => {
|
|
|
if (youWuXuanZheHuanZhe()) return
|
|
@@ -272,11 +262,9 @@ const handleCurrentChange = (val) => {
|
|
|
yiZhuPage.value.currentPage = val
|
|
|
chaXunYiZhuClick(yiZhuPage.value.total)
|
|
|
}
|
|
|
-/* 添加子医嘱的背景颜色 */
|
|
|
-const differChildrenRows = ({row}) => {
|
|
|
- if (row.isChildren) {
|
|
|
- return 'children-row'
|
|
|
- }
|
|
|
+
|
|
|
+const clearSelection = () => {
|
|
|
+ tableRef.clearSelection()
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -365,26 +353,6 @@ const toggleSelection = (row, selected) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 切换全选和不全选
|
|
|
- * @type {boolean}
|
|
|
- */
|
|
|
-let quanXuanFlag = false // 默认 为全不选
|
|
|
-const quanXuanYiZhu = (selection) => {
|
|
|
- quanXuanFlag = !quanXuanFlag
|
|
|
- selection.forEach((item) => {
|
|
|
- if (stringNotBlank(item.children)) {
|
|
|
- toggleSelection(item.children, quanXuanFlag)
|
|
|
- }
|
|
|
- })
|
|
|
- if (!quanXuanFlag) {
|
|
|
- tableRef.value.clearSelection()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-const clickOnTheForm = (row, column, event) => {
|
|
|
- tableRef.value.toggleRowSelection(row, !xuanZhongDeShuJu.value.includes(row))
|
|
|
-}
|
|
|
|
|
|
/**
|
|
|
* 点击复制医嘱
|
|
@@ -394,9 +362,8 @@ const dianJiFuZhuXuanZhongYiZhu = () => {
|
|
|
}
|
|
|
|
|
|
onMounted(async () => {
|
|
|
- // setTimeout(() => {
|
|
|
- // addYiZhuClick()
|
|
|
- // }, 300)
|
|
|
+ await sleep(200)
|
|
|
+ addYiZhuClick()
|
|
|
zkList.value = await getTheTransferList()
|
|
|
})
|
|
|
|