|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String lgort; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private String cstmrName; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //    public static void main(String[] args) { | 
|---|
|  |  |  | //        OpenOrderPakoutParam param = new OpenOrderPakoutParam(); | 
|---|
|  |  |  | //        param.setOrderNo("LXT12321321"); | 
|---|
|  |  |  | 
|---|
|  |  |  | null,    // 初始票据号 | 
|---|
|  |  |  | null,    // 票据号 | 
|---|
|  |  |  | null,    // 客户编号 | 
|---|
|  |  |  | null,    // 客户 | 
|---|
|  |  |  | param.getCstmrName(),    // 客户 | 
|---|
|  |  |  | null,    // 联系方式 | 
|---|
|  |  |  | null,    // 操作人员 | 
|---|
|  |  |  | null,    // 合计金额 | 
|---|
|  |  |  | 
|---|
|  |  |  | DetlDto dto = new DetlDto(detail.getMatnr(), detail.getBatch(), detail.getBrand(), detail.getStandby1(), detail.getStandby2(), detail.getStandby3(), detail.getLineNumber(), | 
|---|
|  |  |  | detail.getBoxType1(), detail.getBoxType2(), detail.getBoxType3(), detail.getAnfme()); | 
|---|
|  |  |  | dto.setRemark(detail.getRemark()); | 
|---|
|  |  |  | dto.setWeight(detail.getWeight()); | 
|---|
|  |  |  | if (DetlDto.hasLineNumber(list, dto)) { | 
|---|
|  |  |  | DetlDto detlDto = DetlDto.findLineNumber(list, dto.getMatnr(), dto.getBatch(), dto.getBrand(), dto.getStandby1(), dto.getStandby2(), dto.getStandby3(), dto.getLineNumber(), | 
|---|
|  |  |  | dto.getBoxType1(), dto.getBoxType2(), dto.getBoxType3()); | 
|---|
|  |  |  | 
|---|
|  |  |  | orderDetl.setLineNumber(detlDto.getLineNumber()); | 
|---|
|  |  |  | orderDetl.setBatch(detlDto.getBatch()); | 
|---|
|  |  |  | orderDetl.setAnfme(detlDto.getAnfme()); | 
|---|
|  |  |  | orderDetl.setWeight(detlDto.getWeight()); | 
|---|
|  |  |  | orderDetl.setBrand(detlDto.getBrand()); | 
|---|
|  |  |  | orderDetl.setStandby1(detlDto.getStandby1()); | 
|---|
|  |  |  | orderDetl.setStandby2(detlDto.getStandby2()); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Double anfme; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private Double weight; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | matParam.setModel(vGetBdMaterial.get型号()); | 
|---|
|  |  |  | matParam.setUnit(vGetBdMaterial.get主单位()); | 
|---|
|  |  |  | matParam.setMemo(vGetBdMaterial.get备注()); | 
|---|
|  |  |  | matParam.setName(vGetBdMaterial.get物料简称u8旧品名()); | 
|---|
|  |  |  | matParam.setOrigin(vGetBdMaterial.get主辅换算比()); | 
|---|
|  |  |  | matParam.setGroupCode(vGetBdMaterial.get存货分类编码()); | 
|---|
|  |  |  | matParam.setGroupName(vGetBdMaterial.get存货分类名称()); | 
|---|
|  |  |  | matDetails.add(matParam); | 
|---|
|  |  |  | 
|---|
|  |  |  | detlDto = new DetlDto(); | 
|---|
|  |  |  | detlDto.setMatnr(nccSaleXsfhmxWms.getWlbm()); | 
|---|
|  |  |  | detlDto.setAnfme(nccSaleXsfhmxWms.getNnum().doubleValue()); | 
|---|
|  |  |  | detlDto.setWeight(nccSaleXsfhmxWms.getNastnum().doubleValue()); | 
|---|
|  |  |  | detlDto.setStandby1(nccSaleXsfhmxWms.getFhckbm()); | 
|---|
|  |  |  | detlDto.setLineNumber(i); | 
|---|
|  |  |  | detlDto.setRemark(JSONObject.toJSONString(nccSaleXsfhmxWms)); | 
|---|
|  |  |  | 
|---|
|  |  |  | i++; | 
|---|
|  |  |  | nccSaleXsfhmxWms.setWmsFlag(1); | 
|---|
|  |  |  | param.setOrderNo(nccSaleXsfhmxWms.getVbillcode() + "-" + size); | 
|---|
|  |  |  | param.setCstmrName(nccSaleXsfhmxWms.getKhmc()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | param.setOrderDetails(orderDetails); | 
|---|
|  |  |  | openService.pakoutOrderCreate(param); | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'manuDate', align: 'center',title: '生产日期', hide: true} | 
|---|
|  |  |  | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} | 
|---|
|  |  |  | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '辅数量'} | 
|---|
|  |  |  | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} | 
|---|
|  |  |  | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} | 
|---|
|  |  |  | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'zpallet', align: 'center',title: '托盘条码'} | 
|---|
|  |  |  | ,{field: 'specs', align: 'center',title: '规格'} | 
|---|
|  |  |  | ,{field: 'model', align: 'center',title: '代码', hide: true} | 
|---|
|  |  |  | ,{field: 'model', align: 'center',title: '型号'} | 
|---|
|  |  |  | ,{field: 'standby1$', align: 'center',title: '仓库'} | 
|---|
|  |  |  | ,{field: 'color', align: 'center',title: '颜色', hide: true} | 
|---|
|  |  |  | ,{field: 'brand', align: 'center',title: '品牌', hide: true} | 
|---|
|  |  |  | ,{field: 'unit', align: 'center',title: '单位', hide: true} | 
|---|
|  |  |  | 
|---|
|  |  |  | ,{field: 'manuDate', align: 'center',title: '生产日期', hide: true} | 
|---|
|  |  |  | ,{field: 'itemNum', align: 'center',title: '品项数', hide: true} | 
|---|
|  |  |  | ,{field: 'safeQty', align: 'center',title: '安全库存量', hide: true} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '单箱净重', hide: true} | 
|---|
|  |  |  | ,{field: 'weight', align: 'center',title: '辅数量'} | 
|---|
|  |  |  | ,{field: 'length', align: 'center',title: '单箱毛重', hide: true} | 
|---|
|  |  |  | ,{field: 'volume', align: 'center',title: '单箱体积', hide: true} | 
|---|
|  |  |  | ,{field: 'threeCode', align: 'center',title: '箱子尺寸', hide: true} | 
|---|
|  |  |  | 
|---|
|  |  |  | {type: 'numbers'}, | 
|---|
|  |  |  | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, | 
|---|
|  |  |  | {field: 'docType$', align: 'center', title: '类型',  minWidth: 160, width: 160}, | 
|---|
|  |  |  | {field: 'cstmrName', align: 'center', title: '客户'}, | 
|---|
|  |  |  | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, | 
|---|
|  |  |  | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, | 
|---|
|  |  |  | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl',  minWidth: 160, width: 160}, | 
|---|
|  |  |  | 
|---|
|  |  |  | {type: 'numbers'}, | 
|---|
|  |  |  | {field: 'orderNo', title: '单据编号', templet: '#orderNoTpl'}, | 
|---|
|  |  |  | {field: 'docType$', align: 'center', title: '类型',  minWidth: 160, width: 160}, | 
|---|
|  |  |  | {field: 'cstmrName', align: 'center', title: '客户'}, | 
|---|
|  |  |  | {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160}, | 
|---|
|  |  |  | {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200}, | 
|---|
|  |  |  | {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl',  minWidth: 160, width: 160}, | 
|---|