diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..738dac3 --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,61 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' +const prefix = '/meter' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..738dac3 --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,61 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' +const prefix = '/meter' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index cb41f8c..ebdebe6 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -1,5 +1,5 @@ /** - * 溯源供方请求接口 + * 客户管理请求接口 */ import request from '../index' import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' @@ -32,7 +32,7 @@ }) } -// 提交数据 +// 新增数据 export function addCustomer(data: object) { return request({ url: '/meter/supplier/submit', @@ -40,7 +40,7 @@ data, }) } -// 更新数据 +// 编辑数据 export function updateCustomer(data: object) { return request({ url: `${prefix}/supplier/update`, @@ -58,3 +58,4 @@ data, }) } + diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..738dac3 --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,61 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' +const prefix = '/meter' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index cb41f8c..ebdebe6 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -1,5 +1,5 @@ /** - * 溯源供方请求接口 + * 客户管理请求接口 */ import request from '../index' import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' @@ -32,7 +32,7 @@ }) } -// 提交数据 +// 新增数据 export function addCustomer(data: object) { return request({ url: '/meter/supplier/submit', @@ -40,7 +40,7 @@ data, }) } -// 更新数据 +// 编辑数据 export function updateCustomer(data: object) { return request({ url: `${prefix}/supplier/update`, @@ -58,3 +58,4 @@ data, }) } + diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts index 58dde63..82693c1 100644 --- a/src/router/modules/customer.ts +++ b/src/router/modules/customer.ts @@ -97,7 +97,7 @@ { path: 'advice', name: 'CustomerAdvice', - component: () => import('@/views/customer/adviceList.vue'), + component: () => import('@/views/customer/advice/adviceList.vue'), meta: { title: '客户关系', icon: 'ep:key', diff --git a/src/api/customer/advice.ts b/src/api/customer/advice.ts new file mode 100644 index 0000000..738dac3 --- /dev/null +++ b/src/api/customer/advice.ts @@ -0,0 +1,61 @@ +/** + * 客户关系-投诉建议请求接口 + */ +import request from '../index' +import type { IAdviceQuery } from '@/views/customer/advice/advice_interface' +const prefix = '/meter' + +// 列表查询 +export function getAdviceList(data: IAdviceQuery) { + return request({ + url: `${prefix}/supplier/listPage?offset=${data.offset}&limit=${data.limit}`, + method: 'post', + data, + }) +} + +// 数据删除 +export function deleteAdvice(data: { id: string }) { + return request({ + url: `${prefix}/supplier/delete`, + method: 'post', + data, + }) +} + +// 查看详情 +export function getAdviceDetail(data: { id: string }) { + return request({ + url: `${prefix}/supplier/detail`, + method: 'post', + data, + }) +} + +// 新增数据 +export function addAdvice(data: object) { + return request({ + url: '/meter/supplier/submit', + method: 'post', + data, + }) +} +// 编辑数据 +export function updateAdvice(data: object) { + return request({ + url: `${prefix}/supplier/update`, + method: 'post', + data, + }) +} + +// 导出列表 +export function exportAdviceList(data: Omit) { + return request({ + url: `${prefix}/supplier/listExport`, + method: 'post', + responseType: 'blob', + data, + }) +} + diff --git a/src/api/customer/customer.ts b/src/api/customer/customer.ts index cb41f8c..ebdebe6 100644 --- a/src/api/customer/customer.ts +++ b/src/api/customer/customer.ts @@ -1,5 +1,5 @@ /** - * 溯源供方请求接口 + * 客户管理请求接口 */ import request from '../index' import type { ICustomerQuery } from '@/views/customer/customerInfo/customer_interface' @@ -32,7 +32,7 @@ }) } -// 提交数据 +// 新增数据 export function addCustomer(data: object) { return request({ url: '/meter/supplier/submit', @@ -40,7 +40,7 @@ data, }) } -// 更新数据 +// 编辑数据 export function updateCustomer(data: object) { return request({ url: `${prefix}/supplier/update`, @@ -58,3 +58,4 @@ data, }) } + diff --git a/src/router/modules/customer.ts b/src/router/modules/customer.ts index 58dde63..82693c1 100644 --- a/src/router/modules/customer.ts +++ b/src/router/modules/customer.ts @@ -97,7 +97,7 @@ { path: 'advice', name: 'CustomerAdvice', - component: () => import('@/views/customer/adviceList.vue'), + component: () => import('@/views/customer/advice/adviceList.vue'), meta: { title: '客户关系', icon: 'ep:key', diff --git a/src/views/customer/advice/adviceList.vue b/src/views/customer/advice/adviceList.vue index e715bad..1ec03b1 100644 --- a/src/views/customer/advice/adviceList.vue +++ b/src/views/customer/advice/adviceList.vue @@ -1,37 +1,39 @@ + + +