From 370ffba5c1747487831ece0beb6fd709591bb48e Mon Sep 17 00:00:00 2001 From: 86191 <2160251938@qq.com> Date: Thu, 8 Aug 2024 20:39:59 +0800 Subject: [PATCH] =?UTF-8?q?feat():=E5=A2=9E=E5=8A=A0=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=92=8C=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 | 66 +++++++ src/views/pay/customer/index.vue | 318 +++++++++++++++++++++++++++++++ 2 files changed, 384 insertions(+) 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..d973a4f --- /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/${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/${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..5ea711d --- /dev/null +++ b/src/views/pay/customer/index.vue @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + 新增 + + + + 导出 + + + + + + + + + + {{ customer.appName }} + + + + + + + + + + + 客户名称 + {{customer.appName}} + + + 客户编码 + {{ customer.appCode }} + + + 创建人 + {{customer.createBy}} + + + 创建时间 + {{customer.createTime}} + + + 近五笔交易记录 + + + + + + + + + + + + + + + + + + {{form.appCode}} + + + + + + + + + + + {{ dict.label }} + + + + + + + + + + + + + 取 消 + 提交 + + + + + + + +