|
@@ -320,10 +320,13 @@ let MainTreeCol = {
|
|
/* if(+$('#fileKind').val() === _fileKind.tender) {
|
|
/* if(+$('#fileKind').val() === _fileKind.tender) {
|
|
return true;
|
|
return true;
|
|
} */
|
|
} */
|
|
- return projectObj.project.projectInfo.importedByInterface || node.data.outPutMaxPrice === false || node.data.outPutLimitPrice === false;
|
|
|
|
|
|
+ const hasOutPutMaxPriceCol = !!projectObj.project.projSetting.main_tree_col.cols.find(item => item.data.field === 'outPutMaxPrice');
|
|
|
|
+ const hasOutPutLitmitPriceCol = !!projectObj.project.projSetting.main_tree_col.cols.find(item => item.data.field === 'outPutLitmitPrice');
|
|
|
|
+ return projectObj.project.projectInfo.importedByInterface || (hasOutPutMaxPriceCol && (node.data.outPutMaxPrice === undefined || node.data.outPutMaxPrice === false)) || (hasOutPutLitmitPriceCol && (node.data.outPutLimitPrice === undefined || node.data.outPutLimitPrice === false));
|
|
},
|
|
},
|
|
minPrice: function (node) {
|
|
minPrice: function (node) {
|
|
- return projectObj.project.projectInfo.importedByInterface || node.data.outPutLimitPrice === false;
|
|
|
|
|
|
+ const hasOutPutLitmitPriceCol = !!projectObj.project.projSetting.main_tree_col.cols.find(item => item.data.field === 'outPutLitmitPrice');
|
|
|
|
+ return projectObj.project.projectInfo.importedByInterface || (hasOutPutLitmitPriceCol && (node.data.outPutLimitPrice === undefined || node.data.outPutLimitPrice === false));
|
|
},
|
|
},
|
|
// 超高降效
|
|
// 超高降效
|
|
forOverHeight: function (node) {
|
|
forOverHeight: function (node) {
|