Browse Source

伦茨计划编制高线。钢种q195,规格6.5的化学成分标准取q195l

@zhangxiaoyu122 3 years ago
parent
commit
ddd371c216

+ 12 - 4
src/views/energyPlan/components/supplyAndDemand/planProjectRoundGx.vue

@@ -1716,7 +1716,7 @@ export default {
             }
         },
         // 左边菜单选中
-        handleSelectionChangeAsleft (val) {
+        handleSelectionChangeAsleft (val) {
             let that = this;
             let tableFormDataObj = {};
             let arr = [];
@@ -1746,7 +1746,7 @@ export default {
             that.multipleSelectionAscLeft = val;
         },
         // 右边菜单选中
-        handleSelectionChange (val) {
+        handleSelectionChange (val) {
             let that = this;
             let rightTableObj = {};
             let arr = [];
@@ -1773,10 +1773,14 @@ export default {
                     try {
                       if (item.grades != null && item.grades !== '') {
                         if (item.surfaceStandard === '' || item.surfaceStandard === null) {
-                          rightTableObj[xId].surfaceStandard = that.nameObj.ExecutiveStandard.obj[item.grades].surface;
+                            rightTableObj[xId].surfaceStandard = that.nameObj.ExecutiveStandard.obj[item.grades].surface;
                         }
                         if (item.chemicalStandard === '' || item.chemicalStandard === null) {
-                          rightTableObj[xId].chemicalStandard = that.nameObj.ExecutiveStandard.obj[item.grades].factory;
+                          if (item.grades == 'Q195' && item.specifications == '6.5') {
+                             rightTableObj[xId].chemicalStandard = that.nameObj.ExecutiveStandard.obj['Q195L'].factory;
+                          } else {
+                             rightTableObj[xId].chemicalStandard = that.nameObj.ExecutiveStandard.obj[item.grades].factory;
+                          }
                         }
                       }
                     } catch (e) {
@@ -2504,6 +2508,10 @@ export default {
           // {
             try {
               obj.chemicalStandard = that.nameObj.ExecutiveStandard.obj[data].factory;
+              if (data == 'Q195' && obj.specifications == '6.5') {
+                 obj.chemicalStandard = that.nameObj.ExecutiveStandard.obj['Q195L'].factory;
+                 // rightTableObj[xId].chemicalStandard = that.nameObj.ExecutiveStandard.obj['Q195L'].factory;
+              }
               // }
               // if(surface === '' || surface === null) {
                 obj.surfaceStandard = that.nameObj.ExecutiveStandard.obj[data].surface;