体检管理bug调整
This commit is contained in:
+3
@@ -191,6 +191,9 @@ public class HealthCheckupListController {
|
|||||||
@SLog(type = "healthCheckup", tag = "体检管理", msg = "管理员编辑了一条选择记录")
|
@SLog(type = "healthCheckup", tag = "体检管理", msg = "管理员编辑了一条选择记录")
|
||||||
@SaCheckPermission("healthCheckup.list.mange")
|
@SaCheckPermission("healthCheckup.list.mange")
|
||||||
public Result doEditHealthCheckupData(String subjectId, String campus, String projectId, String userId, String bz) {
|
public Result doEditHealthCheckupData(String subjectId, String campus, String projectId, String userId, String bz) {
|
||||||
|
if(!AuthUtil.hasRoleOr(RoleConstant.SYSADMIN.name())) {
|
||||||
|
return Result.error("您没有操作此按钮的权限");
|
||||||
|
}
|
||||||
//查询用户符合哪个套餐
|
//查询用户符合哪个套餐
|
||||||
List<HealthCheckupProjectSubjectMoney> list = healthCheckupProjectService.dao().query(HealthCheckupProjectSubjectMoney.class,
|
List<HealthCheckupProjectSubjectMoney> list = healthCheckupProjectService.dao().query(HealthCheckupProjectSubjectMoney.class,
|
||||||
Cnd.where(HealthCheckupProjectSubjectMoney::getSubjectId, "=", subjectId));
|
Cnd.where(HealthCheckupProjectSubjectMoney::getSubjectId, "=", subjectId));
|
||||||
|
|||||||
+4
-3
@@ -137,12 +137,13 @@ layout("/layouts/platform.html"){
|
|||||||
fixed="right">
|
fixed="right">
|
||||||
<template slot-scope="{row}">
|
<template slot-scope="{row}">
|
||||||
<el-button @click="openEditHealthCheckup(row)" size="mini"
|
<el-button @click="openEditHealthCheckup(row)" size="mini"
|
||||||
:disabled="row.isAudit" type="primary">
|
v-if="$auth.hasRoleOr(['SYSADMIN'])"
|
||||||
|
type="primary">
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="doDelete(row.headId)" size="mini"
|
<el-button @click="doDelete(row.headId)" size="mini"
|
||||||
v-if="$auth.hasPermissionOr(['healthCheckup.list.delete'])"
|
v-if="$auth.hasPermissionOr(['healthCheckup.list.delete']) && $auth.hasRoleOr(['SYSADMIN'])"
|
||||||
:disabled="row.isAudit" type="danger">
|
type="danger">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+30
-6
@@ -74,12 +74,12 @@ layout("/layouts/platform.html"){
|
|||||||
type="primary"
|
type="primary"
|
||||||
v-if="$auth.hasRoleOr(['SYSADMIN', 'SCHOOL_UNION_ADMIN'])">管理员代选择
|
v-if="$auth.hasRoleOr(['SYSADMIN', 'SCHOOL_UNION_ADMIN'])">管理员代选择
|
||||||
</el-button>-->
|
</el-button>-->
|
||||||
<el-button @click="selectOptionByLastYear"
|
<!-- <el-button @click="openLastYear"-->
|
||||||
icon="el-icon-printer"
|
<!-- icon="el-icon-printer"-->
|
||||||
size="small"
|
<!-- size="small"-->
|
||||||
type="primary"
|
<!-- type="primary"-->
|
||||||
v-if="$auth.hasRoleOr(['SYSADMIN', 'SCHOOL_UNION_ADMIN'])">一键选择去年数据
|
<!-- v-if="$auth.hasRoleOr(['SYSADMIN', 'SCHOOL_UNION_ADMIN'])">一键选择去年数据-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
<el-button @click="msgNotSelect"
|
<el-button @click="msgNotSelect"
|
||||||
icon="el-icon-printer"
|
icon="el-icon-printer"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -226,6 +226,26 @@ layout("/layouts/platform.html"){
|
|||||||
<el-button @click="doSelectByAdmin" type="primary" :loading="loading">提交</el-button>
|
<el-button @click="doSelectByAdmin" type="primary" :loading="loading">提交</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<el-dialog :visible.sync="selectLastYearProject" title="选择去年项目"
|
||||||
|
width="35%">
|
||||||
|
<el-form label-position="right" label-width="120px">
|
||||||
|
<el-form-item label="体检项目">
|
||||||
|
<el-select style="width: 100%" v-model="noSelectOptionId">
|
||||||
|
<el-option :key="item.id" :label="item.optionName" :value="item.id"
|
||||||
|
v-for="item in projectSubjectOptions"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-row justify="end" type="flex">
|
||||||
|
<el-button @click="selectLastYearProject=false">取消</el-button>
|
||||||
|
<el-button @click="selectOptionByLastYear" type="primary" :loading="loading">提交</el-button>
|
||||||
|
</el-row>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -262,6 +282,7 @@ layout("/layouts/platform.html"){
|
|||||||
noSelectOptionId: null,
|
noSelectOptionId: null,
|
||||||
campus: null,
|
campus: null,
|
||||||
loading: false,
|
loading: false,
|
||||||
|
selectLastYearProject: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -506,6 +527,9 @@ layout("/layouts/platform.html"){
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
return sums;
|
return sums;
|
||||||
|
},
|
||||||
|
openLastYear(){
|
||||||
|
this.selectLastYearProject = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user