diff --git a/src/api/clue/index.ts b/src/api/clue/index.ts index 6f54f21..d318ef1 100644 --- a/src/api/clue/index.ts +++ b/src/api/clue/index.ts @@ -80,4 +80,11 @@ export const createAppointment = (params: any) => defHttp.post({ url: '/dating-c export const editAppointment = (params: any) => defHttp.post({ url: '/dating-clue-service/user/edit/dating-store-appointment/by-telemarketer', params }) -export const evaluateService = (params: any) => defHttp.post({ url: '/dating-clue-service/user/evaluate/custom-service', params }) \ No newline at end of file +export const evaluateService = (params: any) => defHttp.post({ url: '/dating-clue-service/user/evaluate/custom-service', params }) + + +export const getContractList = (params: any) => + defHttp.get>({ + url: '/dating-agency-mall/user/page/customized-service-contract/by/dating-store-team', + params, +}) \ No newline at end of file diff --git a/src/locales/lang/zh-CN/routes/invite.ts b/src/locales/lang/zh-CN/routes/invite.ts index 40f54aa..0c54170 100644 --- a/src/locales/lang/zh-CN/routes/invite.ts +++ b/src/locales/lang/zh-CN/routes/invite.ts @@ -3,5 +3,7 @@ export default { index: '待分配线索', list: '已分配线索', myList: '我的线索', - seasList: '公海线索' + seasList: '公海线索', + market: '运营管理', + contract: '合同列表' } diff --git a/src/router/menu.ts b/src/router/menu.ts index bd2ec0e..b447268 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -126,6 +126,30 @@ const inviteMenu: Menu = { ], } +const marketMenu: Menu = { + path: '/market', + name: 'Market', + component: 'LAYOUT', + redirect: '/market/contract', + meta: { + orderNo: 90005, + hideChildrenInMenu: false, + icon: 'ant-design:file-sync-outlined', + title: 'routes.invite.market', + }, + children: [ + { + path: 'contract', + name: 'Contract', + component: '/market/contract/index.vue', + meta: { + title: 'routes.invite.contract', + }, + }, + ], +} + + const systemMenu: Menu = { path: '/system', name: 'System', @@ -169,6 +193,7 @@ const appMenuList: Menu[] = [ workbenchMenu, clueMenu, inviteMenu, + marketMenu, systemMenu, ] // 测试账号:15014242835 diff --git a/src/views/market/contract/data.ts b/src/views/market/contract/data.ts new file mode 100644 index 0000000..5d27621 --- /dev/null +++ b/src/views/market/contract/data.ts @@ -0,0 +1,54 @@ +import { BasicColumn, FormSchema } from '/@/components/Table' + +export const contactStatusList = [ + { label: '未开始', value: 1 }, + { label: '生效中', value: 2 }, + { label: '已结束', value: 3 }, + { label: '已废弃', value: 4 }, +] + +export const tableColumns: BasicColumn[] = [ + { title: '甲方标识', dataIndex: 'firstPartyIdentityNo' }, + { width: 110, title: '甲方经办人', dataIndex: 'firstPartyName' }, + { title: '乙方标识', dataIndex: 'secondPartyIdentityNo' }, + { title: '乙方经办人', dataIndex: 'secondPartyName' }, + { width: 90, title: '签订日期', dataIndex: 'signDate' }, + { width: 90, title: '开始日期', dataIndex: 'startDate' }, + { width: 90, title: '结束日期', dataIndex: 'endDate' }, + { width: 80, title: '合同状态', dataIndex: 'status', + customRender: ({ text }) => { + return contactStatusList.find((find) => find.value === text)?.label + }, + }, + { width: 80, title: '合同金额', dataIndex: 'amount' }, + // { width: 160, title: '付款凭证', dataIndex: 'voucherImageList', slots: { customRender: 'voucherImageList' } }, + { width: 160, title: '合同凭证', dataIndex: 'contractImageList', slots: { customRender: 'contractImageList' } }, + { width: 120, title: '合同备注', dataIndex: 'remark' }, +] + +export const tableFormSchema: FormSchema[] = [ + { + field: 'datingStoreCustomerIdentityNo', + label: '客户身份证', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: 'datingStoreCustomerName', + label: '客户姓名', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: 'datingStoreCustomerPhone', + label: '客户联系号码', + component: 'Input', + colProps: { span: 6 }, + }, + { + field: 'createTime', + label: '签订日期', + component: 'RangePicker', + colProps: { span: 6 }, + }, +] \ No newline at end of file diff --git a/src/views/market/contract/index.vue b/src/views/market/contract/index.vue new file mode 100644 index 0000000..69de543 --- /dev/null +++ b/src/views/market/contract/index.vue @@ -0,0 +1,111 @@ + + + + +