手术名称、话术库
This commit is contained in:
parent
974b26d381
commit
62bb99bed6
16
src/api/system/exportinfo.js
Normal file
16
src/api/system/exportinfo.js
Normal file
@ -0,0 +1,16 @@
|
||||
import request from '@/utils/request'
|
||||
export function getBaseList(query) {
|
||||
return request({
|
||||
url: '/manage/knowledge/getBaseList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 手术名称管理提交
|
||||
export function copyBaselnfo(data) {
|
||||
return request({
|
||||
url: '/manage/knowledge/copyBaseInfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
163
src/views/manage/components/addexport.vue
Normal file
163
src/views/manage/components/addexport.vue
Normal file
@ -0,0 +1,163 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="table">
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="informationqueryParams"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item label="手术名称" prop="operationName">
|
||||
<el-input
|
||||
v-model="informationqueryParams.operationName"
|
||||
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-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
v-loading="loading"
|
||||
:data="infolist"
|
||||
@selection-change="handleSelectionChange"
|
||||
:row-key="getRowKey"
|
||||
@cell-dblclick="handleRowDbClick"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
:reserve-selection="true"
|
||||
/>
|
||||
<el-table-column label="序号" align="center" prop="sort" type="index" />
|
||||
<el-table-column label="手术名称" align="center" prop="operationName" />
|
||||
<el-table-column label="术式信息" align="center" prop="operationInfo" />
|
||||
</el-table>
|
||||
<div class="bottom">
|
||||
<myPagination
|
||||
v-show="totaldepartment > 0"
|
||||
:total="totaldepartment"
|
||||
:pageSize="informationqueryParams.pageSize"
|
||||
:indexFromWrap="informationqueryParams.pageNum"
|
||||
@updateCPage="updateCPagetwo"
|
||||
></myPagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getBaseList } from "@/api/system/exportinfo";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
infolist: [],
|
||||
loading: false,
|
||||
datalist:[],
|
||||
informationqueryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
type:'OPERATOR',
|
||||
operationName: null,
|
||||
hospitalAgencyId:46,
|
||||
},
|
||||
totaldepartment: 0,
|
||||
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
datalist(val) {
|
||||
this.$emit('submit', val);
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
||||
this.informationInfoinfo()
|
||||
},
|
||||
methods: {
|
||||
resetTable() {
|
||||
this.$refs.multipleTable.clearSelection();
|
||||
},
|
||||
// 列表
|
||||
informationInfoinfo() {
|
||||
getBaseList(this.informationqueryParams).then((response) => {
|
||||
this.infolist = response.rows;
|
||||
this.totaldepartment = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getRowKey(row) {
|
||||
return row.id
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
// this.datalist = selection
|
||||
this.datalist = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
handleRowDbClick(row, column, event) {// 双击选中该行
|
||||
const index = this.datalist.indexOf(row);
|
||||
console.log(index,'0000000000')
|
||||
if (index !== -1) {
|
||||
this.datalist.splice(index, 1);
|
||||
} else {
|
||||
this.datalist.push(row);
|
||||
}
|
||||
// 通过`toggleRowSelection`方法来切换选中状态
|
||||
this.$refs.multipleTable.toggleRowSelection(row, index === -1);
|
||||
|
||||
},
|
||||
// 重置
|
||||
addresetQuerylist() {
|
||||
this.informationqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
type:'OPERATOR',
|
||||
hospitalAgencyId:46,
|
||||
|
||||
};
|
||||
this.informationInfoinfo();
|
||||
},
|
||||
// 分页
|
||||
updateCPagetwo(index, size) {
|
||||
this.informationqueryParams.pageNum = index
|
||||
this.informationqueryParams.pageSize = size
|
||||
this.informationInfoinfo();
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bottom {
|
||||
.pagination {
|
||||
bottom: 70px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
222
src/views/manage/components/scriptexport.vue
Normal file
222
src/views/manage/components/scriptexport.vue
Normal file
@ -0,0 +1,222 @@
|
||||
<template>
|
||||
<div>
|
||||
<div ref="table">
|
||||
<el-form
|
||||
ref="queryForm"
|
||||
:model="informationqueryParams"
|
||||
label-width="80px"
|
||||
:inline="true"
|
||||
>
|
||||
<el-form-item
|
||||
label="通用话术名称"
|
||||
prop="commonScriptName"
|
||||
label-width="100px"
|
||||
>
|
||||
<el-input
|
||||
v-model="informationqueryParams.commonScriptName"
|
||||
placeholder="请输入通用话术名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="话术名称" prop="scriptName">
|
||||
<el-input
|
||||
v-model="informationqueryParams.scriptName"
|
||||
placeholder="请输入话术名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</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-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table
|
||||
ref="multipleTable"
|
||||
v-loading="loading"
|
||||
:data="infolist"
|
||||
@selection-change="handleSelectionChange"
|
||||
:row-key="getRowKey"
|
||||
@cell-dblclick="handleRowDbClick"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"
|
||||
align="center"
|
||||
:reserve-selection="true"
|
||||
/>
|
||||
<el-table-column label="序号" align="center" prop="sort" type="index" />
|
||||
|
||||
<el-table-column
|
||||
label="通用话术名称"
|
||||
align="center"
|
||||
prop="commonScriptName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="话术名称"
|
||||
align="center"
|
||||
prop="scriptName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="话术ID"
|
||||
align="center"
|
||||
prop="scriptId"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="平台ID"
|
||||
align="center"
|
||||
prop="platformId"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column label="话术状态" align="center" prop="scriptStatus">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.scriptStatus == "NORMAL" ? "正常" : "" }}
|
||||
{{ scope.row.scriptStatus == "OFF_SHELF" ? "下架" : "" }}
|
||||
{{ scope.row.scriptStatus == "SUSPEND" ? "暂停" : "" }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="话术简介"
|
||||
align="center"
|
||||
prop="scriptIntroduction"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<el-table-column
|
||||
label="病种名称"
|
||||
align="center"
|
||||
prop="diseaseTypeName"
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
</el-table>
|
||||
<div class="bottom">
|
||||
<myPagination
|
||||
v-show="totaldepartment > 0"
|
||||
:total="totaldepartment"
|
||||
:pageSize="informationqueryParams.pageSize"
|
||||
:indexFromWrap="informationqueryParams.pageNum"
|
||||
@updateCPage="updateCPagetwo"
|
||||
></myPagination>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getBaseList } from "@/api/system/exportinfo";
|
||||
export default {
|
||||
props:['Nameinfo'],
|
||||
data() {
|
||||
return {
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
infolist: [],
|
||||
loading: false,
|
||||
datalist: [],
|
||||
informationqueryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
type:'SCRIPT',
|
||||
scriptStatu:'NORMAL',
|
||||
hospitalAgencyId:46,
|
||||
commonScriptName: null,
|
||||
scriptName: null,
|
||||
|
||||
},
|
||||
totaldepartment: 0,
|
||||
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
datalist(val) {
|
||||
this.$emit('submit', val);
|
||||
},
|
||||
},
|
||||
created() {
|
||||
this.informationInfoinfo()
|
||||
|
||||
},
|
||||
methods: {
|
||||
resetTable() {
|
||||
this.$refs.multipleTable.clearSelection();
|
||||
},
|
||||
// 列表
|
||||
informationInfoinfo() {
|
||||
getBaseList(this.informationqueryParams).then((response) => {
|
||||
this.infolist = response.rows;
|
||||
this.totaldepartment = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
getRowKey(row) {
|
||||
return row.id
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
// this.datalist = selection
|
||||
this.datalist = selection.map(item => item.id)
|
||||
this.single = selection.length !== 1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
handleRowDbClick(row, column, event) {// 双击选中该行
|
||||
const index = this.datalist.indexOf(row);
|
||||
if (index !== -1) {
|
||||
this.datalist.splice(index, 1);
|
||||
} else {
|
||||
this.datalist.push(row);
|
||||
}
|
||||
// 通过`toggleRowSelection`方法来切换选中状态
|
||||
this.$refs.multipleTable.toggleRowSelection(row, index === -1);
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
// 重置
|
||||
addresetQuerylist() {
|
||||
this.informationqueryParams = {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
};
|
||||
this.informationInfoinfo();
|
||||
},
|
||||
// 分页
|
||||
updateCPagetwo(index, size) {
|
||||
this.informationqueryParams.pageNum = index
|
||||
this.informationqueryParams.pageSize = size
|
||||
this.informationInfoinfo();
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.bottom {
|
||||
.pagination {
|
||||
bottom: 70px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -43,6 +43,14 @@
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
:disabled="queryParams.hospitalAgencyId ? false : true"
|
||||
v-hasPermi="['manage:script:add']">新增</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-upload2"
|
||||
size="mini"
|
||||
@click="handleUpload"
|
||||
>导入</el-button
|
||||
>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
@ -133,7 +141,7 @@
|
||||
">{{ form.diseaseTypeName }}</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item label="话术简介" prop="scriptIntroduction">
|
||||
<el-input maxlength="200" v-model="form.scriptIntroduction" placeholder="请输入话术简介" type="textarea" />
|
||||
<el-input maxlength="200" v-model="form.scriptIntroduction" placeholder="请输入话术简介" type="textarea" style="width:300px"/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="图片" prop="scriptFilePath">
|
||||
<stationAcatar @imgUrl="imgUrl" :img="form.scriptFilePath" :type="'scriptUrl'" />
|
||||
@ -209,17 +217,37 @@
|
||||
<el-button @click="dialogsee = false">取 消</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!-- 导入弹框 -->
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible.sync="innerexport"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="exportcancel"
|
||||
>
|
||||
<scriptexport @submit="submit" ref="childComponent" :Nameinfo=Nameinfo></scriptexport>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitexport">确 定</el-button>
|
||||
<el-button @click="innerexport = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listScript, getScript, delScript, addScript, updateScript, departmentDisease, department, listDisease, listScriptNum } from "@/api/manage/script";
|
||||
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||
import DepartmentList from '../../components/DepartmentList.vue'
|
||||
import scriptexport from "@/views/manage/components/scriptexport.vue"
|
||||
import { copyBaselnfo } from "@/api/system/exportinfo";
|
||||
export default {
|
||||
components: { stationAcatar, DepartmentList },
|
||||
components: { stationAcatar, scriptexport,DepartmentList},
|
||||
name: "Script",
|
||||
data() {
|
||||
return {
|
||||
Nameinfo:null,
|
||||
// 导入弹框
|
||||
innerexport:false,
|
||||
exportlist:[],
|
||||
obj: null,
|
||||
departmentName: null,
|
||||
departmentId: null,
|
||||
@ -365,6 +393,40 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
submit(e) {
|
||||
this.exportlist = e
|
||||
},
|
||||
// 导入确定按钮
|
||||
submitexport() {
|
||||
var obj = {
|
||||
departmentId: this.queryParams.departmentId,
|
||||
departmentName: this.departmentName,
|
||||
type: 'SCRIPT',
|
||||
sourceTemplateIds: this.exportlist,
|
||||
}
|
||||
copyBaselnfo(obj).then(response => {
|
||||
this.$modal.msgSuccess("导入成功");
|
||||
this.innerexport = false
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
// 导入按钮
|
||||
handleUpload() {
|
||||
if (this.queryParams.departmentId) {
|
||||
this.innerexport = true
|
||||
if (this.exportlist.length > 0) {
|
||||
this.$refs.childComponent.resetTable();
|
||||
}
|
||||
this.Nameinfo = this.departmentName
|
||||
} else {
|
||||
this.$modal.msgError("请先选择左侧科室");
|
||||
}
|
||||
},
|
||||
// 弹框取消
|
||||
exportcancel() {
|
||||
this.innerexport = false
|
||||
},
|
||||
// 上传图片
|
||||
imgUrl(imgUrl) {
|
||||
this.form.scriptFilePath = imgUrl;
|
||||
|
||||
@ -2,75 +2,174 @@
|
||||
<div class="app-container" ref="layout">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="5" :xs="24">
|
||||
<DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'listOperationNum'">
|
||||
<DepartmentList
|
||||
ref="DepartmentList"
|
||||
@clickdepartment="clickdepartment"
|
||||
:methods="'listOperationNum'"
|
||||
>
|
||||
</DepartmentList>
|
||||
</el-col>
|
||||
<el-col :span="19" :xs="24">
|
||||
<div ref="topform" class="form">
|
||||
<el-form :model="queryParams" ref="queryForms" size="small" :inline="true" v-show="showSearch"
|
||||
label-width="68px" @submit.native.prevent>
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForms"
|
||||
size="small"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="68px"
|
||||
@submit.native.prevent
|
||||
>
|
||||
<el-form-item label="手术名称" prop="operationName">
|
||||
<el-input v-model="queryParams.operationName" placeholder="请输入手术名称" clearable
|
||||
@keyup.enter.native="handleQuery" />
|
||||
<el-input
|
||||
v-model="queryParams.operationName"
|
||||
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>
|
||||
</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"
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
:disabled="queryParams.hospitalAgencyId ? false : true"
|
||||
v-hasPermi="['operationInfo:operationInfo:add']">新增手术</el-button>
|
||||
v-hasPermi="['operationInfo:operationInfo:add']"
|
||||
>新增手术</el-button
|
||||
>
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-upload2"
|
||||
size="mini"
|
||||
@click="handleUpload"
|
||||
>导入</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="operationInfoList"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column label="序号" align="center" prop="sort" type="index" />
|
||||
<el-table-column label="手术名称" align="center" prop="operationName" />
|
||||
<el-table-column label="术式信息" align="center" prop="operationInfo" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<el-table
|
||||
:max-height="maxTableHeight"
|
||||
v-loading="loading"
|
||||
:data="operationInfoList"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column
|
||||
label="序号"
|
||||
align="center"
|
||||
prop="sort"
|
||||
type="index"
|
||||
/>
|
||||
<el-table-column
|
||||
label="手术名称"
|
||||
align="center"
|
||||
prop="operationName"
|
||||
/>
|
||||
<el-table-column
|
||||
label="术式信息"
|
||||
align="center"
|
||||
prop="operationInfo"
|
||||
/>
|
||||
<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="['operationInfo:operationInfo:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
v-hasPermi="['operationInfo:operationInfo:remove']">删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['operationInfo:operationInfo:edit']"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['operationInfo:operationInfo: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-col>
|
||||
</el-row>
|
||||
<!-- 添加或修改手术信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="科室名称" prop="departmentId">
|
||||
<el-button @click="clickinnerVisible()" style="
|
||||
<el-button
|
||||
@click="clickinnerVisible()"
|
||||
style="
|
||||
width: 379px;
|
||||
text-align: left;
|
||||
height: 36px;
|
||||
overflow: hidden;
|
||||
" :style="form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''">{{ form.departmentName }}</el-button>
|
||||
"
|
||||
:style="
|
||||
form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''
|
||||
"
|
||||
>{{ form.departmentName }}</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
<el-form-item label="手术名称" prop="operationName">
|
||||
<el-input v-model="form.operationName" placeholder="请输入手术名称" :disabled="disabled" />
|
||||
<el-input
|
||||
v-model="form.operationName"
|
||||
placeholder="请输入手术名称"
|
||||
:disabled="disabled"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="手术排序" prop="sort">
|
||||
<el-input-number v-model="form.sort" controls-position="right" :min="0" placeholder="请输入手术排序"
|
||||
style="width: 380px" />
|
||||
<el-input-number
|
||||
v-model="form.sort"
|
||||
controls-position="right"
|
||||
:min="0"
|
||||
placeholder="请输入手术排序"
|
||||
style="width: 380px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="术式信息" prop="operationInfo">
|
||||
<el-input v-model="form.operationInfo" placeholder="请输入术式信息" type="textarea" />
|
||||
<el-input
|
||||
v-model="form.operationInfo"
|
||||
placeholder="请输入术式信息"
|
||||
type="textarea"
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
@ -79,32 +178,99 @@
|
||||
</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="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="form.departmentId == scope.row.id" 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.id"
|
||||
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="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
||||
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
||||
<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>
|
||||
<!-- 导入弹框 -->
|
||||
<el-dialog
|
||||
title=""
|
||||
:visible.sync="innerexport"
|
||||
width="1000px"
|
||||
append-to-body
|
||||
:before-close="exportcancel"
|
||||
>
|
||||
<addexport
|
||||
@submit="submit"
|
||||
ref="childComponent"
|
||||
></addexport>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitexport">确 定</el-button>
|
||||
<el-button @click="innerexport = false">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
@ -113,13 +279,21 @@
|
||||
import { listOperationInfo, getOperationInfo, delOperationInfo, addOperationInfo, updateOperationInfo, listOperationNum } from "@/api/operationInfo/operationInfo";
|
||||
import { department, listDisease } from "@/api/manage/script";
|
||||
import DepartmentList from '../../components/DepartmentList.vue'
|
||||
import addexport from "@/views/manage/components/addexport.vue"
|
||||
import { copyBaselnfo } from "@/api/system/exportinfo";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
DepartmentList,
|
||||
addexport
|
||||
},
|
||||
name: "OperationInfo",
|
||||
data() {
|
||||
return {
|
||||
departmentId: null,
|
||||
exportlist: [],
|
||||
innerexport: false,
|
||||
Nameinfo: null,
|
||||
obj: null,
|
||||
disabled: false,
|
||||
innerVisibleshow: false, //科室弹框
|
||||
@ -218,6 +392,41 @@ export default {
|
||||
this.screenChange()
|
||||
},
|
||||
methods: {
|
||||
submit(e) {
|
||||
this.exportlist = e
|
||||
},
|
||||
// 导入确定按钮
|
||||
submitexport() {
|
||||
var obj = {
|
||||
departmentId: this.queryParams.departmentId,
|
||||
departmentName: this.departmentName,
|
||||
type: 'OPERATOR',
|
||||
sourceTemplateIds: this.exportlist,
|
||||
}
|
||||
copyBaselnfo(obj).then(response => {
|
||||
this.$modal.msgSuccess("导入成功");
|
||||
this.innerexport = false
|
||||
this.$refs.DepartmentList.Departmentlist()
|
||||
this.getList();
|
||||
|
||||
});
|
||||
},
|
||||
// 导入按钮
|
||||
handleUpload() {
|
||||
if (this.queryParams.departmentId) {
|
||||
this.innerexport = true
|
||||
if (this.exportlist.length > 0) {
|
||||
this.$refs.childComponent.resetTable();
|
||||
}
|
||||
} else {
|
||||
this.$modal.msgError("请先选择左侧科室");
|
||||
|
||||
}
|
||||
},
|
||||
// 弹框取消
|
||||
exportcancel() {
|
||||
this.innerexport = false
|
||||
},
|
||||
// 点击科室
|
||||
clickinnerVisible() {
|
||||
this.innerVisibleshow = true;
|
||||
@ -311,6 +520,7 @@ export default {
|
||||
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
||||
this.queryParams.departmentId = item.itemid
|
||||
this.departmentName = item.itemName
|
||||
console.log(item, 'item')
|
||||
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
|
||||
if (item.hospitalAgencyId) {
|
||||
this.getList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user