提交
This commit is contained in:
1 parent
493f8d6756
commit
d84f4b944c
406 files changed
+58954
-10376
No files matched your search
@@ -8,6 +8,8 @@ import {
|
||||
import {
|
||||
planApi,
|
||||
transportApi,
|
||||
freightApi,
|
||||
type FreightSettlementBrief,
|
||||
type Plan,
|
||||
type PlanProduct,
|
||||
type Transport,
|
||||
@@ -124,6 +126,7 @@ export function usePlPlanViewDetail() {
|
||||
const plan = ref<Plan | null>(null)
|
||||
const products = ref<PlanProduct[]>([])
|
||||
const transport = ref<Transport | null>(null)
|
||||
const freightSettlement = ref<FreightSettlementBrief | null>(null)
|
||||
const vehicleBundle = ref<VehicleViewBundle | null>(null)
|
||||
const contractSnapshot = ref<ContractVO | null>(null)
|
||||
const dibangRows = ref<PlPlanTransportDibangRow[]>([])
|
||||
@@ -183,6 +186,7 @@ export function usePlPlanViewDetail() {
|
||||
plan.value = null
|
||||
products.value = []
|
||||
transport.value = null
|
||||
freightSettlement.value = null
|
||||
vehicleBundle.value = null
|
||||
contractSnapshot.value = null
|
||||
dibangRows.value = []
|
||||
@@ -219,6 +223,16 @@ export function usePlPlanViewDetail() {
|
||||
transport.value = null
|
||||
})
|
||||
)
|
||||
detailTasks.push(
|
||||
freightApi
|
||||
.getByTransport(data.transportId)
|
||||
.then((settlementRes) => {
|
||||
freightSettlement.value = pickBxData<FreightSettlementBrief>(settlementRes)
|
||||
})
|
||||
.catch(() => {
|
||||
freightSettlement.value = null
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
if (data?.vehicleId) {
|
||||
@@ -249,6 +263,7 @@ export function usePlPlanViewDetail() {
|
||||
plan.value = null
|
||||
products.value = []
|
||||
transport.value = null
|
||||
freightSettlement.value = null
|
||||
vehicleBundle.value = null
|
||||
contractSnapshot.value = null
|
||||
dibangRows.value = []
|
||||
@@ -260,6 +275,7 @@ export function usePlPlanViewDetail() {
|
||||
plan,
|
||||
products,
|
||||
transport,
|
||||
freightSettlement,
|
||||
vehicleBundle,
|
||||
contractSnapshot,
|
||||
dibangRows,
|
||||
|
||||
Reference in new issue
Block a user