Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2024-07-08 14:20:32 +08:00
commit ca2f52c65b
7 changed files with 191 additions and 552 deletions

View File

@ -62,6 +62,8 @@ import {
} from "@/api/manage/template"; } from "@/api/manage/template";
import { listScriptNum } from "@/api/manage/script"; import { listScriptNum } from "@/api/manage/script";
import { listMessageNum } from "@/api/manage/message"; import { listMessageNum } from "@/api/manage/message";
import { selectNumByDept } from "@/api/manage/propaganda";
import { listServicePackageNum } from "@/api/manage/servicepackage";
export default { export default {
props: ['methods'], props: ['methods'],
name: "DepartmentList", name: "DepartmentList",
@ -97,11 +99,6 @@ export default {
created() { created() {
this.querydepartmen.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.querydepartmen.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.Departmentlist(); this.Departmentlist();
this.$emit("clickdepartment", {
itemid: '',
itemName: '',
hospitalAgencyId: JSON.parse(localStorage.getItem('user')).hospitalAgencyId
});
}, },
methods: { methods: {
opentrue() { opentrue() {
@ -120,22 +117,20 @@ export default {
this.querydepartmen.hospitalAgencyId = item.id this.querydepartmen.hospitalAgencyId = item.id
this.Departmentlist(); this.Departmentlist();
this.open = false this.open = false
this.$emit("clickdepartment", {
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
itemid: '',
itemName: ''
});
}, },
changeswitch(e) { changeswitch(e) {
let hospitalAgencyId = '' let hospitalAgencyId = ''
let hospitalAgencyName = ''
if (e) { if (e) {
hospitalAgencyId = this.querydepartmen.hospitalAgencyId hospitalAgencyId = this.querydepartmen.hospitalAgencyId
hospitalAgencyName = this.hospitalAgencyName
} }
this.itemid = '' this.itemid = ''
this.$emit("clickdepartment", { this.$emit("clickdepartment", {
hospitalAgencyId: hospitalAgencyId, hospitalAgencyId: hospitalAgencyId,
itemid: '', itemid: '',
itemName: '' itemName: '',
hospitalAgencyName: hospitalAgencyName
}); });
}, },
resetQuery() { resetQuery() {
@ -143,11 +138,6 @@ export default {
this.switchvalue = true this.switchvalue = true
this.querydepartmen.departmentName = '' this.querydepartmen.departmentName = ''
this.querydepartmen.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId this.querydepartmen.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.$emit("clickdepartment", {
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
itemid: '',
itemName: ''
});
this.Departmentlist(); this.Departmentlist();
}, },
// //
@ -159,14 +149,16 @@ export default {
obj = { obj = {
itemid: this.itemid, itemid: this.itemid,
itemName: item.departmentName, itemName: item.departmentName,
hospitalAgencyId: this.querydepartmen.hospitalAgencyId hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
hospitalAgencyName: this.hospitalAgencyName
} }
} else { } else {
this.itemid = null this.itemid = null
obj = { obj = {
itemid: '', itemid: '',
itemName: '', itemName: '',
hospitalAgencyId: this.querydepartmen.hospitalAgencyId hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
hospitalAgencyName: this.hospitalAgencyName
} }
} }
this.$emit("clickdepartment", obj); this.$emit("clickdepartment", obj);
@ -182,6 +174,10 @@ export default {
method = listWechatTemplateNum(this.querydepartmen) method = listWechatTemplateNum(this.querydepartmen)
} else if (this.methods == 'listMessageNum') { } else if (this.methods == 'listMessageNum') {
method = listMessageNum(this.querydepartmen) method = listMessageNum(this.querydepartmen)
} else if (this.methods == 'selectNumByDept') {
method = selectNumByDept(this.querydepartmen)
} else if (this.methods == 'listServicePackageNum') {
method = listServicePackageNum(this.querydepartmen)
} }
method.then(response => { method.then(response => {
this.DepartmentoList = response.data.deptNumList; this.DepartmentoList = response.data.deptNumList;
@ -192,6 +188,12 @@ export default {
this.count += item.countNum; this.count += item.countNum;
} }
}); });
this.$emit("clickdepartment", {
hospitalAgencyId: this.querydepartmen.hospitalAgencyId,
itemid: '',
itemName: '',
hospitalAgencyName: this.hospitalAgencyName
});
}); });
}, },
} }

View File

@ -33,6 +33,7 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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="['manage:template:add']">新增短信模版</el-button> v-hasPermi="['manage:template:add']">新增短信模版</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -335,12 +336,14 @@ export default {
// //
clickdepartment(item) { clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.getList();
} }
this.$forceUpdate()
}, },
/** 查询微信模板信息列表 */ /** 查询微信模板信息列表 */
getList() { getList() {
@ -406,7 +409,7 @@ export default {
}, },
// //
clickdisease() { clickdisease() {
if (this.departmentName == '请选择科室') { if (this.form.departmentName == '请选择科室') {
this.$modal.msgError("请先选择科室"); this.$modal.msgError("请先选择科室");
} else { } else {
this.diseaseshowst = true; this.diseaseshowst = true;
@ -483,6 +486,12 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.form.diseaseTypeName = "请选择病种" this.form.diseaseTypeName = "请选择病种"
if (this.queryParams.departmentId) {
this.form.departmentName = this.departmentName
this.form.departmentId = this.queryParams.departmentId
} else {
this.form.departmentName = '请选择科室'
}
this.title = "新增短信模版"; this.title = "新增短信模版";
this.open = true; this.open = true;
}, },
@ -493,6 +502,7 @@ export default {
// this.getDisease(); // this.getDisease();
getMessage(id).then(response => { getMessage(id).then(response => {
this.form = response.data; this.form = response.data;
this.departmentName = response.data.departmentName
if (!this.form.textMessageSort) { if (!this.form.textMessageSort) {
this.form.textMessageSort = undefined this.form.textMessageSort = undefined
} }
@ -503,6 +513,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.obj.length > 10) { if (this.obj.length > 10) {

View File

@ -2,24 +2,8 @@
<div class="app-container" ref="layout"> <div class="app-container" ref="layout">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="5"> <el-col :span="5">
<div class="leftpro" ref="box"> <DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'selectNumByDept'">
<div class="name">科室名称</div> </DepartmentList>
<div>
<el-input v-model="name" placeholder="请输入科室名称" clearable @keyup.enter.native="handleQuery" />
</div>
<div class="listitem">
<div :class="itemname == null ? 'allactive' : 'all'" @click="itemdata()">
全部
</div>
<span class="count">{{ count }}</span>
</div>
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index" @click="itemdata(item)">
<div :class="itemname == item.id ? 'allactive' : 'all'">
{{ item.departmentName }}
</div>
<span class="count">{{ item.countNum }}</span>
</div>
</div>
</el-col> </el-col>
<el-col :span="19" :xs="24"> <el-col :span="19" :xs="24">
<div ref="topform" class="form"> <div ref="topform" class="form">
@ -40,19 +24,13 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="宣教来源" prop="hospitalAgencyId"> <!-- <el-form-item label="宣教来源" prop="hospitalAgencyId">
<el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width: 200px" <el-select v-model="queryParams.hospitalAgencyId" filterable placeholder="请选择医院" style="width: 200px"
clearable> clearable>
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id"> <el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-input </el-form-item> -->
v-model="queryParams.hospitalAgencyId"
placeholder="请输入宣教来源"
clearable
@keyup.enter.native="handleQuery"
/> -->
</el-form-item>
<el-form-item label="宣教状态" prop="propagandaStatus"> <el-form-item label="宣教状态" prop="propagandaStatus">
<el-select v-model="queryParams.propagandaStatus" placeholder="请选择"> <el-select v-model="queryParams.propagandaStatus" placeholder="请选择">
<el-option v-for="item in optionsstate" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in optionsstate" :key="item.value" :label="item.label" :value="item.value">
@ -65,7 +43,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> --> /> -->
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</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-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -76,6 +53,7 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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="['manage:propaganda:add']">新增</el-button> v-hasPermi="['manage:propaganda:add']">新增</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -90,47 +68,21 @@
</el-table-column> </el-table-column>
<el-table-column label="宣教类型" align="center" prop="propagandaType"> <el-table-column label="宣教类型" align="center" prop="propagandaType">
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{ scope.row.propagandaType == "MEDICATION_KNOWLEDGE" ? "用药知识" : "" }}
scope.row.propagandaType == "MEDICATION_KNOWLEDGE" {{ scope.row.propagandaType == "DISEASE_POPULARIZATION" ? "疾病科普" : "" }}
? "用药知识" {{ scope.row.propagandaType == "SPORT_NUTRITION" ? "运动营养" : "" }}
: "" {{ scope.row.propagandaType == "OTHER_KNOWLEDGE" ? "其他知识" : "" }}
}} {{ scope.row.propagandaType == "CUSTOMIZED_CONTENT" ? "定制内容" : "" }}
{{
scope.row.propagandaType == "DISEASE_POPULARIZATION"
? "疾病科普"
: ""
}}
{{
scope.row.propagandaType == "SPORT_NUTRITION" ? "运动营养" : ""
}}
{{
scope.row.propagandaType == "OTHER_KNOWLEDGE" ? "其他知识" : ""
}}
{{
scope.row.propagandaType == "CUSTOMIZED_CONTENT"
? "定制内容"
: ""
}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="宣教ID" align="center" prop="propagandaCode" :show-overflow-tooltip="true" /> <el-table-column label="宣教ID" align="center" prop="propagandaCode" :show-overflow-tooltip="true" />
<el-table-column label="宣教状态" align="center" prop="propagandaStatus"> <el-table-column label="宣教状态" align="center" prop="propagandaStatus">
<template slot-scope="scope"> <template slot-scope="scope">
{{ {{ scope.row.propagandaStatus == "CREATE_PROCESS" ? "创作中" : "" }}
scope.row.propagandaStatus == "CREATE_PROCESS" ? "创作中" : "" {{ scope.row.propagandaStatus == "CREATE_COMPLETE" ? "创作完成" : "" }}
}}
{{
scope.row.propagandaStatus == "CREATE_COMPLETE"
? "创作完成"
: ""
}}
{{ scope.row.propagandaStatus == "IN_REVIEW" ? "审核中" : "" }} {{ scope.row.propagandaStatus == "IN_REVIEW" ? "审核中" : "" }}
{{ scope.row.propagandaStatus == "APPROVED" ? "审核通过" : "" }} {{ scope.row.propagandaStatus == "APPROVED" ? "审核通过" : "" }}
{{ {{ scope.row.propagandaStatus == "REVIEW_FAILED" ? "审核不通过" : "" }}
scope.row.propagandaStatus == "REVIEW_FAILED"
? "审核不通过"
: ""
}}
<div></div> <div></div>
</template> </template>
</el-table-column> </el-table-column>
@ -141,7 +93,6 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" icon="el-icon-zoom-in" size="mini" @click="Preview(scope.row)">预览</el-button> <el-button type="text" icon="el-icon-zoom-in" size="mini" @click="Preview(scope.row)">预览</el-button>
<el-button type="text" icon="el-icon-tickets" size="mini" @click="copyUrl(scope.row)">复制</el-button> <el-button type="text" icon="el-icon-tickets" size="mini" @click="copyUrl(scope.row)">复制</el-button>
<el-button size="mini" type="text" icon="el-icon-aim" <el-button size="mini" type="text" icon="el-icon-aim"
v-if="scope.row.propagandaStatus == 'CREATE_COMPLETE'" @click="examine(scope.row)">审核</el-button> v-if="scope.row.propagandaStatus == 'CREATE_COMPLETE'" @click="examine(scope.row)">审核</el-button>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
@ -165,7 +116,6 @@
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination> :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
</el-col> </el-col>
</el-row> </el-row>
<!-- 添加或修改患者宣教信息对话框 --> <!-- 添加或修改患者宣教信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true"> <el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true">
@ -181,69 +131,38 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="医院名称" prop="hospitalAgencyName"> <!-- <el-form-item label="医院名称" prop="hospitalAgencyId">
<el-select v-model="form.hospitalAgencyName" filterable placeholder="请选择医院" style="width: 200px" clearable <el-select v-model="form.hospitalAgencyId" filterable placeholder="请选择医院" style="width: 208px" clearable
@change="changehospitalAgency"> @change="changehospitalAgency">
<el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id"> <el-option v-for="item in hospitalAgencylist" :key="item.id" :label="item.agencyName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-input </el-form-item>
v-model="form.hospitalAgencyName"
placeholder="请输入医院名称"
/> -->
</el-form-item>
<el-form-item label="科室名称" prop="departmentId"> <el-form-item label="科室名称" prop="departmentId">
<el-select v-model="form.departmentName" filterable placeholder="请选择医院" style="width: 200px" clearable <el-select v-model="form.departmentName" filterable placeholder="请选择科室" style="width: 208px" clearable
@change="changeDepartment" @focus="onBlur"> @change="changeDepartment" @focus="onBlur">
<el-option v-for="item in Departmentdata" :key="item.id" :label="item.departmentName" :value="item.id"> <el-option v-for="item in Departmentdata" :key="item.id" :label="item.departmentName" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item>-->
<!-- <el-button <el-form-item label="科室名称" prop="departmentId">
type="" <el-button type="" @click="clickinnerVisible()"
v-if="departmentName == '请选择科室'" :style="form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''" style="
@click="clickinnerVisible()"
style="
width: 206px; width: 206px;
text-align: left; text-align: left;
height: 36px; height: 36px;
color: #c0c4cc;
overflow: hidden; overflow: hidden;
" ">{{ form.departmentName }}</el-button>
>{{ departmentName }}</el-button
>
<el-button
@click="clickinnerVisible()"
type=""
v-else
style="
width: 206px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
"
>{{ departmentName }}</el-button
> -->
</el-form-item> </el-form-item>
<el-form-item label="病种名称" prop="diseaseTypeName"> <el-form-item label="病种名称" prop="diseaseTypeName">
<el-button type="" v-if="diseaseTypeName == '请选择病种'" @click="clickdisease()" style=" <el-button type="" @click="clickdisease()" :style="form.diseaseTypeName == '请选择病种' ? 'color: #c0c4cc;' : ''"
style="
width: 206px; width: 206px;
text-align: left; text-align: left;
height: 36px; height: 36px;
color: #c0c4cc;
overflow: hidden; overflow: hidden;
">{{ diseaseTypeName }}</el-button> ">{{ form.diseaseTypeName }}</el-button>
<el-button @click="clickdisease()" type="" v-else style="
width: 206px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
">{{ diseaseTypeName }}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="语音播报" prop="voicebroadcast"> <el-form-item label="语音播报" prop="voicebroadcast">
<el-input v-model="form.voicebroadcast" type="textarea" style="width: 206px" placeholder="请输入语音播报" /> <el-input v-model="form.voicebroadcast" type="textarea" style="width: 206px" placeholder="请输入语音播报" />
</el-form-item> </el-form-item>
@ -258,8 +177,8 @@
<div class="propagandaselect" @click="material" v-if="!form.imgPath"> <div class="propagandaselect" @click="material" v-if="!form.imgPath">
<div class="add">+</div> <div class="add">+</div>
</div> </div>
<img @click="material" class="propagandaselect" :src="baseUrl + form.imgPath" alt="" v-else-if="form.imgPath && querymaterial.materialsType == 'IMAGE_TEXT' <img @click="material" class="propagandaselect" :src="baseUrl + form.imgPath" alt=""
" /> v-else-if="form.imgPath && querymaterial.materialsType == 'IMAGE_TEXT'" />
<video @click="material" style="height: 200px; width: 300px" <video @click="material" style="height: 200px; width: 300px"
v-else-if="form.imgPath && querymaterial.materialsType == 'VIDEO'" ref="myVideo" v-else-if="form.imgPath && querymaterial.materialsType == 'VIDEO'" ref="myVideo"
:src="baseUrl + form.imgPath" controls></video> :src="baseUrl + form.imgPath" controls></video>
@ -280,13 +199,11 @@
<el-form-item label="科室名称" prop="departmentName" label-width="120"> <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-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</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-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </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"> <el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -309,13 +226,11 @@
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120"> <el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
<el-input v-model="querydisease.diseaseTypeName" placeholder="请输入病种名称" clearable /> <el-input v-model="querydisease.diseaseTypeName" placeholder="请输入病种名称" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="infodisease">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="infodisease">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetdisease">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetdisease">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="listdisease" @cell-dblclick="nurseclickdisease" v-loading="loading"> <el-table :data="listdisease" @cell-dblclick="nurseclickdisease" v-loading="loading">
<el-table-column label="请选择" width="100" align="center"> <el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -370,7 +285,6 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuerysc">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuerysc">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-tabs v-model="querymaterial.materialsType" type="card" @tab-click="handleClick"> <el-tabs v-model="querymaterial.materialsType" type="card" @tab-click="handleClick">
<el-tab-pane label="图片" name="IMAGE_TEXT"></el-tab-pane> <el-tab-pane label="图片" name="IMAGE_TEXT"></el-tab-pane>
<el-tab-pane label="视频" name="VIDEO"></el-tab-pane> <el-tab-pane label="视频" name="VIDEO"></el-tab-pane>
@ -392,15 +306,9 @@
</div> </div>
<!-- <div class="dataliat">素材来源</div> --> <!-- <div class="dataliat">素材来源</div> -->
<!-- <div class="dataliat">标签暂无</div> --> <!-- <div class="dataliat">标签暂无</div> -->
<div class="dataliat bq" v-if="item.indications || <div class="dataliat bq"
item.drugName || v-if="item.indications || item.drugName || item.applicableDiseases || item.surgicalName || item.inspectionItems || item.checkItems">
item.applicableDiseases ||
item.surgicalName ||
item.inspectionItems ||
item.checkItems
">
标签 标签
<span v-if="item.indications">{{ item.indications }}</span> <span v-if="item.indications">{{ item.indications }}</span>
<span v-if="item.drugName">{{ item.drugName }}</span> <span v-if="item.drugName">{{ item.drugName }}</span>
<span v-if="item.applicableDiseases">{{ item.applicableDiseases }}</span> <span v-if="item.applicableDiseases">{{ item.applicableDiseases }}</span>
@ -410,11 +318,9 @@
</div> </div>
<div class="dataliat bq" v-else>标签暂无</div> <div class="dataliat bq" v-else>标签暂无</div>
</div> </div>
<div class="label" @click.stop="labelchange(item)">加到文章</div> <div class="label" @click.stop="labelchange(item)">加到文章</div>
</div> </div>
</div> </div>
<!-- <pagination v-show="totalmaterial > 0" :total="totalmaterial" :page.sync="querymaterial.pageNum" <!-- <pagination v-show="totalmaterial > 0" :total="totalmaterial" :page.sync="querymaterial.pageNum"
:limit.sync="querymaterial.pageSize" @pagination="getmaterial" /> --> :limit.sync="querymaterial.pageSize" @pagination="getmaterial" /> -->
<myPagination v-show="totalmaterial > 0" :total="totalmaterial" :pageSize="querymaterial.pageSize" <myPagination v-show="totalmaterial > 0" :total="totalmaterial" :pageSize="querymaterial.pageSize"
@ -457,13 +363,13 @@
import { listPropaganda, getPropaganda, delPropaganda, addPropaganda, updatePropaganda, selectNumByDept, copy, updateStatus } from "@/api/manage/propaganda"; import { listPropaganda, getPropaganda, delPropaganda, addPropaganda, updatePropaganda, selectNumByDept, copy, updateStatus } from "@/api/manage/propaganda";
import { listMaterials } from "@/api/manage/materials"; import { listMaterials } from "@/api/manage/materials";
import { selectAgencyList, getDepartmentList } from "@/api/manage/selectAgencyList"; import { selectAgencyList, getDepartmentList } from "@/api/manage/selectAgencyList";
import stationAcatar from "../../system/stationAvatar/index.vue"; import stationAcatar from "../../system/stationAvatar/index.vue";
import Editorxj from "../../system/Editorxj/index.vue"; import Editorxj from "../../system/Editorxj/index.vue";
import { department, listDisease } from "@/api/manage/script"; import { department, listDisease } from "@/api/manage/script";
import DepartmentList from '../../components/DepartmentList.vue'
export default { export default {
name: "Propaganda", name: "Propaganda",
components: { stationAcatar, Editorxj }, components: { stationAcatar, Editorxj, DepartmentList },
data() { data() {
// //
var isimgPath = (rule, value, callback) => { var isimgPath = (rule, value, callback) => {
@ -476,26 +382,12 @@ export default {
}; };
return { return {
maxLength: 20000, maxLength: 20000,
itemname: null,
departmentName: null, departmentName: null,
diseaseTypeName: null, diseaseTypeName: null,
name: '', name: '',
departmentId: null, departmentId: null,
count: '',// count: '',//
DepartmentoList: [],// DepartmentoList: [],//
//
querydepartmen: {
departmentName: "",
materialsType: null,
materialsName: null,
materialsStatus: null,
createTime: null,
// pageNum: 1,
// pageSize: 10,
},
innerVisibleshow: false, // innerVisibleshow: false, //
// //
informationqueryParams: { informationqueryParams: {
@ -505,7 +397,6 @@ export default {
}, },
infolist: [], infolist: [],
totaldepartment: 0, totaldepartment: 0,
diseaseshowst: false,// diseaseshowst: false,//
querydisease: { querydisease: {
pageNum: 1, pageNum: 1,
@ -515,18 +406,14 @@ export default {
}, },
listdisease: [], listdisease: [],
diseasetotal: 0, diseasetotal: 0,
dialogexamine: false,// dialogexamine: false,//
dialogview: false,// dialogview: false,//
formview: { formview: {
articleSummary: null, articleSummary: null,
propagandaTitle: null, propagandaTitle: null,
},// },//
copyid: null,//id copyid: null,//id
examineid: null,//id examineid: null,//id
optionstype: [{ optionstype: [{
value: 'MEDICATION_KNOWLEDGE', value: 'MEDICATION_KNOWLEDGE',
label: '用药知识' label: '用药知识'
@ -582,9 +469,7 @@ export default {
Departmentdata: [], Departmentdata: [],
value: '', value: '',
// //
// loading: true,
loading: false, loading: false,
// //
ids: [], ids: [],
// //
@ -630,10 +515,8 @@ export default {
rules: { rules: {
propagandaTitle: [ propagandaTitle: [
{ required: true, message: "宣教标题不能为空", trigger: "blur" } { required: true, message: "宣教标题不能为空", trigger: "blur" }
], ],
hospitalAgencyName: [ hospitalAgencyId: [
{ required: true, message: "医院名称不能为空", trigger: "blur" } { required: true, message: "医院名称不能为空", trigger: "blur" }
], ],
departmentId: [ departmentId: [
@ -678,19 +561,25 @@ export default {
}, },
}, },
created() { created() {
this.Departmentlist();
this.getList(); this.getList();
this.selectAgencyinfo(); // this.selectAgencyinfo();
}, },
watch: { watch: {
name(val) {
this.querydepartmen.departmentName = val
this.Departmentlist();
}
}, },
methods: { methods: {
//
clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) {
this.getList();
}
this.$forceUpdate()
},
checkContentLength() { checkContentLength() {
// console.log(this.form.propagandaContent.length, 'this.form.propagandaContent.length')
if (this.form.propagandaContent.length - 7 > this.maxLength) { if (this.form.propagandaContent.length - 7 > this.maxLength) {
this.$message({ this.$message({
type: "error", type: "error",
@ -709,12 +598,11 @@ export default {
}, },
// //
changehospitalAgency(e) { changehospitalAgency(e) {
console.log(e, '00000')
this.form.hospitalAgencyName = this.hospitalAgencylist.find(f => f.id == e).agencyName this.form.hospitalAgencyName = this.hospitalAgencylist.find(f => f.id == e).agencyName
this.form.hospitalAgencyId = e this.form.hospitalAgencyId = e
this.form.departmentName = '' this.form.departmentName = ''
this.form.departmentId = '' this.form.departmentId = ''
this.diseaseTypeName = '请选择病种' this.form.diseaseTypeName = '请选择病种'
this.form.diseaseTypeId = ''; this.form.diseaseTypeId = '';
let query = { let query = {
nodeType: 'DEPARTMENT', nodeType: 'DEPARTMENT',
@ -728,26 +616,19 @@ export default {
changeDepartment(e) { changeDepartment(e) {
this.form.departmentId = e this.form.departmentId = e
this.form.departmentName = this.Departmentdata.find(f => f.id == e).departmentName this.form.departmentName = this.Departmentdata.find(f => f.id == e).departmentName
this.diseaseTypeName = '请选择病种' this.form.diseaseTypeName = '请选择病种'
this.form.diseaseTypeId = ''; this.form.diseaseTypeId = '';
console.log(this.form)
}, },
onBlur() { onBlur() {
console.log(this.form, '------------------') if (!this.form.hospitalAgencyId) {
if (!this.form.hospitalAgencyName) {
this.$modal.msgError("请先选择医院"); this.$modal.msgError("请先选择医院");
} }
}, },
// //
material() { material() {
this.dialogmaterial = true this.dialogmaterial = true
this.querymaterial.materialsType = 'IMAGE_TEXT', this.querymaterial.materialsType = 'IMAGE_TEXT'
this.getmaterial() this.getmaterial()
}, },
// //
materialClose() { materialClose() {
@ -772,16 +653,12 @@ export default {
this.form.materialsInfoList = [] this.form.materialsInfoList = []
this.form.imgPath = item.materialsFilePath this.form.imgPath = item.materialsFilePath
this.form.materialsInfoList.push(item) this.form.materialsInfoList.push(item)
this.dialogmaterial = false this.dialogmaterial = false
console.log(item)
}, },
// //
viewshow(item) { viewshow(item) {
this.openview = true this.openview = true
this.viewform = item this.viewform = item
}, },
/** 查询素材信息列表 */ /** 查询素材信息列表 */
getmaterial() { getmaterial() {
@ -796,8 +673,6 @@ export default {
// //
changecreateTimeStart(e) { changecreateTimeStart(e) {
this.queryParams.createTimeStart = e this.queryParams.createTimeStart = e
console.log(e)
}, },
// //
changecreateTimeEnd(e) { changecreateTimeEnd(e) {
@ -806,21 +681,17 @@ export default {
// //
copyUrl(row) { copyUrl(row) {
this.copyid = row.id this.copyid = row.id
console.log(this.copyid, '00000')
this.$confirm('确定复制该文章内容?', '提示', { this.$confirm('确定复制该文章内容?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
console.log(this.copyid)
copy(this.copyid).then(response => { copy(this.copyid).then(response => {
this.$message({ this.$message({
type: "success", type: "success",
message: "复制成功" message: "复制成功"
}); });
this.getList() this.getList()
this.Departmentlist()
}); });
}).catch(() => { }).catch(() => {
this.$message({ this.$message({
@ -831,17 +702,13 @@ export default {
}, },
// //
copylink() { copylink() {
}, },
// //
Preview(row) { Preview(row) {
console.log(row)
const id = row.id || this.ids const id = row.id || this.ids
getPropaganda(id).then(response => { getPropaganda(id).then(response => {
this.formview = response.data; this.formview = response.data;
this.dialogview = true this.dialogview = true
}); });
}, },
// //
@ -854,12 +721,10 @@ export default {
this.dialogexamine = true this.dialogexamine = true
}, },
// //
cancelamine() { cancelamine() {
var formexmine = { var formexmine = {
id: this.examineid, id: this.examineid,
propagandaStatus: 'APPROVED' propagandaStatus: 'APPROVED'
} }
updateStatus(formexmine).then(response => { updateStatus(formexmine).then(response => {
this.$message({ this.$message({
@ -869,20 +734,16 @@ export default {
this.getList() this.getList()
}); });
this.dialogexamine = false this.dialogexamine = false
}, },
// //
handleClose() { handleClose() {
this.dialogexamine = false this.dialogexamine = false
}, },
// //
submitamine() { submitamine() {
var formexmine = { var formexmine = {
id: this.examineid, id: this.examineid,
propagandaStatus: 'REVIEW_FAILED' propagandaStatus: 'REVIEW_FAILED'
} }
updateStatus(formexmine).then(response => { updateStatus(formexmine).then(response => {
this.$message({ this.$message({
@ -891,42 +752,8 @@ export default {
}); });
this.getList() this.getList()
}); });
this.dialogexamine = false this.dialogexamine = false
}, },
//
Departmentlist() {
this.loading = true;
selectNumByDept(this.querydepartmen).then(response => {
this.DepartmentoList = response.data;
let sum = 0;
this.DepartmentoList.forEach((item) => {
if (item.countNum != null) {
console.log(item.countNum)
sum += item.countNum;
}
this.count = sum;
});
this.loading = false;
});
},
//
itemdata(item) {
if (item) {
this.itemname = item.id
// this.departmentName = item.departmentName
this.loading = true;
this.queryParams.departmentId = item.id
this.getList()
} else {
this.queryParams.departmentId = ''
this.itemname = null
this.getList()
}
},
/** 查询患者宣教信息列表 */ /** 查询患者宣教信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
@ -939,12 +766,6 @@ export default {
// //
clickinnerVisible() { clickinnerVisible() {
this.innerVisibleshow = true; this.innerVisibleshow = true;
if (this.itemname) {
this.informationqueryParams.departmentId = this.itemname
} else {
this.informationqueryParams.departmentId = null
}
this.informationInfoinfo(); this.informationInfoinfo();
}, },
// //
@ -970,12 +791,12 @@ export default {
// //
nurseclick(row) { nurseclick(row) {
this.form.departmentId = row.departmentCode; this.form.departmentId = row.departmentCode;
this.form.departmentName = row.departmentName;
this.departmentName = row.departmentName; this.departmentName = row.departmentName;
this.form.diseaseTypeId = ''; this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种'; this.form.diseaseTypeName = '请选择病种';
this.innerVisibleshow = false; this.innerVisibleshow = false;
}, },
// //
infodisease() { infodisease() {
listDisease(this.querydisease).then((response) => { listDisease(this.querydisease).then((response) => {
@ -997,18 +818,17 @@ export default {
// //
nurseclickdisease(row) { nurseclickdisease(row) {
this.form.diseaseTypeId = row.id; this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName; this.form.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false; this.diseaseshowst = false;
}, },
// //
resetdisease() { resetdisease() {
querydisease = { this.querydisease = {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
}; };
this.infodisease() this.infodisease()
}, },
canceldiseases() { canceldiseases() {
this.diseaseshowst = false; this.diseaseshowst = false;
}, },
@ -1052,12 +872,6 @@ export default {
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.getList(); this.getList();
this.querydepartmen.createTimeStart = this.queryParams.createTimeStart
this.querydepartmen.createTimeEnd = this.queryParams.createTimeEnd
this.querydepartmen.propagandaType = this.queryParams.propagandaType
this.querydepartmen.hospitalAgencyId = this.queryParams.hospitalAgencyId
this.querydepartmen.propagandaStatus = this.queryParams.propagandaStatus
this.Departmentlist();
}, },
handleQuerysc() { handleQuerysc() {
this.querymaterial.pageNum = 1; this.querymaterial.pageNum = 1;
@ -1066,15 +880,14 @@ export default {
resetQuerysc() { resetQuerysc() {
this.querymaterial.materialsName = null this.querymaterial.materialsName = null
this.handleQuerysc() this.handleQuerysc()
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
// this.queryParams.departmentId = null; this.queryParams.createTimeEnd = null
this.queryParams.createTimeEnd = null, this.queryParams.createTimeStart = null
this.queryParams.createTimeStart = null, this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.itemname = null; this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
@ -1087,34 +900,32 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.selectAgencyinfo(); // this.selectAgencyinfo();
this.form.propagandaStatus = 'CREATE_COMPLETE' this.form.propagandaStatus = 'CREATE_COMPLETE'
this.diseaseTypeName = "请选择病种" this.form.diseaseTypeName = "请选择病种"
if (this.queryParams.departmentId) {
this.form.departmentName = this.departmentName
this.form.departmentId = this.queryParams.departmentId
} else {
this.form.departmentName = '请选择科室'
}
this.Departmentdata = [] this.Departmentdata = []
this.open = true;
this.title = "新增宣教"; this.title = "新增宣教";
console.log(this.form, '90909090') this.open = true;
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.reset();
const id = row.id || this.ids const id = row.id || this.ids
getPropaganda(id).then(response => { getPropaganda(id).then(response => {
this.form = response.data; this.form = response.data;
this.form.suitTaskTypeIds = response.data.suitTaskTypeIds this.form.suitTaskTypeIds = response.data.suitTaskTypeIds
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
// this.form.agencyName = response.data.hospitalAgencyName
this.form.imgPath = response.data.materialsInfoList[0]?.materialsFilePath this.form.imgPath = response.data.materialsInfoList[0]?.materialsFilePath
this.querymaterial.materialsType = response.data.materialsInfoList[0]?.materialsType this.querymaterial.materialsType = response.data.materialsInfoList[0]?.materialsType
this.open = true; this.open = true;
this.departmentName = response.data.departmentName
this.title = "修改患者宣教信息"; this.title = "修改患者宣教信息";
}); });
// }
}, },
// //
imgUrl(imgUrl) { imgUrl(imgUrl) {
@ -1122,46 +933,35 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
// return this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
console.log(this.form) this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
if (this.form.propagandaContent && this.form.propagandaContent.length - 7 > this.maxLength) { if (this.form.propagandaContent && this.form.propagandaContent.length - 7 > this.maxLength) {
// if (this.form.propagandaContent.length - 7 > this.maxLength) { // if (this.form.propagandaContent.length - 7 > this.maxLength) {
this.$message({ this.$message({
type: "error", type: "error",
message: "已达到最大输入长度" message: "已达到最大输入长度"
}); });
// } // }
} else { } else {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (!this.form.diseaseTypeId) {
this.form.diseaseTypeName = ''
}
if (this.form.id != null) { if (this.form.id != null) {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
updatePropaganda(this.form).then(response => { updatePropaganda(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.$refs.DepartmentList.Departmentlist()
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} else { } else {
if (this.diseaseTypeName == '请选择病种') {
this.form.diseaseTypeName = null
} else if (this.diseaseTypeName) {
this.form.diseaseTypeName = this.diseaseTypeName
}
addPropaganda(this.form).then(response => { addPropaganda(this.form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.$refs.DepartmentList.Departmentlist()
this.open = false; this.open = false;
this.getList(); this.getList();
this.Departmentlist()
}); });
} }
} }
}); });
@ -1194,8 +994,8 @@ export default {
return delPropaganda(ids); return delPropaganda(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.Departmentlist()
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
this.$refs.DepartmentList.Departmentlist()
}).catch(() => { }); }).catch(() => { });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */

View File

@ -41,6 +41,7 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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="['manage:script:add']">新增</el-button> v-hasPermi="['manage:script:add']">新增</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -446,12 +447,14 @@ export default {
// //
clickdepartment(item) { clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.getList();
} }
this.$forceUpdate()
}, },
// //
informationInfoinfo() { informationInfoinfo() {
@ -629,6 +632,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.obj.length > 10) { if (this.obj.length > 10) {

View File

@ -2,24 +2,8 @@
<div class="app-container" ref="layout"> <div class="app-container" ref="layout">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="5"> <el-col :span="5">
<div class="leftserv" ref="box"> <DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'listServicePackageNum'">
<div class="name">科室名称</div> </DepartmentList>
<div>
<el-input v-model="name" placeholder="请输入科室名称" clearable @keyup.enter.native="handleQuery" />
</div>
<div class="listitem">
<div :class="itemname == null ? 'allactive' : 'all'" @click="itemdata()">
全部
</div>
<span class="count">{{ count }}</span>
</div>
<div class="listitem" v-for="(item, index) in DepartmentoList" :key="index" @click="itemdata(item)">
<div :class="itemname == item.id ? 'allactive' : 'all'">
{{ item.departmentName }}
</div>
<span class="count">{{ item.countNum }}</span>
</div>
</div>
</el-col> </el-col>
<el-col :span="19" :xs="24"> <el-col :span="19" :xs="24">
<div ref="topform" class="form"> <div ref="topform" class="form">
@ -42,12 +26,6 @@
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-input
v-model="queryParams.whetherRelease"
placeholder="请输入是否发布01是"
clearable
@keyup.enter.native="handleQuery"
/> -->
</el-form-item> </el-form-item>
<el-form-item label="服务包价格" prop="packagePrice"> <el-form-item label="服务包价格" prop="packagePrice">
<el-input oninput="value=value.replace(/[^\d.]/g,'')" v-model="queryParams.packagePrice" <el-input oninput="value=value.replace(/[^\d.]/g,'')" v-model="queryParams.packagePrice"
@ -63,43 +41,9 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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="['manage:servicepackage:add']">新增服务包</el-button> v-hasPermi="['manage:servicepackage:add']">新增服务包</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['manage:servicepackage: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="['manage:servicepackage: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="['manage:servicepackage: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> </el-row>
</div> </div>
@ -139,41 +83,25 @@
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination> :indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
</el-col> </el-col>
</el-row> </el-row>
<!-- 添加或修改服务包基础信息对话框 --> <!-- 添加或修改服务包基础信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true"> <el-form ref="form" :model="form" :rules="rules" label-width="100px" :inline="true">
<el-form-item label="科室名称" prop="departmentId"> <el-form-item label="科室名称" prop="departmentId">
<el-button type="" v-if="departmentName == '请选择科室'" @click="clickinnerVisible()" style=" <el-button @click="clickinnerVisible()" style="
width: 204px; width: 379px;
text-align: left; text-align: left;
height: 36px; height: 36px;
color: #c0c4cc;
overflow: hidden; overflow: hidden;
">{{ departmentName }}</el-button> " :style="form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''">{{ form.departmentName }}</el-button>
<el-button @click="clickinnerVisible()" type="" v-else style="
width: 204px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
">{{ departmentName }}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="病种名称" prop="diseaseTypeName"> <el-form-item label="病种名称" prop="diseaseTypeName">
<el-button type="" v-if="diseaseTypeName == '请选择病种'" @click="clickdisease()" style=" <el-button type="" @click="clickdisease()" :style="form.diseaseTypeName == '请选择病种' ? 'color: #c0c4cc;' : ''"
width: 204px; style="
width: 206px;
text-align: left; text-align: left;
height: 36px; height: 36px;
color: #c0c4cc;
overflow: hidden; overflow: hidden;
">{{ diseaseTypeName }}</el-button> ">{{ form.diseaseTypeName }}</el-button>
<el-button @click="clickdisease()" type="" v-else style="
width: 204px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
">{{ diseaseTypeName }}</el-button>
</el-form-item> </el-form-item>
<el-form-item label="服务包名称" prop="packageName"> <el-form-item label="服务包名称" prop="packageName">
<el-input v-model="form.packageName" placeholder="请输入服务包名称" /> <el-input v-model="form.packageName" placeholder="请输入服务包名称" />
@ -237,7 +165,6 @@
v-if="index != 0" @click="delnurseClassifyitem(index)"></el-button> v-if="index != 0" @click="delnurseClassifyitem(index)"></el-button>
</div> </div>
<br /> <br />
<el-form-item label="服务包备注" prop="packageRemark"> <el-form-item label="服务包备注" prop="packageRemark">
<el-input style="width: 835px" type="textarea" v-model="form.packageRemark" placeholder="请输入服务包备注" /> <el-input style="width: 835px" type="textarea" v-model="form.packageRemark" placeholder="请输入服务包备注" />
</el-form-item> </el-form-item>
@ -255,13 +182,11 @@
<el-form-item label="科室名称" prop="departmentName" label-width="120"> <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-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="informationInfoinfo">搜索</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-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </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"> <el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -284,13 +209,11 @@
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120"> <el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
<el-input v-model="querydisease.diseaseTypeName" placeholder="请输入病种名称" clearable /> <el-input v-model="querydisease.diseaseTypeName" placeholder="请输入病种名称" clearable />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="infodisease">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="infodisease">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetdisease">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetdisease">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table :data="listdisease" @cell-dblclick="nurseclickdisease" v-loading="loading"> <el-table :data="listdisease" @cell-dblclick="nurseclickdisease" v-loading="loading">
<el-table-column label="请选择" width="100" align="center"> <el-table-column label="请选择" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@ -312,9 +235,8 @@
<el-dialog title="详情" :visible.sync="detailshow" width="50%" :before-close="handleClose"> <el-dialog title="详情" :visible.sync="detailshow" width="50%" :before-close="handleClose">
<el-form ref="form" :model="formdetail" label-width="150px" :inline="true"> <el-form ref="form" :model="formdetail" label-width="150px" :inline="true">
<el-form-item label="病种名称:" prop="packageVersion"> <el-form-item label="病种名称:" prop="packageVersion">
<span style="display: inline-block; width: 80px">{{ <span style="display: inline-block; width: 80px">
formdetail.diseaseTypeName {{ formdetail.diseaseTypeName }}</span>
}}</span>
</el-form-item> </el-form-item>
<el-form-item label="服务包名称:" prop="packageVersion"> <el-form-item label="服务包名称:" prop="packageVersion">
<div class="container"> <div class="container">
@ -322,43 +244,26 @@
<span>{{ formdetail.packageName }}</span> <span>{{ formdetail.packageName }}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<!-- <span class="container" v-tooltip="formdetail.packageName">{{ formdetail.packageName }}</span> -->
<!-- <span class="container">
<el-tooltip>
<template slot="title">
{{ formdetail.packageName ? formdetail.packageName : '-' }}
</template>
{{ formdetail.packageName ? formdetail.packageName : '-' }}
</el-tooltip>
</span> -->
</el-form-item> </el-form-item>
<!-- <el-form-item label="服务包名称:" prop="packageVersion">
<span
>{{ formdetail.packageName }}</span
>
</el-form-item> -->
<el-form-item label="价格:" prop="packageVersion"> <el-form-item label="价格:" prop="packageVersion">
<span>{{ formdetail.packagePrice }}</span> <span>{{ formdetail.packagePrice }}</span>
</el-form-item> </el-form-item>
<br /> <br />
<el-form-item label="服务期限:" prop="packageVersion"> <el-form-item label="服务期限:" prop="packageVersion">
<span style="display: inline-block; width: 80px">{{ <span style="display: inline-block; width: 80px">
formdetail.packageTermAndUnit {{ formdetail.packageTermAndUnit }}
}}</span> </span>
</el-form-item> </el-form-item>
<el-form-item label="硬件类型:" prop="packageVersion"> <el-form-item label="硬件类型:" prop="packageVersion">
<span>{{ <span>
formdetail.hardwareType == "BLOOD_PRESSURE" ? "血压仪" : "" {{ formdetail.hardwareType == "BLOOD_PRESSURE" ? "血压仪" : "" }}
}}</span> </span>
<span>{{ <span>
formdetail.hardwareType == "GLUCOSE_METER" ? "血糖仪" : "" {{ formdetail.hardwareType == "GLUCOSE_METER" ? "血糖仪" : "" }}
}}</span> </span>
<span>{{ <span>
formdetail.hardwareType == "ELECTROCARDIOGRA" ? "心电仪" : "" {{ formdetail.hardwareType == "ELECTROCARDIOGRA" ? "心电仪" : "" }}
}}</span> </span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-table v-loading="loading" :data="datailList"> <el-table v-loading="loading" :data="datailList">
@ -381,16 +286,17 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { listServicepackage, getServicepackage, delServicepackage, addServicepackage, updateServicepackage, serviceWayList, serviccontent, editReleaseStatus, listServicePackageNum } from "@/api/manage/servicepackage"; import { listServicepackage, getServicepackage, delServicepackage, addServicepackage, updateServicepackage, serviceWayList, serviccontent, editReleaseStatus, listServicePackageNum } from "@/api/manage/servicepackage";
import { department, listDisease } from "@/api/manage/script"; import { department, listDisease } from "@/api/manage/script";
import DepartmentList from '../../components/DepartmentList.vue'
export default { export default {
components: {
DepartmentList,
},
name: "Servicepackage", name: "Servicepackage",
data() { data() {
return { return {
itemname: null,
departmentName: null, departmentName: null,
diseaseTypeName: null, diseaseTypeName: null,
name: '', name: '',
@ -402,7 +308,6 @@ export default {
departmentName: "", departmentName: "",
// pageNum: 1, // pageNum: 1,
// pageSize: 10, // pageSize: 10,
}, },
maxTableHeight: undefined, maxTableHeight: undefined,
innerVisibleshow: false, // innerVisibleshow: false, //
@ -579,16 +484,26 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
this.Departmentlist();
}, },
mounted() { mounted() {
this.getMaxTableHeight() this.getMaxTableHeight()
this.screenChange() this.screenChange()
}, },
methods: { methods: {
//
clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) {
this.getList();
}
this.$forceUpdate()
},
changepackageTermUnit(e) { changepackageTermUnit(e) {
this.$set(this.form, 'packageTermUnit', e); this.$set(this.form, 'packageTermUnit', e);
// this.form.packageTermUnit=e
}, },
// //
detail(row) { detail(row) {
@ -599,10 +514,8 @@ export default {
this.datailList.forEach(el => { this.datailList.forEach(el => {
if (el.serviceFrequencyEnd) { if (el.serviceFrequencyEnd) {
el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd
} else { } else {
el.serviceFrequencyText = el.serviceFrequencyText el.serviceFrequencyText = el.serviceFrequencyText
} }
}) })
}); });
@ -627,17 +540,14 @@ export default {
this.getList() this.getList()
}); });
this.dialogexamine = false this.dialogexamine = false
}, },
// //
amineClose() { amineClose() {
this.dialogexamine = false this.dialogexamine = false
}, },
// //
submitamine() { submitamine() {
var propagandaStatus = 0 var propagandaStatus = 0
editReleaseStatus(this.examineid, propagandaStatus).then(response => { editReleaseStatus(this.examineid, propagandaStatus).then(response => {
this.$message({ this.$message({
type: "success", type: "success",
@ -645,14 +555,11 @@ export default {
}); });
this.getList() this.getList()
}); });
this.dialogexamine = false this.dialogexamine = false
}, },
//item //item
delnurseClassifyitem(index) { delnurseClassifyitem(index) {
this.form.voList.splice(index, 1); this.form.voList.splice(index, 1);
// console.log(this.form.voList,'[[[[]]]]')
// console.log(this.optionscontent)
var optionscontentPlus = [] var optionscontentPlus = []
this.optionscontent[index] = [] this.optionscontent[index] = []
for (var i = 0; i < 5; i++) { for (var i = 0; i < 5; i++) {
@ -660,8 +567,6 @@ export default {
optionscontentPlus.push(this.optionscontent[i]) optionscontentPlus.push(this.optionscontent[i])
} }
} }
// console.log(optionscontentPlus,'optionscontentPlus')
// console.log(this.optionscontent,'optionscontent')
this.optionscontent = { this.optionscontent = {
'0': [], '0': [],
'1': [], '1': [],
@ -703,7 +608,6 @@ export default {
this.$message.error("最多批量添加5条"); this.$message.error("最多批量添加5条");
} else { } else {
this.form.voList.push(obj); this.form.voList.push(obj);
// console.log(this.form)
} }
}, },
/** 查询服务包基础信息列表 */ /** 查询服务包基础信息列表 */
@ -729,9 +633,7 @@ export default {
}); });
this.form.voList[index].serviceContent = null this.form.voList[index].serviceContent = null
this.form.voList[index].serviceFrequencyText = null this.form.voList[index].serviceFrequencyText = null
}, },
// //
changcontent(e, index) { changcontent(e, index) {
var id = null var id = null
@ -747,45 +649,9 @@ export default {
} }
}) })
}, },
//
Departmentlist() {
this.loading = true;
listServicePackageNum(this.querydepartmen).then(response => {
this.DepartmentoList = response.data;
let sum = 0;
this.DepartmentoList.forEach((item) => {
if (item.countNum != null) {
sum += item.countNum;
}
this.count = sum;
});
this.loading = false;
});
},
//
itemdata(item) {
if (item) {
this.itemname = item.id
this.departmentName = item.departmentName
this.loading = true;
this.queryParams.departmentId = item.id
this.getList()
} else {
this.queryParams.departmentId = ''
this.itemname = null
this.getList()
}
},
// //
clickinnerVisible() { clickinnerVisible() {
this.innerVisibleshow = true; this.innerVisibleshow = true;
if (this.itemname) {
this.informationqueryParams.departmentId = this.itemname
} else {
this.informationqueryParams.departmentId = null
}
this.informationInfoinfo(); this.informationInfoinfo();
}, },
// //
@ -795,7 +661,6 @@ export default {
this.totaldepartment = response.total; this.totaldepartment = response.total;
this.loading = false; this.loading = false;
}); });
// this.informationqueryParams.page = 1;
}, },
// //
addresetQuerylist() { addresetQuerylist() {
@ -825,15 +690,13 @@ export default {
}, },
// //
nurseclick(row) { nurseclick(row) {
this.form.departmentId = row.id; this.form.departmentId = row.departmentCode;
this.form.departmentName = row.departmentName;
this.departmentName = row.departmentName; this.departmentName = row.departmentName;
this.form.diseaseTypeId = ''; this.form.diseaseTypeId = '';
this.diseaseTypeName = '请选择病种'; this.form.diseaseTypeName = '请选择病种';
this.innerVisibleshow = false; this.innerVisibleshow = false;
// this.form.diseaseTypeId = null;
// this.diseaseTypeName = '';
}, },
// //
infodisease() { infodisease() {
listDisease(this.querydisease).then((response) => { listDisease(this.querydisease).then((response) => {
@ -844,18 +707,18 @@ export default {
}, },
// //
clickdisease() { clickdisease() {
if (this.departmentName == '请选择科室') { if (!this.form.departmentName) {
this.$modal.msgError("请先选择科室"); this.$modal.msgError("请先选择科室");
} else { } else {
this.diseaseshowst = true;
this.querydisease.departmentId = this.form.departmentId this.querydisease.departmentId = this.form.departmentId
this.infodisease() this.infodisease()
this.diseaseshowst = true;
} }
}, },
// //
nurseclickdisease(row) { nurseclickdisease(row) {
this.form.diseaseTypeId = row.id; this.form.diseaseTypeId = row.id;
this.diseaseTypeName = row.diseaseTypeName; this.form.diseaseTypeName = row.diseaseTypeName;
this.diseaseshowst = false; this.diseaseshowst = false;
}, },
// //
@ -866,7 +729,6 @@ export default {
}; };
this.infodisease() this.infodisease()
}, },
canceldiseases() { canceldiseases() {
this.diseaseshowst = false; this.diseaseshowst = false;
}, },
@ -900,7 +762,6 @@ export default {
}; };
this.optionsway = [], this.optionsway = [],
// //
// this.optionscontent = [], // this.optionscontent = [],
this.optionscontent = { this.optionscontent = {
'0': [], '0': [],
@ -932,6 +793,9 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.queryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
this.$refs.DepartmentList.resetQuery()
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
}, },
@ -944,35 +808,28 @@ export default {
// //
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.getserviceWayList() this.getserviceWayList()
this.form = { this.form.voList = [
voList: [ {
{ serviceWayName: null,
serviceWayName: null, serviceContent: null,
serviceContent: null, serviceFrequencyText: null,
serviceFrequencyText: null, serviceFrequencyStart: null,
serviceFrequencyStart: null, serviceFrequencyEnd: null,
serviceFrequencyEnd: null, idd: this.idd,
idd: this.idd, },
}, ]
], if (this.queryParams.departmentId) {
}; this.form.departmentName = this.departmentName
this.form.departmentId = this.queryParams.departmentId
} else {
this.form.departmentName = '请选择科室'
}
this.form.diseaseTypeName = "请选择病种"
this.form.whetherRelease = 0 this.form.whetherRelease = 0
this.form.packageTermUnit = '年' this.form.packageTermUnit = '年'
if (this.itemname) {
this.form.departmentName = this.departmentName
this.form.departmentId = this.itemname
} else if (this.itemname == null) {
this.departmentName = "请选择科室"
}
else {
this.departmentName = "请选择科室"
}
this.diseaseTypeName = "请选择病种"
this.open = true;
this.title = "添加服务包基础信息"; this.title = "添加服务包基础信息";
this.open = true;
}, },
// //
handleUpdate(row) { handleUpdate(row) {
@ -987,11 +844,6 @@ export default {
el.serviceFrequencyText = el.serviceFrequencyText el.serviceFrequencyText = el.serviceFrequencyText
} }
}) })
if (!response.data.diseaseTypeName || response.data.diseaseTypeName == "") {
this.diseaseTypeName = "请选择病种"
} else {
this.diseaseTypeName = response.data.diseaseTypeName
}
this.departmentName = response.data.departmentName this.departmentName = response.data.departmentName
this.open = true; this.open = true;
this.title = "修改服务包基础信息"; this.title = "修改服务包基础信息";
@ -1005,23 +857,19 @@ export default {
this.form.voList.forEach(el => { this.form.voList.forEach(el => {
if (!el.serviceFrequencyText) { if (!el.serviceFrequencyText) {
el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd el.serviceFrequencyText = el.serviceFrequencyStart + '~' + el.serviceFrequencyEnd
} else { } else {
el.serviceFrequencyText = el.serviceFrequencyText el.serviceFrequencyText = el.serviceFrequencyText
} }
}) })
this.diseaseTypeName = response.data.diseaseTypeName
this.departmentName = response.data.departmentName this.departmentName = response.data.departmentName
this.open = true; this.open = true;
this.title = "复制服务包基础信息"; this.title = "复制服务包基础信息";
this.Departmentlist();
}); });
}, },
// //
submitFormadd() { submitFormadd() {
this.form.whetherRelease = 0 this.form.whetherRelease = 0
var obj = JSON.parse(JSON.stringify(this.form)) var obj = JSON.parse(JSON.stringify(this.form))
obj.voList.forEach(e => { obj.voList.forEach(e => {
if (e.serviceFrequencyText.includes('~')) { if (e.serviceFrequencyText.includes('~')) {
const str = e.serviceFrequencyText; const str = e.serviceFrequencyText;
@ -1033,19 +881,8 @@ export default {
e.serviceFrequencyText = e.serviceFrequencyText e.serviceFrequencyText = e.serviceFrequencyText
} }
}) })
if (this.diseaseTypeName == "请选择病种") { if (this.form.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName == null this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
if (this.itemname) {
this.form.departmentName = this.departmentName
this.form.departmentId = this.itemname
} else {
this.form.departmentName = this.departmentName
} }
addServicepackage(obj).then(response => { addServicepackage(obj).then(response => {
this.$modal.msgSuccess("复制成功"); this.$modal.msgSuccess("复制成功");
@ -1053,20 +890,12 @@ export default {
this.getList(); this.getList();
this.getlistcount() this.getlistcount()
}); });
}, },
// //
submitForm() { submitForm() {
// return
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
this.form.departmentName = this.departmentName
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
if (this.form.voList) { if (this.form.voList) {
var obj = JSON.parse(JSON.stringify(this.form)) var obj = JSON.parse(JSON.stringify(this.form))
obj.voList.forEach(e => { obj.voList.forEach(e => {
@ -1087,19 +916,6 @@ export default {
}); });
} }
} else { } else {
if (this.diseaseTypeName == "请选择病种") {
this.form.diseaseTypeName = null
} else {
this.form.diseaseTypeName = this.diseaseTypeName
}
if (this.itemname) {
this.form.departmentName = this.departmentName
this.form.departmentId = this.itemname
} else {
this.form.departmentName = this.departmentName
}
if (this.form.voList) { if (this.form.voList) {
var obj = JSON.parse(JSON.stringify(this.form)) var obj = JSON.parse(JSON.stringify(this.form))
obj.voList.forEach(e => { obj.voList.forEach(e => {
@ -1117,9 +933,7 @@ export default {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.Departmentlist()
}); });
} }
} }
} }
@ -1132,7 +946,6 @@ export default {
return delServicepackage(ids); return delServicepackage(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.Departmentlist();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => { }); }).catch(() => { });
}, },

View File

@ -27,6 +27,7 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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="['manage:template:add']">新增微信模版</el-button> v-hasPermi="['manage:template:add']">新增微信模版</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -331,12 +332,14 @@ export default {
// //
clickdepartment(item) { clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.getList();
} }
this.$forceUpdate()
}, },
/** 查询微信模板信息列表 */ /** 查询微信模板信息列表 */
getList() { getList() {
@ -523,6 +526,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.obj.length > 10) { if (this.obj.length > 10) {

View File

@ -23,6 +23,7 @@
<el-row :gutter="10" class=""> <el-row :gutter="10" class="">
<el-col :span="1.5"> <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-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
@ -307,12 +308,14 @@ export default {
// //
clickdepartment(item) { clickdepartment(item) {
this.queryParams.hospitalAgencyId = item.hospitalAgencyId this.queryParams.hospitalAgencyId = item.hospitalAgencyId
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
this.queryParams.departmentId = item.itemid this.queryParams.departmentId = item.itemid
this.departmentName = item.itemName this.departmentName = item.itemName
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
if (item.hospitalAgencyId) { if (item.hospitalAgencyId) {
this.getList(); this.getList();
} }
this.$forceUpdate()
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
@ -336,6 +339,7 @@ export default {
if (!this.form.sort) { if (!this.form.sort) {
this.form.sort = undefined this.form.sort = undefined
} }
this.departmentName = response.data.departmentName
this.open = true; this.open = true;
this.title = "修改手术信息"; this.title = "修改手术信息";
if (this.title == "修改手术信息") { if (this.title == "修改手术信息") {
@ -346,6 +350,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
if (this.obj.length > 10) { if (this.obj.length > 10) {