Browse Source

管理费用

caojunjie 2 năm trước cách đây
mục cha
commit
3166929aee
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      src/views/costManagement/index.vue

+ 6 - 1
src/views/costManagement/index.vue

@@ -1349,7 +1349,12 @@ export default {
       }
       if (name === 'expenseType') {
         if (id == 0) {
-          this.contentOption = [...this.contentOption, ...this.pushList]
+          let item = this.contentOption.find(item => {
+            return item.name == "户头";
+          });
+          if (!item){
+            this.contentOption = [...this.contentOption, ...this.pushList]
+          }
           this.inDex = this.contentOption.length
         } else {
           for (let item in this.contentOption) {