Browse Source

qms-检验记录,使用决策全部不合格,保存报错

hella_online_20240829
zhang_li 3 months ago
parent
commit
380d007cc1
  1. 4
      src/api/qms/inspectionRecord/inspectionRecordMain/index.ts
  2. 4
      src/views/qms/inspectionRecordFirst/index.vue

4
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 })
}

4
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

Loading…
Cancel
Save