| | |
| | | @RequestParam(defaultValue = "10") Integer limit, |
| | | @RequestParam(required = false) String condition, |
| | | @RequestParam(required = false, value = "dept_id") Long deptId, |
| | | @RequestParam(required = false, value = "user_id") Long userId){ |
| | | @RequestParam(required = false, value = "user_id") Long userId, |
| | | @RequestParam Map<String, Object> param){ |
| | | Integer status = null; |
| | | if (param.get("status") != null) { |
| | | status = Integer.parseInt(param.get("status").toString()); |
| | | } |
| | | return R.ok(orderService.getPage(new Page<>(curr, limit) |
| | | , getHostId() |
| | | , deptId == null ? null : String.valueOf(deptId) |
| | | , userId == null ? getUserId() : userId |
| | | , condition) |
| | | , condition |
| | | , status) |
| | | ); |
| | | } |
| | | |
| | |
| | | , getHostId() |
| | | , role.judgeLeader() ? String.valueOf(user.getDeptId()) : null |
| | | , user.getId() |
| | | , condition); |
| | | , condition |
| | | , null); |
| | | List<KeyValueVo> vos = new ArrayList<>(); |
| | | page.getRecords().forEach(item -> vos.add(new KeyValueVo(item.getName(), item.getId()))); |
| | | return R.ok().add(vos); |
| | |
| | | |
| | | Order selectOrderByNewestUuid(@Param("hostId") Long hostId); |
| | | |
| | | List<Order> listByPage(Page<Order> page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId , @Param("condition") String condition); |
| | | List<Order> listByPage(Page<Order> page, @Param("hostId") Long hostId, @Param("deptId") String deptId, @Param("userId") Long userId, @Param("condition") String condition, @Param("status") Integer status); |
| | | |
| | | Double selectMoneyByYearAndStatus(String year, Integer status);//获取指定年份和订单状态总交易金额 |
| | | |
| | |
| | | |
| | | String getUuid(Long hostId); |
| | | |
| | | Page<Order> getPage(Page<Order> page, Long hostId, String deptId, Long userId, String condition); |
| | | Page<Order> getPage(Page<Order> page, Long hostId, String deptId, Long userId, String condition, Integer status); |
| | | |
| | | Double selectMoneyByYearAndStatus(String year, Integer status);//获取指定年份和订单状态总交易金额 |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Page<Order> getPage(Page<Order> page, Long hostId, String deptId, Long userId, String condition) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId, condition)); |
| | | public Page<Order> getPage(Page<Order> page, Long hostId, String deptId, Long userId, String condition, Integer status) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId, condition, status)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | <if test="hostId != null"> |
| | | and mo.host_id = #{hostId} |
| | | </if> |
| | | <if test="status != null"> |
| | | and mo.status = #{status} |
| | | </if> |
| | | <if test="condition != null and condition != ''"> |
| | | and ( |
| | | mo.uuid like concat('%',#{condition},'%') |
| | |
| | | }) |
| | | } |
| | | |
| | | let where = {} |
| | | if (getQueryVariable('status') !== false) { |
| | | where = {status: getQueryVariable('status')} |
| | | } |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | | elem: '#order', |
| | |
| | | height: 'full-148', |
| | | // size: 'sm', |
| | | skin: 'line', |
| | | where: where, |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'name', align: 'left',title: '跟踪项目名称', style: 'color: #1890ff;cursor:pointer', event: 'more', width: 300} |
| | |
| | | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> |
| | | <div class="numberInfoSubTitle">跟踪项目数量</div> |
| | | <div class="numberInfoValue"> |
| | | <span id="progressCount">124</span><em class="numberInfoSuffix">个</em> |
| | | <a href="#" id="openProgress"><span id="progressCount">124</span><em class="numberInfoSuffix">个</em></a> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> |
| | |
| | | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> |
| | | <div class="numberInfoSubTitle">成交项目数量</div> |
| | | <div class="numberInfoValue"> |
| | | <span id="successCount">121</span><em class="numberInfoSuffix">个</em> |
| | | <a href="#" id="openSuccess"><span id="successCount">121</span><em class="numberInfoSuffix">个</em></a> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs12 layui-col-sm6 layui-col-lg3 text-center"> |
| | |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var element = layui.element; |
| | | element.init(); |
| | | |
| | | //获取团队数据 |
| | | $.ajax({ |
| | |
| | | myCharts3.resize(); |
| | | }; |
| | | |
| | | $("#openProgress").on("click", () => { |
| | | layer.open({ |
| | | type: 2, |
| | | title: '跟踪项目', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | shadeClose: true, |
| | | content: '../order/order.html?status=0', |
| | | success: function(layero, index){ |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | $("#openSuccess").on("click", () => { |
| | | layer.open({ |
| | | type: 2, |
| | | title: '跟踪项目', |
| | | maxmin: true, |
| | | area: [top.detailWidth, top.detailHeight], |
| | | shadeClose: true, |
| | | content: '../order/order.html?status=1', |
| | | success: function(layero, index){ |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | }); |
| | | </script> |
| | | </body> |