|
@@ -14,7 +14,6 @@ let doAfterLoadGuidance = null;
|
|
|
const billsGuidance = (function () {
|
|
const billsGuidance = (function () {
|
|
|
//更新类型
|
|
//更新类型
|
|
|
const updateType = {update: 'update', create: 'create'};
|
|
const updateType = {update: 'update', create: 'create'};
|
|
|
- let currentLib = null;
|
|
|
|
|
//库类型
|
|
//库类型
|
|
|
const libType = {'guidance': 1, 'elf': 2}; //清单指引、清单精灵
|
|
const libType = {'guidance': 1, 'elf': 2}; //清单指引、清单精灵
|
|
|
const libSel = $('#stdBillsGuidanceLibSelect');
|
|
const libSel = $('#stdBillsGuidanceLibSelect');
|
|
@@ -920,13 +919,12 @@ const billsGuidance = (function () {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- //初始选择清单指引库
|
|
|
|
|
|
|
+ //初始选择标准清单
|
|
|
//@param {Number}libID @return {void}
|
|
//@param {Number}libID @return {void}
|
|
|
function libInitSel(libID){
|
|
function libInitSel(libID){
|
|
|
//获取清单
|
|
//获取清单
|
|
|
$.bootstrapLoading.start();
|
|
$.bootstrapLoading.start();
|
|
|
CommonAjax.post('/billsGuidance/api/getLibWithBills', {libID: libID}, function(rstData){
|
|
CommonAjax.post('/billsGuidance/api/getLibWithBills', {libID: libID}, function(rstData){
|
|
|
- currentLib = rstData.guidanceLib;
|
|
|
|
|
if(guideItem.workBook){
|
|
if(guideItem.workBook){
|
|
|
guideItem.workBook.destroy();
|
|
guideItem.workBook.destroy();
|
|
|
guideItem.workBook = null;
|
|
guideItem.workBook = null;
|
|
@@ -944,7 +942,7 @@ const billsGuidance = (function () {
|
|
|
$.bootstrapLoading.end();
|
|
$.bootstrapLoading.end();
|
|
|
};
|
|
};
|
|
|
//获取清单库中的工作内容和项目特征
|
|
//获取清单库中的工作内容和项目特征
|
|
|
- initJobAndCharacter(rstData.guidanceLib.billsLibId, callback);
|
|
|
|
|
|
|
+ initJobAndCharacter(libID, callback);
|
|
|
}, function () {
|
|
}, function () {
|
|
|
$.bootstrapLoading.end();
|
|
$.bootstrapLoading.end();
|
|
|
});
|
|
});
|
|
@@ -977,12 +975,7 @@ const billsGuidance = (function () {
|
|
|
$('#billsGuidance_items').height(height / 2);
|
|
$('#billsGuidance_items').height(height / 2);
|
|
|
}
|
|
}
|
|
|
let modules = [bills];
|
|
let modules = [bills];
|
|
|
- if(currentLib.type && currentLib.type === libType.elf){
|
|
|
|
|
- modules.push(elfItem);
|
|
|
|
|
- }
|
|
|
|
|
- else {
|
|
|
|
|
- modules.push(guideItem);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ modules.push(elfItem);
|
|
|
initWorkBooks(modules);
|
|
initWorkBooks(modules);
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -1013,7 +1006,7 @@ const billsGuidance = (function () {
|
|
|
//打开清单指引库
|
|
//打开清单指引库
|
|
|
$('#stdBillsGuidanceTab').click(function () {
|
|
$('#stdBillsGuidanceTab').click(function () {
|
|
|
if(libSel.children().length === 0 && !$(this).hasClass('disabled')){
|
|
if(libSel.children().length === 0 && !$(this).hasClass('disabled')){
|
|
|
- initLibs(projectInfoObj.projectInfo.engineeringInfo.billsGuidance_lib);
|
|
|
|
|
|
|
+ initLibs(projectInfoObj.projectInfo.engineeringInfo.bill_lib);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
//更改清单指引库
|
|
//更改清单指引库
|