<template>
  <div class="h-full">
    <w-grid
      ref="corpCustFeatureRetGridRef"
      title="一般企业特征变量列表"
      :data-url="Environment.apiContextPath('api/irbs/corpfeatureret/corpquery')"
      :fetch-data-url="Environment.apiContextPath('api/irbs/corpfeatureret/corpquery')"
      :sort-no="true"
      :checkbox-selection="false"
      :query-form-cols-num="3"
      :query-form-fields="corpCustFeatureRetGrid.queryFormFields"
      :columns="corpCustFeatureRetGrid.columns"
      :toolbar-actions="corpCustFeatureRetGrid.buttons"
      :pageable="false"
    ></w-grid>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive } from 'vue';
import { useQuasar } from 'quasar';
import { Environment, EnumTools, DictionaryTools, Options, Formater, axios, NotifyManager, Tools } from 'platform-core';
import {
  RiskExposureOptions,
  StartWayOptions,
  RiskCustTypeOptions,
  isValidFormat,
  RiskExposureTypeFormat,
  RiskCustTypeFormat,
  StartWayFormat,
} from './QueryItems.ts';

const $q = useQuasar();
const corpCustFeatureRetGridRef = ref();

const corpCustFeatureRetGrid = {
  buttons: ['query', 'reset', 'separator', 'export'],
  queryFormFields: [
    { label: '客户编号', name: 'custNo', type: 'text' },
    { label: '客户名称', name: 'custName', type: 'text' },
  ],
  columns: [
    { label: '客户编号', name: 'custNo' },
    { label: '客户名称', name: 'custName' },
    { label: 'CFI', name: 'gm014' },
    { label: 'CFF', name: 'gm015' },
    { label: 'CFO', name: 'gm013' },
    { label: 'CF', name: 'gm016' },
    { label: 'EBIT利息保障倍数', name: 'cz066' },
    { label: 'EBIT利息保障倍数增长率', name: 'fz027' },
    { label: 'EBIT与负债比', name: 'xj028' },
    { label: 'EBIT与长期负债（非流动负债）比', name: 'xj027' },
    { label: '保守速动比率', name: 'cz027' },
    { label: '保守速动比率2', name: 'cz028' },
    { label: '财务费用率', name: 'yl015' },
    { label: '财务费用占借款比率', name: 'cz060' },
    { label: '偿债保障比率', name: 'cz056' },
    { label: '成本费用利润率', name: 'yl006' },
    { label: '筹资性现金流与所有者权益合计比率', name: 'xj034' },
    { label: '存货流动负债比', name: 'cz030' },
    { label: '存货与销售成本比率', name: 'yl034' },
    { label: '存货与总资产比率', name: 'cz041' },
    { label: '存货增长率', name: 'fz008' },
    { label: '存货周转率', name: 'yy002' },
    { label: '存货周转月数', name: 'yy016' },
    { label: '短期借款还款月数', name: 'yy021' },
    { label: '单位资产留存收益', name: 'yl040' },
    { label: '短期投资与流动资产合计之比', name: 'cz051' },
    { label: '短债比率', name: 'cz059' },
    { label: '对外担保比净资产', name: 'db003' },
    { label: '对外担保比营业收入', name: 'db002' },
    { label: '对外担保比总资产', name: 'db001' },
    { label: '非筹资性现金净流入与流动负债比率', name: 'xj031' },
  ],
};
</script>
