|
|
@@ -24,6 +24,11 @@
|
|
|
{{ scope.row.status == 0 ? "已下线" : "上线中" }}
|
|
|
</el-tag>
|
|
|
</template>
|
|
|
+ <template #firmType="scope">
|
|
|
+ <el-tag :type="scope.row.firmType === 1 ? 'primary' : 'info'">
|
|
|
+ {{ scope.row.firmType === 1 ? "企业" : "渠道" }}
|
|
|
+ </el-tag>
|
|
|
+ </template>
|
|
|
<template #balance="scope">
|
|
|
<span class="money-text primary">¥ {{ formatMoney(scope.row.balance) }}</span>
|
|
|
</template>
|
|
|
@@ -140,12 +145,26 @@ const formatMoney = (value: number | undefined | null): string => {
|
|
|
const searchConfig: ISearchConfig = reactive({
|
|
|
permPrefix: "business:firm-info",
|
|
|
formItems: [
|
|
|
+ {
|
|
|
+ type: "select",
|
|
|
+ label: "类型",
|
|
|
+ prop: "firmType",
|
|
|
+ attrs: {
|
|
|
+ placeholder: "请选择类型",
|
|
|
+ clearable: true,
|
|
|
+ style: { width: "150px" },
|
|
|
+ },
|
|
|
+ options: [
|
|
|
+ { label: "企业", value: 1 },
|
|
|
+ { label: "渠道", value: 2 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
type: "input",
|
|
|
- label: "企业名称",
|
|
|
+ label: "名称",
|
|
|
prop: "name",
|
|
|
attrs: {
|
|
|
- placeholder: "企业名称",
|
|
|
+ placeholder: "企业/渠道名称",
|
|
|
clearable: true,
|
|
|
style: { width: "200px" },
|
|
|
},
|
|
|
@@ -201,7 +220,14 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
// 表格列配置
|
|
|
cols: [
|
|
|
{ type: "selection", width: 55, align: "center" },
|
|
|
- { label: "企业名称", prop: "name" },
|
|
|
+ {
|
|
|
+ label: "类型",
|
|
|
+ prop: "firmType",
|
|
|
+ width: 80,
|
|
|
+ templet: "custom",
|
|
|
+ slotName: "firmType",
|
|
|
+ },
|
|
|
+ { label: "名称", prop: "name" },
|
|
|
{ label: "员工数", prop: "empNum", width: 80 },
|
|
|
{
|
|
|
label: "当前余额",
|
|
|
@@ -267,6 +293,7 @@ const contentConfig: IContentConfig<FirmInfoPageQuery> = reactive({
|
|
|
type: "primary",
|
|
|
icon: "Setting",
|
|
|
},
|
|
|
+ show: (row: any) => row.firmType === 1, // 仅企业类型显示邀请码
|
|
|
},
|
|
|
"edit",
|
|
|
"delete",
|
|
|
@@ -292,12 +319,22 @@ const addModalConfig: IModalConfig<FirmInfoForm> = reactive({
|
|
|
},
|
|
|
// 表单项配置
|
|
|
formItems: [
|
|
|
+ {
|
|
|
+ type: "radio",
|
|
|
+ label: "类型",
|
|
|
+ prop: "firmType",
|
|
|
+ initialValue: 1,
|
|
|
+ options: [
|
|
|
+ { label: "企业", value: 1 },
|
|
|
+ { label: "渠道", value: 2 },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
type: "input",
|
|
|
attrs: {
|
|
|
- placeholder: "企业名称",
|
|
|
+ placeholder: "名称",
|
|
|
},
|
|
|
- label: "企业名称",
|
|
|
+ label: "名称",
|
|
|
prop: "name",
|
|
|
},
|
|
|
{
|