diff --git a/src/api/pay/customer.js b/src/api/pay/customer.js new file mode 100644 index 0000000..4fc4c02 --- /dev/null +++ b/src/api/pay/customer.js @@ -0,0 +1,66 @@ +import request from "@/utils/request"; + +//查看客户列表 +export function selectList(data) { + return request({ + url: '/pay/customer/list', + method: 'POST', + data: data + }) +} + +//请求未入住的服务code +export function customerAll() { + return request({ + url: '/pay/customer/all', + method: 'GET' + }) +} + +//添加客户 +export function save(data) { + return request({ + url: '/pay/customer', + method: 'POST', + data: data + }) +} +//修改客户 +export function update(data) { + return request({ + url: `/pay/customer/update/${data.id}`, + method: 'PUT', + data: data + }) +} + +//获取单条 +export function get(orderCustomerId) { + return request({ + url: `/pay/customer/${orderCustomerId}`, + method: 'GET' + }) +} + +//客户信息删除 +export function del(orderCustomerId){ + return request({ + url: `/pay/customer/delete/${orderCustomerId}`, + method: 'DELETE' + }) +} + +//通过ID启动客户 +export function enable(orderCustomerId){ + return request({ + url: `/pay/customer/enable/${orderCustomerId}`, + method: 'GET' + }) +} +//通过ID禁用客户 +export function disable(orderCustomerId){ + return request({ + url: `/pay/customer/disable/${orderCustomerId}`, + method: 'GET' + }) +} diff --git a/src/views/pay/customer/index.vue b/src/views/pay/customer/index.vue new file mode 100644 index 0000000..a3a2b61 --- /dev/null +++ b/src/views/pay/customer/index.vue @@ -0,0 +1,331 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index dd8b15d..8d3dc25 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,7 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, + target: `http://8.130.85.158`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''