فهرست منبع

默认主要材料问题

zhangweicheng 5 سال پیش
والد
کامیت
9a123cd8bb
2فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 1 0
      modules/main/facade/ration_facade.js
  2. 1 0
      modules/ration_glj/facade/ration_glj_facade.js

+ 1 - 0
modules/main/facade/ration_facade.js

@@ -980,6 +980,7 @@ function getProjectGLJNewData(tmp,projectId,ext){
       materialCoe: tmp.materialCoe,
       base_price: tmp.basePrice,
       market_price: tmp.basePrice,
+      is_main_material:tmp.is_main_material?tmp.is_main_material:1,
       from:tmp.from?tmp.from:"std"
   };
   if(gljData.from == 'std' && ext && ext.priceField &&(tmp.priceProperty && tmp.priceProperty[ext.priceField]!= undefined && tmp.priceProperty[ext.priceField]!=null)){

+ 1 - 0
modules/ration_glj/facade/ration_glj_facade.js

@@ -667,6 +667,7 @@ function getGLJSearchInfo(ration_glj) {
         repositoryId: ration_glj.repositoryId,
         adjCoe: ration_glj.adjCoe,
         materialType:ration_glj.materialType,
+        is_main_material:ration_glj.is_main_material?ration_glj.is_main_material:1,
         materialCoe:ration_glj.materialCoe,
         grossWeightCoe:ration_glj.grossWeightCoe,
         purchaseStorageRate:ration_glj.purchaseStorageRate,