|
@@ -479,7 +479,7 @@ module.exports = app => {
|
|
|
cb.value = sum.qc_tp;
|
|
|
break;
|
|
|
case 'ybbqwc':
|
|
|
- const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGcl(stage, '^[^0-9]*1[0-9]{2}-');
|
|
|
+ const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGcl(stage, '^[^0-9]*1[0-9]{2}(-|$)');
|
|
|
cb.value = this.ctx.helper.add(sumGcl.contract_tp, sumGcl.qc_tp);
|
|
|
break;
|
|
|
default:
|
|
@@ -607,7 +607,7 @@ module.exports = app => {
|
|
|
cb.value = sum.qc_tp;
|
|
|
break;
|
|
|
case 'ybbqwc':
|
|
|
- const sumGcl = await this.ctx.service.stageBills.getSumTotalPriceGclByMaterial(stage_list, '^[^0-9]*1[0-9]{2}-');
|
|
|
+ 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':
|