|  |  |  | 
|---|
|  |  |  | throw new CoolException(BaseRes.PARAM); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 判断是否有相同条码的数据 | 
|---|
|  |  |  | //        if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). | 
|---|
|  |  |  | //                eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) { | 
|---|
|  |  |  | //            throw new CoolException(param.getBarcode() + "数据正在进行入库"); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | if (waitPakinService.selectCount(new EntityWrapper<WaitPakin>(). | 
|---|
|  |  |  | eq("zpallet", param.getBarcode()).eq("io_status", "N")) > 0) { | 
|---|
|  |  |  | throw new CoolException(param.getBarcode() + "数据正在进行入库"); | 
|---|
|  |  |  | eq("zpallet", param.getBarcode())) > 0) { | 
|---|
|  |  |  | throw new CoolException(param.getBarcode() + "组托数据已存在"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // todo: 不下线重新入库 | 
|---|
|  |  |  | 
|---|
|  |  |  | param.getCombMats().forEach(elem -> { | 
|---|
|  |  |  | DetlDto detlDto = new DetlDto(elem.getMatnr(), elem.getBatch(), elem.getAnfme(), elem.getMemo()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (Cools.isEmpty(detlDto.getBatch())){ | 
|---|
|  |  |  | String batch = DateUtils.convert(new Date(),DateUtils.yyyyMMdd); | 
|---|
|  |  |  | detlDto.setBatch(batch); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //                if (Cools.isEmpty(detlDto.getBatch())){ | 
|---|
|  |  |  | //                    String batch = DateUtils.convert(new Date(),DateUtils.yyyyMMdd); | 
|---|
|  |  |  | //                    detlDto.setBatch(batch); | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (DetlDto.has(detlDtos, detlDto)) { | 
|---|
|  |  |  | DetlDto one = DetlDto.find(detlDtos, detlDto.getMatnr(), detlDto.getBatch()); | 
|---|
|  |  |  | 
|---|
|  |  |  | enabled: false | 
|---|
|  |  |  | datasource: | 
|---|
|  |  |  | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver | 
|---|
|  |  |  | #    url: jdbc:sqlserver://10.10.10.100:1433;databasename=bfasrs | 
|---|
|  |  |  | url: jdbc:sqlserver://10.10.10.100:1433;databasename=bfasrs | 
|---|
|  |  |  | #    url: jdbc:sqlserver://localhost:1433;databasename=bfasrs | 
|---|
|  |  |  | url: jdbc:sqlserver://192.168.4.15:1433;databasename=bfasrs | 
|---|
|  |  |  | #    url: jdbc:sqlserver://192.168.4.15:1433;databasename=bfasrs | 
|---|
|  |  |  | username: sa | 
|---|
|  |  |  | #    password: Zoneyung@zy56$ | 
|---|
|  |  |  | password: sa@123 | 
|---|
|  |  |  | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide:true} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide:true}) | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间'}) | 
|---|
|  |  |  | return cols; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | layui.use(['table','laydate', 'form'], function(){ | 
|---|
|  |  |  | 
|---|
|  |  |  | <input class="layui-input" type="text" name="pakin_id" placeholder="入库通知号" autocomplete="off"> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <div class="layui-inline"> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <input class="layui-input" type="text" name="zpallet" placeholder="托盘号" autocomplete="off"> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <!-- 日期范围 --> | 
|---|
|  |  |  | <div class="layui-inline" style="width: 300px"> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|