Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bd0d2dcc8 | ||
|
|
6451c308c2 | ||
|
|
772ec5537c | ||
|
|
af6494c806 | ||
|
|
2901dafe10 | ||
|
|
ffc2562aea | ||
|
|
5da537f863 | ||
|
|
facbe7cd44 | ||
|
|
283d25642a | ||
|
|
7b17a66214 |
@@ -96,22 +96,14 @@
|
|||||||
INNER JOIN med_medication_request AS T5
|
INNER JOIN med_medication_request AS T5
|
||||||
ON T4.med_req_id = T5.id
|
ON T4.med_req_id = T5.id
|
||||||
AND T5.delete_flag = '0'
|
AND T5.delete_flag = '0'
|
||||||
WHERE EXISTS (
|
WHERE <if test="statusEnum == null">
|
||||||
SELECT 1 FROM wor_supply_request wsr
|
T4.status_enum IN (#{inProgress},#{completed},#{preparation},#{prepared})
|
||||||
WHERE wsr.type_enum = 3
|
|
||||||
AND wsr.delete_flag = '0'
|
|
||||||
AND wsr.bus_no = T4.summary_no
|
|
||||||
AND T4.summary_no IS NOT NULL
|
|
||||||
AND T4.summary_no != ''
|
|
||||||
)
|
|
||||||
AND <if test="statusEnum == null">
|
|
||||||
T4.status_enum IN (#{inProgress},#{completed},#{preparation},#{prepared},8)
|
|
||||||
</if>
|
</if>
|
||||||
<if test="statusEnum == 3">
|
<if test="statusEnum == 3">
|
||||||
T4.status_enum IN (#{inProgress},#{preparation},#{prepared},8)
|
T4.status_enum IN (#{inProgress},#{preparation},#{prepared})
|
||||||
</if>
|
</if>
|
||||||
<if test="statusEnum == 4">
|
<if test="statusEnum == 4">
|
||||||
T4.status_enum IN (#{completed},8)
|
T4.status_enum = #{completed}
|
||||||
</if>
|
</if>
|
||||||
AND T4.summary_no IS NOT NULL
|
AND T4.summary_no IS NOT NULL
|
||||||
AND T4.summary_no != ''
|
AND T4.summary_no != ''
|
||||||
|
|||||||
@@ -122,6 +122,7 @@
|
|||||||
|
|
||||||
<el-table-column label="类型" align="center" prop="" width="120">
|
<el-table-column label="类型" align="center" prop="" width="120">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
{{ console.log(scope.row, 1111) }}
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="scope.row.therapyEnum"
|
v-model="scope.row.therapyEnum"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -269,6 +270,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="频次/用法" align="center" prop="" width="180">
|
<el-table-column label="频次/用法" align="center" prop="" width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
{{ console.log(scope.row) }}
|
||||||
<span v-if="!scope.row.isEdit && scope.row.adviceType == 1" style="text-align: right">
|
<span v-if="!scope.row.isEdit && scope.row.adviceType == 1" style="text-align: right">
|
||||||
{{
|
{{
|
||||||
[
|
[
|
||||||
@@ -1210,8 +1212,12 @@ function handleSave() {
|
|||||||
getListInfo(false);
|
getListInfo(false);
|
||||||
bindMethod.value = {};
|
bindMethod.value = {};
|
||||||
nextId.value == 1;
|
nextId.value == 1;
|
||||||
|
|
||||||
|
// 处方保存成功后,自动将医嘱信息同步至患者处置记录
|
||||||
|
// handleEmrTreatment();
|
||||||
} else {
|
} else {
|
||||||
proxy.$modal.msgError(res.message);
|
proxy.$modal.msgError(res.message);
|
||||||
|
conso;
|
||||||
isSaving.value = false;
|
isSaving.value = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1311,9 +1317,6 @@ function handleCancelEdit(row, index) {
|
|||||||
function handleSaveSign(row, index) {
|
function handleSaveSign(row, index) {
|
||||||
if (row.adviceType != 2) {
|
if (row.adviceType != 2) {
|
||||||
let itemNo = row.adviceType == 1 ? row.methodCode : row.adviceDefinitionId;
|
let itemNo = row.adviceType == 1 ? row.methodCode : row.adviceDefinitionId;
|
||||||
if (!itemNo) {
|
|
||||||
console.warn('绑定设备检查跳过:itemNo为空(adviceType=' + row.adviceType + ', adviceName=' + row.adviceName + ')');
|
|
||||||
} else {
|
|
||||||
getBindDevice({ typeCode: row.adviceType, itemNo: itemNo }).then((res) => {
|
getBindDevice({ typeCode: row.adviceType, itemNo: itemNo }).then((res) => {
|
||||||
if (res.data.length == 0) {
|
if (res.data.length == 0) {
|
||||||
return;
|
return;
|
||||||
@@ -1331,7 +1334,6 @@ function handleSaveSign(row, index) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// 更新UI状态
|
// 更新UI状态
|
||||||
row.isEdit = false;
|
row.isEdit = false;
|
||||||
|
|||||||
@@ -273,9 +273,8 @@ function handleSearch() {
|
|||||||
// 清除缓存(搜索时需要重新加载)
|
// 清除缓存(搜索时需要重新加载)
|
||||||
patientDataCache.value.clear();
|
patientDataCache.value.clear();
|
||||||
|
|
||||||
// 通过递增 key 强制重新渲染树组件,触发重新加载所有病区患者列表
|
// 重新加载所有已展开病区的患者列表
|
||||||
// 此时 searchKey 已有值,loadPatientList 会将 searchKey 传给后端进行过滤
|
reloadAllPatients();
|
||||||
treeKey.value += 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 暴露方法供外部调用
|
// 暴露方法供外部调用
|
||||||
|
|||||||
@@ -11,9 +11,9 @@
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<el-radio-group v-model="type" class="ml20" @change="handleRadioChange">
|
<el-radio-group v-model="type" class="ml20" @change="handleRadioChange">
|
||||||
<el-radio :value="undefined">全部</el-radio>
|
<el-radio :label="1">全部</el-radio>
|
||||||
<el-radio :value="1">长期</el-radio>
|
<el-radio :label="2">长期</el-radio>
|
||||||
<el-radio :value="2">临时</el-radio>
|
<el-radio :label="3">临时</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-button class="ml20" type="primary" plain @click="handleGetPrescription">
|
<el-button class="ml20" type="primary" plain @click="handleGetPrescription">
|
||||||
查询
|
查询
|
||||||
@@ -159,7 +159,7 @@ import {formatDateStr} from '@/utils/index';
|
|||||||
const activeNames = ref([]);
|
const activeNames = ref([]);
|
||||||
const prescriptionList = ref([]);
|
const prescriptionList = ref([]);
|
||||||
const deadline = ref(formatDateStr(new Date(), 'YYYY-MM-DD') + ' 23:59:59');
|
const deadline = ref(formatDateStr(new Date(), 'YYYY-MM-DD') + ' 23:59:59');
|
||||||
const type = ref(undefined);
|
const type = ref(1);
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const chooseAll = ref(false);
|
const chooseAll = ref(false);
|
||||||
@@ -181,7 +181,7 @@ function handleGetPrescription() {
|
|||||||
getPrescriptionList({
|
getPrescriptionList({
|
||||||
encounterIds: encounterIds,
|
encounterIds: encounterIds,
|
||||||
requestStatus: props.requestStatus,
|
requestStatus: props.requestStatus,
|
||||||
...(type.value !== undefined ? { therapyEnum: type.value } : {}),
|
therapyEnum: type.value === 1 ? undefined : type.value === 2 ? 1 : 2, // 1=全部(不传), 2=长期(1), 3=临时(2)
|
||||||
pageSize: 10000,
|
pageSize: 10000,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user