From 7e6e964b9b5ff73f785976579a55010f12545d02 Mon Sep 17 00:00:00 2001 From: xd Date: Mon, 27 May 2024 20:31:32 +0800 Subject: [PATCH] 123 --- .../customer/CustomerController.java | 13 ++++ ruoyi-ui/src/api/customer/customer.js | 8 ++ .../src/views/customer/customer/index.vue | 78 +++++++++++++++---- 3 files changed, 82 insertions(+), 17 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java index 4e9f1b3..20f3678 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/customer/CustomerController.java @@ -121,6 +121,19 @@ public class CustomerController extends BaseController return success(customerService.selectCustomerByCusId(cusId)); } + /** + * 获取客户详细信息-错误修订 + */ + @PreAuthorize("@ss.hasPermi('customer:customer:returnUpdate')") + @GetMapping(value = "/returnUpdate/{cusId}") + @Log(title = "客户错误修订", businessType = BusinessType.UPDATE) + public AjaxResult getReturnUpdateInfo(@PathVariable("cusId") String cusId) + { + Customer customer = customerService.selectCustomerByCusId(cusId); + customer.setCusApprovalStatus("1");// 提交状态设置为 审核中 + return success(customer); + } + /** * 新增客户管理 */ diff --git a/ruoyi-ui/src/api/customer/customer.js b/ruoyi-ui/src/api/customer/customer.js index 54a6e57..8068c07 100644 --- a/ruoyi-ui/src/api/customer/customer.js +++ b/ruoyi-ui/src/api/customer/customer.js @@ -17,6 +17,14 @@ export function getCustomer(cusId) { }) } +// 查询客户信息-错判修订 +export function getReturnUpdateCustomer(cusId) { + return request({ + url: '/customer/customer/returnUpdate/' + cusId, + method: 'get' + }) +} + // 客户状态修改 export function changCusStatus(cusId, cusState) { const data = { diff --git a/ruoyi-ui/src/views/customer/customer/index.vue b/ruoyi-ui/src/views/customer/customer/index.vue index 62527e3..bb7eef2 100644 --- a/ruoyi-ui/src/views/customer/customer/index.vue +++ b/ruoyi-ui/src/views/customer/customer/index.vue @@ -94,6 +94,17 @@ v-hasPermi="['customer:customer:export']" >导出 + + 错误修订 + @@ -168,7 +179,7 @@ - + @@ -889,7 +900,7 @@ }