|
@@ -50,13 +50,28 @@ let selectFBObject = {
|
|
|
|
|
|
showData:function(){
|
|
|
let budgetType = projectObj.project.property.budgetType||commonConstants.BudgetType.BUILDING;
|
|
|
- this.showRationTree();
|
|
|
+ this.showBillLibTree();
|
|
|
+ //this.showRationTree();
|
|
|
/* if(budgetType===commonConstants.BudgetType.BUILDING){//建筑安装工程显示清单树 显示定额章节树
|
|
|
this.showRationTree();
|
|
|
}else{//城市轨道交通工程 显示分部
|
|
|
this.showBillTree();
|
|
|
} */
|
|
|
},
|
|
|
+ showBillLibTree:async function(){
|
|
|
+ const libs = projectObj.project.projectInfo.engineeringInfo.bill_lib;
|
|
|
+ if(!this.billLibTree){
|
|
|
+ $.bootstrapLoading.start();
|
|
|
+ let data = await ajaxPost('/billsGuidance/api/getLibWithBills', {libID: libs[0].id, isGuidanceLib: false});
|
|
|
+ this.billLibTree = idTree.createNew({id: 'ID', pid: 'ParentID', nid: 'NextSiblingID', rootId: -1, autoUpdate: false});
|
|
|
+ this.billLibTree.loadDatas(data.bills);
|
|
|
+ $.bootstrapLoading.end();
|
|
|
+ }
|
|
|
+
|
|
|
+ this.showTreeData(this.billLibTree.roots);
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
showRationTree:async function(){
|
|
|
let rationLibID = rationLibObj.getDefaultStdRationLibID();
|
|
|
if(!this.rationChapterTree){
|