|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent>
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" @submit.native.prevent>
|
|
- <el-form-item label="科室" prop="deptId">
|
|
+ <el-form-item label="科室" prop="deptId" v-if="user.roleName != '医生'">
|
|
<dtree v-model="queryParams.deptId" @handleQuery="handleQuery" :tree="false"></dtree>
|
|
<dtree v-model="queryParams.deptId" @handleQuery="handleQuery" :tree="false"></dtree>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="患者姓名" prop="patientName">
|
|
<el-form-item label="患者姓名" prop="patientName">
|
|
@@ -16,11 +16,12 @@
|
|
<el-button type="primary" icon="el-icon-plus" :disabled="ids.length > 0" @click="op('add')" v-hasPermi="['work:record:add', 'work:up:add']">{{ queryParams.type == 0 ? '新增提醒' : '新增回访' }}</el-button>
|
|
<el-button type="primary" icon="el-icon-plus" :disabled="ids.length > 0" @click="op('add')" v-hasPermi="['work:record:add', 'work:up:add']">{{ queryParams.type == 0 ? '新增提醒' : '新增回访' }}</el-button>
|
|
<el-button type="primary" icon="el-icon-download" @click="handleExport" v-hasPermi="['work:record:export', 'work:up:add']">导出</el-button>
|
|
<el-button type="primary" icon="el-icon-download" @click="handleExport" v-hasPermi="['work:record:export', 'work:up:add']">导出</el-button>
|
|
<el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:record:remove', 'work:up:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
<el-button type="danger" icon="el-icon-delete" :disabled="ids.length == 0" @click="del" v-hasPermi="['work:record:remove', 'work:up:remove']">删除{{ ids.length > 0 ? '(' + ids.length + ')' : '' }}</el-button>
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" @click="op('recycle')" v-if="user.roleName == '超级管理员' || user.roleName == '管理员'" style="float: right; margin-top: 10px">回收站</el-button>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
<el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
|
|
<el-table :data="response.rows" border @selection-change="selects" height="calc(100vh - 270px)">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
- <el-table-column :label="queryParams.type == 0 ? '提醒标题' : '模板名称'" align="left" prop="templateName" />
|
|
+ <el-table-column label="模板名称" align="left" prop="templateName" />
|
|
<el-table-column label="患者姓名" align="center" prop="patientName" width="100" />
|
|
<el-table-column label="患者姓名" align="center" prop="patientName" width="100" />
|
|
<el-table-column label="住院号" align="center" prop="blh" width="120" />
|
|
<el-table-column label="住院号" align="center" prop="blh" width="120" />
|
|
<el-table-column :label="queryParams.type == 0 ? '提醒状态' : '随访状态'" align="center" prop="state" width="100">
|
|
<el-table-column :label="queryParams.type == 0 ? '提醒状态' : '随访状态'" align="center" prop="state" width="100">
|
|
@@ -43,7 +44,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:record:list', 'work:up:list']">查看</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-view" @click="op('detail', scope.row)" v-hasPermi="['work:record:list', 'work:up:list']">查看</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:record:edit', 'work:up:edit']" v-if="scope.row.state != 1">编辑</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="op('edit', scope.row)" v-hasPermi="['work:record:edit', 'work:up:edit']" v-if="scope.row.state != 1">编辑</el-button>
|
|
- <el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:record:remove', 'work:up:remove']" v-if="scope.row.state != 1">删除</el-button>
|
|
+ <el-button size="mini" type="text" icon="el-icon-delete" @click="del(scope.row)" v-hasPermi="['work:record:remove', 'work:up:remove']" v-if="scope.row.state != 1 || user.roleName == '超级管理员' || user.roleName == '管理员'">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<template slot="empty">
|
|
<template slot="empty">
|
|
@@ -57,15 +58,18 @@
|
|
<script>
|
|
<script>
|
|
import edit from './edit';
|
|
import edit from './edit';
|
|
import detail from './detail';
|
|
import detail from './detail';
|
|
|
|
+import recycle from './recycle';
|
|
export default {
|
|
export default {
|
|
name: 'Record',
|
|
name: 'Record',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ user: this.$store.state.user,
|
|
queryParams: {
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
state: null,
|
|
state: null,
|
|
deptId: null,
|
|
deptId: null,
|
|
|
|
+ delFlag: 0,
|
|
patientName: null,
|
|
patientName: null,
|
|
orderByColumn: 'k.id', //排序字段
|
|
orderByColumn: 'k.id', //排序字段
|
|
isAsc: 'desc' //排序方式
|
|
isAsc: 'desc' //排序方式
|
|
@@ -103,10 +107,14 @@ export default {
|
|
if (tag == 'detail') {
|
|
if (tag == 'detail') {
|
|
this.iframe({ obj: detail, param: { id: row.id, detail: true, patientName: row.patientName }, title: '查看详情', width: '35%', height: '85%' });
|
|
this.iframe({ obj: detail, param: { id: row.id, detail: true, patientName: row.patientName }, title: '查看详情', width: '35%', height: '85%' });
|
|
}
|
|
}
|
|
|
|
+ if (tag == 'recycle') {
|
|
|
|
+ this.iframe({ obj: recycle, param: { type: this.queryParams.type }, title: '回收站', width: '75%', height: '85%' });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
del(row) {
|
|
del(row) {
|
|
this.$confirm('是否确认删除选中数据?', '警告', { type: 'warning' }).then(() => {
|
|
this.$confirm('是否确认删除选中数据?', '警告', { type: 'warning' }).then(() => {
|
|
- this.get({ url: '/work/record/remove/' + (row.id || this.ids) }).then((response) => {
|
|
+ let ids = row.id ? [row.id] : this.ids;
|
|
|
|
+ this.ajax({ method: 'post', url: '/work/record/removeOrRevertByIds', data: { ids: ids, op: 1 } }).then((response) => {
|
|
this.$modal.msgSuccess('删除成功');
|
|
this.$modal.msgSuccess('删除成功');
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|