|
@@ -77,11 +77,16 @@ function initButtonChange(object, realIndex) {
|
|
|
function setFrom() {
|
|
|
$("#wardCode").selectpicker('val',wardCode);
|
|
|
if(hzFlag == 0){
|
|
|
- $("#pageNoSearch").val(pageNo)
|
|
|
+ $("#pageNoSearch").val(pageNo);
|
|
|
}
|
|
|
$("#pageClassSearch").val(pageClass);
|
|
|
$("#wardCode").selectpicker('refresh');
|
|
|
$("#pageClassSearch").selectpicker('refresh');
|
|
|
+ $("#wardCode").attr('disabled',true);
|
|
|
+ $("#pageNoSearch").attr('disabled',true);
|
|
|
+ $("#pageClassSearch").attr('disabled',true);
|
|
|
+ $("#btn_clean").attr('disabled',true);
|
|
|
+ $("#btn_query").attr('disabled',true);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -234,6 +239,24 @@ function initTbTable() {
|
|
|
}
|
|
|
return "";
|
|
|
}
|
|
|
+ }, {
|
|
|
+ field: 'contirmName',
|
|
|
+ title: '发药人',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ visible: $("#submitFlagSearch").val() == 3?true:false
|
|
|
+ }, {
|
|
|
+ field: 'confirmTime',
|
|
|
+ title: '发药时间',
|
|
|
+ align: "center",
|
|
|
+ valign: 'middle',
|
|
|
+ visible: $("#submitFlagSearch").val() == 3?true:false,
|
|
|
+ formatter: function (value, row, index) {
|
|
|
+ if (value != null && value != "") {
|
|
|
+ return format(value, "yyyy-MM-dd HH:mm:ss");
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
}, {
|
|
|
field: 'startDate',
|
|
|
title: '开始时间',
|
|
@@ -651,11 +674,16 @@ function cleanParams() {
|
|
|
//$('#reportrange span').html(moment().subtract(10, 'days').format('YYYY-MM-DD') + ' - ' + moment().format('YYYY-MM-DD'));
|
|
|
$("#pageNoSearch").val(null);
|
|
|
$("#pageClassSearch").val(null);
|
|
|
- $("#pageClassSearch").selectpicker('refresh');
|
|
|
$("#wardCode").selectpicker('val','');
|
|
|
- $("#wardCode").selectpicker('refresh');
|
|
|
$("#submitFlagSearch").val(1);
|
|
|
$("#submitFlagSearch").selectpicker('refresh');
|
|
|
+ $("#wardCode").removeAttr('disabled');
|
|
|
+ $("#pageNoSearch").removeAttr('disabled');
|
|
|
+ $("#pageClassSearch").removeAttr('disabled');
|
|
|
+ $("#btn_query").removeAttr('disabled');
|
|
|
+ $("#btn_clean").removeAttr('disabled');
|
|
|
+ $("#wardCode").selectpicker('refresh');
|
|
|
+ $("#pageClassSearch").selectpicker('refresh');
|
|
|
}
|
|
|
|
|
|
|
|
@@ -807,6 +835,7 @@ function printDetail(datas,kfFlag,flag) {
|
|
|
*
|
|
|
*/
|
|
|
function printDetailHtml(datas,flag) {
|
|
|
+ console.log(datas);
|
|
|
let html = '';
|
|
|
let totalMoney = 0;
|
|
|
let oldInpatientNo = '';//记录上一个病人
|
|
@@ -823,7 +852,8 @@ function printDetailHtml(datas,flag) {
|
|
|
}
|
|
|
$(".title").text(title);
|
|
|
$(".groupName").text(groupNo==71?'门诊西药房':'住院药房');
|
|
|
- $(".wardName").text(datas[0].wardName);
|
|
|
+ let w_code = $("#wardCode").find("option:selected").text();
|
|
|
+ $(".wardName").text(w_code.substring(0,w_code.lastIndexOf("(")));
|
|
|
$(".pageNo").text(pageNo);
|
|
|
$(".printDate").html(format(new Date(),"yyyy-MM-dd HH:mm"));
|
|
|
$('.sjh').remove();
|