|
@@ -759,13 +759,12 @@ module.exports = app => {
|
|
|
await ctx.service.pay.del(data.id);
|
|
|
responseData.data = await ctx.service.stagePay.getStagePays(ctx.stage);
|
|
|
await payCalculator.calculateAll(responseData.data);
|
|
|
- await this.ctx.service.stage.update({
|
|
|
- check_calc: false,
|
|
|
- contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
- yf_tp: payCalculator.yf.tp,
|
|
|
- sf_tp: payCalculator.sf.tp
|
|
|
- }, {id: this.ctx.stage.id});
|
|
|
-
|
|
|
+ // await this.ctx.service.stage.update({
|
|
|
+ // check_calc: false,
|
|
|
+ // contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
+ // yf_tp: payCalculator.yf.tp,
|
|
|
+ // sf_tp: payCalculator.sf.tp
|
|
|
+ // }, {id: this.ctx.stage.id});
|
|
|
break;
|
|
|
case 'changeOrder':
|
|
|
responseData.data = await ctx.service.pay.changeOrder(data.id1, data.id2);
|
|
@@ -776,12 +775,12 @@ module.exports = app => {
|
|
|
if (bReCalc) {
|
|
|
responseData.data = await ctx.service.stagePay.getStagePays(ctx.stage);
|
|
|
await payCalculator.calculateAll(responseData.data);
|
|
|
- await this.ctx.service.stage.update({
|
|
|
- check_calc: false,
|
|
|
- contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
- yf_tp: payCalculator.yf.tp,
|
|
|
- sf_tp: payCalculator.sf.tp
|
|
|
- }, {id: this.ctx.stage.id});
|
|
|
+ // await this.ctx.service.stage.update({
|
|
|
+ // check_calc: false,
|
|
|
+ // contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
+ // yf_tp: payCalculator.yf.tp,
|
|
|
+ // sf_tp: payCalculator.sf.tp
|
|
|
+ // }, {id: this.ctx.stage.id});
|
|
|
} else {
|
|
|
if (data.updateData instanceof Array) {
|
|
|
responseData.data = await ctx.service.stagePay.getStagePay(ctx.stage, this.app._.map(responseData.data, 'id'));
|
|
@@ -794,12 +793,12 @@ module.exports = app => {
|
|
|
await ctx.service.stagePay.save(data.updateData);
|
|
|
responseData.data = await ctx.service.stagePay.getStagePays(ctx.stage);
|
|
|
await payCalculator.calculateAll(responseData.data);
|
|
|
- await this.ctx.service.stage.update({
|
|
|
- check_calc: false,
|
|
|
- contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
- yf_tp: payCalculator.yf.tp,
|
|
|
- sf_tp: payCalculator.sf.tp
|
|
|
- }, {id: this.ctx.stage.id});
|
|
|
+ // await this.ctx.service.stage.update({
|
|
|
+ // check_calc: false,
|
|
|
+ // contract_tp: payCalculator.cur.contract_tp, qc_tp: payCalculator.cur.qc_tp,
|
|
|
+ // yf_tp: payCalculator.yf.tp,
|
|
|
+ // sf_tp: payCalculator.sf.tp
|
|
|
+ // }, {id: this.ctx.stage.id});
|
|
|
break;
|
|
|
}
|
|
|
|