|
@@ -108,11 +108,26 @@ let zTreeOprObj = {
|
|
|
params.engineerId = projectObj.project.projectInfo.property.engineering;
|
|
|
let private_chk_hide = function (chkTplItem) {
|
|
|
//考虑未来拓展,统一在此判断报表模板是否显示
|
|
|
+ //*
|
|
|
let rst = false;
|
|
|
if (chkTplItem.hasOwnProperty('flags') && chkTplItem.flags.hasOwnProperty('taxType') && chkTplItem.flags['taxType'] !== null &&
|
|
|
parseInt(chkTplItem.flags['taxType']) !== parseInt(projectObj.project.projectInfo.property.taxType)) {
|
|
|
rst = true;
|
|
|
}
|
|
|
+ /*/
|
|
|
+ let rst = true; //这里是概算的判断初始条件,默认是要remove的,只有符合条件的模板才保留
|
|
|
+ if (chkTplItem.hasOwnProperty('userId') || chkTplItem.nodeType === 1) {
|
|
|
+ rst = false; //顶节点或目录
|
|
|
+ } else {
|
|
|
+ if (chkTplItem.hasOwnProperty('flags') && chkTplItem.flags.hasOwnProperty('budgetType') && chkTplItem.flags['budgetType'] !== null &&
|
|
|
+ parseInt(chkTplItem.flags['budgetType']) === parseInt(projectObj.project.projectInfo.property.budgetType)) {
|
|
|
+ rst = false;
|
|
|
+ }
|
|
|
+ if (!rst) {
|
|
|
+ //已经是概算,再进行其他条件判断(如果需要)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //*/
|
|
|
return rst;
|
|
|
};
|
|
|
// projectObj.project.projectInfo.property.taxType === 1 //1: 一般计税 2: 简易计税
|