laiguoran 2 rokov pred
rodič
commit
1d66b66635

+ 3 - 1
app/public/js/payment_detail.js

@@ -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');
             });
         }
     });

+ 1 - 1
app/service/payment_detail.js

@@ -129,7 +129,7 @@ module.exports = app => {
             // 日期
             const dateCells = this._.find(report_json.items[0].signature_date_cells, { signature_name: signature_name + '_签字日期' });
             if (dateCells && sign_msg.date) {
-                dateCells.Value = this.ctx.helper._.dateTranChinese(sign_msg.date);
+                dateCells.Value = this.ctx.helper.dateTranChinese(sign_msg.date);
             }
             // 意见
             const contentCells = this._.find(report_json.items[0].signature_audit_cells, { signature_name: signature_name + '_审核意见' });