|
@@ -366,7 +366,7 @@ module.exports = app => {
|
|
|
};
|
|
|
list.push(newLists);
|
|
|
}
|
|
|
- if (this._.findIndex(listGcl, {gcl_id: xmj.gcl_id}) === -1) {
|
|
|
+ if (this._.findIndex(listGcl, { gcl_id: xmj.gcl_id, mb_id: mb }) === -1) {
|
|
|
const newListGcl = {
|
|
|
tid: this.ctx.tender.id,
|
|
|
order: this.ctx.material.order,
|
|
@@ -548,8 +548,8 @@ module.exports = app => {
|
|
|
listGcl.push(xmj.gcl_id);
|
|
|
updateListGcl.push({
|
|
|
row: {
|
|
|
- expr: datas.expr,
|
|
|
- quantity: datas.quantity,
|
|
|
+ expr: data.expr,
|
|
|
+ quantity: data.quantity,
|
|
|
},
|
|
|
where: {
|
|
|
tid: this.ctx.tender.id,
|