输液
This commit is contained in:
@@ -39,6 +39,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="Search" @click="handleQueryRight" style="margin-left: 10px;">搜索</el-button>
|
<el-button type="primary" icon="Search" @click="handleQueryRight" style="margin-left: 10px;">搜索</el-button>
|
||||||
|
<el-button icon="Refresh" @click="resetQueryRight">重置</el-button>
|
||||||
<el-button type="primary" icon="SuccessFilled" @click="handleSubmit">确认执行</el-button>
|
<el-button type="primary" icon="SuccessFilled" @click="handleSubmit">确认执行</el-button>
|
||||||
<!-- <el-button type="primary" icon="SuccessFilled" @click="handleSubmitCanel">取消执行</el-button> -->
|
<!-- <el-button type="primary" icon="SuccessFilled" @click="handleSubmitCanel">取消执行</el-button> -->
|
||||||
<el-button type="primary" plain icon="Printer" @click="resetQuery">打印患者卡</el-button>
|
<el-button type="primary" plain icon="Printer" @click="resetQuery">打印患者卡</el-button>
|
||||||
@@ -52,7 +53,8 @@
|
|||||||
@selection-change="handleSelectionChange" ref="tableRef">
|
@selection-change="handleSelectionChange" ref="tableRef">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column prop="groupId" label="组" width="60" />
|
<el-table-column prop="groupId" label="组" width="60" />
|
||||||
<el-table-column prop="executeNum" label="已执行次数" width="100" />
|
<el-table-column prop="executeNum" label="总执行次数" width="90" />
|
||||||
|
<el-table-column prop="doneNum" label="已执行次数" width="90" />
|
||||||
<el-table-column prop="doctorId_dictText" label="开单医生" width="100" />
|
<el-table-column prop="doctorId_dictText" label="开单医生" width="100" />
|
||||||
<el-table-column prop="patientName" label="患者姓名" width="100" />
|
<el-table-column prop="patientName" label="患者姓名" width="100" />
|
||||||
<el-table-column prop="genderEnum_enumText" label="性别" width="80" />
|
<el-table-column prop="genderEnum_enumText" label="性别" width="80" />
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
<el-table-column prop="rateCode" label="用药频次" width="80" />
|
<el-table-column prop="rateCode" label="用药频次" width="80" />
|
||||||
<el-table-column prop="dose" label="单次剂量" width="160" />
|
<el-table-column prop="dose" label="单次剂量" width="160" />
|
||||||
<el-table-column prop="speed" label="输液速度" width="80" />
|
<el-table-column prop="speed" label="输液速度" width="80" />
|
||||||
<el-table-column prop="orgId_dictText" label="发放科室" width="120" />
|
<el-table-column prop="performOrg_dictText" label="发放科室" width="120" />
|
||||||
<el-table-column prop="medicationStatusEnum_enumText" label="药品状态" width="100" />
|
<el-table-column prop="medicationStatusEnum_enumText" label="药品状态" width="100" />
|
||||||
<el-table-column prop="skinTestFlag_enumText" label="是否皮试" width="60" />
|
<el-table-column prop="skinTestFlag_enumText" label="是否皮试" width="60" />
|
||||||
<!-- <el-table-column prop="clinicalStatusEnum_enumText" label="皮试结果" width="70" /> -->
|
<!-- <el-table-column prop="clinicalStatusEnum_enumText" label="皮试结果" width="70" /> -->
|
||||||
@@ -72,14 +74,16 @@
|
|||||||
<p style="margin: 13px 0px 10px 0px;">院注执行历史</p>
|
<p style="margin: 13px 0px 10px 0px;">院注执行历史</p>
|
||||||
<el-table :data="historyRecordsList" border style="width: 100%;height: 250px;">
|
<el-table :data="historyRecordsList" border style="width: 100%;height: 250px;">
|
||||||
<el-table-column prop="occurrenceStartTime" label="执行时间" width="150" >
|
<el-table-column prop="occurrenceStartTime" label="执行时间" width="150" >
|
||||||
<el-date-picker v-model="occurrenceStartTime" type="datetime" placeholder=""
|
<template #default="scope">
|
||||||
|
<el-date-picker v-model="scope.row.occurrenceStartTime" type="datetime" placeholder=""
|
||||||
format="YYYY/MM/DD hh:mm:ss" value-format="YYYY-MM-DD h:m:s " />
|
format="YYYY/MM/DD hh:mm:ss" value-format="YYYY-MM-DD h:m:s " />
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="performerId_dictText" label="执行人" width="80" />
|
<el-table-column prop="performerId_dictText" label="执行人" width="80" />
|
||||||
<el-table-column prop="prescriptionNo" label="处方号" width="100" />
|
<el-table-column prop="prescriptionNo" label="处方号" width="100" />
|
||||||
<el-table-column prop="doctorId_dictText" label="开单医生" width="100" />
|
<el-table-column prop="doctorId_dictText" label="开单医生" width="100" />
|
||||||
<el-table-column prop="medicationInformation" label="药品信息" width="180" />
|
<el-table-column prop="medicationInformation" label="药品信息" width="180" />
|
||||||
<el-table-column prop="medicationAntity" label="药品数量" width="80" />
|
<el-table-column prop="medicationQuantity" label="药品数量" width="80" />
|
||||||
<el-table-column prop="rateCode" label="用药频次" width="80" />
|
<el-table-column prop="rateCode" label="用药频次" width="80" />
|
||||||
<el-table-column prop="dose" label="单词剂量" width="160" />
|
<el-table-column prop="dose" label="单词剂量" width="160" />
|
||||||
<el-table-column prop="speed" label="输液速度" width="80" />
|
<el-table-column prop="speed" label="输液速度" width="80" />
|
||||||
@@ -122,6 +126,8 @@ const dateRangeRight = ref([]);
|
|||||||
const historyRecordsList = ref([]);
|
const historyRecordsList = ref([]);
|
||||||
const patientList = ref([]);
|
const patientList = ref([]);
|
||||||
const infusionList = ref([]);
|
const infusionList = ref([]);
|
||||||
|
// const timeRightStart = ref([]);
|
||||||
|
// const timeRightEnd = ref([]);
|
||||||
const ids = ref([]);
|
const ids = ref([]);
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
@@ -172,8 +178,8 @@ function handleQuery() {
|
|||||||
function handleQueryRight() {
|
function handleQueryRight() {
|
||||||
const createTimeSTime = dateRangeRight.value[0];
|
const createTimeSTime = dateRangeRight.value[0];
|
||||||
const createTimeETime = dateRangeRight.value[1];
|
const createTimeETime = dateRangeRight.value[1];
|
||||||
// queryParams.value.createTimeSTime = dateRangeRight.value[0];
|
// timeRightStart.value = createTimeSTime;
|
||||||
// queryParams.value.createTimeETime = dateRangeRight.value[1];
|
// timeRightEnd.value = createTimeETime;
|
||||||
console.log("111",createTimeSTime,createTimeETime)
|
console.log("111",createTimeSTime,createTimeETime)
|
||||||
listInfusionRecord(createTimeSTime,createTimeETime).then(response => {
|
listInfusionRecord(createTimeSTime,createTimeETime).then(response => {
|
||||||
console.log('Full response1:', response);
|
console.log('Full response1:', response);
|
||||||
@@ -189,6 +195,22 @@ function resetQuery() {
|
|||||||
dateRange.value = [];
|
dateRange.value = [];
|
||||||
proxy.resetForm("queryRef");
|
proxy.resetForm("queryRef");
|
||||||
getList();
|
getList();
|
||||||
|
// listPatients().then(response => {
|
||||||
|
// console.log('Full response2:', response);
|
||||||
|
// patientList.value = response.data.records;
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
function resetQueryRight() {
|
||||||
|
dateRangeRight.value = [];
|
||||||
|
listInfusionRecord().then(response => {
|
||||||
|
console.log('Full response1:', response);
|
||||||
|
infusionList.value = response.data;
|
||||||
|
});
|
||||||
|
listPatientInfusionPerformRecord().then(response => {
|
||||||
|
console.log('Full response3:', response);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 执行输液
|
// 执行输液
|
||||||
@@ -202,11 +224,9 @@ function handleSubmit(){
|
|||||||
proxy.$modal.msgError("没有有效的数据可供提交");
|
proxy.$modal.msgError("没有有效的数据可供提交");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('Full response666:', itemsList,selectedItems.value);
|
|
||||||
updateInfusionRecord(itemsList).then(response => {
|
updateInfusionRecord(itemsList).then(response => {
|
||||||
proxy.$modal.msgSuccess("执行成功");
|
proxy.$modal.msgSuccess("执行成功");
|
||||||
open.value = false;
|
clearSelections();
|
||||||
getList();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -242,18 +262,28 @@ function handleSelectionChange(selection) {
|
|||||||
console.log('Current selectedPrescriptionNos:', selectedPrescriptionNos.value);
|
console.log('Current selectedPrescriptionNos:', selectedPrescriptionNos.value);
|
||||||
console.log('Current selectedItems:', selectedItems.value);
|
console.log('Current selectedItems:', selectedItems.value);
|
||||||
}
|
}
|
||||||
// function handleSubmitCanel(){
|
function clearSelections() {
|
||||||
// ids.value = []
|
// 清空选中状态
|
||||||
// currentRow.value = []
|
selectedItems.value.clear();
|
||||||
// selectedGroupIds.value.clear(); // 清空 selectedGroupIds
|
selectedGroupIds.value.clear();
|
||||||
// infusionList.value.forEach(row => {
|
selectedPrescriptionNos.value.clear();
|
||||||
// tableRef.value.toggleRowSelection(row, false); // 取消选中所有行
|
|
||||||
// });
|
// 取消表格所有行的选中状态
|
||||||
// }
|
infusionList.value.forEach(row => {
|
||||||
|
tableRef.value.toggleRowSelection(row, false);
|
||||||
|
});
|
||||||
|
dateRangeRight.value = [];
|
||||||
|
listPatientInfusionRecord(currentRow.value).then(response => {
|
||||||
|
infusionList.value = response.data;
|
||||||
|
});
|
||||||
|
listPatientInfusionPerformRecord().then(response => {
|
||||||
|
console.log('Full response3:', response);
|
||||||
|
historyRecordsList.value = response.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function rowClassName({ row }) {
|
function rowClassName({ row }) {
|
||||||
if (selectedGroupIds.value.has(row.groupId)) {
|
if (selectedGroupIds.value.has(row.groupId)) {
|
||||||
// console.log('Row groupId:', row.groupId, 'selectedGroupIds:', selectedGroupIds.value);
|
|
||||||
return 'selected-row';
|
return 'selected-row';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|||||||
Reference in New Issue
Block a user