MrShi
2025-01-13 a09708582ca65d621d14a8c6a3a22222dd7db0d9
admin/src/views/finance/account.vue
@@ -9,7 +9,7 @@
      <el-table-column prop="title" label="收支条目" min-width="100" show-overflow-tooltip />
      <el-table-column prop="companyName" label="收款公司" min-width="100" show-overflow-tooltip />
      <el-table-column label="账户类型" min-width="100" show-overflow-tooltip>
        <template v-slot="{row}">
        <template v-slot="{ row }">
          <span v-if="row.type == 0">对公</span>
          <span v-if="row.type == 1">个人</span>
        </template>
@@ -19,7 +19,8 @@
      <el-table-column prop="bankNo" label="银行账号" min-width="100" show-overflow-tooltip />
      <el-table-column prop="status" label="状态" min-width="100" show-overflow-tooltip>
        <template v-slot="scope">
          <el-switch v-model="scope.row.status" @change="e =>changeStatus(scope.row)" :active-value="0" :inactive-value="1">
          <el-switch v-model="scope.row.status" @change="e => changeStatus(scope.row)" :active-value="0"
            :inactive-value="1">
          </el-switch>
        </template>
      </el-table-column>
@@ -117,13 +118,13 @@
        this.getList()
      })
    },
    getCompany(){
    getCompany() {
      companyGetList({
        model: {type: 2},
        model: { type: 2 },
        capacity: 9999,
        page: 1
      }).then(res => {
       this.queryFormConfig.formItems[1].options = res.records || []
        this.queryFormConfig.formItems[1].options = res.records || []
      })
    },
    handleEdit(row) {
@@ -156,6 +157,7 @@
    },
    handleSizeChange(capacity) {
      this.pagination.pageSize = capacity
      this.getList()
    }
  }
}