| | |
| | | style="width: 700px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="其他" prop="medicalHistory"> |
| | | <el-form-item label="既往病史" prop="medicalHistory"> |
| | | <el-input |
| | | type="textarea" |
| | | rows="4" |
| | | v-model="form.medicalHistory" |
| | | placeholder="请输入" |
| | | placeholder="请输入既往病史" |
| | | style="width: 700px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 180px" placeholder="请输入体检号" clearable |
| | | @keyup.enter.native="submitForm" @blur="submitForm"></el-input> |
| | | @keyup.enter.native="submitForm" @blur="hb"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="体检时间" prop="tjTime"> |
| | | <el-date-picker v-model="startTime" type="datetimerange" align="right" :picker-options="pickerOptions" |
| | |
| | | dateChangebirthday1(val) { |
| | | this.startTime = val; |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | submitForm() { |
| | |
| | | v-model="queryParams.tjNumber" |
| | | style="width: 240px" |
| | | placeholder="请输入体检号" |
| | | @blur="submitForm" |
| | | @blur="hb" |
| | | @keyup.enter.native="submitForm" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | } |
| | | }); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | submitForm() { |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="submitForm" |
| | | @blur="submitForm" |
| | | @blur="hb" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="体检时间" prop="tjTime"> |
| | |
| | | "lj_positive", |
| | | "tj_work", |
| | | "tj_work_status", |
| | | "tj_smoking_pinlv", |
| | | "tj_work" |
| | | ], |
| | | name: "checkAll", |
| | | data() { |
| | |
| | | this.startTime = val; |
| | | }, |
| | | |
| | | hb(){ |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | submitForm() { |
| | | this.loading = true; |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | hb(){ |
| | | console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.page = 1; |
| | |
| | | v-model="queryParams.tjNumber" |
| | | style="width: 240px" |
| | | placeholder="请输入体检号" |
| | | @blur="submitForm" |
| | | @blur="hb" |
| | | @keyup.enter.native="submitForm" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | queryParams: { |
| | | page: 1, |
| | | pageSize: 10, |
| | | pageNum:1, |
| | | tjNumber: "", |
| | | type: "", |
| | | name: null, |
| | |
| | | } |
| | | }); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | submitForm() { |
| | |
| | | @keyup.enter.native="handleQuery"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="请输入体检号" @keyup.enter.native="submitForm"></el-input> |
| | | <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 240px" placeholder="请输入体检号" @keyup.enter.native="submitForm" @blur="hb"></el-input> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button size="mini" type="primary" @click="submitForm">搜索</el-button> |
| | |
| | | |
| | | }); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNumber); |
| | | if (this.queryParams.tjNumber != "") { |
| | | this.submitForm(); |
| | | } |
| | | }, |
| | | |
| | | // 搜索 |
| | | submitForm() { |
| | |
| | | <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="name"> |
| | | <el-input v-model="queryParams.name" placeholder="请输入客户姓名" clearable @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input v-model="queryParams.tjNum" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间"> |
| | | <el-date-picker clearable v-model="createTimeList" style="width: 240px" value-format="yyyy-MM-dd" |
| | | type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" |
| | | :picker-options="pickerOptions"></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="延期时间"> |
| | | <el-date-picker clearable v-model="finishTimeList" type="daterange" range-separator="-" |
| | | start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" |
| | | value-format="yyyy-MM-dd" placeholder="请选择体检完成时间" style="width: 240px"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <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="name"> |
| | | <el-input |
| | | v-model="queryParams.name" |
| | | placeholder="请输入客户姓名" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input |
| | | v-model="queryParams.tjNum" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | ref="inputName" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="createTimeList" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :picker-options="pickerOptions" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="延期时间"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="finishTimeList" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :picker-options="pickerOptions" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择体检完成时间" |
| | | style="width: 240px" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
| | | >重置</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" size="mini" @click="transmittext" :disabled="multiple">批量发送短信</el-button> |
| | | <el-button type="primary" size="mini" @click="transmit" :disabled="multiple">批量发送邮件</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="transmittext" |
| | | :disabled="multiple" |
| | | >批量发送短信</el-button |
| | | > |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="transmit" |
| | | :disabled="multiple" |
| | | >批量发送邮件</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | |
| | | <template> |
| | | <el-table border style="margin: 14px; width: 97%" v-loading="loading" :data="extensionList" |
| | | @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" height="10px" fixed="left" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="50px" fixed="left" height="10px" /> |
| | | <el-table-column label="姓名" align="center" prop="cusName" height="10px" /> |
| | | <el-table-column label="性别" align="center" prop="sex" width="55px" height="10px"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.sex == '0'">男</span> |
| | | <span v-if="scope.row.sex == '1'">女</span> |
| | | <span v-if="scope.row.sex == '2'">未知</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="年龄" align="center" prop="age" height="10px" /> |
| | | <el-table-column label="电话" align="center" prop="phone" :show-overflow-tooltip="true" height="10px" /> |
| | | <!-- <el-table-column label="团队/个人" align="center" prop="tjType" height="10px"> |
| | | <template> |
| | | <el-table |
| | | border |
| | | style="margin: 14px; width: 97%" |
| | | v-loading="loading" |
| | | :data="extensionList" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55" |
| | | align="center" |
| | | height="10px" |
| | | fixed="left" |
| | | /> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | prop="newID" |
| | | width="50px" |
| | | fixed="left" |
| | | height="10px" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | align="center" |
| | | prop="cusName" |
| | | height="10px" |
| | | /> |
| | | <el-table-column |
| | | label="性别" |
| | | align="center" |
| | | prop="sex" |
| | | width="55px" |
| | | height="10px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.sex == '0'">男</span> |
| | | <span v-if="scope.row.sex == '1'">女</span> |
| | | <span v-if="scope.row.sex == '2'">未知</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="年龄" align="center" prop="age" height="10px" /> |
| | | <el-table-column |
| | | label="电话" |
| | | align="center" |
| | | prop="phone" |
| | | :show-overflow-tooltip="true" |
| | | height="10px" |
| | | /> |
| | | <!-- <el-table-column label="团队/个人" align="center" prop="tjType" height="10px"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.tjType == '1'">个人</span> |
| | | <span v-if="scope.row.tjType == '2'">团队</span> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="延期项目" align="center" prop="names" height="10px" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="创建时间" align="center" prop="updateTime" width="155px" height="10px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.updateTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="延期时间" align="center" prop="yqTime" width="155px" height="10px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.yqTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="短信发送状态" align="center" prop="msgSend" height="10px" |
| | | :show-overflow-tooltip="true"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.msgSend == '1'">已发送</span> |
| | | <span v-if="scope.row.msgSend == '0'">未发送</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="邮件发送状态" align="center" prop="emilSend" height="10px" :show-overflow-tooltip="true"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.emilSend == '1'">已发送</span> |
| | | <span v-if="scope.row.emilSend == '0'">未发送</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | <el-table-column |
| | | label="延期项目" |
| | | align="center" |
| | | prop="names" |
| | | height="10px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="创建时间" |
| | | align="center" |
| | | prop="updateTime" |
| | | width="155px" |
| | | height="10px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.updateTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="延期时间" |
| | | align="center" |
| | | prop="yqTime" |
| | | width="155px" |
| | | height="10px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.yqTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="短信发送状态" |
| | | align="center" |
| | | prop="msgSend" |
| | | height="10px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.msgSend == '1'">已发送</span> |
| | | <span v-if="scope.row.msgSend == '0'">未发送</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="邮件发送状态" |
| | | align="center" |
| | | prop="emilSend" |
| | | height="10px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.emilSend == '1'">已发送</span> |
| | | <span v-if="scope.row.emilSend == '0'">未发送</span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getList" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-drawer :title="title" :visible.sync="drawer" size="60%"> |
| | | <el-form :model="querytempType" ref="queryForm" size="small" :inline="true" label-width="68px" |
| | | style="margin:0 20px"> |
| | | <el-form-item label="模板类型" prop="tempType"> |
| | | <el-select v-model="querytempType.tempType" filterable placeholder="请选择模板类型" clearable> |
| | | <el-option v-for="dict in dict.type.tj_send_type" :key="dict.value" :label="dict.label" |
| | | :value="dict.value" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleTempType">搜索</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-table v-loading="loading" ref="tb" :data="sendTemplateList" @selection-change="handleChange" border |
| | | style="margin:0 20px;width:94%"> |
| | | <el-table-column type="selection" width="45" align="center" /> |
| | | <el-table-column label="编号" align="center" prop="id" width="60" /> |
| | | <el-table-column label="模板标题" align="center" prop="tempTitle" width="100" /> |
| | | <el-table-column label="模板内容" align="center" prop="tempContent" /> |
| | | <el-table-column label="模板类型" align="center" prop="tempType" width="100"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.tj_send_type" :value="scope.row.tempType" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="querytempType.pageNum" |
| | | :limit.sync="querytempType.pageSize" @pagination="handleTempType" /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-left: 89%;"> |
| | | <el-button type="primary" v-if="mail == true" @click="sendingmail">发 送</el-button> |
| | | <el-button type="primary" v-if="mail == false" @click="sendingtext">发 送</el-button> |
| | | </div> |
| | | </el-drawer> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-drawer :title="title" :visible.sync="drawer" size="60%"> |
| | | <el-form |
| | | :model="querytempType" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | style="margin: 0 20px" |
| | | > |
| | | <el-form-item label="模板类型" prop="tempType"> |
| | | <el-select |
| | | v-model="querytempType.tempType" |
| | | filterable |
| | | placeholder="请选择模板类型" |
| | | clearable |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.tj_send_type" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleTempType" |
| | | >搜索</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-table |
| | | v-loading="loading" |
| | | ref="tb" |
| | | :data="sendTemplateList" |
| | | @selection-change="handleChange" |
| | | border |
| | | style="margin: 0 20px; width: 94%" |
| | | > |
| | | <el-table-column type="selection" width="45" align="center" /> |
| | | <el-table-column label="编号" align="center" prop="id" width="60" /> |
| | | <el-table-column |
| | | label="模板标题" |
| | | align="center" |
| | | prop="tempTitle" |
| | | width="100" |
| | | /> |
| | | <el-table-column label="模板内容" align="center" prop="tempContent" /> |
| | | <el-table-column |
| | | label="模板类型" |
| | | align="center" |
| | | prop="tempType" |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.tj_send_type" |
| | | :value="scope.row.tempType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="querytempType.pageNum" |
| | | :limit.sync="querytempType.pageSize" |
| | | @pagination="handleTempType" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="margin-left: 89%"> |
| | | <el-button type="primary" v-if="mail == true" @click="sendingmail" |
| | | >发 送</el-button |
| | | > |
| | | <el-button type="primary" v-if="mail == false" @click="sendingtext" |
| | | >发 送</el-button |
| | | > |
| | | </div> |
| | | </el-drawer> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { getextensionlist,sendMessageOrEmail } from "@/api/hosp/extension"; |
| | | import { listSendTemplate, } from "@/api/hosp/sendTemplate"; |
| | | import { getextensionlist, sendMessageOrEmail } from "@/api/hosp/extension"; |
| | | import { listSendTemplate } from "@/api/hosp/sendTemplate"; |
| | | import ViewPdf from "@/components/ViewPdf"; |
| | | import { queryCompany } from "@/api/team/tuanti"; |
| | | export default { |
| | | components: { |
| | | ViewPdf, |
| | | }, |
| | | name: "Order", |
| | | dicts: ['tj_send_type', 'sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | mail: true, |
| | | gation: {}, |
| | | drawer: false, |
| | | value: "", |
| | | // 弹出层标题 |
| | | title: "", |
| | | tempId: null, |
| | | proIds: [], |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | userId: "", |
| | | // 总条数 |
| | | total: 0, |
| | | // 体检记录表格数据 |
| | | extensionList: [], |
| | | sendTemplateList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | CompanyList: [], |
| | | createTimeList: null, |
| | | finishTimeList: null, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | name: null, |
| | | tjNum: null, |
| | | djbeginTime: null, |
| | | djendTime: null, |
| | | yqbeginTime: null, |
| | | yqendTime: null, |
| | | components: { |
| | | ViewPdf, |
| | | }, |
| | | name: "Order", |
| | | dicts: ["tj_send_type", "sys_normal_disable"], |
| | | data() { |
| | | return { |
| | | mail: true, |
| | | gation: {}, |
| | | drawer: false, |
| | | value: "", |
| | | // 弹出层标题 |
| | | title: "", |
| | | tempId: null, |
| | | proIds: [], |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | userId: "", |
| | | // 总条数 |
| | | total: 0, |
| | | // 体检记录表格数据 |
| | | extensionList: [], |
| | | sendTemplateList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | CompanyList: [], |
| | | createTimeList: null, |
| | | finishTimeList: null, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | name: null, |
| | | tjNum: null, |
| | | djbeginTime: null, |
| | | djendTime: null, |
| | | yqbeginTime: null, |
| | | yqendTime: null, |
| | | }, |
| | | querytempType: { |
| | | tempType: null, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | // 表单参数 |
| | | form: { |
| | | tjType: 2, |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | | pickerOptions: { |
| | | shortcuts: [ |
| | | { |
| | | text: "最近一周", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | querytempType: { |
| | | tempType: null, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | | { |
| | | text: "最近一个月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | // 表单参数 |
| | | form: { |
| | | tjType: 2, |
| | | }, |
| | | { |
| | | text: "最近三个月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | // 表单校验 |
| | | rules: {}, |
| | | pickerOptions: { |
| | | shortcuts: [ |
| | | { |
| | | text: "最近一周", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | }, |
| | | { |
| | | text: "最近一个月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | }, |
| | | { |
| | | text: "最近三个月", |
| | | onClick(picker) { |
| | | const end = new Date(); |
| | | const start = new Date(); |
| | | start.setTime(start.getTime() - 3600 * 1000 * 24 * 90); |
| | | picker.$emit("pick", [start, end]); |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getNowTime(); |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getNowTime(); |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | dialogVisibles() { |
| | | this.$message.error("请连接拨号器!"); |
| | | }, |
| | | handleClick(tab, event) { |
| | | }, |
| | | //处理默认选中当前日期 |
| | | getNowTime() { |
| | | var curDate = new Date().getTime(); |
| | | var dayNum = 3 * 24 * 3600 * 1000; |
| | | var threeDays = curDate - dayNum; |
| | | var sDay = this.getLocalTime(threeDays); |
| | | var end = this.getLocalTime(curDate); |
| | | this.finishTimeList = [sDay, end]; |
| | | }, |
| | | add0(m) { |
| | | return m < 10 ? "0" + m : m; |
| | | }, |
| | | getLocalTime(nS) { |
| | | var time = new Date(nS); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | return y + "-" + this.add0(m) + "-" + this.add0(d); |
| | | }, |
| | | onSubmit() { |
| | | }, |
| | | |
| | | |
| | | /** 查询体检记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | if (this.createTimeList) { |
| | | this.queryParams.djbeginTime = this.createTimeList[0] |
| | | this.queryParams.djendTime = this.createTimeList[1] |
| | | } else { |
| | | this.queryParams.djbeginTime = null |
| | | this.queryParams.djendTime = null |
| | | } |
| | | if (this.finishTimeList) { |
| | | this.queryParams.yqbeginTime = this.finishTimeList[0] |
| | | this.queryParams.yqendTime = this.finishTimeList[1] |
| | | } else { |
| | | this.queryParams.yqbeginTime = null |
| | | this.queryParams.yqendTime = null |
| | | } |
| | | |
| | | getextensionlist(this.queryParams).then((response) => { |
| | | response.data.list.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.extensionList = response.data.list; |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let compName = query; |
| | | queryCompany(compName).then((response) => { |
| | | this.CompanyList = response.data; |
| | | this.CompanyList.forEach((item) => { |
| | | this.queryParams = item; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | // 搜索 |
| | | handleTempType() { |
| | | this.loading = true; |
| | | this.transmit() |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | orderId: null, |
| | | userId: null, |
| | | tjType: null, |
| | | tjNumber: null, |
| | | tjSerialNumber: null, |
| | | pacId: null, |
| | | createTime: null, |
| | | finishTime: null, |
| | | updateTime: null, |
| | | reportTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | firmId: null, |
| | | firmDeptName: null, |
| | | firmWorkId: null, |
| | | photo: 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; |
| | | }, |
| | | handleChange(selection) { |
| | | selection.forEach(item => { |
| | | this.tempId = item.id |
| | | }) |
| | | |
| | | if (selection.length > 1) { |
| | | let del_row = selection.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | }, |
| | | |
| | | // 出现邮件弹框 |
| | | transmit() { |
| | | this.drawer = true |
| | | this.mail = true |
| | | this.title = "选择邮件发送模板" |
| | | this.loading = true; |
| | | listSendTemplate(this.querytempType).then(response => { |
| | | this.sendTemplateList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | // let orderIds = this.ids; |
| | | // sendEmail(orderIds).then((response) => { |
| | | // if (msg === "操作成功") { |
| | | // this.$modal.msgSuccess("发送成功!"); |
| | | // } |
| | | // if (code === 500) { |
| | | // this.$error.msgSuccess("发送失败!"); |
| | | // } |
| | | // }); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | // 出现短信弹框 |
| | | transmittext() { |
| | | this.drawer = true |
| | | this.mail = false |
| | | this.title = "选择短信发送模板" |
| | | this.loading = true; |
| | | listSendTemplate(this.querytempType).then(response => { |
| | | this.sendTemplateList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | // 发送邮件 |
| | | sendingmail() { |
| | | if (this.tempId) { |
| | | let data = { |
| | | yqorderIds: this.ids, |
| | | tempId: this.tempId, |
| | | type:1 |
| | | } |
| | | sendMessageOrEmail(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("发送成功"); |
| | | this.getList() |
| | | } |
| | | }) |
| | | this.drawer = false |
| | | } else { |
| | | this.$modal.msgError("请选择邮件模板"); |
| | | } |
| | | |
| | | }, |
| | | // 发送短信 |
| | | sendingtext() { |
| | | if (this.tempId) { |
| | | let data = { |
| | | yqorderIds: this.ids, |
| | | tempId: this.tempId, |
| | | type:2 |
| | | } |
| | | sendMessageOrEmail(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("发送成功"); |
| | | this.getList() |
| | | } |
| | | }) |
| | | this.drawer = false |
| | | } else { |
| | | this.$modal.msgError("请选择短信模板"); |
| | | } |
| | | }, |
| | | methods: { |
| | | dialogVisibles() { |
| | | this.$message.error("请连接拨号器!"); |
| | | }, |
| | | handleClick(tab, event) {}, |
| | | //处理默认选中当前日期 |
| | | getNowTime() { |
| | | var curDate = new Date().getTime(); |
| | | var dayNum = 3 * 24 * 3600 * 1000; |
| | | var threeDays = curDate - dayNum; |
| | | var sDay = this.getLocalTime(threeDays); |
| | | var end = this.getLocalTime(curDate); |
| | | this.finishTimeList = [sDay, end]; |
| | | }, |
| | | add0(m) { |
| | | return m < 10 ? "0" + m : m; |
| | | }, |
| | | getLocalTime(nS) { |
| | | var time = new Date(nS); |
| | | var y = time.getFullYear(); |
| | | var m = time.getMonth() + 1; |
| | | var d = time.getDate(); |
| | | return y + "-" + this.add0(m) + "-" + this.add0(d); |
| | | }, |
| | | onSubmit() {}, |
| | | |
| | | /** 查询体检记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | if (this.createTimeList) { |
| | | this.queryParams.djbeginTime = this.createTimeList[0]; |
| | | this.queryParams.djendTime = this.createTimeList[1]; |
| | | } else { |
| | | this.queryParams.djbeginTime = null; |
| | | this.queryParams.djendTime = null; |
| | | } |
| | | if (this.finishTimeList) { |
| | | this.queryParams.yqbeginTime = this.finishTimeList[0]; |
| | | this.queryParams.yqendTime = this.finishTimeList[1]; |
| | | } else { |
| | | this.queryParams.yqbeginTime = null; |
| | | this.queryParams.yqendTime = null; |
| | | } |
| | | |
| | | getextensionlist(this.queryParams).then((response) => { |
| | | response.data.list.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.extensionList = response.data.list; |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | if (query) { |
| | | let compName = query; |
| | | queryCompany(compName).then((response) => { |
| | | this.CompanyList = response.data; |
| | | this.CompanyList.forEach((item) => { |
| | | this.queryParams = item; |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | // 搜索 |
| | | handleTempType() { |
| | | this.loading = true; |
| | | this.transmit(); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | orderId: null, |
| | | userId: null, |
| | | tjType: null, |
| | | tjNumber: null, |
| | | tjSerialNumber: null, |
| | | pacId: null, |
| | | createTime: null, |
| | | finishTime: null, |
| | | updateTime: null, |
| | | reportTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | firmId: null, |
| | | firmDeptName: null, |
| | | firmWorkId: null, |
| | | photo: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | 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; |
| | | }, |
| | | handleChange(selection) { |
| | | selection.forEach((item) => { |
| | | this.tempId = item.id; |
| | | }); |
| | | |
| | | if (selection.length > 1) { |
| | | let del_row = selection.shift(); |
| | | this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中 |
| | | } |
| | | }, |
| | | |
| | | // 出现邮件弹框 |
| | | transmit() { |
| | | this.drawer = true; |
| | | this.mail = true; |
| | | this.title = "选择邮件发送模板"; |
| | | this.loading = true; |
| | | listSendTemplate(this.querytempType).then((response) => { |
| | | this.sendTemplateList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | // let orderIds = this.ids; |
| | | // sendEmail(orderIds).then((response) => { |
| | | // if (msg === "操作成功") { |
| | | // this.$modal.msgSuccess("发送成功!"); |
| | | // } |
| | | // if (code === 500) { |
| | | // this.$error.msgSuccess("发送失败!"); |
| | | // } |
| | | // }); |
| | | // this.$tab.refreshPage(); |
| | | }, |
| | | // 出现短信弹框 |
| | | transmittext() { |
| | | this.drawer = true; |
| | | this.mail = false; |
| | | this.title = "选择短信发送模板"; |
| | | this.loading = true; |
| | | listSendTemplate(this.querytempType).then((response) => { |
| | | this.sendTemplateList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | |
| | | // 发送邮件 |
| | | sendingmail() { |
| | | if (this.tempId) { |
| | | let data = { |
| | | yqorderIds: this.ids, |
| | | tempId: this.tempId, |
| | | type: 1, |
| | | }; |
| | | sendMessageOrEmail(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("发送成功"); |
| | | this.getList(); |
| | | } |
| | | }); |
| | | this.drawer = false; |
| | | } else { |
| | | this.$modal.msgError("请选择邮件模板"); |
| | | } |
| | | }, |
| | | // 发送短信 |
| | | sendingtext() { |
| | | if (this.tempId) { |
| | | let data = { |
| | | yqorderIds: this.ids, |
| | | tempId: this.tempId, |
| | | type: 2, |
| | | }; |
| | | sendMessageOrEmail(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("发送成功"); |
| | | this.getList(); |
| | | } |
| | | }); |
| | | this.drawer = false; |
| | | } else { |
| | | this.$modal.msgError("请选择短信模板"); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss"> |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |
| | | width: 30%; |
| | | } |
| | | |
| | | .el-table__header-wrapper .el-checkbox { |
| | | display: none; |
| | | display: none; |
| | | } |
| | | |
| | | .main { |
| | | height: 700px; |
| | | overflow: hidden; |
| | | height: 700px; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | #printIframe::-webkit-scrollbar { |
| | | width: 6px; |
| | | width: 6px; |
| | | } |
| | | |
| | | /* 修改 滚动条的 下面 的 样式 */ |
| | | #printIframe::-webkit-scrollbar-track { |
| | | background-color: white; |
| | | -webkit-border-radius: 2em; |
| | | -moz-border-radius: 2em; |
| | | border-radius: 2em; |
| | | background-color: white; |
| | | -webkit-border-radius: 2em; |
| | | -moz-border-radius: 2em; |
| | | border-radius: 2em; |
| | | } |
| | | |
| | | /* 修改 滑块 */ |
| | | #printIframe::-webkit-scrollbar-thumb { |
| | | background-color: #dcdfe6; |
| | | -webkit-border-radius: 2em; |
| | | -moz-border-radius: 2em; |
| | | border-radius: 2em; |
| | | background-color: #dcdfe6; |
| | | -webkit-border-radius: 2em; |
| | | -moz-border-radius: 2em; |
| | | border-radius: 2em; |
| | | } |
| | | |
| | | .tab1 { |
| | | width: 700px; |
| | | display: flex; |
| | | margin-top: 8px; |
| | | width: 700px; |
| | | display: flex; |
| | | margin-top: 8px; |
| | | } |
| | | |
| | | .drawer1 { |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | display: flex; |
| | | flex-direction: row; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | } |
| | | |
| | | .drawer2 { |
| | | height: 100px; |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | flex-direction: column; |
| | | margin-top: 20px; |
| | | font-size: 16px; |
| | | margin-bottom: 20px; |
| | | height: 100px; |
| | | display: flex; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | flex-direction: column; |
| | | margin-top: 20px; |
| | | font-size: 16px; |
| | | margin-bottom: 20px; |
| | | } |
| | | |
| | | .a { |
| | | font-size: 14px; |
| | | color: #409eff; |
| | | font-size: 14px; |
| | | color: #409eff; |
| | | } |
| | | |
| | | .drawer3 { |
| | | min-height: 400px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | font-size: 14px; |
| | | min-height: 400px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-evenly; |
| | | align-items: flex-start; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .drawer4 { |
| | | width: 100%; |
| | | height: 20px; |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: 10px; |
| | | width: 100%; |
| | | height: 20px; |
| | | display: flex; |
| | | justify-content: center; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .drawer4 { |
| | | display: flex; |
| | | justify-content: center; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .ap { |
| | | font-size: 14px; |
| | | color: #606266; |
| | | font-weight: 600; |
| | | font-size: 14px; |
| | | color: #606266; |
| | | font-weight: 600; |
| | | } |
| | | </style> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" style="width: 170px" clearable |
| | | @keyup.enter.native="handleQuery" @blur="handleQuery" /> |
| | | @keyup.enter.native="handleQuery" @blur="hb" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | |
| | | hb() { |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | style="width: 170px" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | ], |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log(value); |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(""); |
| | |
| | | this.tjAskHistorysList = []; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | <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="tjNumber"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNumber" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input v-model="queryParams.userName" 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> |
| | | <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="tjNumber"> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="queryParams.tjNumber" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input |
| | | v-model="queryParams.userName" |
| | | 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-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="['hosp:hzlog:add']">新增 |
| | |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> --> |
| | | |
| | | <el-table v-loading="loading" :data="hzlogList" @selection-change="handleSelectionChange" border> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="会诊id" align="center" prop="id" /> --> |
| | | <!-- <el-table-column label="会诊订单" align="center" prop="orderId" /> --> |
| | | <!-- <el-table-column label="用户" align="center" prop="userId" /> --> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <el-table-column label="用户名" align="center" prop="userName" /> |
| | | <el-table-column label="会诊类型" align="center" prop="hzType"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.hzType == '0'">全院会诊</span> |
| | | <span v-if="scope.row.hzType == '1'">科室会诊</span> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 0全院会诊1科室会诊 --> |
| | | <el-table-column label="会诊科室" align="center" prop="hzDeptName" /> |
| | | <!-- <el-table-column label="会诊申请人" align="center" prop="hzDoctorId" /> --> |
| | | <el-table-column label="会诊申请人" align="center" prop="hzDoctorName" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:edit']">查看回复 |
| | | </el-button> |
| | | <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="hzlogList" |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="会诊id" align="center" prop="id" /> --> |
| | | <!-- <el-table-column label="会诊订单" align="center" prop="orderId" /> --> |
| | | <!-- <el-table-column label="用户" align="center" prop="userId" /> --> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <el-table-column label="用户名" align="center" prop="userName" /> |
| | | <el-table-column label="会诊类型" align="center" prop="hzType"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.hz_type" |
| | | :value="scope.row.hzType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 0全院会诊1科室会诊 --> |
| | | <el-table-column label="会诊科室" align="center" prop="hzDeptName" /> |
| | | <!-- <el-table-column label="会诊申请人" align="center" prop="hzDoctorId" /> --> |
| | | <el-table-column label="会诊申请人" align="center" prop="hzDoctorName" /> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:edit']" |
| | | >查看回复 |
| | | </el-button> |
| | | <!-- <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['hosp:hzlog:remove']">删除 |
| | | </el-button> --> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <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-drawer title="会诊回复记录" :visible.sync="drawer" :before-close="handleClose" > |
| | | <div class="block"> |
| | | <el-timeline > |
| | | <el-timeline-item v-for="(item,index) in hzReplyLogsList" :key="index" :timestamp=item.createTime placement="top"> |
| | | <el-card> |
| | | <h2>科室:{{ item.replyDeptName}}</h2> |
| | | <h3>回复内容:{{ item.replyContent}}</h3> |
| | | <p>{{ item.replyDoctorName}} 提交于 {{item.createTime}}</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </el-drawer> |
| | | <el-drawer |
| | | title="会诊回复记录" |
| | | :visible.sync="drawer" |
| | | :before-close="handleClose" |
| | | > |
| | | <div class="block"> |
| | | <el-timeline> |
| | | <el-timeline-item |
| | | v-for="(item, index) in hzReplyLogsList" |
| | | :key="index" |
| | | :timestamp="item.createTime" |
| | | placement="top" |
| | | > |
| | | <el-card> |
| | | <h2>科室:{{ item.replyDeptName }}</h2> |
| | | <h3>回复内容:{{ item.replyContent }}</h3> |
| | | <p>{{ item.replyDoctorName }} 提交于 {{ item.createTime }}</p> |
| | | </el-card> |
| | | </el-timeline-item> |
| | | </el-timeline> |
| | | </div> |
| | | </el-drawer> |
| | | |
| | | <!-- 添加或修改会诊申请记录 |
| | | <!-- 添加或修改会诊申请记录 |
| | | 对话框 --> |
| | | <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
| | | <!-- <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="orderId"> |
| | | <el-input v-model="form.orderId" placeholder="请输入会诊订单id" /> |
| | |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | </el-dialog> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | listHzlog, |
| | | getHzlog, |
| | | delHzlog, |
| | | addHzlog, |
| | | updateHzlog |
| | | listHzlog, |
| | | getHzlog, |
| | | delHzlog, |
| | | addHzlog, |
| | | updateHzlog, |
| | | } from "@/api/hosp/hzlog"; |
| | | |
| | | export default { |
| | | name: "Hzlog", |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 会诊申请记录 |
| | | // 表格数据 |
| | | hzlogList: [], |
| | | hzReplyLogsList:[], |
| | | drawer: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | name: "Hzlog", |
| | | dicts: ["hz_type"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 会诊申请记录 |
| | | // 表格数据 |
| | | hzlogList: [], |
| | | hzReplyLogsList: [], |
| | | drawer: false, |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询会诊申请记录 |
| | | methods: { |
| | | /** 查询会诊申请记录 |
| | | 列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listHzlog(this.queryParams).then(response => { |
| | | this.hzlogList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | handleClose() { |
| | | this.drawer = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | orderId: null, |
| | | userId: null, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | hzDeptId: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | hzDoctorId: null, |
| | | hzDoctorName: 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 |
| | | }, |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | this.drawer = true; |
| | | this.hzReplyLogsList = row.hzReplyLogsList |
| | | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | // handleAdd() { |
| | | // this.reset(); |
| | | // this.open = true; |
| | | // this.title = "添加会诊申请记录 |
| | | // "; |
| | | // }, |
| | | // /** 修改按钮操作 */ |
| | | // handleUpdate(row) { |
| | | // this.reset(); |
| | | // const id = row.id || this.ids |
| | | // getHzlog(id).then(response => { |
| | | // this.form = response.data; |
| | | // this.open = true; |
| | | // this.title = "修改会诊申请记录 |
| | | // "; |
| | | // }); |
| | | // }, |
| | | /** 提交按钮 */ |
| | | // submitForm() { |
| | | // this.$]] |
| | | // #refs["form"].validate(valid => { |
| | | // if (valid) { |
| | | // #foreach($column in $columns) |
| | | // #if($column.htmlType == "checkbox") |
| | | // this.form.$column.javaField = this.form.$ |
| | | // { |
| | | // column.javaField |
| | | // } |
| | | // . |
| | | // join(","); |
| | | // #end |
| | | // #end |
| | | // #if($table.sub) |
| | | // this.form.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // #end |
| | | // if (this.form.${ |
| | | // pkColumn.javaField |
| | | // } |
| | | // != |
| | | // null |
| | | // ) |
| | | // { |
| | | // update$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // add$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("新增成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }, |
| | | // /** 删除按钮操作 */ |
| | | // handleDelete(row) { |
| | | // const ${ pkColumn.javaField }s = row.$ |
| | | // { |
| | | // pkColumn.javaField |
| | | // } |
| | | // || |
| | | // this.ids; |
| | | // this.#[[$modal]] |
| | | // #.confirm('是否确认删除${functionName}编号为"' + ${ pkColumn.javaField }s + '"的数据项?').then(function () { |
| | | // return del$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (${ pkColumn.javaField }s); |
| | | // }).then(() => { |
| | | // this.getList(); |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("删除成功"); |
| | | // }).catch(() => { |
| | | // }); |
| | | // }, |
| | | // #if($table.sub) |
| | | // /** ${subTable.functionName}序号 */ |
| | | // row$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // Index({ row, rowIndex }) |
| | | // { |
| | | // row.index = rowIndex + 1; |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}添加按钮操作 */ |
| | | // handleAdd$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // let obj = {}; |
| | | // #foreach($column in $subTable.columns) |
| | | // #if($column.pk || $column.javaField == ${ subTableFkclassName }) |
| | | // #elseif($column.list && "" != $javaField) |
| | | // obj.$column.javaField = ""; |
| | | // #end |
| | | // #end |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List.push(obj); |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}删除按钮操作 */ |
| | | // handleDelete$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // if (this.checked${ |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // length == 0 |
| | | // ) |
| | | // { |
| | | // this.#[[$modal]] |
| | | // #.msgError("请先选择要删除的${subTable.functionName}数据"); |
| | | // } |
| | | // else |
| | | // { |
| | | // const ${ subclassName }List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // const checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // ; |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = ${ subclassName } List.filter(function (item) { |
| | | // return checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // indexOf(item.index) == -1 |
| | | // }); |
| | | // } |
| | | // } |
| | | // , |
| | | // /** 复选框选中数据 */ |
| | | // handle$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // SelectionChange(selection) |
| | | // { |
| | | // this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = selection.map(item => item.index) |
| | | // } |
| | | // , |
| | | // #end |
| | | // /** 导出按钮操作 */ |
| | | // handleExport() |
| | | // { |
| | | // this.download('${moduleName}/${businessName}/export', { |
| | | // ...this.queryParams |
| | | // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | // } |
| | | } |
| | | } |
| | | ; |
| | | getList() { |
| | | this.loading = true; |
| | | listHzlog(this.queryParams).then((response) => { |
| | | this.hzlogList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | handleClose() { |
| | | this.drawer = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | orderId: null, |
| | | userId: null, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | hzDeptId: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | hzDoctorId: null, |
| | | hzDoctorName: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | 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; |
| | | }, |
| | | handleUpdate(row) { |
| | | this.reset(); |
| | | this.drawer = true; |
| | | this.hzReplyLogsList = row.hzReplyLogsList; |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | // handleAdd() { |
| | | // this.reset(); |
| | | // this.open = true; |
| | | // this.title = "添加会诊申请记录 |
| | | // "; |
| | | // }, |
| | | // /** 修改按钮操作 */ |
| | | // handleUpdate(row) { |
| | | // this.reset(); |
| | | // const id = row.id || this.ids |
| | | // getHzlog(id).then(response => { |
| | | // this.form = response.data; |
| | | // this.open = true; |
| | | // this.title = "修改会诊申请记录 |
| | | // "; |
| | | // }); |
| | | // }, |
| | | /** 提交按钮 */ |
| | | // submitForm() { |
| | | // this.$]] |
| | | // #refs["form"].validate(valid => { |
| | | // if (valid) { |
| | | // #foreach($column in $columns) |
| | | // #if($column.htmlType == "checkbox") |
| | | // this.form.$column.javaField = this.form.$ |
| | | // { |
| | | // column.javaField |
| | | // } |
| | | // . |
| | | // join(","); |
| | | // #end |
| | | // #end |
| | | // #if($table.sub) |
| | | // this.form.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // #end |
| | | // if (this.form.${ |
| | | // pkColumn.javaField |
| | | // } |
| | | // != |
| | | // null |
| | | // ) |
| | | // { |
| | | // update$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // add$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("新增成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }, |
| | | // /** 删除按钮操作 */ |
| | | // handleDelete(row) { |
| | | // const ${ pkColumn.javaField }s = row.$ |
| | | // { |
| | | // pkColumn.javaField |
| | | // } |
| | | // || |
| | | // this.ids; |
| | | // this.#[[$modal]] |
| | | // #.confirm('是否确认删除${functionName}编号为"' + ${ pkColumn.javaField }s + '"的数据项?').then(function () { |
| | | // return del$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (${ pkColumn.javaField }s); |
| | | // }).then(() => { |
| | | // this.getList(); |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("删除成功"); |
| | | // }).catch(() => { |
| | | // }); |
| | | // }, |
| | | // #if($table.sub) |
| | | // /** ${subTable.functionName}序号 */ |
| | | // row$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // Index({ row, rowIndex }) |
| | | // { |
| | | // row.index = rowIndex + 1; |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}添加按钮操作 */ |
| | | // handleAdd$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // let obj = {}; |
| | | // #foreach($column in $subTable.columns) |
| | | // #if($column.pk || $column.javaField == ${ subTableFkclassName }) |
| | | // #elseif($column.list && "" != $javaField) |
| | | // obj.$column.javaField = ""; |
| | | // #end |
| | | // #end |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List.push(obj); |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}删除按钮操作 */ |
| | | // handleDelete$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // if (this.checked${ |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // length == 0 |
| | | // ) |
| | | // { |
| | | // this.#[[$modal]] |
| | | // #.msgError("请先选择要删除的${subTable.functionName}数据"); |
| | | // } |
| | | // else |
| | | // { |
| | | // const ${ subclassName }List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // const checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // ; |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = ${ subclassName } List.filter(function (item) { |
| | | // return checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // indexOf(item.index) == -1 |
| | | // }); |
| | | // } |
| | | // } |
| | | // , |
| | | // /** 复选框选中数据 */ |
| | | // handle$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // SelectionChange(selection) |
| | | // { |
| | | // this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = selection.map(item => item.index) |
| | | // } |
| | | // , |
| | | // #end |
| | | // /** 导出按钮操作 */ |
| | | // handleExport() |
| | | // { |
| | | // this.download('${moduleName}/${businessName}/export', { |
| | | // ...this.queryParams |
| | | // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | // } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | <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="tjNum"> |
| | | <el-input v-model="queryParams.tjNum" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="客户姓名" prop="cusName"> |
| | | <el-input v-model="queryParams.cusName" placeholder="请输入客户姓名" clearable @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="registrationTime"> |
| | | <el-date-picker clearable v-model="queryParams.registrationTime" type="date" value-format="yyyy-MM-dd" |
| | | placeholder="请选择登记时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="项目名" prop="proName"> |
| | | <el-input v-model="queryParams.proName" 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> |
| | | <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="tjNum"> |
| | | <el-input |
| | | v-model="queryParams.tjNum" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | ref="inputName" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="客户姓名" prop="cusName"> |
| | | <el-input |
| | | v-model="queryParams.cusName" |
| | | placeholder="请输入客户姓名" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="registrationTime"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="queryParams.registrationTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择登记时间" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="项目名" prop="proName"> |
| | | <el-input |
| | | v-model="queryParams.proName" |
| | | 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 size="mini" v-hasPermi="['hosp:detail:add']" |
| | | @click="handlerestore">恢复</el-button> |
| | | </el-col> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | size="mini" |
| | | v-hasPermi="['hosp:detail:add']" |
| | | @click="handlerestore" |
| | | >恢复</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | </el-row> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="inspectionList" |
| | | border |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="55px" /> |
| | | <el-table-column |
| | | label="体检号" |
| | | align="center" |
| | | prop="tjNum" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <!-- <el-table-column label="客户编号" align="center" prop="cusId" /> --> |
| | | <el-table-column |
| | | label="客户姓名" |
| | | align="center" |
| | | prop="cusName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="身份证号" |
| | | align="center" |
| | | prop="cusId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="项目名" |
| | | align="center" |
| | | prop="proName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="创建人" |
| | | align="center" |
| | | prop="createBy" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="登记时间" |
| | | align="center" |
| | | prop="registrationTime" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ |
| | | parseTime(scope.row.registrationTime, "{y}-{m}-{d}") |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="弃检时间" |
| | | align="center" |
| | | prop="createTime" |
| | | width="160px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ |
| | | parseTime(scope.row.createTime, "{y}-{m}-{d} {hh}:{mm}:{ss}") |
| | | }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="备注" |
| | | align="center" |
| | | prop="remark" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <!-- <el-table-column label="项目编号" align="center" prop="proId" /> --> |
| | | </el-table> |
| | | |
| | | <el-table v-loading="loading" :data="inspectionList" border @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="55px" /> |
| | | <el-table-column label="体检号" align="center" prop="tjNum" :show-overflow-tooltip="true" /> |
| | | <!-- <el-table-column label="客户编号" align="center" prop="cusId" /> --> |
| | | <el-table-column label="客户姓名" align="center" prop="cusName" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="身份证号" align="center" prop="cusId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="项目名" align="center" prop="proName" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="创建人" align="center" prop="createBy" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="登记时间" align="center" prop="registrationTime" :show-overflow-tooltip="true"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.registrationTime, '{y}-{m}-{d}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="弃检时间" align="center" prop="createTime" width="160px" :show-overflow-tooltip="true"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {hh}:{mm}:{ss}') }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="备注" align="center" prop="remark" :show-overflow-tooltip="true" /> |
| | | <!-- <el-table-column label="项目编号" align="center" prop="proId" /> --> |
| | | |
| | | </el-table> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" @pagination="getList" /> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination |
| | | v-show="total > 0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | listInspection, recall |
| | | } from "@/api/hosp/inspection"; |
| | | import { listInspection, recall } from "@/api/hosp/inspection"; |
| | | |
| | | export default { |
| | | name: "Inspection", |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | allList: [], |
| | | // 弃检表格数据 |
| | | inspectionList: [], |
| | | name: "Inspection", |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | allList: [], |
| | | // 弃检表格数据 |
| | | inspectionList: [], |
| | | |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNum: null, |
| | | cusName: null, |
| | | registrationTime: null, |
| | | proName: null |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNum: null, |
| | | cusName: null, |
| | | registrationTime: null, |
| | | proName: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询弃检列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listInspection(this.queryParams).then(response => { |
| | | this.inspectionList = response.rows; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1 |
| | | }); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | deleted: null, |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null, |
| | | tjNum: null, |
| | | cusId: null, |
| | | cusName: null, |
| | | registrationTime: null, |
| | | proId: null, |
| | | proName: null |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.allList = selection |
| | | console.log(this.allList ) |
| | | }, |
| | | handlerestore() { |
| | | recall(this.allList).then(res => { |
| | | if(res.code == 200){ |
| | | this.$modal.msgSuccess("已撤回成功"); |
| | | this.getList(); |
| | | } |
| | | }) |
| | | methods: { |
| | | /** 查询弃检列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listInspection(this.queryParams).then((response) => { |
| | | this.inspectionList = response.rows; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | deleted: null, |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null, |
| | | tjNum: null, |
| | | cusId: null, |
| | | cusName: null, |
| | | registrationTime: null, |
| | | proId: null, |
| | | proName: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.allList = selection; |
| | | }, |
| | | handlerestore() { |
| | | recall(this.allList).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("已撤回成功"); |
| | | this.getList(); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | .pag { |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | width: 100%; |
| | | display: flex; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .pag1 { |
| | | width: 30%; |
| | | width: 30%; |
| | | } |
| | | </style> |
| | |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" style="width: 170px" clearable |
| | | @keyup.enter.native="handleQuery" @blur="handleQuery" /> |
| | | @keyup.enter.native="handleQuery" @blur="hb" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | // } |
| | | this.TotalPrice1 = 0; |
| | | this.proIds = []; |
| | | console.log(this.DataList) |
| | | if (this.DataList.length != 0) { |
| | | this.list1 = false; |
| | | this.DataList.forEach((item) => { |
| | |
| | | <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="tjNumber"> |
| | | <el-input v-model="queryParams.tjNumber" placeholder="请输入体检号" style="width: 170px;" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="客户名称" prop="printBy"> |
| | | <el-input v-model="queryParams.printBy" placeholder="客户名称" clearable style="width: 100px;" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="打印时间" prop="printTime"> |
| | | <el-date-picker clearable v-model="queryParams.printTime" type="date" value-format="yyyy-MM-dd" |
| | | placeholder="请选择打印时间" style="width: 140px;"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="打印状态" prop="printStatus"> |
| | | <el-select v-model="queryParams.printStatus" placeholder="打印状态" clearable style="width:110px"> |
| | | <el-option v-for="dict in dict.type.print_success_fail" :key="dict.value" :label="dict.label" :value="dict.value" /> |
| | | <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="tjNumber"> |
| | | <el-input |
| | | v-model="queryParams.tjNumber" |
| | | placeholder="请输入体检号" |
| | | style="width: 170px" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | ref="inputName" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="客户名称" prop="printBy"> |
| | | <el-input |
| | | v-model="queryParams.printBy" |
| | | placeholder="客户名称" |
| | | clearable |
| | | style="width: 100px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="打印时间" prop="printTime"> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="queryParams.printTime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | placeholder="请选择打印时间" |
| | | style="width: 140px" |
| | | > |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="打印状态" prop="printStatus"> |
| | | <el-select |
| | | v-model="queryParams.printStatus" |
| | | placeholder="打印状态" |
| | | clearable |
| | | style="width: 110px" |
| | | > |
| | | <el-option |
| | | v-for="dict in dict.type.print_success_fail" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </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-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="printList" @selection-change="handleSelectionChange" border style="width: 80%;"> |
| | | <el-table-column label="客户名称" align="center" prop="printBy" /> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <el-table-column label="打印操作员" align="center" prop="createBy" /> |
| | | <el-table-column label="打印时间" align="center" prop="printTime" width="180"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.printTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="打印状态" align="center" prop="printStatus"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag :options="dict.type.print_success_fail" :value="scope.row.printStatus" /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="printList" |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | style="width: 80%" |
| | | > |
| | | <el-table-column label="客户名称" align="center" prop="printBy" /> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <el-table-column label="打印操作员" align="center" prop="createBy" /> |
| | | <el-table-column |
| | | label="打印时间" |
| | | align="center" |
| | | prop="printTime" |
| | | width="180" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.printTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="打印状态" align="center" prop="printStatus"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.print_success_fail" |
| | | :value="scope.row.printStatus" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <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" |
| | | /> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | listPrint, |
| | | getPrint, |
| | | delPrint, |
| | | addPrint, |
| | | updatePrint |
| | | listPrint, |
| | | getPrint, |
| | | delPrint, |
| | | addPrint, |
| | | updatePrint, |
| | | } from "@/api/hosp/print"; |
| | | import { getInfo } from "@/api/login"; |
| | | export default { |
| | | name: "Print", |
| | | dicts: ["print_success_fail",], |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log( value) |
| | | name: "Print", |
| | | dicts: ["print_success_fail"], |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log(value); |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(''); |
| | | } else if(value != undefined && value != ""){ |
| | | return callback(""); |
| | | } else if (value != undefined && value != "") { |
| | | return callback(); |
| | | }else if (!patter.test(value)) { |
| | | return callback(''); |
| | | } else if (!patter.test(value)) { |
| | | return callback(""); |
| | | } |
| | | }; |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 打印记录表格数据 |
| | | printList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | user: {}, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | printBy: null, |
| | | printTime: null, |
| | | printStatus: null, |
| | | createBy:null |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | deleted: [ |
| | | { |
| | | required: true, validator: checkPhoneNum, trigger: "blur" |
| | | } |
| | | ] |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 打印记录表格数据 |
| | | printList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | user: {}, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | printBy: null, |
| | | printTime: null, |
| | | printStatus: null, |
| | | createBy: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | deleted: [ |
| | | { |
| | | required: true, |
| | | validator: checkPhoneNum, |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询打印记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | getInfo().then((response) => { |
| | | this.user = response.user |
| | | }); |
| | | listPrint(this.queryParams).then(response => { |
| | | this.printList = response.rows; |
| | | this.printList.forEach(item => { |
| | | if (item.createBy === this.user.userId) { |
| | | item.createBy = this.user.nickName |
| | | } |
| | | }) |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | tjNumber: null, |
| | | printBy: null, |
| | | printTime: null, |
| | | printStatus: null, |
| | | createTime: null, |
| | | createBy: null, |
| | | updateTime: null, |
| | | updateBy: null, |
| | | deleted: 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 |
| | | getPrint(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改打印记录"; |
| | | }); |
| | | }, |
| | | |
| | | |
| | | } |
| | | |
| | | methods: { |
| | | /** 查询打印记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | getInfo().then((response) => { |
| | | this.user = response.user; |
| | | }); |
| | | listPrint(this.queryParams).then((response) => { |
| | | this.printList = response.rows; |
| | | this.printList.forEach((item) => { |
| | | if (item.createBy === this.user.userId) { |
| | | item.createBy = this.user.nickName; |
| | | } |
| | | }); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | tjNumber: null, |
| | | printBy: null, |
| | | printTime: null, |
| | | printStatus: null, |
| | | createTime: null, |
| | | createBy: null, |
| | | updateTime: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | 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; |
| | | getPrint(id).then((response) => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改打印记录"; |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <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="tjNumber"> |
| | | <el-input v-model="queryParams.tjNumber" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery" ref="inputName" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input v-model="queryParams.userName" placeholder="请输入用户名" clearable @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="${comment}" prop="hzDoctorName"> |
| | | <el-input v-model="queryParams.hzDoctorName" placeholder="请输入${comment}" 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> |
| | | <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="tjNumber"> |
| | | <el-input |
| | | v-model="queryParams.tjNumber" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | ref="inputName" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input |
| | | v-model="queryParams.userName" |
| | | placeholder="请输入用户名" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="${comment}" prop="hzDoctorName"> |
| | | <el-input |
| | | v-model="queryParams.hzDoctorName" |
| | | placeholder="请输入${comment}" |
| | | 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="['hosp:replylog: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="['hosp:replylog: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="['hosp:replylog: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="['hosp:replylog:export']">导出 |
| | | </el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | <!-- <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['hosp:replylog:add']" |
| | | >新增 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['hosp:replylog:edit']" |
| | | >修改 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['hosp:replylog:remove']" |
| | | >删除 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['hosp:replylog:export']" |
| | | >导出 |
| | | </el-button> |
| | | </el-col> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | </el-row> --> |
| | | |
| | | <el-table v-loading="loading" :data="replylogList" @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="orderId" /> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <el-table-column label="用户id" align="center" prop="userId" /> |
| | | <el-table-column label="用户名" align="center" prop="userName" /> |
| | | <el-table-column label="会诊类型0全院会诊1科室会诊" align="center" prop="hzType" /> |
| | | <el-table-column label="回复医生" align="center" prop="replyDoctorId" /> |
| | | <el-table-column label="回复医生名" align="center" prop="replyDoctorName" /> |
| | | <el-table-column label="回复部门" align="center" prop="replyDeptId" /> |
| | | <el-table-column label="回复部门名" align="center" prop="replyDeptName" /> |
| | | <el-table-column label="回复内容" align="center" prop="replyContent" /> |
| | | <el-table-column label="" align="center" prop="status" /> |
| | | <el-table-column label="" align="center" prop="remark" /> |
| | | <el-table-column label="会诊申请id" align="center" prop="hzId" /> |
| | | <el-table-column label="${comment}" align="center" prop="hzDoctorId" /> |
| | | <el-table-column label="${comment}" align="center" prop="hzDoctorName" /> |
| | | <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="['hosp:replylog:edit']">修改 |
| | | </el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['hosp:replylog:remove']">删除 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="replylogList" |
| | | @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="orderId" /> --> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" /> |
| | | <!-- <el-table-column label="用户id" align="center" prop="userId" /> --> |
| | | <el-table-column label="用户名" align="center" prop="userName" /> |
| | | <el-table-column label="会诊类型" align="center" prop="hzType"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.hz_type" |
| | | :value="scope.row.hzType" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- <el-table-column label="回复医生" align="center" prop="replyDoctorId" /> --> |
| | | <el-table-column label="回复医生名" align="center" prop="replyDoctorName"/> |
| | | <el-table-column label="回复部门" align="center" prop="replyDeptId" /> |
| | | <el-table-column label="回复部门名" align="center" prop="replyDeptName" /> |
| | | <el-table-column label="回复内容" align="center" prop="replyContent" /> |
| | | <!-- <el-table-column label="" align="center" prop="status" /> |
| | | <el-table-column label="" align="center" prop="remark" /> --> |
| | | <!-- <el-table-column label="会诊申请id" align="center" prop="hzId" /> |
| | | <el-table-column label="${comment}" align="center" prop="hzDoctorId" /> |
| | | <el-table-column label="${comment}" align="center" prop="hzDoctorName" /> --> |
| | | <!-- <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="['hosp:replylog:edit']" |
| | | >修改 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['hosp:replylog: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" /> |
| | | <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="orderId"> |
| | | <el-input v-model="form.orderId" placeholder="请输入会诊订单id" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input v-model="form.tjNumber" placeholder="请输入体检号" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户id" prop="userId"> |
| | | <el-input v-model="form.userId" placeholder="请输入用户id" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input v-model="form.userName" placeholder="请输入用户名" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复医生" prop="replyDoctorId"> |
| | | <el-input v-model="form.replyDoctorId" placeholder="请输入回复医生" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复医生名" prop="replyDoctorName"> |
| | | <el-input v-model="form.replyDoctorName" placeholder="请输入回复医生名" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复部门" prop="replyDeptId"> |
| | | <el-input v-model="form.replyDeptId" placeholder="请输入回复部门" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复部门名" prop="replyDeptName"> |
| | | <el-input v-model="form.replyDeptName" placeholder="请输入回复部门名" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复内容"> |
| | | <editor v-model="form.replyContent" :min-height="192" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="remark"> |
| | | <el-input v-model="form.remark" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="会诊申请id" prop="hzId"> |
| | | <el-input v-model="form.hzId" placeholder="请输入会诊申请id" /> |
| | | </el-form-item> |
| | | <el-form-item label="${comment}" prop="hzDoctorId"> |
| | | <el-input v-model="form.hzDoctorId" placeholder="请输入${comment}" /> |
| | | </el-form-item> |
| | | <el-form-item label="${comment}" prop="hzDoctorName"> |
| | | <el-input v-model="form.hzDoctorName" placeholder="请输入${comment}" /> |
| | | </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> |
| | | <!-- 添加或修改会诊回复记录对话框 --> |
| | | <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="orderId"> |
| | | <el-input v-model="form.orderId" placeholder="请输入会诊订单id" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input v-model="form.tjNumber" placeholder="请输入体检号" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户id" prop="userId"> |
| | | <el-input v-model="form.userId" placeholder="请输入用户id" /> |
| | | </el-form-item> |
| | | <el-form-item label="用户名" prop="userName"> |
| | | <el-input v-model="form.userName" placeholder="请输入用户名" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复医生" prop="replyDoctorId"> |
| | | <el-input v-model="form.replyDoctorId" placeholder="请输入回复医生" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复医生名" prop="replyDoctorName"> |
| | | <el-input |
| | | v-model="form.replyDoctorName" |
| | | placeholder="请输入回复医生名" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="回复部门" prop="replyDeptId"> |
| | | <el-input v-model="form.replyDeptId" placeholder="请输入回复部门" /> |
| | | </el-form-item> |
| | | <el-form-item label="回复部门名" prop="replyDeptName"> |
| | | <el-input |
| | | v-model="form.replyDeptName" |
| | | placeholder="请输入回复部门名" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="回复内容"> |
| | | <editor v-model="form.replyContent" :min-height="192" /> |
| | | </el-form-item> |
| | | <el-form-item label="" prop="remark"> |
| | | <el-input v-model="form.remark" placeholder="请输入" /> |
| | | </el-form-item> |
| | | <el-form-item label="会诊申请id" prop="hzId"> |
| | | <el-input v-model="form.hzId" placeholder="请输入会诊申请id" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="${comment}" prop="hzDoctorId"> |
| | | <el-input v-model="form.hzDoctorId" placeholder="请输入${comment}" /> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item label="${comment}" prop="hzDoctorName"> |
| | | <el-input |
| | | v-model="form.hzDoctorName" |
| | | placeholder="请输入${comment}" |
| | | /> |
| | | </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 { |
| | | listReplylog, |
| | | getReplylog, |
| | | delReplylog, |
| | | addReplylog, |
| | | updateReplylog |
| | | listReplylog, |
| | | getReplylog, |
| | | delReplylog, |
| | | addReplylog, |
| | | updateReplylog, |
| | | } from "@/api/hosp/replylog"; |
| | | |
| | | export default { |
| | | name: "Replylog", |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 会诊回复记录表格数据 |
| | | replylogList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | hzDoctorName: null |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | name: "Replylog", |
| | | dicts: ["hz_type"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 会诊回复记录表格数据 |
| | | replylogList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNumber: null, |
| | | userName: null, |
| | | hzType: null, |
| | | hzDoctorName: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询会诊回复记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listReplylog(this.queryParams).then(response => { |
| | | this.replylogList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | orderId: null, |
| | | tjNumber: null, |
| | | userId: null, |
| | | userName: null, |
| | | hzType: null, |
| | | replyDoctorId: null, |
| | | replyDoctorName: null, |
| | | replyDeptId: null, |
| | | replyDeptName: null, |
| | | replyContent: null, |
| | | status: "0", |
| | | remark: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | hzId: null, |
| | | hzDoctorId: null, |
| | | hzDoctorName: 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 |
| | | getReplylog(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改会诊回复记录"; |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | // submitForm() { |
| | | // this.$]] |
| | | // #refs["form"].validate(valid => { |
| | | // if (valid) { |
| | | // #foreach($column in $columns) |
| | | // #if($column.htmlType == "checkbox") |
| | | // this.form.$column.javaField = this.form.$ |
| | | // { |
| | | // column.javaField |
| | | // } |
| | | // . |
| | | // join(","); |
| | | // #end |
| | | // #end |
| | | // #if($table.sub) |
| | | // this.form.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // #end |
| | | // if (this.form.${ |
| | | // pkColumn.javaField |
| | | // } |
| | | // != |
| | | // null |
| | | // ) |
| | | // { |
| | | // update$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // add$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("新增成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }, |
| | | // /** 删除按钮操作 */ |
| | | // handleDelete(row) { |
| | | // const ${pkColumn.javaField}s = row.$ |
| | | // { |
| | | // pkColumn.javaField |
| | | // } |
| | | // || |
| | | // this.ids; |
| | | // this.#[[$modal]] |
| | | // #.confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?').then(function () { |
| | | // return del$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (${pkColumn.javaField}s); |
| | | // }).then(() => { |
| | | // this.getList(); |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("删除成功"); |
| | | // }).catch(() => { |
| | | // }); |
| | | // }, |
| | | // #if($table.sub) |
| | | // /** ${subTable.functionName}序号 */ |
| | | // row$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // Index({row, rowIndex}) |
| | | // { |
| | | // row.index = rowIndex + 1; |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}添加按钮操作 */ |
| | | // handleAdd$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // let obj = {}; |
| | | // #foreach($column in $subTable.columns) |
| | | // #if($column.pk || $column.javaField == ${subTableFkclassName}) |
| | | // #elseif($column.list && "" != $javaField) |
| | | // obj.$column.javaField = ""; |
| | | // #end |
| | | // #end |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List.push(obj); |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}删除按钮操作 */ |
| | | // handleDelete$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // if (this.checked${ |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // length == 0 |
| | | // ) |
| | | // { |
| | | // this.#[[$modal]] |
| | | // #.msgError("请先选择要删除的${subTable.functionName}数据"); |
| | | // } |
| | | // else |
| | | // { |
| | | // const ${subclassName}List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // const checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // ; |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = ${subclassName}List.filter(function (item) { |
| | | // return checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // indexOf(item.index) == -1 |
| | | // }); |
| | | // } |
| | | // } |
| | | // , |
| | | // /** 复选框选中数据 */ |
| | | // handle$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // SelectionChange(selection) |
| | | // { |
| | | // this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = selection.map(item => item.index) |
| | | // } |
| | | // , |
| | | // #end |
| | | // /** 导出按钮操作 */ |
| | | // handleExport() |
| | | // { |
| | | // this.download('${moduleName}/${businessName}/export', { |
| | | // ...this.queryParams |
| | | // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | // } |
| | | } |
| | | } |
| | | ; |
| | | methods: { |
| | | /** 查询会诊回复记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listReplylog(this.queryParams).then((response) => { |
| | | this.replylogList = response.rows; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | orderId: null, |
| | | tjNumber: null, |
| | | userId: null, |
| | | userName: null, |
| | | hzType: null, |
| | | replyDoctorId: null, |
| | | replyDoctorName: null, |
| | | replyDeptId: null, |
| | | replyDeptName: null, |
| | | replyContent: null, |
| | | status: "0", |
| | | remark: null, |
| | | createTime: null, |
| | | updateTime: null, |
| | | createBy: null, |
| | | updateBy: null, |
| | | deleted: null, |
| | | hzId: null, |
| | | hzDoctorId: null, |
| | | hzDoctorName: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | 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; |
| | | getReplylog(id).then((response) => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改会诊回复记录"; |
| | | }); |
| | | }, |
| | | submitForm(){}, |
| | | handleDelete(){}, |
| | | handleExport(){}, |
| | | /** 提交按钮 */ |
| | | // submitForm() { |
| | | // this.$]] |
| | | // #refs["form"].validate(valid => { |
| | | // if (valid) { |
| | | // #foreach($column in $columns) |
| | | // #if($column.htmlType == "checkbox") |
| | | // this.form.$column.javaField = this.form.$ |
| | | // { |
| | | // column.javaField |
| | | // } |
| | | // . |
| | | // join(","); |
| | | // #end |
| | | // #end |
| | | // #if($table.sub) |
| | | // this.form.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // #end |
| | | // if (this.form.${ |
| | | // pkColumn.javaField |
| | | // } |
| | | // != |
| | | // null |
| | | // ) |
| | | // { |
| | | // update$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("修改成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // else |
| | | // { |
| | | // add$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (this.form).then(response => { |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("新增成功"); |
| | | // this.open = false; |
| | | // this.getList(); |
| | | // }); |
| | | // } |
| | | // } |
| | | // }); |
| | | // }, |
| | | // /** 删除按钮操作 */ |
| | | // handleDelete(row) { |
| | | // const ${pkColumn.javaField}s = row.$ |
| | | // { |
| | | // pkColumn.javaField |
| | | // } |
| | | // || |
| | | // this.ids; |
| | | // this.#[[$modal]] |
| | | // #.confirm('是否确认删除${functionName}编号为"' + ${pkColumn.javaField}s + '"的数据项?').then(function () { |
| | | // return del$ |
| | | // { |
| | | // BusinessName |
| | | // } |
| | | // (${pkColumn.javaField}s); |
| | | // }).then(() => { |
| | | // this.getList(); |
| | | // this.#[[$modal]] |
| | | // #.msgSuccess("删除成功"); |
| | | // }).catch(() => { |
| | | // }); |
| | | // }, |
| | | // #if($table.sub) |
| | | // /** ${subTable.functionName}序号 */ |
| | | // row$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // Index({row, rowIndex}) |
| | | // { |
| | | // row.index = rowIndex + 1; |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}添加按钮操作 */ |
| | | // handleAdd$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // let obj = {}; |
| | | // #foreach($column in $subTable.columns) |
| | | // #if($column.pk || $column.javaField == ${subTableFkclassName}) |
| | | // #elseif($column.list && "" != $javaField) |
| | | // obj.$column.javaField = ""; |
| | | // #end |
| | | // #end |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List.push(obj); |
| | | // } |
| | | // , |
| | | // /** ${subTable.functionName}删除按钮操作 */ |
| | | // handleDelete$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // () |
| | | // { |
| | | // if (this.checked${ |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // length == 0 |
| | | // ) |
| | | // { |
| | | // this.#[[$modal]] |
| | | // #.msgError("请先选择要删除的${subTable.functionName}数据"); |
| | | // } |
| | | // else |
| | | // { |
| | | // const ${subclassName}List = this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List; |
| | | // const checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // ; |
| | | // this.$ |
| | | // { |
| | | // subclassName |
| | | // } |
| | | // List = ${subclassName}List.filter(function (item) { |
| | | // return checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // . |
| | | // indexOf(item.index) == -1 |
| | | // }); |
| | | // } |
| | | // } |
| | | // , |
| | | // /** 复选框选中数据 */ |
| | | // handle$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // SelectionChange(selection) |
| | | // { |
| | | // this.checked$ |
| | | // { |
| | | // subClassName |
| | | // } |
| | | // = selection.map(item => item.index) |
| | | // } |
| | | // , |
| | | // #end |
| | | // /** 导出按钮操作 */ |
| | | // handleExport() |
| | | // { |
| | | // this.download('${moduleName}/${businessName}/export', { |
| | | // ...this.queryParams |
| | | // }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | // } |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="用户姓名" prop="userName"> |
| | |
| | | name: "SurveyRecord", |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log( value) |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(''); |
| | |
| | | this.tjSurveyRecordDetailList = []; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjnumber != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 160px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 160px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="75px"> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input v-model="queryParams.tjNum" placeholder="请输入领餐人体检号" clearable @keyup.enter.native="handleQuery" style="width: 200px;" ref="inputName" @blur="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="姓名" prop="tjPeopleName"> |
| | | <el-input v-model="queryParams.tjPeopleName" placeholder="请输入领餐人姓名" clearable style="width: 200px;" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="cateringId"> |
| | | <el-input v-model="queryParams.cateringId" placeholder="请输入登记时间" clearable style="width: 200px;" |
| | | @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><br> |
| | | <div class="app-container"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="75px" |
| | | > |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input |
| | | v-model="queryParams.tjNum" |
| | | placeholder="请输入领餐人体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 200px" |
| | | ref="inputName" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="姓名" prop="tjPeopleName"> |
| | | <el-input |
| | | v-model="queryParams.tjPeopleName" |
| | | placeholder="请输入领餐人姓名" |
| | | clearable |
| | | style="width: 200px" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="cateringId"> |
| | | <el-input |
| | | v-model="queryParams.cateringId" |
| | | placeholder="请输入登记时间" |
| | | clearable |
| | | style="width: 200px" |
| | | @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 |
| | | ><br /> |
| | | |
| | | <el-form :label-position="labelPosition" :inline="true" label-width="75px" :model="formLabelAlign" |
| | | class="demo-form-inline"> |
| | | <el-form-item label="配餐名称" > |
| | | <el-input v-model="formLabelAlign.name" style="width: 200px;" placeholder="请输入配餐名称"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="套餐明细"> |
| | | <el-input v-model="formLabelAlign.region" style="width: 200px;" placeholder="请输入套餐明细"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="营养说明" > |
| | | <el-input v-model="formLabelAlign.type" style="width: 200px;" placeholder="请输入营养说明"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form |
| | | :label-position="labelPosition" |
| | | :inline="true" |
| | | label-width="75px" |
| | | :model="formLabelAlign" |
| | | class="demo-form-inline" |
| | | > |
| | | <el-form-item label="配餐名称"> |
| | | <el-input |
| | | v-model="formLabelAlign.name" |
| | | style="width: 200px" |
| | | placeholder="请输入配餐名称" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="套餐明细"> |
| | | <el-input |
| | | v-model="formLabelAlign.region" |
| | | style="width: 200px" |
| | | placeholder="请输入套餐明细" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="营养说明"> |
| | | <el-input |
| | | v-model="formLabelAlign.type" |
| | | style="width: 200px" |
| | | placeholder="请输入营养说明" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5"> |
| | | <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="['record:record:add']">新增 |
| | | </el-button> |
| | |
| | | v-hasPermi="['record:record:edit']">修改 |
| | | </el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-plus" size="mini" :disabled="multiple" @click="handleDelete" |
| | | v-hasPermi="['record:record:remove']">领餐 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" |
| | | v-hasPermi="['record:record:export']">导出 |
| | | </el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['record:record:remove']" |
| | | >领餐 |
| | | </el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['record:record:export']" |
| | | >导出 |
| | | </el-button> |
| | | </el-col> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | |
| | | |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="recordList" |
| | | @selection-change="handleSelectionChange" |
| | | border |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="${comment}" align="center" prop="id"/> --> |
| | | <el-table-column label="序号" align="center" prop="newID" width="55px" /> |
| | | <el-table-column |
| | | label="领餐人体检号" |
| | | align="center" |
| | | prop="tjNum" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="领餐人姓名" |
| | | align="center" |
| | | prop="tjPeopleName" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="性别" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="电话" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="团体/个人" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="所选套餐" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="登记时间" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="配餐名称" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="报告时间" |
| | | align="center" |
| | | prop="cateringId" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="操作" |
| | | align="center" |
| | | class-name="small-padding fixed-width" |
| | | width="80px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['record:record:edit']" |
| | | title="修改" |
| | | > |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['record:record:remove']" |
| | | title="删除" |
| | | > |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <el-table v-loading="loading" :data="recordList" @selection-change="handleSelectionChange" border> |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <!-- <el-table-column label="${comment}" align="center" prop="id"/> --> |
| | | <el-table-column label="序号" align="center" prop="newID" width="55px" /> |
| | | <el-table-column label="领餐人体检号" align="center" prop="tjNum" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="领餐人姓名" align="center" prop="tjPeopleName" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="性别" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="年龄" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="电话" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="团体/个人" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="所选套餐" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="登记时间" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="配餐名称" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="报告时间" align="center" prop="cateringId" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['record:record:edit']" title="修改"> |
| | | </el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['record:record:remove']" title="删除"> |
| | | </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" |
| | | /> |
| | | |
| | | <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="领餐人体检号" prop="tjNum"> |
| | | <el-input v-model="form.tjNum" placeholder="请输入领餐人体检号" /> |
| | | </el-form-item> |
| | | <el-form-item label="领餐人姓名" prop="tjPeopleName"> |
| | | <el-input v-model="form.tjPeopleName" placeholder="请输入领餐人姓名" /> |
| | | </el-form-item> |
| | | <el-form-item label="${comment}" prop="cateringId"> |
| | | <el-input v-model="form.cateringId" placeholder="请输入${comment}" /> |
| | | </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> |
| | | <!-- 添加或修改领餐记录对话框 --> |
| | | <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="领餐人体检号" prop="tjNum"> |
| | | <el-input v-model="form.tjNum" placeholder="请输入领餐人体检号" /> |
| | | </el-form-item> |
| | | <el-form-item label="领餐人姓名" prop="tjPeopleName"> |
| | | <el-input |
| | | v-model="form.tjPeopleName" |
| | | placeholder="请输入领餐人姓名" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="${comment}" prop="cateringId"> |
| | | <el-input v-model="form.cateringId" placeholder="请输入${comment}" /> |
| | | </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 { |
| | | listRecord, |
| | | getRecord, |
| | | delRecord, |
| | | addRecord, |
| | | updateRecord |
| | | listRecord, |
| | | getRecord, |
| | | delRecord, |
| | | addRecord, |
| | | updateRecord, |
| | | } from "@/api/record/record"; |
| | | |
| | | export default { |
| | | name: "Record", |
| | | data() { |
| | | return { |
| | | formLabelAlign: { |
| | | name: '', |
| | | region: '', |
| | | type: '' |
| | | }, |
| | | labelPosition: "right", |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 领餐记录表格数据 |
| | | recordList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNum: null, |
| | | tjPeopleName: null, |
| | | cateringId: new Date(new Date().getTime() + 8 * 3600 * 1000).toJSON().substr(0, 19).replace('T', ' '), |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: { |
| | | } |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | name: "Record", |
| | | data() { |
| | | return { |
| | | formLabelAlign: { |
| | | name: "", |
| | | region: "", |
| | | type: "", |
| | | }, |
| | | labelPosition: "right", |
| | | // 遮罩层 |
| | | loading: true, |
| | | // 选中数组 |
| | | ids: [], |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | | multiple: true, |
| | | // 显示搜索条件 |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | // 领餐记录表格数据 |
| | | recordList: [], |
| | | // 弹出层标题 |
| | | title: "", |
| | | // 是否显示弹出层 |
| | | open: false, |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | tjNum: null, |
| | | tjPeopleName: null, |
| | | cateringId: new Date(new Date().getTime() + 8 * 3600 * 1000) |
| | | .toJSON() |
| | | .substr(0, 19) |
| | | .replace("T", " "), |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | | // 表单校验 |
| | | rules: {}, |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询领餐记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listRecord(this.queryParams).then(response => { |
| | | this.recordList = response.rows; |
| | | response.rows.forEach((item,index) => { |
| | | item.newID=(this.queryParams.pageNum-1)*this.queryParams.pageSize+index+1 |
| | | methods: { |
| | | /** 查询领餐记录列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listRecord(this.queryParams).then((response) => { |
| | | this.recordList = response.rows; |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | | (this.queryParams.pageNum - 1) * this.queryParams.pageSize + |
| | | index + |
| | | 1; |
| | | }); |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | this.total = response.total; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | tjNum: null, |
| | | tjPeopleName: null, |
| | | cateringId: null, |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null, |
| | | deleted: null, |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | 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; |
| | | getRecord(id).then((response) => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改领餐记录"; |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate((valid) => { |
| | | if (valid) { |
| | | if (this.form.reId != null) { |
| | | updateRecord(this.form).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | // 取消按钮 |
| | | cancel() { |
| | | this.open = false; |
| | | this.reset(); |
| | | }, |
| | | // 表单重置 |
| | | reset() { |
| | | this.form = { |
| | | id: null, |
| | | tjNum: null, |
| | | tjPeopleName: null, |
| | | cateringId: null, |
| | | createBy: null, |
| | | createTime: null, |
| | | updateBy: null, |
| | | updateTime: null, |
| | | deleted: 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 |
| | | getRecord(id).then(response => { |
| | | this.form = response.data; |
| | | this.open = true; |
| | | this.title = "修改领餐记录"; |
| | | } else { |
| | | addRecord(this.form).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | if (this.form.reId != null) { |
| | | updateRecord(this.form).then(response => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } else { |
| | | addRecord(this.form).then(response => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | this.open = false; |
| | | this.getList(); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const reIds = row.reId || this.ids; |
| | | this.$modal.confirm('是否确认删除编号为"' + reIds + '"的数据项?').then(function () { |
| | | return delRecord(reIds); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => { }); |
| | | }, |
| | | /** 复选框选中数据 */ |
| | | handleDmKsSelectionChange(selection) { |
| | | this.checkedDmKs = selection.map(item => item.index) |
| | | } |
| | | } |
| | | , |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download('${moduleName}/${businessName}/export', { |
| | | ...this.queryParams |
| | | }, `${businessName}_#[[${new Date().getTime()}.xlsx`) |
| | | } |
| | | } |
| | | } |
| | | ; |
| | | }); |
| | | }, |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const reIds = row.reId || this.ids; |
| | | this.$modal |
| | | .confirm('是否确认删除编号为"' + reIds + '"的数据项?') |
| | | .then(function () { |
| | | return delRecord(reIds); |
| | | }) |
| | | .then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | /** 复选框选中数据 */ |
| | | handleDmKsSelectionChange(selection) { |
| | | this.checkedDmKs = selection.map((item) => item.index); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | | this.download( |
| | | "${moduleName}/${businessName}/export", |
| | | { |
| | | ...this.queryParams, |
| | | }, |
| | | `${businessName}_#[[${new Date().getTime()}.xlsx` |
| | | ); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | v-show="showSearch" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="姓名" prop="name"> |
| | | <el-input style="width: 116px" ref="inputName" v-model="queryParams.name" placeholder="请输入姓名" |
| | | @keyup.enter.native="handleQuery" /> |
| | | <el-input |
| | | style="width: 116px" |
| | | ref="inputName" |
| | | v-model="queryParams.name" |
| | | placeholder="请输入姓名" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" @keyup.enter.native="handleQuery" @blur="handleQuery" |
| | | style="width:170px" clearable /> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="queryParams.tjNum" |
| | | placeholder="请输入体检号" |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-date-picker clearable v-model="createTimeList" @change="dateChangebirthday1" style="width: 240px" |
| | | value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" |
| | | :picker-options="pickerOptions"></el-date-picker> |
| | | <el-date-picker |
| | | clearable |
| | | v-model="createTimeList" |
| | | @change="dateChangebirthday1" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | :picker-options="pickerOptions" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="报告时间" prop="reportTimeList"> |
| | | <el-date-picker clearable v-model="queryParams.reportTimeList" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" value-format="yyyy-MM-dd" placeholder="请选择出报告时间" style="width: 240px"> |
| | | </el-date-picker> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | | <el-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" style="margin: 0 16px;"> |
| | | <el-row :gutter="10" style="margin: 0 16px"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button type="primary" icon="el-icon-download" size="mini" @click="handleExport" |
| | | v-hasPermi="['hosp:order:export']" style="margin-left:14px">导出</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" size="mini" @click="handleDelete" :disabled="multiple">签离登记</el-button> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="handleDelete" |
| | | :disabled="multiple" |
| | | >签离登记</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" style="margin-right:40px"></right-toolbar> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | | style="margin-right: 40px" |
| | | ></right-toolbar> |
| | | </el-row> |
| | | |
| | | <template> |
| | | <el-table ref="tb" border style="margin: 14px; width: 98%" v-loading="loading" :data="orderList" |
| | | @selection-change="handleSelectionChange"> |
| | | <el-table-column type="selection" width="40" align="center" fixed="left" /> |
| | | <el-table-column label="序号" align="center" prop="newID" width="50px" fixed="left" /> |
| | | <el-table-column label="姓名" align="center" prop="tjCustomerName" width="100px" :show-overflow-tooltip="true" |
| | | fixed="left" /> |
| | | <el-table-column label="性别" align="center" prop="tjCustomerSex" width="55px" :show-overflow-tooltip="true"> |
| | | <el-table |
| | | ref="tb" |
| | | border |
| | | style="margin: 14px; width: 98%" |
| | | v-loading="loading" |
| | | :data="orderList" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="40" |
| | | align="center" |
| | | fixed="left" |
| | | /> |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | | prop="newID" |
| | | width="50px" |
| | | fixed="left" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | align="center" |
| | | prop="tjCustomerName" |
| | | width="100px" |
| | | :show-overflow-tooltip="true" |
| | | fixed="left" |
| | | /> |
| | | <el-table-column |
| | | label="性别" |
| | | align="center" |
| | | prop="tjCustomerSex" |
| | | width="55px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.tjCustomerSex == '0'">男</span> |
| | | <span v-if="scope.row.tjCustomerSex == '1'">女</span> |
| | | <span v-if="scope.row.tjCustomerSex == '2'">未知</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="年龄" align="center" prop="tjCustomerAge" width="55px" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="电话" align="center" prop="tjCustomerPhone" width="120px" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="体检类型" align="center" prop="tjType" width="80px" :show-overflow-tooltip="true"> |
| | | <el-table-column |
| | | label="年龄" |
| | | align="center" |
| | | prop="tjCustomerAge" |
| | | width="55px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="电话" |
| | | align="center" |
| | | prop="tjCustomerPhone" |
| | | width="120px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="体检类型" |
| | | align="center" |
| | | prop="tjType" |
| | | width="80px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.tjType == '2'">个人</span> |
| | | <span v-if="scope.row.tjType == '1'">团队</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" width="160px" :show-overflow-tooltip="true" /> |
| | | <el-table-column |
| | | label="体检号" |
| | | align="center" |
| | | prop="tjNumber" |
| | | width="160px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | |
| | | <el-table-column label="登记时间" align="center" prop="createTime" width="155px" :show-overflow-tooltip="true"> |
| | | <el-table-column |
| | | label="登记时间" |
| | | align="center" |
| | | prop="createTime" |
| | | width="155px" |
| | | :show-overflow-tooltip="true" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.createTime) }}</span> |
| | | </template> |
| | |
| | | <span>{{ parseTime(scope.row.reportTime) }}</span> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="所选套餐" align="center" prop="pacName" width="150px" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="单位工号" align="center" prop="firmWorkId" width="100px" :show-overflow-tooltip="true" /> |
| | | <el-table-column label="单位名称" align="center" prop="dictCompName" :show-overflow-tooltip="true" height="10px" /> |
| | | |
| | | |
| | | <el-table-column |
| | | label="所选套餐" |
| | | align="center" |
| | | prop="pacName" |
| | | width="150px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="单位工号" |
| | | align="center" |
| | | prop="firmWorkId" |
| | | width="100px" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="单位名称" |
| | | align="center" |
| | | prop="dictCompName" |
| | | :show-overflow-tooltip="true" |
| | | height="10px" |
| | | /> |
| | | </el-table> |
| | | </template> |
| | | |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" |
| | | :current-page="queryParams.pageNum" :page-sizes="[10, 20, 30, 40]" :page-size="queryParams.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" :total="total"> |
| | | <el-pagination |
| | | background |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="queryParams.pageNum" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="queryParams.pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog title="PDF 预览" :visible.sync="dialogVisible" :close-on-click-modal="false"> |
| | | <el-dialog |
| | | title="PDF 预览" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="main"> |
| | | <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe> |
| | | <iframe |
| | | id="printIframe" |
| | | :src="url" |
| | | frameborder="0" |
| | | style="width: 100%; height: 100%" |
| | | ></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog title="导诊单" :visible.sync="daoZhenDan" :close-on-click-modal="false"> |
| | | <el-dialog |
| | | title="导诊单" |
| | | :visible.sync="daoZhenDan" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="main"> |
| | | <iframe id="printIframe" :src="url" frameborder="0" style="width: 100%; height: 100%"></iframe> |
| | | <iframe |
| | | id="printIframe" |
| | | :src="url" |
| | | frameborder="0" |
| | | style="width: 100%; height: 100%" |
| | | ></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 添加或修改体检记录对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="660px"> |
| | | <el-form :model="formIn" ref="queryForm" size="small" :inline="true" label-width="68px"> |
| | | <el-form |
| | | :model="formIn" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="体检号" prop="tjNumber"> |
| | | <el-input ref="inputName" v-model="formIn.tjNumber" style="width:212px" clearable /> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="formIn.tjNumber" |
| | | style="width: 212px" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTime"> |
| | | <el-input ref="inputName" v-model="formIn.createTime" style="width:212px" clearable /> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="formIn.createTime" |
| | | style="width: 212px" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | <br> |
| | | <br /> |
| | | <el-form-item label="姓名" prop="tjCustomerName"> |
| | | <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerName" /> |
| | | <el-input |
| | | style="width: 116px" |
| | | ref="inputName" |
| | | v-model="formIn.tjCustomerName" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="性别" prop="tjCustomerSex"> |
| | | <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerSex" /> |
| | | <el-input |
| | | style="width: 116px" |
| | | ref="inputName" |
| | | v-model="formIn.tjCustomerSex" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="年龄" prop="tjCustomerAge"> |
| | | <el-input style="width: 116px" ref="inputName" v-model="formIn.tjCustomerAge" placeholder="请输入姓名" /> |
| | | <el-input |
| | | style="width: 116px" |
| | | ref="inputName" |
| | | v-model="formIn.tjCustomerAge" |
| | | placeholder="请输入姓名" |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-table :data="numberList" style="width: 100%;margin-bottom: 10px;" height="400px" border :row-class-name="tableRowClassName"> |
| | | <el-table-column prop="proCheckType" label="检查类型" width="180" align="center"> |
| | | <el-table |
| | | :data="numberList" |
| | | style="width: 100%; margin-bottom: 10px" |
| | | height="400px" |
| | | border |
| | | :row-class-name="tableRowClassName" |
| | | > |
| | | <el-table-column |
| | | prop="proCheckType" |
| | | label="检查类型" |
| | | width="180" |
| | | align="center" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column prop="proName" label="项目" width="180" align="center"> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="弃检" prop="type2" width="86" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox @change="handelcheckbox" v-model="scope.row.type2" :disabled="leave"> |
| | | <el-checkbox |
| | | @change="handelcheckbox" |
| | | v-model="scope.row.type2" |
| | | :disabled="leave" |
| | | > |
| | | <!-- <el-checkbox v-model="scope.row.type2"></el-checkbox> --> |
| | | </el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="延期" prop="type3" width="86" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox @change="handelcheck" v-model="scope.row.type3" :disabled="leave"> |
| | | <el-checkbox |
| | | @change="handelcheck" |
| | | v-model="scope.row.type3" |
| | | :disabled="leave" |
| | | > |
| | | </el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <div v-show="tcShow"> |
| | | <el-form :model="postpone" ref="queryForm" v-show="postpone" size="small" label-width="68px"> |
| | | <el-form |
| | | :model="postpone" |
| | | ref="queryForm" |
| | | v-show="postpone" |
| | | size="small" |
| | | label-width="68px" |
| | | > |
| | | <el-form-item label="延期天数" prop="day"> |
| | | <el-input ref="inputName" v-model="postpone.day" style="width:170px" clearable /> |
| | | <el-input |
| | | ref="inputName" |
| | | v-model="postpone.day" |
| | | style="width: 170px" |
| | | clearable |
| | | /> |
| | | </el-form-item> |
| | | <br> |
| | | <br /> |
| | | <el-form-item label="延期原因" prop="cause"> |
| | | <el-input style="width:100%" ref="inputName" v-model="postpone.cause" maxlength="10" show-word-limit /> |
| | | <el-input |
| | | style="width: 100%" |
| | | ref="inputName" |
| | | v-model="postpone.cause" |
| | | maxlength="10" |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | name: "Order", |
| | | data() { |
| | | return { |
| | | selectList:[], |
| | | leave:false, |
| | | selectList: [], |
| | | leave: false, |
| | | checked: false, |
| | | radioId1: false, |
| | | createTimeList: "", |
| | |
| | | flag: true, |
| | | bill: null, |
| | | Treedata: [], |
| | | DataList:[], |
| | | DataList: [], |
| | | defaultProps: { |
| | | children: "tjProjectList", |
| | | label: "proName", |
| | |
| | | List: [], |
| | | postpone: { |
| | | day: null, |
| | | caches: null |
| | | caches: null, |
| | | }, |
| | | tcShow: false, |
| | | // remarkId: "", |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | |
| | | // }) |
| | | for (let i = 0; i <= this.numberList.length; i++) { |
| | | if (this.numberList[i].type2 === true) { |
| | | this.numberList[i].type3 = false |
| | | this.tcShow = false |
| | | return |
| | | this.numberList[i].type3 = false; |
| | | this.tcShow = false; |
| | | return; |
| | | } |
| | | } |
| | | // this.type2 = val |
| | |
| | | // }) |
| | | for (let i = 0; i <= this.numberList.length; i++) { |
| | | if (this.numberList[i].type3 === true) { |
| | | this.numberList[i].type2 = false |
| | | this.tcShow = true |
| | | return |
| | | this.numberList[i].type2 = false; |
| | | this.tcShow = true; |
| | | return; |
| | | } |
| | | } |
| | | // this.numberList.forEach(item => { |
| | |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | }, |
| | | |
| | | |
| | | /** 签离按钮操作 */ |
| | | handleDelete() { |
| | | this.title = "签离登记"; |
| | | this.List.forEach((item) => { |
| | | this.formIn = item |
| | | this.formIn = item; |
| | | if (this.formIn.tjCustomerSex === 0) { |
| | | this.formIn.tjCustomerSex = "男" |
| | | } else if(this.formIn.tjCustomerSex === 1) { |
| | | this.formIn.tjCustomerSex = "女" |
| | | }else if(this.formIn.tjCustomerSex === 2){ |
| | | this.formIn.tjCustomerSex = "未知" |
| | | this.formIn.tjCustomerSex = "男"; |
| | | } else if (this.formIn.tjCustomerSex === 1) { |
| | | this.formIn.tjCustomerSex = "女"; |
| | | } else if (this.formIn.tjCustomerSex === 2) { |
| | | this.formIn.tjCustomerSex = "未知"; |
| | | } |
| | | this.tjNumber = item.tjNumber; |
| | | }); |
| | |
| | | goabandon(data).then((res) => { |
| | | if (res.data.length != 0) { |
| | | this.numberList = res.data; |
| | | this.numberList.forEach(item => { |
| | | this.numberList.forEach((item) => { |
| | | if (item.type === 1) { |
| | | item.type = true; |
| | | item.type2 = false; |
| | | item.type3 = false; |
| | | this.leave = true; |
| | | }else{ |
| | | } else { |
| | | this.leave = false; |
| | | } |
| | | item = { |
| | | type2: false, |
| | | type3: false, |
| | | } |
| | | }) |
| | | }; |
| | | }); |
| | | this.open = true; |
| | | } else { |
| | | let data = { |
| | |
| | | this.List.forEach((item) => { |
| | | this.tjNumber = item.tjNumber; |
| | | }); |
| | | this.numberList.forEach(element => { |
| | | this.numberList.forEach((element) => { |
| | | if (element.type2 === true) { |
| | | this.type = 2 |
| | | this.type = 2; |
| | | this.DataList.push({ |
| | | tjNumber: this.tjNumber, |
| | | type: this.type, |
| | | remarkId: element.remarkId |
| | | }) |
| | | remarkId: element.remarkId, |
| | | }); |
| | | } else if (element.type3 === true) { |
| | | this.type1 = 3 |
| | | this.type1 = 3; |
| | | this.DataList.push({ |
| | | tjNumber: this.tjNumber, |
| | | day: this.postpone.day, |
| | | remark: this.postpone.cause, |
| | | type: this.type1, |
| | | remarkId: element.remarkId, |
| | | }) |
| | | }); |
| | | } |
| | | }); |
| | | let data = { |
| | | domainVos:this.DataList, |
| | | tjNumber:this.tjNumber |
| | | } |
| | | domainVos: this.DataList, |
| | | tjNumber: this.tjNumber, |
| | | }; |
| | | gettjGoOut(data).then((res) => { |
| | | if (res.code === 200) { |
| | | this.$modal.msgSuccess("操作成功"); |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | ref="inputName" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="报告时间" prop="reportTimeList"> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | // } |
| | | this.multiple = !selection.length; |
| | | this.report = selection.map((item) => item.tjNumber); |
| | | console.log(this.report); |
| | | }, |
| | | |
| | | investigation(row) { |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="体检号" prop="tjNum" style="display: flex;"> |
| | | <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" @keyup.enter.native="submitFormchanck" /> |
| | | <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" @keyup.enter.native="submitFormchanck" @blur="hb" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | |
| | |
| | | } |
| | | }); |
| | | }, |
| | | hb(){ |
| | | console.log(this.form.tjNum); |
| | | if (this.form.tjNum != "") { |
| | | this.submitFormchanck(); |
| | | } |
| | | }, |
| | | submitFormchanck() { |
| | | this.loading = true; |
| | | getfindTj(this.form).then((response) => { |
| | |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable |
| | | @keyup.enter.native="handleQuery" @blur="handleQuery" ref="inputName" /> |
| | | @keyup.enter.native="handleQuery" @blur="hb" ref="inputName" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" |
| | |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | hb() { |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | handleQuerys() { |
| | | this.emerc = true; |
| | | this.queryParam.pageNum = 1; |
| | |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <el-form-item label="体检号" prop="tjNum" style="display: flex;"> |
| | | <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" @keyup.enter.native="handleQuery" @blur="handleQuery" |
| | | <el-input ref="inputName" v-model="queryParams.tjNum" placeholder="请输入体检号" @keyup.enter.native="handleQuery" @blur="hb" |
| | | clearable /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb(){ |
| | | console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="体检号" prop="tjNum" style="display: flex;"> |
| | | <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" @keyup.enter.native="handle" @blur="handle" /> |
| | | <el-input ref="inputName" v-model="form.tjNum" placeholder="请输入体检号" @keyup.enter.native="handle" @blur="hb" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="5"> |
| | |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | |
| | | hb(){ |
| | | console.log(this.form.tjNum); |
| | | if (this.form.tjNum != null) { |
| | | this.handle(); |
| | | } |
| | | }, |
| | | /** 搜索操作 */ |
| | | handle() { |
| | | this.loading = true; |
| | |
| | | |
| | | /** 查询信息列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | // listCustomer(this.queryParams).then((response) => { |
| | | // this.customerList = response.rows; |
| | | // this.total = response.total; |
| | |
| | | let cusSex = this.form.cusSex; |
| | | this.datekey = Date.now(); |
| | | //全部套餐 |
| | | this.loading = true; |
| | | deptTreeSelect(cusSex).then((response) => { |
| | | this.newpacName = response.rows; |
| | | console.log(this.newpacName) |
| | |
| | | |
| | | |
| | | <style > |
| | | .el-form-item__error { |
| | | display: none; |
| | | } |
| | | .el-table__header-wrapper .el-checkbox { |
| | | display: none; |
| | | } |
| | |
| | | let cusSex = this.form.cusSex; |
| | | this.datekey = Date.now(); |
| | | //全部套餐 |
| | | this.loading = true; |
| | | deptTreeSelect(cusSex).then((response) => { |
| | | this.newpacName = response.rows; |
| | | try { |
| | |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="接收号码" prop="number"> |
| | |
| | | name: "Record", |
| | | data() { |
| | | let checkPhoneNum = (rule, value, callback) => { |
| | | console.log( value) |
| | | let patter = new RegExp(/^1\s*[3456789]\s*(\d\s*){9}$/); |
| | | if (value == "" && value == undefined && !value) { |
| | | return callback(''); |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable ref="inputName" @blur="handleQuery" |
| | | <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable ref="inputName" @blur="hb" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | |
| | | </div> |
| | | </div> |
| | | </el-drawer> |
| | | <el-dialog |
| | | title="PDF 预览" |
| | | :visible.sync="dialogVisible" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div class="main"> |
| | | <iframe |
| | | id="printIframe" |
| | | :src="url" |
| | | frameborder="0" |
| | | style="width: 100%; height: 100%" |
| | | ></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | this.queryParams.pageNum = 1; |
| | | this.getList(); |
| | | }, |
| | | hb() { |
| | | if (this.queryParams.tjNum != undefined) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | handleQuerys() { |
| | | this.emerc = true; |
| | | this.queryParam.pageNum = 1; |
| | |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`, |
| | | target: `http://192.168.0.112:5011`, |
| | | target: `http://192.168.0.108:5011`, |
| | | // // target: `http://192.168.0.99:8080/ltkj-admin`, |
| | | // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`, |
| | | // target: `http://10.168.0.9:5011`, |