|
|
@ -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 |
|
|
|