<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="schemeid">
|
<el-input
|
v-model="queryParams.schemeid"
|
placeholder="请输入 方案ID "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 触发场景ID " prop="triggersceneid">
|
<el-input
|
v-model="queryParams.triggersceneid"
|
placeholder="请输入 触发场景ID "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 触发规则ID " prop="triggerruleid">
|
<el-input
|
v-model="queryParams.triggerruleid"
|
placeholder="请输入 触发规则ID "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 是否周期任务;0.否 1.是 " prop="iscycle">
|
<el-input
|
v-model="queryParams.iscycle"
|
placeholder="请输入 是否周期任务;0.否 1.是 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 计划执行时间数值 " prop="planexecutevalue">
|
<el-input
|
v-model="queryParams.planexecutevalue"
|
placeholder="请输入 计划执行时间数值 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 计划执行时间单位;1.天 2.周 3.月 4.年 " prop="planexecuteunit">
|
<el-input
|
v-model="queryParams.planexecuteunit"
|
placeholder="请输入 计划执行时间单位;1.天 2.周 3.月 4.年 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 计划执行具体时间 " prop="planexecutetime">
|
<el-input
|
v-model="queryParams.planexecutetime"
|
placeholder="请输入 计划执行具体时间 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 计划执行是否实时;0.定时 1.实时 " prop="isrealtime">
|
<el-input
|
v-model="queryParams.isrealtime"
|
placeholder="请输入 计划执行是否实时;0.定时 1.实时 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 周期频率 " prop="cyclefrequency">
|
<el-input
|
v-model="queryParams.cyclefrequency"
|
placeholder="请输入 周期频率 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 周期频率单位;1.天 2.周 3.月 4.年 " prop="cyclefrequencyunit">
|
<el-input
|
v-model="queryParams.cyclefrequencyunit"
|
placeholder="请输入 周期频率单位;1.天 2.周 3.月 4.年 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 周期频率次数 " prop="cyclefrequencycount">
|
<el-input
|
v-model="queryParams.cyclefrequencycount"
|
placeholder="请输入 周期频率次数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 有效期天数 " prop="termvalidityday">
|
<el-input
|
v-model="queryParams.termvalidityday"
|
placeholder="请输入 有效期天数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 有效期规则;1.当天 2.提前 3.延迟 4.提前或延迟 " prop="termvalidityrule">
|
<el-input
|
v-model="queryParams.termvalidityrule"
|
placeholder="请输入 有效期规则;1.当天 2.提前 3.延迟 4.提前或延迟 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 有效期前提醒天数 " prop="termvaliditytipsday">
|
<el-input
|
v-model="queryParams.termvaliditytipsday"
|
placeholder="请输入 有效期前提醒天数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 有效期提醒当天具体时间 " prop="termvaliditytipstime">
|
<el-input
|
v-model="queryParams.termvaliditytipstime"
|
placeholder="请输入 有效期提醒当天具体时间 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 关联编号 科室&项目 " prop="relationid">
|
<el-input
|
v-model="queryParams.relationid"
|
placeholder="请输入 关联编号 科室&项目 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 有限期限/天 " prop="limitedday">
|
<el-input
|
v-model="queryParams.limitedday"
|
placeholder="请输入 有限期限/天 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 逾期判断天数 " prop="overdueday">
|
<el-input
|
v-model="queryParams.overdueday"
|
placeholder="请输入 逾期判断天数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 逾期前提醒天数 " prop="overduetipsday">
|
<el-input
|
v-model="queryParams.overduetipsday"
|
placeholder="请输入 逾期前提醒天数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 失访判断天数 " prop="lossday">
|
<el-input
|
v-model="queryParams.lossday"
|
placeholder="请输入 失访判断天数 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 执行模板 微信&AI外呼模板 " prop="executetemplate">
|
<el-input
|
v-model="queryParams.executetemplate"
|
placeholder="请输入 执行模板 微信&AI外呼模板 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 额外执行模板 短信模板 " prop="executetemplateextra">
|
<el-input
|
v-model="queryParams.executetemplateextra"
|
placeholder="请输入 额外执行模板 短信模板 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 执行顺序;1.微信优先 2.短信优先 3.同时发送 " prop="executeorder">
|
<el-input
|
v-model="queryParams.executeorder"
|
placeholder="请输入 执行顺序;1.微信优先 2.短信优先 3.同时发送 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 机构ID " prop="orgid">
|
<el-input
|
v-model="queryParams.orgid"
|
placeholder="请输入 机构ID "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 上传标记 " prop="isupload">
|
<el-input
|
v-model="queryParams.isupload"
|
placeholder="请输入 上传标记 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 上传时间 " prop="uploadTime">
|
<el-date-picker clearable
|
v-model="queryParams.uploadTime"
|
type="date"
|
value-format="yyyy-MM-dd"
|
placeholder="请选择 上传时间 ">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label=" 是否本地 " prop="islocal">
|
<el-input
|
v-model="queryParams.islocal"
|
placeholder="请输入 是否本地 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 语音合成厂商 " prop="voicemanufacturers">
|
<el-input
|
v-model="queryParams.voicemanufacturers"
|
placeholder="请输入 语音合成厂商 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 语音合成配置 " prop="voiceconfig">
|
<el-input
|
v-model="queryParams.voiceconfig"
|
placeholder="请输入 语音合成配置 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 完成条件;1通话状态 2复核状态 " prop="completecondition">
|
<el-input
|
v-model="queryParams.completecondition"
|
placeholder="请输入 完成条件;1通话状态 2复核状态 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 完成条件对应状态 " prop="completeconditionstate">
|
<el-input
|
v-model="queryParams.completeconditionstate"
|
placeholder="请输入 完成条件对应状态 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 关联编号 科室&项目(多选) " prop="relationlistid">
|
<el-input
|
v-model="queryParams.relationlistid"
|
placeholder="请输入 关联编号 科室&项目(多选) "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 关联代码 问卷&宣教 " prop="relationcode">
|
<el-input
|
v-model="queryParams.relationcode"
|
placeholder="请输入 关联代码 问卷&宣教 "
|
clearable
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label=" 是否存在重发标记 " prop="isrepeat">
|
<el-input
|
v-model="queryParams.isrepeat"
|
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-row :gutter="10" class="mb8">
|
<el-col :span="1.5">
|
<el-button
|
type="primary"
|
plain
|
icon="el-icon-plus"
|
size="mini"
|
@click="handleAdd"
|
v-hasPermi="['smartor:schemetaskconfig:add']"
|
>新增</el-button>
|
</el-col>
|
<el-col :span="1.5">
|
<el-button
|
type="success"
|
plain
|
icon="el-icon-edit"
|
size="mini"
|
:disabled="single"
|
@click="handleUpdate"
|
v-hasPermi="['smartor:schemetaskconfig:edit']"
|
>修改</el-button>
|
</el-col>
|
<el-col :span="1.5">
|
<el-button
|
type="danger"
|
plain
|
icon="el-icon-delete"
|
size="mini"
|
:disabled="multiple"
|
@click="handleDelete"
|
v-hasPermi="['smartor:schemetaskconfig:remove']"
|
>删除</el-button>
|
</el-col>
|
<el-col :span="1.5">
|
<el-button
|
type="warning"
|
plain
|
icon="el-icon-download"
|
size="mini"
|
@click="handleExport"
|
v-hasPermi="['smartor:schemetaskconfig:export']"
|
>导出</el-button>
|
</el-col>
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
</el-row>
|
|
<el-table v-loading="loading" :data="schemetaskconfigList" @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="schemeid" />
|
<el-table-column label=" 触发场景ID " align="center" prop="triggersceneid" />
|
<el-table-column label=" 触发规则ID " align="center" prop="triggerruleid" />
|
<el-table-column label=" 任务类型;1.随访任务 2.宣教任务 3. 提醒任务 4. 复诊管理任务 5. 复查管理任务 6.其他任务 " align="center" prop="tasktype" />
|
<el-table-column label=" 是否周期任务;0.否 1.是 " align="center" prop="iscycle" />
|
<el-table-column label=" 计划执行时间数值 " align="center" prop="planexecutevalue" />
|
<el-table-column label=" 计划执行时间单位;1.天 2.周 3.月 4.年 " align="center" prop="planexecuteunit" />
|
<el-table-column label=" 计划执行具体时间 " align="center" prop="planexecutetime" />
|
<el-table-column label=" 计划执行类型;1.当天执行 2.第二天按指定时间执行 3.计划时间早于指定时间不执行 " align="center" prop="planexecutetype" />
|
<el-table-column label=" 计划执行是否实时;0.定时 1.实时 " align="center" prop="isrealtime" />
|
<el-table-column label=" 周期频率 " align="center" prop="cyclefrequency" />
|
<el-table-column label=" 周期频率单位;1.天 2.周 3.月 4.年 " align="center" prop="cyclefrequencyunit" />
|
<el-table-column label=" 周期频率次数 " align="center" prop="cyclefrequencycount" />
|
<el-table-column label=" 有效期天数 " align="center" prop="termvalidityday" />
|
<el-table-column label=" 有效期规则;1.当天 2.提前 3.延迟 4.提前或延迟 " align="center" prop="termvalidityrule" />
|
<el-table-column label=" 有效期前提醒天数 " align="center" prop="termvaliditytipsday" />
|
<el-table-column label=" 有效期提醒当天具体时间 " align="center" prop="termvaliditytipstime" />
|
<el-table-column label=" 关联编号 科室&项目 " align="center" prop="relationid" />
|
<el-table-column label=" 介绍&提醒内容 " align="center" prop="content" />
|
<el-table-column label=" 提示内容 " align="center" prop="tipscontent" />
|
<el-table-column label=" 有限期限/天 " align="center" prop="limitedday" />
|
<el-table-column label=" 逾期判断天数 " align="center" prop="overdueday" />
|
<el-table-column label=" 逾期前提醒天数 " align="center" prop="overduetipsday" />
|
<el-table-column label=" 失访判断天数 " align="center" prop="lossday" />
|
<el-table-column label=" 执行方式;1.微信/短信 2.AI电话 3.不自动发送 4.微信 5.短信 6.企业微信 7.企业微信群 8.钉钉 9.钉钉群 10.飞书 11.飞书群 " align="center" prop="executetype" />
|
<el-table-column label=" 执行模板 微信&AI外呼模板 " align="center" prop="executetemplate" />
|
<el-table-column label=" 额外执行模板 短信模板 " align="center" prop="executetemplateextra" />
|
<el-table-column label=" 执行顺序;1.微信优先 2.短信优先 3.同时发送 " align="center" prop="executeorder" />
|
<el-table-column label=" 执行语音类型;1.录音 2.TTS " align="center" prop="executevoicetype" />
|
<el-table-column label=" 录音文件&TTS参数 " align="center" prop="executevoicecontent" />
|
<el-table-column label=" 提醒医护人员ID" align="center" prop="exeutetipspersonid" />
|
<el-table-column label=" 机构ID " align="center" prop="orgid" />
|
<el-table-column label=" 上传标记 " align="center" prop="isupload" />
|
<el-table-column label=" 上传时间 " align="center" prop="uploadTime" width="180">
|
<template slot-scope="scope">
|
<span>{{ parseTime(scope.row.uploadTime, '{y}-{m}-{d}') }}</span>
|
</template>
|
</el-table-column>
|
<el-table-column label=" 是否本地 " align="center" prop="islocal" />
|
<el-table-column label=" 关联项目类型;1.检查 2.检验 " align="center" prop="relationtype" />
|
<el-table-column label=" 语音合成厂商 " align="center" prop="voicemanufacturers" />
|
<el-table-column label=" 语音合成配置 " align="center" prop="voiceconfig" />
|
<el-table-column label=" 完成条件;1通话状态 2复核状态 " align="center" prop="completecondition" />
|
<el-table-column label=" 完成条件对应状态 " align="center" prop="completeconditionstate" />
|
<el-table-column label=" 关联编号 科室&项目(多选) " align="center" prop="relationlistid" />
|
<el-table-column label=" 关联代码 问卷&宣教 " align="center" prop="relationcode" />
|
<el-table-column label=" 是否存在重发标记 " align="center" prop="isrepeat" />
|
<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="['smartor:schemetaskconfig:edit']"
|
>修改</el-button>
|
<el-button
|
size="mini"
|
type="text"
|
icon="el-icon-delete"
|
@click="handleDelete(scope.row)"
|
v-hasPermi="['smartor:schemetaskconfig: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="schemeid">
|
<el-input v-model="form.schemeid" placeholder="请输入 方案ID " />
|
</el-form-item>
|
<el-form-item label=" 触发场景ID " prop="triggersceneid">
|
<el-input v-model="form.triggersceneid" placeholder="请输入 触发场景ID " />
|
</el-form-item>
|
<el-form-item label=" 触发规则ID " prop="triggerruleid">
|
<el-input v-model="form.triggerruleid" placeholder="请输入 触发规则ID " />
|
</el-form-item>
|
<el-form-item label=" 是否周期任务;0.否 1.是 " prop="iscycle">
|
<el-input v-model="form.iscycle" placeholder="请输入 是否周期任务;0.否 1.是 " />
|
</el-form-item>
|
<el-form-item label=" 计划执行时间数值 " prop="planexecutevalue">
|
<el-input v-model="form.planexecutevalue" placeholder="请输入 计划执行时间数值 " />
|
</el-form-item>
|
<el-form-item label=" 计划执行时间单位;1.天 2.周 3.月 4.年 " prop="planexecuteunit">
|
<el-input v-model="form.planexecuteunit" placeholder="请输入 计划执行时间单位;1.天 2.周 3.月 4.年 " />
|
</el-form-item>
|
<el-form-item label=" 计划执行具体时间 " prop="planexecutetime">
|
<el-input v-model="form.planexecutetime" placeholder="请输入 计划执行具体时间 " />
|
</el-form-item>
|
<el-form-item label=" 计划执行是否实时;0.定时 1.实时 " prop="isrealtime">
|
<el-input v-model="form.isrealtime" placeholder="请输入 计划执行是否实时;0.定时 1.实时 " />
|
</el-form-item>
|
<el-form-item label=" 周期频率 " prop="cyclefrequency">
|
<el-input v-model="form.cyclefrequency" placeholder="请输入 周期频率 " />
|
</el-form-item>
|
<el-form-item label=" 周期频率单位;1.天 2.周 3.月 4.年 " prop="cyclefrequencyunit">
|
<el-input v-model="form.cyclefrequencyunit" placeholder="请输入 周期频率单位;1.天 2.周 3.月 4.年 " />
|
</el-form-item>
|
<el-form-item label=" 周期频率次数 " prop="cyclefrequencycount">
|
<el-input v-model="form.cyclefrequencycount" placeholder="请输入 周期频率次数 " />
|
</el-form-item>
|
<el-form-item label=" 有效期天数 " prop="termvalidityday">
|
<el-input v-model="form.termvalidityday" placeholder="请输入 有效期天数 " />
|
</el-form-item>
|
<el-form-item label=" 有效期规则;1.当天 2.提前 3.延迟 4.提前或延迟 " prop="termvalidityrule">
|
<el-input v-model="form.termvalidityrule" placeholder="请输入 有效期规则;1.当天 2.提前 3.延迟 4.提前或延迟 " />
|
</el-form-item>
|
<el-form-item label=" 有效期前提醒天数 " prop="termvaliditytipsday">
|
<el-input v-model="form.termvaliditytipsday" placeholder="请输入 有效期前提醒天数 " />
|
</el-form-item>
|
<el-form-item label=" 有效期提醒当天具体时间 " prop="termvaliditytipstime">
|
<el-input v-model="form.termvaliditytipstime" placeholder="请输入 有效期提醒当天具体时间 " />
|
</el-form-item>
|
<el-form-item label=" 关联编号 科室&项目 " prop="relationid">
|
<el-input v-model="form.relationid" placeholder="请输入 关联编号 科室&项目 " />
|
</el-form-item>
|
<el-form-item label=" 介绍&提醒内容 ">
|
<editor v-model="form.content" :min-height="192"/>
|
</el-form-item>
|
<el-form-item label=" 提示内容 ">
|
<editor v-model="form.tipscontent" :min-height="192"/>
|
</el-form-item>
|
<el-form-item label=" 有限期限/天 " prop="limitedday">
|
<el-input v-model="form.limitedday" placeholder="请输入 有限期限/天 " />
|
</el-form-item>
|
<el-form-item label=" 逾期判断天数 " prop="overdueday">
|
<el-input v-model="form.overdueday" placeholder="请输入 逾期判断天数 " />
|
</el-form-item>
|
<el-form-item label=" 逾期前提醒天数 " prop="overduetipsday">
|
<el-input v-model="form.overduetipsday" placeholder="请输入 逾期前提醒天数 " />
|
</el-form-item>
|
<el-form-item label=" 失访判断天数 " prop="lossday">
|
<el-input v-model="form.lossday" placeholder="请输入 失访判断天数 " />
|
</el-form-item>
|
<el-form-item label=" 执行模板 微信&AI外呼模板 " prop="executetemplate">
|
<el-input v-model="form.executetemplate" placeholder="请输入 执行模板 微信&AI外呼模板 " />
|
</el-form-item>
|
<el-form-item label=" 额外执行模板 短信模板 " prop="executetemplateextra">
|
<el-input v-model="form.executetemplateextra" placeholder="请输入 额外执行模板 短信模板 " />
|
</el-form-item>
|
<el-form-item label=" 执行顺序;1.微信优先 2.短信优先 3.同时发送 " prop="executeorder">
|
<el-input v-model="form.executeorder" placeholder="请输入 执行顺序;1.微信优先 2.短信优先 3.同时发送 " />
|
</el-form-item>
|
<el-form-item label=" 录音文件&TTS参数 ">
|
<editor v-model="form.executevoicecontent" :min-height="192"/>
|
</el-form-item>
|
<el-form-item label=" 提醒医护人员ID" prop="exeutetipspersonid">
|
<el-input v-model="form.exeutetipspersonid" type="textarea" placeholder="请输入内容" />
|
</el-form-item>
|
<el-form-item label=" 机构ID " prop="orgid">
|
<el-input v-model="form.orgid" placeholder="请输入 机构ID " />
|
</el-form-item>
|
<el-form-item label=" 删除标记 " prop="delFlag">
|
<el-input v-model="form.delFlag" placeholder="请输入 删除标记 " />
|
</el-form-item>
|
<el-form-item label=" 上传标记 " prop="isupload">
|
<el-input v-model="form.isupload" placeholder="请输入 上传标记 " />
|
</el-form-item>
|
<el-form-item label=" 上传时间 " prop="uploadTime">
|
<el-date-picker clearable
|
v-model="form.uploadTime"
|
type="date"
|
value-format="yyyy-MM-dd"
|
placeholder="请选择 上传时间 ">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label=" 是否本地 " prop="islocal">
|
<el-input v-model="form.islocal" placeholder="请输入 是否本地 " />
|
</el-form-item>
|
<el-form-item label=" 语音合成厂商 " prop="voicemanufacturers">
|
<el-input v-model="form.voicemanufacturers" placeholder="请输入 语音合成厂商 " />
|
</el-form-item>
|
<el-form-item label=" 语音合成配置 " prop="voiceconfig">
|
<el-input v-model="form.voiceconfig" placeholder="请输入 语音合成配置 " />
|
</el-form-item>
|
<el-form-item label=" 完成条件;1通话状态 2复核状态 " prop="completecondition">
|
<el-input v-model="form.completecondition" placeholder="请输入 完成条件;1通话状态 2复核状态 " />
|
</el-form-item>
|
<el-form-item label=" 完成条件对应状态 " prop="completeconditionstate">
|
<el-input v-model="form.completeconditionstate" placeholder="请输入 完成条件对应状态 " />
|
</el-form-item>
|
<el-form-item label=" 关联编号 科室&项目(多选) " prop="relationlistid">
|
<el-input v-model="form.relationlistid" placeholder="请输入 关联编号 科室&项目(多选) " />
|
</el-form-item>
|
<el-form-item label=" 关联代码 问卷&宣教 " prop="relationcode">
|
<el-input v-model="form.relationcode" placeholder="请输入 关联代码 问卷&宣教 " />
|
</el-form-item>
|
<el-form-item label=" 是否存在重发标记 " prop="isrepeat">
|
<el-input v-model="form.isrepeat" placeholder="请输入 是否存在重发标记 " />
|
</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 { listSchemetaskconfig, getSchemetaskconfig, delSchemetaskconfig, addSchemetaskconfig, updateSchemetaskconfig } from "@/api/smartor/schemetaskconfig";
|
|
export default {
|
name: "Schemetaskconfig",
|
data() {
|
return {
|
// 遮罩层
|
loading: true,
|
// 选中数组
|
ids: [],
|
// 非单个禁用
|
single: true,
|
// 非多个禁用
|
multiple: true,
|
// 显示搜索条件
|
showSearch: true,
|
// 总条数
|
total: 0,
|
// 方案任务配置表格数据
|
schemetaskconfigList: [],
|
// 弹出层标题
|
title: "",
|
// 是否显示弹出层
|
open: false,
|
// 查询参数
|
queryParams: {
|
pageNum: 1,
|
pageSize: 10,
|
schemeid: null,
|
triggersceneid: null,
|
triggerruleid: null,
|
tasktype: null,
|
iscycle: null,
|
planexecutevalue: null,
|
planexecuteunit: null,
|
planexecutetime: null,
|
planexecutetype: null,
|
isrealtime: null,
|
cyclefrequency: null,
|
cyclefrequencyunit: null,
|
cyclefrequencycount: null,
|
termvalidityday: null,
|
termvalidityrule: null,
|
termvaliditytipsday: null,
|
termvaliditytipstime: null,
|
relationid: null,
|
content: null,
|
tipscontent: null,
|
limitedday: null,
|
overdueday: null,
|
overduetipsday: null,
|
lossday: null,
|
executetype: null,
|
executetemplate: null,
|
executetemplateextra: null,
|
executeorder: null,
|
executevoicetype: null,
|
executevoicecontent: null,
|
exeutetipspersonid: null,
|
orgid: null,
|
isupload: null,
|
uploadTime: null,
|
islocal: null,
|
relationtype: null,
|
voicemanufacturers: null,
|
voiceconfig: null,
|
completecondition: null,
|
completeconditionstate: null,
|
relationlistid: null,
|
relationcode: null,
|
isrepeat: null
|
},
|
// 表单参数
|
form: {},
|
// 表单校验
|
rules: {
|
delFlag: [
|
{ required: true, message: " 删除标记 不能为空", trigger: "blur" }
|
],
|
isupload: [
|
{ required: true, message: " 上传标记 不能为空", trigger: "blur" }
|
],
|
}
|
};
|
},
|
created() {
|
this.getList();
|
},
|
methods: {
|
/** 查询方案任务配置列表 */
|
getList() {
|
this.loading = true;
|
listSchemetaskconfig(this.queryParams).then(response => {
|
this.schemetaskconfigList = response.rows;
|
this.total = response.total;
|
this.loading = false;
|
});
|
},
|
// 取消按钮
|
cancel() {
|
this.open = false;
|
this.reset();
|
},
|
// 表单重置
|
reset() {
|
this.form = {
|
id: null,
|
schemeid: null,
|
triggersceneid: null,
|
triggerruleid: null,
|
tasktype: null,
|
iscycle: null,
|
planexecutevalue: null,
|
planexecuteunit: null,
|
planexecutetime: null,
|
planexecutetype: null,
|
isrealtime: null,
|
cyclefrequency: null,
|
cyclefrequencyunit: null,
|
cyclefrequencycount: null,
|
termvalidityday: null,
|
termvalidityrule: null,
|
termvaliditytipsday: null,
|
termvaliditytipstime: null,
|
relationid: null,
|
content: null,
|
tipscontent: null,
|
limitedday: null,
|
overdueday: null,
|
overduetipsday: null,
|
lossday: null,
|
executetype: null,
|
executetemplate: null,
|
executetemplateextra: null,
|
executeorder: null,
|
executevoicetype: null,
|
executevoicecontent: null,
|
exeutetipspersonid: null,
|
orgid: null,
|
delFlag: null,
|
updateBy: null,
|
updateTime: null,
|
createBy: null,
|
createTime: null,
|
isupload: null,
|
uploadTime: null,
|
islocal: null,
|
relationtype: null,
|
voicemanufacturers: null,
|
voiceconfig: null,
|
completecondition: null,
|
completeconditionstate: null,
|
relationlistid: null,
|
relationcode: null,
|
isrepeat: 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
|
getSchemetaskconfig(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) {
|
updateSchemetaskconfig(this.form).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
this.open = false;
|
this.getList();
|
});
|
} else {
|
addSchemetaskconfig(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 delSchemetaskconfig(ids);
|
}).then(() => {
|
this.getList();
|
this.$modal.msgSuccess("删除成功");
|
}).catch(() => {});
|
},
|
/** 导出按钮操作 */
|
handleExport() {
|
this.download('smartor/schemetaskconfig/export', {
|
...this.queryParams
|
}, `schemetaskconfig_${new Date().getTime()}.xlsx`)
|
}
|
}
|
};
|
</script>
|