| | |
| | | private String getNextUuid(Long hostId) { |
| | | Cstmr cstmr = this.baseMapper.selectCstmrByNewestUuid(hostId); |
| | | if (cstmr == null) { |
| | | return "0001"; |
| | | return "00001"; |
| | | } |
| | | return zerofill(String.valueOf(Integer.parseInt(cstmr.getUuid()) + 1), 4); |
| | | return zerofill(String.valueOf(Integer.parseInt(cstmr.getUuid()) + 1), 5); |
| | | } |
| | | |
| | | @Override |
| | |
| | | ,{field: 'businessDuration$', align: 'center',title: '出差时长',hide: false} |
| | | ,{field: 'businessTripDays$', align: 'center',title: '出差天数',hide: false} |
| | | ,{field: 'businessPeers', align: 'center',title: '同行人',hide: false} |
| | | ,{field: 'businessPeersId', align: 'center',title: '同行人ID',hide: true} |
| | | ,{field: 'businessPeersId', align: 'center',title: '时间戳',hide: true} |
| | | ,{field: 'carNumber', align: 'center',title: '自驾私家车车牌号',hide: false} |
| | | ,{field: 'kilometers', align: 'center',title: '自驾私家车行程明细及公里数',hide: false} |
| | | ,{field: 'userId$', align: 'center',title: '申请人',hide: false} |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">编号:</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <label class="layui-form-label">编号:</label>--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off">--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline">  |
| | | <button class="layui-btn icon-btn" lay-filter="search" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | |
| | | <script type="text/html" id="operate"> |
| | | {{# if (d.settle == 1) { }} |
| | | <a class="layui-btn layui-btn-xs btn-edit" lay-event="approval">审批</a> |
| | | {{# } }} |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | {{# } }} |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | </script> |
| | | |