| 
					
				 | 
			
			
				@@ -1192,7 +1192,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			map5.put("CHANDLER",createBy);//审核人 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			JSONObject map6=new JSONObject();//销售发票 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			map6.put("CVOUCHCODE",org.jeecg.modules.system.util.oConvertUtils.addOne(purchaseWarehousingMapper.getMaxCode("cSBVCode","SaleBillVouch","cSBVCode")));//发票号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			map6.put("CVOUCHCODE",org.jeecg.modules.system.util.oConvertUtils.addOne(purchaseWarehousingMapper.getMaxCode("cSBVCode","SaleBillVouch where cvouchtype=27","cSBVCode")));//发票号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			map6.put("DDATE",createDate);//发票日期(yyyy-MM-dd) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			map6.put("CTYPE","普通");//发票类型(普通,专用) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			map6.put("CMAKER",createBy);//制单人名称 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1421,7 +1421,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("POAUTOIDCOL","MODetailsID");//订单明细ID对应字段名(固定MOMaterialsID) MOMaterialsID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("AUTOID_PO",mapStr1.get("MODetailsID"));//关联明细ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("CINVCODE",mapStr1.get("cInvCode"));//存货编码(如果来源单据是委外订单,此字段需要传该订单的子件编码) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-							mapItem7.put("IQUANTITY",mapStr1.get("iQuantity"));//数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+							mapItem7.put("IQUANTITY",item.getAfterHeavy());//数量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("CBATCH",item.getDyelotNumber());//批号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItem7.put("CDEFINE26",item.getKaoClothWeight()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							mapItems7.add(mapItem7); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1473,8 +1473,8 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					mapItem6.put("CWHCODE",mapt.get("vencode"));//仓库编码 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				mapt.put("poid","one");//重置销售订单id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				mapItem5.put("CDEFINE23",item.getDeclarationUnit());//报关单位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				mapItem6.put("CDEFINE23",item.getDeclarationUnit());//报关单位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				mapItem5.put("CDEFINE23",syPackingListTailoringMapper.getUnit(item.getInventoryCode()) );//报关单位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				mapItem6.put("CDEFINE23",syPackingListTailoringMapper.getUnit(item.getInventoryCode()) );//报关单位 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				mapItem5.put("CDEFINE33",item.getDeclarationName());//报关品名 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				mapItem6.put("CDEFINE31",item.getDeclarationName());//货物名称 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1635,21 +1635,25 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			text(mapList7,"印厂采购入库单"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String isSucceed=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()!=null&&main.getIsSucceed().indexOf("-7-")>0){//印花 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONArray resturn2 = InterfaceConnUtils.doPost(mapList2,"materialout_import");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed=result(main,resturn2,"材料出库单",((Map) mapList2.get(0)).get("CACCID").toString(),"2");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn2.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}else if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONArray resturn7 = InterfaceConnUtils.doPost(mapList7,"purchasein_import");//采购入库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed=result(main,resturn7,"印厂采购入库单",((Map) mapList.get(0)).get("CACCID").toString(),"7");//采购入库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn7.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			JSONArray resturn2 = InterfaceConnUtils.doPost(mapList2,"materialout_import");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed=result(main,resturn2,"材料出库单",((Map) mapList2.get(0)).get("CACCID").toString(),"2");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			//this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn2.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()!=null&&main.getIsSucceed().indexOf("-7-")>0){//印花 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				JSONArray resturn2 = InterfaceConnUtils.doPost(mapList2,"materialout_import");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed=result(main,resturn2,"材料出库单",((Map) mapList2.get(0)).get("CACCID").toString(),"2");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				//this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn2.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			}else if(mapList2!=null&&mapList2.size()>0&&main.getIsSucceed()==null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				JSONArray resturn7 = InterfaceConnUtils.doPost(mapList7,"purchasein_import");//采购入库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed=result(main,resturn7,"印厂采购入库单",((Map) mapList.get(0)).get("CACCID").toString(),"7");//采购入库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn7.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				JSONArray resturn2 = InterfaceConnUtils.doPost(mapList2,"materialout_import");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed=result(main,resturn2,"材料出库单",((Map) mapList2.get(0)).get("CACCID").toString(),"2");//材料出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				isSucceed(main,isSucceed); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				//this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(resturn2.getJSONObject(0).get("U8ReceiptNo").toString()),"107"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}catch (Exception e){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			e.printStackTrace(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String recording=null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(main.getRecording()!=null){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1729,7 +1733,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						maps.get(account).put("code",resturn4.getJSONObject(0).get("U8ReceiptNo").toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						recording(main,recording); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					case "4": 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-						String saleoutName=maps.get(account).get("code");//销售出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						String saleoutName=maps.get(account).get("code");//销售发票单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						if(saleoutMaps!=null){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -1823,7 +1827,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		JSONObject jsonObject4=resturn4.getJSONObject(0);//销售出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		String saleoutName=jsonObject4.get("U8ReceiptNo").toString();//销售出库单 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	//	this.purchaseWarehousingMapper.updateVoucherHistoryCNumber(org.jeecg.modules.system.util.oConvertUtils.maxNumber(saleoutName),"131"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		List<Map<String,Object>> saleoutMaps= syPackingListTailoringMapper.getRdrecord32(saleoutName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(saleoutMaps!=null){ 
			 |