From d273cea8aa43639924aa07293f63bcbc5e0d8f77 Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 21 May 2026 16:03:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E6=96=87=E4=BB=B6=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspectionArchiving/rbFilePreserve.js | 4 +- .../rbFilePreserve/index.vue | 63 +++++++++++++------ 2 files changed, 47 insertions(+), 20 deletions(-) diff --git a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js index ccb8173c..cc21c7fa 100644 --- a/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js +++ b/src/api/qualityManagement/inspectionArchiving/rbFilePreserve.js @@ -110,11 +110,11 @@ export const updateStatus = (data) =>{ } // 发布接口 -export const release = (data) =>{ +export const release = (params) =>{ return request({ url:'/api/blade-desk/QA/ProReTemplate/publish', method:'post', - data + params }) } diff --git a/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue b/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue index d8be21bf..7e8061cd 100644 --- a/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue +++ b/src/views/qualityManagement/inspectionArchiving/rbFilePreserve/index.vue @@ -45,7 +45,7 @@ 发布 - 审核 新建 待审核 - 审核中 - 使用中 - 废弃 - 审核不通过 + 审核中 + 使用中 + 废弃 + 审核不通过 -
- - - - -
+
@@ -142,7 +136,9 @@ import { deleteRecords, copyData, updateStatus, - release + release, + audit, + auditHistory } from '@/api/qualityManagement/inspectionArchiving/rbFilePreserve'; import { mapGetters } from 'vuex'; import detailRb from './detailRb2.vue'; @@ -151,6 +147,7 @@ import approvalStandard from '@/views/oem/components/approval/index.vue'; import editTable from './editTable.vue'; import basicImport from '@/components/basic-import/main.vue'; import addPreserve from './addPreserve.vue'; +import checkLine from "./checkLine.vue" export default { components: { detailRb, @@ -159,6 +156,7 @@ export default { editTable, basicImport, addPreserve, + checkLine }, data() { return { @@ -170,10 +168,6 @@ export default { currentPage: 1, total: 0, }, - historyData:[ - {id:2,name:'张三',time:'2021-01-01',result:'审核通过'}, - {id:1,name:'李四',time:'2021-01-01',result:'审核通过'}, - ], form: {}, query: {}, loading: true, @@ -185,6 +179,7 @@ export default { remark:[{ required: false, message: '请填写审核意见', trigger: 'blur' }] }, checkHistory:false, + historyData:[], option: { tip: false, height: 'auto', @@ -463,6 +458,25 @@ export default { .catch(() => {}); }, + // 发布 + releaseData(row){ + this.$confirm('确定发布此模板?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }).then(() => { + release({ + id: row.id, + }).then((res) => { + this.$message({ + message: '发布成功', + type: 'success', + }); + this.onLoad(this.page, this.query); + }); + }) + }, + auditData(row){ this.checkId = row.id this.auditForm = { @@ -487,12 +501,25 @@ export default { ...this.auditForm, id:this.checkId } + audit(params).then(res =>{ + if(res.data.code == 200){ + this.$message.success('审核成功') + this.onLoad() + this.approveDialog = false + } + }) } }) }, hadleHistory(row){ - this.checkHistory = true + auditHistory({ + id:row.id + }).then(res =>{ + console.log('res----------------',res) + this.historyData = res.data.data + this.checkHistory = true + }) }, // 点击导入按钮