|
@@ -242,6 +242,11 @@ $(function () {
|
|
|
stage_id.push(parseInt($(this).val()));
|
|
|
});
|
|
|
const is_stage_self = parseInt($('input[name="is_stage_self"]:checked').val());
|
|
|
+ if (is_stage_self && stage_id.length > 12) {
|
|
|
+ toastr.error('独立调差下最多选择12个计量期');
|
|
|
+ $(this).removeAttr('disabled');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
const newMaterialData = {
|
|
|
s_order: $('#s_order').val(),
|
|
|
period: $('#add-qi input[name="period"]').val(),
|