baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
import pandas as pd
|
||||
|
||||
kd = pd.read_excel('物料清单正查_1.xlsx', sheet_name='树形单据体')
|
||||
kd = kd[kd['子项物料编码'].notna()].copy()
|
||||
kd['code'] = kd['子项物料编码'].astype(str).str.strip()
|
||||
kd['level'] = kd['BOM层级'].astype(str).str.strip()
|
||||
kd['name'] = kd['物料名称'].astype(str).str.strip()
|
||||
|
||||
print("=== 第一行(根产品)===")
|
||||
print(kd.iloc[0].to_string())
|
||||
|
||||
print(f"\n总条数(含根): {len(kd)}")
|
||||
print(f"子项条数(不含根): {len(kd) - 1}")
|
||||
|
||||
print("\n=== BOM版本列唯一值 ===")
|
||||
if 'BOM版本' in kd.columns:
|
||||
print(kd['BOM版本'].dropna().unique())
|
||||
|
||||
from collections import Counter
|
||||
print("\n=== 层级分布 ===")
|
||||
for lv, cnt in Counter(kd['level']).most_common():
|
||||
print(f" 层级 {lv}: {cnt} 条")
|
||||
Reference in new issue
Block a user