| | |
| | | <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" /> |
| | | <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> |
| | | |
| | | <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-table v-loading="loading" :data="inspectionList" border> |
| | | </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" /> --> |
| | |
| | | |
| | | <script> |
| | | import { |
| | | listInspection |
| | | listInspection, recall |
| | | } from "@/api/hosp/inspection"; |
| | | |
| | | export default { |
| | |
| | | showSearch: true, |
| | | // 总条数 |
| | | total: 0, |
| | | allList: [], |
| | | // 弃检表格数据 |
| | | inspectionList: [], |
| | | |
| | |
| | | created() { |
| | | this.getList(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | | this.$refs.inputName.focus(); |
| | | }); |
| | | }, |
| | | methods: { |
| | | /** 查询弃检列表 */ |
| | | getList() { |
| | |
| | | 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(); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }; |
| | | </script> |