su
su1124
2023-12-28 bddb36bcdc87debcd3d3f2928eef48cc5696e096
src/views/hosp/inspection/index.vue
@@ -2,7 +2,7 @@
    <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" />
@@ -23,13 +23,13 @@
        <el-row :gutter="10" class="mb8">
            <el-col :span="1.5">
                <el-button type="primary" plain icon="el-icon-plus" size="mini"
                    v-hasPermi="['hosp:detail:add']">恢复</el-button>
                <el-button type="primary" plain size="mini" v-hasPermi="['hosp:detail:add']"
                    @click="handlerestore">恢复</el-button>
            </el-col>
        </el-row>
        <el-table v-loading="loading" :data="inspectionList" border>
        <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" />
@@ -66,7 +66,7 @@
<script>
import {
    listInspection
    listInspection, recall
} from "@/api/hosp/inspection";
export default {
@@ -85,6 +85,7 @@
            showSearch: true,
            // 总条数
            total: 0,
            allList: [],
            // 弃检表格数据
            inspectionList: [],
@@ -106,6 +107,11 @@
    created() {
        this.getList();
    },
    mounted() {
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
    methods: {
        /** 查询弃检列表 */
        getList() {
@@ -152,7 +158,19 @@
            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>