liwei 1 mesiac pred
rodič
commit
504d12cd0a
1 zmenil súbory, kde vykonal 50 pridanie a 50 odobranie
  1. 50 50
      sku3d/sku3d/api/a-excel.go

+ 50 - 50
sku3d/sku3d/api/a-excel.go

@@ -1012,87 +1012,87 @@ func ZipExport(c *gin.Context, apictx *ApiSession) (interface{}, error) {
 			f.SetCellValue(sheet, fmt.Sprintf("P%d", rowIndex), "")
 		}
 
-		// 商品属性 - 使用True/False字符串而不是布尔值
-		if img.ExportProperty != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("Q%d", rowIndex), boolToString(*img.ExportProperty)) // 出口属性
-		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("Q%d", rowIndex), "False")
-		}
+		// // 商品属性 - 使用True/False字符串而不是布尔值
+		// if img.ExportProperty != nil {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("Q%d", rowIndex), boolToString(*img.ExportProperty)) // 出口属性
+		// } else {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("Q%d", rowIndex), "False")
+		// }
 
-		if img.DomesticProperty != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("R%d", rowIndex), boolToString(*img.DomesticProperty)) // 内销属性
-		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("R%d", rowIndex), "False")
-		}
+		// if img.DomesticProperty != nil {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("R%d", rowIndex), boolToString(*img.DomesticProperty)) // 内销属性
+		// } else {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("R%d", rowIndex), "False")
+		// }
 
-		if img.InpurchaseProperty != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("S%d", rowIndex), boolToString(*img.InpurchaseProperty)) // 内购属性
-		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("S%d", rowIndex), "False")
-		}
+		// if img.InpurchaseProperty != nil {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("S%d", rowIndex), boolToString(*img.InpurchaseProperty)) // 内购属性
+		// } else {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("S%d", rowIndex), "False")
+		// }
 
-		if img.OutsourcedProperty != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("T%d", rowIndex), boolToString(*img.OutsourcedProperty)) // 委外属性
-		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("T%d", rowIndex), "False")
-		}
+		// if img.OutsourcedProperty != nil {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("T%d", rowIndex), boolToString(*img.OutsourcedProperty)) // 委外属性
+		// } else {
+		// 	f.SetCellValue(sheet, fmt.Sprintf("T%d", rowIndex), "False")
+		// }
 
-		f.SetCellValue(sheet, fmt.Sprintf("U%d", rowIndex), MnemonicSign)       // 报关助记符
-		f.SetCellValue(sheet, fmt.Sprintf("V%d", rowIndex), img.TaxGoodsNumber) // 报关商品编码
-		f.SetCellValue(sheet, fmt.Sprintf("W%d", rowIndex), img.TaxNameCN)      // 报关商品中文名
+		f.SetCellValue(sheet, fmt.Sprintf("Q%d", rowIndex), MnemonicSign)       // 报关助记符
+		f.SetCellValue(sheet, fmt.Sprintf("R%d", rowIndex), img.TaxGoodsNumber) // 报关商品编码
+		f.SetCellValue(sheet, fmt.Sprintf("S%d", rowIndex), img.TaxNameCN)      // 报关商品中文名
 
 		// 录入人名称
-		f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), apictx.User.Name) // 录入人名称
+		f.SetCellValue(sheet, fmt.Sprintf("T%d", rowIndex), apictx.User.Name) // 录入人名称
 		// f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), "测试默认") // 录入人名称
 
-		f.SetCellValue(sheet, fmt.Sprintf("Y%d", rowIndex), img.FitMarket)       // 适合的市场
-		f.SetCellValue(sheet, fmt.Sprintf("Z%d", rowIndex), img.SupplierID)      // 供应商编号
-		f.SetCellValue(sheet, fmt.Sprintf("AA%d", rowIndex), TypeCategory2)      // 种类分类
-		f.SetCellValue(sheet, fmt.Sprintf("AB%d", rowIndex), TypeCategory2Name)  // 种类分类名称
-		f.SetCellValue(sheet, fmt.Sprintf("AC%d", rowIndex), baseCloth)          // 基布
-		f.SetCellValue(sheet, fmt.Sprintf("AD%d", rowIndex), baseClothName)      // 基布名称
-		f.SetCellValue(sheet, fmt.Sprintf("AE%d", rowIndex), surfaceProcess)     // 表面工艺
-		f.SetCellValue(sheet, fmt.Sprintf("AF%d", rowIndex), surfaceProcessName) // 表面工艺名称
+		f.SetCellValue(sheet, fmt.Sprintf("U%d", rowIndex), img.FitMarket)       // 适合的市场
+		f.SetCellValue(sheet, fmt.Sprintf("V%d", rowIndex), img.SupplierID)      // 供应商编号
+		f.SetCellValue(sheet, fmt.Sprintf("W%d", rowIndex), TypeCategory2)       // 种类分类
+		f.SetCellValue(sheet, fmt.Sprintf("X%d", rowIndex), TypeCategory2Name)   // 种类分类名称
+		f.SetCellValue(sheet, fmt.Sprintf("Y%d", rowIndex), baseCloth)           // 基布
+		f.SetCellValue(sheet, fmt.Sprintf("Z%d", rowIndex), baseClothName)       // 基布名称
+		f.SetCellValue(sheet, fmt.Sprintf("AA%d", rowIndex), surfaceProcess)     // 表面工艺
+		f.SetCellValue(sheet, fmt.Sprintf("AB%d", rowIndex), surfaceProcessName) // 表面工艺名称
 
 		// 产品克重
 		if img.ProductWeight != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("AG%d", rowIndex), *img.ProductWeight) // 产品克重(KG)
+			f.SetCellValue(sheet, fmt.Sprintf("AC%d", rowIndex), *img.ProductWeight) // 产品克重(KG)
 		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("AG%d", rowIndex), 0)
+			f.SetCellValue(sheet, fmt.Sprintf("AC%d", rowIndex), 0)
 		}
 
-		f.SetCellValue(sheet, fmt.Sprintf("AH%d", rowIndex), img.OperationCycle) // 运营周期
+		f.SetCellValue(sheet, fmt.Sprintf("AD%d", rowIndex), img.OperationCycle) // 运营周期
 
 		// 商品单位体积
 		if img.ProductVolume != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("AI%d", rowIndex), *img.ProductVolume) // 商品单位体积
+			f.SetCellValue(sheet, fmt.Sprintf("AE%d", rowIndex), *img.ProductVolume) // 商品单位体积
 		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("AI%d", rowIndex), 0)
+			f.SetCellValue(sheet, fmt.Sprintf("AE%d", rowIndex), 0)
 		}
 
 		// 商品分类代码
 		// !!!! 商品分类代码哪个字段未明确
-		f.SetCellValue(sheet, fmt.Sprintf("AJ%d", rowIndex), typeCategory)       // 商品分类代码
-		f.SetCellValue(sheet, fmt.Sprintf("AK%d", rowIndex), productSeries)      // 产品系列
-		f.SetCellValue(sheet, fmt.Sprintf("AL%d", rowIndex), productSeriesName)  // 产品系列代码
-		f.SetCellValue(sheet, fmt.Sprintf("AM%d", rowIndex), productUsage)       // 产品用途
-		f.SetCellValue(sheet, fmt.Sprintf("AN%d", rowIndex), productUsageName)   // 产品用途代码
-		f.SetCellValue(sheet, fmt.Sprintf("AO%d", rowIndex), img.SampleNumber)   // 样品编号
-		f.SetCellValue(sheet, fmt.Sprintf("AP%d", rowIndex), img.CatalogNumber)  // 留样册号
-		f.SetCellValue(sheet, fmt.Sprintf("AQ%d", rowIndex), img.OriginalNumber) // 原命名编号
+		f.SetCellValue(sheet, fmt.Sprintf("AF%d", rowIndex), typeCategory)       // 商品分类代码
+		f.SetCellValue(sheet, fmt.Sprintf("AG%d", rowIndex), productSeries)      // 产品系列
+		f.SetCellValue(sheet, fmt.Sprintf("AH%d", rowIndex), productSeriesName)  // 产品系列代码
+		f.SetCellValue(sheet, fmt.Sprintf("AI%d", rowIndex), productUsage)       // 产品用途
+		f.SetCellValue(sheet, fmt.Sprintf("AJ%d", rowIndex), productUsageName)   // 产品用途代码
+		f.SetCellValue(sheet, fmt.Sprintf("AK%d", rowIndex), img.SampleNumber)   // 样品编号
+		f.SetCellValue(sheet, fmt.Sprintf("AL%d", rowIndex), img.CatalogNumber)  // 留样册号
+		f.SetCellValue(sheet, fmt.Sprintf("AM%d", rowIndex), img.OriginalNumber) // 原命名编号
 
 		// 底布克重
 		if img.BackingWeight != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("AR%d", rowIndex), *img.BackingWeight) // 底布克重
+			f.SetCellValue(sheet, fmt.Sprintf("AN%d", rowIndex), *img.BackingWeight) // 底布克重
 		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("AR%d", rowIndex), 0)
+			f.SetCellValue(sheet, fmt.Sprintf("AN%d", rowIndex), 0)
 		}
 
 		// 面布克重
 		if img.SurfaceWeight != nil {
-			f.SetCellValue(sheet, fmt.Sprintf("AS%d", rowIndex), *img.SurfaceWeight) // 面布克重
+			f.SetCellValue(sheet, fmt.Sprintf("AO%d", rowIndex), *img.SurfaceWeight) // 面布克重
 		} else {
-			f.SetCellValue(sheet, fmt.Sprintf("AS%d", rowIndex), 0)
+			f.SetCellValue(sheet, fmt.Sprintf("AO%d", rowIndex), 0)
 		}
 	}