|
|
@@ -0,0 +1,147 @@
|
|
|
+<template>
|
|
|
+ <div class="service-provider-recommend">
|
|
|
+ <bs-table v-bind="tableOptions">
|
|
|
+ <!-- <template #searchRight>
|
|
|
+ <div>
|
|
|
+ <a-button type="primary" @click="openCuleDrawer">
|
|
|
+ <span>服务商入库登记</span>
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
+ </template> -->
|
|
|
+ </bs-table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script setup lang="jsx">
|
|
|
+import { ref, reactive } from "vue"
|
|
|
+import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
|
|
|
+import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
|
|
|
+const {
|
|
|
+ tableOptions,
|
|
|
+ setTablePropsValue: setValue,
|
|
|
+ getTablePropsValue: getValue,
|
|
|
+} = useBsTable({
|
|
|
+ tableOptions: {
|
|
|
+ url: '',
|
|
|
+ gridOptions: {
|
|
|
+ loading: false,
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ type: 'seq',
|
|
|
+ width: 80,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'id',
|
|
|
+ title: '状态',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'id',
|
|
|
+ title: '流水号',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'id',
|
|
|
+ title: '服务商名称',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name1',
|
|
|
+ title: '服务商ID',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '服务商地址',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '归属区域',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '服务商类型',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '注册来源',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '注册时间',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ title: '归属营销人员',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ // fixed: 'right',
|
|
|
+ cellRender: {
|
|
|
+ name: 'CellOption',
|
|
|
+ extraProps: {
|
|
|
+ buttons: [
|
|
|
+ {
|
|
|
+ title: '查看详情',
|
|
|
+ code: 'view',
|
|
|
+ display: ({ row }) => {
|
|
|
+ return DISPLAY_STATE.VISIBLE;
|
|
|
+ },
|
|
|
+ disabled({ row }) {
|
|
|
+ return false;
|
|
|
+ },
|
|
|
+ onClick({ row }) { },
|
|
|
+ extraProps: {},
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ searchConfig: {
|
|
|
+ enabled: true,
|
|
|
+ fieldSpan: 4,
|
|
|
+ fields: [
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '客户名称',
|
|
|
+ component: 'a-input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入客户名称',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '客户地址',
|
|
|
+ component: 'a-input',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入客户地址',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'name',
|
|
|
+ label: '客户类型',
|
|
|
+ component: 'a-select',
|
|
|
+ componentProps: {
|
|
|
+ placeholder: '请输入客户类型',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ onSearch() {
|
|
|
+ fetchTableData();
|
|
|
+ },
|
|
|
+ onReset() {
|
|
|
+ fetchTableData();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ pagerConfig: {
|
|
|
+ enabled: true,
|
|
|
+ pageSize: 10,
|
|
|
+ pageNum: 1,
|
|
|
+ total: 0,
|
|
|
+ isFixed: false
|
|
|
+ },
|
|
|
+ toolbarConfig: {
|
|
|
+ onRefresh() {
|
|
|
+ fetchTableData();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+});
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped></style>
|