|
@@ -459,7 +459,66 @@ async def delete(r: Info):
|
|
|
@app.post("/des/")
|
|
@app.post("/des/")
|
|
|
async def read_des(r: DingeshuRequest):
|
|
async def read_des(r: DingeshuRequest):
|
|
|
result = service.getDes(r.value)
|
|
result = service.getDes(r.value)
|
|
|
- #print(result)
|
|
|
|
|
|
|
+ if r.value == 30:
|
|
|
|
|
+ result.append({
|
|
|
|
|
+ "id": "2075",
|
|
|
|
|
+ "key" : "2075",
|
|
|
|
|
+ "value" : "2075",
|
|
|
|
|
+ "label" : "安装费用",
|
|
|
|
|
+ "title" : "安装费用",
|
|
|
|
|
+ "children" : [
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2076",
|
|
|
|
|
+ "key" : "2076",
|
|
|
|
|
+ "value" : "2076",
|
|
|
|
|
+ "label" : "脚手架搭拆费",
|
|
|
|
|
+ "title" : "脚手架搭拆费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2077",
|
|
|
|
|
+ "key" : "2077",
|
|
|
|
|
+ "value" : "2077",
|
|
|
|
|
+ "label" : "施工超高增加费",
|
|
|
|
|
+ "title" : "施工超高增加费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2078",
|
|
|
|
|
+ "key" : "2078",
|
|
|
|
|
+ "value" : "2078",
|
|
|
|
|
+ "label" : "安装生产同时增加费",
|
|
|
|
|
+ "title" : "安装生产同时增加费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2079",
|
|
|
|
|
+ "key" : "2079",
|
|
|
|
|
+ "value" : "2079",
|
|
|
|
|
+ "label" : "有害环境操作增加费",
|
|
|
|
|
+ "title" : "有害环境操作增加费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2080",
|
|
|
|
|
+ "key" : "2080",
|
|
|
|
|
+ "value" : "2080",
|
|
|
|
|
+ "label" : "高层建筑增加费",
|
|
|
|
|
+ "title" : "高层建筑增加费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ "id": "2081",
|
|
|
|
|
+ "key" : "2081",
|
|
|
|
|
+ "value" : "2081",
|
|
|
|
|
+ "label" : "系统调试费",
|
|
|
|
|
+ "title" : "系统调试费",
|
|
|
|
|
+ "children" : []
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ ]
|
|
|
|
|
+
|
|
|
|
|
+ })
|
|
|
return result
|
|
return result
|
|
|
|
|
|
|
|
@app.post("/pbs/")
|
|
@app.post("/pbs/")
|
|
@@ -487,6 +546,8 @@ async def read_qufei(r: Info):
|
|
|
|
|
|
|
|
@app.post("/dexilie/")
|
|
@app.post("/dexilie/")
|
|
|
async def read_dexilie(r: DingeXilieRequest):
|
|
async def read_dexilie(r: DingeXilieRequest):
|
|
|
|
|
+ if r.value == 30 and int(r.id) > 2074:
|
|
|
|
|
+ return service.getDeXilie_azfy(r.value, r.id)
|
|
|
result = service.getDeXilie(r.value, r.id)
|
|
result = service.getDeXilie(r.value, r.id)
|
|
|
#print(result)
|
|
#print(result)
|
|
|
return result
|
|
return result
|
|
@@ -503,8 +564,10 @@ async def read_singledexilie(r: SingleDingeXilieRequest):
|
|
|
"bz_selected": {"BZBH": {}},
|
|
"bz_selected": {"BZBH": {}},
|
|
|
"bz_selected2": {"BZBH": {}}
|
|
"bz_selected2": {"BZBH": {}}
|
|
|
}, ensure_ascii=False)
|
|
}, ensure_ascii=False)
|
|
|
-
|
|
|
|
|
- result1, result2, rgde, jxde, clde, bz_selected, bz_selected2, actual_zhuanye= service.getSingleDeXilie(r.zhuanye, r.debh)
|
|
|
|
|
|
|
+ if "-F" in r.debh:
|
|
|
|
|
+ return service.read_singledexilie_azfy(r.debh)
|
|
|
|
|
+ r_debh = r.debh.split("#")[0]
|
|
|
|
|
+ result1, result2, rgde, jxde, clde, bz_selected, bz_selected2, actual_zhuanye= service.getSingleDeXilie(r.zhuanye, r_debh)
|
|
|
print("get result ***************************************")
|
|
print("get result ***************************************")
|
|
|
if result1:
|
|
if result1:
|
|
|
result3 = json.loads(result1)
|
|
result3 = json.loads(result1)
|
|
@@ -523,13 +586,13 @@ async def read_singledexilie(r: SingleDingeXilieRequest):
|
|
|
result3["bz_selected2"] = json.loads(bz_selected2)
|
|
result3["bz_selected2"] = json.loads(bz_selected2)
|
|
|
else:
|
|
else:
|
|
|
result3["bz_selected2"] = {"BZBH": {}}
|
|
result3["bz_selected2"] = {"BZBH": {}}
|
|
|
- if "[" in r.debh:
|
|
|
|
|
- position3 = r.debh.find("*")
|
|
|
|
|
|
|
+ if "[" in r_debh:
|
|
|
|
|
+ position3 = r_debh.find("*")
|
|
|
coef = 1
|
|
coef = 1
|
|
|
if position3 == -1:
|
|
if position3 == -1:
|
|
|
pass
|
|
pass
|
|
|
else:
|
|
else:
|
|
|
- coef = r.debh[1 + position3:]
|
|
|
|
|
|
|
+ coef = r_debh[1 + position3:]
|
|
|
print(coef)
|
|
print(coef)
|
|
|
tail = 0
|
|
tail = 0
|
|
|
for i in range(0, len(coef) + 1):
|
|
for i in range(0, len(coef) + 1):
|
|
@@ -545,21 +608,21 @@ async def read_singledexilie(r: SingleDingeXilieRequest):
|
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
|
coef = int(coef[0:tail])
|
|
coef = int(coef[0:tail])
|
|
|
|
|
|
|
|
- position1 = r.debh.find("[")
|
|
|
|
|
- position2 = r.debh.find("]")
|
|
|
|
|
|
|
+ position1 = r_debh.find("[")
|
|
|
|
|
+ position2 = r_debh.find("]")
|
|
|
if position2 == -1:
|
|
if position2 == -1:
|
|
|
print("1121111")
|
|
print("1121111")
|
|
|
result3["reverse"] = 'None'
|
|
result3["reverse"] = 'None'
|
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
|
- if r.debh[position1-1] == "+":
|
|
|
|
|
|
|
+ if r_debh[position1-1] == "+":
|
|
|
pass
|
|
pass
|
|
|
- elif r.debh[position1-1] == "-":
|
|
|
|
|
|
|
+ elif r_debh[position1-1] == "-":
|
|
|
coef = -coef
|
|
coef = -coef
|
|
|
else:
|
|
else:
|
|
|
print("111111")
|
|
print("111111")
|
|
|
result3["reverse"] = 'None'
|
|
result3["reverse"] = 'None'
|
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
return json.dumps(result3, ensure_ascii=False)
|
|
|
- debh = r.debh[position1+1: position2]
|
|
|
|
|
|
|
+ debh = r_debh[position1+1: position2]
|
|
|
if result3['GLDE']: ##csv文件里的字段,表示这个定额有没有配套的增减定额
|
|
if result3['GLDE']: ##csv文件里的字段,表示这个定额有没有配套的增减定额
|
|
|
hit = False
|
|
hit = False
|
|
|
for key, value in result3['GLDE'].items():
|
|
for key, value in result3['GLDE'].items():
|
|
@@ -582,7 +645,7 @@ async def read_singledexilie(r: SingleDingeXilieRequest):
|
|
|
item_ = None
|
|
item_ = None
|
|
|
for item in result3['DW'].keys():
|
|
for item in result3['DW'].keys():
|
|
|
item_ = item
|
|
item_ = item
|
|
|
- result3['DEBH'] = {item_: util.cleanBM(r.debh)}
|
|
|
|
|
|
|
+ result3['DEBH'] = {item_: util.cleanBM(r_debh)}
|
|
|
else:
|
|
else:
|
|
|
result3["reverse"] = 'None'
|
|
result3["reverse"] = 'None'
|
|
|
|
|
|