|
@@ -11,7 +11,9 @@ var printType = '';
|
|
|
var temporaryKeyList="";
|
|
var temporaryKeyList="";
|
|
|
var timer="";
|
|
var timer="";
|
|
|
var printTimer = "";
|
|
var printTimer = "";
|
|
|
|
|
+var timesLong = 5000;
|
|
|
$(function () {
|
|
$(function () {
|
|
|
|
|
+ initSysParametersByCode("mzCfPrintTime")
|
|
|
init_daterangepicker();
|
|
init_daterangepicker();
|
|
|
if (groupNo == null || windowsNoYf == null) {
|
|
if (groupNo == null || windowsNoYf == null) {
|
|
|
return errorMesageSimaple('药房参数未设置,请在发药参数设置中设置');
|
|
return errorMesageSimaple('药房参数未设置,请在发药参数设置中设置');
|
|
@@ -41,7 +43,7 @@ $(function () {
|
|
|
printType = $(this).val();
|
|
printType = $(this).val();
|
|
|
});
|
|
});
|
|
|
if (!printTimer) {
|
|
if (!printTimer) {
|
|
|
- printTimer = setInterval("autoPrintMzCf()",2000);
|
|
|
|
|
|
|
+ printTimer = setInterval("autoPrintMzCf()",timesLong);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
$(':checkbox[name=autoPrint]').removeAttr('checked');
|
|
$(':checkbox[name=autoPrint]').removeAttr('checked');
|
|
@@ -1041,4 +1043,5 @@ function checkInput() {
|
|
|
function autoPrintMzCf(){
|
|
function autoPrintMzCf(){
|
|
|
let v = $("#autoPrint").val();
|
|
let v = $("#autoPrint").val();
|
|
|
printPrescriptions(v);
|
|
printPrescriptions(v);
|
|
|
|
|
+ initTable();
|
|
|
}
|
|
}
|