Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20240829
wangyufei 3 months ago
parent
commit
d63a72948c
  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) => { 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 }) 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) => { const butttondata = (row) => {
return [ 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.mainListDeleteBtn({hasPermi: 'wms:inspection-recode-first-main:delete' }), //
defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-first-main:pub'}), // 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) await InspectionRecordMainApi.createInspectionRecordMain(data)
message.success(t('common.createSuccess')) message.success(t('common.createSuccess'))
}else { }else {
await InspectionRecordMainApi.updateInspectionRecordMain(data) await InspectionRecordMainApi.updateInspectionRecordFirstMain(data)
message.success(t('common.updateSuccess')) message.success(t('common.updateSuccess'))
} }
basicFormRef.value.dialogVisible = false basicFormRef.value.dialogVisible = false

Loading…
Cancel
Save