| 
															
																@@ -3,17 +3,17 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	<head> 
															 | 
															
															 | 
															
																 	<head> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		<meta charset="UTF-8"> 
															 | 
															
															 | 
															
																 		<meta charset="UTF-8"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		<title></title> 
															 | 
															
															 | 
															
																 		<title></title> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+        <#include "/base/list_base.ftl"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		<style> 
															 | 
															
															 | 
															
																 		<style> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             *{padding: 0;margin: 0;} 
															 | 
															
															 | 
															
																             *{padding: 0;margin: 0;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			.my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;} 
															 | 
															
															 | 
															
																 			.my-input{border: 1px solid rgba(0,0,0,.1);padding: 1px 5px;height: 32px;margin-right: 10px;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			.my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;} 
															 | 
															
															 | 
															
																 			.my-input::-webkit-input-placeholder,.my-select{color: #dcdcdc;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-			.my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(/common/images/pts/select-1.png) right center no-repeat;background-size:auto 100%;} 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			.my-select{border: 1px solid rgba(0,0,0,.1);padding:6px 50px 6px 15px;height: 34px;margin: 0 10px; -webkit-appearance:none;appearance:none;background: url(${path}/common/images/pts/select-1.png) right center no-repeat;background-size:auto 100%;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			.my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;} 
															 | 
															
															 | 
															
																 			.my-btn-search{border: 1px solid #32a3d8;padding: 1px 25px;height: 32px;background-color: #32a3d8;color: #fff;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             .barcodeImg{margin:10px 0px} 
															 | 
															
															 | 
															
																             .barcodeImg{margin:10px 0px} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			.isprint{width: 200px;height:50px;} 
															 | 
															
															 | 
															
																 			.isprint{width: 200px;height:50px;} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             .background{background-color: #0a6999} 
															 | 
															
															 | 
															
																             .background{background-color: #0a6999} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		</style> 
															 | 
															
															 | 
															
																 		</style> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-		<#include "/base/list_base.ftl"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	</head> 
															 | 
															
															 | 
															
																 	</head> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	<body> 
															 | 
															
															 | 
															
																 	<body> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页 
															 | 
															
															 | 
															
																     <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -59,34 +59,34 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             <#assign machineList = page.dataList /> 
															 | 
															
															 | 
															
																                             <#assign machineList = page.dataList /> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         </#if> 
															 | 
															
															 | 
															
																                         </#if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         <#if machineList?? &&  (machineList?size > 0) > 
															 | 
															
															 | 
															
																                         <#if machineList?? &&  (machineList?size > 0) > 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            <#list machineList as list> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                <tr class="text-c" id="${list.machineBarcode }"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td width="2"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <input name='checkbox' type='checkbox' value='${list.machineBarcode }${list.machineQrcode }${list.machineProduceType }' machineId="${list.machineId }"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <input type="hidden" value="${list.machineId + 1000000 }" id="${list.machineBarcode + 'Id'}"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    </td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td class="text-c" style="font-size: 24px" width="10">${list.machineBarcode?substring(list.machineBarcode?length-4) }</td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td class="text-c" width="10">${list.machineBarcode }</td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td class="text-c" width="6"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <#if list.machineProduceType == 1> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                            净水机 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        </#if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <#if list.machineProduceType == 2> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                            冲奶机 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        </#if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    </td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td>${(list.machineCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <!-- 遍历操作 --> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    <td class="td-manage text-c"> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <#if machineIsPrint == '1'> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <a onclick="updatePrint('${list.machineBarcode}');" title="修改为已打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        </#if> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                        <a onclick="barCodePrint('${list.machineBarcode }'+'${list.machineQrcode }'+'${list.machineProduceType }','${list.machineId }');" title="打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                    </td> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                </tr> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            </#list> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        <#list machineList as list> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            <tr class="text-c" id="${list.machineBarcode }"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td width="2"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <input name='checkbox' type='checkbox' value='${list.machineBarcode }${list.machineQrcode }${list.machineProduceType }' machineId="${list.machineId }"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <input type="hidden" value="${list.machineId + 1000000 }" id="${list.machineBarcode + 'Id'}"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                </td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td class="text-c" style="font-size: 24px" width="10">${list.machineBarcode?substring(list.machineBarcode?length-4) }</td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td class="text-c" width="10">${list.machineBarcode }</td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td class="text-c" width="6"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <#if list.machineProduceType == 1> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                        净水机 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    </#if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <#if list.machineProduceType == 2> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                        冲奶机 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    </#if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                </td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td>${(list.machineCreateTime?string("yyyy-MM-dd HH:mm:ss"))!''}</td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <!-- 遍历操作 --> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                <td class="td-manage text-c"> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <#if machineIsPrint == '1'> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                        <a onclick="updatePrint('${list.machineBarcode}',true);" title="修改为已打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    </#if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                    <a onclick="barCodePrint('${list.machineBarcode }'+'${list.machineQrcode }'+'${list.machineProduceType }','${list.machineId }');" title="打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                </td> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            </tr> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        </#list> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         <#else> 
															 | 
															
															 | 
															
																                         <#else> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            <tr><td colspan="5" class="td-manage text-c" >暂时没有机器,请添加!</td></tr> 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        <tr><td colspan="5" class="td-manage text-c" >暂时没有机器,请添加!</td></tr> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         </#if> 
															 | 
															
															 | 
															
																                         </#if> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     </tbody> 
															 | 
															
															 | 
															
																                     </tbody> 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 </table> 
															 | 
															
															 | 
															
																                 </table> 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -197,12 +197,22 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                     '<span style="position: absolute;right: 9px;top: 85px;font-size: 12px;">'+ machineNo +'</span>' + 
															 | 
															
															 | 
															
																                                     '<span style="position: absolute;right: 9px;top: 85px;font-size: 12px;">'+ machineNo +'</span>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                     '</div>'); 
															 | 
															
															 | 
															
																                                     '</div>'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         } 
															 | 
															
															 | 
															
																                         } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                        /*updatePrint(machineBarcode);*/ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        if(${machineIsPrint} == '1') 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            updatePrint(machineBarcode,false); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            $("#" + machineBarcode).remove(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     } 
															 | 
															
															 | 
															
																                     } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 }); 
															 | 
															
															 | 
															
																                 }); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 numbers = numbers - parseInt(settingNumber); 
															 | 
															
															 | 
															
																                 numbers = numbers - parseInt(settingNumber); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                if(numbers > 40){ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                    layer.msg('一次最多支持打印40张条形码', {icon: 2, time: 2000}); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                /*计算总打印数量*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var num = $("#settingNumber").val(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var selectNum = $("#listid").find("input[name='checkbox']:checked").length; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                var machinePrintNumber = parseInt(num)*parseInt(selectNum); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                if(machinePrintNumber > 24){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                    layer.msg('一次最多支持打印24张条形码', {icon: 2, time: 2000}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 }else if (prints != ""){ 
															 | 
															
															 | 
															
																                 }else if (prints != ""){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     $("#printlist").printArea(); 
															 | 
															
															 | 
															
																                     $("#printlist").printArea(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     $("#printlist").html(""); 
															 | 
															
															 | 
															
																                     $("#printlist").html(""); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -210,6 +220,9 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 } else { 
															 | 
															
															 | 
															
																                 } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     layer.msg('未选中需要打印的条形码', {icon: 2, time: 2000}); 
															 | 
															
															 | 
															
																                     layer.msg('未选中需要打印的条形码', {icon: 2, time: 2000}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 } 
															 | 
															
															 | 
															
																                 } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                $("#printlist").html("");  //未打印成功,需要清除数据 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 /*if (prints != "") { 
															 | 
															
															 | 
															
																                 /*if (prints != "") { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     $("#printlist").printArea(); 
															 | 
															
															 | 
															
																                     $("#printlist").printArea(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     $("#printlist").html(""); 
															 | 
															
															 | 
															
																                     $("#printlist").html(""); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -252,7 +265,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                     '<td class="text-c" style="font-size: 24px" width="10">'+private+'</td>' + 
															 | 
															
															 | 
															
																                                     '<td class="text-c" style="font-size: 24px" width="10">'+private+'</td>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                             '<td class="text-c" width="10">'+value.machineBarcode+'</td>' + 
															 | 
															
															 | 
															
																                                             '<td class="text-c" width="10">'+value.machineBarcode+'</td>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                             '<td class="text-c" width="10">'+machineType+'</td>' + 
															 | 
															
															 | 
															
																                                             '<td class="text-c" width="10">'+machineType+'</td>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                                            '<td class="td-manage text-c"> <a onclick="updatePrint('+value.machineBarcode+');" title="修改为已打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>' + 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                            '<td class="td-manage text-c"> <a onclick="updatePrint('+value.machineBarcode+',true);" title="修改为已打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                             '<a onclick="barCodePrint('+value.machineBarcode+value.machineQrcode+value.machineProduceType+','+value.machineId+');" title="打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> </td></tr>'); 
															 | 
															
															 | 
															
																                                             '<a onclick="barCodePrint('+value.machineBarcode+value.machineQrcode+value.machineProduceType+','+value.machineId+');" title="打印" href="javascript:;"  class="ml-5" style="text-decoration:none"><i class="Hui-iconfont"></i></a> </td></tr>'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -269,7 +282,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                function updatePrint(machineBarcode){ 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                function updatePrint(machineBarcode,type){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     $.ajax({ 
															 | 
															
															 | 
															
																                     $.ajax({ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         "type" : "post", 
															 | 
															
															 | 
															
																                         "type" : "post", 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         "url" : "${path}/admin/machine/_update_print", 
															 | 
															
															 | 
															
																                         "url" : "${path}/admin/machine/_update_print", 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -277,7 +290,9 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         "data" :{machineBarcode : machineBarcode}, 
															 | 
															
															 | 
															
																                         "data" :{machineBarcode : machineBarcode}, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         "success" : function(data) { 
															 | 
															
															 | 
															
																                         "success" : function(data) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             $("#"+machineBarcode).remove(); 
															 | 
															
															 | 
															
																                             $("#"+machineBarcode).remove(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-                            layer.msg('修改成功', {icon: 1, time: 2000}); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            if(type){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                                layer.msg('修改成功', {icon: 1, time: 2000}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         }, 
															 | 
															
															 | 
															
																                         }, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         "error":function(data){ 
															 | 
															
															 | 
															
																                         "error":function(data){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                             layer.msg('操作失败', {icon: 2, time: 2000}); 
															 | 
															
															 | 
															
																                             layer.msg('操作失败', {icon: 2, time: 2000}); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -302,6 +317,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     /*"data" :{machineBarcodes : JSON.stringify(a)},*/ 
															 | 
															
															 | 
															
																                     /*"data" :{machineBarcodes : JSON.stringify(a)},*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     "success" : function(data) { 
															 | 
															
															 | 
															
																                     "success" : function(data) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         layer.msg('修改成功!', {icon: 1,time:2000}); 
															 | 
															
															 | 
															
																                         layer.msg('修改成功!', {icon: 1,time:2000}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                        location.replace(location.href); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     }, 
															 | 
															
															 | 
															
																                     }, 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     "error":function(data){ 
															 | 
															
															 | 
															
																                     "error":function(data){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                         /*alert("操作失败,请联系管理员!");*/ 
															 | 
															
															 | 
															
																                         /*alert("操作失败,请联系管理员!");*/ 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -363,9 +379,15 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                 '<span style="position: absolute;right: 9px;top: 85px;font-size: 12px;">'+ machineNo +'</span>' + 
															 | 
															
															 | 
															
																                                 '<span style="position: absolute;right: 9px;top: 85px;font-size: 12px;">'+ machineNo +'</span>' + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                 '</div>'); 
															 | 
															
															 | 
															
																                                 '</div>'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                     } 
															 | 
															
															 | 
															
																                     } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 } 
															 | 
															
															 | 
															
																                 } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 $("#printlist").printArea(); 
															 | 
															
															 | 
															
																                 $("#printlist").printArea(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                 $("#printlist").html(""); 
															 | 
															
															 | 
															
																                 $("#printlist").html(""); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                 if(${machineIsPrint} == '1') 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                 { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                     updatePrint(machineBarcode, false); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                     $("#" + machineBarcode).remove(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+                 } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             } 
															 | 
															
															 | 
															
																             } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 | 
														
													
												
													
														
															| 
															 | 
															
																             /*获取产品信息*/ 
															 | 
															
															 | 
															
																             /*获取产品信息*/ 
															 |