|
@@ -4,6 +4,7 @@
|
|
|
let projectGljObject = {
|
|
|
showTag: 'ration', //mixRatio/machine
|
|
|
showMixRatioMark: '',
|
|
|
+ commonInfoPriceID:'',
|
|
|
displayType: filterType.ALL,
|
|
|
mixRatioType: [gljType.CONCRETE, gljType.MORTAR, gljType.MIX_RATIO, gljType.MAIN_MATERIAL],
|
|
|
machineType: [gljType.GENERAL_MACHINE],
|
|
@@ -1635,6 +1636,7 @@ let projectGljObject = {
|
|
|
for (let o of opts) {
|
|
|
if (isArea == true) {
|
|
|
str += `<option value="${o.ID}">${o.name}</option>`
|
|
|
+ if (o.name == "通用") this.commonInfoPriceID = o.ID;
|
|
|
} else {
|
|
|
str += `<option value="${o}">${o}</option>`
|
|
|
}
|
|
@@ -1670,6 +1672,7 @@ let projectGljObject = {
|
|
|
period: year + "-" + month,
|
|
|
areaID: areaID
|
|
|
}
|
|
|
+ if (projectGljObject.addCommonInfoPriceID) projectGljObject.addCommonInfoPriceID(condition);
|
|
|
let data = {
|
|
|
condition: condition
|
|
|
};
|
|
@@ -1745,6 +1748,10 @@ let projectGljObject = {
|
|
|
getInfoMarketPrice: function (info) {
|
|
|
let taxType = projectObj.project.property.taxType; //1: 一般计税 2: 简易计税
|
|
|
return gljUtil.getInfoMarketPrice(info, taxType);
|
|
|
+ },
|
|
|
+ refreshInfoPrice: function () {
|
|
|
+ $('#info_price_sheet').height($("#mix_ratio_sheet").height() - $("#infoToolDiv").height()-10);
|
|
|
+ projectGljObject.initInfoPriceSpread();
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -1805,8 +1812,6 @@ function loadProjectGljSize() {
|
|
|
//信息价相关
|
|
|
$('#info_price_sheet').height($("#mix_ratio_sheet").height() - $("#infoToolDiv").height());
|
|
|
if ($('#info_price_sheet').is(':visible')) me.initInfoPriceSpread();
|
|
|
-
|
|
|
-
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -1863,6 +1868,7 @@ $(function () {
|
|
|
SlideResize.verticalSlide(pojGljResizeEles.eleObj, pojGljResizeEles.limit, function () {
|
|
|
projectGljObject.projectGljSpread.refresh();
|
|
|
projectGljObject.mixRatioSpread ? projectGljObject.mixRatioSpread.refresh() : '';
|
|
|
+ projectGljObject.refreshInfoPrice();
|
|
|
});
|
|
|
|
|
|
let tr = getConficMaterialResizeEles();
|
|
@@ -2127,8 +2133,7 @@ $(function () {
|
|
|
projectGljObject.showRelatedRationDatas();
|
|
|
});
|
|
|
$("#info-nav").on('shown.bs.tab', function () {
|
|
|
- $('#info_price_sheet').height($("#mix_ratio_sheet").height() - $("#infoToolDiv").height());
|
|
|
- projectGljObject.initInfoPriceSpread();
|
|
|
+ projectGljObject.refreshInfoPrice();
|
|
|
projectGljObject.autoShowInfoPriceData();
|
|
|
});
|
|
|
$('#info_year').change(function () {
|