根据excle创建标品
This commit is contained in:
@@ -1947,6 +1947,8 @@ func CreateUpcSkuByExcelBin(ctx *jxcontext.Context, reader io.Reader) (hint stri
|
||||
} else {
|
||||
skuName.Price = v.Price * 100
|
||||
}
|
||||
skuName.Name = productInfo.Name
|
||||
skuName.Unit = productInfo.Unit
|
||||
skuName.Skus[0].SpecQuality = productInfo.SpecQuality
|
||||
skuName.Skus[0].SpecUnit = productInfo.SpecUnit
|
||||
skuName.Skus[0].Weight = int(utils.Str2Int64(utils.Float64ToStr(float64(productInfo.Weight))))
|
||||
|
||||
@@ -63,6 +63,7 @@ var (
|
||||
"片",
|
||||
"支",
|
||||
"杯",
|
||||
"桶",
|
||||
}
|
||||
SkuNamePrefixNames = []string{
|
||||
"新鲜",
|
||||
|
||||
Reference in New Issue
Block a user