浏览代码

管理费用

caojunjie 2 年之前
父节点
当前提交
3166929aee
共有 1 个文件被更改,包括 6 次插入1 次删除
  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 (name === 'expenseType') {
         if (id == 0) {
         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
           this.inDex = this.contentOption.length
         } else {
         } else {
           for (let item in this.contentOption) {
           for (let item in this.contentOption) {