Browse Source

form组件主子修改关闭方式

master
陈薪名 11 months ago
parent
commit
4e2fd99615
  1. 4
      src/components/BasicForm/src/BasicForm.vue
  2. 2
      src/views/wms/purchaseclaimRequestMain/index.vue

4
src/components/BasicForm/src/BasicForm.vue

@ -243,7 +243,7 @@ const open = async (type: string, row?: any) => {
}
}
}
defineExpose({ open , formRef, opensearchTable}) // open
defineExpose({ open , formRef, opensearchTable, dialogVisible}) // open
/** 弹窗按钮 */
const Butttondata = [
@ -289,7 +289,7 @@ const submitForm = async () => {
try {
const data = unref(formRef)?.formModel
emit('submitForm', formType.value, data )
dialogVisible.value = false
// dialogVisible.value = false
} finally {
formLoading.value = false
}

2
src/views/wms/purchaseclaimRequestMain/index.vue

@ -281,6 +281,8 @@ const submitForm = async (formType, data) => {
await PurchaseclaimRequestMainApi.updatePurchaseclaimRequestMain(data)
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
//
getList()
}

Loading…
Cancel
Save