瀏覽代碼

财务账面,父项计算

MaiXinRong 1 月之前
父節點
當前提交
c695df1544
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/service/cost_stage_book_detail.js

+ 1 - 0
app/service/cost_stage_book_detail.js

@@ -164,6 +164,7 @@ module.exports = app => {
             const orgLedger = await this.ctx.service.costStageLedger.getDataById(orgDetail[0].ledger_id);
             const orgLedger = await this.ctx.service.costStageLedger.getDataById(orgDetail[0].ledger_id);
             if (bookUpdate) {
             if (bookUpdate) {
                 if (!orgBook) {
                 if (!orgBook) {
+                    bookUpdate.id = this.uuid.v4();
                     bookUpdate.tender_id = this.ctx.costStage.tid;
                     bookUpdate.tender_id = this.ctx.costStage.tid;
                     bookUpdate.stage_id = this.ctx.costStage.id;
                     bookUpdate.stage_id = this.ctx.costStage.id;
                     bookUpdate.ledger_id = orgLedger.id;
                     bookUpdate.ledger_id = orgLedger.id;