工单可以关联客户

This commit is contained in:
2026-04-29 14:52:42 +08:00
parent dc6e423299
commit af5dc954e3
17 changed files with 1993 additions and 83 deletions
+28
View File
@@ -0,0 +1,28 @@
import api from './index'
export const customerApi = {
// 新增客户
add(data) {
return api.post('/customer/add', data)
},
// 编辑客户
update(data) {
return api.post('/customer/update', data)
},
// 删除客户
delete(data) {
return api.post('/customer/delete', data)
},
// 客户列表
list(data) {
return api.post('/customer/list', data)
},
// 客户详情
get(data) {
return api.post('/customer/get', data)
},
}
+10
View File
@@ -45,4 +45,14 @@ export const workOrderApi = {
deleteCommit(workOrderId, commitId) {
return api.post('/work_order/delete_commit', { workOrderId, commitId })
},
/** 关联客户到工单 */
linkCustomer(workOrderId, customerId) {
return api.post('/work_order/link_customer', { work_order_id: workOrderId, customer_id: customerId })
},
/** 解除工单与客户关联 */
unlinkCustomer(workOrderId, customerId) {
return api.post('/work_order/unlink_customer', { work_order_id: workOrderId, customer_id: customerId })
},
}