wupengfei
2 天以前 e81667dd6befdd9aa2bb130ceac18eed03fb45b0
src/views/CustomerManage/CustomerManage.vue
@@ -57,11 +57,8 @@
  AppContainer,
  QueryFilterItem,
  useTable,
  useFormDialog,
  defineOperationBtns,
} from '@bole-core/components';
import * as enterpriseServices from '@/services/api/enterprise';
import { CustomerManageColumns } from './constants';
import {
  EnumEnterpriseCooperationStatusText,
  EnumEnterpriseCooperationSignStatusText,
@@ -80,6 +77,14 @@
  editBtn: {
    emits: {
      onClick: (role) => goAddOrEdit(role),
    },
  },
  insureConfigureBtn: {
    emits: {
      onClick: (role) => goInsureProductConfigure(role),
    },
    extraProps: {
      hide: (role: API.GetPartyAEnterprisesQueryResultItem) => !role.isConfigured,
    },
  },
};
@@ -158,6 +163,10 @@
          return '';
        },
      },
      isConfigured: {
        formatter: (row: API.GetPartyAEnterprisesQueryResultItem) =>
          row.isConfigured ? '已配置' : '未配置',
      },
    },
  }
);
@@ -181,4 +190,13 @@
    },
  });
}
function goInsureProductConfigure(row: API.GetPartyAEnterprisesQueryResultItem) {
  router.push({
    name: 'InsureProductConfigure',
    params: {
      id: row?.id ?? '',
    },
  });
}
</script>