Commit 06151650 by wuqian

打单完成修复

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