|
@@ -1461,7 +1461,7 @@ module.exports = app => {
|
|
|
const helper = this.ctx.helper;
|
|
|
for (const d of data) {
|
|
|
let gd = this.resultStageSafeProd.find(x => {
|
|
|
- return x.name === d.name && x.unit === d.unit && helper.checkNumEqual(x.unit_price, d.unit_price);
|
|
|
+ return x.name === d.name && x.unit === d.unit && helper.numEqual(x.unit_price, d.unit_price);
|
|
|
});
|
|
|
if (!gd) {
|
|
|
gd = { name: d.name, unit: d.unit, unit_price: d.unit_price };
|
|
@@ -1541,7 +1541,7 @@ module.exports = app => {
|
|
|
const helper = this.ctx.helper;
|
|
|
for (const d of data) {
|
|
|
let gd = this.resultStageTempLand.find(x => {
|
|
|
- return x.name === d.name && x.unit === d.unit && helper.checkNumEqual(x.unit_price, d.unit_price);
|
|
|
+ return x.name === d.name && x.unit === d.unit && helper.numEqual(x.unit_price, d.unit_price);
|
|
|
});
|
|
|
if (!gd) {
|
|
|
gd = { name: d.name, unit: d.unit, unit_price: d.unit_price };
|