|
@@ -829,7 +829,7 @@ module.exports = app => {
|
|
|
|
|
|
async _findParents(transaction, tid, id, result) {
|
|
|
const info = await transaction.get(this.ctx.service.changeLedger.tableName, { tender_id: tid, ledger_id: id });
|
|
|
- if (info && this._.findIndex(result, { ledger_id: info.id }) === -1) {
|
|
|
+ if (info && this._.findIndex(result, { ledger_id: info.ledger_id }) === -1) {
|
|
|
result.push(info);
|
|
|
await this._findParents(transaction, tid, info.ledger_pid, result);
|
|
|
} else {
|
|
@@ -868,7 +868,7 @@ module.exports = app => {
|
|
|
const insertPosArr = [];
|
|
|
for (const p of posList) {
|
|
|
const insertp = [
|
|
|
- p.id, p.tid, p.lid, p.name, p.drawing_code, p.quantity, p.add_stage, p.add_times,
|
|
|
+ p.id, p.tid, p.lid, p.name, p.drawing_code, p.quantity, p.add_stage, p.add_stage_order, p.add_times,
|
|
|
p.add_user, p.sgfh_qty, p.sjcl_qty, p.qtcl_qty, p.crid, p.porder, p.position,
|
|
|
p.sgfh_expr, p.sjcl_expr, p.qtcl_expr, p.real_qty,
|
|
|
p.gxby_status, p.dagl_status, p.dagl_url, p.gxby_limit, p.dagl_limit,
|
|
@@ -882,7 +882,7 @@ module.exports = app => {
|
|
|
const pSql =
|
|
|
'Insert Into ' +
|
|
|
this.ctx.service.pos.tableName +
|
|
|
- ' (id, tid, lid, name, drawing_code, quantity, add_stage, add_times, add_user,' +
|
|
|
+ ' (id, tid, lid, name, drawing_code, quantity, add_stage, add_stage_order, add_times, add_user,' +
|
|
|
' sgfh_qty, sjcl_qty, qtcl_qty, crid, porder, position, ' +
|
|
|
' sgfh_expr, sjcl_expr, qtcl_expr, real_qty,' +
|
|
|
' gxby_status, dagl_status, dagl_url, gxby_limit, dagl_limit,' +
|