2024-02-28 11:50:32 +08:00
|
|
|
|
<template>
|
2024-06-14 16:18:29 +08:00
|
|
|
|
<div class="app-container" ref="layout">
|
2024-02-28 11:50:32 +08:00
|
|
|
|
<el-row :gutter="20">
|
2024-07-08 09:28:15 +08:00
|
|
|
|
<el-col :span="5" :xs="24">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<DepartmentList
|
|
|
|
|
|
ref="DepartmentList"
|
|
|
|
|
|
@clickdepartment="clickdepartment"
|
|
|
|
|
|
:methods="'listScriptNum'"
|
|
|
|
|
|
>
|
2024-07-08 09:28:15 +08:00
|
|
|
|
</DepartmentList>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-col>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
<el-col :span="19" :xs="24">
|
2024-06-16 15:31:29 +08:00
|
|
|
|
<div ref="topform" class="form">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-form
|
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
|
ref="queryForms"
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
: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"
|
|
|
|
|
|
/>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="话术名称" prop="scriptName">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.scriptName"
|
|
|
|
|
|
placeholder="请输入话术名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="话术ID" prop="scriptId">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.scriptId"
|
|
|
|
|
|
placeholder="请输入话术ID"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="平台ID" prop="platformId">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="queryParams.platformId"
|
|
|
|
|
|
placeholder="请输入平台ID"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
/>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="话术状态" prop="scriptStatus">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="queryParams.scriptStatus"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in options"
|
|
|
|
|
|
:key="item.value"
|
|
|
|
|
|
:label="item.label"
|
|
|
|
|
|
:value="item.value"
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<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
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div ref="mb8" class="mb8">
|
|
|
|
|
|
<el-row :gutter="10" class="">
|
|
|
|
|
|
<el-col :span="1.5">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
|
:disabled="queryParams.hospitalAgencyId ? false : true"
|
|
|
|
|
|
v-hasPermi="['manage:script:add']"
|
|
|
|
|
|
>新增</el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-button
|
2024-07-09 15:49:57 +08:00
|
|
|
|
type="warning"
|
|
|
|
|
|
plain
|
|
|
|
|
|
icon="el-icon-upload2"
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
@click="handleUpload"
|
|
|
|
|
|
>导入</el-button
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-col>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<right-toolbar
|
|
|
|
|
|
:showSearch.sync="showSearch"
|
|
|
|
|
|
@queryTable="getList"
|
|
|
|
|
|
></right-toolbar>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div ref="table">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table
|
|
|
|
|
|
:max-height="maxTableHeight"
|
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
|
:data="scriptList"
|
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="序号"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="sort"
|
|
|
|
|
|
type="index"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="通用话术名称"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="commonScriptName"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="话术名称"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="scriptName"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="话术ID"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="scriptId"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="平台ID"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="platformId"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="话术状态"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="scriptStatus"
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
<template slot-scope="scope">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-tag
|
|
|
|
|
|
v-if="scope.row.scriptStatus == 'NORMAL'"
|
|
|
|
|
|
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>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="话术简介"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="scriptIntroduction"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="病种名称"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
prop="diseaseTypeName"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
/>
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
label="操作"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
|
width="200"
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<!-- <el-button size="mini" type="text" icon="el-icon-folder-delete"
|
2024-06-14 15:35:57 +08:00
|
|
|
|
@click="norelease(scope.row)">取消发布</el-button>
|
2024-06-14 15:59:39 +08:00
|
|
|
|
<el-button size="mini" icon="el-icon-folder-checked" type="text" @click="release(scope.row)">发布</el-button> -->
|
2024-06-18 16:01:25 +08:00
|
|
|
|
<!-- <el-button size="mini" type="text" icon="el-icon-search" @click="handlesee(scope.row)">预览</el-button> -->
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
size="mini"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
icon="el-icon-zoom-in"
|
|
|
|
|
|
@click="see(scope.row)"
|
|
|
|
|
|
>话术</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
|
|
|
|
|
|
>
|
2024-06-14 16:15:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<myPagination
|
|
|
|
|
|
v-show="total > 0"
|
|
|
|
|
|
:total="total"
|
|
|
|
|
|
:pageSize="queryParams.pageSize"
|
|
|
|
|
|
:indexFromWrap="queryParams.pageNum"
|
|
|
|
|
|
@updateCPage="updateCPage"
|
|
|
|
|
|
></myPagination>
|
2024-06-24 14:35:52 +08:00
|
|
|
|
<!-- <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
|
|
|
|
|
|
:limit.sync="queryParams.pageSize" @pagination="getList" /> -->
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<!-- 添加或修改话术信息对话框 -->
|
2024-06-13 15:49:26 +08:00
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-form
|
|
|
|
|
|
ref="form"
|
|
|
|
|
|
:model="form"
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
label-width="110px"
|
|
|
|
|
|
:inline="true"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
<el-form-item label="通用话术名称" prop="commonScriptName">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
maxlength="100"
|
|
|
|
|
|
v-model="form.commonScriptName"
|
|
|
|
|
|
placeholder="请输入通用话术名称"
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="话术名称" prop="scriptName">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="form.scriptName"
|
|
|
|
|
|
placeholder="请输入话术名称"
|
|
|
|
|
|
maxlength="100"
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
2024-03-11 15:21:26 +08:00
|
|
|
|
<el-form-item label="话术排序" prop="scriptSort">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input-number
|
|
|
|
|
|
v-model="form.scriptSort"
|
|
|
|
|
|
controls-position="right"
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
placeholder="请输入话术排序"
|
|
|
|
|
|
style="width: 206px"
|
|
|
|
|
|
/>
|
2024-03-11 15:21:26 +08:00
|
|
|
|
</el-form-item>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-form-item
|
|
|
|
|
|
label="话术ID"
|
|
|
|
|
|
prop="scriptId"
|
|
|
|
|
|
v-if="title == '修改话术信息'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
disabled
|
|
|
|
|
|
onKeyUp="value=value.replace(/[\W]/g,'')"
|
|
|
|
|
|
v-model="form.scriptId"
|
|
|
|
|
|
placeholder="请输入话术ID"
|
|
|
|
|
|
maxlength="100"
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="平台ID" prop="platformId">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
onKeyUp="value=value.replace(/[\W]/g,'')"
|
|
|
|
|
|
v-model="form.platformId"
|
|
|
|
|
|
placeholder="请输入平台ID"
|
|
|
|
|
|
maxlength="100"
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-form-item
|
|
|
|
|
|
label="话术状态"
|
|
|
|
|
|
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"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="科室名称" prop="departmentId">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type=""
|
|
|
|
|
|
@click="clickinnerVisible()"
|
|
|
|
|
|
:style="
|
|
|
|
|
|
form.departmentName == '请选择科室' ? 'color: #c0c4cc;' : ''
|
|
|
|
|
|
"
|
|
|
|
|
|
style="
|
2024-03-28 09:31:40 +08:00
|
|
|
|
width: 206px;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
overflow: hidden;
|
2024-07-09 17:59:41 +08:00
|
|
|
|
"
|
|
|
|
|
|
>{{ form.departmentName }}</el-button
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="病种名称" prop="diseaseTypeName">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type=""
|
|
|
|
|
|
@click="clickdisease()"
|
|
|
|
|
|
:style="
|
|
|
|
|
|
form.diseaseTypeName == '请选择病种' ? 'color: #c0c4cc;' : ''
|
|
|
|
|
|
"
|
2024-07-08 10:49:01 +08:00
|
|
|
|
style="
|
2024-03-28 09:31:40 +08:00
|
|
|
|
width: 206px;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
overflow: hidden;
|
2024-07-09 17:59:41 +08:00
|
|
|
|
"
|
|
|
|
|
|
>{{ form.diseaseTypeName }}</el-button
|
|
|
|
|
|
>
|
2024-03-06 09:53:08 +08:00
|
|
|
|
</el-form-item>
|
2024-03-28 09:31:40 +08:00
|
|
|
|
<el-form-item label="话术简介" prop="scriptIntroduction">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
maxlength="200"
|
|
|
|
|
|
v-model="form.scriptIntroduction"
|
|
|
|
|
|
placeholder="请输入话术简介"
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
|
/>
|
2024-03-28 09:31:40 +08:00
|
|
|
|
</el-form-item>
|
2024-06-28 13:50:24 +08:00
|
|
|
|
<!-- <el-form-item label="图片" prop="scriptFilePath">
|
2024-06-13 15:49:26 +08:00
|
|
|
|
<stationAcatar @imgUrl="imgUrl" :img="form.scriptFilePath" :type="'scriptUrl'" />
|
2024-06-28 13:50:24 +08:00
|
|
|
|
</el-form-item> -->
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form>
|
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 科室弹框 -->
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
|
title=""
|
|
|
|
|
|
:visible.sync="innerVisibleshow"
|
|
|
|
|
|
width="1000px"
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
:before-close="innerVisiblecancel"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-form
|
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
|
:model="informationqueryParams"
|
|
|
|
|
|
:rules="rules"
|
|
|
|
|
|
label-width="80px"
|
|
|
|
|
|
:inline="true"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
<el-form-item label="科室名称" prop="departmentName" label-width="120">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="informationqueryParams.departmentName"
|
|
|
|
|
|
placeholder="请输入科室名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<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
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table
|
|
|
|
|
|
:data="infolist"
|
|
|
|
|
|
@cell-dblclick="nurseclick"
|
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
<el-table-column label="请选择" width="100" align="center">
|
|
|
|
|
|
<template slot-scope="scope">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
style="width: 15px; height: 15px"
|
|
|
|
|
|
v-if="form.departmentId == scope.row.id"
|
|
|
|
|
|
circle
|
|
|
|
|
|
@click="nurseclick(scope.row)"
|
|
|
|
|
|
></el-button>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
v-else
|
|
|
|
|
|
style="width: 15px; height: 15px"
|
|
|
|
|
|
circle
|
|
|
|
|
|
@click="nurseclick(scope.row)"
|
|
|
|
|
|
></el-button>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
|
property="departmentName"
|
|
|
|
|
|
label="科室名称"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<myPagination
|
|
|
|
|
|
v-show="totaldepartment > 0"
|
|
|
|
|
|
:total="totaldepartment"
|
|
|
|
|
|
:pageSize="informationqueryParams.pageSize"
|
|
|
|
|
|
:indexFromWrap="informationqueryParams.pageNum"
|
|
|
|
|
|
@updateCPage="updateCPagetwo"
|
|
|
|
|
|
></myPagination>
|
2024-06-24 14:35:52 +08:00
|
|
|
|
<!-- <pagination v-show="totaldepartment > 0" :total="totaldepartment" :page.sync="informationqueryParams.pageNum"
|
|
|
|
|
|
:limit.sync="informationqueryParams.pageSize" @pagination="informationInfoinfo" /> -->
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 病种弹框 -->
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
|
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"
|
|
|
|
|
|
>
|
2024-03-06 11:56:58 +08:00
|
|
|
|
<el-form-item label="病种名称" prop="diseaseTypeName" label-width="120">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-input
|
|
|
|
|
|
v-model="querydisease.diseaseTypeName"
|
|
|
|
|
|
placeholder="请输入病种名称"
|
|
|
|
|
|
clearable
|
|
|
|
|
|
/>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<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
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table
|
|
|
|
|
|
:data="listdisease"
|
|
|
|
|
|
@cell-dblclick="nurseclickdisease"
|
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
<el-table-column label="请选择" width="100" align="center">
|
|
|
|
|
|
<template slot-scope="scope">
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
style="width: 15px; height: 15px"
|
|
|
|
|
|
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>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
|
property="diseaseTypeName"
|
|
|
|
|
|
label="病种名称"
|
|
|
|
|
|
align="center"
|
|
|
|
|
|
:show-overflow-tooltip="true"
|
|
|
|
|
|
>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
2024-06-24 14:35:52 +08:00
|
|
|
|
<!-- <pagination v-show="diseasetotal > 0" :total="diseasetotal" :page.sync="querydisease.pageNum"
|
|
|
|
|
|
:limit.sync="querydisease.pageSize" @pagination="infodisease" /> -->
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<myPagination
|
|
|
|
|
|
v-show="diseasetotal > 0"
|
|
|
|
|
|
:total="diseasetotal"
|
|
|
|
|
|
:pageSize="querydisease.pageSize"
|
|
|
|
|
|
:indexFromWrap="querydisease.pageNum"
|
|
|
|
|
|
@updateCPage="updateCPagethree"
|
|
|
|
|
|
></myPagination>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</el-dialog>
|
2024-03-06 11:29:32 +08:00
|
|
|
|
<!-- 预览弹框 -->
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
|
title="预览"
|
|
|
|
|
|
:visible.sync="dialogsee"
|
|
|
|
|
|
width="40%"
|
|
|
|
|
|
:before-close="seeClose"
|
|
|
|
|
|
>
|
2024-06-13 15:49:26 +08:00
|
|
|
|
<div class="dialog">
|
|
|
|
|
|
<img :src="baseUrl + form.scriptFilePath" alt="" />
|
|
|
|
|
|
</div>
|
2024-03-06 11:29:32 +08:00
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button @click="dialogsee = false">取 消</el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</el-dialog>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<!-- 导入弹框 -->
|
|
|
|
|
|
<el-dialog
|
2024-07-09 15:49:57 +08:00
|
|
|
|
title=""
|
|
|
|
|
|
:visible.sync="innerexport"
|
|
|
|
|
|
width="1000px"
|
|
|
|
|
|
append-to-body
|
|
|
|
|
|
:before-close="exportcancel"
|
|
|
|
|
|
>
|
2024-07-09 17:59:41 +08:00
|
|
|
|
<scriptexport
|
|
|
|
|
|
@submit="submit"
|
|
|
|
|
|
ref="childComponent"
|
|
|
|
|
|
></scriptexport>
|
2024-07-09 15:49:57 +08:00
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button type="primary" @click="submitexport">确 定</el-button>
|
|
|
|
|
|
<el-button @click="innerexport = false">取 消</el-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<script>
|
2024-03-06 09:53:08 +08:00
|
|
|
|
import { listScript, getScript, delScript, addScript, updateScript, departmentDisease, department, listDisease, listScriptNum } from "@/api/manage/script";
|
|
|
|
|
|
import stationAcatar from "../../system/stationAvatar/index.vue";
|
2024-07-08 09:28:15 +08:00
|
|
|
|
import DepartmentList from '../../components/DepartmentList.vue'
|
2024-07-09 15:49:57 +08:00
|
|
|
|
import scriptexport from "@/views/manage/components/scriptexport.vue"
|
|
|
|
|
|
import { copyBaselnfo } from "@/api/system/exportinfo";
|
2024-02-28 11:50:32 +08:00
|
|
|
|
export default {
|
2024-07-09 17:59:41 +08:00
|
|
|
|
components: { stationAcatar, scriptexport, DepartmentList },
|
2024-02-28 11:50:32 +08:00
|
|
|
|
name: "Script",
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-07-09 15:49:57 +08:00
|
|
|
|
// 导入弹框
|
2024-07-09 17:59:41 +08:00
|
|
|
|
innerexport: false,
|
|
|
|
|
|
exportlist: [],
|
2024-04-19 13:32:26 +08:00
|
|
|
|
obj: null,
|
2024-02-28 11:50:32 +08:00
|
|
|
|
departmentName: null,
|
|
|
|
|
|
departmentId: null,
|
|
|
|
|
|
innerVisibleshow: false, //科室弹框
|
|
|
|
|
|
// 科室
|
|
|
|
|
|
informationqueryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
departmentName: null,
|
|
|
|
|
|
},
|
|
|
|
|
|
infolist: [],
|
|
|
|
|
|
totaldepartment: 0,
|
|
|
|
|
|
diseaseshowst: false,//病种弹框
|
|
|
|
|
|
querydisease: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
2024-03-29 09:33:12 +08:00
|
|
|
|
diseaseTypeName: null,
|
|
|
|
|
|
departmentId: null,
|
2024-02-28 11:50:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
listdisease: [],
|
|
|
|
|
|
diseasetotal: 0,
|
|
|
|
|
|
options: [{
|
|
|
|
|
|
value: 'NORMAL',
|
|
|
|
|
|
label: '正常'
|
|
|
|
|
|
}, {
|
|
|
|
|
|
value: 'OFF_SHELF',
|
|
|
|
|
|
label: '下架'
|
|
|
|
|
|
}, {
|
|
|
|
|
|
value: 'SUSPEND',
|
|
|
|
|
|
label: '暂停'
|
|
|
|
|
|
},],
|
|
|
|
|
|
optionsDisease: [],
|
2024-06-14 16:15:42 +08:00
|
|
|
|
maxTableHeight: undefined,
|
2024-03-06 11:29:32 +08:00
|
|
|
|
baseUrl: process.env.VUE_APP_BASE_API,
|
|
|
|
|
|
//预览弹框
|
|
|
|
|
|
dialogsee: false,
|
2024-02-28 11:50:32 +08:00
|
|
|
|
// 遮罩层
|
|
|
|
|
|
loading: true,
|
|
|
|
|
|
// 选中数组
|
|
|
|
|
|
ids: [],
|
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
|
single: true,
|
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
|
multiple: true,
|
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
|
showSearch: true,
|
|
|
|
|
|
// 总条数
|
|
|
|
|
|
total: 0,
|
|
|
|
|
|
// 话术信息表格数据
|
|
|
|
|
|
scriptList: [],
|
|
|
|
|
|
DepartmentoList: [],
|
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
|
title: "",
|
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
|
open: false,
|
|
|
|
|
|
// 查询参数
|
|
|
|
|
|
queryParams: {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
departmentId: null,
|
|
|
|
|
|
departmentName: null,
|
|
|
|
|
|
diseaseTypeId: null,
|
|
|
|
|
|
diseaseTypeName: null,
|
|
|
|
|
|
commonScriptName: null,
|
|
|
|
|
|
scriptName: null,
|
|
|
|
|
|
scriptId: null,
|
|
|
|
|
|
platformId: null,
|
|
|
|
|
|
scriptStatus: null,
|
|
|
|
|
|
scriptIntroduction: null,
|
|
|
|
|
|
scriptSort: null,
|
|
|
|
|
|
scriptRemark: null,
|
|
|
|
|
|
},
|
|
|
|
|
|
// 表单参数
|
|
|
|
|
|
form: {
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
departmentId: null,
|
|
|
|
|
|
departmentName: null,
|
|
|
|
|
|
diseaseTypeId: null,
|
|
|
|
|
|
diseaseTypeName: null,
|
|
|
|
|
|
diseaseTypeCode: null,
|
|
|
|
|
|
commonScriptName: null,
|
|
|
|
|
|
scriptName: null,
|
|
|
|
|
|
scriptId: null,
|
|
|
|
|
|
platformId: null,
|
|
|
|
|
|
scriptStatus: "",
|
|
|
|
|
|
scriptIntroduction: null,
|
|
|
|
|
|
scriptSort: null,
|
|
|
|
|
|
scriptRemark: null,
|
|
|
|
|
|
createBy: null,
|
|
|
|
|
|
createTime: null,
|
|
|
|
|
|
updateBy: null,
|
|
|
|
|
|
updateTime: null
|
|
|
|
|
|
},
|
|
|
|
|
|
// 表单校验
|
|
|
|
|
|
rules: {
|
2024-03-29 09:33:12 +08:00
|
|
|
|
scriptSort: [
|
2024-03-11 15:21:26 +08:00
|
|
|
|
{ required: true, message: "话术排序不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
2024-02-28 11:50:32 +08:00
|
|
|
|
commonScriptName: [
|
|
|
|
|
|
{ required: true, message: "通用话术名称不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
scriptName: [
|
|
|
|
|
|
{ required: true, message: "话术名称不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
2024-04-11 17:24:37 +08:00
|
|
|
|
// scriptId: [
|
|
|
|
|
|
// { required: true, message: "话术ID不能为空", trigger: "blur" }
|
|
|
|
|
|
// ],
|
2024-02-28 11:50:32 +08:00
|
|
|
|
platformId: [
|
|
|
|
|
|
{ required: true, message: "平台ID不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
scriptStatus: [
|
|
|
|
|
|
{ required: true, message: "话术状态不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
|
|
|
|
|
scriptIntroduction: [
|
|
|
|
|
|
{ required: true, message: "话术简介不能为空", trigger: "blur" }
|
|
|
|
|
|
],
|
2024-03-06 09:53:08 +08:00
|
|
|
|
departmentId: [
|
|
|
|
|
|
{ required: true, message: "科室名称不能为空", trigger: "blur" }
|
2024-02-28 11:50:32 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
created() {
|
2024-07-08 17:36:48 +08:00
|
|
|
|
// this.getList();
|
2024-02-28 11:50:32 +08:00
|
|
|
|
},
|
2024-06-14 16:15:42 +08:00
|
|
|
|
mounted() {
|
|
|
|
|
|
this.getMaxTableHeight()
|
|
|
|
|
|
this.screenChange()
|
|
|
|
|
|
},
|
2024-02-28 11:50:32 +08:00
|
|
|
|
watch: {
|
2024-04-19 13:32:26 +08:00
|
|
|
|
'form.scriptSort'(val) {
|
2024-06-13 15:49:26 +08:00
|
|
|
|
if (val) {
|
2024-04-19 13:32:26 +08:00
|
|
|
|
var name = ''
|
2024-06-13 15:49:26 +08:00
|
|
|
|
name = val.toString()
|
|
|
|
|
|
this.obj = name.split('')
|
|
|
|
|
|
// if (this.obj.length > 10) {
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
// type: "error",
|
|
|
|
|
|
// message: "话术排序最大长度为十位,请正确输入!"
|
|
|
|
|
|
// });
|
|
|
|
|
|
// }
|
2024-04-19 13:32:26 +08:00
|
|
|
|
}
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
2024-07-09 15:49:57 +08:00
|
|
|
|
submit(e) {
|
|
|
|
|
|
this.exportlist = e
|
|
|
|
|
|
},
|
|
|
|
|
|
// 导入确定按钮
|
|
|
|
|
|
submitexport() {
|
|
|
|
|
|
var obj = {
|
|
|
|
|
|
departmentId: this.queryParams.departmentId,
|
|
|
|
|
|
departmentName: this.departmentName,
|
|
|
|
|
|
type: 'SCRIPT',
|
|
|
|
|
|
sourceTemplateIds: this.exportlist,
|
|
|
|
|
|
}
|
|
|
|
|
|
copyBaselnfo(obj).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("导入成功");
|
|
|
|
|
|
this.innerexport = false
|
|
|
|
|
|
this.$refs.DepartmentList.Departmentlist()
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 导入按钮
|
|
|
|
|
|
handleUpload() {
|
|
|
|
|
|
if (this.queryParams.departmentId) {
|
|
|
|
|
|
this.innerexport = true
|
|
|
|
|
|
if (this.exportlist.length > 0) {
|
2024-07-09 17:59:41 +08:00
|
|
|
|
this.$refs.childComponent.resetTable();
|
|
|
|
|
|
}
|
2024-07-09 15:49:57 +08:00
|
|
|
|
this.Nameinfo = this.departmentName
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$modal.msgError("请先选择左侧科室");
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 弹框取消
|
|
|
|
|
|
exportcancel() {
|
|
|
|
|
|
this.innerexport = false
|
|
|
|
|
|
},
|
2024-03-06 09:53:08 +08:00
|
|
|
|
// 上传图片
|
|
|
|
|
|
imgUrl(imgUrl) {
|
2024-03-06 11:29:32 +08:00
|
|
|
|
this.form.scriptFilePath = imgUrl;
|
|
|
|
|
|
},
|
2024-06-13 15:40:00 +08:00
|
|
|
|
// 话术
|
2024-06-13 15:49:26 +08:00
|
|
|
|
see(row) {
|
2024-06-13 15:40:00 +08:00
|
|
|
|
this.$router.push({
|
|
|
|
|
|
path: "/knowledge/preview",
|
2024-07-01 11:38:43 +08:00
|
|
|
|
query: {
|
2024-07-01 14:53:34 +08:00
|
|
|
|
path: "/knowledge/script",
|
2024-07-01 11:38:43 +08:00
|
|
|
|
id: row.id,
|
|
|
|
|
|
scriptId: row.scriptId
|
|
|
|
|
|
},
|
2024-06-13 15:40:00 +08:00
|
|
|
|
});
|
|
|
|
|
|
},
|
2024-06-13 15:49:26 +08:00
|
|
|
|
seescript(row) {
|
2024-06-13 15:40:00 +08:00
|
|
|
|
this.$router.push({
|
|
|
|
|
|
path: "/knowledge/Scriptpreview",
|
|
|
|
|
|
query: {
|
2024-07-01 14:53:34 +08:00
|
|
|
|
path: "/knowledge/script",
|
2024-06-13 15:40:00 +08:00
|
|
|
|
id: row.id,
|
|
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2024-03-06 11:29:32 +08:00
|
|
|
|
// 预览点击
|
|
|
|
|
|
handlesee(row) {
|
2024-06-13 15:49:26 +08:00
|
|
|
|
if (row.scriptFilePath) {
|
2024-04-18 16:18:14 +08:00
|
|
|
|
const id = row.id
|
2024-06-13 15:49:26 +08:00
|
|
|
|
getScript(id).then(response => {
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
this.dialogsee = true;
|
|
|
|
|
|
});
|
|
|
|
|
|
} else {
|
2024-04-18 16:18:14 +08:00
|
|
|
|
this.$modal.msgError("暂无预览信息");
|
|
|
|
|
|
}
|
2024-06-14 15:35:57 +08:00
|
|
|
|
},
|
2024-06-14 15:59:39 +08:00
|
|
|
|
// //发布
|
|
|
|
|
|
// release(item) {
|
|
|
|
|
|
// this.$confirm('是否发布此话术?', '提示', {
|
|
|
|
|
|
// confirmButtonText: '确定',
|
|
|
|
|
|
// cancelButtonText: '取消',
|
|
|
|
|
|
// }).then(() => {
|
|
|
|
|
|
// var obj = { ...item }
|
|
|
|
|
|
// obj.releaseStatus = 'PUBLISHED'
|
|
|
|
|
|
// editReleaseStatus(obj).then(response => {
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
// type: 'success',
|
|
|
|
|
|
// message: '发布成功!'
|
|
|
|
|
|
// });
|
|
|
|
|
|
// this.getList();
|
|
|
|
|
|
// });
|
|
|
|
|
|
// })
|
|
|
|
|
|
// },
|
|
|
|
|
|
// //取消发布
|
|
|
|
|
|
// norelease(item) {
|
|
|
|
|
|
// this.$confirm('是否取消发布此话术?', '提示', {
|
|
|
|
|
|
// confirmButtonText: '确定',
|
|
|
|
|
|
// cancelButtonText: '取消',
|
|
|
|
|
|
// }).then(() => {
|
|
|
|
|
|
// var obj = { ...item }
|
|
|
|
|
|
// obj.releaseStatus = 'REVOKE'
|
|
|
|
|
|
// editReleaseStatus(obj).then(response => {
|
|
|
|
|
|
// this.$message({
|
|
|
|
|
|
// type: 'success',
|
|
|
|
|
|
// message: '取消发布成功!'
|
|
|
|
|
|
// });
|
|
|
|
|
|
// this.getList();
|
|
|
|
|
|
// });
|
|
|
|
|
|
// })
|
|
|
|
|
|
// },
|
2024-03-06 11:29:32 +08:00
|
|
|
|
// 预览关闭
|
|
|
|
|
|
seeClose() {
|
|
|
|
|
|
this.dialogsee = false;
|
2024-03-06 09:53:08 +08:00
|
|
|
|
},
|
2024-02-28 11:50:32 +08:00
|
|
|
|
// 点击科室
|
|
|
|
|
|
clickinnerVisible() {
|
|
|
|
|
|
this.innerVisibleshow = true;
|
|
|
|
|
|
this.informationInfoinfo();
|
|
|
|
|
|
},
|
2024-07-08 09:28:15 +08:00
|
|
|
|
//接收科室列表传值
|
|
|
|
|
|
clickdepartment(item) {
|
|
|
|
|
|
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
2024-07-08 12:40:02 +08:00
|
|
|
|
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
2024-07-08 09:28:15 +08:00
|
|
|
|
this.queryParams.departmentId = item.itemid
|
|
|
|
|
|
this.departmentName = item.itemName
|
|
|
|
|
|
this.informationqueryParams.hospitalAgencyId = item.hospitalAgencyId
|
|
|
|
|
|
if (item.hospitalAgencyId) {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
}
|
2024-07-08 12:40:02 +08:00
|
|
|
|
this.$forceUpdate()
|
2024-07-08 09:28:15 +08:00
|
|
|
|
},
|
2024-02-28 11:50:32 +08:00
|
|
|
|
// 科室列表
|
|
|
|
|
|
informationInfoinfo() {
|
|
|
|
|
|
department(this.informationqueryParams).then((response) => {
|
|
|
|
|
|
this.infolist = response.rows;
|
|
|
|
|
|
this.totaldepartment = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 科室名称重置
|
|
|
|
|
|
addresetQuerylist() {
|
|
|
|
|
|
this.informationqueryParams = {
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
2024-07-08 10:49:01 +08:00
|
|
|
|
hospitalAgencyId: this.queryParams.hospitalAgencyId
|
2024-02-28 11:50:32 +08:00
|
|
|
|
};
|
|
|
|
|
|
this.informationInfoinfo();
|
|
|
|
|
|
},
|
|
|
|
|
|
innerVisiblecancel() {
|
|
|
|
|
|
this.innerVisibleshow = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
// 科室名称圆点按钮
|
|
|
|
|
|
nurseclick(row) {
|
2024-05-08 17:03:10 +08:00
|
|
|
|
this.form.departmentId = row.id;
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.departmentName = row.departmentName;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.departmentName = row.departmentName;
|
2024-03-06 11:56:58 +08:00
|
|
|
|
this.form.diseaseTypeId = '';
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.diseaseTypeName = '请选择病种';
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.innerVisibleshow = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
// 病种列表
|
|
|
|
|
|
infodisease() {
|
|
|
|
|
|
listDisease(this.querydisease).then((response) => {
|
|
|
|
|
|
this.listdisease = response.rows;
|
|
|
|
|
|
this.diseasetotal = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 点击病种
|
|
|
|
|
|
clickdisease() {
|
2024-07-08 10:49:01 +08:00
|
|
|
|
if (this.form.departmentName == '请选择科室') {
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.$modal.msgError("请先选择科室");
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.querydisease.departmentId = this.form.departmentId
|
|
|
|
|
|
this.infodisease()
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.diseaseshowst = true;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
// 病种名称圆点按钮
|
|
|
|
|
|
nurseclickdisease(row) {
|
2024-05-09 13:51:29 +08:00
|
|
|
|
this.form.diseaseTypeId = row.id;
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.diseaseTypeName = row.diseaseTypeName;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.diseaseshowst = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
// 重置
|
|
|
|
|
|
resetdisease() {
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.querydisease = {
|
2024-02-28 11:50:32 +08:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
};
|
|
|
|
|
|
this.infodisease()
|
|
|
|
|
|
},
|
|
|
|
|
|
canceldiseases() {
|
|
|
|
|
|
this.diseaseshowst = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 查询话术信息列表 */
|
|
|
|
|
|
getList() {
|
|
|
|
|
|
this.loading = true;
|
|
|
|
|
|
listScript(this.queryParams).then(response => {
|
|
|
|
|
|
this.scriptList = response.rows;
|
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
// 取消按钮
|
|
|
|
|
|
cancel() {
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.reset();
|
|
|
|
|
|
},
|
|
|
|
|
|
// 表单重置
|
|
|
|
|
|
reset() {
|
|
|
|
|
|
this.form = {
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
departmentId: null,
|
2024-03-29 09:33:12 +08:00
|
|
|
|
scriptSort: undefined,
|
2024-02-28 11:50:32 +08:00
|
|
|
|
departmentName: null,
|
|
|
|
|
|
diseaseTypeId: null,
|
|
|
|
|
|
diseaseTypeName: null,
|
|
|
|
|
|
diseaseTypeCode: null,
|
|
|
|
|
|
commonScriptName: null,
|
2024-03-29 09:33:12 +08:00
|
|
|
|
scriptFilePath: null,
|
2024-02-28 11:50:32 +08:00
|
|
|
|
scriptName: null,
|
|
|
|
|
|
scriptId: null,
|
|
|
|
|
|
platformId: null,
|
|
|
|
|
|
scriptStatus: "",
|
|
|
|
|
|
scriptIntroduction: null,
|
|
|
|
|
|
scriptRemark: null,
|
|
|
|
|
|
createBy: null,
|
|
|
|
|
|
createTime: null,
|
|
|
|
|
|
updateBy: null,
|
|
|
|
|
|
updateTime: null
|
|
|
|
|
|
};
|
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
|
handleQuery() {
|
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
|
resetQuery() {
|
2024-03-06 09:53:08 +08:00
|
|
|
|
this.queryParams = {
|
2024-02-28 11:50:32 +08:00
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
departmentId: null,
|
|
|
|
|
|
departmentName: null,
|
|
|
|
|
|
diseaseTypeId: null,
|
|
|
|
|
|
diseaseTypeName: null,
|
|
|
|
|
|
commonScriptName: null,
|
|
|
|
|
|
scriptName: null,
|
|
|
|
|
|
scriptId: null,
|
|
|
|
|
|
platformId: null,
|
|
|
|
|
|
scriptStatus: null,
|
|
|
|
|
|
scriptIntroduction: null,
|
|
|
|
|
|
scriptSort: null,
|
|
|
|
|
|
scriptRemark: null,
|
2024-07-08 10:49:01 +08:00
|
|
|
|
hospitalAgencyId: JSON.parse(localStorage.getItem('user')).hospitalAgencyId
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.informationqueryParams.hospitalAgencyId = JSON.parse(localStorage.getItem('user')).hospitalAgencyId
|
|
|
|
|
|
this.$refs.DepartmentList.resetQuery()
|
2024-07-08 14:33:13 +08:00
|
|
|
|
this.resetForm("queryForms");
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.handleQuery();
|
2024-02-28 11:50:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
|
handleAdd() {
|
|
|
|
|
|
this.reset();
|
2024-07-08 10:49:01 +08:00
|
|
|
|
if (this.queryParams.departmentId) {
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.form.departmentName = this.departmentName
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.departmentId = this.queryParams.departmentId
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.form.departmentName = '请选择科室'
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.diseaseTypeName = "请选择病种";
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.title = "添加话术信息";
|
2024-02-29 17:15:23 +08:00
|
|
|
|
// this.getDisease();
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.open = true;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
// 病种列表
|
|
|
|
|
|
getDisease() {
|
|
|
|
|
|
departmentDisease(this.queryDisease).then(response => {
|
|
|
|
|
|
this.optionsDisease = response.rows
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
|
handleUpdate(row) {
|
2024-03-06 09:53:08 +08:00
|
|
|
|
this.reset();
|
|
|
|
|
|
const id = row.id || this.ids
|
|
|
|
|
|
// this.getDisease();
|
|
|
|
|
|
getScript(id).then(response => {
|
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
this.departmentName = response.data.departmentName
|
2024-03-29 09:33:12 +08:00
|
|
|
|
if (!this.form.scriptSort) {
|
|
|
|
|
|
this.form.scriptSort = undefined
|
2024-03-26 14:55:54 +08:00
|
|
|
|
}
|
2024-03-06 09:53:08 +08:00
|
|
|
|
this.title = "修改话术信息";
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.open = true;
|
2024-03-06 09:53:08 +08:00
|
|
|
|
});
|
2024-02-28 11:50:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
|
submitForm() {
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.form.hospitalAgencyId = this.queryParams.hospitalAgencyId
|
2024-07-08 12:40:02 +08:00
|
|
|
|
this.form.hospitalAgencyName = this.queryParams.hospitalAgencyName
|
2024-02-28 11:50:32 +08:00
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
|
if (valid) {
|
2024-04-19 13:32:26 +08:00
|
|
|
|
if (this.obj.length > 10) {
|
2024-06-13 15:49:26 +08:00
|
|
|
|
this.$message({
|
|
|
|
|
|
type: "error",
|
|
|
|
|
|
message: "话术排序最大长度为十位,请正确输入!"
|
2024-02-28 11:50:32 +08:00
|
|
|
|
});
|
|
|
|
|
|
} else {
|
2024-07-08 10:49:01 +08:00
|
|
|
|
if (!this.form.diseaseTypeId) {
|
|
|
|
|
|
this.form.diseaseTypeName = ''
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
|
updateScript(this.form).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.getList();
|
2024-07-08 09:28:15 +08:00
|
|
|
|
this.$refs.DepartmentList.Departmentlist()
|
2024-06-13 15:49:26 +08:00
|
|
|
|
});
|
2024-03-06 09:53:08 +08:00
|
|
|
|
} else {
|
2024-06-13 15:49:26 +08:00
|
|
|
|
addScript(this.form).then(response => {
|
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
|
this.open = false;
|
|
|
|
|
|
this.getList();
|
2024-07-08 09:28:15 +08:00
|
|
|
|
this.$refs.DepartmentList.Departmentlist()
|
2024-06-13 15:49:26 +08:00
|
|
|
|
});
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
2024-03-06 09:53:08 +08:00
|
|
|
|
}
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
|
this.$modal.confirm('是否删除此话术?').then(function () {
|
|
|
|
|
|
return delScript(ids);
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
2024-07-08 10:49:01 +08:00
|
|
|
|
this.$refs.DepartmentList.Departmentlist()
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}).catch(() => { });
|
|
|
|
|
|
},
|
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
|
handleExport() {
|
|
|
|
|
|
this.download('manage/script/export', {
|
|
|
|
|
|
...this.queryParams
|
|
|
|
|
|
}, `script_${new Date().getTime()}.xlsx`)
|
2024-06-14 16:15:42 +08:00
|
|
|
|
},
|
2024-06-24 14:35:52 +08:00
|
|
|
|
updateCPage(index, size) {
|
|
|
|
|
|
this.queryParams.pageNum = index
|
|
|
|
|
|
this.queryParams.pageSize = size
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
},
|
|
|
|
|
|
updateCPagetwo(index, size) {
|
|
|
|
|
|
this.informationqueryParams.pageNum = index
|
|
|
|
|
|
this.informationqueryParams.pageSize = size
|
|
|
|
|
|
this.informationInfoinfo();
|
|
|
|
|
|
},
|
|
|
|
|
|
updateCPagethree(index, size) {
|
|
|
|
|
|
this.querydisease.pageNum = index
|
|
|
|
|
|
this.querydisease.pageSize = size
|
|
|
|
|
|
this.infodisease();
|
|
|
|
|
|
},
|
2024-06-14 16:15:42 +08:00
|
|
|
|
// 获取表格最高高度
|
|
|
|
|
|
getMaxTableHeight() {
|
|
|
|
|
|
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
|
|
|
|
|
const layoutDiv = this.$refs.layout
|
2024-06-16 15:31:29 +08:00
|
|
|
|
const formDiv = this.$refs.topform
|
2024-06-14 16:15:42 +08:00
|
|
|
|
const mb8Div = this.$refs.mb8
|
|
|
|
|
|
this.maxTableHeight =
|
|
|
|
|
|
windowInnerHeight - 134 -
|
|
|
|
|
|
this.getBoxPadding(layoutDiv) -
|
|
|
|
|
|
this.getBoxHeight(mb8Div) -
|
|
|
|
|
|
this.getBoxHeight(formDiv)
|
|
|
|
|
|
},
|
|
|
|
|
|
// 屏幕resize监听
|
|
|
|
|
|
screenChange() {
|
|
|
|
|
|
// 屏幕resize监听事件:一旦屏幕宽高发生变化,就会执行resize
|
|
|
|
|
|
window.addEventListener('resize', this.getMaxTableHeight, true)
|
|
|
|
|
|
// 将屏幕监听事件移除
|
|
|
|
|
|
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
|
|
|
|
|
|
// 或者将这里的方法直接写在beforeDestroy函数中也可以
|
|
|
|
|
|
this.$once('hook:beforeDestroy', () => {
|
|
|
|
|
|
window.removeEventListener('resize', this.getMaxTableHeight, true)
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
</script>
|
2024-03-26 10:59:35 +08:00
|
|
|
|
<style lang="scss" scoped>
|
2024-06-24 14:35:52 +08:00
|
|
|
|
::v-deep .el-dialog__body {
|
|
|
|
|
|
padding-bottom: 60px !important;
|
2024-06-19 09:48:07 +08:00
|
|
|
|
}
|
2024-06-24 14:35:52 +08:00
|
|
|
|
|
2024-03-29 09:33:12 +08:00
|
|
|
|
::v-deep .el-input-number .el-input__inner {
|
2024-03-11 15:21:26 +08:00
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
2024-05-14 17:44:34 +08:00
|
|
|
|
|
2024-03-29 09:33:12 +08:00
|
|
|
|
::v-deep .el-textarea__inner {
|
2024-03-28 09:31:40 +08:00
|
|
|
|
width: 206px;
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
|
|
|
|
|
.dialog {
|
2024-05-14 17:44:34 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-03-06 13:42:48 +08:00
|
|
|
|
.leftscript {
|
2024-06-13 15:49:26 +08:00
|
|
|
|
height: calc(100vh - 124px);
|
2024-02-28 11:50:32 +08:00
|
|
|
|
overflow: auto;
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-02-28 11:50:32 +08:00
|
|
|
|
.name {
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-02-28 11:50:32 +08:00
|
|
|
|
.listitem {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
border-bottom: 1px solid #dcdfe6;
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-03-06 09:53:08 +08:00
|
|
|
|
.count {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
// right: -172px;
|
|
|
|
|
|
left: 210px;
|
|
|
|
|
|
color: #a4a6aa;
|
|
|
|
|
|
top: -35px;
|
|
|
|
|
|
font-size: 13px;
|
2024-02-28 11:50:32 +08:00
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-02-28 11:50:32 +08:00
|
|
|
|
.all {
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
|
padding-left: 13px;
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-02-28 11:50:32 +08:00
|
|
|
|
.allactive {
|
|
|
|
|
|
background: #e8f4ff;
|
|
|
|
|
|
height: 50px;
|
|
|
|
|
|
line-height: 50px;
|
|
|
|
|
|
padding-left: 13px;
|
|
|
|
|
|
border-left: 3px solid #4d9de7;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-06-13 15:49:26 +08:00
|
|
|
|
|
2024-02-28 11:50:32 +08:00
|
|
|
|
.button {
|
|
|
|
|
|
display: inline-block;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
left: 20px;
|
|
|
|
|
|
top: -11px;
|
|
|
|
|
|
}
|
2024-06-14 16:15:42 +08:00
|
|
|
|
|
|
|
|
|
|
.app-container {
|
|
|
|
|
|
padding: 20px 0 0 20px !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-row {
|
|
|
|
|
|
height: 100% !important;
|
|
|
|
|
|
}
|
2024-02-28 11:50:32 +08:00
|
|
|
|
</style>
|