From 159183f7c75f7acb0ccdc016cd4cdcefba58e77a Mon Sep 17 00:00:00 2001 From: lwj <3529558005@qq.com> Date: Fri, 9 Aug 2024 16:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=BB=B4=E6=8A=A4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pay/customer.js | 64 ++++++ src/views/pay/customer/index.vue | 370 +++++++++++++++++++++++++++++++ vue.config.js | 2 +- 3 files changed, 435 insertions(+), 1 deletion(-) create mode 100644 src/api/pay/customer.js create mode 100644 src/views/pay/customer/index.vue diff --git a/src/api/pay/customer.js b/src/api/pay/customer.js new file mode 100644 index 0000000..4e95a86 --- /dev/null +++ b/src/api/pay/customer.js @@ -0,0 +1,64 @@ +import request from '@/utils/request' + +//查询客户列表 +export function selectList(data){ + return request({ + url: "/pay/customer/list", + method: "POST", + data:data + }) +} +//获取未入住的code +export function customerAll(data){ + return request({ + url: "/pay/customer/all", + method: "GET", + data:data + }) +} + + +//添加 +export function save(data){ + return request({ + url: "/pay/customer", + method: "POST", + data:data + }) +} +//修改 +export function update(data){ + return request({ + url: `/pay/customer/${data.id}`, + method: "PUT", + data:data + }) +} +//获取单条 +export function get(id){ + return request({ + url: "/pay/customer/"+id, + method: "GET", + }) +} + +//客户信息删除 +export function del(id){ + return request({ + url: `/pay/customer/${id}`, + method: "DELETE", + }) +} +//通过id启用客户 +export function enable(id){ + return request({ + url: `/pay/customer/enable/${id}`, + }) +} + +//通过id禁用客户 +export function disable(id){ + return request({ + url: `/pay/customer/disable/${id}`, + }) +} diff --git a/src/views/pay/customer/index.vue b/src/views/pay/customer/index.vue new file mode 100644 index 0000000..988ede8 --- /dev/null +++ b/src/views/pay/customer/index.vue @@ -0,0 +1,370 @@ + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + 新增 + + + + + 导出 + + + + + + + + + + + + {{ customer.appName }} + + + + + + + + + + + + + + + + + + 客户名称 + {{ customer.appName }} + + + 客户编码 + {{ customer.appCode }} + + + 创建人 + {{ customer.createBy }} + + + 创建日期 + {{ customer.createTime }} + + + 近5笔交易记录 + + + + + + + + + + + + + + + + + + + + {{form.appCode}} + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + + 取 消 + 提 交 + + + + + + + + + + + diff --git a/vue.config.js b/vue.config.js index 45eedf4..0b71d2a 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://47.116.173.75`, + target: `http://47.116.173.75/prod-api`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''