From e5e79769db31b3f64eb7df5eec9543a5241b31f9 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期二, 02 六月 2026 22:13:15 +0800
Subject: [PATCH] 提交 山西正德新型建材有限公司 提交配置文件

---
 src/api/collaborativeApproval/enterpriseBook.js |   67 +++++++++++++++++++++++++++++++++
 1 files changed, 67 insertions(+), 0 deletions(-)

diff --git a/src/api/collaborativeApproval/enterpriseBook.js b/src/api/collaborativeApproval/enterpriseBook.js
new file mode 100644
index 0000000..2140b89
--- /dev/null
+++ b/src/api/collaborativeApproval/enterpriseBook.js
@@ -0,0 +1,67 @@
+import request from '@/utils/request'
+
+// 鏌ヨ涓汉閫氳褰�
+// 涓汉閫氳褰曢�氬父鏄敤鎴锋敹钘忔垨棰戠箒鑱旂郴鐨勪汉鍛�
+export function getPersonalContacts(page,query) {
+  return request({
+    url: '/staffContactsPersonal/getList',
+    method: 'get',
+    params: {
+      ...page,
+      ...query  
+    }
+  })
+}
+
+// 娣诲姞鑱旂郴浜哄埌涓汉閫氳褰�
+export function addPersonalContact(data) {
+  return request({
+    url: '/staffContactsPersonal/add',
+    method: 'post',
+    data: data
+  })
+}
+
+// 浠庝釜浜洪�氳褰曠Щ闄よ仈绯讳汉
+export function removePersonalContact(id) {
+  return request({
+    url: '/staffContactsPersonal/delete/' + id,
+    method: 'delete'
+  })
+}
+
+// 鏌ヨ鍏叡閫氳褰�
+// 鍏叡閫氳褰曢�氬父鏄墍鏈夊憳宸ュ彲瑙佺殑鑱旂郴鏂瑰紡
+export function getPublicContacts(query) {
+  return request({
+    url: '/staff/contacts/public/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 鏌ヨ鍗曚綅閫氳褰�
+// 鍗曚綅閫氳褰曢�氬父鎸夐儴闂ㄧ粍缁囩殑鍛樺伐鑱旂郴鏂瑰紡
+export function getCompanyContacts(query) {
+  return request({
+    url: '/staff/contacts/company/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 鏌ヨ閮ㄩ棬閫氳褰曟爲缁撴瀯
+export function getDepartmentTree() {
+  return request({
+    url: '/staff/contacts/department/tree',
+    method: 'get'
+  })
+}
+
+// 鑾峰彇鍛樺伐璇︾粏淇℃伅
+export function getEmployeeDetail(employeeId) {
+  return request({
+    url: '/staff/staffOnJob/' + employeeId,
+    method: 'get'
+  })
+}
\ No newline at end of file

--
Gitblit v1.9.3