|
|
@@ -5,7 +5,7 @@
|
|
|
v-model:visible="visible"
|
|
|
centered
|
|
|
:maskClosable="maskClosableFlag"
|
|
|
- @cancel="cancel"
|
|
|
+ @cancel="closeAction"
|
|
|
width="890px">
|
|
|
<template #footer>
|
|
|
<a-button key="submit"
|
|
|
@@ -484,15 +484,17 @@ export default defineComponent({
|
|
|
}
|
|
|
sendReq(param, loading, OperateType)
|
|
|
.then((res) => {
|
|
|
- //清空添加成功后的数据,确保在此新增打开是个空数据
|
|
|
- Object.assign(formState, initFormData());
|
|
|
context.emit('refresh');
|
|
|
- cancel();
|
|
|
+ closeAction();
|
|
|
})
|
|
|
.catch((err) => {});
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+ function closeAction() {
|
|
|
+ //清空添加成功后的数据,确保在此新增打开是个空数据
|
|
|
+ Object.assign(formState, initFormData());
|
|
|
+ cancel();
|
|
|
+ }
|
|
|
initData(() => {
|
|
|
queryCustomList();
|
|
|
getDeliveryGoods();
|
|
|
@@ -502,7 +504,7 @@ export default defineComponent({
|
|
|
});
|
|
|
return {
|
|
|
visible,
|
|
|
- cancel,
|
|
|
+ closeAction,
|
|
|
submit,
|
|
|
formRef,
|
|
|
loading,
|