Commit 1bb29430 by linjinhong

修改问题

parent 252f0591
......@@ -128,11 +128,9 @@ const changeWaySubmit = async (title: string) => {
}
let Fn
if (title !== '创建物流订单') {
// if (
// changeWayRow.value.logisticsWayId === selection.value[0]?.logisticsWayId
// ) {
// return ElMessage.warning('更改的物流方式不能相同')
// }
if (changeWayRow.value.logisticsWayId === props.rowData?.logisticsWayId) {
return ElMessage.warning('更改的物流方式不能相同')
}
Fn = changeLogisticsApi
} else {
Fn = submitFn
......@@ -163,7 +161,9 @@ const showDialog = async () => {
const { rowData, getTableFn } = props
try {
if (rowData) {
wayDialogTitle.value = `切换物流(当前物流方式:${rowData.logisticsWayName})`
wayDialogTitle.value = `切换物流(当前物流方式:${
rowData.logisticsWayName || '空'
})`
isChangeWay.value = true
const { data } = await getTableFn(rowData.id as number)
logisticsWayData.value = data
......
......@@ -2514,8 +2514,8 @@
ref="changeWayDialogRef"
:rowData="currentItem"
:getTableFn="getLogisticsCalculation"
:submitFn="changeLogisticsApi"
:changeLogisticsApi="createLogisticsOrdersApi"
:submitFn="createLogisticsOrdersApi"
:changeLogisticsApi="changeLogisticsApi"
:confirm="
() => {
search()
......
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