Bläddra i källkod

期新建一期bug

laiguoran 5 år sedan
förälder
incheckning
59aaa29c10
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      app/service/stage_jgcl.js

+ 4 - 4
app/service/stage_jgcl.js

@@ -214,9 +214,9 @@ module.exports = app => {
                 throw '标段数据有误';
             }
             const preDatas = await this.getAllDataByCondition({
-                columns: ['uuid', 'name', 'unit', 'unit_price', 'source', 'bills_code', 'check_code', 'memo', 'add_uid', 'add_sid'],
-                where: { sid: preStage.id }
-            });;
+                columns: ['uuid', 'name', 'unit', 'unit_price', 'source', 'bills_code', 'check_code', 'memo', 'add_uid', 'add_sid', 'order'],
+                where: { sid: preStage.id },
+            });
             if (preDatas.length > 0) {
                 for (const pd of preDatas) {
                     pd.pre_used = pd.pre_used || !this.ctx.helper.checkZero(pd.arrive_qty) || !this.ctx.helper.checkZero(pd.deduct_qty);
@@ -231,4 +231,4 @@ module.exports = app => {
     }
 
     return StageJgcl;
-};
+};