diff --git a/yxt-as-ui/src/api/client/customermanagement.js b/yxt-as-ui/src/api/client/customermanagement.js index f47b9a4709..4f2c65e915 100644 --- a/yxt-as-ui/src/api/client/customermanagement.js +++ b/yxt-as-ui/src/api/client/customermanagement.js @@ -4,22 +4,31 @@ export default { // 查询分页列表 listPage: function(params) { return request({ - url: '/crm/v1/crmcustomertemp/asListPage', + url: '/yxtcrm/apiadmin/v1/crmcustomer/asListPage', method: 'post', data: params, headers: { 'Content-Type': 'application/json' } }) }, // 初始化 + customerInit: function(data) { + return request({ + url: '/yxtcrm/apiadmin/v1/crmcustomer/customerInit', + method: 'post', + data: data, + headers: { 'Content-Type': 'application/json' } + }) + }, + // 回显 fetchDetailsBySid: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/fetchSid/' + data, + url: '/yxtcrm/apiadmin/v1/crmcustomer/fetchSid/' + data, method: 'get' }) }, save: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/save', + url: '/yxtcrm/apiadmin/v1/crmcustomer/save', method: 'post', data: data, headers: { 'Content-Type': 'application/json' } @@ -27,7 +36,7 @@ export default { }, update: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/update/' + data.sid, + url: '/yxtcrm/apiadmin/v1/crmcustomer/update/' + data.sid, method: 'post', data: data, headers: { 'Content-Type': 'application/json' } @@ -44,7 +53,7 @@ export default { // 定点企业禁用 disableState: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/disableState', + url: '/yxtcrm/apiadmin/v1/crmcustomer/disableState', method: 'post', data: data, headers: { 'Content-Type': 'application/json' } @@ -53,7 +62,7 @@ export default { // 定点企业启用 enable: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/enable', + url: '/yxtcrm/apiadmin/v1/crmcustomer/enable', method: 'post', data: data, headers: { 'Content-Type': 'application/json' } @@ -61,7 +70,7 @@ export default { }, deleteBySids: function(data) { return request({ - url: '/crm/v1/crmcustomertemp/del/', + url: '/yxtcrm/apiadmin/v1/crmcustomer/del/', method: 'DELETE', data: data, headers: { 'Content-Type': 'application/json' } @@ -121,7 +130,7 @@ export default { // 对接人列表 getListByCustomerSid: function(params) { return request({ - url: '/crm/v1/crmdockingpeople/getListByCustomerSid', + url: '/yxtcrm/v1/crmdockingpeople/getListByCustomerSid', method: 'get', params: params }) @@ -129,7 +138,7 @@ export default { // 禁用对接人信息 disableStateByPerson: function(data) { return request({ - url: '/crm/v1/crmdockingpeople/disableState', + url: '/yxtcrm/v1/crmdockingpeople/disableState', method: 'DELETE', data: data, headers: { 'Content-Type': 'application/json' } @@ -138,7 +147,7 @@ export default { // 启用对接人信息 enableByPerson: function(data) { return request({ - url: '/crm/v1/crmdockingpeople/enable', + url: '/yxtcrm/v1/crmdockingpeople/enable', method: 'DELETE', data: data, headers: { 'Content-Type': 'application/json' } diff --git a/yxt-as-ui/src/views/client/customermanagement/customermanagement.vue b/yxt-as-ui/src/views/client/customermanagement/customermanagement.vue index dca3d40ea6..5329a23600 100644 --- a/yxt-as-ui/src/views/client/customermanagement/customermanagement.vue +++ b/yxt-as-ui/src/views/client/customermanagement/customermanagement.vue @@ -119,6 +119,8 @@ + +
客户类型
@@ -128,6 +130,12 @@
+ + +
车架号
+ +
+