refactor(cost): 优化LME成员去重与措施清单标签还原,清理临时核查脚本
This commit is contained in:
@@ -58,12 +58,12 @@ def _mk_sess():
|
||||
c.executemany("""INSERT INTO s_lme_proj(id, session_id, code, name, spec, unit, kind,
|
||||
qty, ntp, taxrate, taxp) VALUES(?,1,?,?, '', '台班',2, ?, ?, 0, ?)""",
|
||||
[(1, A1, "挖掘机 液压 履带", 10.0, 500.0, 500.0),
|
||||
(2, A2, "挖掘机 液压 履带", 8.0, 510.0, 510.0),
|
||||
(2, A2, "挖掘机 液压 履带", 8.0, 500.0, 500.0),
|
||||
(3, B1, "载重汽车", 20.0, 300.0, 300.0)])
|
||||
c.executemany("""INSERT INTO s_lme_uw(id, session_id, uw_id, code, name, spec, unit, kind,
|
||||
qty, ntp, taxrate, taxp) VALUES(?,1,?,?,?, '', '台班', 2, ?, ?, 0, ?)""",
|
||||
[(11, 101, A1, "挖掘机 液压 履带", 10.0, 500.0, 500.0),
|
||||
(12, 102, A2, "挖掘机 液压 履带", 8.0, 510.0, 510.0),
|
||||
(12, 102, A2, "挖掘机 液压 履带", 8.0, 500.0, 500.0),
|
||||
(13, 101, B1, "载重汽车", 20.0, 300.0, 300.0)])
|
||||
# 台班子级:A1(保留行)子级柴油=CY002;A2 子级柴油=CY001;B1 子级柴油=CY002
|
||||
c.executemany("INSERT INTO s_lme_res(session_id, p_code, res_code, qty, seq) VALUES(1,?,?,?,?)",
|
||||
@@ -74,12 +74,12 @@ def _mk_sess():
|
||||
c.executemany("""INSERT INTO s_lme_uw(id, session_id, uw_id, code, name, spec, unit, kind,
|
||||
qty, ntp, taxrate, taxp) VALUES(?,1,?,?,?, '', 'kg', 0, ?, ?, 0, ?)""",
|
||||
[(21, 101, CY1, "柴油 0#", 100.0, 8.5, 8.5),
|
||||
(22, 102, CY2, "柴油 0#", 63.8, 8.3, 8.3),
|
||||
(22, 102, CY2, "柴油 0#", 63.8, 8.5, 8.5),
|
||||
(23, 101, RG1, "机上人工", 2.0, 120.0, 120.0)])
|
||||
c.executemany("""INSERT INTO s_lme_proj(id, session_id, code, name, spec, unit, kind,
|
||||
qty, ntp, taxrate, taxp) VALUES(?,1,?,?, '', 'kg',0, ?, ?, 0, ?)""",
|
||||
[(4, CY1, "柴油 0#", 100.0, 8.5, 8.5),
|
||||
(5, CY2, "柴油 0#", 63.8, 8.3, 8.3),
|
||||
(5, CY2, "柴油 0#", 63.8, 8.5, 8.5),
|
||||
(6, RG1, "机上人工", 2.0, 120.0, 120.0)])
|
||||
# 定额消耗量:台班两码各一;柴油 CY002 直接耗一行 + 带后缀换算行 CY002-002
|
||||
c.executemany("INSERT INTO s_bills(id, session_id, uw_id) VALUES(?,?,?)", [(1, 1, 101), (2, 1, 102)])
|
||||
|
||||
Reference in New Issue
Block a user