Bläddra i källkod

Merge branch 'dev' of http://192.168.1.41:3000/maixinrong/Calculation into dev

MaiXinRong 2 år sedan
förälder
incheckning
0165c6b039
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 0
      app/public/js/material_checklist.js
  2. 1 1
      app/service/stage_audit.js

+ 1 - 0
app/public/js/material_checklist.js

@@ -1147,6 +1147,7 @@ $(document).ready(() => {
                 const needPushTree = [];
                 // 分析materialCheckList和tree,找出相同的清单并插入对应不存在的工料
                 for (const t of tree) {
+                    if(t.children.length === 0) continue;
                     const order = _.findIndex(gclGatherData, { b_code: t.b_code, name: t.name, unit: t.unit, unit_price: t.unit_price ? parseFloat(t.unit_price) : null });
                     const mlOrder = _.findIndex(materialChecklistData, { b_code: t.b_code, name: t.name, unit: t.unit, unit_price: t.unit_price ? parseFloat(t.unit_price) : null });
                     if (mlOrder === -1 && order !== -1 && _.findIndex(pushChecklist, { b_code: t.b_code, name: t.name, unit: t.unit, unit_price: t.unit_price ? parseFloat(t.unit_price) : null}) === -1) {

+ 1 - 1
app/service/stage_audit.js

@@ -984,7 +984,7 @@ module.exports = app => {
          * @return {Promise<void>}
          */
         async checkCancel(stageId, times = 1) {
-            // 分3种情况,根据ctx.cancancel值判断:
+            // 分4种情况,根据ctx.cancancel值判断:
             // 1.原报发起撤回,当前流程删除,并回到待上报
             // 2.审批人撤回审批通过,增加流程,并回到它审批中
             // 3.审批人撤回审批退回上一人,并删除退回人,增加流程,并回到它审批中,并更新计量期状态为审批中