Merge branch 'master' of https://git.suwa3d.com/dongchangxi/make2
This commit is contained in:
commit
587eb4bbcc
2 files changed
+22
-11
No files matched your search
+22
-11
@@ -80,16 +80,26 @@ def main(action, pid, sizes,orderId=0):
|
|||||||
df = pd.read_excel(excel_file)
|
df = pd.read_excel(excel_file)
|
||||||
new_data = {
|
new_data = {
|
||||||
'pid': [pid], # 假设新的 pid 是 '002'
|
'pid': [pid], # 假设新的 pid 是 '002'
|
||||||
'1/4': [0], # 新的 6cm 数据
|
'1/4尺寸': [0],
|
||||||
'1/6': [0], # 新的 7cm 数据
|
'1/4': [0],
|
||||||
'1/10': [0], # 新的 8cm 数据
|
'1/6尺寸': [0],
|
||||||
'1/12': [0], # 新的 8cm 数据
|
'1/6': [0],
|
||||||
'1/16': [0], # 新的 8cm 数据
|
'1/10尺寸': [0],
|
||||||
'1/18': [0], # 新的 8cm 数据
|
'1/10': [0],
|
||||||
'1/24': [0], # 新的 8cm 数据
|
'1/12尺寸': [0],
|
||||||
'1/32': [0], # 新的 8cm 数据
|
'1/12': [0],
|
||||||
'1/43': [0], # 新的 8cm 数据
|
'1/16尺寸': [0],
|
||||||
'1/64': [0], # 新的 8cm 数据
|
'1/16': [0],
|
||||||
|
'1/18尺寸': [0],
|
||||||
|
'1/18': [0],
|
||||||
|
'1/24尺寸': [0],
|
||||||
|
'1/24': [0],
|
||||||
|
'1/32尺寸': [0],
|
||||||
|
'1/32': [0],
|
||||||
|
'1/43尺寸': [0],
|
||||||
|
'1/43': [0],
|
||||||
|
'1/64尺寸': [0],
|
||||||
|
'1/64': [0],
|
||||||
}
|
}
|
||||||
|
|
||||||
for sizeV in sizes:
|
for sizeV in sizes:
|
||||||
@@ -100,7 +110,8 @@ def main(action, pid, sizes,orderId=0):
|
|||||||
arrData[arrSize[1]] = str(weight)+"g"
|
arrData[arrSize[1]] = str(weight)+"g"
|
||||||
|
|
||||||
if arrSize[1] in df.columns:
|
if arrSize[1] in df.columns:
|
||||||
new_data[arrSize[1]] = [str(weight) + "("+str(size)+"cm)"]
|
new_data[arrSize[1]+"尺寸"] = [str(size/10)+"cm"]
|
||||||
|
new_data[arrSize[1]] = [str(weight)]
|
||||||
|
|
||||||
# 更新数据
|
# 更新数据
|
||||||
# 将新数据转换为 DataFrame
|
# 将新数据转换为 DataFrame
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user