Browse Source

Merge branch 'master' of http://132.232.92.186:3000/XinXiBu/oa-system

liuhj 2 weeks ago
parent
commit
ba02760158
1 changed files with 23 additions and 2 deletions
  1. 23 2
      src/components/Finance/Cost.vue

+ 23 - 2
src/components/Finance/Cost.vue

@@ -5261,6 +5261,9 @@ export default {
         },
         },
         costTypeSelect(val) {
         costTypeSelect(val) {
             ////////console.log('costTypeSelect--------------------------------------------------------', val);
             ////////console.log('costTypeSelect--------------------------------------------------------', val);
+            setTimeout(() => {
+                this.hideAirInfo();
+            }, 300);
         },
         },
         async formVerify() {
         async formVerify() {
             return new Promise((resolve, reject) => {
             return new Promise((resolve, reject) => {
@@ -7063,7 +7066,7 @@ export default {
         hideAirInfo() {
         hideAirInfo() {
 
 
             var settomgAir = [
             var settomgAir = [
-                { key: "经济舱", text: "经济舱单人成本(CNY)" },
+                //{ key: "经济舱", text: "经济舱单人成本(CNY)" },
                 { key: "公务舱", text: "公务舱单人成本(CNY)" },
                 { key: "公务舱", text: "公务舱单人成本(CNY)" },
                 { key: "头等舱", text: "头等舱单人成本(CNY)" }
                 { key: "头等舱", text: "头等舱单人成本(CNY)" }
             ];
             ];
@@ -7079,6 +7082,18 @@ export default {
             const container = document.getElementsByClassName('sheet-box')[0];
             const container = document.getElementsByClassName('sheet-box')[0];
 
 
             if (container) {
             if (container) {
+
+                container.querySelectorAll('.biaoge').forEach((item) => {
+                    item.style.display = 'block';
+                })
+
+                if (this.costTypevalue == 'B') {
+                    container.querySelectorAll('.biaogeB').forEach((item) => {
+                        item.style.display = 'block';
+                    })
+                    hideAirInfoArr = [...hideAirInfoArr, ...hideAirInfoArr];
+                }
+
                 hideAirInfoArr.forEach((item) => {
                 hideAirInfoArr.forEach((item) => {
                     var elem = null;
                     var elem = null;
                     const elementsInContainer = container.querySelectorAll('*');
                     const elementsInContainer = container.querySelectorAll('*');
@@ -7101,7 +7116,13 @@ export default {
                         let hasParentWithClass = false;
                         let hasParentWithClass = false;
 
 
                         while (parent) {
                         while (parent) {
-                            if (parent.classList && parent.classList.contains(targetClassName)) {
+                            var isBool = parent.classList && parent.classList.contains(targetClassName);
+
+                            if (this.costTypevalue == 'B' && !isBool) {
+                                isBool = parent.classList && parent.classList.contains('biaogeB');
+                            }
+
+                            if (isBool) {
                                 hasParentWithClass = true;
                                 hasParentWithClass = true;
                                 parent.style.display = 'none';
                                 parent.style.display = 'none';
                                 break;
                                 break;