|
@@ -30,7 +30,7 @@ module.exports = app => {
|
|
|
columns: ['id', 'tid', 'lid', 'name', 'quantity', 'position', 'drawing_code', 'sgfh_qty', 'sjcl_qty',
|
|
|
'qtcl_qty', 'in_time', 'porder', 'add_stage', 'sgfh_expr', 'sjcl_expr', 'qtcl_expr', 'real_qty',
|
|
|
'dagl_status', 'dagl_url', 'gxby_status', 'gxby_limit', 'dagl_limit', 'dagl_status',
|
|
|
- 'ex_memo1', 'ex_memo2', 'ex_memo3', 'ccid'],
|
|
|
+ 'ex_memo1', 'ex_memo2', 'ex_memo3', 'ccid', 'formc'],
|
|
|
order: [['porder', 'ASC']],
|
|
|
});
|
|
|
}
|
|
@@ -45,6 +45,7 @@ module.exports = app => {
|
|
|
data.in_time = new Date();
|
|
|
data.add_user = this.ctx.session.sessionUser.accountId;
|
|
|
data.ccid = cid;
|
|
|
+ data.formc = 1;
|
|
|
}
|
|
|
|
|
|
async addPos(tid, cid, data) {
|
|
@@ -388,6 +389,7 @@ module.exports = app => {
|
|
|
data.in_time = new Date();
|
|
|
data.add_user = this.ctx.session.sessionUser.accountId;
|
|
|
data.ccid = cid;
|
|
|
+ data.formc = 1;
|
|
|
if (data.quantity) {
|
|
|
const bills = await this.ctx.service.changeLedger.getDataById(data.lid) || await this.ctx.service.ledger.getDataById(data.lid);
|
|
|
const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, bills.unit);
|