فهرست منبع

添加本期应付

laiguoran 4 سال پیش
والد
کامیت
cf5233af17
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      app/service/stage.js

+ 7 - 0
app/service/stage.js

@@ -591,6 +591,9 @@ module.exports = app => {
                         const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGclByMaterial(stage_list, '^[^0-9]*1[0-9]{2}-');
                         cb.value = this.ctx.helper.add(sumGcl.contract_tp, sumGcl.qc_tp);
                         break;
+                    case 'bqyf':
+                        cb.value = this._.sumBy(stage_list, 'yf_tp');
+                        break;
                     default:
                         cb.value = 0;
                 }
@@ -598,6 +601,10 @@ module.exports = app => {
             return calcBase;
         }
 
+        async getSumbqyfByMaterial(stage) {
+
+        }
+
         /**
          * 获取必要的stage信息调用curTimes, curOrder, id , times, curAuditor(材料调差)
          * @param stage_id_list