皮试 输液
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch">
|
||||
<el-form-item label="门诊号" prop="patientname">
|
||||
<el-input v-model="queryParams.patientname" placeholder="身份证号/病人ID/门诊号/姓名" clearable style="width: 210px"
|
||||
<el-form-item label="门诊号" prop="encounterBusNo">
|
||||
<el-input v-model="queryParams.encounterBusNo" placeholder="请输入门诊号" clearable style="width: 210px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="处方号" prop="phone">
|
||||
<el-input v-model="queryParams.phone" placeholder="请输入联系方式" clearable style="width: 200px"
|
||||
<el-form-item label="处方号" prop="prescriptionNo">
|
||||
<el-input v-model="queryParams.prescriptionNo" placeholder="请输入处方号" clearable style="width: 200px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="病人ID" prop="phone">
|
||||
<el-input v-model="queryParams.phone" placeholder="请输入联系方式" clearable style="width: 200px"
|
||||
<el-form-item label="病人ID" prop="patientBusNo">
|
||||
<el-input v-model="queryParams.patientBusNo" placeholder="请输入病人ID" clearable style="width: 200px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="电话" prop="phone">
|
||||
<el-input v-model="queryParams.phone" placeholder="请输入联系方式" clearable style="width: 200px"
|
||||
<el-input v-model="queryParams.phone" placeholder="请输入电话" clearable style="width: 200px"
|
||||
@keyup.enter="handleQuery" />
|
||||
</el-form-item>
|
||||
<el-form-item label="查询时间" prop="patientname">
|
||||
<el-form-item label="查询时间" >
|
||||
<el-date-picker v-model="dateRange" value-format="YYYY-MM-DD" type="daterange" range-separator="-"
|
||||
start-placeholder="开始日期" end-placeholder="结束日期" ></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="状态" prop="patientid">
|
||||
<el-select v-model="queryParams.bloodAbo" placeholder="请选择医生" clearable @keyup.enter="handleQuery" style="width: 160px">
|
||||
<el-option v-for="item in bloodtypeaboList"
|
||||
<el-form-item label="皮试项目状态" prop="status">
|
||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable @keyup.enter="handleQuery" style="width: 160px">
|
||||
<el-option v-for="item in statusList"
|
||||
:key="item.value" :label="item.info" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -33,25 +33,10 @@
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:menu:add']">确认项目</el-button> -->
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="EditPen" @click="handleUpdate" v-hasPermi="['system:menu:add']">修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-button type="danger" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:menu:add']">取消修改</el-button> -->
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-button type="warning" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:menu:add']">保存</el-button> -->
|
||||
</el-col>
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table :data="skinRecordList" border style="width: 100%">
|
||||
<el-table-column prop="prescriptionNo" label="处方号" width="150" />
|
||||
<el-table-column prop="encounterBusNo" label="门诊号" width="150" />
|
||||
<el-table-column prop="patientBusNo" label="病人ID" width="150" />
|
||||
<el-table-column prop="patientName" label="病人" width="120" />
|
||||
<el-table-column prop="medicationInformation" label="药品信息" width="150" />
|
||||
<el-table-column prop="medicationDetail" label="药品" width="160" />
|
||||
@@ -60,15 +45,23 @@
|
||||
<el-table-column prop="clinicalStatusEnum_enumText" label="皮试结果" width="120" />
|
||||
<el-table-column prop="performerId_dictText" label="执行护士" width="130" />
|
||||
<el-table-column prop="performerCheckId_dictText" label="核对护士" width="130" />
|
||||
<el-table-column prop="occurrenceStartTime" label="开始时间" width="180" />
|
||||
<el-table-column prop="occurrenceEndTime" label="结束时间" width="180" />
|
||||
<el-table-column prop="organizationName" label="开单医生" width="180" />
|
||||
<el-table-column prop="occurrenceStartTime" key="occurrenceStartTime" label="开始时间" width="180" >
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.occurrenceStartTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="occurrenceEndTime" key="occurrenceEndTime" label="结束时间" width="180">
|
||||
<template #default="scope">
|
||||
<span>{{ parseTime(scope.row.occurrenceEndTime) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="doctorId_dictText" label="开单医生" width="180" />
|
||||
<el-table-column prop="medicationStatusEnum" label="发药状态" width="180" />
|
||||
<el-table-column prop="note" label="备注" width="180" />
|
||||
<el-table-column label="操作" align="center" width="210" fixed="right" class-name="small-padding fixed-width">
|
||||
<template #default="scope">
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:menu:edit']">修改</el-button>
|
||||
<el-button link type="primary" icon="EditPen" @click="sign(scope.row)" v-hasPermi="['system:menu:add']">签名</el-button>
|
||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" :disabled="!!scope.row.performerCheckId_dictText">修改</el-button>
|
||||
<el-button link type="primary" icon="EditPen" @click="sign(scope.row)" :disabled="!!scope.row.performerCheckId_dictText">签名</el-button>
|
||||
<!-- <el-button link type="primary" icon="Finished" @click="submitForm(scope.row)" v-hasPermi="['system:menu:add']">保存</el-button> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -184,7 +177,7 @@
|
||||
|
||||
<script setup name="skinRecord">
|
||||
import { ref, computed } from 'vue';
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { ElMessage,ElMessageBox } from 'element-plus'
|
||||
|
||||
import { listSkinRecord,listStatus,listSkinResult,updateNurseSign,updateSkinTestRecord } from './component/api';
|
||||
|
||||
@@ -205,8 +198,11 @@ const data = reactive({
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
patientname: undefined,
|
||||
patientid: undefined
|
||||
encounterBusNo: undefined,
|
||||
prescriptionNo: undefined,
|
||||
patientBusNo: undefined,
|
||||
phone: undefined,
|
||||
status: undefined
|
||||
},
|
||||
});
|
||||
const { queryParams,form } = toRefs(data);
|
||||
@@ -233,7 +229,7 @@ function reset() {
|
||||
|
||||
/** 查询门诊皮试列表 */
|
||||
function getList() {
|
||||
listSkinRecord(proxy.addDateRange(queryParams.value, dateRange.value)).then(response => {
|
||||
listSkinRecord(queryParams.value).then(response => {
|
||||
console.log("1234",response);
|
||||
skinRecordList.value = response.data.records;
|
||||
total.value = response.data.total;
|
||||
@@ -241,18 +237,22 @@ function getList() {
|
||||
listStatus().then(response => {
|
||||
statusList.value = response.data
|
||||
});
|
||||
listSkinResult().then(response => {
|
||||
listSkinResult().then(response => {6
|
||||
skinResultList.value = response.data
|
||||
});
|
||||
}
|
||||
|
||||
/** 搜索按钮操作 */
|
||||
function handleQuery() {
|
||||
queryParams.value.beginTime = dateRange.value[0];
|
||||
queryParams.value.endTime = dateRange.value[1];
|
||||
queryParams.value.pageNo = 1;
|
||||
console.log("123",queryParams.value,typeof queryParams.value.beginTime)
|
||||
getList();
|
||||
}
|
||||
/** 重置按钮操作 */
|
||||
function resetQuery() {
|
||||
dateRange.value = [];
|
||||
proxy.resetForm("queryRef");
|
||||
handleQuery();
|
||||
}
|
||||
@@ -262,16 +262,22 @@ function cancel() {
|
||||
reset();
|
||||
}
|
||||
function handleUpdate(row) {
|
||||
reset();
|
||||
open.value = true;
|
||||
form.value = row;
|
||||
}
|
||||
function sign(row){
|
||||
console.log("564564",row);
|
||||
proxy.$modal.confirm('签字后无法修改信息').then(() => {
|
||||
updateNurseSign(row).then(response => {
|
||||
proxy.$modal.msgSuccess("签名成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
});
|
||||
proxy.$modal.msgSuccess("签名成功");
|
||||
open.value = false;
|
||||
getList();
|
||||
}).catch(error => {
|
||||
// 处理签名失败的逻辑
|
||||
proxy.$modal.msgError("签名失败:" + error.message);
|
||||
});
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
||||
function saveForm() {
|
||||
@@ -294,6 +300,7 @@ function saveForm() {
|
||||
// console.log(skinRecordList.value[index]);
|
||||
// }
|
||||
console.log("564564",form.value);
|
||||
// return;
|
||||
updateSkinTestRecord(form.value).then(response => {
|
||||
proxy.$modal.msgSuccess("更新成功");
|
||||
open.value = false;
|
||||
@@ -317,4 +324,7 @@ function submitForm() {
|
||||
|
||||
getList();
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user