|
@@ -45,8 +45,9 @@
|
|
|
<thead>
|
|
|
<tr class="text-c">
|
|
|
<th width="1"><input name='checkbox' type='checkbox' value='' id="all" ></th>
|
|
|
+ <th width="10">设备尾号</th>
|
|
|
<th width="10">产品条码</th>
|
|
|
- <th width="10">机器类型</th>
|
|
|
+ <th width="6">机器类型</th>
|
|
|
<th width="20">操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
@@ -62,8 +63,9 @@
|
|
|
<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: 17px" width="10">${list.machineBarcode?substring(list.machineBarcode?length-4) }</td>
|
|
|
<td class="text-c" width="10">${list.machineBarcode }</td>
|
|
|
- <td class="text-c" width="10">
|
|
|
+ <td class="text-c" width="6">
|
|
|
<#if list.machineProduceType == 1>
|
|
|
净水机
|
|
|
</#if>
|
|
@@ -93,7 +95,7 @@
|
|
|
<input type="hidden" value="${machineId!''}" name="machineId" id="machineId">
|
|
|
<input type="hidden" value="" name="codeId" id="codeId">
|
|
|
<div style="position: absolute;top: 80px;height: 23px;display:none;" id="bcTarget" class="barcodeImg"></div>
|
|
|
- <div style="display:none;" >
|
|
|
+ <div <#--style="display:none;"--> >
|
|
|
<div id="printlist">
|
|
|
</div>
|
|
|
</div>
|
|
@@ -166,14 +168,14 @@
|
|
|
/*$("#barcodeId").html(machineBarcode);
|
|
|
$("#qrcodeImg").attr('src',machineQrcode);*/
|
|
|
if (machineProduceType == 1) {//净水机模板
|
|
|
- $("#printlist").append('<div style="width: 268px;height: 162px;position: relative;">' +
|
|
|
+ $("#printlist").append('<div style="width: 242px;height: 132px;position: relative;">' +
|
|
|
'<span style="position: absolute;top:-1px;font-size: 14px;">WaterO可移动智能净水机</span>' +
|
|
|
- '<span style="position: absolute;top: 23px;font-size: 12px;">型号:'+producePattern+'-'+produceModel+'</span>' +
|
|
|
- '<span style="position: absolute;top: 39px;font-size: 12px;">S/N</span>' +
|
|
|
- '<div style="position: absolute;left: -10px;top: 74px;height: 30px;" id="bcTarget2" class="barcodeImg">'+barcodes+'</div>' +
|
|
|
- '<span style="position: absolute;top: 101px;font-size: 12px;width: 116px;text-align: center;" id="barcodeId">'+machineBarcode+'</span>' +
|
|
|
- '<img style="position: absolute;right: 2px;top:17px;width: 86px;height: 86px;" id="qrcodeImg" src="'+machineQrcode+'" /> ' +
|
|
|
- '<span style="position: absolute;right: 9px;top: 101px;font-size: 12px;">'+ machineNo +'</span>' +
|
|
|
+ '<span style="position: absolute;top: 22px;font-size: 12px;">型号:'+producePattern+'-'+produceModel+'</span>' +
|
|
|
+ '<span style="position: absolute;top: 37px;font-size: 12px;">S/N</span>' +
|
|
|
+ '<div style="position: absolute;left: -5px;top: 54px;height: 30px;" id="bcTarget2" class="barcodeImg">'+barcodes+'</div>' +
|
|
|
+ '<span style="position: absolute;top: 82px;font-size: 12px;width: 116px;text-align: center;" id="barcodeId">'+machineBarcode+'</span>' +
|
|
|
+ '<img style="position: absolute;right: 2px;top:14px;width: 76px;height: 76px;" id="qrcodeImg" src="'+machineQrcode+'" /> ' +
|
|
|
+ '<span style="position: absolute;right: 9px;top: 82px;font-size: 12px;">'+ machineNo +'</span>' +
|
|
|
'</div>');
|
|
|
}
|
|
|
if (machineProduceType == 2) {//冲奶机模板
|
|
@@ -192,7 +194,7 @@
|
|
|
})
|
|
|
if (prints != "") {
|
|
|
$("#printlist").printArea();
|
|
|
- $("#printlist").html("");
|
|
|
+ /*$("#printlist").html("");*/
|
|
|
layer.closeAll();
|
|
|
} else {
|
|
|
layer.msg('未选中需要打印的条形码', {icon: 2, time: 2000});
|
|
@@ -206,8 +208,7 @@
|
|
|
},2000);
|
|
|
function latestMachine() {
|
|
|
var machineIsPrint = $("#machineIsPrint").val();
|
|
|
-
|
|
|
- if(machineIsPrint == 2){
|
|
|
+ if(machineIsPrint == 1){
|
|
|
$.ajax({
|
|
|
cache: true,
|
|
|
type: "POST",
|
|
@@ -226,12 +227,14 @@
|
|
|
if(value.machineProduceType == 2){
|
|
|
machineType = "冲奶机";
|
|
|
}
|
|
|
+ var private = value.machineBarcode.substr(value.machineBarcode.length-4);
|
|
|
$("#listid").prepend('<tr class="text-c"><td width="2"> ' +
|
|
|
'<input name="checkbox" type="checkbox" value="'+value.machineBarcode+value.machineQrcode+value.machineProduceType+'" machineId="'+value.machineId+'"> ' +
|
|
|
'<input type="hidden" value="'+value.machineId + 1000000 +'" id="'+value.machineBarcode + 'Id'+'"></td>' +
|
|
|
+ '<td class="text-c" style="font-size: 17px" width="10">'+private+'</td>' +
|
|
|
'<td class="text-c" width="10">'+value.machineBarcode+'</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+');" 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>');
|
|
|
|
|
|
|