Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d20f6c431 | |||
| ba2c8f2af5 | |||
| b135137017 | |||
| 7096d597fd | |||
| b71f02d9d3 | |||
| 4381b08be6 | |||
|
|
c1d646d1fc | ||
|
|
f8c4646ead | ||
|
|
6fdc177935 | ||
|
|
e3782b3f3c | ||
|
|
bd37c1917f |
@ -5,11 +5,7 @@ VUE_APP_TITLE = 新医路院后患者管理平台
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/开发环境
|
# 新医路院后患者管理平台/开发环境
|
||||||
# VUE_APP_BASE_API = 'http://192.168.20.37:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
# VUE_APP_BASE_API = 'http://8.131.93.145:54011'
|
|
||||||
# VUE_APP_BASE_API = 'http://192.168.0.95:9090'
|
|
||||||
# VUE_APP_BASE_API = 'https://1608.xinelu.cn'
|
|
||||||
VUE_APP_BASE_API = 'http://192.168.124.7:19090'
|
|
||||||
|
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@ -5,9 +5,5 @@ VUE_APP_TITLE = 新医路院后患者管理平台
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/生产环境
|
# 新医路院后患者管理平台/生产环境
|
||||||
# VUE_APP_BASE_API = 'http://192.168.20.37:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
# VUE_APP_BASE_API = 'http://8.131.93.145:54011'
|
|
||||||
# VUE_APP_BASE_API = 'http://192.168.0.95:9090'
|
|
||||||
# VUE_APP_BASE_API = 'https://1608.xinelu.cn'
|
|
||||||
VUE_APP_BASE_API = 'http://192.168.124.7:19090'
|
|
||||||
|
|
||||||
|
|||||||
@ -7,8 +7,4 @@ NODE_ENV = production
|
|||||||
ENV = 'staging'
|
ENV = 'staging'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/测试环境
|
# 新医路院后患者管理平台/测试环境
|
||||||
# VUE_APP_BASE_API = 'http://192.168.20.37:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
# VUE_APP_BASE_API = 'http://8.131.93.145:54011'
|
|
||||||
# VUE_APP_BASE_API = 'http://192.168.0.95:9090'
|
|
||||||
# VUE_APP_BASE_API = 'https://1608.xinelu.cn'
|
|
||||||
VUE_APP_BASE_API = 'http://192.168.124.7:19090'
|
|
||||||
|
|||||||
@ -50,3 +50,10 @@ export function listMessageNum(query) {
|
|||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 查询字典信息(当前页面)
|
||||||
|
export function type(dictValue) {
|
||||||
|
return request({
|
||||||
|
url: '/system/dict/data/type/' + dictValue,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
70
src/api/system/batchSendTaskInfo.js
Normal file
70
src/api/system/batchSendTaskInfo.js
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询批量推送任务信息列表
|
||||||
|
export function listBatchSendTaskInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询批量推送任务信息详细
|
||||||
|
export function getBatchSendTaskInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增批量推送任务信息
|
||||||
|
export function addBatchSendTaskInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改批量推送任务信息
|
||||||
|
export function updateBatchSendTaskInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除批量推送任务信息
|
||||||
|
export function delBatchSendTaskInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取总结标签数据
|
||||||
|
export function getPhysicalExaminationLabel() {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/getPhysicalExaminationLabel',
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询不分页数据
|
||||||
|
export function AllBatchSendTaskInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/batchSendTaskList',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 生成推送任务
|
||||||
|
export function generatePushTask(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskInfo/batchSend',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
53
src/api/system/batchSendTaskRecordInfo.js
Normal file
53
src/api/system/batchSendTaskRecordInfo.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询批量推送任务记录列表
|
||||||
|
export function listBatchSendTaskRecordInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询批量推送任务记录详细
|
||||||
|
export function getBatchSendTaskRecordInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增批量推送任务记录
|
||||||
|
export function addBatchSendTaskRecordInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改批量推送任务记录
|
||||||
|
export function updateBatchSendTaskRecordInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除批量推送任务记录
|
||||||
|
export function delBatchSendTaskRecordInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 选择推送类型查询模板
|
||||||
|
export function selectTemplateByType(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/batchSendTaskRecordInfo/getTemplate',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
53
src/api/system/billInfo.js
Normal file
53
src/api/system/billInfo.js
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询账单信息列表
|
||||||
|
export function listBillInfo(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询账单信息详细
|
||||||
|
export function getBillInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增账单信息
|
||||||
|
export function addBillInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改账单信息
|
||||||
|
export function updateBillInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除账单信息
|
||||||
|
export function delBillInfo(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查看单条信息
|
||||||
|
export function lookBillInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/billInfo/view',
|
||||||
|
method: 'get',
|
||||||
|
params: data
|
||||||
|
})
|
||||||
|
}
|
||||||
44
src/api/system/phoneDialRecord.js
Normal file
44
src/api/system/phoneDialRecord.js
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询电话拨打记录列表
|
||||||
|
export function listPhoneDialRecord(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/phoneDialRecord/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询电话拨打记录详细
|
||||||
|
export function getPhoneDialRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/phoneDialRecord/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增电话拨打记录
|
||||||
|
export function addPhoneDialRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/phoneDialRecord',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改电话拨打记录
|
||||||
|
export function updatePhoneDialRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/phoneDialRecord',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除电话拨打记录
|
||||||
|
export function delPhoneDialRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/phoneDialRecord/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
44
src/api/system/shortMessageSendRecord.js
Normal file
44
src/api/system/shortMessageSendRecord.js
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询短信发送结果记录列表
|
||||||
|
export function listShortMessageSendRecord(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/shortMessageSendRecord/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询短信发送结果记录详细
|
||||||
|
export function getShortMessageSendRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/shortMessageSendRecord/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增短信发送结果记录
|
||||||
|
export function addShortMessageSendRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/shortMessageSendRecord',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改短信发送结果记录
|
||||||
|
export function updateShortMessageSendRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/shortMessageSendRecord',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除短信发送结果记录
|
||||||
|
export function delShortMessageSendRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/shortMessageSendRecord/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -257,6 +257,9 @@
|
|||||||
<span style="color: #f56c6c">
|
<span style="color: #f56c6c">
|
||||||
{{ scope.row.nodeExecuteStatus == "UNEXECUTED" ? "未执行" : "" }}
|
{{ scope.row.nodeExecuteStatus == "UNEXECUTED" ? "未执行" : "" }}
|
||||||
</span>
|
</span>
|
||||||
|
<span style="color: #409eff">
|
||||||
|
{{ scope.row.nodeExecuteStatus == "EXECUTING" ? "执行中" : "" }}
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
318
src/views/system/CreatePushTask/index.vue
Normal file
318
src/views/system/CreatePushTask/index.vue
Normal file
@ -0,0 +1,318 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-card>
|
||||||
|
<h2 style="margin-bottom: 20px">创建推送任务</h2>
|
||||||
|
<el-form :model="form" ref="form" label-width="120px" :rules="rules">
|
||||||
|
<el-form-item label="任务名称" prop="manageRouteName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.manageRouteName"
|
||||||
|
placeholder="请输入任务名称"
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="指定时间" prop="nodePlanTime">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="form.nodePlanTime"
|
||||||
|
type="datetime"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
placeholder="请选择指定时间"
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="任务节点类型" prop="batchTaskSource">
|
||||||
|
<el-radio-group v-model="form.batchTaskSource">
|
||||||
|
<el-radio label="telephone">电话外呼</el-radio>
|
||||||
|
<el-radio label="message">短信推送</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<!-- 电话外呼部分 -->
|
||||||
|
<template v-if="form.batchTaskSource === 'telephone'">
|
||||||
|
<el-form-item label="话术模板" prop="phoneTemplate">
|
||||||
|
<scripts
|
||||||
|
@on-template="handlePhoneTemplateSelect"
|
||||||
|
:templateId="form.phoneTemplateId"
|
||||||
|
:node="form.phoneDialMethod"
|
||||||
|
:templateName="form.phoneTemplate"
|
||||||
|
></scripts>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="话术简介" prop="phoneDesc">
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneNodeContent"
|
||||||
|
type="textarea"
|
||||||
|
placeholder="话术简介"
|
||||||
|
autosize
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="话术变量" prop="phoneVars">
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneVars"
|
||||||
|
type="textarea"
|
||||||
|
placeholder="请输入话术变量(如有多个请用逗号分隔)"
|
||||||
|
/>
|
||||||
|
</el-form-item> -->
|
||||||
|
<el-form-item label="重播次数" prop="phoneRedialTimes">
|
||||||
|
<el-select v-model="form.phoneRedialTimes" style="width: 200px">
|
||||||
|
<el-option
|
||||||
|
v-for="item in optionslisttime"
|
||||||
|
:key="item.dictValue"
|
||||||
|
:label="item.dictLabel"
|
||||||
|
:value="item.dictValue"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="时间间隔(分)" prop="phoneTimeInterval">
|
||||||
|
<el-input
|
||||||
|
v-model.number="form.phoneTimeInterval"
|
||||||
|
oninput="value=value.replace(/[^\d]/g,'')"
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- 短信推送部分 -->
|
||||||
|
<template v-if="form.batchTaskSource === 'message'">
|
||||||
|
<el-form-item label="短信模板" prop="smsTemplate">
|
||||||
|
<message
|
||||||
|
@on-template="handleSmsTemplateSelect"
|
||||||
|
:templateId="form.smsTemplateId"
|
||||||
|
:templateName="form.smsTemplate"
|
||||||
|
></message>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信简介" prop="messageNodeContent">
|
||||||
|
<el-input
|
||||||
|
v-model="form.messageNodeContent"
|
||||||
|
type="textarea"
|
||||||
|
placeholder="短信简介"
|
||||||
|
autosize
|
||||||
|
disabled
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信变量" v-if="smsVarsVisible">
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
v-for="key in smsVarKeys"
|
||||||
|
:key="key"
|
||||||
|
style="display: flex; align-items: center; gap: 8px"
|
||||||
|
>
|
||||||
|
<el-form-item :label="key">
|
||||||
|
<el-input
|
||||||
|
v-model="form.vars[key]"
|
||||||
|
:placeholder="'请输入' + key"
|
||||||
|
style="width: 200px"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" @click="handleSubmit">保存</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import scripts from "../components/script.vue";
|
||||||
|
import message from "../components/message.vue";
|
||||||
|
import { getAgencytype } from "@/api/system/agency";
|
||||||
|
import {
|
||||||
|
AllBatchSendTaskInfo,
|
||||||
|
generatePushTask,
|
||||||
|
} from "@/api/system/batchSendTaskInfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "CreatePushTask",
|
||||||
|
components: { scripts, message },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
rules: {
|
||||||
|
manageRouteName: [
|
||||||
|
{ required: true, message: "任务名称不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
// nodePlanTime: [
|
||||||
|
// { required: true, message: "指定时间不能为空", trigger: "change" },
|
||||||
|
// ],
|
||||||
|
batchTaskSource: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "任务节点类型不能为空",
|
||||||
|
trigger: "change",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
pickerOptions: {
|
||||||
|
disabledDate(time) {
|
||||||
|
return time.getTime() < Date.now() - 8.64e7;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
optionslisttime: [],
|
||||||
|
smsVarsVisible: false,
|
||||||
|
smsVarKeys: [],
|
||||||
|
form: {
|
||||||
|
manageRouteName: "",
|
||||||
|
nodePlanTime: "",
|
||||||
|
batchTaskSource: "",
|
||||||
|
phoneDialMethod: "AI",
|
||||||
|
phoneTemplateId: "",
|
||||||
|
phoneTemplate: "",
|
||||||
|
phoneNodeContent: "",
|
||||||
|
scriptInfoId: "",
|
||||||
|
robotPublishId: "",
|
||||||
|
phoneTemplateName: "",
|
||||||
|
phoneDesc: "",
|
||||||
|
phoneVars: "",
|
||||||
|
phoneRedialTimes: "",
|
||||||
|
phoneTimeInterval: "",
|
||||||
|
smsTemplateId: "",
|
||||||
|
smsTemplate: "",
|
||||||
|
messageTemplateId: "",
|
||||||
|
messageTemplateCode: "",
|
||||||
|
messageTemplateName: "",
|
||||||
|
messageNodeContent: "",
|
||||||
|
physicalExaminationLabel: "",
|
||||||
|
vars: {},
|
||||||
|
list: [],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.infolistMESSAGE();
|
||||||
|
this.form.physicalExaminationLabel =
|
||||||
|
this.$route.query.physicalExaminationLabel || "";
|
||||||
|
AllBatchSendTaskInfo(this.$route.query).then((res) => {
|
||||||
|
this.form.list = res || [];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
infolistMESSAGE() {
|
||||||
|
const dictType = "redial_times";
|
||||||
|
getAgencytype(dictType).then((res) => {
|
||||||
|
this.optionslisttime = res.data || [];
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handlePhoneTemplateSelect(item) {
|
||||||
|
this.form.phoneTemplateId = item.phoneTemplateId || "";
|
||||||
|
this.form.phoneTemplate = item.templateName || "";
|
||||||
|
this.form.phoneNodeContent = item.templateContent || "";
|
||||||
|
this.form.robotPublishId = item.robotPublishId || "";
|
||||||
|
this.form.phoneTemplateName = item.templateName || "";
|
||||||
|
this.form.scriptInfoId = item.scriptInfoId || "";
|
||||||
|
},
|
||||||
|
handleSmsTemplateSelect(item) {
|
||||||
|
this.form.smsTemplateId = item.templateId || "";
|
||||||
|
this.form.smsTemplate = item.templateName || "";
|
||||||
|
this.form.messageTemplateId = item.templateId || "";
|
||||||
|
this.form.messageTemplateCode = item.messageTemplateCode || "";
|
||||||
|
this.form.messageTemplateName = item.templateName || "";
|
||||||
|
this.form.messageNodeContent = item.templateContent || "";
|
||||||
|
const variablesStr = item.variables;
|
||||||
|
if (variablesStr && String(variablesStr).trim() !== "") {
|
||||||
|
const keys = String(variablesStr)
|
||||||
|
.split("|")
|
||||||
|
.map((s) => s.trim())
|
||||||
|
.filter(Boolean);
|
||||||
|
|
||||||
|
this.smsVarsVisible = keys.length > 0;
|
||||||
|
this.smsVarKeys = keys;
|
||||||
|
|
||||||
|
const keySet = new Set(keys);
|
||||||
|
|
||||||
|
// 写入模板变量占位符(例如 month|day)
|
||||||
|
keys.forEach((key) => {
|
||||||
|
if (this.form.vars[key] === undefined)
|
||||||
|
this.$set(this.form.vars, key, "");
|
||||||
|
});
|
||||||
|
|
||||||
|
// 清理不在模板变量里的旧值,避免沿用旧模板变量
|
||||||
|
Object.keys(this.form.vars).forEach((existingKey) => {
|
||||||
|
if (!keySet.has(existingKey))
|
||||||
|
this.$delete(this.form.vars, existingKey);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.smsVarsVisible = false;
|
||||||
|
this.smsVarKeys = [];
|
||||||
|
Object.keys(this.form.vars).forEach((existingKey) => {
|
||||||
|
this.$delete(this.form.vars, existingKey);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (
|
||||||
|
this.form.batchTaskSource == "message" &&
|
||||||
|
!this.form.messageTemplateName
|
||||||
|
) {
|
||||||
|
this.$message.error("请选择短信模板");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (
|
||||||
|
this.form.batchTaskSource == "telephone" &&
|
||||||
|
!this.form.phoneTemplateName
|
||||||
|
) {
|
||||||
|
this.$message.error("请选择话术模板");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: "加载中",
|
||||||
|
spinner: "el-icon-loading",
|
||||||
|
background: "rgba(0, 0, 0, 0.7)",
|
||||||
|
});
|
||||||
|
// 获取此时时间,并格式化为 yyyy-MM-dd HH:mm:ss
|
||||||
|
const now = new Date();
|
||||||
|
const pad = (value) => String(value).padStart(2, "0");
|
||||||
|
this.form.nodePlanTime = `${now.getFullYear()}-${pad(
|
||||||
|
now.getMonth() + 1
|
||||||
|
)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(
|
||||||
|
now.getMinutes()
|
||||||
|
)}:${pad(now.getSeconds())}`;
|
||||||
|
|
||||||
|
generatePushTask(this.form).then((res) => {
|
||||||
|
loading.close();
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success(res.msg);
|
||||||
|
// 延迟2秒后关闭当前页面并刷新上一个页面的标签页
|
||||||
|
setTimeout(() => {
|
||||||
|
this.$store
|
||||||
|
.dispatch("tagsView/delView", this.$route)
|
||||||
|
.then(() => {
|
||||||
|
this.$router.go(-1);
|
||||||
|
});
|
||||||
|
}, 2000);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.app-container {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::v-deep .el-form-item__label {
|
||||||
|
font-size: 16px !important;
|
||||||
|
}
|
||||||
|
.el-textarea {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
843
src/views/system/batchSendTaskInfo/index.vue
Normal file
843
src/views/system/batchSendTaskInfo/index.vue
Normal file
@ -0,0 +1,843 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="app-container"
|
||||||
|
style="max-height: 100vh; overflow-y: auto; overflow-x: hidden"
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="流水号" prop="sn">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.sn"
|
||||||
|
placeholder="请输入流水号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="导入批次" prop="importName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.importName"
|
||||||
|
placeholder="请输入导入批次名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="团体" prop="teamName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.teamName"
|
||||||
|
placeholder="请输入团体名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="科室名称" prop="departmentName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.departmentName"
|
||||||
|
placeholder="请输入科室名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="姓名" prop="patientName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientName"
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="电话" prop="patientPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientPhone"
|
||||||
|
placeholder="请输入电话"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="年龄" prop="age">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.age"
|
||||||
|
placeholder="请输入年龄"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="身份证号" prop="cardNo">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.cardNo"
|
||||||
|
placeholder="请输入身份证号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总结标签" prop="physicalExaminationLabel">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.physicalExaminationLabel"
|
||||||
|
placeholder="请选择总结标签"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in ExaminationLabelList"
|
||||||
|
:key="item"
|
||||||
|
:label="item"
|
||||||
|
:value="item"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="就诊/出院/体检时间"
|
||||||
|
prop="visitDate"
|
||||||
|
label-width="135px"
|
||||||
|
>
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="visitDate"
|
||||||
|
type="daterange"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
range-separator="至"
|
||||||
|
start-placeholder="开始日期"
|
||||||
|
end-placeholder="结束日期"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-upload2"
|
||||||
|
size="mini"
|
||||||
|
@click="uploadOpen = true"
|
||||||
|
>导入</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<!-- 导入弹窗 -->
|
||||||
|
<el-dialog
|
||||||
|
title="导入"
|
||||||
|
:visible.sync="uploadOpen"
|
||||||
|
width="400px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
:model="uploadForm"
|
||||||
|
ref="uploadForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
label-width="110px"
|
||||||
|
>
|
||||||
|
<el-form-item label="批次名称" prop="importName">
|
||||||
|
<el-input
|
||||||
|
v-model="uploadForm.importName"
|
||||||
|
placeholder="请输入批次名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-upload
|
||||||
|
drag
|
||||||
|
class="upload-demo"
|
||||||
|
ref="upload"
|
||||||
|
:action="uploadAction.url"
|
||||||
|
:headers="uploadAction.headers"
|
||||||
|
:on-preview="handlePreview"
|
||||||
|
:on-remove="handleRemove"
|
||||||
|
:file-list="fileList"
|
||||||
|
:auto-upload="false"
|
||||||
|
:on-success="handleUploadSuccess"
|
||||||
|
:data="uploadForm"
|
||||||
|
:on-exceed="handleExceed"
|
||||||
|
:limit="1"
|
||||||
|
>
|
||||||
|
<i class="el-icon-upload"></i>
|
||||||
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||||
|
<div class="el-upload__tip" slot="tip" style="line-height: 25px">
|
||||||
|
<div>
|
||||||
|
1.<span
|
||||||
|
style="color: #1890ff; cursor: pointer"
|
||||||
|
@click="downloadTemplate"
|
||||||
|
>下载导入模板</span
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
<div>2.最大支持2MB的xls/xlsx文件</div>
|
||||||
|
<div>3.一次导入患者数量不能超过5000</div>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitUpload">确 定</el-button>
|
||||||
|
<el-button @click="uploadCancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit-outline"
|
||||||
|
size="mini"
|
||||||
|
@click="handleCreatePushTask"
|
||||||
|
>创建推送任务</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="el-icon-delete"
|
||||||
|
size="mini"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['system:batchSendTaskInfo:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar
|
||||||
|
style="margin-right: 20px"
|
||||||
|
:showSearch.sync="showSearch"
|
||||||
|
@queryTable="getList"
|
||||||
|
></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="batchSendTaskInfoList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
style="margin-bottom: 40px"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
label="流水号"
|
||||||
|
align="center"
|
||||||
|
prop="sn"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="导入批次" align="center" prop="importName" />
|
||||||
|
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||||
|
<el-table-column
|
||||||
|
label="电话"
|
||||||
|
align="center"
|
||||||
|
prop="patientPhone"
|
||||||
|
width="110"
|
||||||
|
/>
|
||||||
|
<el-table-column label="年龄" align="center" prop="age" />
|
||||||
|
<el-table-column
|
||||||
|
label="身份证号"
|
||||||
|
align="center"
|
||||||
|
prop="cardNo"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="人员类型" align="center" prop="personnelType" />
|
||||||
|
<el-table-column label="团体" align="center" prop="teamName" />
|
||||||
|
<el-table-column label="科室名称" align="center" prop="departmentName" />
|
||||||
|
<el-table-column
|
||||||
|
label="就诊/出院/体检时间"
|
||||||
|
align="center"
|
||||||
|
prop="visitDate"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.visitDate, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="门诊/住院/体检号"
|
||||||
|
align="center"
|
||||||
|
prop="inHospitalNumber"
|
||||||
|
width="130"
|
||||||
|
/>
|
||||||
|
<el-table-column label="人群" align="center" prop="crowdName" />
|
||||||
|
<el-table-column
|
||||||
|
label="总结标签"
|
||||||
|
align="center"
|
||||||
|
prop="physicalExaminationLabel"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-view"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:batchSendTaskInfo:edit']"
|
||||||
|
>查看</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['system:batchSendTaskInfo:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 创建推送任务弹窗 -->
|
||||||
|
<el-dialog
|
||||||
|
title="请确认创建推送任务的名单"
|
||||||
|
:visible.sync="createPushTaskOpen"
|
||||||
|
width="85%"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<el-table
|
||||||
|
v-loading="createPushTaskLoading"
|
||||||
|
:data="createPushTaskList"
|
||||||
|
border
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
label="流水号"
|
||||||
|
align="center"
|
||||||
|
prop="sn"
|
||||||
|
width="120"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="导入批次" align="center" prop="importName" />
|
||||||
|
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||||
|
<el-table-column label="电话" align="center" prop="patientPhone" />
|
||||||
|
<el-table-column label="年龄" align="center" prop="age" />
|
||||||
|
<el-table-column
|
||||||
|
label="人员类型"
|
||||||
|
align="center"
|
||||||
|
prop="personnelType"
|
||||||
|
width="190"
|
||||||
|
/>
|
||||||
|
<el-table-column label="团体" align="center" prop="teamName" />
|
||||||
|
<el-table-column
|
||||||
|
label="就诊/出院/体检时间"
|
||||||
|
align="center"
|
||||||
|
prop="visitDate"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.visitDate, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button size="mini" type="text" @click="removeRow(scope.$index)"
|
||||||
|
>移除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<pagination
|
||||||
|
v-show="createPushTaskTotal > 0"
|
||||||
|
:total="createPushTaskTotal"
|
||||||
|
:page.sync="createPushTaskQueryParams.pageNum"
|
||||||
|
:limit.sync="createPushTaskQueryParams.pageSize"
|
||||||
|
@pagination="getCreatePushTaskList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer" style="text-align: center">
|
||||||
|
<el-button @click="createPushTaskOpen = false">关闭</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
v-show="createPushTaskList.length > 0"
|
||||||
|
@click="toNewPage"
|
||||||
|
>确认并创建推送任务</el-button
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
<!-- 添加或修改批量推送任务信息对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="135px">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="流水号" prop="sn">
|
||||||
|
<el-input v-model="form.sn" placeholder="请输入流水号" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="导入批次" prop="importName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.importName"
|
||||||
|
placeholder="请输入导入批次"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="团体名称" prop="teamName">
|
||||||
|
<el-input v-model="form.teamName" placeholder="请输入团体名称" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="所属医院" prop="hospitalAgencyName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.hospitalAgencyName"
|
||||||
|
placeholder="请输入所属医院"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="科室名称" prop="departmentName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.departmentName"
|
||||||
|
placeholder="请输入科室名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="患者姓名" prop="patientName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.patientName"
|
||||||
|
placeholder="请输入患者姓名"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="门诊/住院/体检号" prop="inHospitalNumber">
|
||||||
|
<el-input
|
||||||
|
v-model="form.inHospitalNumber"
|
||||||
|
placeholder="请输入门诊/住院/体检号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="就诊/出院/体检时间" prop="visitDate">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="form.visitDate"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择就诊/出院/体检时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="患者电话" prop="patientPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="form.patientPhone"
|
||||||
|
placeholder="请输入患者电话"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="年龄" prop="age">
|
||||||
|
<el-input v-model="form.age" placeholder="请输入年龄" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="身份证号" prop="cardNo">
|
||||||
|
<el-input v-model="form.cardNo" placeholder="请输入身份证号" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="人群名称" prop="crowdName">
|
||||||
|
<el-input v-model="form.crowdName" placeholder="请输入人群名称" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-form-item
|
||||||
|
label="体检总结/主要诊断"
|
||||||
|
prop="physicalExaminationSummary"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="form.physicalExaminationSummary"
|
||||||
|
placeholder="请输入体检总结/主要诊断"
|
||||||
|
type="textarea"
|
||||||
|
:autosize="{ minRows: 2, maxRows: 10 }"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总结标签" prop="physicalExaminationLabel">
|
||||||
|
<el-input
|
||||||
|
v-model="form.physicalExaminationLabel"
|
||||||
|
placeholder="请输入总结标签"
|
||||||
|
type="textarea"
|
||||||
|
autosize
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listBatchSendTaskInfo,
|
||||||
|
getBatchSendTaskInfo,
|
||||||
|
delBatchSendTaskInfo,
|
||||||
|
addBatchSendTaskInfo,
|
||||||
|
updateBatchSendTaskInfo,
|
||||||
|
getPhysicalExaminationLabel,
|
||||||
|
} from "@/api/system/batchSendTaskInfo";
|
||||||
|
import { getToken } from "@/utils/auth";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "BatchSendTaskInfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
ExaminationLabelList: [],
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 创建推送任务弹窗
|
||||||
|
createPushTaskOpen: false,
|
||||||
|
createPushTaskLoading: false,
|
||||||
|
createPushTaskList: [],
|
||||||
|
createPushTaskTotal: 0,
|
||||||
|
createPushTaskQueryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
},
|
||||||
|
// 批量推送任务信息表格数据
|
||||||
|
batchSendTaskInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 导入弹窗
|
||||||
|
uploadOpen: false,
|
||||||
|
uploadForm: {
|
||||||
|
importName: "",
|
||||||
|
},
|
||||||
|
fileList: [],
|
||||||
|
uploadAction: {
|
||||||
|
url:
|
||||||
|
process.env.VUE_APP_BASE_API +
|
||||||
|
"/system/batchSendTaskInfo/batchSendTaskUpload",
|
||||||
|
headers: {
|
||||||
|
Authorization: "Bearer " + getToken(),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
startDate: null,
|
||||||
|
endDate: null,
|
||||||
|
orderNum: null,
|
||||||
|
sn: null,
|
||||||
|
importName: null,
|
||||||
|
teamName: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
hospitalAgencyName: null,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
visitDate: null,
|
||||||
|
inHospitalNumber: null,
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
age: null,
|
||||||
|
cardNo: null,
|
||||||
|
crowdId: null,
|
||||||
|
crowdName: null,
|
||||||
|
physicalExaminationSummary: null,
|
||||||
|
physicalExaminationLabel: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
sn: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "流水号/导入编号不能为空",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
inHospitalNumber: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "门诊/住院/体检号不能为空",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
patientName: [
|
||||||
|
{ required: true, message: "患者姓名不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
patientPhone: [
|
||||||
|
{ required: true, message: "患者电话不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
getPhysicalExaminationLabel().then((res) => {
|
||||||
|
this.ExaminationLabelList = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询批量推送任务信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listBatchSendTaskInfo(this.queryParams).then((response) => {
|
||||||
|
this.batchSendTaskInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
// 导入相关方法
|
||||||
|
submitUpload() {
|
||||||
|
this.$refs.upload.submit();
|
||||||
|
},
|
||||||
|
handleUploadSuccess(response) {
|
||||||
|
if (response.code === 200) {
|
||||||
|
this.$modal.msgSuccess("导入成功");
|
||||||
|
this.uploadOpen = false;
|
||||||
|
this.getList();
|
||||||
|
} else {
|
||||||
|
this.$modal.msgError(response.msg || "导入失败");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleRemove(file, fileList) {
|
||||||
|
this.fileList = fileList;
|
||||||
|
},
|
||||||
|
handlePreview(file) {},
|
||||||
|
handleExceed(files, fileList) {
|
||||||
|
this.$modal.msgError("只能上传一个文件");
|
||||||
|
},
|
||||||
|
uploadCancel() {
|
||||||
|
this.uploadOpen = false;
|
||||||
|
this.fileList = [];
|
||||||
|
this.uploadForm.importName = "";
|
||||||
|
},
|
||||||
|
downloadTemplate() {
|
||||||
|
this.download(
|
||||||
|
"/system/importDownload/downloadTemplate?fileType=batchSendTaskInfo",
|
||||||
|
{},
|
||||||
|
`batchSendTaskInfo.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
orderNum: null,
|
||||||
|
sn: null,
|
||||||
|
importName: null,
|
||||||
|
teamName: null,
|
||||||
|
hospitalAgencyId: null,
|
||||||
|
hospitalAgencyName: null,
|
||||||
|
departmentId: null,
|
||||||
|
departmentName: null,
|
||||||
|
visitDate: null,
|
||||||
|
inHospitalNumber: null,
|
||||||
|
patientName: null,
|
||||||
|
patientPhone: null,
|
||||||
|
age: null,
|
||||||
|
cardNo: null,
|
||||||
|
crowdId: null,
|
||||||
|
crowdName: null,
|
||||||
|
physicalExaminationSummary: null,
|
||||||
|
physicalExaminationLabel: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.queryParams.startDate = null;
|
||||||
|
this.queryParams.endDate = null;
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加批量推送任务信息";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getBatchSendTaskInfo(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "信息详情";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateBatchSendTaskInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addBatchSendTaskInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除批量推送任务信息编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delBatchSendTaskInfo(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"system/batchSendTaskInfo/export",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`batchSendTaskInfo_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 创建推送任务按钮操作 */
|
||||||
|
handleCreatePushTask() {
|
||||||
|
// 判断所有查询条件都为空
|
||||||
|
const params = this.queryParams;
|
||||||
|
const hasQuery = Object.keys(params).some(
|
||||||
|
(key) =>
|
||||||
|
params[key] !== null &&
|
||||||
|
params[key] !== "" &&
|
||||||
|
key !== "pageNum" &&
|
||||||
|
key !== "pageSize"
|
||||||
|
);
|
||||||
|
if (!hasQuery) {
|
||||||
|
this.$modal.msgError("请选择查询条件");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.createPushTaskOpen = true;
|
||||||
|
this.createPushTaskQueryParams.pageNum = 1;
|
||||||
|
this.getCreatePushTaskList();
|
||||||
|
},
|
||||||
|
|
||||||
|
/** 创建推送任务弹窗列表(调用 listBatchSendTaskInfo) */
|
||||||
|
getCreatePushTaskList() {
|
||||||
|
this.createPushTaskLoading = true;
|
||||||
|
const params = {
|
||||||
|
...this.queryParams,
|
||||||
|
pageNum: this.createPushTaskQueryParams.pageNum,
|
||||||
|
pageSize: this.createPushTaskQueryParams.pageSize,
|
||||||
|
};
|
||||||
|
listBatchSendTaskInfo(params)
|
||||||
|
.then((response) => {
|
||||||
|
this.createPushTaskList = response.rows || [];
|
||||||
|
this.createPushTaskTotal = response.total || 0;
|
||||||
|
this.createPushTaskLoading = false;
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
this.createPushTaskLoading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
toNewPage() {
|
||||||
|
this.createPushTaskOpen = false;
|
||||||
|
// 过滤掉分页参数
|
||||||
|
const query = {};
|
||||||
|
Object.keys(this.queryParams).forEach((key) => {
|
||||||
|
if (key !== "pageNum" && key !== "pageSize") {
|
||||||
|
query[key] = this.queryParams[key];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.$router.push({
|
||||||
|
path: "/batchsendtask/CreatePushTask",
|
||||||
|
query,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
removeRow(index) {
|
||||||
|
this.createPushTaskList.splice(index, 1);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
visitDate: {
|
||||||
|
get() {
|
||||||
|
const { startDate, endDate } = this.queryParams;
|
||||||
|
if (!startDate && !endDate) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return [startDate, endDate];
|
||||||
|
},
|
||||||
|
set(val) {
|
||||||
|
this.queryParams.startDate = val && val.length ? val[0] : null;
|
||||||
|
this.queryParams.endDate = val && val.length ? val[1] : null;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
484
src/views/system/batchSendTaskRecordInfo/index.vue
Normal file
484
src/views/system/batchSendTaskRecordInfo/index.vue
Normal file
@ -0,0 +1,484 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container" style="max-height: 100vh; overflow-y: auto">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="任务编号" prop="batchTaskNumber">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.batchTaskNumber"
|
||||||
|
placeholder="请输入任务编号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="任务名称" prop="batchTaskName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.batchTaskName"
|
||||||
|
placeholder="请输入任务名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="执行时间" prop="nodePlanTime">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="queryParams.nodePlanTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择执行时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="推送类型" prop="batchTaskSource">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.batchTaskSource"
|
||||||
|
placeholder="请选择推送类型"
|
||||||
|
clearable
|
||||||
|
@change="ChangeBatchTaskSource"
|
||||||
|
>
|
||||||
|
<el-option label="短信" value="message"></el-option>
|
||||||
|
<el-option label="电话" value="telephone"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="模板" prop="robotPublishId">
|
||||||
|
<!-- queryParams.templateId -->
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.robotPublishId"
|
||||||
|
placeholder="请选择推送类型"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in templateList"
|
||||||
|
:key="item.robotPublishId"
|
||||||
|
:label="item.templateName"
|
||||||
|
:value="item.robotPublishId"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="总结标签" prop="physicalExaminationLabel">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.physicalExaminationLabel"
|
||||||
|
placeholder="请输入总结标签"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="batchSendTaskRecordInfoList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
style="margin-bottom: 40px"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column
|
||||||
|
label="任务编号"
|
||||||
|
align="center"
|
||||||
|
prop="batchTaskNumber"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="任务名称" align="center" prop="batchTaskName" />
|
||||||
|
<el-table-column
|
||||||
|
label="执行时间"
|
||||||
|
align="center"
|
||||||
|
prop="nodePlanTime"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.nodePlanTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="推送类型" align="center" prop="batchTaskSource" />
|
||||||
|
<el-table-column label="模板" align="center" prop="templateName" />
|
||||||
|
<el-table-column label="内容" align="center" prop="nodeContent" />
|
||||||
|
<!-- ,已执行:EXECUTED,未执行:UNEXECUTED,执行中:EXECUTING -->
|
||||||
|
<el-table-column
|
||||||
|
label="节点任务执行状态"
|
||||||
|
align="center"
|
||||||
|
prop="nodeExecuteStatus"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="总结标签"
|
||||||
|
align="center"
|
||||||
|
prop="physicalExaminationLabel"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-view"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:batchSendTaskRecordInfo:edit']"
|
||||||
|
>查看</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['system:batchSendTaskRecordInfo:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改批量推送任务记录对话框 -->
|
||||||
|
<el-dialog
|
||||||
|
:title="title"
|
||||||
|
:visible.sync="open"
|
||||||
|
width="1000px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="任务编号" prop="batchTaskNumber">
|
||||||
|
<el-input
|
||||||
|
v-model="form.batchTaskNumber"
|
||||||
|
placeholder="请输入任务编号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="任务名称" prop="batchTaskName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.batchTaskName"
|
||||||
|
placeholder="请输入任务名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="模板名称" prop="templateName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.templateName"
|
||||||
|
placeholder="请输入模板名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="模版类型" prop="batchTaskSource">
|
||||||
|
<el-select
|
||||||
|
v-model="form.batchTaskSource"
|
||||||
|
placeholder="请选择推送类型"
|
||||||
|
>
|
||||||
|
<el-option label="短信" value="message"></el-option>
|
||||||
|
<el-option label="电话" value="telephone"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="执行时间" prop="nodePlanTime">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="form.nodePlanTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择任务计划执行时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-form-item label="内容">
|
||||||
|
<el-input
|
||||||
|
v-model="form.nodeContent"
|
||||||
|
type="textarea"
|
||||||
|
:autosize="{ minRows: 2, maxRows: 10 }"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="总结标签" prop="physicalExaminationLabel">
|
||||||
|
<el-input
|
||||||
|
v-model="form.physicalExaminationLabel"
|
||||||
|
placeholder="请输入总结标签"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<strong>人员明细</strong>
|
||||||
|
<el-table :data="form.batchSendTaskInfos">
|
||||||
|
<el-table-column
|
||||||
|
label="流水号"
|
||||||
|
align="center"
|
||||||
|
prop="sn"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="导入批次"
|
||||||
|
align="center"
|
||||||
|
prop="importName"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="姓名" align="center" prop="patientName" />
|
||||||
|
<el-table-column
|
||||||
|
label="电话"
|
||||||
|
align="center"
|
||||||
|
prop="patientPhone"
|
||||||
|
width="110"
|
||||||
|
/>
|
||||||
|
<el-table-column label="年龄" align="center" prop="age" />
|
||||||
|
<el-table-column
|
||||||
|
label="身份证号"
|
||||||
|
align="center"
|
||||||
|
prop="cardNo"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column label="人员类型" align="center" prop="personnelType">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.personnelType == 'IN_HOSPITAL'"> 在院 </span>
|
||||||
|
<span v-if="scope.row.personnelType == 'OUTPATIENT'"> 门诊 </span>
|
||||||
|
<span v-if="scope.row.personnelType == 'DISCHARGED'"> 出院 </span>
|
||||||
|
<span v-if="scope.row.personnelType == 'PHYSICAL_EXAMINATION'">
|
||||||
|
体检
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="团体" align="center" prop="teamName" />
|
||||||
|
<el-table-column
|
||||||
|
label="科室名称"
|
||||||
|
align="center"
|
||||||
|
prop="departmentName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="就诊/出院/体检时间"
|
||||||
|
align="center"
|
||||||
|
prop="visitDate"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.visitDate, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="门诊/住院/体检号"
|
||||||
|
align="center"
|
||||||
|
prop="inHospitalNumber"
|
||||||
|
width="130"
|
||||||
|
/>
|
||||||
|
<el-table-column label="人群" align="center" prop="crowdName" />
|
||||||
|
<el-table-column
|
||||||
|
label="总结标签"
|
||||||
|
align="center"
|
||||||
|
prop="physicalExaminationLabel"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
</el-table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<!-- <el-button type="primary" @click="submitForm">确 定</el-button> -->
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listBatchSendTaskRecordInfo,
|
||||||
|
getBatchSendTaskRecordInfo,
|
||||||
|
delBatchSendTaskRecordInfo,
|
||||||
|
addBatchSendTaskRecordInfo,
|
||||||
|
updateBatchSendTaskRecordInfo,
|
||||||
|
selectTemplateByType,
|
||||||
|
} from "@/api/system/batchSendTaskRecordInfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "BatchSendTaskRecordInfo",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
templateList: [],
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 批量推送任务记录表格数据
|
||||||
|
batchSendTaskRecordInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
batchTaskNumber: null,
|
||||||
|
batchTaskName: null,
|
||||||
|
taskExecuteType: null,
|
||||||
|
nodePlanTime: null,
|
||||||
|
batchTaskSource: null,
|
||||||
|
templateId: null,
|
||||||
|
templateName: null,
|
||||||
|
robotPublishId: null,
|
||||||
|
nodeContent: null,
|
||||||
|
nodeExecuteStatus: null,
|
||||||
|
physicalExaminationLabel: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询批量推送任务记录列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listBatchSendTaskRecordInfo(this.queryParams).then((response) => {
|
||||||
|
this.batchSendTaskRecordInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
batchTaskNumber: null,
|
||||||
|
batchTaskName: null,
|
||||||
|
taskExecuteType: null,
|
||||||
|
nodePlanTime: null,
|
||||||
|
batchTaskSource: null,
|
||||||
|
templateId: null,
|
||||||
|
templateName: null,
|
||||||
|
robotPublishId: null,
|
||||||
|
nodeContent: null,
|
||||||
|
nodeExecuteStatus: "0",
|
||||||
|
physicalExaminationLabel: null,
|
||||||
|
delFlag: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加批量推送任务记录";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getBatchSendTaskRecordInfo(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "任务记录详情";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateBatchSendTaskRecordInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addBatchSendTaskRecordInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除批量推送任务记录编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delBatchSendTaskRecordInfo(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"system/batchSendTaskRecordInfo/export",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`batchSendTaskRecordInfo_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// 推送类型数据改变时,查询对应的模板数据
|
||||||
|
ChangeBatchTaskSource(e) {
|
||||||
|
this.queryParams.templateId = "";
|
||||||
|
let batchTaskSource = e;
|
||||||
|
selectTemplateByType({ batchTaskSource }).then((res) => {
|
||||||
|
this.templateList = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
391
src/views/system/billInfo/index.vue
Normal file
391
src/views/system/billInfo/index.vue
Normal file
@ -0,0 +1,391 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="账单编号" prop="billCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billCode"
|
||||||
|
placeholder="请输入账单编号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单名称" prop="billName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billName"
|
||||||
|
placeholder="请输入账单名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单月份" prop="billMonth">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billMonth"
|
||||||
|
placeholder="请输入账单月份"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单金额" prop="billAmount">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billAmount"
|
||||||
|
placeholder="请输入账单金额"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单来源" prop="billSource">
|
||||||
|
<el-select
|
||||||
|
v-model="queryParams.billSource"
|
||||||
|
placeholder="请选择账单来源"
|
||||||
|
clearable
|
||||||
|
>
|
||||||
|
<el-option label="短信" value="message"> </el-option>
|
||||||
|
<el-option label="电话" value="telephone"> </el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="billInfoList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="账单主键" align="center" prop="id" />
|
||||||
|
<el-table-column label="账单编号" align="center" prop="billCode" />
|
||||||
|
<el-table-column label="账单名称" align="center" prop="billName" />
|
||||||
|
<el-table-column label="账单月份" align="center" prop="billMonth" />
|
||||||
|
<el-table-column label="账单金额" align="center" prop="billAmount" />
|
||||||
|
<el-table-column label="缴费状态" align="center" prop="paymentStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.paymentStatus === 'PAID'">已缴费</span>
|
||||||
|
<span v-else-if="scope.row.paymentStatus === 'UNPAID_FEES'"
|
||||||
|
>未缴费</span
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="账单来源" align="center" prop="billSource">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span v-if="scope.row.billSource === 'message'">短信</span>
|
||||||
|
<span v-else-if="scope.row.billSource === 'telephone'">电话</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-view"
|
||||||
|
@click="look(scope.row)"
|
||||||
|
>查看</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="handleExport(scope.row)"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改账单信息对话框 -->
|
||||||
|
<el-dialog
|
||||||
|
:title="title"
|
||||||
|
:visible.sync="open"
|
||||||
|
width="800px"
|
||||||
|
append-to-body
|
||||||
|
@closed="closedDialog"
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:model="form"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="80px"
|
||||||
|
v-if="!showItemTable"
|
||||||
|
>
|
||||||
|
<el-form-item label="账单编号" prop="billCode">
|
||||||
|
<el-input v-model="form.billCode" placeholder="请输入账单编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单名称" prop="billName">
|
||||||
|
<el-input v-model="form.billName" placeholder="请输入账单名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单月份" prop="billMonth">
|
||||||
|
<el-input v-model="form.billMonth" placeholder="请输入账单月份" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单金额" prop="billAmount">
|
||||||
|
<el-input v-model="form.billAmount" placeholder="请输入账单金额" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="账单来源" prop="billSource">
|
||||||
|
<el-input v-model="form.billSource" placeholder="请输入账单来源" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
v-if="showItemTable"
|
||||||
|
:data="ItemData"
|
||||||
|
border
|
||||||
|
style="width: 100%; margin-bottom: 20px"
|
||||||
|
v-loading="tableLoading"
|
||||||
|
>
|
||||||
|
<el-table-column prop="patientName" label="姓名" align="center" />
|
||||||
|
<el-table-column prop="patientPhone" label="电话" align="center" />
|
||||||
|
<el-table-column prop="template" label="模板名称" align="center" />
|
||||||
|
<el-table-column prop="pushTime" label="推送时间" align="center" />
|
||||||
|
<el-table-column prop="pushLength" label="条数/时长" align="center" />
|
||||||
|
<el-table-column prop="unitPrice" label="单价" align="center" />
|
||||||
|
<el-table-column prop="expense" label="费用" align="center" />
|
||||||
|
</el-table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button v-if="showItemTable" @click="closeItemTable"
|
||||||
|
>关 闭</el-button
|
||||||
|
>
|
||||||
|
<el-button v-else type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button v-if="!showItemTable" @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listBillInfo,
|
||||||
|
getBillInfo,
|
||||||
|
delBillInfo,
|
||||||
|
addBillInfo,
|
||||||
|
updateBillInfo,
|
||||||
|
lookBillInfo,
|
||||||
|
} from "@/api/system/billInfo";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "BillInfo",
|
||||||
|
download: require("@/utils/request").download,
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
showItemTable: false,
|
||||||
|
tableLoading: false,
|
||||||
|
ItemData: [],
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 账单信息表格数据
|
||||||
|
billInfoList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
billCode: null,
|
||||||
|
billName: null,
|
||||||
|
billMonth: null,
|
||||||
|
billAmount: null,
|
||||||
|
paymentStatus: null,
|
||||||
|
billSource: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
billCode: [
|
||||||
|
{ required: true, message: "账单编号不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
billName: [
|
||||||
|
{ required: true, message: "账单名称不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
billMonth: [
|
||||||
|
{ required: true, message: "账单月份不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
billAmount: [
|
||||||
|
{ required: true, message: "账单金额不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
paymentStatus: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "缴费状态,已缴费:PAID,未交费:UNPAID_FEES不能为空",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
billSource: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "账单来源,短信:message;电话:telephone不能为空",
|
||||||
|
trigger: "blur",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
createTime: [
|
||||||
|
{ required: true, message: "创建时间不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询账单信息列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listBillInfo(this.queryParams).then((response) => {
|
||||||
|
this.billInfoList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
billCode: null,
|
||||||
|
billName: null,
|
||||||
|
billMonth: null,
|
||||||
|
billAmount: null,
|
||||||
|
paymentStatus: "0",
|
||||||
|
billSource: null,
|
||||||
|
createTime: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加账单信息";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getBillInfo(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改账单信息";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateBillInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addBillInfo(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除账单信息编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delBillInfo(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport(row) {
|
||||||
|
this.download(
|
||||||
|
"system/billInfo/exportDetails",
|
||||||
|
{
|
||||||
|
billCode: row.billCode,
|
||||||
|
},
|
||||||
|
`billInfo_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
look(row) {
|
||||||
|
this.tableLoading = true;
|
||||||
|
lookBillInfo({ billCode: row.billCode }).then((res) => {
|
||||||
|
this.ItemData = res.data;
|
||||||
|
this.showItemTable = true;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "账单明细";
|
||||||
|
this.tableLoading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
closeItemTable() {
|
||||||
|
this.showItemTable = false;
|
||||||
|
this.open = false;
|
||||||
|
},
|
||||||
|
closedDialog() {
|
||||||
|
this.ItemData = [];
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@ -1,68 +1,171 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<el-button size="small" @click="classificationOpen = true" style="
|
<el-button
|
||||||
|
size="small"
|
||||||
|
@click="classificationOpen = true"
|
||||||
|
style="
|
||||||
width: 200px;
|
width: 200px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
" :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : "选择短信模板"
|
"
|
||||||
}}</el-button>
|
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'"
|
||||||
<el-dialog title="短信库模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
>{{ handleselectName ? handleselectName : "选择短信模板" }}</el-button
|
||||||
|
>
|
||||||
|
<el-dialog
|
||||||
|
title="短信库模板选择"
|
||||||
|
:visible.sync="classificationOpen"
|
||||||
|
width="70%"
|
||||||
|
:before-close="classificationOpenfalse"
|
||||||
|
>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<!--部门数据-->
|
<!--部门数据-->
|
||||||
<el-col :span="6" :xs="24">
|
<el-col :span="6" :xs="24">
|
||||||
<DepartmentList ref="DepartmentList" :modal="false" @clickdepartment="clickdepartment"
|
<DepartmentList
|
||||||
:methods="'listMessageNumtwo'">
|
ref="DepartmentList"
|
||||||
|
:modal="false"
|
||||||
|
@clickdepartment="clickdepartment"
|
||||||
|
:methods="'listMessageNumtwo'"
|
||||||
|
>
|
||||||
</DepartmentList>
|
</DepartmentList>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!--用户数据-->
|
<!--用户数据-->
|
||||||
<el-col :span="18" :xs="24">
|
<el-col :span="18" :xs="24">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
<el-form
|
||||||
label-width="68px">
|
:model="queryParams"
|
||||||
<el-form-item label="短信模板名称" prop="textMessageName" label-width="100px">
|
ref="queryForm"
|
||||||
<el-input v-model="queryParams.textMessageName" placeholder="请输入模版名称" clearable
|
size="small"
|
||||||
@keyup.enter.native="handleQuery" />
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item
|
||||||
|
label="短信模板名称"
|
||||||
|
prop="textMessageName"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.textMessageName"
|
||||||
|
placeholder="请输入模版名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="模板ID" prop="textMessageId">
|
<el-form-item label="模板ID" prop="textMessageId">
|
||||||
<el-input v-model="queryParams.textMessageId" placeholder="请输入模板ID" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
v-model="queryParams.textMessageId"
|
||||||
|
placeholder="请输入模板ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
<el-button
|
||||||
<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>
|
||||||
<el-table v-loading="loading" :data="templateList" @row-dblclick="handleselect">
|
<el-table
|
||||||
<el-table-column type="index" width="48" align="center" label="序号" />
|
v-loading="loading"
|
||||||
<el-table-column label="短信模板名称" align="center" prop="textMessageName" :show-overflow-tooltip="true" />
|
:data="templateList"
|
||||||
<el-table-column label="短信ID" align="center" prop="textMessageId" />
|
@row-dblclick="handleselect"
|
||||||
<el-table-column label="短信内容" align="center" prop="textMessageContent" :show-overflow-tooltip="true" />
|
>
|
||||||
<el-table-column :show-overflow-tooltip="true" label="适用任务类型" align="center" prop="suitTaskTypeName">
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="48"
|
||||||
|
align="center"
|
||||||
|
label="序号"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="短信模板名称"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="短信ID"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageId"
|
||||||
|
/>
|
||||||
|
<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">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.suitTaskTypeName != "null" ? scope.row.suitTaskTypeName : "" }}
|
{{
|
||||||
|
scope.row.suitTaskTypeName != "null"
|
||||||
|
? scope.row.suitTaskTypeName
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="短信通道" align="center" prop="textMessageChannel">
|
<el-table-column
|
||||||
|
label="短信通道"
|
||||||
|
align="center"
|
||||||
|
prop="textMessageChannel"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.textMessageChannel == "WATER_DROPLET_PLATFORM" ? "水滴平台" : "" }}
|
{{
|
||||||
|
scope.row.textMessageChannel == "WATER_DROPLET_PLATFORM"
|
||||||
|
? "水滴平台"
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
|
<el-table-column
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
label="病种名称"
|
||||||
|
align="center"
|
||||||
|
prop="diseaseTypeName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
<el-button
|
||||||
v-if="handleselectId != scope.row.id">选择</el-button>
|
size="mini"
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
type="text"
|
||||||
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
@click="handleselect(scope.row)"
|
||||||
|
v-if="handleselectId != scope.row.id"
|
||||||
|
>选择</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="nohandleselect(scope.row)"
|
||||||
|
v-if="handleselectId == scope.row.id"
|
||||||
|
>取消选择</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
<pagination
|
||||||
@pagination="getList" />
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -78,10 +181,10 @@ import {
|
|||||||
} from "@/api/manage/message";
|
} from "@/api/manage/message";
|
||||||
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";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
DepartmentList
|
DepartmentList,
|
||||||
},
|
},
|
||||||
props: ["templateId", "templateName"],
|
props: ["templateId", "templateName"],
|
||||||
name: "Template",
|
name: "Template",
|
||||||
@ -140,14 +243,14 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
//接收科室列表传值
|
//接收科室列表传值
|
||||||
clickdepartment(item) {
|
clickdepartment(item) {
|
||||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
this.queryParams.hospitalAgencyId = item.hospitalAgencyId;
|
||||||
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
this.queryParams.hospitalAgencyName = item.hospitalAgencyName;
|
||||||
this.queryParams.departmentId = item.itemid
|
this.queryParams.departmentId = item.itemid;
|
||||||
this.queryParams.departmentName = item.itemName
|
this.queryParams.departmentName = item.itemName;
|
||||||
if (item.hospitalAgencyId) {
|
if (item.hospitalAgencyId) {
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
}
|
}
|
||||||
this.$forceUpdate()
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
nohandleselect() {
|
nohandleselect() {
|
||||||
this.handleselectId = "";
|
this.handleselectId = "";
|
||||||
@ -165,8 +268,9 @@ export default {
|
|||||||
this.$emit("on-template", {
|
this.$emit("on-template", {
|
||||||
templateId: item.id,
|
templateId: item.id,
|
||||||
templateName: item.textMessageName,
|
templateName: item.textMessageName,
|
||||||
templateContent: item.templateContent,
|
templateContent: item.textMessageContent,
|
||||||
messageTemplateCode:item.messageTemplateCode
|
messageTemplateCode: item.messageTemplateCode,
|
||||||
|
variables: item.variables,
|
||||||
});
|
});
|
||||||
this.classificationOpen = false;
|
this.classificationOpen = false;
|
||||||
},
|
},
|
||||||
@ -193,7 +297,7 @@ export default {
|
|||||||
this.queryParams.departmentId = null;
|
this.queryParams.departmentId = null;
|
||||||
this.itemname = null;
|
this.itemname = null;
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.$refs.DepartmentList.resetQuery()
|
this.$refs.DepartmentList.resetQuery();
|
||||||
// this.handleQuery();
|
// this.handleQuery();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,72 +1,180 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-containers">
|
<div class="app-containers">
|
||||||
<el-button size="small" @click="classificationOpen = true" style="
|
<el-button
|
||||||
|
size="small"
|
||||||
|
@click="classificationOpen = true"
|
||||||
|
style="
|
||||||
width: 200px;
|
width: 200px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
" :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">{{ handleselectName ? handleselectName : "请选择"
|
"
|
||||||
}}</el-button>
|
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'"
|
||||||
<el-dialog title="话术库模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
|
>{{ handleselectName ? handleselectName : "请选择" }}</el-button
|
||||||
|
>
|
||||||
|
<el-dialog
|
||||||
|
title="话术库模板选择"
|
||||||
|
:visible.sync="classificationOpen"
|
||||||
|
width="70%"
|
||||||
|
:before-close="classificationOpenfalse"
|
||||||
|
>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<!--部门数据-->
|
<!--部门数据-->
|
||||||
<el-col :span="6" :xs="24">
|
<el-col :span="6" :xs="24">
|
||||||
<DepartmentList ref="DepartmentList" :modal="false" @clickdepartment="clickdepartment"
|
<DepartmentList
|
||||||
:methods="'listScriptNumtwo'">
|
ref="DepartmentList"
|
||||||
|
:modal="false"
|
||||||
|
@clickdepartment="clickdepartment"
|
||||||
|
:methods="'listScriptNumtwo'"
|
||||||
|
>
|
||||||
</DepartmentList>
|
</DepartmentList>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!--用户数据-->
|
<!--用户数据-->
|
||||||
<el-col :span="18" :xs="24">
|
<el-col :span="18" :xs="24">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
|
<el-form
|
||||||
label-width="100px">
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
<el-form-item label="通用话术名称" prop="commonScriptName">
|
<el-form-item label="通用话术名称" prop="commonScriptName">
|
||||||
<el-input v-model="queryParams.commonScriptName" placeholder="请输入通用话术名称" clearable
|
<el-input
|
||||||
@keyup.enter.native="handleQuery" />
|
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>
|
<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>
|
||||||
<el-table v-loading="loading" :data="scriptList" @row-dblclick="handleselect">
|
<el-table
|
||||||
<el-table-column label="序号" align="center" prop="sort" type="index" width="48" />
|
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" />
|
@row-dblclick="handleselect"
|
||||||
<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="scriptIntroduction" :show-overflow-tooltip="true" />
|
label="序号"
|
||||||
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" :show-overflow-tooltip="true" />
|
align="center"
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
prop="sort"
|
||||||
|
type="index"
|
||||||
|
width="48"
|
||||||
|
/>
|
||||||
|
<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="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"
|
||||||
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handlesee(scope.row)">预览</el-button>
|
<el-button size="mini" type="text" @click="handlesee(scope.row)"
|
||||||
<el-button size="mini" type="text" @click="handleselect(scope.row)"
|
>预览</el-button
|
||||||
v-if="handleselectId != scope.row.id">选择</el-button>
|
>
|
||||||
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
|
<el-button
|
||||||
v-if="handleselectId == scope.row.id">取消选择</el-button>
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="handleselect(scope.row)"
|
||||||
|
v-if="handleselectId != scope.row.id"
|
||||||
|
>选择</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
@click="nohandleselect(scope.row)"
|
||||||
|
v-if="handleselectId == scope.row.id"
|
||||||
|
>取消选择</el-button
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
<pagination
|
||||||
@pagination="getList" />
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog title="话术预览" :visible.sync="lookshow" width="90%">
|
<el-dialog title="话术预览" :visible.sync="lookshow" width="90%">
|
||||||
<Scriptpreview :phoneNodeContent="phoneNodeContent" v-if="lookshow"></Scriptpreview>
|
<Scriptpreview
|
||||||
|
:phoneNodeContent="phoneNodeContent"
|
||||||
|
v-if="lookshow"
|
||||||
|
></Scriptpreview>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="lookshow = false">确 定</el-button>
|
<el-button type="primary" @click="lookshow = false">确 定</el-button>
|
||||||
</span>
|
</span>
|
||||||
@ -88,9 +196,9 @@ import {
|
|||||||
listScriptNum,
|
listScriptNum,
|
||||||
} from "@/api/manage/script";
|
} from "@/api/manage/script";
|
||||||
import stationAcatar from "../../system/stationAvatar/index.vue";
|
import stationAcatar from "../../system/stationAvatar/index.vue";
|
||||||
import DepartmentList from '../../components/DepartmentList.vue'
|
import DepartmentList from "../../components/DepartmentList.vue";
|
||||||
export default {
|
export default {
|
||||||
props: ["templateId", "templateName", 'node'],
|
props: ["templateId", "templateName", "node"],
|
||||||
components: { stationAcatar, Scriptpreview, DepartmentList },
|
components: { stationAcatar, Scriptpreview, DepartmentList },
|
||||||
name: "Script",
|
name: "Script",
|
||||||
data() {
|
data() {
|
||||||
@ -160,14 +268,14 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
//接收科室列表传值
|
//接收科室列表传值
|
||||||
clickdepartment(item) {
|
clickdepartment(item) {
|
||||||
this.queryParams.hospitalAgencyId = item.hospitalAgencyId
|
this.queryParams.hospitalAgencyId = item.hospitalAgencyId;
|
||||||
this.queryParams.hospitalAgencyName = item.hospitalAgencyName
|
this.queryParams.hospitalAgencyName = item.hospitalAgencyName;
|
||||||
this.queryParams.departmentId = item.itemid
|
this.queryParams.departmentId = item.itemid;
|
||||||
this.queryParams.departmentName = item.itemName
|
this.queryParams.departmentName = item.itemName;
|
||||||
if (item.hospitalAgencyId) {
|
if (item.hospitalAgencyId) {
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
}
|
}
|
||||||
this.$forceUpdate()
|
this.$forceUpdate();
|
||||||
},
|
},
|
||||||
handlesee(row) {
|
handlesee(row) {
|
||||||
if (row.flowScheme == null || row.flowScheme == "") {
|
if (row.flowScheme == null || row.flowScheme == "") {
|
||||||
@ -181,18 +289,20 @@ export default {
|
|||||||
this.handleselectId = "";
|
this.handleselectId = "";
|
||||||
this.handleselectName = "";
|
this.handleselectName = "";
|
||||||
this.$emit("on-template", {
|
this.$emit("on-template", {
|
||||||
robotPublishId: '',
|
robotPublishId: "",
|
||||||
templateId: "",
|
templateId: "",
|
||||||
templateName: "",
|
templateName: "",
|
||||||
templateContent: "",
|
templateContent: "",
|
||||||
scriptInfoId: '',
|
scriptInfoId: "",
|
||||||
phoneTemplateId: '',
|
phoneTemplateId: "",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleselect(item) {
|
handleselect(item) {
|
||||||
if (this.node == 'AI') {
|
if (this.node == "AI") {
|
||||||
if (!item.robotPublishId) {
|
if (!item.robotPublishId) {
|
||||||
return this.$message.error("机器人ID不存在,请维护机器人ID或重新选择模板");
|
return this.$message.error(
|
||||||
|
"机器人ID不存在,请维护机器人ID或重新选择模板"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.handleselectId = item.id;
|
this.handleselectId = item.id;
|
||||||
@ -204,7 +314,7 @@ export default {
|
|||||||
phoneNodeContent: item.flowScheme,
|
phoneNodeContent: item.flowScheme,
|
||||||
scriptInfoId: item.id,
|
scriptInfoId: item.id,
|
||||||
phoneTemplateId: item.scriptId,
|
phoneTemplateId: item.scriptId,
|
||||||
robotPublishId: item.robotPublishId
|
robotPublishId: item.robotPublishId,
|
||||||
});
|
});
|
||||||
this.classificationOpen = false;
|
this.classificationOpen = false;
|
||||||
},
|
},
|
||||||
@ -246,7 +356,7 @@ export default {
|
|||||||
scriptRemark: null,
|
scriptRemark: null,
|
||||||
};
|
};
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.$refs.DepartmentList.resetQuery()
|
this.$refs.DepartmentList.resetQuery();
|
||||||
// this.getList();
|
// this.getList();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -229,8 +229,7 @@
|
|||||||
: ""
|
: ""
|
||||||
}}
|
}}
|
||||||
</template> -->
|
</template> -->
|
||||||
</el-table-column
|
</el-table-column>
|
||||||
>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="科室电话"
|
label="科室电话"
|
||||||
align="center"
|
align="center"
|
||||||
@ -742,7 +741,7 @@ export default {
|
|||||||
],
|
],
|
||||||
departmentPhone: [
|
departmentPhone: [
|
||||||
{
|
{
|
||||||
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
pattern: /^(1[3-9]\d{9}|\d{7})$/,
|
||||||
message: "请输入正确的科室电话",
|
message: "请输入正确的科室电话",
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
@ -771,8 +770,8 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getMaxTableHeight()
|
this.getMaxTableHeight();
|
||||||
this.screenChange()
|
this.screenChange();
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
@ -786,8 +785,8 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateCPage(index, size) {
|
updateCPage(index, size) {
|
||||||
this.queryParams.pageNum = index
|
this.queryParams.pageNum = index;
|
||||||
this.queryParams.pageSize = size
|
this.queryParams.pageSize = size;
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
optionsubdivision(e) {
|
optionsubdivision(e) {
|
||||||
@ -849,11 +848,11 @@ export default {
|
|||||||
if (this.form.hospitalAgencyId) {
|
if (this.form.hospitalAgencyId) {
|
||||||
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
|
const arr = this.$refs["cascader"].getCheckedNodes()[0].pathLabels;
|
||||||
this.form.hospitalAgencyName = arr.slice(-1).join(",");
|
this.form.hospitalAgencyName = arr.slice(-1).join(",");
|
||||||
this.gethaveinfo(e[e.length - 1])
|
this.gethaveinfo(e[e.length - 1]);
|
||||||
this.form.parentDepartmentId = ''
|
this.form.parentDepartmentId = "";
|
||||||
this.form.parentDepartmentName = ''
|
this.form.parentDepartmentName = "";
|
||||||
} else {
|
} else {
|
||||||
this.form.parentDepartmentId = ''
|
this.form.parentDepartmentId = "";
|
||||||
this.form.hospitalAgencyName = "";
|
this.form.hospitalAgencyName = "";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -997,17 +996,16 @@ export default {
|
|||||||
this.multiple = !selection.length;
|
this.multiple = !selection.length;
|
||||||
},
|
},
|
||||||
getLeafIds(nodes) {
|
getLeafIds(nodes) {
|
||||||
console.log(nodes, ';node')
|
console.log(nodes, ";node");
|
||||||
|
|
||||||
this.form.hospitalAgencyIdtwo = JSON.parse(localStorage.getItem('user')).hospitalAgencyId;
|
this.form.hospitalAgencyIdtwo = JSON.parse(
|
||||||
|
localStorage.getItem("user")
|
||||||
|
).hospitalAgencyId;
|
||||||
|
|
||||||
let leafIds = [];
|
let leafIds = [];
|
||||||
nodes.forEach(node => {
|
nodes.forEach((node) => {
|
||||||
|
|
||||||
if (node.id == this.form.hospitalAgencyIdtwo) {
|
if (node.id == this.form.hospitalAgencyIdtwo) {
|
||||||
this.form.hospitalAgencyName = node.label;
|
this.form.hospitalAgencyName = node.label;
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (node.children) {
|
if (node.children) {
|
||||||
// 如果有子节点,递归调用getLeafIds
|
// 如果有子节点,递归调用getLeafIds
|
||||||
@ -1016,25 +1014,20 @@ export default {
|
|||||||
// 如果没有子节点,取当前节点的id
|
// 如果没有子节点,取当前节点的id
|
||||||
leafIds.push(node.id);
|
leafIds.push(node.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
return leafIds;
|
return leafIds;
|
||||||
},
|
},
|
||||||
|
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
|
this.getinfo();
|
||||||
this.getinfo()
|
|
||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "添加科室信息";
|
this.title = "添加科室信息";
|
||||||
if (localStorage.getItem('roleKey') != 'admin') {
|
if (localStorage.getItem("roleKey") != "admin") {
|
||||||
this.getLeafIds(this.treeOptions)
|
this.getLeafIds(this.treeOptions);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
@ -1043,21 +1036,24 @@ export default {
|
|||||||
const id = row.id || this.ids;
|
const id = row.id || this.ids;
|
||||||
getDepartment(id).then((response) => {
|
getDepartment(id).then((response) => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
this.form.hospitalAgencyIdtwo = this.form.hospitalAgencyId
|
this.form.hospitalAgencyIdtwo = this.form.hospitalAgencyId;
|
||||||
this.form.parentDepartmentName = response.data.parentDepartmentName;
|
this.form.parentDepartmentName = response.data.parentDepartmentName;
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.gethaveinfo(this.form.hospitalAgencyId)
|
this.gethaveinfo(this.form.hospitalAgencyId);
|
||||||
this.title = "修改科室信息";
|
this.title = "修改科室信息";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
let reg = new RegExp("-", "g");
|
let reg = new RegExp("-", "g");
|
||||||
if (this.form.establishDate && this.form.revokeDate && new Date(this.form.establishDate.replace(reg, "/")) >
|
if (
|
||||||
new Date(this.form.revokeDate.replace(reg, "/"))) {
|
this.form.establishDate &&
|
||||||
|
this.form.revokeDate &&
|
||||||
|
new Date(this.form.establishDate.replace(reg, "/")) >
|
||||||
|
new Date(this.form.revokeDate.replace(reg, "/"))
|
||||||
|
) {
|
||||||
this.$message.error("撤销日期要大于成立日期");
|
this.$message.error("撤销日期要大于成立日期");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id != null) {
|
if (this.form.id != null) {
|
||||||
@ -1068,7 +1064,7 @@ export default {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (!this.form.hospitalAgencyId) {
|
if (!this.form.hospitalAgencyId) {
|
||||||
this.form.hospitalAgencyId = this.form.hospitalAgencyIdtwo
|
this.form.hospitalAgencyId = this.form.hospitalAgencyIdtwo;
|
||||||
}
|
}
|
||||||
|
|
||||||
addDepartment(this.form).then((response) => {
|
addDepartment(this.form).then((response) => {
|
||||||
@ -1107,26 +1103,27 @@ export default {
|
|||||||
},
|
},
|
||||||
// 获取表格最高高度
|
// 获取表格最高高度
|
||||||
getMaxTableHeight() {
|
getMaxTableHeight() {
|
||||||
const windowInnerHeight = window.innerHeight // 屏幕可视高度
|
const windowInnerHeight = window.innerHeight; // 屏幕可视高度
|
||||||
const layoutDiv = this.$refs.layout
|
const layoutDiv = this.$refs.layout;
|
||||||
const formDiv = this.$refs.topform
|
const formDiv = this.$refs.topform;
|
||||||
const mb8Div = this.$refs.mb8
|
const mb8Div = this.$refs.mb8;
|
||||||
this.maxTableHeight =
|
this.maxTableHeight =
|
||||||
windowInnerHeight - 134 -
|
windowInnerHeight -
|
||||||
|
134 -
|
||||||
this.getBoxPadding(layoutDiv) -
|
this.getBoxPadding(layoutDiv) -
|
||||||
this.getBoxHeight(mb8Div) -
|
this.getBoxHeight(mb8Div) -
|
||||||
this.getBoxHeight(formDiv)
|
this.getBoxHeight(formDiv);
|
||||||
},
|
},
|
||||||
// 屏幕resize监听
|
// 屏幕resize监听
|
||||||
screenChange() {
|
screenChange() {
|
||||||
// 屏幕resize监听事件:一旦屏幕宽高发生变化,就会执行resize
|
// 屏幕resize监听事件:一旦屏幕宽高发生变化,就会执行resize
|
||||||
window.addEventListener('resize', this.getMaxTableHeight, true)
|
window.addEventListener("resize", this.getMaxTableHeight, true);
|
||||||
// 将屏幕监听事件移除
|
// 将屏幕监听事件移除
|
||||||
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
|
// 这步是必须的。离开页面时不移除,再返回,或者进入到别的有相同元素的页面会报错
|
||||||
// 或者将这里的方法直接写在beforeDestroy函数中也可以
|
// 或者将这里的方法直接写在beforeDestroy函数中也可以
|
||||||
this.$once('hook:beforeDestroy', () => {
|
this.$once("hook:beforeDestroy", () => {
|
||||||
window.removeEventListener('resize', this.getMaxTableHeight, true)
|
window.removeEventListener("resize", this.getMaxTableHeight, true);
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
523
src/views/system/phoneDialRecord/index.vue
Normal file
523
src/views/system/phoneDialRecord/index.vue
Normal file
@ -0,0 +1,523 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="患者id" prop="patientId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientId"
|
||||||
|
placeholder="请输入患者id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="签约患者管理任务节点表id" prop="manageRouteNodeId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.manageRouteNodeId"
|
||||||
|
placeholder="请输入签约患者管理任务节点表id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者手机号" prop="patientPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientPhone"
|
||||||
|
placeholder="请输入患者手机号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="呼叫时间" prop="dialTime">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="queryParams.dialTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择呼叫时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="电话模板id" prop="phoneTemplateId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneTemplateId"
|
||||||
|
placeholder="请输入电话模板id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="电话模板名称" prop="phoneTemplateName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneTemplateName"
|
||||||
|
placeholder="请输入电话模板名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="AI :自动外呼 或 COMMON:人工随访电话,否则为空"
|
||||||
|
prop="phoneDialMethod"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneDialMethod"
|
||||||
|
placeholder="请输入AI :自动外呼 或 COMMON:人工随访电话,否则为空"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="推送结果状态码" prop="errorCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.errorCode"
|
||||||
|
placeholder="请输入推送结果状态码"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="生成通话录音唯一标识,可通过该标识,获取录音"
|
||||||
|
prop="ctUuid"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.ctUuid"
|
||||||
|
placeholder="请输入生成通话录音唯一标识,可通过该标识,获取录音"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话记录录音存储路径" prop="phoneDialRecordVideo">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneDialRecordVideo"
|
||||||
|
placeholder="请输入通话记录录音存储路径"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话时长" prop="phoneDuration">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneDuration"
|
||||||
|
placeholder="请输入通话时长"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话费用" prop="phoneCost">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.phoneCost"
|
||||||
|
placeholder="请输入通话费用"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="关联账单id" prop="billId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billId"
|
||||||
|
placeholder="请输入关联账单id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['system:phoneDialRecord:export']"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar
|
||||||
|
style="margin-right: 20px"
|
||||||
|
:showSearch.sync="showSearch"
|
||||||
|
@queryTable="getList"
|
||||||
|
></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="phoneDialRecordList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="主键id" align="center" prop="id" />
|
||||||
|
<el-table-column label="患者id" align="center" prop="patientId" />
|
||||||
|
<el-table-column
|
||||||
|
label="签约患者管理任务节点表id"
|
||||||
|
align="center"
|
||||||
|
prop="manageRouteNodeId"
|
||||||
|
/>
|
||||||
|
<el-table-column label="患者手机号" align="center" prop="patientPhone" />
|
||||||
|
<el-table-column
|
||||||
|
label="呼叫时间"
|
||||||
|
align="center"
|
||||||
|
prop="dialTime"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.dialTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="电话模板id"
|
||||||
|
align="center"
|
||||||
|
prop="phoneTemplateId"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="电话模板名称"
|
||||||
|
align="center"
|
||||||
|
prop="phoneTemplateName"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="替换标签之后的电话内容"
|
||||||
|
align="center"
|
||||||
|
prop="messageNodeContent"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="AI :自动外呼 或 COMMON:人工随访电话,否则为空"
|
||||||
|
align="center"
|
||||||
|
prop="phoneDialMethod"
|
||||||
|
/>
|
||||||
|
<el-table-column label="推送结果状态码" align="center" prop="errorCode" />
|
||||||
|
<el-table-column
|
||||||
|
label="推送结果状态码,success:成功,fail:失败"
|
||||||
|
align="center"
|
||||||
|
prop="errorStatus"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="生成通话录音唯一标识,可通过该标识,获取录音"
|
||||||
|
align="center"
|
||||||
|
prop="ctUuid"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="通话记录录音存储路径"
|
||||||
|
align="center"
|
||||||
|
prop="phoneDialRecordVideo"
|
||||||
|
/>
|
||||||
|
<el-table-column label="通话时长" align="center" prop="phoneDuration" />
|
||||||
|
<el-table-column label="通话费用" align="center" prop="phoneCost" />
|
||||||
|
<el-table-column label="关联账单id" align="center" prop="billId" />
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:phoneDialRecord:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['system:phoneDialRecord:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改电话拨打记录对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="患者id" prop="patientId">
|
||||||
|
<el-input v-model="form.patientId" placeholder="请输入患者id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="签约患者管理任务节点表id" prop="manageRouteNodeId">
|
||||||
|
<el-input
|
||||||
|
v-model="form.manageRouteNodeId"
|
||||||
|
placeholder="请输入签约患者管理任务节点表id"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者手机号" prop="patientPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="form.patientPhone"
|
||||||
|
placeholder="请输入患者手机号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="呼叫时间" prop="dialTime">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="form.dialTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择呼叫时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="电话模板id" prop="phoneTemplateId">
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneTemplateId"
|
||||||
|
placeholder="请输入电话模板id"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="电话模板名称" prop="phoneTemplateName">
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneTemplateName"
|
||||||
|
placeholder="请输入电话模板名称"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="替换标签之后的电话内容">
|
||||||
|
<editor v-model="form.messageNodeContent" :min-height="192" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="AI :自动外呼 或 COMMON:人工随访电话,否则为空"
|
||||||
|
prop="phoneDialMethod"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneDialMethod"
|
||||||
|
placeholder="请输入AI :自动外呼 或 COMMON:人工随访电话,否则为空"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="推送结果状态码" prop="errorCode">
|
||||||
|
<el-input
|
||||||
|
v-model="form.errorCode"
|
||||||
|
placeholder="请输入推送结果状态码"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item
|
||||||
|
label="生成通话录音唯一标识,可通过该标识,获取录音"
|
||||||
|
prop="ctUuid"
|
||||||
|
>
|
||||||
|
<el-input
|
||||||
|
v-model="form.ctUuid"
|
||||||
|
placeholder="请输入生成通话录音唯一标识,可通过该标识,获取录音"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话记录录音存储路径" prop="phoneDialRecordVideo">
|
||||||
|
<el-input
|
||||||
|
v-model="form.phoneDialRecordVideo"
|
||||||
|
placeholder="请输入通话记录录音存储路径"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话时长" prop="phoneDuration">
|
||||||
|
<el-input v-model="form.phoneDuration" placeholder="请输入通话时长" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="通话费用" prop="phoneCost">
|
||||||
|
<el-input v-model="form.phoneCost" placeholder="请输入通话费用" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="关联账单id" prop="billId">
|
||||||
|
<el-input v-model="form.billId" placeholder="请输入关联账单id" />
|
||||||
|
</el-form-item>
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listPhoneDialRecord,
|
||||||
|
getPhoneDialRecord,
|
||||||
|
delPhoneDialRecord,
|
||||||
|
addPhoneDialRecord,
|
||||||
|
updatePhoneDialRecord,
|
||||||
|
} from "@/api/system/phoneDialRecord";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "PhoneDialRecord",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 电话拨打记录表格数据
|
||||||
|
phoneDialRecordList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
patientId: null,
|
||||||
|
manageRouteNodeId: null,
|
||||||
|
patientPhone: null,
|
||||||
|
dialTime: null,
|
||||||
|
phoneTemplateId: null,
|
||||||
|
phoneTemplateName: null,
|
||||||
|
messageNodeContent: null,
|
||||||
|
phoneDialMethod: null,
|
||||||
|
errorCode: null,
|
||||||
|
errorStatus: null,
|
||||||
|
ctUuid: null,
|
||||||
|
phoneDialRecordVideo: null,
|
||||||
|
phoneDuration: null,
|
||||||
|
phoneCost: null,
|
||||||
|
billId: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询电话拨打记录列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listPhoneDialRecord(this.queryParams).then((response) => {
|
||||||
|
this.phoneDialRecordList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
patientId: null,
|
||||||
|
manageRouteNodeId: null,
|
||||||
|
patientPhone: null,
|
||||||
|
dialTime: null,
|
||||||
|
phoneTemplateId: null,
|
||||||
|
phoneTemplateName: null,
|
||||||
|
messageNodeContent: null,
|
||||||
|
phoneDialMethod: null,
|
||||||
|
errorCode: null,
|
||||||
|
errorStatus: "0",
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
ctUuid: null,
|
||||||
|
phoneDialRecordVideo: null,
|
||||||
|
phoneDuration: null,
|
||||||
|
phoneCost: null,
|
||||||
|
billId: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加电话拨打记录";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getPhoneDialRecord(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改电话拨打记录";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updatePhoneDialRecord(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addPhoneDialRecord(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除电话拨打记录编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delPhoneDialRecord(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"system/phoneDialRecord/export",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`phoneDialRecord_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
381
src/views/system/shortMessageSendRecord/index.vue
Normal file
381
src/views/system/shortMessageSendRecord/index.vue
Normal file
@ -0,0 +1,381 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="68px"
|
||||||
|
>
|
||||||
|
<el-form-item label="姓名" prop="patientId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientId"
|
||||||
|
placeholder="请输入患者姓名"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者手机号" prop="patientPhone" label-width="90px">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.patientPhone"
|
||||||
|
placeholder="请输入患者手机号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="消息发送时间" prop="sendTime" label-width="98px">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="queryParams.sendTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择消息发送时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="关联账单" prop="billId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billId"
|
||||||
|
placeholder="请输入关联账单id"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
size="mini"
|
||||||
|
@click="handleQuery"
|
||||||
|
>搜索</el-button
|
||||||
|
>
|
||||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
|
>重置</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['system:shortMessageSendRecord:export']"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar
|
||||||
|
style="margin-right: 20px"
|
||||||
|
:showSearch.sync="showSearch"
|
||||||
|
@queryTable="getList"
|
||||||
|
></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table
|
||||||
|
v-loading="loading"
|
||||||
|
:data="shortMessageSendRecordList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="姓名" align="center" prop="patientId" />
|
||||||
|
<el-table-column label="患者手机号" align="center" prop="patientPhone" />
|
||||||
|
<el-table-column
|
||||||
|
label="消息发送时间"
|
||||||
|
align="center"
|
||||||
|
prop="sendTime"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.sendTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="模板名称"
|
||||||
|
align="center"
|
||||||
|
prop="messageTemplateId"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<el-table-column label="短信长度" align="center" prop="messageLength" />
|
||||||
|
<el-table-column label="短信数量" align="center" prop="messageQuantity" />
|
||||||
|
<el-table-column
|
||||||
|
label="短信单价"
|
||||||
|
align="center"
|
||||||
|
prop="messageUnitPrice"
|
||||||
|
/>
|
||||||
|
<el-table-column label="短信价格" align="center" prop="messagePrice" />
|
||||||
|
<el-table-column label="关联账单" align="center" prop="billId" />
|
||||||
|
<el-table-column
|
||||||
|
label="操作"
|
||||||
|
align="center"
|
||||||
|
class-name="small-padding fixed-width"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:shortMessageSendRecord:edit']"
|
||||||
|
>修改</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
v-hasPermi="['system:shortMessageSendRecord:remove']"
|
||||||
|
>删除</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total > 0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改短信发送结果记录对话框 -->
|
||||||
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="患者id" prop="patientId">
|
||||||
|
<el-input v-model="form.patientId" placeholder="请输入患者id" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="签约患者管理任务节点表id" prop="manageRouteNodeId">
|
||||||
|
<el-input
|
||||||
|
v-model="form.manageRouteNodeId"
|
||||||
|
placeholder="请输入签约患者管理任务节点表id"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="患者手机号" prop="patientPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="form.patientPhone"
|
||||||
|
placeholder="请输入患者手机号"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="消息发送时间" prop="sendTime">
|
||||||
|
<el-date-picker
|
||||||
|
clearable
|
||||||
|
v-model="form.sendTime"
|
||||||
|
type="date"
|
||||||
|
value-format="yyyy-MM-dd"
|
||||||
|
placeholder="请选择消息发送时间"
|
||||||
|
>
|
||||||
|
</el-date-picker>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="消息模板id" prop="messageTemplateId">
|
||||||
|
<el-input
|
||||||
|
v-model="form.messageTemplateId"
|
||||||
|
placeholder="请输入消息模板id"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="消息内容">
|
||||||
|
<editor v-model="form.messageNodeContent" :min-height="192" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="推送结果状态码" prop="errorCode">
|
||||||
|
<el-input
|
||||||
|
v-model="form.errorCode"
|
||||||
|
placeholder="请输入推送结果状态码"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信长度" prop="messageLength">
|
||||||
|
<el-input v-model="form.messageLength" placeholder="请输入短信长度" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信数量" prop="messageQuantity">
|
||||||
|
<el-input
|
||||||
|
v-model="form.messageQuantity"
|
||||||
|
placeholder="请输入短信数量"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信单价" prop="messageUnitPrice">
|
||||||
|
<el-input
|
||||||
|
v-model="form.messageUnitPrice"
|
||||||
|
placeholder="请输入短信单价"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="短信价格" prop="messagePrice">
|
||||||
|
<el-input v-model="form.messagePrice" placeholder="请输入短信价格" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="关联账单id" prop="billId">
|
||||||
|
<el-input v-model="form.billId" placeholder="请输入关联账单id" />
|
||||||
|
</el-form-item>
|
||||||
|
</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>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listShortMessageSendRecord,
|
||||||
|
getShortMessageSendRecord,
|
||||||
|
delShortMessageSendRecord,
|
||||||
|
addShortMessageSendRecord,
|
||||||
|
updateShortMessageSendRecord,
|
||||||
|
} from "@/api/system/shortMessageSendRecord";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "ShortMessageSendRecord",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 短信发送结果记录表格数据
|
||||||
|
shortMessageSendRecordList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
patientId: null,
|
||||||
|
patientPhone: null,
|
||||||
|
sendTime: null,
|
||||||
|
messageNodeContent: null,
|
||||||
|
errorStatus: null,
|
||||||
|
messageType: null,
|
||||||
|
billId: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询短信发送结果记录列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listShortMessageSendRecord(this.queryParams).then((response) => {
|
||||||
|
this.shortMessageSendRecordList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
patientId: null,
|
||||||
|
patientPhone: null,
|
||||||
|
sendTime: null,
|
||||||
|
messageNodeContent: null,
|
||||||
|
errorStatus: "0",
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
messageType: null,
|
||||||
|
billId: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.ids = selection.map((item) => item.id);
|
||||||
|
this.single = selection.length !== 1;
|
||||||
|
this.multiple = !selection.length;
|
||||||
|
},
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
handleAdd() {
|
||||||
|
this.reset();
|
||||||
|
this.open = true;
|
||||||
|
this.title = "添加短信发送结果记录";
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
getShortMessageSendRecord(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改短信发送结果记录";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateShortMessageSendRecord(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addShortMessageSendRecord(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除短信发送结果记录编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delShortMessageSendRecord(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"system/shortMessageSendRecord/export",
|
||||||
|
{
|
||||||
|
...this.queryParams,
|
||||||
|
},
|
||||||
|
`shortMessageSendRecord_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user