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 }} {{ $route.query.patientName }}
</div> </div>
<div class="gender"> <div class="gender">
{{ {{ $route.query.sex == "MALE" ? "男" : $route.query.sex == "FEMALE" ? "女" : "" }}
$route.query.sex == "MALE"
? "男"
: $route.query.sex == "FEMALE"
? "女"
: ""
}}
</div> </div>
<div class="source"> <div class="source">
<div class="item" style="color: #00e06e; border-color: #00e06e" <div class="item" style="color: #00e06e; border-color: #00e06e"
v-if="$route.query.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'"> v-if="$route.query.patientSource == 'WE_CHAT_OFFICIAL_ACCOUNT'">
@ -36,11 +29,10 @@
<div>管理端</div> <div>管理端</div>
</div> </div>
</div> </div>
<div class="age"> <div class="age">
{{ $route.query.age }} {{ $route.query.age }}
</div> </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.patientPhone }}</div>
<div class="age">出生日期{{ $route.query.birthDate }}</div> <div class="age">出生日期{{ $route.query.birthDate }}</div>
<div class="age">预约时间{{ $route.query.appointmentDate }}</div> <div class="age">预约时间{{ $route.query.appointmentDate }}</div>

View File

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