diff --git a/src/pages/organization/OrganizationCompany.vue b/src/pages/organization/OrganizationCompany.vue index 2565413..08246a8 100644 --- a/src/pages/organization/OrganizationCompany.vue +++ b/src/pages/organization/OrganizationCompany.vue @@ -5,7 +5,7 @@ 大区 - @@ -80,7 +80,7 @@
- +
@@ -223,7 +223,7 @@ this.pageNum = value; this.getData(); }, - deleteRegion: function () { + deleteOrganizational: function () { // 删除大区 let that = this; if(that.currentId === 0){ diff --git a/src/pages/organization/OrganizationCustomer.vue b/src/pages/organization/OrganizationCustomer.vue index 0af1b0f..ab6a83b 100644 --- a/src/pages/organization/OrganizationCustomer.vue +++ b/src/pages/organization/OrganizationCustomer.vue @@ -1,10 +1,395 @@ diff --git a/src/pages/organization/OrganizationRegion.vue b/src/pages/organization/OrganizationRegion.vue index 430d724..947786a 100644 --- a/src/pages/organization/OrganizationRegion.vue +++ b/src/pages/organization/OrganizationRegion.vue @@ -59,7 +59,7 @@
- +
@@ -165,7 +165,7 @@ this.pageNum = value; this.getData(); }, - deleteRegion: function () { + deleteOrganizational: function () { // 删除大区 let that = this; if(that.currentId === 0){ @@ -247,7 +247,6 @@ service.postOrganizationRegionModify(request, function (res) { that.btnLoading = false; let data = res.data; - debugger if(data.code === "0000"){ that.$Message.success("修改成功"); that.hide(); diff --git a/src/pages/organization/OrganizationStore.vue b/src/pages/organization/OrganizationStore.vue index 8ebeb15..e08f837 100644 --- a/src/pages/organization/OrganizationStore.vue +++ b/src/pages/organization/OrganizationStore.vue @@ -1,10 +1,427 @@ diff --git a/src/services/organization/OrganizationService.js b/src/services/organization/OrganizationService.js index 2360168..0777139 100644 --- a/src/services/organization/OrganizationService.js +++ b/src/services/organization/OrganizationService.js @@ -72,7 +72,82 @@ export function postOrganizationCompanyAdd(params, call, errorCallback) { return http.post('/organization/company/add', params).then(call).catch(errorCallback) } +/** + * 查询客户列表 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationCustomerList(params, call, errorCallback) { + return http.post('/organization/customer/list', params).then(call).catch(errorCallback) +} + +/** + * 添加组织 客户 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationCustomerAdd(params, call, errorCallback) { + return http.post('/organization/customer/add', params).then(call).catch(errorCallback) +} + +/** + * 删除 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationCustomerRemoveId(params, call, errorCallback) { + return http.post('/organization/customer/remove/id', params).then(call).catch(errorCallback) +} +/** + * 查询客户店铺列表 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationStoreList(params, call, errorCallback) { + return http.post('/organization/store/list', params).then(call).catch(errorCallback) +} + +/** + * 添加客户店铺 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationStoreAdd(params, call, errorCallback) { + return http.post('/organization/store/add', params).then(call).catch(errorCallback) +} + +/** + * 修改组织 客户 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationStoreModify(params, call, errorCallback) { + return http.post('/organization/store/modify', params).then(call).catch(errorCallback) +} + +/** + * 删除客户店铺 + * @param params 参数 + * @param call 成功回调 + * @param errorCallback 错误回调 + * @returns {Promise} + */ +export function postOrganizationStoreRemoveId(params, call, errorCallback) { + return http.post('/organization/store/remove/id', params).then(call).catch(errorCallback) +} export default { getOrganizationRegionList, @@ -80,5 +155,12 @@ export default { postOrganizationRegionAdd, postOrganizationRemoveId, postOrganizationCompanyList, - postOrganizationCompanyAdd + postOrganizationCompanyAdd, + postOrganizationCustomerRemoveId, + postOrganizationCustomerList, + postOrganizationCustomerAdd, + postOrganizationStoreList, + postOrganizationStoreAdd, + postOrganizationStoreModify, + postOrganizationStoreRemoveId }