diff --git a/api/customer.js b/api/customer.js
new file mode 100644
index 0000000..8cfaae6
--- /dev/null
+++ b/api/customer.js
@@ -0,0 +1,28 @@
+import api from './index.js'
+
+export const customerApi = {
+ // 客户列表
+ list(params = {}) {
+ return api.post('/customer/list', params)
+ },
+
+ // 客户详情
+ get(id) {
+ return api.post('/customer/get', { id })
+ },
+
+ // 新增客户
+ add(data) {
+ return api.post('/customer/add', data)
+ },
+
+ // 编辑客户
+ update(data) {
+ return api.post('/customer/update', data)
+ },
+
+ // 删除客户
+ delete(id) {
+ return api.post('/customer/delete', { id })
+ }
+}
diff --git a/manifest.json b/manifest.json
index 2b7462f..a94819a 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "Operations",
"appid" : "__UNI__8A0DE5E",
"description" : "Operations(运营)的缩写,一个前后端分离的工作流/运营管理系统。",
- "versionName" : "1.3.3",
- "versionCode" : "133",
+ "versionName" : "1.4.3",
+ "versionCode" : "143",
"transformPx" : false,
"app-plus" : {
"usingComponents" : true,
diff --git a/pages/warehouse/add-item.vue b/pages/warehouse/add-item.vue
index e153856..f8b0739 100644
--- a/pages/warehouse/add-item.vue
+++ b/pages/warehouse/add-item.vue
@@ -34,6 +34,50 @@
备注
+
+
+
+ 关联客户
+
+
+
+
+ {{ (customer.last_name || '') + (customer.first_name ? ' ' + customer.first_name : '') }}
+ ×
+
+
+
+
+
+
+
+
+
+
+
+ {{ (customer.last_name || '') + (customer.first_name ? ' ' + customer.first_name : '') }}
+ {{ customer.primary_phone }}
+
+
+
+ 未找到匹配的客户
+
+
@@ -68,6 +112,7 @@