This commit is contained in:
wuyy 2026-03-27 09:04:15 +08:00
parent df426d2fa7
commit 7e96294630
6 changed files with 22 additions and 14 deletions

View File

@ -28,7 +28,7 @@
<el-input v-model="labPat.patAge" @change="handleFieldChange" />
</el-col>
<el-col :span="10">
<SelectTable v-model:data="labPat.ageUnit" :table-data="dictData.AU" placeholder=""
<SelectTable v-model:data="labPat.ageUnit" :table-data="dictData.AU" placeholder="" :clearable="false"
@getDataValue="handleFieldChange" />
</el-col>
</el-form-item>
@ -41,7 +41,7 @@
@getDataValue="doctorHandle" />
</el-form-item>
<el-form-item label="送检科室">
<SelectTable v-model:data="labPat.execDeptCode" :table-data="dictData.DEPT" placeholder=""
<SelectTable v-model:data="labPat.departCode" :table-data="dictData.DEPT" placeholder=""
@getDataValue="deptHandle" />
</el-form-item>
<el-form-item label="床 号">
@ -116,7 +116,7 @@ const doctorHandle = (data) => {
props.labPat.doctorName = data.label
}
const deptHandle = (data) => {
props.labPat.execDeptName = data.label
props.labPat.departName = data.label
}
const handleFieldChange = async () => {

View File

@ -95,6 +95,7 @@
</el-radio-group>
<el-date-picker v-model="today" type="date" value-format="YYYY-MM-DD" style="width: 9rem;"
@change="dateHandle" /> &nbsp;
<el-button type="primary" icon="RefreshRight" size="small" @click="handleQuery">刷新</el-button>
<!-- <el-tooltip class="box-item" effect="dark" content="打印" placement="top">
<el-button type="primary" circle size="small" icon="Memo" @click="printHandle"></el-button>
</el-tooltip>
@ -133,7 +134,9 @@ import { listitemclass } from "@/api/regional/dict/itemclass.ts";
import { classCom } from '@/utils/classCom';
import { useGroupTableData } from '@/utils/groupHelper'
const { proxy } = getCurrentInstance();
const labpat = ref({})
const labpat = ref({
ageUnit: '1'
})
const saveLoading = ref(false)
const searchKey = ref('')
const loading = ref(false)
@ -321,7 +324,9 @@ const saveHandle = () => {
}
const addHandle = () => {
labpat.value = {}
labpat.value = {
ageUnit: '1'
}
sqXmList.value = []
updateInitialData()
}
@ -390,7 +395,7 @@ const printHandle = () => {
const filterData = ref([])
const xmColumns = ref([
{ field: 'itemcode', title: '代号', align: 'center', resizable: true },
{ field: 'itemname', title: '简称', align: 'center', width: 280, resizable: true },
{ field: 'itemname', title: '项目名称', align: 'center', width: 280, resizable: true },
{ field: 'price', title: '单价', align: 'center', resizable: true },
{ field: 'itemclass', title: '类别', align: 'center', slotName: 'itemclass', resizable: true },
{ field: 'itemclass_tips', title: '采样提示', align: 'center', resizable: true },
@ -449,9 +454,9 @@ const sqXmList = ref([])
const sqXmColumns = ref([
{ type: 'selection', field: '', title: '', resizable: true, align: 'center', width: 40 },
{ field: 'newitemclass', title: '类别', align: 'center', width: 100, slotName: 'newitemclass', resizable: true },
{ field: 'newitemclass_tips', title: '采样提示', align: 'center', width: 80, resizable: true },
{ field: 'itemname', title: '简称', align: 'center', resizable: true },
{ field: 'newitemclass', title: '类别', align: 'center', slotName: 'newitemclass', resizable: true },
{ field: 'newitemclass_tips', title: '采样提示', align: 'center', width: 60, resizable: true },
{ field: 'itemname', title: '项目名称', align: 'center', resizable: true, width: 220, },
{ field: 'newbarcode', title: '条码号', align: 'center', width: 120, resizable: true, },
{ field: 'amount', title: '单价', align: 'center', width: 60, resizable: true },
{ field: 'itemclass_yblx', title: '样本', align: 'center', width: 80, slotName: 'itemclass_yblx', resizable: true },

View File

@ -120,7 +120,8 @@ const queryParams = ref({
pageSize: 50,
pageNum: 1,
srcHospName: userStore.sysLoginParam.loginYLJGName,
times: []
times: [],
dateType: '登记时间'
})
const tableData = ref([])
const columns = ref([
@ -130,13 +131,14 @@ const columns = ref([
{ prop: 'patSex', label: '性别', align: 'center', visible: true, width: 60, slot: "patSex" },
{ prop: 'patAge', label: '年龄', align: 'center', visible: true, slot: "patAge", width: 60 },
{ prop: 'checkPUR', label: '申请项目', align: 'center', visible: true, width: 250 },
{ prop: 'orderTime', label: '申请时间', align: 'center', visible: true, width: 140 },
{ prop: 'sampleTypeName', label: '标本类型', align: 'center', visible: true, },
{ prop: 'itemclass_tips', label: '采集容器', align: 'center', visible: true, },
{ prop: 'status', label: '标本状态', align: 'center', visible: true, slot: "status" },
{ prop: 'affirmUserName', label: '采样人', align: 'center', visible: true, },
{ prop: 'affirmTime', label: '采样时间', align: 'center', visible: true, width: 150 },
{ prop: 'affirmTime', label: '采样时间', align: 'center', visible: true, width: 140 },
{ prop: 'signInUserName', label: '签收人', align: 'center', visible: true, },
{ prop: 'signInTime', label: '签收时间', align: 'center', visible: true, width: 150 },
{ prop: 'signInTime', label: '签收时间', align: 'center', visible: true, width: 140 },
{ prop: 'dstHospName', label: '检测机构名称', align: 'center', visible: true, width: 150 },
])
const tableConfig = ref({

View File

@ -143,6 +143,7 @@ onMounted(() => {
value: item.hospitalCode
}
})
dstHospCode.value = res.rows[0].hospitalCode
})
listregdict({ pageSize: 100, pageNum: 1, dictType: 'ZT' }).then((res) => {

View File

@ -105,7 +105,7 @@
<el-input-number v-model="form.itemclassPrintcnt" controls-position="right" :min="0" />
</el-form-item>
<el-form-item label="抗凝样本" prop="itemclassKn">
<el-checkbox v-model="form.itemclassKn" true-label="1" false-label="0" />
<el-checkbox v-model="form.itemclassKn" :true-value="1" :false-value="0" />
</el-form-item>
<el-form-item label="类别顺序" prop="itemclassSort">
<el-input-number v-model="form.itemclassSort" controls-position="right" :min="0" />

View File

@ -374,7 +374,7 @@ const printPdf = () => {
printLoading.value = true
reportPrintPdf({ bgdh: Info.value.bgdh }).then((res) => {
if (res.code == 0) {
if (!res.data.report) return ElMessage.warning('未找到打印文件')
if (!res.data) return ElMessage.warning('未找到打印文件')
classCom.printBase64PDF(res.data.report)
}
}).finally(() => {