Commit eeabe452 by wusiyi

fix: podcn更换物流清空表单数据

parent cc825218
...@@ -114,6 +114,7 @@ const cancelWayDialog = () => { ...@@ -114,6 +114,7 @@ const cancelWayDialog = () => {
changeWayRow.value = {} as LogisticsData changeWayRow.value = {} as LogisticsData
changeWayRef.value?.setCurrentRow() changeWayRef.value?.setCurrentRow()
isChangeWay.value = false isChangeWay.value = false
logisticsWayData.value = []
} }
//确认物流 //确认物流
const changeWaySubmit = async (title: string) => { const changeWaySubmit = async (title: string) => {
...@@ -154,6 +155,7 @@ const changeWaySubmit = async (title: string) => { ...@@ -154,6 +155,7 @@ const changeWaySubmit = async (title: string) => {
console.log(error) console.log(error)
} finally { } finally {
isChangeWayLoading.value = false isChangeWayLoading.value = false
logisticsWayData.value = []
} }
} }
const showDialog = async () => { const showDialog = async () => {
...@@ -165,6 +167,7 @@ const showDialog = async () => { ...@@ -165,6 +167,7 @@ const showDialog = async () => {
})` })`
isChangeWay.value = true isChangeWay.value = true
const { data } = await getTableFn(rowData.id as number) const { data } = await getTableFn(rowData.id as number)
logisticsWayData.value = data logisticsWayData.value = data
} }
} catch (error) { } catch (error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment