From 9476b458c82f256e99edb25e2ddf409dd1b999e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E5=A4=A9=E6=89=AC?= <18784771@qq.com>
Date: Sun, 21 Nov 2021 16:39:18 +0800
Subject: [PATCH] =?UTF-8?q?fix=20=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE=20?=
=?UTF-8?q?=E5=AE=A2=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/api/sales.js | 9 +++++
.../Fields/ClientCategoriesSelect.vue | 10 ++---
frontend/src/views/client/Client.vue | 40 +++++++++++++++----
3 files changed, 46 insertions(+), 13 deletions(-)
diff --git a/frontend/src/api/sales.js b/frontend/src/api/sales.js
index 838f563..094d70d 100644
--- a/frontend/src/api/sales.js
+++ b/frontend/src/api/sales.js
@@ -184,6 +184,15 @@ export function clientCategoriesDestroy(form) {
})
}
+export function clientCategoriesOptions(params) {
+ return axios({
+ url: '/api/client_categories/options',
+ headers: { 'X-CSRFToken': Cookies.get('csrftoken') },
+ method: 'get',
+ params,
+ })
+}
+
// SalesPaymentRecord
export function salesPaymentRecord(params) {
return axios({
diff --git a/frontend/src/components/Fields/ClientCategoriesSelect.vue b/frontend/src/components/Fields/ClientCategoriesSelect.vue
index 2f05a17..5fd6216 100644
--- a/frontend/src/components/Fields/ClientCategoriesSelect.vue
+++ b/frontend/src/components/Fields/ClientCategoriesSelect.vue
@@ -1,7 +1,7 @@
@@ -11,7 +11,7 @@