|
@@ -49,7 +49,6 @@ let chongqingOverWrite = require("../../../web/over_write/js/chongqing_2018.js")
|
|
|
let _= require('lodash');
|
|
|
const projectDao = require('../../pm/models/project_model').project;
|
|
|
let projectModel = mongoose.model('projects');
|
|
|
-const fs = require('fs');
|
|
|
|
|
|
async function addNewRation(data,compilation) {
|
|
|
let query = data.itemQuery;
|
|
@@ -471,7 +470,7 @@ async function addRationGLJ(std,newRation,compilation) {
|
|
|
newGLJ.from = 'std';
|
|
|
}
|
|
|
//多单价情况处理
|
|
|
- if(ext && ext.priceField && std_glj && std_glj.priceProperty){
|
|
|
+ if(ext && ext.priceField && std_glj && std_glj.priceProperty && std_glj.priceProperty[ext.priceField] !== null && std_glj.priceProperty[ext.priceField] !== undefined){
|
|
|
std_glj.basePrice = std_glj.priceProperty[ext.priceField];
|
|
|
}
|
|
|
if(std_glj){
|