新功能开发
This commit is contained in:
parent
c1d646d1fc
commit
4381b08be6
@ -5,7 +5,7 @@ VUE_APP_TITLE = 新医路院后患者管理平台
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/开发环境
|
# 新医路院后患者管理平台/开发环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.4.245:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
|
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@ -5,5 +5,5 @@ VUE_APP_TITLE = 新医路院后患者管理平台
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/生产环境
|
# 新医路院后患者管理平台/生产环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.4.245:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
|
|
||||||
|
|||||||
@ -7,4 +7,4 @@ NODE_ENV = production
|
|||||||
ENV = 'staging'
|
ENV = 'staging'
|
||||||
|
|
||||||
# 新医路院后患者管理平台/测试环境
|
# 新医路院后患者管理平台/测试环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.4.245:19090'
|
VUE_APP_BASE_API = 'http://8.131.93.145:54098'
|
||||||
|
|||||||
@ -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'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
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'
|
||||||
|
})
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
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>
|
||||||
@ -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 {
|
||||||
@ -910,8 +909,8 @@ export default {
|
|||||||
this.$refs.upload.clearFiles();
|
this.$refs.upload.clearFiles();
|
||||||
this.$alert(
|
this.$alert(
|
||||||
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
||||||
response.msg +
|
response.msg +
|
||||||
"</div>",
|
"</div>",
|
||||||
"导入结果",
|
"导入结果",
|
||||||
{ dangerouslyUseHTMLString: true }
|
{ dangerouslyUseHTMLString: true }
|
||||||
);
|
);
|
||||||
@ -976,7 +975,7 @@ export default {
|
|||||||
createTime: null,
|
createTime: null,
|
||||||
updateBy: null,
|
updateBy: null,
|
||||||
updateTime: null,
|
updateTime: null,
|
||||||
parentDepartmentName:null,
|
parentDepartmentName: null,
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
@ -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) => {
|
||||||
@ -1093,7 +1089,7 @@ export default {
|
|||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
@ -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