From 810b4b87a81839b82527efda99fe594e16f4c8af Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 3 Aug 2023 15:48:24 +0800 Subject: [PATCH 1/4] =?UTF-8?q?add=20=E8=B4=A8=E9=87=8F=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/monitoring/qualityInspectionRecord.js | 54 +++ .../qualityInspectionRecord/index.vue | 362 ++++++++++++++++++ 2 files changed, 416 insertions(+) create mode 100644 src/api/monitoring/qualityInspectionRecord.js create mode 100644 src/views/quality/monitoring/qualityInspectionRecord/index.vue diff --git a/src/api/monitoring/qualityInspectionRecord.js b/src/api/monitoring/qualityInspectionRecord.js new file mode 100644 index 00000000..81454cc5 --- /dev/null +++ b/src/api/monitoring/qualityInspectionRecord.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建质量检查信息记录表 +export function createQualityInspectionRecord(data) { + return request({ + url: '/monitoring/quality-inspection-record/create', + method: 'post', + data: data + }) +} + +// 更新质量检查信息记录表 +export function updateQualityInspectionRecord(data) { + return request({ + url: '/monitoring/quality-inspection-record/update', + method: 'put', + data: data + }) +} + +// 删除质量检查信息记录表 +export function deleteQualityInspectionRecord(id) { + return request({ + url: '/monitoring/quality-inspection-record/delete?id=' + id, + method: 'delete' + }) +} + +// 获得质量检查信息记录表 +export function getQualityInspectionRecord(id) { + return request({ + url: '/monitoring/quality-inspection-record/get?id=' + id, + method: 'get' + }) +} + +// 获得质量检查信息记录表分页 +export function getQualityInspectionRecordPage(query) { + return request({ + url: '/monitoring/quality-inspection-record/page', + method: 'get', + params: query + }) +} + +// 导出质量检查信息记录表 Excel +export function exportQualityInspectionRecordExcel(query) { + return request({ + url: '/monitoring/quality-inspection-record/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/quality/monitoring/qualityInspectionRecord/index.vue b/src/views/quality/monitoring/qualityInspectionRecord/index.vue new file mode 100644 index 00000000..5b709fdd --- /dev/null +++ b/src/views/quality/monitoring/qualityInspectionRecord/index.vue @@ -0,0 +1,362 @@ + + + -- 2.45.2 From f5fb852d5deb8db7e69bdba099d41723910d9035 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 4 Aug 2023 11:08:21 +0800 Subject: [PATCH 2/4] =?UTF-8?q?update=20=E8=B4=A8=E9=87=8F=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/components/dialogForm.vue | 11 + src/views/quality/mixin/basicPageMixin.js | 12 + .../qualityInspectionRecord/index.vue | 459 ++++++++++-------- 3 files changed, 284 insertions(+), 198 deletions(-) diff --git a/src/views/quality/components/dialogForm.vue b/src/views/quality/components/dialogForm.vue index 000e1cf9..e5dbc6e5 100644 --- a/src/views/quality/components/dialogForm.vue +++ b/src/views/quality/components/dialogForm.vue @@ -39,6 +39,12 @@ :label="opt.label" :value="opt.value" /> + @@ -124,6 +130,10 @@ export default { const promiseList = []; this.rows.forEach((cols) => { cols.forEach(async (opt) => { + if (opt.value) { + // 默认值 + this.form[opt.prop] = opt.value; + } if (opt.options) { this.optionListOf[opt.prop] = opt.options; } else if (opt.url) { @@ -174,6 +184,7 @@ export default {