Commit fae8986a by wusiyi

fix: 修复podcn更换物流参数传递错误问题

parent 1bb29430
...@@ -69,7 +69,6 @@ import { PodCnOrderListData, LogisticsData } from '@/types/api/podCnOrder' ...@@ -69,7 +69,6 @@ import { PodCnOrderListData, LogisticsData } from '@/types/api/podCnOrder'
const isChangeWay = ref(false) const isChangeWay = ref(false)
const isChangeWayLoading = ref(false) const isChangeWayLoading = ref(false)
const changeWayRow = ref<LogisticsData>({} as LogisticsData) const changeWayRow = ref<LogisticsData>({} as LogisticsData)
const currentItem = ref<PodCnOrderListData | null>(null)
const logisticsWayData = ref([]) const logisticsWayData = ref([])
const changeWayRef = ref() const changeWayRef = ref()
...@@ -139,8 +138,8 @@ const changeWaySubmit = async (title: string) => { ...@@ -139,8 +138,8 @@ const changeWaySubmit = async (title: string) => {
try { try {
const params = { const params = {
updateByIdParam: { updateByIdParam: {
id: currentItem.value?.id || '', id: props.rowData?.id || '',
dataVersion: currentItem.value?.version as number, dataVersion: props.rowData?.version as number,
}, },
logisticsTrialCalculation: { ...changeWayRow.value }, logisticsTrialCalculation: { ...changeWayRow.value },
} }
......
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