Browse Source

单据开关--编辑功能

master_hella_20240701
yufei0306 7 months ago
parent
commit
905c8a86ca
  1. 11
      src/views/wms/basicDataManage/documentSetting/switch/index.vue

11
src/views/wms/basicDataManage/documentSetting/switch/index.vue

@ -41,7 +41,7 @@
<!-- 表单弹窗添加/修改 -->
<BasicForm
ref="basicFormRef"
@success="getList"
@success="success"
:rules="SwitchRules"
:formAllSchemas="Switch.allSchemas"
:apiUpdate="SwitchApi.updateSwitch"
@ -210,7 +210,16 @@ const searchFormClick = (searchData) => {
}
getList() //
}
const success = async (formType, data) => {
const res = await SwitchApi.updateSwitch(data)
if(true===res){
message.success(t('common.updateSuccess'))
getList()
}else{
message.error('修改失败')
}
}
/** 初始化 **/
onMounted(async() => {
getList()

Loading…
Cancel
Save