|
@@ -777,6 +777,7 @@ function printView(data) {
|
|
|
//设置默认打印机
|
|
|
LODOP.SET_PRINTER_INDEX(printIndex);
|
|
|
LODOP.SET_PRINT_PAGESIZE(1, '140mm', '202mm', "CreateCustomPage");
|
|
|
+ LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true) // 整宽不变形
|
|
|
LODOP.SET_SHOW_MODE("BKIMG_WIDTH", "140mm");
|
|
|
LODOP.SET_SHOW_MODE("BKIMG_HEIGHT", "202mm");
|
|
|
LODOP.SET_PRINT_MODE("CREATE_CUSTOM_PAGE_NAME", "门诊配药单");//对新建的纸张重命名
|
|
@@ -788,10 +789,10 @@ function printView(data) {
|
|
|
strStyle += "}";
|
|
|
strStyle += "</style>";
|
|
|
}
|
|
|
- LODOP.ADD_PRINT_HTM("5mm", "7mm", "140mm", "202mm", strStyle + $("div[id='print_view']").html());
|
|
|
+ LODOP.ADD_PRINT_HTM("2mm", "4mm", "140mm", "202mm", strStyle + $("div[id='print_view']").html());
|
|
|
LODOP.PRINT();
|
|
|
LODOP.NewPageA();//下一页
|
|
|
- //LODOP.PREVIEW();
|
|
|
+ // LODOP.PREVIEW();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -914,42 +915,42 @@ function getXyPrintHtml(list) {
|
|
|
var number = i + 1;
|
|
|
let manufactoryName = list[i].manufactoryName == null || list[i].manufactoryName == '' ? '' : '(' + list[i].manufactoryName + ')';
|
|
|
tr += '<tr>' +
|
|
|
- ' <td style="margin-bottom: 5px;width: 10px;font-size: 12px;" align="left" valign="top">' + number + "." +
|
|
|
+ ' <td style="margin-bottom: 5px;width: 10px;font-size: 14px;" align="left" valign="top">' + number + "." +
|
|
|
'</td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 12px;">' + tryResult + list[i].drugName +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 14px;">' + tryResult + list[i].drugName +
|
|
|
' </td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 70px;text-align: right;font-size: 12px;">' + list[i].specification +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 70px;text-align: right;font-size: 14px;">' + list[i].specification +
|
|
|
'</td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 5px;text-align: left;font-size: 12px;">×</td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 5px;text-align: left;font-size: 12px;">' + list[i].quantity +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 5px;text-align: left;font-size: 14px;">×</td>' +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 5px;text-align: left;font-size: 14px;">' + list[i].quantity +
|
|
|
'</td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 25px;text-align: left;font-size: 12px;">' + list[i].ypUnitName +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 25px;text-align: left;font-size: 14px;">' + list[i].ypUnitName +
|
|
|
'</td>' +
|
|
|
'</tr>' +
|
|
|
'<tr>' +
|
|
|
- ' <td style="margin-bottom: 5px;width: 10px;font-size: 12px;" align="left" valign="top">' +
|
|
|
+ ' <td style="margin-bottom: 5px;width: 10px;font-size: 14px;" align="left" valign="top">' +
|
|
|
'</td>' +
|
|
|
- ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 12px;">' + manufactoryName + tryFlag +
|
|
|
+ ' <td style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 14px;">' + manufactoryName + tryFlag +
|
|
|
' </td>' +
|
|
|
- ' <td colspan="4" style="padding-left:0px;margin-bottom: 5px;width:220px;vertical-align: middle !important;text-align: left;font-size: 12px;">用法:' + list[i].drugQuan + " " + list[i].drugUnitName + '/次 ' + list[i].frequencyName + ' ' + printName +
|
|
|
+ ' <td colspan="4" style="padding-left:0px;margin-bottom: 5px;width:220px;vertical-align: middle !important;text-align: left;font-size: 14px;">用法:' + list[i].drugQuan + " " + list[i].drugUnitName + '/次 ' + list[i].frequencyName + ' ' + printName +
|
|
|
'</td>' +
|
|
|
'</tr>' +
|
|
|
'<tr>' +
|
|
|
- ' <td style="margin-bottom: 5px;width: 10px;font-size: 12px;" align="left" valign="top">' +
|
|
|
+ ' <td style="margin-bottom: 5px;width: 10px;font-size: 14px;" align="left" valign="top">' +
|
|
|
'</td>' +
|
|
|
- ' <td colspan="5" style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 12px;">' + (list[i].instructionText == null ? '' : list[i].instructionText) +
|
|
|
+ ' <td colspan="5" style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 14px;">' + (list[i].instructionText == null ? '' : list[i].instructionText) +
|
|
|
' </td>' +
|
|
|
'</tr>' +
|
|
|
'<tr>' +
|
|
|
- ' <td style="margin-bottom: 5px;width: 10px;font-size: 12px;" align="left" valign="top">' +
|
|
|
+ ' <td style="margin-bottom: 5px;width: 10px;font-size: 14px;" align="left" valign="top">' +
|
|
|
'</td>' +
|
|
|
- ' <td colspan="5" style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 12px;">' + '货位号:' + list[i].location +
|
|
|
+ ' <td colspan="5" style="margin-bottom: 5px;vertical-align: middle !important;width: 245px;font-size: 14px;">' + '货位号:' + list[i].location +
|
|
|
' </td>' +
|
|
|
'</tr><tr style="height: 5px;"><td><img src="about:blank" width="5" height="5" /></td></tr>';
|
|
|
}
|
|
|
$('#yxwk').remove();
|
|
|
- if (list.length <= 5) {
|
|
|
- $('#div_yp').append('<span id="yxwk" style="margin-bottom: 5px;font-size: 12px;">以下为空</span>');
|
|
|
+ if (list.length < 5) {
|
|
|
+ $('#div_yp').append('<span id="yxwk" style="margin-bottom: 5px;font-size: 14px;">以下为空</span>');
|
|
|
}
|
|
|
return tr;
|
|
|
}
|
|
@@ -963,18 +964,18 @@ function getZyPrintHtml(list) {
|
|
|
let tr = '';
|
|
|
for (let i = 0; i < list.length;) {
|
|
|
tr += '<tr class="sjh">' +
|
|
|
- '<td style="width: 160px; font-size: 12px;">' + list[i].drugName +
|
|
|
+ '<td style="width: 160px; font-size: 14px;">' + list[i].drugName +
|
|
|
'</td>' +
|
|
|
- '<td style="width: 40px;text-align: right; font-size: 12px;">' + list[i].specification +
|
|
|
+ '<td style="width: 40px;text-align: right; font-size: 14px;">' + list[i].specification +
|
|
|
'</td>' +
|
|
|
- '<td style="width: 25px;text-align: right;border-right: 1px solid black; font-size: 12px;">' + list[i].quantity + list[i].ypUnitName +
|
|
|
+ '<td style="width: 25px;text-align: right;border-right: 1px solid black; font-size: 14px;">' + list[i].quantity + list[i].ypUnitName +
|
|
|
'</td>';
|
|
|
if (i + 1 < list.length) {
|
|
|
- tr += '<td style="width: 160px; font-size: 12px;">' + list[i + 1].drugName +
|
|
|
+ tr += '<td style="width: 160px; font-size: 14px;">' + list[i + 1].drugName +
|
|
|
'</td>' +
|
|
|
- '<td style="width: 40px;text-align: right; font-size: 12px;">' + list[i + 1].specification +
|
|
|
+ '<td style="width: 40px;text-align: right; font-size: 14px;">' + list[i + 1].specification +
|
|
|
'</td>' +
|
|
|
- '<td style="width: 25px;text-align: right; font-size: 12px;">' + list[i + 1].quantity + list[i + 1].ypUnitName +
|
|
|
+ '<td style="width: 25px;text-align: right; font-size: 14px;">' + list[i + 1].quantity + list[i + 1].ypUnitName +
|
|
|
'</td>' +
|
|
|
'</tr>';
|
|
|
}
|
|
@@ -993,7 +994,7 @@ function getZyPrintHtml(list) {
|
|
|
yf += isEmpty(list[0].cyFfcs)?'':'分'+list[0].cyFfcs+'次,';
|
|
|
yf += isEmpty(list[0].cyFysm)?'':list[0].cyFysm;
|
|
|
tr += '<tr class="sjh">' +
|
|
|
- '<td colspan="6" style="border: 0 !important;text-align: left;padding: 0; font-size: 12px;">'+yf+'</td>' +
|
|
|
+ '<td colspan="6" style="border: 0 !important;text-align: left;padding: 0; font-size: 14px;">'+yf+'</td>' +
|
|
|
'</tr>';
|
|
|
return tr;
|
|
|
}
|