Commit 1cf1eea5 by linjinhong

Merge branch 'feat_Integrate-with-Logistics' of…

Merge branch 'feat_Integrate-with-Logistics' of http://47.122.114.111:9999/qinjianhui/factory_front into feat_Integrate-with-Logistics
parents fcb85524 2f79e85b
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<b v-else-if="!row.status" style="color: red">失败</b> <b v-else-if="!row.status" style="color: red">失败</b>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="预计运费($)" align="center" prop="payFreight"> <el-table-column label="预计运费()" align="center" prop="payFreight">
</el-table-column> </el-table-column>
</el-table> </el-table>
<template #footer> <template #footer>
...@@ -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) => {
...@@ -157,6 +158,7 @@ const changeWaySubmit = async (title: string) => { ...@@ -157,6 +158,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 () => {
...@@ -169,6 +171,7 @@ const showDialog = async () => { ...@@ -169,6 +171,7 @@ const showDialog = async () => {
isChangeWay.value = true isChangeWay.value = true
isChangeWayLoading.value = true isChangeWayLoading.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) {
......
...@@ -2512,11 +2512,11 @@ ...@@ -2512,11 +2512,11 @@
</ElDialog> </ElDialog>
<ChangeWayDialog <ChangeWayDialog
ref="changeWayDialogRef" ref="changeWayDialogRef"
:rowData="currentItem" :row-data="currentItem"
:getTableFn="getLogisticsCalculation" :get-table-fn="getLogisticsCalculation"
:submitFn="createLogisticsOrdersApi" :submit-fn="createLogisticsOrdersApi"
:changeLogisticsApi="changeLogisticsApi" :change-logistics-api="changeLogisticsApi"
:confirm=" @confirm="
() => { () => {
search() search()
loadTabData() loadTabData()
......
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