|
@@ -517,9 +517,8 @@ let ration_glj = {
|
|
|
ration_glj.prototype.getGLJDataPaging = function (condition, cb) {
|
|
|
gljOprObj.loadingPagination = true;
|
|
|
const property = projectObj.project.projectInfo.property;
|
|
|
- const engineerID = property.engineering_id;
|
|
|
const actionType = $('#actionType').val();
|
|
|
- CommonAjax.post('/rationGlj/getGLJDataPaging', {engineerID, condition}, function (data) {
|
|
|
+ CommonAjax.post('/rationGlj/getGLJDataPaging', { condition }, function (data) {
|
|
|
gljOprObj.curPageTotal = data.total;
|
|
|
data.complementaryGLJs.forEach(glj => {
|
|
|
glj.isComplementary = true;
|
|
@@ -559,7 +558,8 @@ let ration_glj = {
|
|
|
// 设置人材机类型名称
|
|
|
gljOprObj.setTypeName(gljOprObj.distTypeTree.comboDatas, newData);
|
|
|
if (data.priceProperties && data.priceProperties.length > 0) {
|
|
|
- let tmp = _.find(data.priceProperties, {region: property.region, taxModel: parseInt(property.taxType)});
|
|
|
+ // region: region目前跟单位工程绑定,这里暂时固定写死commonConstants.DEFAULT_REGION,以后应改成跟建设项目绑定的region,
|
|
|
+ let tmp = _.find(data.priceProperties, {region: commonConstants.DEFAULT_REGION, taxModel: parseInt(property.taxType)});
|
|
|
if (tmp) {
|
|
|
let dataCode = tmp.price.dataCode;
|
|
|
let allData = data.stdGLJ.concat(data.complementaryGLJs);
|