This commit is contained in:
2025-07-07 13:05:12 +08:00
parent cf0e02ded8
commit 8630988938
2 changed files with 38 additions and 134 deletions

View File

@ -10,15 +10,8 @@
{{ $route.query.patientName }}
</div>
<div class="gender">
{{
$route.query.sex == "MALE"
? "男"
: $route.query.sex == "FEMALE"
? "女"
: ""
}}
{{ $route.query.sex == "MALE" ? "男" : $route.query.sex == "FEMALE" ? "女" : "" }}
</div>
<div class="source">
<div class="item" style="color: #00e06e; border-color: #00e06e"
v-if="$route.query.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
@ -36,11 +29,10 @@
<div>管理端</div>
</div>
</div>
<div class="age">
{{ $route.query.age }}
</div>
<div class="age">身份证号{{ $route.query.patientPhone }}</div>
<div class="age">身份证号{{ $route.query.cardNo }}</div>
<div class="age">患者电话{{ $route.query.patientPhone }}</div>
<div class="age">出生日期{{ $route.query.birthDate }}</div>
<div class="age">预约时间{{ $route.query.appointmentDate }}</div>

View File

@ -1,101 +1,45 @@
<template>
<div class="app-container">
<el-button
size="small"
@click="classificationOpen = true"
style="
<el-button size="small" @click="classificationOpen = true" style="
width: 200px;
font-size: 14px;
text-align: left;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
"
:style="handleselectName ? 'color:black' : 'color:#C0C4CC'"
>{{ handleselectName ? handleselectName : "选择公众号模板" }}</el-button
>
<el-dialog
title="公众号模板选择"
:visible.sync="classificationOpen"
width="70%"
:before-close="classificationOpenfalse"
>
" :style="handleselectName ? 'color:black' : 'color:#C0C4CC'">
{{ handleselectName ? handleselectName : "选择公众号模板" }}
</el-button>
<el-dialog title="公众号模板选择" :visible.sync="classificationOpen" width="70%" :before-close="classificationOpenfalse">
<el-row :gutter="20">
<!--部门数据-->
<el-col :span="6" :xs="24">
<DepartmentList
ref="DepartmentList"
:modal="false"
@clickdepartment="clickdepartment"
:methods="'listWechatTemplateNumtwo'"
>
<DepartmentList ref="DepartmentList" :modal="false" @clickdepartment="clickdepartment"
:methods="'listWechatTemplateNumtwo'">
</DepartmentList>
</el-col>
<!--用户数据-->
<el-col :span="18" :xs="24">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="68px"
>
<el-form-item
label="微信模版名称"
prop="wechatTemplateName"
label-width="100px"
>
<el-input
v-model="queryParams.wechatTemplateName"
placeholder="请输入模版名称"
clearable
@keyup.enter.native="handleQuery"
/>
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"
label-width="68px">
<el-form-item label="微信模版名称" prop="wechatTemplateName" label-width="100px">
<el-input v-model="queryParams.wechatTemplateName" placeholder="请输入模版名称" clearable
@keyup.enter.native="handleQuery" />
</el-form-item>
<el-form-item label="模板ID" prop="templateId">
<el-input
v-model="queryParams.templateId"
placeholder="请输入模板ID"
clearable
@keyup.enter.native="handleQuery"
/>
<el-input v-model="queryParams.templateId" 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-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="templateList"
@row-dblclick="handleselect"
>
<el-table-column
type="index"
width="48"
align="center"
label="序号"
/>
<el-table-column
label="微信模版名称"
align="center"
prop="wechatTemplateName"
/>
<el-table v-loading="loading" :data="templateList" @row-dblclick="handleselect">
<el-table-column type="index" width="48" align="center" label="序号" />
<el-table-column label="微信模版名称" align="center" prop="wechatTemplateName" />
<el-table-column label="模板ID" align="center" prop="templateId" />
<el-table-column
label="模板来源"
align="center"
prop="templateSource"
>
<el-table-column label="模板来源" align="center" prop="templateSource">
<template slot-scope="scope">
{{
scope.row.templateSource == "WE_CHAT_APPLET" ? "小程序" : ""
@ -107,55 +51,23 @@
}}
</template>
</el-table-column>
<el-table-column
label="适用任务类型"
align="center"
prop="suitTaskTypeName"
:show-overflow-tooltip="true"
/>
<el-table-column
label="病种名称"
align="center"
prop="diseaseTypeName"
/>
<el-table-column
label="模板内容"
align="center"
prop="templateContent"
/>
<el-table-column label="适用任务类型" align="center" prop="suitTaskTypeName" :show-overflow-tooltip="true" />
<el-table-column label="病种名称" align="center" prop="diseaseTypeName" />
<el-table-column label="模板内容" align="center" prop="templateContent" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
@click="handleselect(scope.row)"
v-if="handleselectId != scope.row.templateId"
>选择</el-button
>
<el-button
size="mini"
type="text"
@click="nohandleselect(scope.row)"
v-if="handleselectId == scope.row.templateId"
>取消选择</el-button
>
<el-button size="mini" type="text" @click="handleselect(scope.row)"
v-if="handleselectId != scope.row.templateId">选择</el-button>
<el-button size="mini" type="text" @click="nohandleselect(scope.row)"
v-if="handleselectId == scope.row.templateId">取消选择</el-button>
</template>
</el-table-column>
</el-table>
</el-col>
</el-row>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
@pagination="getList" />
</el-dialog>
</div>
</template>
@ -242,17 +154,17 @@ export default {
nohandleselect() {
this.handleselectId = ''
this.handleselectName = ''
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "",officialTemplateCode:"" });
this.$emit("on-template", { templateId: '', templateName: '', templateContent: "", officialTemplateCode: "" });
},
handleselect(item) {
this.handleselectId = item.id
this.handleselectName = item.wechatTemplateName
this.$emit("on-template", {
this.$emit("on-template", {
templateId: item.id,
templateName: item.wechatTemplateName,
templateContent: item.textMessageContent,
officialTemplateCode: item.officialTemplateCode,
});
templateName: item.wechatTemplateName,
templateContent: item.textMessageContent,
officialTemplateCode: item.officialTemplateCode,
});
this.classificationOpen = false
},
/** 查询微信模板信息列表 */