From 9b0a40a9b2918dd0e92161edaff4a3f61b510141 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期三, 05 三月 2025 10:32:35 +0800 Subject: [PATCH] 优化下单 --- src/views/business/inspectionTask/components/EditInspectionItem.vue | 40 +++++++++++++++++++--------------------- 1 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/views/business/inspectionTask/components/EditInspectionItem.vue b/src/views/business/inspectionTask/components/EditInspectionItem.vue index 78d3735..b38e59c 100644 --- a/src/views/business/inspectionTask/components/EditInspectionItem.vue +++ b/src/views/business/inspectionTask/components/EditInspectionItem.vue @@ -6,20 +6,15 @@ width="80%" @close="editInspectionDia = false" > - <TableCard :showTitle="false"> - <template v-slot:table> - <lims-table - :column="editColumn" - :table-data="editTableData" - :table-loading="editLoading" - :page="page" - height="600" - style="padding: 0 15px" - @pagination="pagination" - > - </lims-table> - </template> - </TableCard> + <lims-table + :column="editColumn" + :table-data="editTableData" + :table-loading="editLoading" + :page="page" + height="560" + @pagination="pagination" + > + </lims-table> </el-dialog> <el-dialog :visible.sync="editAskDia" title="淇敼" width="50%"> <el-form ref="form" :model="editForm" label-width="100px"> @@ -38,7 +33,7 @@ style="width: 100%" > <el-option - v-for="dict in dict.type.inspection_value_type" + v-for="dict in inspectionValueType" :key="dict.value" :label="dict.label" :value="dict.value" @@ -60,7 +55,6 @@ </template> <script> -import TableCard from "@/components/TableCard/index.vue"; import limsTable from "@/components/Table/lims-table.vue"; import { selectSampleAndProductByOrderId, @@ -69,11 +63,10 @@ export default { name: "EditInspectionItem", // import 寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� - components: { TableCard, limsTable }, + components: { limsTable }, data() { // 杩欓噷瀛樻斁鏁版嵁 return { - dicts: ["inspection_value_type"], editInspectionDia: false, entity: { id: 0, @@ -164,7 +157,13 @@ inspectionValueType: "", }, handleEditLoading: false, + inspectionValueType: [], }; + }, + mounted() { + this.getDicts("inspection_value_type").then((response) => { + this.inspectionValueType = this.dictToValue(response.data); + }); }, // 鏂规硶闆嗗悎 methods: { @@ -182,9 +181,8 @@ }) .then((res) => { this.editLoading = false; - if (res.code === 201) return; - this.editTableData = res.data.body.records; - this.page.total = res.data.body.total; + this.editTableData = res.data.records; + this.page.total = res.data.total; }) .catch(() => { this.editLoading = false; -- Gitblit v1.9.3