|
|
@@ -7,7 +7,8 @@ var lineUpList = getLocalStorage("lineUpList", []);
|
|
|
var currentList = getLocalStorage("currentList", []);
|
|
|
//过号名单队列
|
|
|
var pastList = getLocalStorage("pastList", []);
|
|
|
-
|
|
|
+//血液中心出发打印
|
|
|
+var printType = '';
|
|
|
function openSocket(type) {
|
|
|
//判断当前浏览器是否支持WebSocket
|
|
|
try {
|
|
|
@@ -32,6 +33,9 @@ function openSocket(type) {
|
|
|
$('input[name="autoPrint"]:checked').each(function () {
|
|
|
chk_value = $(this).val();
|
|
|
});
|
|
|
+ $('input[name="printType"]:checked').each(function () {
|
|
|
+ printType = $(this).val();
|
|
|
+ });
|
|
|
if (type == 'PY' && chk_value != '') {//配药处方自动打印
|
|
|
printPrescriptions(chk_value);
|
|
|
}
|
|
|
@@ -95,6 +99,9 @@ function dispensingMessage(data) {
|
|
|
$('input[name="autoPrint"]:checked').each(function () {
|
|
|
chk_value = $(this).val();
|
|
|
});
|
|
|
+ $('input[name="printType"]:checked').each(function () {
|
|
|
+ printType = $(this).val();
|
|
|
+ });
|
|
|
if (chk_value != '') {//自动打印
|
|
|
for (var i = 0; i < data.orderNos.length; i++) {
|
|
|
var orderNo = data.orderNos[i];
|