|
@@ -2604,8 +2604,8 @@ function initProjectOptSet($target) {
|
|
|
` : ``
|
|
` : ``
|
|
|
}
|
|
}
|
|
|
${(COMPILATION_NAME !== '内蒙古高速公路日常养护估算(2021)' && COMPILATION_NAME !== '四川养护(2013)') ? `
|
|
${(COMPILATION_NAME !== '内蒙古高速公路日常养护估算(2021)' && COMPILATION_NAME !== '四川养护(2013)') ? `
|
|
|
- ${_getOptionDivDomStr(BUDGET, "valuation-type", "预算", "type-budget", !COMPILATION_NAME.includes('公路造价'))}
|
|
|
|
|
- ${_getOptionDivDomStr(BOQ, "valuation-type", "工程量清单", "type-boq", false)}
|
|
|
|
|
|
|
+ ${ !COMPILATION_NAME.includes('部颁2018计价标准') ? _getOptionDivDomStr(BUDGET, "valuation-type", "预算", "type-budget", !COMPILATION_NAME.includes('公路造价')) : '' }
|
|
|
|
|
+ ${_getOptionDivDomStr(BOQ, "valuation-type", "工程量清单", "type-boq", COMPILATION_NAME.includes('部颁2018计价标准'))}
|
|
|
` : ``
|
|
` : ``
|
|
|
}
|
|
}
|
|
|
</div>
|
|
</div>
|
|
@@ -2622,12 +2622,19 @@ function initProjectOptSet($target) {
|
|
|
$target.append($(html));
|
|
$target.append($(html));
|
|
|
$('input[name="valuation-type"]').on('change', function () {
|
|
$('input[name="valuation-type"]').on('change', function () {
|
|
|
const valuationType = $(this).val();
|
|
const valuationType = $(this).val();
|
|
|
- // 当项目类型是“工程量清单”时,清单类型可见可选
|
|
|
|
|
- changeValuationType(valuationType);
|
|
|
|
|
- valuationType === BOQ
|
|
|
|
|
- ? $('#boq-type').removeClass('hide-area')
|
|
|
|
|
- : $('#boq-type').addClass('hide-area');
|
|
|
|
|
|
|
+ onChangeValuationType(valuationType);
|
|
|
});
|
|
});
|
|
|
|
|
+ if (COMPILATION_NAME.includes('部颁2018计价标准')) {
|
|
|
|
|
+ onChangeValuationType($('input[name="valuation-type"]').val());
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function onChangeValuationType(valuationType) {
|
|
|
|
|
+ // 当项目类型是“工程量清单”时,清单类型可见可选
|
|
|
|
|
+ changeValuationType(valuationType);
|
|
|
|
|
+ valuationType === BOQ
|
|
|
|
|
+ ? $('#boq-type').removeClass('hide-area')
|
|
|
|
|
+ : $('#boq-type').addClass('hide-area');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function bindModalShown(folderDialog, projDialog, tenderDialog) {
|
|
function bindModalShown(folderDialog, projDialog, tenderDialog) {
|