baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
import pandas as pd
|
||||
|
||||
kd = pd.read_excel('物料清单正查_.xlsx', sheet_name='树形单据体')
|
||||
kd = kd[kd['子项物料编码'].notna()].copy()
|
||||
kd['code'] = kd['子项物料编码'].astype(str).str.strip()
|
||||
kd['level'] = kd['BOM层级'].astype(str).str.strip()
|
||||
|
||||
# 第一行(根产品)
|
||||
print("=== 金蝶xlsx 第一行(根产品)===")
|
||||
print(kd.iloc[0].to_string())
|
||||
|
||||
# 所有出现 CG0S175 或 CG0S170 的行
|
||||
print("\n=== 含 CG0S175 / CG0S170 的行 ===")
|
||||
mask = kd['code'].str.contains('CG0S17', na=False)
|
||||
for _, r in kd[mask].iterrows():
|
||||
print(f" 层级={r['level']} | 编码={r['code']} | 名称={r['物料名称']}")
|
||||
|
||||
# BOM版本列
|
||||
print("\n=== BOM版本列 唯一值 ===")
|
||||
if 'BOM版本' in kd.columns:
|
||||
print(kd['BOM版本'].dropna().unique())
|
||||
Reference in new issue
Block a user