| | |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | prop="applicationOrdernumber" |
| | | label="申请单号" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="typeofInspection" |
| | | prop="type" |
| | | label="检验类型" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="objectofInspection" |
| | | label="检验对象" |
| | | prop="createTime" |
| | | label="创建时间" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="palceofObject" |
| | | label="对象位置" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="name" |
| | | label="对象名称" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="date" |
| | | label="登记日期" |
| | | prop="userName" |
| | | label="申请人" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="registrant" |
| | | label="登记人" |
| | | label="检验人" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="applicationTime" |
| | | label="申请时间" |
| | | prop="inspectionStatus" |
| | | label="检验状态" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="qualifiedState" |
| | | label="合格状态" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="inspectStartTime" |
| | | label="检验开始时间" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | | prop="inspectEndTime" |
| | | label="检验结束时间" |
| | | min-width="200" |
| | | /> |
| | | <el-table-column |
| | |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="pageSize" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="this.inspectionTable.length" |
| | | :total="total" |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | /> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getInspectionList } from '@/api/rawMaterials/reportForInspection' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | keyword: '' |
| | | }, |
| | | inspectionTable: [{ |
| | | applicationOrdernumber: 'QC22-09155', |
| | | typeofInspection: '采购入库', |
| | | objectofInspection: 'MI202207032-1', |
| | | palceofObject: '---', |
| | | name: '这是一条测试数据', |
| | | date: '2022-09-23', |
| | | registrant: '管理员', |
| | | applicationTime: '111' |
| | | 'id': '1681215775833042945', |
| | | 'type': 0, |
| | | 'inspectionStatus': 0, |
| | | 'qualifiedState': null, |
| | | 'state': 1, |
| | | 'createTime': '2023-07-18 16:14:11', |
| | | 'updateTime': null, |
| | | 'version': null, |
| | | 'userName': '测试人员', |
| | | 'inspectUserId': null, |
| | | 'inspectStartTime': null, |
| | | 'inspectEndTime': null |
| | | }], |
| | | currentPage: 1, |
| | | total: 20, // 总条数 |
| | | pageSize: 100, // 每页的数据条数 |
| | | pageSize: 10, // 每页的数据条数 |
| | | radioValue: '全部', |
| | | checkTypeVisible: false, |
| | | type: 0 |
| | |
| | | // // 由于会渲染同样的 Foo 组件,因此组件实例会被复用。而这个钩子就会在这个情况下被调用。 |
| | | // // 可以访问组件实例 `this` |
| | | // }, |
| | | created() { |
| | | this.getInspectionTableData() |
| | | }, |
| | | updated() { |
| | | if (this.$route.name === 'ForInspectionDetail') this.showDetail = true |
| | | }, |
| | | methods: { |
| | | async getInspectionTableData() { |
| | | const res = await getInspectionList({ pageSize: this.currentPage, countSize: this.pageSize }) |
| | | // this.inspectionTable = data |
| | | console.log(res) |
| | | }, |
| | | goToForInspectionDetail() { |
| | | this.$router.push('/rawMaterials/reportForInspection/forInspectionDetail') |
| | | }, |