fix(intake): replace unsafe cast in sku export empty row builder
adding the optional rowNumber field to NonIntegratedSkuExportRow made the Object.fromEntries cast insufficient for the production build type check; build the empty import row explicitly instead.
This commit is contained in:
parent
fccf9485b7
commit
e926a5a990
@ -309,9 +309,31 @@ function getFuzzyImportColumnKey(value: string) {
|
||||
}
|
||||
|
||||
function createEmptyImportRow(): NonIntegratedSkuExportRow {
|
||||
return Object.fromEntries(
|
||||
NON_INTEGRATED_SKU_TEMPLATE_COLUMNS.map((column) => [column.key, '']),
|
||||
) as NonIntegratedSkuExportRow
|
||||
return {
|
||||
spu: '',
|
||||
model: '',
|
||||
skuCode: '',
|
||||
barcode: '',
|
||||
setCount: '',
|
||||
specName: '',
|
||||
size: '',
|
||||
color: '',
|
||||
material: '',
|
||||
boardMaterialType: '',
|
||||
versionNo: '',
|
||||
attributeCode: '',
|
||||
drawingId: '',
|
||||
installMethod: '',
|
||||
executeStandard: '',
|
||||
nationalStandardCompliant: '',
|
||||
manufacturer: '',
|
||||
manufacturerCode: '',
|
||||
minimumOrderQuantity: '',
|
||||
salesStatus: '',
|
||||
batchNo: '',
|
||||
batchChangeType: '',
|
||||
dingTalkFlowNo: '',
|
||||
}
|
||||
}
|
||||
|
||||
export async function parseNonIntegratedSkuWorkbook(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user