工单可以关联客户
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}
|
||||
@@ -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 })
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user