Selaa lähdekoodia

修改成本right显示规则

yuanrf 1 vuosi sitten
vanhempi
commit
d61ccfc6e0
1 muutettua tiedostoa jossa 49 lisäystä ja 0 poistoa
  1. 49 0
      src/components/Finance/Cost.vue

+ 49 - 0
src/components/Finance/Cost.vue

@@ -3926,6 +3926,7 @@ export default {
                 }
             }
 
+            var rightCheckArr = [];
             if (this.costTypevalue == 'B') {
 
                 let BhotelRooms = {
@@ -3956,6 +3957,26 @@ export default {
                 var BJJCSUITERS = (Bresult.hasOwnProperty("经济舱SUITE") ? Bresult["经济舱SUITE"] : 0)
                 var BtxtGWCSUITERS = (Bresult.hasOwnProperty("公务舱SUITE") ? Bresult["公务舱SUITE"] : 0)
 
+
+                if(BtxtJJCSGRRS > 0){
+                    rightCheckArr.push('经济舱 SGR');
+                }
+                if(BlblGWCSGRRS > 0){
+                    rightCheckArr.push('公务舱 SGR');
+                }
+                if(BtxtJJCTBRRS > 0){
+                    rightCheckArr.push('经济舱 TBR');
+                }
+                if(BtxtGWCJSESRS > 0){
+                    rightCheckArr.push('公务舱 JSES');
+                }
+                if(BJJCSUITERS > 0){
+                    rightCheckArr.push('经济舱 SUITE');
+                }
+                if(BtxtGWCSUITERS > 0){
+                    rightCheckArr.push('公务舱 SUITE');
+                }
+
                 this.BcabinDatal[0].sheetInfo[0].toll = BtxtJJCTBRRS;
                 this.BcabinDatal[1].sheetInfo[0].toll = BtxtJJCSGRRS;
                 this.BcabinDatal[2].sheetInfo[0].toll = BlblGWCSGRRS;
@@ -4016,6 +4037,34 @@ export default {
             var JJCSUITERS = (result.hasOwnProperty("经济舱SUITE") ? result["经济舱SUITE"] : 0)
             var txtGWCSUITERS = (result.hasOwnProperty("公务舱SUITE") ? result["公务舱SUITE"] : 0)
 
+           
+            if(txtJJCSGRRS > 0){
+                rightCheckArr.push('经济舱 SGR');
+            }
+            if(lblGWCSGRRS > 0){
+                rightCheckArr.push('公务舱 SGR');
+            }
+            if(txtJJCTBRRS > 0){
+                rightCheckArr.push('经济舱 TBR');
+            }
+            if(txtGWCJSESRS > 0){
+                rightCheckArr.push('公务舱 JSES');
+            }
+            if(JJCSUITERS > 0){
+                rightCheckArr.push('经济舱 SUITE');
+            }
+            if(txtGWCSUITERS > 0){
+                rightCheckArr.push('公务舱 SUITE');
+            }
+            
+            rightCheckArr.push('团组预算明细');
+            rightCheckArr = [...new Set(rightCheckArr)];
+
+            try{
+                console.log('rightCheckArr',rightCheckArr);
+                this.CheckBoxListSelect.filter(item => item.cbType == 'Right')[0].cbValues = rightCheckArr;
+            }catch(e){}
+
             this.cabinDatal[0].sheetInfo[0].toll = txtJJCTBRRS;
             this.cabinDatal[1].sheetInfo[0].toll = txtJJCSGRRS;
             this.cabinDatal[2].sheetInfo[0].toll = lblGWCSGRRS;