| | |
| | | <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" 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" style="width: 170px" /> |
| | | </el-form-item> |
| | | <el-form-item label="姓名" prop="name"> |
| | | |
| | | <el-form-item label="姓名" prop="name" v-show="isCollapsed == 1"> |
| | | <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable @keyup.enter.native="handleQuery" |
| | | style="width: 110px" /> |
| | | </el-form-item> |
| | | <el-form-item label="单位名称" prop="tjCompName" style="margin-left: 20px"> |
| | | <el-form-item label="单位名称" prop="tjCompName" style="margin-left: 20px" v-show="isCollapsed == 1"> |
| | | <el-select :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId" |
| | | style="width: 180px" remote filterable placeholder="请选择单位名称" clearable @change="searchSelect"> |
| | | <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="项目" prop="tcm"> |
| | | <el-form-item label="项目" prop="tcm" v-show="isCollapsed == 1"> |
| | | <el-input v-model="queryParams.tcm" placeholder="请输入项目" clearable @keyup.enter.native="handleQuery" |
| | | style="width: 170px" /> |
| | | </el-form-item> |
| | | <el-form-item label="登记时间" prop="createTimeList"> |
| | | <el-form-item label="登记时间" prop="createTimeList" v-show="isCollapsed == 1"> |
| | | <el-date-picker v-model="createTimeList" type="datetimerange" align="right" :picker-options="pickerOptions" |
| | | style="width: 310px" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:00:00']" |
| | | format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" size="mini" @click="toggleCollapse" style="margin-right: 15px" |
| | | v-show="isCollapsed == 0">展开更多筛选项 |
| | | </el-button> |
| | | <el-button type="primary" size="mini" @click="toggleCollapse3" style="margin-right: 15px" |
| | | v-show="isCollapsed == 1">收起更多筛选项 |
| | | </el-button> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" |
| | | style="margin-right: 15px">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
| | |
| | | <el-radio-button label="1">已检</el-radio-button> |
| | | </el-radio-group> |
| | | |
| | | <div style="width: 100%; margin-left: 10px; display: flex"> |
| | | <div style="width: 36%; margin-right: 30px"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="11"> |
| | | <el-table v-loading="loading" ref="tb" :data="pictureList" highlight-current-row |
| | | :row-class-name="tableRowClassName" @current-change="handleCurrentChange" border height="520px"> |
| | | <!-- <el-table-column type="selection" width="55" /> --> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | |
| | | <div id="table" style="width: 44%; height: 610px"> |
| | | <div class="pag"> |
| | | <div class="pag1"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" |
| | | :limit.sync="queryParams.pageSize" @pagination="submitForm" /> |
| | | </div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="11"> |
| | | <el-table v-loading="loading" ref="mu" :data="tableList" :row-class-name="tableRowClassName" |
| | | @header-click="handleHeaderClick" highlight-current-row @selection-change="handleChange" border |
| | | style="height: 400px"> |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- <div style="display:flex;margin:15px 0px;width: 100%;"> |
| | | <div style="width: 100%;display:flex;"> |
| | | <el-button type="primary" class="default-button-style" size="small" |
| | | @click="submiepilog">结果结论</el-button> |
| | | <el-button type="primary" icon="el-icon-s-claim" size="mini" @click="submito">提交</el-button> |
| | | |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog title="提示" :visible.sync="dialogVisible" width="60%"> |
| | | <!-- :before-close="handleClose" --> |
| | | <img src="../../../assets/logo/logo.png" alt="" /> |
| | | </el-dialog> |
| | | |
| | | <div style="margin-right: 58%"> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.page" :limit.sync="queryParams.pageSize" |
| | | @pagination="submitForm" /> |
| | | </div> |
| | | |
| | | |
| | | <Public ref="aaa" :check-status="checkStatus" :pro-result="form.proResult" :conclusion="form.conclusion" |
| | | @add="handleChanges" :project-list="projectList" /> |
| | |
| | | // 选中数组 |
| | | ids: [], |
| | | CheckBox: {}, |
| | | isCollapsed: 0, // 默认为折叠状态 |
| | | // 非单个禁用 |
| | | single: true, |
| | | // 非多个禁用 |
| | |
| | | radioChange(value) { |
| | | this.loading = true; |
| | | this.queryParams.checkStatus = value; |
| | | this.form.proResult = ""; |
| | | this.form.conclusion = ""; |
| | | getYxJcList(this.queryParams).then((res) => { |
| | | if (res.code == 200) { |
| | | this.loading = false; |
| | |
| | | this.loading = true; |
| | | }, |
| | | |
| | | toggleCollapse3() { |
| | | // this.isCollapsed = !this.isCollapsed; // 点击按钮时切换isCollapsed的值 |
| | | this.isCollapsed = 0; |
| | | }, |
| | | toggleCollapse() { |
| | | this.isCollapsed = 1; // 点击按钮时切换isCollapsed的值 |
| | | }, |
| | | |
| | | tableRowClassName({ row, rowIndex }) { |
| | | for (let i = 0; i < this.selectList.length; i++) { |
| | | if (row === this.selectList[i]) { |
| | |
| | | console.log(8989) |
| | | let tjNumber = val; |
| | | this.loading = true; |
| | | |
| | | getYxJcXx(tjNumber).then((res) => { |
| | | this.tableList = res.data; |
| | | this.loading = false; |
| | |
| | | ".el-table__header .el-checkbox" |
| | | ); |
| | | if (headerCheckbox) headerCheckbox.style.display = "none"; |
| | | |
| | | if (this.tableList.length > 0) { |
| | | this.tableList.forEach((item, index) =>{ |
| | | if (item.type == 0) { |
| | | const firstRow = item; |
| | | this.$refs.mu.toggleRowSelection(firstRow, true); |
| | | this.handleChange([firstRow]); |
| | | } |
| | | }) |
| | | |
| | | if (this.queryParams.checkStatus == 0) { |
| | | if (this.tableList.length > 0) { |
| | | this.tableList.forEach((item, index) => { |
| | | if (item.type == 0) { |
| | | const firstRow = item; |
| | | this.$refs.mu.toggleRowSelection(firstRow, true); |
| | | this.handleChange([firstRow]); |
| | | } |
| | | }) |
| | | } |
| | | } else { |
| | | const firstRow = this.tableList[0]; |
| | | this.$refs.mu.toggleRowSelection(firstRow, true); |
| | | this.handleChange([firstRow]); |
| | | } |
| | | }); |
| | | }); |
| | |
| | | if (this.tableList.length == 1) { |
| | | this.submitForm(); |
| | | } else { |
| | | this.tableList.forEach((item, index) =>{ |
| | | this.tableList.forEach((item, index) => { |
| | | if (item.type == 0) { |
| | | this.changtjNumber(this.selectedTjNumber); |
| | | }else{ |
| | | } else { |
| | | this.submitForm(); |
| | | } |
| | | }) |
| | | |
| | | |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | |
| | | float: left; |
| | | position: relative; |
| | | } |
| | | </style> |
| | | |
| | | </style> |