|
@@ -206,9 +206,9 @@ const rptCustomObj = (function () {
|
|
|
|
|
|
const initGatherSelect = function (gsSetting, gsSelect) {
|
|
|
gsObj.setting = JSON.parse(gsSetting);
|
|
|
- gsObj.setting.type = 'zone';
|
|
|
gsObj.orgSelect = gsSelect;
|
|
|
- $('#audit-select-title').html(gsObj.setting.title);
|
|
|
+ $('#gather-select-count').html(gsSelect ? gsSelect.tenders.length : 0);
|
|
|
+ $('#gather-select-title').html(gsObj.setting.title);
|
|
|
initGrSpreadSetting(gsObj.setting);
|
|
|
SpreadJsObj.initSheet(gsObj.grSheet, grSpreadSetting);
|
|
|
if (gsObj.setting.type === 'month') {
|
|
@@ -241,7 +241,7 @@ const rptCustomObj = (function () {
|
|
|
}
|
|
|
if (cDefine && cDefine[sGatherSelect] && cDefine[sGatherSelect].enable && cDefine[sGatherSelect].setting) {
|
|
|
$('#pnl_gather_select').show();
|
|
|
- initGatherSelect(cDefine[sGatherSelect].setting, cSelect ? cSelect[sGatherSelect] : []);
|
|
|
+ initGatherSelect(cDefine[sGatherSelect].setting, cSelect ? cSelect[sGatherSelect] : null);
|
|
|
} else {
|
|
|
$('#pnl_gather_select').hide();
|
|
|
}
|
|
@@ -384,6 +384,7 @@ const rptCustomObj = (function () {
|
|
|
hintObj.hide();
|
|
|
postData('/report/cDefine', data, function (result) {
|
|
|
reloadReportData(result);
|
|
|
+ $('#gather-select-count').html(data[sGatherSelect].tenders.length);
|
|
|
$('#gather-select').modal('hide');
|
|
|
});
|
|
|
|