|
@@ -2,6 +2,10 @@
|
|
|
* Created by Mai on 2017/6/21.
|
|
* Created by Mai on 2017/6/21.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
|
|
+const {
|
|
|
|
|
+ ValuationType: { BUDGET, BOQ },
|
|
|
|
|
+} = window.commonConstants;
|
|
|
|
|
+
|
|
|
var projectInfoObj = {
|
|
var projectInfoObj = {
|
|
|
// 头部同时编辑的用户头像
|
|
// 头部同时编辑的用户头像
|
|
|
handleAvatarList: function (users) {
|
|
handleAvatarList: function (users) {
|
|
@@ -74,10 +78,22 @@ var projectInfoObj = {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//打开预算项目时,右侧“清单规则”显示为“项目表”,打开工程量清单项目时,右侧“清单规则”显示为“清单范本”。
|
|
//打开预算项目时,右侧“清单规则”显示为“项目表”,打开工程量清单项目时,右侧“清单规则”显示为“清单范本”。
|
|
|
- $('#stdBillsGuidanceTab').text(data.property.valuationType === 'bill' ? '项目表' : '清单范本');
|
|
|
|
|
|
|
+ $('#stdBillsGuidanceTab').text(data.property.valuationType === BUDGET ? '项目表' : '清单范本');
|
|
|
//init decimal
|
|
//init decimal
|
|
|
setDecimal(decimalObj, data.property.decimal);
|
|
setDecimal(decimalObj, data.property.decimal);
|
|
|
billsQuanDecimal.datas = data.property.billsQuantityDecimal || [billsDecimalView.angleDecimal];
|
|
billsQuanDecimal.datas = data.property.billsQuantityDecimal || [billsDecimalView.angleDecimal];
|
|
|
|
|
+ // 工程量清单项目显示基本信息,预算项目不显示
|
|
|
|
|
+ if (data.property.valuationType === BUDGET) {
|
|
|
|
|
+ // 隐藏基本信息
|
|
|
|
|
+ $('#tab_poj-settings-basicInfo').removeClass('active');
|
|
|
|
|
+ $('#tab_poj-settings-basicInfo').hide();
|
|
|
|
|
+ $('#poj-settings-basicInfo').removeClass('show');
|
|
|
|
|
+ $('#poj-settings-basicInfo').removeClass('active');
|
|
|
|
|
+ // 显示工程特征
|
|
|
|
|
+ $('#tab_poj-settings-projFeature').addClass('active');
|
|
|
|
|
+ $('#poj-settings-projFeature').addClass('show');
|
|
|
|
|
+ $('#poj-settings-projFeature').addClass('active');
|
|
|
|
|
+ }
|
|
|
basicInfoView.orgDatas = data.property.basicInformation ? basicInfoView.toViewDatas(data.property.basicInformation) : [];
|
|
basicInfoView.orgDatas = data.property.basicInformation ? basicInfoView.toViewDatas(data.property.basicInformation) : [];
|
|
|
projFeatureView.orgDatas = data.property.projectFeature ? projFeatureView.toViewDatas(data.property.projectFeature) : [];
|
|
projFeatureView.orgDatas = data.property.projectFeature ? projFeatureView.toViewDatas(data.property.projectFeature) : [];
|
|
|
$('#fullpath').html(this.getFullPathHtml(data));
|
|
$('#fullpath').html(this.getFullPathHtml(data));
|
|
@@ -88,7 +104,7 @@ var projectInfoObj = {
|
|
|
});
|
|
});
|
|
|
SHARE_TO.handleEventListener();
|
|
SHARE_TO.handleEventListener();
|
|
|
$("[data-toggle='tooltip']").tooltip();
|
|
$("[data-toggle='tooltip']").tooltip();
|
|
|
- if (data.property.valuationType == 'bill') {
|
|
|
|
|
|
|
+ if (data.property.valuationType == BUDGET) {
|
|
|
$("#tab_tender_price").css('display', 'none');
|
|
$("#tab_tender_price").css('display', 'none');
|
|
|
} else {
|
|
} else {
|
|
|
$("#about-calc").css('display', 'none');
|
|
$("#about-calc").css('display', 'none');
|