diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerQuoteController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerQuoteController.java index 58c49b5a..4362f014 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerQuoteController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysCustomerQuoteController.java @@ -102,20 +102,20 @@ public class SysCustomerQuoteController extends BaseController String loginName = ShiroUtils.getLoginName(); List sysUserlist = sysUserService.selectRoleToUserList("ywyRole"); sysUserlist.add(curUser); - if (roleKeys.contains("ywjlRole")) { - List findUser = sysUserlist.stream().filter(item -> (item.getDeptId().equals(curUser.getDeptId()))).collect(Collectors.toList()); - Set user = findUser.stream().map(SysUser::getLoginName).collect(Collectors.toSet()); - startPage(); - List list2 = list.stream().filter(item -> user.contains(item.getApplyUser())).collect(Collectors.toList()); - return getDataTable(list2); - } - // 业务员角色只能看到自己创建的数据 - if (roleKeys.contains("ywyRole")) { - sysCustomerQuoteVo.setApplyUser(curUser.getLoginName()); - startPage(); - List list2 = sysCustomerQuoteService.selectSysCustomerQuoteList(sysCustomerQuoteVo); - return getDataTable(list2); - } +// if (roleKeys.contains("ywjlRole")) { +// List findUser = sysUserlist.stream().filter(item -> (item.getDeptId().equals(curUser.getDeptId()))).collect(Collectors.toList()); +// Set user = findUser.stream().map(SysUser::getLoginName).collect(Collectors.toSet()); +// startPage(); +// List list2 = list.stream().filter(item -> user.contains(item.getApplyUser())).collect(Collectors.toList()); +// return getDataTable(list2); +// } +// // 业务员角色只能看到自己创建的数据 +// if (roleKeys.contains("ywyRole")) { +// sysCustomerQuoteVo.setApplyUser(curUser.getLoginName()); +// startPage(); +// List list2 = sysCustomerQuoteService.selectSysCustomerQuoteList(sysCustomerQuoteVo); +// return getDataTable(list2); +// } return getDataTable(list); }catch(NullPointerException e){ throw new NullPointerException("当前用户没有申请客户报价信息"); @@ -240,7 +240,6 @@ public class SysCustomerQuoteController extends BaseController String processInstanceId = task.getProcessInstanceId(); ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult(); SysCustomerQuoteVo sysCustomerQuoteVo = sysCustomerQuoteService.selectSysCustomerQuoteById(new Long(processInstance.getBusinessKey())); - sysCustomerQuoteVo.setTaskId(taskId); mmap.put("formData", sysCustomerQuoteVo); mmap.put("taskId", taskId); String verifyName = task.getTaskDefinitionKey().substring(0, 1).toUpperCase() + task.getTaskDefinitionKey().substring(1); diff --git a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html index dc5aa37c..984bb0d2 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html @@ -191,7 +191,7 @@ var todoUserIdList = row.todoUserId.split(","); if(todoUserIdList.includes(loginName)){ var nodeName = row.taskName=='驳回调整'?' 调整申请':' 审批'; - actions.push(' '+nodeName+' '); + actions.push(' '+nodeName+' '); } } // 审批历史 diff --git a/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html b/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html index 6d2b761c..5308a760 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskYwjlVerify.html @@ -1,5 +1,5 @@ - + @@ -16,7 +16,7 @@
- +
@@ -49,7 +49,7 @@
-
@@ -69,8 +69,7 @@
- @@ -86,8 +85,8 @@
- +
@@ -117,25 +116,24 @@

计算

- - + +
-
- - + +
- - + +
-
- - +
+ +
-
- - +
+ +
@@ -162,7 +160,7 @@
选择报价信息 - + 添加物料
@@ -176,8 +174,12 @@
- + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html b/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html index f9f186bc..5126ce41 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/taskZozjVerify.html @@ -454,6 +454,7 @@ } var taskId = [[${taskId}]]; var tableData = $("#bootstrap-table-Quote-child5").bootstrapTable('getData'); + $("input[name='customerQuoteChildList']").val(JSON.stringify(tableData)); $.operate.save(prefix + "/complete/" + taskId, $('#form-customerQuote-zozj').serialize()); } }