|
@@ -160,7 +160,7 @@
|
|
|
</select>
|
|
|
</span>
|
|
|
</li>
|
|
|
- <li class="d-flex justify-content-start align-items-center mb-3">
|
|
|
+ <li class="d-flex justify-content-start align-items-center mb-1">
|
|
|
<span class="col-auto">工程成本费用分类(最多只能选择4个,界面只有4个):</span>
|
|
|
<span class="mr-2">
|
|
|
<div class="dropdown show">
|
|
@@ -181,6 +181,9 @@
|
|
|
</div>
|
|
|
</span>
|
|
|
</li>
|
|
|
+ <li class="d-flex justify-content-start align-items-center mb-3">
|
|
|
+ <span class="col-auto" id="show_xmgl"></span>
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
@@ -217,11 +220,14 @@
|
|
|
$('#cb_cate_value_select').html('<option value="0">请选择值</option>')
|
|
|
}
|
|
|
$('#cb_show_select').find('input').prop('checked', false);
|
|
|
+ const show_xmgl_array = [];
|
|
|
$('#cb_show_select').find('input').each(function () {
|
|
|
if (daPing06Set.cb_show && daPing06Set.cb_show.length > 0 && daPing06Set.cb_show.includes(parseInt($(this).val()))) {
|
|
|
$(this).prop('checked', true);
|
|
|
+ show_xmgl_array.push($(this).next().text());
|
|
|
}
|
|
|
});
|
|
|
+ $('#show_xmgl').text(show_xmgl_array.join('、'));
|
|
|
});
|
|
|
$('#cb_show_select').on('click', function (e) {
|
|
|
e.stopPropagation();
|
|
@@ -233,6 +239,13 @@
|
|
|
toastr.warning('最多只能选择4个');
|
|
|
return;
|
|
|
}
|
|
|
+ const show_xmgl_array = [];
|
|
|
+ $('#cb_show_select').find('input').each(function () {
|
|
|
+ if ($(this).is(':checked')) {
|
|
|
+ show_xmgl_array.push($(this).next().text());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('#show_xmgl').text(show_xmgl_array.join('、'));
|
|
|
});
|
|
|
$('#dp06_save_btn').click(function () {
|
|
|
if ($('#sr_cate_select').val() === '0') {
|