|
|
@ -180,7 +180,7 @@ public class PartSparePurchaseImportServiceImpl extends ServiceImpl<PartSparePur |
|
|
String[] headers = { |
|
|
String[] headers = { |
|
|
"日期", "供应商", "币种", "订单编号", "存货编码", "存货名称", "数量", |
|
|
"日期", "供应商", "币种", "订单编号", "存货编码", "存货名称", "数量", |
|
|
"本币单价", "本币金额", "本币税额", "本币价税合计", "单位", |
|
|
"本币单价", "本币金额", "本币税额", "本币价税合计", "单位", |
|
|
"项目目录(BU)", "请单编号", "请购员" |
|
|
|
|
|
|
|
|
"项目目录(BU)", "上游单据号", "请购员" |
|
|
}; |
|
|
}; |
|
|
for (int i = 0; i < headers.length; i++) { |
|
|
for (int i = 0; i < headers.length; i++) { |
|
|
Cell cell = header.createCell(i); |
|
|
Cell cell = header.createCell(i); |
|
|
@ -188,23 +188,6 @@ public class PartSparePurchaseImportServiceImpl extends ServiceImpl<PartSparePur |
|
|
sheet.setColumnWidth(i, 18 * 256); |
|
|
sheet.setColumnWidth(i, 18 * 256); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Row sample = sheet.createRow(1); |
|
|
|
|
|
sample.createCell(0).setCellValue("2026-04-02"); |
|
|
|
|
|
sample.createCell(1).setCellValue("南海发展工程有限公司"); |
|
|
|
|
|
sample.createCell(2).setCellValue("人民币"); |
|
|
|
|
|
sample.createCell(3).setCellValue("CPMFL2026040019"); |
|
|
|
|
|
sample.createCell(4).setCellValue("401.000000"); |
|
|
|
|
|
sample.createCell(5).setCellValue("叉车手柄切片"); |
|
|
|
|
|
sample.createCell(6).setCellValue("3"); |
|
|
|
|
|
sample.createCell(7).setCellValue("1"); |
|
|
|
|
|
sample.createCell(8).setCellValue("3"); |
|
|
|
|
|
sample.createCell(9).setCellValue("0.39"); |
|
|
|
|
|
sample.createCell(10).setCellValue("3.39"); |
|
|
|
|
|
sample.createCell(11).setCellValue("起"); |
|
|
|
|
|
sample.createCell(12).setCellValue("39"); |
|
|
|
|
|
sample.createCell(13).setCellValue("CPMFL2026040019"); |
|
|
|
|
|
sample.createCell(14).setCellValue("段晓浩"); |
|
|
|
|
|
|
|
|
|
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
|
|
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
|
|
response.setCharacterEncoding("UTF-8"); |
|
|
response.setCharacterEncoding("UTF-8"); |
|
|
response.setHeader( |
|
|
response.setHeader( |
|
|
@ -314,7 +297,7 @@ public class PartSparePurchaseImportServiceImpl extends ServiceImpl<PartSparePur |
|
|
index.localTotalAmount = resolveColumn(headerMap, 11, "本币价税合计"); |
|
|
index.localTotalAmount = resolveColumn(headerMap, 11, "本币价税合计"); |
|
|
index.unitName = resolveColumn(headerMap, 12, "单位"); |
|
|
index.unitName = resolveColumn(headerMap, 12, "单位"); |
|
|
index.projectBu = resolveColumn(headerMap, 13, "项目目录(bu)", "项目目录(bu)", "项目目录bu", "项目目录"); |
|
|
index.projectBu = resolveColumn(headerMap, 13, "项目目录(bu)", "项目目录(bu)", "项目目录bu", "项目目录"); |
|
|
index.requestNo = resolveColumn(headerMap, 14, "请单编号", "请购单号", "请购编号"); |
|
|
|
|
|
|
|
|
index.requestNo = resolveColumn(headerMap, 14, "上游单据号", "上游单据号", "上游单据号"); |
|
|
index.requestBy = resolveColumn(headerMap, 15, "请购员", "请购人", "采购员"); |
|
|
index.requestBy = resolveColumn(headerMap, 15, "请购员", "请购人", "采购员"); |
|
|
return index; |
|
|
return index; |
|
|
} |
|
|
} |
|
|
|