|
@@ -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;
|
|
|
-};
|
|
|
+};
|