|
@@ -320,6 +320,8 @@ class StageIm {
|
|
|
im.gclBills.push(b);
|
|
|
this.ImBillsData.push(b);
|
|
|
}
|
|
|
+ b.quantity = this.ctx.helper.add(b.quantity, p.quantity);
|
|
|
+
|
|
|
b.jl = this.ctx.helper.add(b.jl, p.gather_qty);
|
|
|
b.contract_jl = this.ctx.helper.add(b.contract_jl, p.contract_qty);
|
|
|
b.qc_jl = this.ctx.helper.add(b.qc_jl, p.qc_qty);
|
|
@@ -490,6 +492,7 @@ class StageIm {
|
|
|
im = {
|
|
|
id: this.ImData.length + 1,
|
|
|
lid: node.id, pid: '', code: p.b_code, name: p.name, unit: p.unit, unit_price: p.unit_price,
|
|
|
+ quantity: 0,
|
|
|
jl: 0, contract_jl: 0, qc_jl: 0,
|
|
|
pre_jl: 0, pre_contract_jl: 0, pre_qc_jl: 0,
|
|
|
end_jl: 0, end_contract_jl: 0, end_qc_jl: 0,
|
|
@@ -514,6 +517,8 @@ class StageIm {
|
|
|
this._generateZlLeafXmjData(p, im, 'gather_qty');
|
|
|
}
|
|
|
this._generateZlChangeData(p, im);
|
|
|
+ im.quantity = this.ctx.helper.add(im.quantity, p.quantity);
|
|
|
+
|
|
|
im.jl = this.ctx.helper.add(im.jl, p.gather_qty);
|
|
|
im.contract_jl = this.ctx.helper.add(im.contract_jl, p.contract_qty);
|
|
|
im.qc_jl = this.ctx.helper.add(im.qc_jl, p.qc_qty);
|
|
@@ -542,6 +547,7 @@ class StageIm {
|
|
|
const im = {
|
|
|
id: this.ImData.length + 1,
|
|
|
lid: node.id, code: p.b_code, name: p.name, unit: p.unit, unit_price: p.unit_price, pid: pp.id,
|
|
|
+ quantity: pp.quantity,
|
|
|
jl: pp.gather_qty, contract_jl: pp.contract_qty, qc_jl: pp.qc_qty,
|
|
|
pre_jl: pp.pre_gather_qty, pre_contract_jl: pp.pre_contract_qty, pre_qc_jl: pp.pre_qc_qty,
|
|
|
end_jl: pp.end_gather_qty, end_contract_jl: pp.end_contract_qty, end_qc_jl: pp.end_qc_qty,
|
|
@@ -568,6 +574,7 @@ class StageIm {
|
|
|
const im = {
|
|
|
id: this.ImData.length + 1,
|
|
|
lid: node.id, code: p.b_code, name: p.name, unit: p.unit, unit_price: p.unit_price, pid: '',
|
|
|
+ quantity: p.quantity,
|
|
|
jl: p.gather_qty, contract_jl: p.contract_qty, qc_jl: p.qc_qty,
|
|
|
pre_jl: p.pre_gather_qty, pre_contract_jl: p.pre_contract_qty, pre_qc_jl: p.pre_qc_qty,
|
|
|
end_jl: p.end_gather_qty, end_contract_jl: p.end_contract_qty, end_qc_jl: p.end_qc_qty,
|