From 089025f9e058a8f17d869c396c38b3634d86bfa5 Mon Sep 17 00:00:00 2001 From: yinq Date: Mon, 22 Apr 2024 17:56:50 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E5=B9=B4=E5=BA=A6=E4=B8=8D?= =?UTF-8?q?=E8=89=AF=E7=8E=87=E5=90=8C=E6=AF=94=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/reportAPI.js | 9 +++++++++ src/views/report/adverseRecordYearOnYear/index.vue | 9 +++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/api/report/reportAPI.js b/src/api/report/reportAPI.js index 4ada0b2..abcd094 100644 --- a/src/api/report/reportAPI.js +++ b/src/api/report/reportAPI.js @@ -179,3 +179,12 @@ export function downgradeProportionReportList(query) { params: query }) } + +// 年度不良同比报表 +export function adverseRecordYearOnYearList(query) { + return request({ + url: '/report/qualityReport/adverseRecordYearOnYearList', + method: 'get', + params: query + }) +} diff --git a/src/views/report/adverseRecordYearOnYear/index.vue b/src/views/report/adverseRecordYearOnYear/index.vue index e44d7b0..b494836 100644 --- a/src/views/report/adverseRecordYearOnYear/index.vue +++ b/src/views/report/adverseRecordYearOnYear/index.vue @@ -45,8 +45,9 @@ import {findProductLineList} from '@//api/base/productLine' import {parseTime} from '@//utils/ruoyi' import { + adverseRecordYearOnYearList, boxTraceabilityDetailReport, - boxTraceabilityReport, + boxTraceabilityReport } from '@//api/report/reportAPI' export default { @@ -259,7 +260,11 @@ export default { }, methods: { onSubmit(){ - console.log(this.form) + adverseRecordYearOnYearList({ year: '2024', productionLine: 'CX_02'}).then(response => { + //分页查询 + console.log(response) + this.loading = false + }); }, resetForm(formName) { this.$refs[formName].resetFields();