|
@@ -432,9 +432,16 @@ const rptCustomObj = (function () {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- if (data[sGatherSelect].tenders.length <= specCol.length) {
|
|
|
- hintObj.html('请至少选择1个普通汇总项目').show();
|
|
|
- return;
|
|
|
+ if (gsObj.setting.onlySpec) {
|
|
|
+ if (data[sGatherSelect].tenders.length > specCol.length) {
|
|
|
+ hintObj.html('请勿选择普通汇总项目').show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (data[sGatherSelect].tenders.length <= specCol.length) {
|
|
|
+ hintObj.html('请至少选择1个普通汇总项目').show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
if (gsObj.setting.type === 'month') {
|
|
|
data[sGatherSelect].month = $('#gather-month').val();
|