| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" @blur="handleQuery" /> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="queryParams.tjNumber" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input v-model="queryParams.userName" placeholder="请输入用户名" clearable @keyup.enter.native="handleQuery" /> |
| | | <el-input |
| | | v-model="queryParams.userName" |
| | | placeholder="请输入用户名" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
| | | >重置</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> --> |
| | | |
| | | <el-table v-loading="loading" :data="hzlogList" @selection-change="handleSelectionChange" border> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="hzlogList" |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="会诊id" align="center" prop="id" /> --> |
| | | <!-- <el-table-column label="会诊订单" align="center" prop="orderId" /> --> |
| | |
| | | <el-table-column label="用户名" align="center" prop="userName" /> |
| | | <el-table-column label="会诊类型" align="center" prop="hzType"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.hzType == '0'">全院会诊</span> |
| | | <span v-if="scope.row.hzType == '1'">科室会诊</span> |
| | | |
| | | <dict-tag |
| | | :options="dict.type.hz_type" |
| | | :value="scope.row.hzType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 0全院会诊1科室会诊 --> |
| | | <el-table-column label="会诊科室" align="center" prop="hzDeptName" /> |
| | | <!-- <el-table-column label="会诊申请人" align="center" prop="hzDoctorId" /> --> |
| | | <el-table-column label="会诊申请人" align="center" prop="hzDoctorName" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:edit']">查看回复 |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:edit']" |
| | | >查看回复 |
| | | </el-button> |
| | | <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:remove']">删除 |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" /> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | |
| | | <el-drawer title="会诊回复记录" :visible.sync="drawer" :before-close="handleClose" > |
| | | <el-drawer |
| | | title="会诊回复记录" |
| | | :visible.sync="drawer" |
| | | :before-close="handleClose" |
| | | > |
| | | <div class="block"> |
| | | <el-timeline > |
| | | <el-timeline-item v-for="(item,index) in hzReplyLogsList" :key="index" :timestamp=item.createTime placement="top"> |
| | | <el-timeline-item |
| | | v-for="(item, index) in hzReplyLogsList" |
| | | :key="index" |
| | | :timestamp="item.createTime" |
| | | placement="top" |
| | | > |
| | | <el-card> |
| | | <h2>科室:{{ item.replyDeptName}}</h2> |
| | | <h3>回复内容:{{ item.replyContent}}</h3> |
| | |
| | | getHzlog, |
| | | delHzlog, |
| | | addHzlog, |
| | | updateHzlog |
| | | updateHzlog, |
| | | } from "@/api/hosp/hzlog"; |
| | | |
| | | export default { |
| | | name: "Hzlog", |
| | | dicts: ["hz_type"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | } |
| | | rules: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | 列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listHzlog(this.queryParams).then(response => { |
| | | listHzlog(this.queryParams).then((response) => { |
| | | this.hzlogList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | |
| | | updateBy: null, |
| | | deleted: null, |
| | | hzDoctorId: null, |
| | | hzDoctorName: null |
| | | hzDoctorName: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length !== 1 |
| | | this.multiple = !selection.length |
| | | this.ids = selection.map((item) => item.id); |
| | | this.single = selection.length !== 1; |
| | | this.multiple = !selection.length; |
| | | }, |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | this.drawer = true; |
| | | this.hzReplyLogsList = row.hzReplyLogsList |
| | | |
| | | this.hzReplyLogsList = row.hzReplyLogsList; |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | // handleAdd() { |
| | |
| | | // ...this.queryParams |
| | | // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | // } |
| | | } |
| | | } |
| | | ; |
| | | }, |
| | | }; |
| | | </script> |