|
|
@@ -116,7 +116,7 @@ async function handleSubmit() {
|
|
|
try {
|
|
|
const payloads = validSuggestions.map((s: any) => ({
|
|
|
deviceId: s.deviceId,
|
|
|
- shopId: s.shopId ? Number(s.shopId) : undefined,
|
|
|
+ shopId: s.shopId || undefined,
|
|
|
supplierName: commonForm.supplierName || undefined,
|
|
|
warehouseName: commonForm.warehouseName || undefined,
|
|
|
expectedArrivalTime: commonForm.expectedArrivalTime || undefined,
|
|
|
@@ -124,7 +124,7 @@ async function handleSubmit() {
|
|
|
items: s.items
|
|
|
.filter((i: any) => i.suggestedQuantity > 0)
|
|
|
.map((i: any) => ({
|
|
|
- productId: Number(i.productId),
|
|
|
+ productId: i.productId,
|
|
|
productCode: i.productCode,
|
|
|
productName: i.productName,
|
|
|
plannedQuantity: i.suggestedQuantity,
|