Browse Source

SBBJ-879备件管理,收货订单,详情编辑后,保存没反应

master
张立 1 month ago
parent
commit
a3c16e3b64
  1. 24
      src/views/eam/item/itemOrderMain/index.vue

24
src/views/eam/item/itemOrderMain/index.vue

@ -40,7 +40,7 @@
:apiPage="ItemOrderDetailApi.getItemOrderDetailPage" :apiDelete="ItemOrderDetailApi.deleteItemOrderDetail"
@searchTableSuccessDetail="searchTableSuccessDetail"
:isShowAddBtn="false"
:detailButtonIsShow="true"/>
:detailButtonIsShow="true" @detailSubmitForm="detailSubmitForm"/>
<!-- 导入 -->
<ImportForm ref="importFormRef" url="/wms/purchase-main/import" :importTemplateData="importTemplateData"
@ -187,7 +187,9 @@
/** 详情操作 */
const detailRef = ref()
const openDetail = (row : any, titleName : any, titleValue : any) => {
const detailData = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => {
detailData.value = row
detailRef.value.openDetail(row, titleName, titleValue, 'basicItemOrderMain')
}
@ -295,7 +297,23 @@
}
getList() //
}
const detailSubmitForm =async (formType, data, formRef) => {
console.log(formType, data, formRef)
try {
if (formType === 'create') {
await ItemOrderDetailApi.createItemOrderDetail(data)
message.success(t('common.createSuccess'))
} else {
await ItemOrderDetailApi.updateItemOrderDetail(data)
message.success(t('common.updateSuccess'))
}
formRef.dialogVisible = false
//
detailRef.value.getList()
} finally {
formRef.formLoading = false
}
}
/** 初始化 **/
onMounted(async () => {
getList()

Loading…
Cancel
Save