Bläddra i källkod

药库出库临时页面

WANGJIALIANG 3 år sedan
förälder
incheckning
acfcd60562

+ 14 - 0
src/main/java/cn/hnthyy/thmz/controller/NavigationController.java

@@ -809,6 +809,20 @@ public class NavigationController {
         return "yf/incoming_records";
     }
 
+    /**
+     * 药品出库记录查询
+     *
+     * @return
+     */
+    @RequestMapping("/ck-records")
+    public String ckRecords(HttpServletRequest httpServletRequest) throws Exception {
+        List<String> urls = getRoleUrls(httpServletRequest);
+        if (!urls.contains("/thmz/ck-records")) {
+            throw new Exception("您没有此模块的权限,请联系管理员开通!");
+        }
+        return "yf/ck_records";
+    }
+
     /**
      * 药房库存清单
      *

+ 38 - 3
src/main/java/cn/hnthyy/thmz/controller/yf/YfIncomingRecordsController.java

@@ -1,19 +1,23 @@
 package cn.hnthyy.thmz.controller.yf;
 
 import cn.hnthyy.thmz.comment.UserLoginToken;
+import cn.hnthyy.thmz.entity.his.mz.Employee;
 import cn.hnthyy.thmz.entity.his.yp.YpInDetlYf;
+import cn.hnthyy.thmz.entity.his.yp.YpInDetlYfCk;
 import cn.hnthyy.thmz.entity.his.yp.YpZdDict;
 import cn.hnthyy.thmz.entity.his.yp.YpZdManufactory;
-import cn.hnthyy.thmz.entity.his.mz.Employee;
+import cn.hnthyy.thmz.service.his.mz.EmployeeService;
 import cn.hnthyy.thmz.service.his.yp.YpInDetlYfService;
 import cn.hnthyy.thmz.service.his.yp.YpZdDictService;
 import cn.hnthyy.thmz.service.his.yp.YpZdManufactoryService;
-import cn.hnthyy.thmz.service.his.mz.EmployeeService;
 import cn.hnthyy.thmz.service.his.zd.ZdUnitCodeService;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
 
 import java.util.HashMap;
 import java.util.List;
@@ -219,4 +223,35 @@ public class YfIncomingRecordsController {
             return resultMap;
         }
     }
+
+    /**
+     * 模糊查询药品入库记录
+     * @param ypInDetlYf
+     * @return
+     */
+    @UserLoginToken
+    @RequestMapping(value = "/getYpInDetlYfCk", method = {RequestMethod.POST})
+    public Map<String, Object> getYpInDetlYfCk(YpInDetlYfCk ypInDetlYf) {
+        Map<String, Object> resultMap = new HashMap<>();
+        try {
+            List<YpInDetlYfCk> ypInDetlYfs = ypInDetlYfService.queryYpInDetlYfCk(ypInDetlYf);
+            for (int i = 0; i < ypInDetlYfs.size(); i++) {
+                ypInDetlYf = ypInDetlYfs.get(i);
+                ypInDetlYf.setWardName(zdUnitCodeService.queryDeptNameByIdInCache(ypInDetlYf.getSupplyCode()));
+                ypInDetlYf.setPurchaser(employeeService.queryByUserCode(ypInDetlYf.getPurchaser()).getEmployeeName());
+            }
+            resultMap.put("code", 0);
+            //resultMap.put("total", Math.ceil((double)count/rows));
+            //resultMap.put("page", page);
+            resultMap.put("message", "查询药品入库记录成功");
+            resultMap.put("data", ypInDetlYfs);
+            return resultMap;
+        } catch (Exception e) {
+            e.printStackTrace();
+            resultMap.put("code", -1);
+            resultMap.put("message", "查询药品入库记录失败,错误信息:【" + e.getMessage() + "】");
+            log.error("查询药品入库记录失败,错误信息:[]", e);
+            return resultMap;
+        }
+    }
 }

+ 107 - 0
src/main/java/cn/hnthyy/thmz/entity/his/yp/YpInDetlYfCk.java

@@ -0,0 +1,107 @@
+package cn.hnthyy.thmz.entity.his.yp;
+
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * 药房入库信息实体类
+ */
+@Data
+public class YpInDetlYfCk {
+
+  //入库时间
+  private Date inDate;
+  //入库序号
+  private Integer inSeri;
+  //药品编码
+  private String chargeCode;
+  //包装序号
+  private String serial;
+  //零售价
+  private BigDecimal packRetprice;
+  //购入价
+  private BigDecimal buyPrice;
+  //入库数量
+  private Double buyAmt;
+  //效期
+  private Date effDate;
+  //生产批号
+  private String manuNo;
+  //厂家
+  private String manuCode;
+  //供应商
+  private String supplyCode;
+  //传票号
+  private String reptNo;
+  //入库单号
+  private String inDocuNo;
+  //批准文号
+  private String licenseNo;
+  //采购员
+  private String purchaser;
+  //入库人
+  private String checker;
+  //备注
+  private String inComment;
+  //入库类别 0:入库 1:退库 2:赠药 3:紧急入库      9:分装入库
+  private String inType;
+  //当时库存量
+  private Double stockAmount;
+  //批发价
+  private BigDecimal fixPrice;
+  //药房编码
+  private String groupNo;
+  //审核标志:1已审核
+  private String confirmFlag;
+  //审核人
+  private String confirmId;
+  //审核日期
+  private Date confirmDate;
+  //记账标志 1:已结账
+  private String acctType;
+  //结账人
+  private String acctId;
+  //结账日期
+  private Date acctDate;
+  //现时库存 (新增库存)
+  private Double currentStock;
+  private Double kl;
+  private String inputId;
+  private Date sysDate;
+  private Date fpDate;
+  private String fpNo;
+  private String hgFlag;
+  private Integer serialTh;
+  private Date reptDate;
+  //计划单号
+  private String planNo;
+  //药库
+  private String groupOut;
+  //出库单号
+  private String outDrawNo;
+  private String effDelFlag;
+
+  //药品名字
+  private String name;
+  //药品规格
+  private String specification;
+  //厂家名称
+  private String manufactoryName;
+  //入库类型名称
+  private String inTypeName;
+  //查询入库的开始时间 字符串形式
+  private String beginTime;
+  //查询入库的结束时间 字符串形式
+  private String endTime;
+  //入库人姓名
+  private String inputName;
+  //入库人姓名
+  private String wardName;
+  //购买总价
+  private BigDecimal buyTotalPrice;
+  //购买总价
+  private String nationalCode;
+}

+ 36 - 0
src/main/java/cn/hnthyy/thmz/mapper/his/yp/YpInDetlYfMapper.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.mapper.his.yp;
 
 import cn.hnthyy.thmz.entity.his.yp.YpInDetlYf;
+import cn.hnthyy.thmz.entity.his.yp.YpInDetlYfCk;
 import org.apache.ibatis.annotations.Insert;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;
@@ -72,6 +73,41 @@ public interface YpInDetlYfMapper {
             "</script>")
     List<YpInDetlYf> selectYpInDetlYf(@Param("ypInDetlYf") YpInDetlYf ypInDetlYf,@Param("page") Integer page,@Param("rows") Integer rows);
 
+    /**
+     * 入库查询
+     * @return
+     */
+    @Select("<script>" +
+            "SELECT  t=case when isnull(a.group_no_out,'')='' then 1 else 0 end,\n" +
+            "       in_date=a.out_date,\n" +
+            "       rept_no=a.draw_yf,\n" +
+            "       supply_code=a.dept_code,\n" +
+            "       in_docu_no=a.draw_no,\n" +
+            "       purchaser=a.keeper,\n" +
+            "       a.confirm_id,\n" +
+            "       a.confirm_date,\n" +
+            "       a.acct_id,\n" +
+            "       a.acct_date,\n" +
+            "       a.sys_date,\n" +
+            "       a.charge_code,\n" +
+            "       a.serial,\n" +
+            "       a.pack_retprice,\n" +
+            "       a.buy_price,\n" +
+            "       buy_amt=a.out_amt,\n" +
+            "       a.eff_date,\n" +
+            "       a.manu_no,\n" +
+            "       in_seri=a.out_seri  ,\n" +
+            "       name=b.name,\n" +
+            "       national_code=b.national_code,\n" +
+            "       b.specification\n" +
+            " FROM yp_out_detl a   ,yp_zd_dict b\n" +
+            " where    a.charge_code=b.code and           a\n" +
+            "  .serial=b.serial  and\n" +
+            "      isnull(a.confirm_flag,'0')='1'\n" +
+            "  and a.out_date <![CDATA[>=]]> '2022-04-18' and a.out_date <![CDATA[<=]]> '2022-04-25 23:59:59' and a.group_no = '11'" +
+            "</script>")
+    List<YpInDetlYfCk> selectYpInDetlYfCk(@Param("ypInDetlYfCk") YpInDetlYfCk ypInDetlYfCk);
+
     /**
      * 入库查询条数
      * @param ypInDetlYf

+ 7 - 0
src/main/java/cn/hnthyy/thmz/service/his/yp/YpInDetlYfService.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.service.his.yp;
 
 import cn.hnthyy.thmz.entity.his.yp.YpInDetlYf;
+import cn.hnthyy.thmz.entity.his.yp.YpInDetlYfCk;
 
 import java.util.List;
 
@@ -12,6 +13,12 @@ public interface YpInDetlYfService {
      * @return
      */
     List<YpInDetlYf> queryYpInDetlYfPage(YpInDetlYf ypInDetlYf,Integer page,Integer rows);
+    /**
+     * 入库查询
+     * @param ypInDetlYf
+     * @return
+     */
+    List<YpInDetlYfCk> queryYpInDetlYfCk(YpInDetlYfCk ypInDetlYf);
 
     /**
      * 入库查询条数

+ 6 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/yp/YpInDetlYfServiceImpl.java

@@ -1,6 +1,7 @@
 package cn.hnthyy.thmz.service.impl.his.yp;
 
 import cn.hnthyy.thmz.entity.his.yp.YpInDetlYf;
+import cn.hnthyy.thmz.entity.his.yp.YpInDetlYfCk;
 import cn.hnthyy.thmz.mapper.his.yp.YpInDetlYfMapper;
 import cn.hnthyy.thmz.service.his.yp.YpInDetlYfService;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -24,6 +25,11 @@ public class YpInDetlYfServiceImpl implements YpInDetlYfService {
         return ypInDetlYfMapper.selectYpInDetlYf(ypInDetlYf,page,rows);
     }
 
+    @Override
+    public List<YpInDetlYfCk> queryYpInDetlYfCk(YpInDetlYfCk ypInDetlYf) {
+        return ypInDetlYfMapper.selectYpInDetlYfCk(ypInDetlYf);
+    }
+
     @Override
     public int countYpInDetlYf(YpInDetlYf ypInDetlYf) {
         return ypInDetlYfMapper.countYpInDetlYf(ypInDetlYf);

+ 341 - 0
src/main/resources/static/js/yf/ck_records.js

@@ -0,0 +1,341 @@
+//@ sourceURL=incoming_records.js
+var pharmacyGroupNo = window.localStorage["groupNo"];//药房编码
+$(function () {
+    $('#fyClass').selectpicker('refresh');
+    //$("#pharmacyModal").modal("show");
+    $(".selectpicker").selectpicker();
+    initDaterangepickerWithId("reportrange_in", 'left');
+    initDaterangepickerWithId("reportrange_in1", 'left');
+    if(pharmacyGroupNo == null){
+        return errorMesageSimaple('药房参数未设置,请在发药参数设置中设置');
+    }
+    getAll();
+    $("input").each(function () {
+        this.onkeydown = function (e) { // 监听键盘事件
+            let theEvent = window.event || e;
+            let code = theEvent.keyCode || theEvent.which;
+            if (code == 13) {//回车事件
+                $("#btn_search").click(); //触发搜索按钮点击事件
+            }
+        }
+    });
+
+    //initDaterangepickerWithId("reportrange_out",'left');
+    initSearchList('<div id="medicinePopoverContent"><table id="tb_table_medicine"></table></div>',
+        'searchTextDrug', 700, 250);
+    initSearchList('<div id="employeePopoverContent"><table id="tb_table_employee"></table></div>',
+        'inputNameSearch', 300, 250);
+    initSearchList('<div id="manufactoryPopoverContent"><table id="tb_table_manufactory"></table></div>',
+        'manufactoryNameSearch', 350, 250);
+    $('#searchTextDrug').on('input focus', function (e) {
+        showDrugPopover();
+        if ($('#searchTextDrug').val().length == 0) {
+            $('#codeSearch').val("");
+            $('#serialSearch').val("");
+        }
+    });
+    $('#inputNameSearch').on('input focus', function (e) {
+        showEmployeePopover();
+    });
+    $('#manufactoryNameSearch').on('input focus', function (e) {
+        showManufactoryPopover();
+    });
+});
+
+
+//显示查询的医生悬浮窗
+function showEmployeePopover() {
+    if ($('#inputNameSearch').val().length == 0) {
+        $('#inputId').val("");
+    }
+    $('#tb_table_employee').bootstrapTable('destroy');
+    $('#tb_table_employee').bootstrapTable({
+        url: '/thmz/getEmployeeBySearchText',         //请求后台的URL(*)
+        method: 'GET',                      //请求方式(*)
+        toolbar: '#toolbar',                //工具按钮用哪个容器
+        striped: true,                      //是否显示行间隔色
+        cache: true,                       //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+        pagination: false,                   //是否显示分页(*)
+        sortable: true,                     //是否启用排序
+        sortOrder: "asc",                   //排序方式
+        queryParams: {
+            searchText: $("#inputNameSearch").val() == "" ? null : $("#inputNameSearch").val(),
+        },           //传递参数(*)
+        sidePagination: "client",           //分页方式:client客户端分页,server服务端分页(*)
+        search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+        strictSearch: true,
+        showColumns: false,                  //是否显示所有的列
+        showRefresh: false,                  //是否显示刷新按钮
+        minimumCountColumns: 2,             //最少允许的列数
+        clickToSelect: true,                //是否启用点击选中行
+        uniqueId: "ID",                     //每一行的唯一标识,一般为主键列
+        showToggle: false,                    //是否显示详细视图和列表视图的切换按钮
+        cardView: false,                    //是否显示详细视图
+        detailView: false,
+        //rowStyle:rowStyle,//通过自定义函数设置行样式
+        ajaxOptions: {
+            headers: {
+                'Accept': 'application/json',
+                'Authorization': 'Bearer ' + localStorage.getItem("token")
+            }
+        },
+        columns: [
+            {
+                field: 'employeeCode',
+                title: '编码',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'employeeName',
+                title: '姓名',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'deptName',
+                title: '科室',
+                align: "center",
+                valign: 'middle'
+            }
+        ],
+        responseHandler: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            var ress = eval(res);
+            if (ress.code == -1) {
+                errorMesage(res);
+                return {
+                    "total": 0,//总页数
+                    "rows": {}   //数据
+                };
+            }
+
+            return {
+                "total": ress.data.length,//总页数
+                "rows": ress.data   //数据
+            };
+        },
+        onClickRow: function (row, $element) {
+            $('#inputNameSearch').webuiPopover('hide');
+            $('#inputNameSearch').val(row.employeeName);
+            $('#inputId').val(row.employeeCode);
+        }
+    });
+}
+
+//显示查询的制造厂商悬浮窗
+function showManufactoryPopover() {
+    if ($('#manufactoryNameSearch').val().length == 0) {
+        $('#manuCode').val("");
+    }
+    $('#tb_table_manufactory').bootstrapTable('destroy');
+    $('#tb_table_manufactory').bootstrapTable({
+        url: '/thmz/getYpZdManufactoryBySearchText',         //请求后台的URL(*)
+        method: 'GET',                      //请求方式(*)
+        toolbar: '#toolbar',                //工具按钮用哪个容器
+        striped: true,                      //是否显示行间隔色
+        cache: true,                       //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*)
+        pagination: false,                   //是否显示分页(*)
+        sortable: true,                     //是否启用排序
+        sortOrder: "asc",                   //排序方式
+        queryParams: {
+            searchText: $("#manufactoryNameSearch").val() == "" ? null : $("#manufactoryNameSearch").val(),
+        },           //传递参数(*)
+        sidePagination: "client",           //分页方式:client客户端分页,server服务端分页(*)
+        search: false,                       //是否显示表格搜索,此搜索是客户端搜索,不会进服务端,所以,个人感觉意义不大
+        strictSearch: true,
+        showColumns: false,                  //是否显示所有的列
+        showRefresh: false,                  //是否显示刷新按钮
+        minimumCountColumns: 2,             //最少允许的列数
+        clickToSelect: true,                //是否启用点击选中行
+        uniqueId: "ID",                     //每一行的唯一标识,一般为主键列
+        showToggle: false,                    //是否显示详细视图和列表视图的切换按钮
+        cardView: false,                    //是否显示详细视图
+        detailView: false,
+        //rowStyle:rowStyle,//通过自定义函数设置行样式
+        ajaxOptions: {
+            headers: {
+                'Accept': 'application/json',
+                'Authorization': 'Bearer ' + localStorage.getItem("token")
+            }
+        },
+        columns: [
+            {
+                field: 'code',
+                title: '编码',
+                align: "center",
+                valign: 'middle'
+            }, {
+                field: 'name',
+                title: '厂名',
+                align: "center",
+                valign: 'middle'
+            }
+        ],
+        responseHandler: function (res) {
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view'
+                return;
+            }
+            var ress = eval(res);
+            if (ress.code == -1) {
+                errorMesage(res);
+                return {
+                    "total": 0,//总页数
+                    "rows": {}   //数据
+                };
+            }
+            return {
+                "total": ress.data.length,//总页数
+                "rows": ress.data   //数据
+            };
+        },
+        onClickRow: function (row, $element) {
+            $('#manufactoryNameSearch').webuiPopover('hide');
+            $('#manuCode').val(row.code);
+            $('#manufactoryNameSearch').val(row.name);
+        }
+    });
+}
+
+/**
+ * 加载搜索窗口
+ */
+function initSearchList(content, searchTextId, width, height) {
+    var settings = {
+        placement: 'bottom-right',//值: auto,top,right,bottom,left,top-right,top-left,bottom-right,bottom-left  要显示的位置
+        trigger: 'click', //值:click,hover 触发方式
+        content: '',//内容,内容可以是函数
+        width: width,
+        //arrow:false,//是否显示箭头
+        multi: true,//在页面允许其他弹出层
+        closeable: true,//显示关闭按钮
+        style: '', //值:'',inverse
+        delay: 300,//延迟时间, 悬浮属性才执行
+        padding: true,//内容填充
+        height: height,
+        //offsetTop:10,
+        cache: true,//如果缓存设置为false,则popover将销毁并重新创建
+        content: content
+    };
+    $('#' + searchTextId).webuiPopover('destroy').webuiPopover(settings);
+}
+
+/**
+ * 初始化参数
+ */
+/*function initTable() {
+    pharmacyGroupNo = $("#pharmacyGroupNo").val();
+    $("#pharmacyModal").modal("hide");
+    getAll();
+}*/
+
+
+/**
+ * 重置查询表单
+ */
+function resetSearch() {
+    $("#codeSearch").val(null);
+    $("#serialSearch").val(null);
+    $("#manuCode").val(null);
+    $("#inputId").val(null);
+    $("#manufactoryNameSearch").val(null);
+    $("#yfInNoSearch").val(null);
+    $("#searchTextDrug").val(null);
+    $("#inputNameSearch").val(null);
+    $("#inTypeSearch").val(null);
+    $("#inTypeSearch").selectpicker('refresh');
+    $('#reportrange_in span').html(new Date.format('YYYY-MM-DD') + ' - ' + new Date.format('YYYY-MM-DD'));
+}
+
+
+/**
+ * 查询列表
+ */
+function getAll() {
+    $.jgrid.gridUnload("tb_table");
+    $("#tb_table").jqGrid({
+        datatype: 'json',
+        mtype: 'POST',
+        url: '/thmz/getYpInDetlYfCk',
+        postData: queryParams(),
+        loadBeforeSend: function (jqXHR) {
+            jqXHR.setRequestHeader("Authorization", 'Bearer ' + localStorage.getItem("token"));
+            jqXHR.setRequestHeader("Accept", 'application/json');
+        },
+        styleUI: 'Bootstrap',
+        height: 'auto',
+        caption: '药品出库记录',
+        toolbar : [ true, "top" ],
+        rowNum: 20,
+        rowList: [20, 30, 50],
+        pager: 'pager',
+        colNames: ['药品编码', '药品名', '规格', '出库量', '零售价', '购入价', '出库单号', '录入日期','领用科室', '请领单号', '经发人','审核人','审核出库日期','结账人','结账日期','效期','生产批号','医保编码'],
+        colModel: [
+            {name: 'chargeCode', index: 'chargeCode',width: 50,align:'center'},
+            {name: 'name', index: 'name',width: 80},
+            {name: 'specification', index: 'specification',width: 50},
+            {name: 'buyAmt', index: 'buyAmt',width: 50,align:'center'},
+            {name: 'packRetprice', index: 'packRetprice',width: 50,align:'center'},
+            {name: 'buyPrice', index: 'buyPrice', formatter: 'number', summaryType: 'sum',width: 50,align:'center'},
+            {name: 'inDocuNo', index: 'inDocuNo',width: 70,align:'center'},
+            {name: 'inDate', index: 'inDate', formatter: 'date',width: 50,align:'center'},
+            {name: 'wardName', index: 'wardName',width: 70,align:'center'},
+            {name: 'reptNo', index: 'reptNo',width: 50,align:'center'},
+            {name: 'purchaser', index: 'purchaser',width: 50,align:'center'},
+            {name: 'confirmId', index: 'confirmId',width: 50},
+            {name: 'confirmDate', index: 'confirmDate',width: 70, formatter: 'date'},
+            {name: 'acctId', index: 'acctId',width: 50},
+            {name: 'acctDate', index: 'acctDate',width: 50, formatter: 'date'},
+            {name: 'effDate', index: 'effDate', formatter: 'date',width: 60},
+            {name: 'manuNo', index: 'manuNo',width: 60,align:'center'},
+            {name: 'nationalCode', index: 'nationalCode',width: 120},
+        ],
+        jsonReader: {
+            root: "data", page: "page", total: "total",
+            records: "rows", repeatitems: false
+        },
+        viewrecords: true,
+        grouping: false,
+        groupingView: {
+            groupField: ['inTypeName'],
+            groupSummary: [true],//是否开启汇总页脚
+            groupColumnShow: [false],//是否展示分组列
+            groupText: ['<b>{0}</b>'],//组名的展示文字
+            groupCollapse: false,
+        },
+        autowidth: true,
+        loadComplete: function (res) { //加载完成(初始加载),回调函数
+            if (res == '401' || res == 401) {
+                window.location.href = '/thmz/login/view';
+                return;
+            }
+            if (res.code == -1) {
+                errorMesage(res);
+            }
+        }
+    });
+    $("#t_tb_table").append("<button class='registration-no-color-foot-button' title='打印汇总药单' onclick='printCount()' style='margin-left: 10px;'><i class='fa fa-print'></i></button>");
+    $("#t_tb_table").append("<button class='registration-no-color-foot-button' title='打印口服标签' onclick='printLabelData(0)' style='color: green;margin-left: 10px;'><i class='fa fa-file-excel-o'></i></button>");
+    $("#t_tb_table").append("<button class='registration-no-color-foot-button' title='保存' id='collect_save' onclick='save(0)' style='color: green;margin-left: 10px;'><i class='fa fa-floppy-o'></i></button>");
+    /**
+     * 构建列表查询参数
+     */
+    function queryParams() {
+        var rePortRangeArr = getRePortRangeArrById('reportrange_in');
+        var temp = {
+            'beginTime': rePortRangeArr[0],
+            'endTime': rePortRangeArr[1],
+            'chargeCode': $("#codeSearch").val(),
+            'serial': $("#serialSearch").val(),
+            'manuCode': $("#manuCode").val(),
+            'inputId': $("#inputId").val(),
+            'inDocuNo': $("#yfInNoSearch").val(),
+            'inType': $("#inTypeSearch").val(),
+            'groupNo': pharmacyGroupNo
+        };
+        return temp;
+    }
+}
+

+ 96 - 0
src/main/resources/templates/yf/ck_records.html

@@ -0,0 +1,96 @@
+<link rel="stylesheet" href="/thmz/css/bootstrap/css/bootstrap-select.css"/>
+<link rel="stylesheet" href="/thmz/css/bootstrap/css/daterangepicker.css"/>
+<link rel="stylesheet" href="/thmz/css/jquery.webui-popover.min.css">
+<link rel="stylesheet" href="/thmz/css/toll_administration.css">
+<link rel="stylesheet" href="/thmz/css/jqGrid/ui.jqgrid-bootstrap.css">
+<script src="/thmz/js/dependent/daterangepicker.js"></script>
+<script src="/thmz/js/dependent/bootstrap-select.js"></script>
+<script src="/thmz/js/dependent/jquery.webui-popover.min.js"></script>
+<script src="/thmz/js/common/pharmacy-com.js"></script>
+<script src="/thmz/js/jqGrid/grid.locale-cn.js"></script>
+<script src="/thmz/js/jqGrid/jquery.jqGrid.min.js"></script>
+<script src="/thmz/js/yf/ck_records.js"></script>
+<div class="row" style="height: calc(100% - 60px);overflow-y: auto;">
+    <div class="col-md-12 col-sm-12 col-xs-12">
+        <div class="x_panel" style="background: #EBEBE4;">
+            <div class="panel-body">
+                <form id="formSearch" class="form-horizontal" autocomplete="off">
+                    <input id="codeSearch" class="form-control optional" type="hidden" >
+                    <input id="serialSearch" class="form-control optional" type="hidden" >
+                    <input id="manuCode" class="form-control optional" type="hidden" >
+                    <input id="inputId" class="form-control optional" type="hidden" >
+                    <div class="item form-group ">
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="manufactoryNameSearch">请领科室
+                        </label>
+                        <div class="col-md-2 col-sm-2 col-xs-12">
+                            <input id="manufactoryNameSearch" class="form-control optional" type="text">
+                        </div>
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="yfInNoSearch" >出库单号
+                        </label>
+                        <div class="col-md-1 col-sm-1 col-xs-12">
+                            <input id="yfInNoSearch" class="form-control optional" type="text">
+                        </div>
+                        <div class="col-md-2 col-sm-2 col-xs-12 item">
+                            <label class="control-label col-md-4 col-sm-4 col-xs-12"
+                                   for="inTypeSearch">出库类别</label>
+                            <div class="col-md-8 col-sm-8 col-xs-12">
+                                <select class="form-control selectpicker show-tick" required="required" title="请选择"
+                                        id="inTypeSearch" onchange="getAll()">
+                                    <option value="">全部</option>
+                                    <option value="0">入库</option>
+                                    <option value="1">退货</option>
+                                    <option value="2">赠药</option>
+                                    <option value="3">紧急入库</option>
+                                </select>
+                            </div>
+                        </div>
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="reportrange_in"
+                               style="width: 105px;">
+                            出库日期
+                        </label>
+                        <div class="col-md-4 col-sm-4 col-xs-12 " style="width: 220px;">
+                            <div id="reportrange_in" class="pull-left"
+                                 style="background: #fff; cursor: pointer; padding: 6.5px 10px; border: 1px solid #ccc">
+                                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
+                                <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
+                            </div>
+                        </div>
+                    </div>
+                    <div class="item form-group ">
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="searchTextDrug">药品
+                        </label>
+                        <div class="col-md-2 col-sm-2 col-xs-12">
+                            <input id="searchTextDrug" class="form-control optional" type="text">
+                        </div>
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="inputNameSearch">经发人
+                        </label>
+                        <div class="col-md-1 col-sm-1 col-xs-12">
+                            <input id="inputNameSearch" class="form-control optional" type="text">
+                        </div>
+                        <label class="control-label col-md-1 col-sm-1 col-xs-12" for="reportrange_in"
+                               style="width: 105px;">
+                            审核日期
+                        </label>
+                        <div class="col-md-4 col-sm-4 col-xs-12 " style="width: 220px;">
+                            <div id="reportrange_in1" class="pull-left"
+                                 style="background: #fff; cursor: pointer; padding: 6.5px 10px; border: 1px solid #ccc">
+                                <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
+                                <span>December 30, 2014 - January 28, 2015</span> <b class="caret"></b>
+                            </div>
+                        </div>
+                        <button type="button" id="btn_search" class="btn btn-primary"
+                                title="查询" onclick="getAll()"><i class="glyphicon glyphicon-search"></i>
+                        </button>
+                        <button type="button" id="btn_reset" class="btn btn-primary"
+                                title="重置" onclick="resetSearch()"><i class="fa fa-rotate-left"></i>
+                        </button>
+                    </div>
+                </form>
+            </div>
+            <table id="tb_table"></table>
+            <div id="pager"></div>
+        </div>
+    </div>
+</div>
+
+