From 62c3a9f28b77311ff5889b1129a1fddbaf66b977 Mon Sep 17 00:00:00 2001
From: xjh <2423579486@qq.com>
Date: Sun, 25 Jun 2023 23:20:26 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=8C=E6=88=90=E5=AE=A2=E6=88=B7?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E6=A8=A1=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/AddCustomerDialog.vue | 177 ++++++++++++++
.../components/DetailCustomerDialog.vue | 99 ++++++++
.../components/EditCustomerDialog.vue | 176 ++++++++++++++
.../index/customer/customer_list/index.vue | 217 ++++++++++++++++++
src/service/customer.js | 61 +++++
5 files changed, 730 insertions(+)
create mode 100644 src/pages/index/customer/customer_list/components/AddCustomerDialog.vue
create mode 100644 src/pages/index/customer/customer_list/components/DetailCustomerDialog.vue
create mode 100644 src/pages/index/customer/customer_list/components/EditCustomerDialog.vue
create mode 100644 src/pages/index/customer/customer_list/index.vue
create mode 100644 src/service/customer.js
diff --git a/src/pages/index/customer/customer_list/components/AddCustomerDialog.vue b/src/pages/index/customer/customer_list/components/AddCustomerDialog.vue
new file mode 100644
index 0000000..84a47af
--- /dev/null
+++ b/src/pages/index/customer/customer_list/components/AddCustomerDialog.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/index/customer/customer_list/components/DetailCustomerDialog.vue b/src/pages/index/customer/customer_list/components/DetailCustomerDialog.vue
new file mode 100644
index 0000000..938b7b4
--- /dev/null
+++ b/src/pages/index/customer/customer_list/components/DetailCustomerDialog.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/index/customer/customer_list/components/EditCustomerDialog.vue b/src/pages/index/customer/customer_list/components/EditCustomerDialog.vue
new file mode 100644
index 0000000..aad9831
--- /dev/null
+++ b/src/pages/index/customer/customer_list/components/EditCustomerDialog.vue
@@ -0,0 +1,176 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/index/customer/customer_list/index.vue b/src/pages/index/customer/customer_list/index.vue
new file mode 100644
index 0000000..74b4440
--- /dev/null
+++ b/src/pages/index/customer/customer_list/index.vue
@@ -0,0 +1,217 @@
+
+
+
+ 客户管理
+ 客户列表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+ 添加
+
+
+
+
+ 批量操作
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 更多
+
+
+
+
+ 详情
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/service/customer.js b/src/service/customer.js
new file mode 100644
index 0000000..80643b4
--- /dev/null
+++ b/src/service/customer.js
@@ -0,0 +1,61 @@
+import {
+ api,
+ downloadFile,
+ createApiUrl
+} from '~/utils/axios';
+
+/**
+ * 获取字典值
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function getDictionary(data) {
+ return api.post('Dictionary.Dictionary/getDictionary', data, {});
+}
+
+/**
+ * 获取客户列表
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function getCustomerList(data) {
+ return api.post('Customer.Customer/getCustomerList', data);
+}
+
+/**
+ * 删除客户
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function deleteCustomer(data) {
+ return api.post('Customer.Customer/deleteCustomer', data, {
+ isTransformResponse: true,
+ isShowSuccessMessage: true,
+ errorMessageText: '删除失败'
+ });
+}
+
+/**
+ * 添加客户
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function addCustomer(data) {
+ return api.post('Customer.Customer/addCustomer', data, {
+ isTransformResponse: true,
+ isShowSuccessMessage: true,
+ errorMessageText: '添加失败'
+ });
+}
+/**
+ * 编辑客户
+ * @param {Object} data
+ * @return {Promise} api
+ */
+export function editCustomer(data) {
+ return api.post('Customer.Customer/editCustomer', data, {
+ isTransformResponse: true,
+ isShowSuccessMessage: true,
+ errorMessageText: '编辑失败'
+ });
+}
\ No newline at end of file