From 380d007cc1643415494781b8bf586c32d6bcec55 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 29 Jul 2024 09:59:26 +0800 Subject: [PATCH] =?UTF-8?q?qms-=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E7=94=A8=E5=86=B3=E7=AD=96=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E4=B8=8D=E5=90=88=E6=A0=BC=EF=BC=8C=E4=BF=9D=E5=AD=98=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/qms/inspectionRecord/inspectionRecordMain/index.ts | 4 ++++ src/views/qms/inspectionRecordFirst/index.vue | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts index 375e69b2f..dfd99059f 100644 --- a/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts +++ b/src/api/qms/inspectionRecord/inspectionRecordMain/index.ts @@ -46,6 +46,10 @@ export const createInspectionRecordMain = async (data: InspectionRecordMainVO) = // 修改检验申请 export const updateInspectionRecordMain = async (data: InspectionRecordMainVO) => { + return await request.put({ url: `/qms/inspection-record-main/update`, data }) +} +// 首件检验保存 +export const updateInspectionRecordFirstMain = async (data: InspectionRecordMainVO) => { return await request.put({ url: `/qms/inspection-record-main/firstInspectionUpdate`, data }) } diff --git a/src/views/qms/inspectionRecordFirst/index.vue b/src/views/qms/inspectionRecordFirst/index.vue index de5d008bf..75bff36cf 100644 --- a/src/views/qms/inspectionRecordFirst/index.vue +++ b/src/views/qms/inspectionRecordFirst/index.vue @@ -135,7 +135,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = (row) => { return [ - defaultButtons.mainListEditBtn({hasPermi: 'wms:inspection-recode-first-main:update' }), // 编辑 + defaultButtons.mainListEditBtn({ hide: isShowMainButton(row, 'publish'),hasPermi: 'wms:inspection-recode-first-main:update' }), // 编辑 defaultButtons.mainListDeleteBtn({hasPermi: 'wms:inspection-recode-first-main:delete' }), // 删除 defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-first-main:pub'}), // 发布 ] @@ -228,7 +228,7 @@ const buttonBaseClick = (val, item) => { await InspectionRecordMainApi.createInspectionRecordMain(data) message.success(t('common.createSuccess')) }else { - await InspectionRecordMainApi.updateInspectionRecordMain(data) + await InspectionRecordMainApi.updateInspectionRecordFirstMain(data) message.success(t('common.updateSuccess')) } basicFormRef.value.dialogVisible = false