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 b115a659..5f386507 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 @@ -98,11 +98,6 @@ public class SysCustomerQuoteController extends BaseController SysUser curUser = ShiroUtils.getSysUser(); Long userId = curUser.getUserId(); Set roleKeys = roleService.selectRoleKeys(userId); - //通过用户名找到业务登录名,重新给业务员赋值 - String tempLoginName = sysCustomerQuoteService.convertName(sysCustomerQuoteVo); - sysCustomerQuoteVo.setBusinessMembers(tempLoginName); - - startPage(); List list = sysCustomerQuoteService.selectSysCustomerQuoteList(sysCustomerQuoteVo); String loginName = ShiroUtils.getLoginName(); diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysCustomerQuoteMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerQuoteMapper.xml index 7c95bbe8..85fd31a2 100644 --- a/ruoyi-admin/src/main/resources/mapper/system/SysCustomerQuoteMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/system/SysCustomerQuoteMapper.xml @@ -70,8 +70,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dict_type = 'processType' ) as p on s.instance_type = p.dict_value - left join sys_customer_quotechild as c - on s.supplierCode = c.quoteId and s.business_members = #{businessMembers} and s.supplierCode like concat('%', #{supplierCode}, '%') @@ -94,14 +92,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and s.create_time between #{params.beginCreateTime} and #{params.endCreateTime} and ((s.customerCode like concat('%',#{keyword},'%') or s.customerName like concat('%',#{keyword},'%'))) - - and c.materialCode like concat('%',#{materialCode},'%') - - - and c.materialName like concat('%',#{materialName},'%') + + and s.supplierCode in ( + select quoteId from sys_customer_quotechild as child where + quoteId = s.supplierCode + + and child.materialCode like concat('%',#{materialCode},'%') + + + and child.materialName like concat('%',#{materialName},'%') + + ) - group by s.id order by s.audit_status asc, s.create_time desc 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 9ad27bc8..c4b4c8a7 100644 --- a/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html +++ b/ruoyi-admin/src/main/resources/templates/system/customerQuote/customerQuote.html @@ -114,7 +114,7 @@ var usertData = res.rows; for (let i in usertData) { $("select[name='businessMembers']").append( - ""); + ""); } } else { $.modal.msgError(res.msg); @@ -232,7 +232,15 @@ actions.push(' 详情 '); return actions.join(''); } - }] + }], + rowStyle: function (row, index) { + if (row.auditStatus=="0") { + // 如果审核状态为待审核,则设置为红色 + return {css:{"color":"red"}}; + } + // 否则使用默认样式 + return {}; + } }; $.table.init(options); });