|
@@ -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
|