功能修改:

体检管理->体检项目:详情页控制体检套餐按需保存
新增功能:
体检管理->体检名单:
1、添加删除功能并控制权限(系统管理员、校工会管理员、校工会主席、分工会管理员、分工会主席)
2、导入名单控制权限(系统管理员、校工会管理员、校工会主席)
This commit is contained in:
2026-03-30 18:27:06 +08:00
parent fc3ff8fbb1
commit 94928ed3a2
5 changed files with 133 additions and 73 deletions
@@ -59,7 +59,8 @@ layout("/layouts/platform.html"){
<el-card shadow="never" class="mt10">
<table-tool label="体检项目">
<el-button type="primary" size="small" @click="openImport">导入名单
<el-button type="primary" size="small" @click="openImport"
v-if="$auth.hasPermissionOr(['healthCheckup.list.import'])">导入名单
</el-button>
<el-button :disabled="!pageForm.projectId" type="primary" size="small"
@click="doAudit(true)">确认名单
@@ -78,7 +79,7 @@ layout("/layouts/platform.html"){
<el-table-column align="center" header-align="center" type="index"
:index="indexMethod" label="序号"
width="80px"></el-table-column>
<!-- width="80px"></el-table-column>-->
<el-table-column
align="center"
header-align="center"
@@ -106,13 +107,18 @@ layout("/layouts/platform.html"){
</template>
</el-table-column>
<el-table-column prop="userOnline" align="center" header-align="center"
label="操作"
label="操作" width="160px"
fixed="right">
<template slot-scope="{row}">
<el-button @click="openEditHealthCheckup(row)" size="mini"
:disabled="row.isAudit" type="primary">
编辑
</el-button>
<el-button @click="doDelete(row.headId)" size="mini"
v-if="$auth.hasPermissionOr(['healthCheckup.list.delete'])"
:disabled="row.isAudit" type="danger">
删除
</el-button>
</template>
</el-table-column>
</el-table>
@@ -317,7 +323,15 @@ layout("/layouts/platform.html"){
this.importLoading = false
this.doSearch()
},
async doDelete(id) {
const resp = await this.$axios.post(loc() + '/doDelete', {id});
if (resp.code === 0) {
this.notifySuccess(resp.msg);
this.doSearch();
} else {
this.notifyError(resp.msg);
}
},
},
async created() {
this.unions = await this.$businessTool.listUnion()
@@ -1,8 +1,6 @@
<!--#
layout("/layouts/platform.html"){
#-->
<div id="app" class="platform" v-cloak>
<guava ref="guava" padding="0 5%">
<template>
@@ -196,6 +194,17 @@ layout("/layouts/platform.html"){
<div class="s-options-list" style="margin-top: 10px;">
<el-table :data="item.subjectMoneys" border size="small">
<el-table-column label="序号" width="100px">
<template slot-scope="{row}">
<el-input v-model="row.serialNumber"
:value="row.serialNumber"
autosize
class="text-input"
data-type="option"
readonly
></el-input>
</template>
</el-table-column>
<el-table-column label="名称">
<template slot-scope="{row}">
<el-input v-model="row.subjectMoneyName" autosize
@@ -225,6 +234,7 @@ layout("/layouts/platform.html"){
<template slot-scope="{row,$index}" slot="header">
<el-button size="mini" type="primary"
@click="item.subjectMoneys.push({
serialNumber: item.subjectMoneys.length + 1,
money:'',
settlementMoney:'',
subjectMoneyName:'',
@@ -593,7 +603,14 @@ layout("/layouts/platform.html"){
deleteRow(row, index, subjectMoneyIndex) {
this.formData.healthCheckupProjectSubjects[subjectMoneyIndex].subjectMoneys.splice(index, 1)
if (row.id) this.deleteRowIds.push(row.id)
this.reloadSubjectMoneySerialNumber(this.formData.healthCheckupProjectSubjects[subjectMoneyIndex].subjectMoneys);
},
reloadSubjectMoneySerialNumber(rowDetail){
//重新加载体检套餐序号
for (let i = 0; i < rowDetail.length; i++) {
rowDetail[i].serialNumber = i + 1;
}
},
async doDelete(id) {
const confirm = await this.$confirm('确定要删除该项目吗?', '提示', {type: 'warning'})
if (confirm) {
@@ -697,7 +714,6 @@ layout("/layouts/platform.html"){
})
</script>
<!--#
}
#-->