|
@@ -77,13 +77,15 @@ $(function () {
|
|
|
$(this).parents('.link-dropdown').siblings('.show-link').html(showTips);
|
|
|
$(this).attr('old-link', link);
|
|
|
const info = link !== '' ? tesRpttData.items[0].interact_cells[link] : null;
|
|
|
- const linkValue = removePreFix(info.Prefix, info.Value);
|
|
|
+ const linkValue = info ? removePreFix((info.Prefix ? info.Prefix : null), info.Value) : '';
|
|
|
const chineseNum = linkValue ? numberToChinese(linkValue) : '';
|
|
|
tesRpttData.items[0].interact_cells[index].link = link !== '' ? parseInt(link) : '';
|
|
|
tesRpttData.items[0].interact_cells[index].Value = tesRpttData.items[0].interact_cells[index].Prefix ? tesRpttData.items[0].interact_cells[index].Prefix + chineseNum : chineseNum;
|
|
|
+ const _self = $(this);
|
|
|
postData('/payment/' + tenderId + '/detail/' + detailId + '/save', { type: 'update_rpt', report_json: tesRpttData }, function (result) {
|
|
|
$('#rpt-form input[data-index="'+ index +'"]').val(chineseNum);
|
|
|
auditRptPrintHelper.showPage();
|
|
|
+ _self.parents('.show-link-dropdown').dropdown('toggle');
|
|
|
});
|
|
|
}
|
|
|
});
|