微信、短信
This commit is contained in:
parent
62bb99bed6
commit
8a225c5841
241
src/views/manage/components/messageexport.vue
Normal file
241
src/views/manage/components/messageexport.vue
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div ref="table">
|
||||||
|
<el-form
|
||||||
|
ref="queryForm"
|
||||||
|
:model="informationqueryParams"
|
||||||
|
label-width="80px"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
label="短信模板名称"
|
||||||
|
prop="textMessageName"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="informationqueryParams.textMessageName"
|
||||||
|
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 type="index" width="55" align="center" label="序号" />
|
||||||
|
<el-table-column
|
||||||
|
label="短信模板名称"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="短信ID"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageId"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="短信内容"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageContent"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
label="适用任务类型"
|
||||||
|
align="center"
|
||||||
|
prop="suitTaskTypeName"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.suitTaskTypeName != "null"
|
||||||
|
? scope.row.suitTaskTypeName
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="短信通道"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageChannel"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.textMessageChannel == "WATER_DROPLET_PLATFORM"
|
||||||
|
? "水滴平台"
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="短信状态"
|
||||||
|
align="right"
|
||||||
|
prop="textMessageStatus"
|
||||||
|
width="90px"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag
|
||||||
|
v-if="scope.row.textMessageStatus == 'GROUNDING'"
|
||||||
|
type="success"
|
||||||
|
>
|
||||||
|
上架
|
||||||
|
</el-tag>
|
||||||
|
<el-tag
|
||||||
|
v-if="scope.row.textMessageStatus == 'OFF_SHELF'"
|
||||||
|
type="danger"
|
||||||
|
>
|
||||||
|
下架
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
prop="diseaseTypeName"
|
||||||
|
/>
|
||||||
|
</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: 'MESSAGE',
|
||||||
|
textMessageStatus:'GROUNDING',
|
||||||
|
hospitalAgencyId: 46,
|
||||||
|
textMessageName: null,
|
||||||
|
},
|
||||||
|
totaldepartment: 0,
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
datalist(val) {
|
||||||
|
this.$emit('submit', val);
|
||||||
|
},
|
||||||
|
'Nameinfo': {
|
||||||
|
handler(val, oldval) {
|
||||||
|
// console.log(val,'Nameinfo111111111111')
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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>
|
||||||
@ -136,7 +136,7 @@ export default {
|
|||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
type:'SCRIPT',
|
type:'SCRIPT',
|
||||||
scriptStatu:'NORMAL',
|
scriptStatus:'NORMAL',
|
||||||
hospitalAgencyId:46,
|
hospitalAgencyId:46,
|
||||||
commonScriptName: null,
|
commonScriptName: null,
|
||||||
scriptName: null,
|
scriptName: null,
|
||||||
|
|||||||
216
src/views/manage/components/templateexport.vue
Normal file
216
src/views/manage/components/templateexport.vue
Normal file
@ -0,0 +1,216 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<div ref="table">
|
||||||
|
<el-form
|
||||||
|
ref="queryForm"
|
||||||
|
:model="informationqueryParams"
|
||||||
|
label-width="80px"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
label="微信模版名称"
|
||||||
|
prop="wechatTemplateName"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="informationqueryParams.wechatTemplateName"
|
||||||
|
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
|
||||||
|
type="index"
|
||||||
|
width="52"
|
||||||
|
align="center"
|
||||||
|
label="序号"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="微信模版名称"
|
||||||
|
align="center"
|
||||||
|
prop="wechatTemplateName"
|
||||||
|
/>
|
||||||
|
<el-table-column label="模板ID" align="center" prop="templateId" />
|
||||||
|
<el-table-column
|
||||||
|
label="模板来源"
|
||||||
|
align="center"
|
||||||
|
prop="templateSource"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : ""
|
||||||
|
}}
|
||||||
|
{{
|
||||||
|
scope.row.templateSource == "WE_CHAT_OFFICIAL_ACCOUNT"
|
||||||
|
? "公众号"
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="适用任务类型"
|
||||||
|
align="center"
|
||||||
|
prop="suitTaskTypeName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
prop="diseaseTypeName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="templateContent"
|
||||||
|
label="模板内容"
|
||||||
|
align="center"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</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:'WECHAT',
|
||||||
|
hospitalAgencyId:46,
|
||||||
|
operationName: null,
|
||||||
|
},
|
||||||
|
totaldepartment: 0,
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
datalist(val) {
|
||||||
|
this.$emit('submit', val);
|
||||||
|
},
|
||||||
|
'Nameinfo': {
|
||||||
|
handler(val,oldval){
|
||||||
|
// console.log(val,'Nameinfo111111111111')
|
||||||
|
},
|
||||||
|
deep:true,
|
||||||
|
immediate:true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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) {
|
||||||
|
console.log(selection, '0000000000000')
|
||||||
|
// this.datalist = selection
|
||||||
|
this.datalist = selection.map(item => item.id)
|
||||||
|
this.single = selection.length !== 1
|
||||||
|
this.multiple = !selection.length
|
||||||
|
},
|
||||||
|
handleRowDbClick(row, column, event) {// 双击选中该行
|
||||||
|
console.log(this.datalist,'-----------------')
|
||||||
|
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,
|
||||||
|
};
|
||||||
|
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>
|
||||||
@ -35,6 +35,15 @@
|
|||||||
<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"
|
:disabled="queryParams.hospitalAgencyId ? false : true"
|
||||||
v-hasPermi="['manage:template:add']">新增短信模版</el-button>
|
v-hasPermi="['manage:template:add']">新增短信模版</el-button>
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-upload2"
|
||||||
|
size="mini"
|
||||||
|
@click="handleUpload"
|
||||||
|
>导入</el-button
|
||||||
|
>
|
||||||
|
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -200,6 +209,20 @@
|
|||||||
<myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize"
|
<myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize"
|
||||||
:indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination>
|
:indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- 导入弹框 -->
|
||||||
|
<el-dialog
|
||||||
|
title=""
|
||||||
|
:visible.sync="innerexport"
|
||||||
|
width="1000px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="exportcancel"
|
||||||
|
>
|
||||||
|
<messageexport @submit="submit" ref="childComponent"></messageexport>
|
||||||
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -207,11 +230,17 @@ import { listMessage, getMessage, delMessage, addMessage, updateMessage, listMes
|
|||||||
import { typelist } from "@/api/manage/template";
|
import { typelist } from "@/api/manage/template";
|
||||||
import { department, listDisease } from "@/api/manage/script";
|
import { department, listDisease } from "@/api/manage/script";
|
||||||
import DepartmentList from '../../components/DepartmentList.vue'
|
import DepartmentList from '../../components/DepartmentList.vue'
|
||||||
|
import messageexport from '@/views/manage/components/messageexport.vue'
|
||||||
|
import { copyBaselnfo } from "@/api/system/exportinfo";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { DepartmentList },
|
components: { DepartmentList, messageexport },
|
||||||
name: "Template",
|
name: "Template",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
// 导入弹框
|
||||||
|
innerexport: false,
|
||||||
|
exportlist: [],
|
||||||
obj: null,
|
obj: null,
|
||||||
departmentName: null,
|
departmentName: null,
|
||||||
optionstext: [{
|
optionstext: [{
|
||||||
@ -333,6 +362,41 @@ export default {
|
|||||||
this.typelistdata();
|
this.typelistdata();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
submit(e) {
|
||||||
|
this.exportlist = e
|
||||||
|
|
||||||
|
},
|
||||||
|
// 导入确定按钮
|
||||||
|
submitexport() {
|
||||||
|
var obj = {
|
||||||
|
departmentId: this.queryParams.departmentId,
|
||||||
|
departmentName: this.departmentName,
|
||||||
|
type: 'MESSAGE',
|
||||||
|
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
|
||||||
|
},
|
||||||
//接收科室列表传值
|
//接收科室列表传值
|
||||||
clickdepartment(item) {
|
clickdepartment(item) {
|
||||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
||||||
|
|||||||
@ -2,48 +2,101 @@
|
|||||||
<div class="app-container" ref="layout">
|
<div class="app-container" ref="layout">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="5" :xs="24">
|
<el-col :span="5" :xs="24">
|
||||||
<DepartmentList ref="DepartmentList" @clickdepartment="clickdepartment" :methods="'listScriptNum'">
|
<DepartmentList
|
||||||
|
ref="DepartmentList"
|
||||||
|
@clickdepartment="clickdepartment"
|
||||||
|
:methods="'listScriptNum'"
|
||||||
|
>
|
||||||
</DepartmentList>
|
</DepartmentList>
|
||||||
</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">
|
||||||
<el-form :model="queryParams" ref="queryForms" size="small" :inline="true" v-show="showSearch"
|
<el-form
|
||||||
label-width="68px">
|
:model="queryParams"
|
||||||
<el-form-item label="通用话术名称" prop="commonScriptName" label-width="100px">
|
ref="queryForms"
|
||||||
<el-input v-model="queryParams.commonScriptName" placeholder="请输入通用话术名称" clearable
|
size="small"
|
||||||
@keyup.enter.native="handleQuery" />
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
label="通用话术名称"
|
||||||
|
prop="commonScriptName"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.commonScriptName"
|
||||||
|
placeholder="请输入通用话术名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术名称" prop="scriptName">
|
<el-form-item label="话术名称" prop="scriptName">
|
||||||
<el-input v-model="queryParams.scriptName" placeholder="请输入话术名称" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.scriptName"
|
||||||
|
placeholder="请输入话术名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术ID" prop="scriptId">
|
<el-form-item label="话术ID" prop="scriptId">
|
||||||
<el-input v-model="queryParams.scriptId" placeholder="请输入话术ID" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.scriptId"
|
||||||
|
placeholder="请输入话术ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="平台ID" prop="platformId">
|
<el-form-item label="平台ID" prop="platformId">
|
||||||
<el-input v-model="queryParams.platformId" placeholder="请输入平台ID" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.platformId"
|
||||||
|
placeholder="请输入平台ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术状态" prop="scriptStatus">
|
<el-form-item label="话术状态" prop="scriptStatus">
|
||||||
<el-select v-model="queryParams.scriptStatus" placeholder="请选择">
|
<el-select
|
||||||
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
v-model="queryParams.scriptStatus"
|
||||||
|
placeholder="请选择"
|
||||||
|
>
|
||||||
|
<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-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
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</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-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
<div ref="mb8" class="mb8">
|
<div ref="mb8" class="mb8">
|
||||||
<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
|
||||||
:disabled="queryParams.hospitalAgencyId ? false : true"
|
type="primary"
|
||||||
v-hasPermi="['manage:script:add']">新增</el-button>
|
plain
|
||||||
<el-button
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
:disabled="queryParams.hospitalAgencyId ? false : true"
|
||||||
|
v-hasPermi="['manage:script:add']"
|
||||||
|
>新增</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
plain
|
plain
|
||||||
icon="el-icon-upload2"
|
icon="el-icon-upload2"
|
||||||
@ -52,96 +105,252 @@
|
|||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</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>
|
||||||
<div ref="table">
|
<div ref="table">
|
||||||
<el-table :max-height="maxTableHeight" v-loading="loading" :data="scriptList"
|
<el-table
|
||||||
@selection-change="handleSelectionChange">
|
:max-height="maxTableHeight"
|
||||||
<el-table-column label="序号" align="center" prop="sort" type="index" />
|
v-loading="loading"
|
||||||
<el-table-column label="通用话术名称" align="center" prop="commonScriptName" :show-overflow-tooltip="true" />
|
:data="scriptList"
|
||||||
<el-table-column label="话术名称" align="center" prop="scriptName" :show-overflow-tooltip="true" />
|
@selection-change="handleSelectionChange"
|
||||||
<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
|
||||||
<el-table-column label="话术状态" align="center" prop="scriptStatus">
|
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">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.scriptStatus == 'NORMAL'" type="success"> 正常 </el-tag>
|
<el-tag
|
||||||
<el-tag v-if="scope.row.scriptStatus == 'OFF_SHELF'" type="danger"> 下架 </el-tag>
|
v-if="scope.row.scriptStatus == 'NORMAL'"
|
||||||
<el-tag v-if="scope.row.scriptStatus == 'SUSPEND'" type="info"> 暂停 </el-tag>
|
type="success"
|
||||||
|
>
|
||||||
|
正常
|
||||||
|
</el-tag>
|
||||||
|
<el-tag
|
||||||
|
v-if="scope.row.scriptStatus == 'OFF_SHELF'"
|
||||||
|
type="danger"
|
||||||
|
>
|
||||||
|
下架
|
||||||
|
</el-tag>
|
||||||
|
<el-tag v-if="scope.row.scriptStatus == 'SUSPEND'" type="info">
|
||||||
|
暂停
|
||||||
|
</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="话术简介" align="center" prop="scriptIntroduction" :show-overflow-tooltip="true" />
|
<el-table-column
|
||||||
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" :show-overflow-tooltip="true" />
|
label="话术简介"
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
|
align="center"
|
||||||
|
prop="scriptIntroduction"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
prop="diseaseTypeName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
width="200"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- <el-button size="mini" type="text" icon="el-icon-folder-delete"
|
<!-- <el-button size="mini" type="text" icon="el-icon-folder-delete"
|
||||||
@click="norelease(scope.row)">取消发布</el-button>
|
@click="norelease(scope.row)">取消发布</el-button>
|
||||||
<el-button size="mini" icon="el-icon-folder-checked" type="text" @click="release(scope.row)">发布</el-button> -->
|
<el-button size="mini" icon="el-icon-folder-checked" type="text" @click="release(scope.row)">发布</el-button> -->
|
||||||
<!-- <el-button size="mini" type="text" icon="el-icon-search" @click="handlesee(scope.row)">预览</el-button> -->
|
<!-- <el-button size="mini" type="text" icon="el-icon-search" @click="handlesee(scope.row)">预览</el-button> -->
|
||||||
<el-button size="mini" type="text" icon="el-icon-zoom-in" @click="see(scope.row)">话术</el-button>
|
<el-button
|
||||||
<el-button size="mini" type="text" icon="el-icon-picture-outline"
|
size="mini"
|
||||||
@click="seescript(scope.row)">话术预览</el-button>
|
type="text"
|
||||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
icon="el-icon-zoom-in"
|
||||||
v-hasPermi="['manage:script:edit']">修改</el-button>
|
@click="see(scope.row)"
|
||||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
>话术</el-button
|
||||||
v-hasPermi="['manage:script:remove']">删除</el-button>
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-picture-outline"
|
||||||
|
@click="seescript(scope.row)"
|
||||||
|
>话术预览</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['manage:script:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['manage:script:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
<myPagination v-show="total > 0" :total="total" :pageSize="queryParams.pageSize"
|
<myPagination
|
||||||
:indexFromWrap="queryParams.pageNum" @updateCPage="updateCPage"></myPagination>
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:pageSize="queryParams.pageSize"
|
||||||
|
:indexFromWrap="queryParams.pageNum"
|
||||||
|
@updateCPage="updateCPage"
|
||||||
|
></myPagination>
|
||||||
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
||||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- 添加或修改话术信息对话框 -->
|
<!-- 添加或修改话术信息对话框 -->
|
||||||
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
||||||
<el-form ref="form" :model="form" :rules="rules" label-width="110px" :inline="true">
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="110px"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
<el-form-item label="通用话术名称" prop="commonScriptName">
|
<el-form-item label="通用话术名称" prop="commonScriptName">
|
||||||
<el-input maxlength="100" v-model="form.commonScriptName" placeholder="请输入通用话术名称" />
|
<el-input
|
||||||
|
maxlength="100"
|
||||||
|
v-model="form.commonScriptName"
|
||||||
|
placeholder="请输入通用话术名称"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术名称" prop="scriptName">
|
<el-form-item label="话术名称" prop="scriptName">
|
||||||
<el-input v-model="form.scriptName" placeholder="请输入话术名称" maxlength="100" />
|
<el-input
|
||||||
|
v-model="form.scriptName"
|
||||||
|
placeholder="请输入话术名称"
|
||||||
|
maxlength="100"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术排序" prop="scriptSort">
|
<el-form-item label="话术排序" prop="scriptSort">
|
||||||
<el-input-number v-model="form.scriptSort" controls-position="right" :min="0" placeholder="请输入话术排序"
|
<el-input-number
|
||||||
style="width: 206px" />
|
v-model="form.scriptSort"
|
||||||
|
controls-position="right"
|
||||||
|
:min="0"
|
||||||
|
placeholder="请输入话术排序"
|
||||||
|
style="width: 206px"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术ID" prop="scriptId" v-if="title == '修改话术信息'">
|
<el-form-item
|
||||||
<el-input disabled onKeyUp="value=value.replace(/[\W]/g,'')" v-model="form.scriptId" placeholder="请输入话术ID"
|
label="话术ID"
|
||||||
maxlength="100" />
|
prop="scriptId"
|
||||||
|
v-if="title == '修改话术信息'"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
onKeyUp="value=value.replace(/[\W]/g,'')"
|
||||||
|
v-model="form.scriptId"
|
||||||
|
placeholder="请输入话术ID"
|
||||||
|
maxlength="100"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="平台ID" prop="platformId">
|
<el-form-item label="平台ID" prop="platformId">
|
||||||
<el-input onKeyUp="value=value.replace(/[\W]/g,'')" v-model="form.platformId" placeholder="请输入平台ID"
|
<el-input
|
||||||
maxlength="100" />
|
onKeyUp="value=value.replace(/[\W]/g,'')"
|
||||||
|
v-model="form.platformId"
|
||||||
|
placeholder="请输入平台ID"
|
||||||
|
maxlength="100"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术状态" prop="platformId" v-if="title == '修改话术信息'">
|
<el-form-item
|
||||||
<el-select v-model="form.scriptStatus" placeholder="请选择" style="width: 206px">
|
label="话术状态"
|
||||||
<el-option v-for=" item in options " :key="item.value" :label="item.label" :value="item.value">
|
prop="platformId"
|
||||||
|
v-if="title == '修改话术信息'"
|
||||||
|
>
|
||||||
|
<el-select
|
||||||
|
v-model="form.scriptStatus"
|
||||||
|
placeholder="请选择"
|
||||||
|
style="width: 206px"
|
||||||
|
>
|
||||||
|
<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-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="科室名称" prop="departmentId">
|
<el-form-item label="科室名称" prop="departmentId">
|
||||||
<el-button type="" @click="clickinnerVisible()"
|
<el-button
|
||||||
:style="form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''" style="
|
type=""
|
||||||
width: 206px;
|
@click="clickinnerVisible()"
|
||||||
text-align: left;
|
:style="
|
||||||
height: 36px;
|
form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''
|
||||||
overflow: hidden;
|
"
|
||||||
">{{ form.departmentName }}</el-button>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="病种名称" prop="diseaseTypeName">
|
|
||||||
<el-button type="" @click="clickdisease()" :style="form.diseaseTypeName == '请选择病种' ? 'color: #c0c4cc;' : ''"
|
|
||||||
style="
|
style="
|
||||||
width: 206px;
|
width: 206px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
">{{ form.diseaseTypeName }}</el-button>
|
"
|
||||||
|
>{{ form.departmentName }}</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="病种名称" prop="diseaseTypeName">
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="clickdisease()"
|
||||||
|
:style="
|
||||||
|
form.diseaseTypeName == '请选择病种' ? 'color: #c0c4cc;' : ''
|
||||||
|
"
|
||||||
|
style="
|
||||||
|
width: 206px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
overflow: hidden;
|
||||||
|
"
|
||||||
|
>{{ form.diseaseTypeName }}</el-button
|
||||||
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="话术简介" prop="scriptIntroduction">
|
<el-form-item label="话术简介" prop="scriptIntroduction">
|
||||||
<el-input maxlength="200" v-model="form.scriptIntroduction" placeholder="请输入话术简介" type="textarea" style="width:300px"/>
|
<el-input
|
||||||
|
maxlength="200"
|
||||||
|
v-model="form.scriptIntroduction"
|
||||||
|
placeholder="请输入话术简介"
|
||||||
|
type="textarea"
|
||||||
|
style="width: 300px"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<!-- <el-form-item label="图片" prop="scriptFilePath">
|
<!-- <el-form-item label="图片" prop="scriptFilePath">
|
||||||
<stationAcatar @imgUrl="imgUrl" :img="form.scriptFilePath" :type="'scriptUrl'" />
|
<stationAcatar @imgUrl="imgUrl" :img="form.scriptFilePath" :type="'scriptUrl'" />
|
||||||
@ -153,63 +362,165 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 科室弹框 -->
|
<!-- 科室弹框 -->
|
||||||
<el-dialog title="" :visible.sync="innerVisibleshow" width="1000px" append-to-body
|
<el-dialog
|
||||||
:before-close="innerVisiblecancel">
|
title=""
|
||||||
<el-form ref="queryForm" :model="informationqueryParams" :rules="rules" label-width="80px" :inline="true">
|
: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-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
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="addresetQuerylist">重置</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-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">
|
||||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="form.departmentId == scope.row.id" circle
|
<el-button
|
||||||
@click="nurseclick(scope.row)"></el-button>
|
type="primary"
|
||||||
<el-button v-else style="width: 15px; height: 15px" circle @click="nurseclick(scope.row)"></el-button>
|
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>
|
</template>
|
||||||
</el-table-column>
|
</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-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<myPagination v-show="totaldepartment > 0" :total="totaldepartment" :pageSize="informationqueryParams.pageSize"
|
<myPagination
|
||||||
:indexFromWrap="informationqueryParams.pageNum" @updateCPage="updateCPagetwo"></myPagination>
|
v-show="totaldepartment > 0"
|
||||||
|
:total="totaldepartment"
|
||||||
|
:pageSize="informationqueryParams.pageSize"
|
||||||
|
:indexFromWrap="informationqueryParams.pageNum"
|
||||||
|
@updateCPage="updateCPagetwo"
|
||||||
|
></myPagination>
|
||||||
<!-- <pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
<!-- <pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
||||||
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 病种弹框 -->
|
<!-- 病种弹框 -->
|
||||||
<el-dialog title="" :visible.sync="diseaseshowst" width="1000px" append-to-body :before-close="canceldiseases">
|
<el-dialog
|
||||||
<el-form ref="queryForm" :model="querydisease" :rules="rules" label-width="80px" :inline="true">
|
title=""
|
||||||
|
:visible.sync="diseaseshowst"
|
||||||
|
width="1000px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="canceldiseases"
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
ref="queryForm"
|
||||||
|
:model="querydisease"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="80px"
|
||||||
|
:inline="true"
|
||||||
|
>
|
||||||
<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
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="resetdisease">重置</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-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">
|
||||||
<el-button type="primary" style="width: 15px; height: 15px" v-if="form.diseaseTypeId == scope.row.id" circle
|
<el-button
|
||||||
@click="nurseclickdisease(scope.row)"></el-button>
|
type="primary"
|
||||||
<el-button v-else style="width: 15px; height: 15px" circle
|
style="width: 15px; height: 15px"
|
||||||
@click="nurseclickdisease(scope.row)"></el-button>
|
v-if="form.diseaseTypeId == scope.row.id"
|
||||||
|
circle
|
||||||
|
@click="nurseclickdisease(scope.row)"
|
||||||
|
></el-button>
|
||||||
|
<el-button
|
||||||
|
v-else
|
||||||
|
style="width: 15px; height: 15px"
|
||||||
|
circle
|
||||||
|
@click="nurseclickdisease(scope.row)"
|
||||||
|
></el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column property="diseaseTypeName" label="病种名称" align="center" :show-overflow-tooltip="true">
|
<el-table-column
|
||||||
|
property="diseaseTypeName"
|
||||||
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<!-- <pagination v-show="diseasetotal > 0" :total="diseasetotal" :page.sync="querydisease.pageNum"
|
<!-- <pagination v-show="diseasetotal > 0" :total="diseasetotal" :page.sync="querydisease.pageNum"
|
||||||
:limit.sync="querydisease.pageSize" @pagination="infodisease" /> -->
|
:limit.sync="querydisease.pageSize" @pagination="infodisease" /> -->
|
||||||
<myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize"
|
<myPagination
|
||||||
:indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination>
|
v-show="diseasetotal > 0"
|
||||||
|
:total="diseasetotal"
|
||||||
|
:pageSize="querydisease.pageSize"
|
||||||
|
:indexFromWrap="querydisease.pageNum"
|
||||||
|
@updateCPage="updateCPagethree"
|
||||||
|
></myPagination>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 预览弹框 -->
|
<!-- 预览弹框 -->
|
||||||
<el-dialog title="预览" :visible.sync="dialogsee" width="40%" :before-close="seeClose">
|
<el-dialog
|
||||||
|
title="预览"
|
||||||
|
:visible.sync="dialogsee"
|
||||||
|
width="40%"
|
||||||
|
:before-close="seeClose"
|
||||||
|
>
|
||||||
<div class="dialog">
|
<div class="dialog">
|
||||||
<img :src="baseUrl + form.scriptFilePath" alt="" />
|
<img :src="baseUrl + form.scriptFilePath" alt="" />
|
||||||
</div>
|
</div>
|
||||||
@ -217,15 +528,18 @@
|
|||||||
<el-button @click="dialogsee = false">取 消</el-button>
|
<el-button @click="dialogsee = false">取 消</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!-- 导入弹框 -->
|
<!-- 导入弹框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title=""
|
title=""
|
||||||
:visible.sync="innerexport"
|
:visible.sync="innerexport"
|
||||||
width="1000px"
|
width="1000px"
|
||||||
append-to-body
|
append-to-body
|
||||||
:before-close="exportcancel"
|
:before-close="exportcancel"
|
||||||
>
|
>
|
||||||
<scriptexport @submit="submit" ref="childComponent" :Nameinfo=Nameinfo></scriptexport>
|
<scriptexport
|
||||||
|
@submit="submit"
|
||||||
|
ref="childComponent"
|
||||||
|
></scriptexport>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submitexport">确 定</el-button>
|
<el-button type="primary" @click="submitexport">确 定</el-button>
|
||||||
<el-button @click="innerexport = false">取 消</el-button>
|
<el-button @click="innerexport = false">取 消</el-button>
|
||||||
@ -240,14 +554,13 @@ import DepartmentList from '../../components/DepartmentList.vue'
|
|||||||
import scriptexport from "@/views/manage/components/scriptexport.vue"
|
import scriptexport from "@/views/manage/components/scriptexport.vue"
|
||||||
import { copyBaselnfo } from "@/api/system/exportinfo";
|
import { copyBaselnfo } from "@/api/system/exportinfo";
|
||||||
export default {
|
export default {
|
||||||
components: { stationAcatar, scriptexport,DepartmentList},
|
components: { stationAcatar, scriptexport, DepartmentList },
|
||||||
name: "Script",
|
name: "Script",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
Nameinfo:null,
|
|
||||||
// 导入弹框
|
// 导入弹框
|
||||||
innerexport:false,
|
innerexport: false,
|
||||||
exportlist:[],
|
exportlist: [],
|
||||||
obj: null,
|
obj: null,
|
||||||
departmentName: null,
|
departmentName: null,
|
||||||
departmentId: null,
|
departmentId: null,
|
||||||
@ -416,8 +729,8 @@ export default {
|
|||||||
if (this.queryParams.departmentId) {
|
if (this.queryParams.departmentId) {
|
||||||
this.innerexport = true
|
this.innerexport = true
|
||||||
if (this.exportlist.length > 0) {
|
if (this.exportlist.length > 0) {
|
||||||
this.$refs.childComponent.resetTable();
|
this.$refs.childComponent.resetTable();
|
||||||
}
|
}
|
||||||
this.Nameinfo = this.departmentName
|
this.Nameinfo = this.departmentName
|
||||||
} else {
|
} else {
|
||||||
this.$modal.msgError("请先选择左侧科室");
|
this.$modal.msgError("请先选择左侧科室");
|
||||||
|
|||||||
@ -26,9 +26,24 @@
|
|||||||
<div ref="mb8" class="mb8">
|
<div ref="mb8" class="mb8">
|
||||||
<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
|
||||||
:disabled="queryParams.hospitalAgencyId ? false : true"
|
type="primary"
|
||||||
v-hasPermi="['manage:template:add']">新增微信模版</el-button>
|
plain
|
||||||
|
icon="el-icon-plus"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAdd"
|
||||||
|
:disabled="queryParams.hospitalAgencyId ? false : true"
|
||||||
|
v-hasPermi="['manage:template:add']"
|
||||||
|
>新增微信模版</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-upload2"
|
||||||
|
size="mini"
|
||||||
|
@click="handleUpload"
|
||||||
|
>导入</el-button
|
||||||
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -172,8 +187,27 @@
|
|||||||
</el-table>
|
</el-table>
|
||||||
<!-- <pagination v-show="diseasetotal > 0" :total="diseasetotal" :page.sync="querydisease.pageNum"
|
<!-- <pagination v-show="diseasetotal > 0" :total="diseasetotal" :page.sync="querydisease.pageNum"
|
||||||
:limit.sync="querydisease.pageSize" @pagination="infodisease" /> -->
|
:limit.sync="querydisease.pageSize" @pagination="infodisease" /> -->
|
||||||
<myPagination v-show="diseasetotal > 0" :total="diseasetotal" :pageSize="querydisease.pageSize"
|
<myPagination
|
||||||
:indexFromWrap="querydisease.pageNum" @updateCPage="updateCPagethree"></myPagination>
|
v-show="diseasetotal > 0"
|
||||||
|
:total="diseasetotal"
|
||||||
|
:pageSize="querydisease.pageSize"
|
||||||
|
:indexFromWrap="querydisease.pageNum"
|
||||||
|
@updateCPage="updateCPagethree"
|
||||||
|
></myPagination>
|
||||||
|
</el-dialog>
|
||||||
|
<!-- 导入弹框 -->
|
||||||
|
<el-dialog
|
||||||
|
title=""
|
||||||
|
:visible.sync="innerexport"
|
||||||
|
width="1000px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="exportcancel"
|
||||||
|
>
|
||||||
|
<templateexport @submit="submit" ref="childComponent"></templateexport>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitexport">确 定</el-button>
|
||||||
|
<el-button @click="innerexport = false">取 消</el-button>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -189,8 +223,11 @@ import {
|
|||||||
} from "@/api/manage/template";
|
} from "@/api/manage/template";
|
||||||
import { department, listDisease } from "@/api/manage/script";
|
import { department, listDisease } from "@/api/manage/script";
|
||||||
import DepartmentList from '../../components/DepartmentList.vue'
|
import DepartmentList from '../../components/DepartmentList.vue'
|
||||||
|
import templateexport from "@/views/manage/components/templateexport.vue"
|
||||||
|
import { copyBaselnfo } from "@/api/system/exportinfo";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { DepartmentList },
|
components: { DepartmentList, templateexport },
|
||||||
name: "Template",
|
name: "Template",
|
||||||
data() {
|
data() {
|
||||||
//验证身份证
|
//验证身份证
|
||||||
@ -214,6 +251,9 @@ export default {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
|
// 导入弹框
|
||||||
|
innerexport: false,
|
||||||
|
exportlist: [],
|
||||||
obj: null,
|
obj: null,
|
||||||
maxTableHeight: undefined,
|
maxTableHeight: undefined,
|
||||||
departmentName: null,
|
departmentName: null,
|
||||||
@ -329,6 +369,40 @@ export default {
|
|||||||
this.screenChange();
|
this.screenChange();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
submit(e) {
|
||||||
|
this.exportlist = e
|
||||||
|
},
|
||||||
|
// 导入确定按钮
|
||||||
|
submitexport() {
|
||||||
|
var obj = {
|
||||||
|
departmentId: this.queryParams.departmentId,
|
||||||
|
departmentName: this.departmentName,
|
||||||
|
type: 'WECHAT',
|
||||||
|
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
|
||||||
|
},
|
||||||
//接收科室列表传值
|
//接收科室列表传值
|
||||||
clickdepartment(item) {
|
clickdepartment(item) {
|
||||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user