Browse Source

支付审批,安全生产费流程,兼容已配置的上报人不存在的情况

MaiXinRong 2 năm trước cách đây
mục cha
commit
0490bd059d
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      app/public/js/payment_process.js

+ 5 - 1
app/public/js/payment_process.js

@@ -696,7 +696,11 @@ $(function () {
             const html = ['<div class="mr-2">上报人<b class="text-danger">*</b></div>'];
             if (this.rptInfo.uid) {
                 const userInfo = _.find(accountList, { id: this.rptInfo.uid });
-                html.push(`<div class="mr-2">${userInfo.name}</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
+                if (userInfo) {
+                    html.push(`<div class="mr-2">${userInfo.name}</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
+                } else {
+                    html.push(`<div class="mr-2">上报人已失效</div>`, `<div>${this.getSelectHtml('替换')}</div>`);
+                }
             } else {
                 html.push(`<div>${this.getSelectHtml('选择上报人')}</div>`);
             }