科室信息管理
This commit is contained in:
parent
a4f0dfbf32
commit
9c79556279
@ -1,7 +1,14 @@
|
||||
<template>
|
||||
<div class="app-container" ref="layout">
|
||||
<div ref="topform" class="form">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="100px"
|
||||
>
|
||||
<!-- <el-form-item label="所属科室id" prop="departmentId">
|
||||
<el-input
|
||||
v-model="queryParams.departmentId"
|
||||
@ -19,12 +26,20 @@
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="标准对照名称" prop="normCompareName">
|
||||
<el-input v-model="queryParams.normCompareName" placeholder="请输入标准对照名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
<el-input
|
||||
v-model="queryParams.normCompareName"
|
||||
placeholder="请输入标准对照名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准对照编码" prop="normCompareCode">
|
||||
<el-input v-model="queryParams.normCompareCode" placeholder="请输入标准对照编码" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
<el-input
|
||||
v-model="queryParams.normCompareCode"
|
||||
placeholder="请输入标准对照编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="标准对照排序" prop="normCompareSort">
|
||||
<el-input
|
||||
@ -43,96 +58,215 @@
|
||||
/>
|
||||
</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>
|
||||
</div>
|
||||
<div ref="mb8" class="mb8">
|
||||
<el-row :gutter="10" class="">
|
||||
<el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['system:compare:add']">新增</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:compare:add']"
|
||||
>新增</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
|
||||
v-hasPermi="['system:compare:edit']">修改</el-button>
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:compare:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
||||
v-hasPermi="['system:compare:remove']">删除</el-button>
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:compare:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['system:compare:export']">导出</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:compare:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
</div>
|
||||
<div ref="table">
|
||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="compareList"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table
|
||||
:max-height="maxTableHeight"
|
||||
v-loading="loading"
|
||||
:data="compareList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="主键id" align="center" prop="id" />
|
||||
<el-table-column label="所属科室id" align="center" prop="departmentId" /> -->
|
||||
<!-- <el-table-column label="所属科室名称" align="center" prop="departmentName" /> -->
|
||||
<el-table-column label="标准对照名称" align="center" prop="normCompareName" />
|
||||
<el-table-column label="标准对照编码" align="center" prop="normCompareCode" />
|
||||
<el-table-column label="标准对照排序" align="center" prop="normCompareSort" />
|
||||
<el-table-column label="标准对照概述" align="center" prop="normCompareRemark" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table-column
|
||||
label="标准对照名称"
|
||||
align="center"
|
||||
prop="normCompareName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="标准对照编码"
|
||||
align="center"
|
||||
prop="normCompareCode"
|
||||
/>
|
||||
<el-table-column
|
||||
label="标准对照排序"
|
||||
align="center"
|
||||
prop="normCompareSort"
|
||||
/>
|
||||
<el-table-column
|
||||
label="标准对照概述"
|
||||
align="center"
|
||||
prop="normCompareRemark"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="操作"
|
||||
align="center"
|
||||
class-name="small-padding fixed-width"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:compare:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:compare:remove']">删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:compare:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:compare:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" /> -->
|
||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
||||
<myPagination
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
:pageSize="queryParams.pageSize"
|
||||
:indexFromWrap="queryParams.pageNum"
|
||||
@updateCPage="updateCPage"
|
||||
></myPagination>
|
||||
<!-- 添加或修改标准科室对照信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
|
||||
<el-form
|
||||
ref="form"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
label-width="110px"
|
||||
:inline="true"
|
||||
>
|
||||
<!-- <el-form-item label="所属科室id" prop="departmentId">
|
||||
<el-input v-model="form.departmentId" placeholder="请输入所属科室id" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="所属科室" prop="departmentId">
|
||||
<el-button type="" v-if="form.departmentName == '请选择科室'" @click="clickinnerVisible()" style="
|
||||
<el-button
|
||||
type=""
|
||||
v-if="form.departmentName == '请选择科室'"
|
||||
@click="clickinnerVisible()"
|
||||
style="
|
||||
width: 208px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
color: #c0c4cc;
|
||||
overflow: hidden;
|
||||
">{{ form.departmentName }}</el-button>
|
||||
<el-button @click="clickinnerVisible()" type="" v-else style="
|
||||
"
|
||||
>{{ form.departmentName }}</el-button
|
||||
>
|
||||
<el-button
|
||||
@click="clickinnerVisible()"
|
||||
type=""
|
||||
v-else
|
||||
style="
|
||||
width: 208px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
padding-left: -10px;
|
||||
overflow: hidden;
|
||||
">{{ form.departmentName }}</el-button>
|
||||
"
|
||||
>{{ form.departmentName }}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="所属科室名称" prop="departmentName">
|
||||
<el-input v-model="form.departmentName" placeholder="请输入所属科室名称" />
|
||||
</el-form-item> -->
|
||||
<el-form-item label="标准对照名称" prop="normCompareName">
|
||||
<el-input v-model="form.normCompareName" maxlength="100" placeholder="请输入标准对照名称" />
|
||||
<el-input
|
||||
v-model="form.normCompareName"
|
||||
maxlength="100"
|
||||
placeholder="请输入标准对照名称"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准对照编码" prop="normCompareCode">
|
||||
<el-input v-model="form.normCompareCode" maxlength="20" placeholder="请输入标准对照编码"
|
||||
onKeyUp="value=value.replace(/[\W]/g,'')" />
|
||||
<el-input
|
||||
v-model="form.normCompareCode"
|
||||
maxlength="20"
|
||||
placeholder="请输入标准对照编码"
|
||||
onKeyUp="value=value.replace(/[\W]/g,'')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="标准对照排序" prop="normCompareSort">
|
||||
<el-input-number v-model="form.normCompareSort" controls-position="right" :min="0" placeholder="请输入标准对照排序" />
|
||||
<el-input-number
|
||||
v-model="form.normCompareSort"
|
||||
controls-position="right"
|
||||
:min="0"
|
||||
placeholder="请输入标准对照排序"
|
||||
/>
|
||||
<!-- <el-input v-model="form.normCompareSort" maxlength="8" placeholder="请输入标准对照排序" /> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="标准对照概述" prop="normCompareRemark">
|
||||
<el-input type="textarea" style="width: 206px" v-model="form.normCompareRemark" maxlength="100"
|
||||
placeholder="请输入标准对照概述" />
|
||||
<el-input
|
||||
type="textarea"
|
||||
style="width: 206px"
|
||||
v-model="form.normCompareRemark"
|
||||
maxlength="100"
|
||||
placeholder="请输入标准对照概述"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -141,32 +275,82 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
<!-- 科室弹框 -->
|
||||
<el-dialog title="" :visible.sync="innerVisibleshow" width="1000px" append-to-body
|
||||
:before-close="innerVisiblecancel">
|
||||
<el-form ref="queryForm" :model="informationqueryParams" :rules="rules" label-width="80px" :inline="true">
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible.sync="innerVisibleshow"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="innerVisiblecancel"
|
||||
>
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="informationqueryParams"
|
||||
:rules="rules"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item label="科室名称" prop="departmentName" label-width="120">
|
||||
<el-input v-model="informationqueryParams.departmentName" placeholder="请输入科室名称" clearable />
|
||||
<el-input
|
||||
v-model="informationqueryParams.departmentName"
|
||||
placeholder="请输入科室名称"
|
||||
clearable
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-search"
|
||||
size="mini"
|
||||
@click="informationInfoinfo"
|
||||
>搜索</el-button
|
||||
>
|
||||
<el-button
|
||||
icon="el-icon-refresh"
|
||||
size="mini"
|
||||
@click="addresetQuerylist"
|
||||
>重置</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table :data="infolist" @cell-dblclick="nurseclick" v-loading="loading">
|
||||
<el-table
|
||||
:data="infolist"
|
||||
@cell-dblclick="nurseclick"
|
||||
v-loading="loading"
|
||||
>
|
||||
<el-table-column label="请选择" width="150" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" style="width: 15px; height: 15px"
|
||||
v-if="form.departmentId == scope.row.departmentCode" circle @click="nurseclick(scope.row)"></el-button>
|
||||
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclick(scope.row)"></el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
style="width: 15px; height: 15px"
|
||||
v-if="form.departmentId == scope.row.departmentCode"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
<el-button
|
||||
v-else
|
||||
style="width: 15px; height: 15px"
|
||||
circle
|
||||
@click="nurseclick(scope.row)"
|
||||
></el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="departmentName" label="科室名称" align="center" :show-overflow-tooltip="true">
|
||||
<el-table-column
|
||||
property="departmentName"
|
||||
label="科室名称"
|
||||
align="center"
|
||||
:show-overflow-tooltip="true"
|
||||
>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
||||
@pagination="getList" /> -->
|
||||
<myPagination v-show="totaldepartment > 0" :total="totaldepartment" :pageSize="informationqueryParams.pageSize"
|
||||
:indexFromWrap="informationqueryParams.pageNum" @updateCPage="updateCPagetwo"></myPagination>
|
||||
<myPagination
|
||||
v-show="totaldepartment > 0"
|
||||
:total="totaldepartment"
|
||||
:pageSize="informationqueryParams.pageSize"
|
||||
:indexFromWrap="informationqueryParams.pageNum"
|
||||
@updateCPage="updateCPagetwo"
|
||||
></myPagination>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@ -348,12 +532,16 @@ export default {
|
||||
const id = row.id || this.ids
|
||||
getCompare(id).then(response => {
|
||||
this.form = response.data;
|
||||
if (!this.form.normCompareSort) {
|
||||
this.form.normCompareSort = undefined
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改标准科室对照信息";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
console.log(this.form, '00000000')
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user