|
@@ -11,7 +11,7 @@ import numpy as np
|
|
|
|
|
|
|
|
def getDingercj_default(root, bh, bt, qdbm, debm, key):
|
|
def getDingercj_default(root, bh, bt, qdbm, debm, key):
|
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
|
- "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "隐藏", "key" ]]
|
|
|
|
|
|
|
+ "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "隐藏", "key", "bc" ]]
|
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
|
item = None
|
|
item = None
|
|
|
for child in root:
|
|
for child in root:
|
|
@@ -68,7 +68,7 @@ def getDingercj_default(root, bh, bt, qdbm, debm, key):
|
|
|
kv[child.attrib["RcjId"]].attrib["Rcjlb"],
|
|
kv[child.attrib["RcjId"]].attrib["Rcjlb"],
|
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
|
- kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"], kv[child.attrib["RcjId"]].attrib["Sbbz"], ""
|
|
|
|
|
|
|
+ kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"], kv[child.attrib["RcjId"]].attrib["Sbbz"], "", ""
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
return result
|
|
return result
|
|
@@ -76,7 +76,7 @@ def getDingercj_(root, bh, bt, qdbm, debm, key):
|
|
|
if bt == 'Default':
|
|
if bt == 'Default':
|
|
|
return getDingercj_default(root, bh, bt, qdbm, debm, key)
|
|
return getDingercj_default(root, bh, bt, qdbm, debm, key)
|
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
|
- "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "key" ]]
|
|
|
|
|
|
|
+ "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "key", "bc" ]]
|
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
|
item = None
|
|
item = None
|
|
|
for child in root:
|
|
for child in root:
|
|
@@ -145,7 +145,7 @@ def getDingercj_(root, bh, bt, qdbm, debm, key):
|
|
|
kv[child.attrib["RcjId"]].attrib["Rcjlb"],
|
|
kv[child.attrib["RcjId"]].attrib["Rcjlb"],
|
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
|
- kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"], kv[child.attrib["RcjId"]].attrib["Sbbz"], ""
|
|
|
|
|
|
|
+ kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"], kv[child.attrib["RcjId"]].attrib["Sbbz"], "", ""
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
return result
|
|
return result
|
|
@@ -287,7 +287,7 @@ def getQingdanrcj_(root, bh, bt, bm):
|
|
|
|
|
|
|
|
def getDjcsDingercj_(root, bh, bt, qdbm, debm, key):
|
|
def getDjcsDingercj_(root, bh, bt, qdbm, debm, key):
|
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
result = [["ID", "人材机编码", "名称", "规格型号", "单位", "单价", "产地",
|
|
|
- "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "key" ]]
|
|
|
|
|
|
|
+ "供应厂商", "人材机类别", "甲供标志", "含量", "合价", "暂估价标志", "主要材料标志", "主材标志", "设备标志", "key", "bc" ]]
|
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
#result.append(["ming cheng", "jin e", "zan gu jia", "anquan wenming fei", "guifei"])
|
|
|
item = None
|
|
item = None
|
|
|
for child in root:
|
|
for child in root:
|
|
@@ -349,7 +349,7 @@ def getDjcsDingercj_(root, bh, bt, qdbm, debm, key):
|
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
kv[child.attrib["RcjId"]].attrib["Jgbz"],
|
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
child.attrib["Rcjhl"], child.attrib["Rcjhj"], kv[child.attrib["RcjId"]].attrib["Zgjbz"],
|
|
|
kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"],
|
|
kv[child.attrib["RcjId"]].attrib["Zyclbz"], kv[child.attrib["RcjId"]].attrib["Zcbz"],
|
|
|
- kv[child.attrib["RcjId"]].attrib["Sbbz"], ""
|
|
|
|
|
|
|
+ kv[child.attrib["RcjId"]].attrib["Sbbz"], "", ""
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
return result
|
|
return result
|