| | |
| | | <template> |
| | | <div class="content-main"> |
| | | <div class="top-bar"> |
| | | <el-form ref="form" :inline="true" :model="searchData" label-position="left"> |
| | | <el-form ref="form" :inline="true" :model="searchData" label-position="left" style="margin-top: 10px;"> |
| | | <el-form-item label="样品编号:"> |
| | | <el-input v-model="searchData.sample_code" class="input-form" placeholder="请输入样品编号" |
| | | <el-input size="small" v-model="searchData.sample_code" class="input-form" placeholder="请输入样品编号" |
| | | @keyup.enter.native="getData" /> |
| | | </el-form-item> |
| | | <el-form-item label="报告单号:"> |
| | | <el-input v-model="searchData.reportCode" class="input-form" placeholder="请输入报告单号" /> |
| | | <el-input size="small" v-model="searchData.reportCode" class="input-form" placeholder="请输入报告单号" /> |
| | | </el-form-item> |
| | | <el-form-item label="申请单号:"> |
| | | <el-input v-model="searchData.application_code" class="input-form" placeholder="请输入申请单号" /> |
| | | <el-input size="small" v-model="searchData.application_code" class="input-form" placeholder="请输入申请单号" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="getData()">查询</el-button> |
| | | <el-button type="primary" plain @click="resetData()">重置</el-button> |
| | | <el-button size="small" type="primary" @click="getData()">查询</el-button> |
| | | <el-button size="small" type="primary" plain @click="resetData()">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-form> |
| | | <el-button @click="exportToPDF" class="rightBtn" type="primary" icon="el-icon-document">导出报告</el-button> |
| | | <el-form style="margin-top: 10px;"> |
| | | <el-button size="small" @click="exportToPDF" class="rightBtn" type="primary" icon="el-icon-document">导出报告</el-button> |
| | | </el-form> |
| | | </div> |
| | | <div class="library-table"> |
| | |
| | | <div class="search-bar"> |
| | | <el-radio-group v-model="checkStatus" @change="handleRadioChange"> |
| | | <el-radio-button>全部</el-radio-button> |
| | | <el-radio-button label="0">待提交</el-radio-button> |
| | | <el-radio-button label="1">待审核</el-radio-button> |
| | | <el-radio-button label="2">待签字</el-radio-button> |
| | | <el-radio-button label="3">已完成</el-radio-button> |
| | | <el-radio-button label="0">待审核</el-radio-button> |
| | | <el-radio-button label="1">待签字</el-radio-button> |
| | | <el-radio-button label="2">已完成</el-radio-button> |
| | | </el-radio-group> |
| | | <el-checkbox v-model="checked" style="margin-left: 20px">仅看我的</el-checkbox> |
| | | </div> |
| | |
| | | </div> |
| | | </el-dialog> |
| | | <div class="table-box"> |
| | | <el-table ref="reportTable" :max-height="800" :cell-style="{ textAlign: 'center' }" :header-cell-style="{ |
| | | <el-table ref="reportTable" :max-height="800" :cell-style="{ textAlign: 'left' }" :header-cell-style="{ |
| | | border: '0px', |
| | | background: '#f5f7fa', |
| | | color: '#606266', |
| | | boxShadow: 'inset 0 1px 0 #ebeef5', |
| | | textAlign: 'center', |
| | | textAlign: 'left', |
| | | }" :data="reportTable" @selection-change="handleSelectionChange" style="width: 100%"> |
| | | <el-table-column type="selection" min-width="5%" /> |
| | | <el-table-column prop="type" label="报告类型" min-width="5%"> |
| | |
| | | <el-table-column prop="status" label="审批状态" min-width="8%"> |
| | | <template slot-scope="scope"> |
| | | <span> |
| | | <el-tag type="info">{{ |
| | | scope.row.status == 0 |
| | | ? "待提交" |
| | | : scope.row.status == 1 |
| | | ? "待审核" |
| | | : scope.row.status == 2 |
| | | ? "代签字" |
| | | : "已完成" |
| | | }}</el-tag> |
| | | <el-tag type="info"> |
| | | {{ |
| | | scope.row.status == 0 |
| | | ? "待审核" |
| | | : scope.row.status == 1 |
| | | ? "代签字" : "已完成" |
| | | }} |
| | | </el-tag> |
| | | </span> |
| | | </template></el-table-column> |
| | | <el-table-column prop="conclusion" label="检验结论" min-width="8%"> |