浏览代码

导入预付款附件相关

MaiXinRong 2 年之前
父节点
当前提交
b18e1c58d1
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      app/controller/deal_bills_controller.js
  2. 1 1
      app/middleware/session_auth.js
  3. 2 2
      app/public/js/file_detail.js

+ 1 - 0
app/controller/deal_bills_controller.js

@@ -111,6 +111,7 @@ module.exports = app => {
                 });
                 ctx.body = {err: 0, msg: '', data: dealBills};
             } catch (err) {
+                console.log(err);
                 this.log(err);
                 // 失败需要消耗掉stream 以防卡死
                 if (stream) {

+ 1 - 1
app/middleware/session_auth.js

@@ -94,8 +94,8 @@ module.exports = options => {
                 const returnUrl = this.url.replace(/\/wap/g, '');
                 this.redirect(returnUrl);
             }
-
         } catch (error) {
+            console.log(error);
             this.log(error);
             if (this.helper.isAjax(this.request)) {
                 return this.body = {

+ 2 - 2
app/public/js/file_detail.js

@@ -655,9 +655,9 @@ $(document).ready(function() {
             if (tender.advance && tender.advance.length > 0) {
                 const advanceType = [];
                 tender.advance.forEach(x => {
-                    let at = advanceType.find(y => { return y.value === x.type });
+                    let at = advanceType.find(y => { return y.value === x.type + '' });
                     if (!at) {
-                        at = { value: x.type, text: x.type_str, stage: [] };
+                        at = { value: x.type + '', text: x.type_str, stage: [] };
                         advanceType.push(at);
                     }
                     at.stage.push({ value: x.id, text: `第${x.order}期`});