553 【住院护士站-医嘱校对】医嘱列表缺少“医嘱状态”显示列
This commit is contained in:
@@ -142,6 +142,13 @@
|
||||
</template>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="医嘱状态" prop="requestStatus_enumText" width="100">
|
||||
<template #default="scope">
|
||||
<el-tag :type="getStatusType(scope.row.requestStatus)" size="small">
|
||||
{{ scope.row.requestStatus_enumText }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="执行科室" prop="positionName" width="230" />
|
||||
<el-table-column label="签发时间" prop="requestTime" width="230" />
|
||||
</el-table>
|
||||
@@ -152,7 +159,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
import {ref, computed} from 'vue';
|
||||
import {ref, computed, getCurrentInstance} from 'vue';
|
||||
import {adviceVerify, cancel, getPrescriptionList} from './api';
|
||||
import {patientInfoList} from '../../components/store/patient.js';
|
||||
import {formatDateStr} from '@/utils/index';
|
||||
@@ -165,6 +172,19 @@ const { proxy } = getCurrentInstance();
|
||||
const loading = ref(false);
|
||||
const chooseAll = ref(false);
|
||||
const selectionTrigger = ref(0);
|
||||
|
||||
const getStatusType = (status) => {
|
||||
const map = {
|
||||
1: 'info', // 待发送
|
||||
2: 'primary', // 已发送
|
||||
3: 'success', // 已完成
|
||||
4: 'warning', // 暂停
|
||||
5: 'danger', // 取消/待退
|
||||
6: 'danger', // 停嘱
|
||||
7: 'info' // 不执行
|
||||
}
|
||||
return map[status] || 'info'
|
||||
}
|
||||
const hasDispensedSelected = computed(() => {
|
||||
selectionTrigger.value;
|
||||
return getSelectRows().some(item => item.dispenseStatus === 4);
|
||||
|
||||
Reference in New Issue
Block a user