wupengfei
2 天以前 e81667dd6befdd9aa2bb130ceac18eed03fb45b0
src/views/CustomerManage/CustomerManage.vue
@@ -79,6 +79,14 @@
      onClick: (role) => goAddOrEdit(role),
    },
  },
  insureConfigureBtn: {
    emits: {
      onClick: (role) => goInsureProductConfigure(role),
    },
    extraProps: {
      hide: (role: API.GetPartyAEnterprisesQueryResultItem) => !role.isConfigured,
    },
  },
};
const { checkSubModuleItemShow, column, operationBtns } = useAccess({
@@ -155,6 +163,10 @@
          return '';
        },
      },
      isConfigured: {
        formatter: (row: API.GetPartyAEnterprisesQueryResultItem) =>
          row.isConfigured ? '已配置' : '未配置',
      },
    },
  }
);
@@ -178,4 +190,13 @@
    },
  });
}
function goInsureProductConfigure(row: API.GetPartyAEnterprisesQueryResultItem) {
  router.push({
    name: 'InsureProductConfigure',
    params: {
      id: row?.id ?? '',
    },
  });
}
</script>