|
@@ -1926,6 +1926,10 @@ $(document).ready(() => {
|
|
|
yearmonths.push(yearmonth);
|
|
|
}
|
|
|
console.log(yearmonths);
|
|
|
+ if (months.length + yearmonths.length > 24) {
|
|
|
+ toastr.error('月信息价不能超过24个月');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
postData(window.location.pathname + '/month/save', { type: 'adds', updateData: { yearmonths } }, function (data) {
|
|
|
months.push(...yearmonths);
|
|
|
months.sort();
|