Commit 06151650 by wuqian

打单完成修复

parent 5f70d31f
......@@ -28,8 +28,12 @@ export interface OrderData {
remark?: string
version?: number
factoryOrderNumber?: number | string
orderParamList?: IorderItem[]
}
export interface IorderItem {
id: number
dataVersion: number
}
export interface ProductList {
warehouseSkuImage: string
warehouseSku: string
......
......@@ -241,6 +241,7 @@ import {
OrderData,
PodMakeOrderData,
ProductList,
IorderItem,
} from '@/types/api/podMakeOrder'
import useOrderStore from '@/store/cnOrder'
......@@ -630,14 +631,20 @@ const submitInspection = async (callback: () => void) => {
if (!factoryNo) {
return
}
const data = podOrderDetailsData.value?.id
? [
{
id: podOrderDetailsData.value.id,
version: podOrderDetailsData.value?.version,
},
]
: []
// const data = podOrderDetailsData.value?.id
// ? [
// {
// id: podOrderDetailsData.value.id,
// version: podOrderDetailsData.value?.version,
// },
// ]
// : []
const data = (podOrderDetailsData.value?.orderParamList ?? []).map(
(item: IorderItem) => ({
id: item.id,
version: item.dataVersion,
}),
)
try {
const res = await submitInspectionApi(
data,
......@@ -1006,7 +1013,7 @@ const handleWarehouseChange = (value: string | number) => {
display: flex;
flex-direction: column;
gap: 5px;
}
}
.right-content {
width: 400px;
overflow-y: auto;
......
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