|
@@ -350,15 +350,6 @@
|
|
<div class="col-4">
|
|
<div class="col-4">
|
|
<div class="input-group input-group-sm">
|
|
<div class="input-group input-group-sm">
|
|
<div class="input-group-prepend">
|
|
<div class="input-group-prepend">
|
|
- <span class="input-group-text">数量</span>
|
|
|
|
- </div>
|
|
|
|
- <input type="number" class="form-control" value="2" id="decimal-extra-qty"
|
|
|
|
- oninput="limitDecimal(this)" min="0" max="6">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-4">
|
|
|
|
- <div class="input-group input-group-sm">
|
|
|
|
- <div class="input-group-prepend">
|
|
|
|
<span class="input-group-text">金额</span>
|
|
<span class="input-group-text">金额</span>
|
|
</div>
|
|
</div>
|
|
<input type="number" class="form-control" value="2" id="decimal-extra-tp"
|
|
<input type="number" class="form-control" value="2" id="decimal-extra-tp"
|
|
@@ -430,7 +421,7 @@
|
|
<div class="col-auto pr-0">
|
|
<div class="col-auto pr-0">
|
|
<div class="form-group form-check pl-0">
|
|
<div class="form-group form-check pl-0">
|
|
<div class="custom-control custom-switch">
|
|
<div class="custom-control custom-switch">
|
|
- <input type="checkbox" class="custom-control-input" id="decimal-pay" readonly="">
|
|
|
|
|
|
+ <input type="checkbox" class="custom-control-input" id="decimal-pay" disabled>
|
|
<label class="custom-control-label" for="decimal-pay">合同支付</label>
|
|
<label class="custom-control-label" for="decimal-pay">合同支付</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -448,7 +439,7 @@
|
|
<div class="col-auto pr-0">
|
|
<div class="col-auto pr-0">
|
|
<div class="form-group form-check pl-0">
|
|
<div class="form-group form-check pl-0">
|
|
<div class="custom-control custom-switch">
|
|
<div class="custom-control custom-switch">
|
|
- <input type="checkbox" class="custom-control-input" id="decimal-extra" readonly="">
|
|
|
|
|
|
+ <input type="checkbox" class="custom-control-input" id="decimal-extra" disabled>
|
|
<label class="custom-control-label" for="decimal-extra">其他台账</label>
|
|
<label class="custom-control-label" for="decimal-extra">其他台账</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -456,14 +447,6 @@
|
|
<div class="col-4">
|
|
<div class="col-4">
|
|
<div class="input-group input-group-sm">
|
|
<div class="input-group input-group-sm">
|
|
<div class="input-group-prepend">
|
|
<div class="input-group-prepend">
|
|
- <span class="input-group-text">数量</span>
|
|
|
|
- </div>
|
|
|
|
- <input type="number" class="form-control" value="2" id="decimal-extra-qty" readonly="">
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-4">
|
|
|
|
- <div class="input-group input-group-sm">
|
|
|
|
- <div class="input-group-prepend">
|
|
|
|
<span class="input-group-text">金额</span>
|
|
<span class="input-group-text">金额</span>
|
|
</div>
|
|
</div>
|
|
<input type="number" class="form-control" value="2" id="decimal-extra-tp" readonly="">
|
|
<input type="number" class="form-control" value="2" id="decimal-extra-tp" readonly="">
|
|
@@ -778,20 +761,12 @@
|
|
$('#decimal-extra')[0].checked = property.decimal.extra;
|
|
$('#decimal-extra')[0].checked = property.decimal.extra;
|
|
$('#decimal-extra-tp').val(property.decimal.extraTp);
|
|
$('#decimal-extra-tp').val(property.decimal.extraTp);
|
|
$('#decimal-extra-tp')[0].disabled = !property.decimal.extra;
|
|
$('#decimal-extra-tp')[0].disabled = !property.decimal.extra;
|
|
- $('#decimal-extra-qty').val(property.decimal.extraQty);
|
|
|
|
- $('#decimal-extra-qty')[0].disabled = !property.decimal.extra;
|
|
|
|
}
|
|
}
|
|
$('#decimal-pay').change(() => {
|
|
$('#decimal-pay').change(() => {
|
|
- console.log(!$('#decimal-pay')[0].checked);
|
|
|
|
$('#decimal-pay-tp')[0].disabled = !$('#decimal-pay')[0].checked;
|
|
$('#decimal-pay-tp')[0].disabled = !$('#decimal-pay')[0].checked;
|
|
- console.log($('#decimal-pay-tp')[0].disabled);
|
|
|
|
});
|
|
});
|
|
$('#decimal-extra').change(() => {
|
|
$('#decimal-extra').change(() => {
|
|
- console.log(!$('#decimal-extra')[0].checked);
|
|
|
|
- $('#decimal-extra-qty')[0].disabled = !$('#decimal-extra')[0].checked;
|
|
|
|
$('#decimal-extra-tp')[0].disabled = !$('#decimal-extra')[0].checked;
|
|
$('#decimal-extra-tp')[0].disabled = !$('#decimal-extra')[0].checked;
|
|
- console.log($('#decimal-extra-qty')[0].disabled);
|
|
|
|
- console.log($('#decimal-extra-tp')[0].disabled);
|
|
|
|
});
|
|
});
|
|
$('#bd-set-2').on('show.bs.modal', function () {
|
|
$('#bd-set-2').on('show.bs.modal', function () {
|
|
loadCalculateProperty();
|
|
loadCalculateProperty();
|
|
@@ -804,7 +779,6 @@
|
|
pay: $('#decimal-pay')[0].checked,
|
|
pay: $('#decimal-pay')[0].checked,
|
|
payTp: _.toNumber($('#decimal-pay-tp').val()),
|
|
payTp: _.toNumber($('#decimal-pay-tp').val()),
|
|
extra: $('#decimal-extra')[0].checked,
|
|
extra: $('#decimal-extra')[0].checked,
|
|
- extraQty: _.toNumber($('#decimal-extra-qty').val()),
|
|
|
|
extraTp: _.toNumber($('#decimal-extra-tp').val()),
|
|
extraTp: _.toNumber($('#decimal-extra-tp').val()),
|
|
}
|
|
}
|
|
};
|
|
};
|
|
@@ -839,10 +813,6 @@
|
|
toastr.warning('第一期已审批完成,不可取消其他台账单独设置');
|
|
toastr.warning('第一期已审批完成,不可取消其他台账单独设置');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (prop.decimal.extraQty < property.decimal.extraQty) {
|
|
|
|
- toastr.warning('第一期已审批完成,单独设置的其他台账小数位数,不可小于' + property.decimal.extraQty);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
if (prop.decimal.extraTp < property.decimal.extraTp) {
|
|
if (prop.decimal.extraTp < property.decimal.extraTp) {
|
|
toastr.warning('第一期已审批完成,单独设置的其他台账小数位数,不可小于' + property.decimal.extraTp);
|
|
toastr.warning('第一期已审批完成,单独设置的其他台账小数位数,不可小于' + property.decimal.extraTp);
|
|
return;
|
|
return;
|