Browse Source

bug修复

raolu 7 years ago
parent
commit
ae21a39498
3 changed files with 16 additions and 5 deletions
  1. 3 3
      js/buz/jianchajianyan.js
  2. 10 2
      js/buz/order-list.js
  3. 3 0
      js/buz/prescription-list.js

+ 3 - 3
js/buz/jianchajianyan.js

@ -16,10 +16,10 @@ function getList(isRefresh){
        pageNumber: 1,
        pageSize: 10,
        responseHandler: function (res) {
            var data = JSON.parse(res.data);
//          var data = JSON.parse(res.data);
            return {
                rows: data.list,
                total: data.total
                rows: res.data,
//              total: data.total
            }
        },
        columns: [{

+ 10 - 2
js/buz/order-list.js

@ -107,7 +107,9 @@ function getPrescriptionList( refresh){
function queryParams(params) {
    //当表格数据变化的时候,则取消全选按钮,然后之前的选中的信息将取消选中
    page = params.offset/params.limit + 1;
//  if(page != 1){
        page = params.offset/params.limit + 1;
//  }
    selectItemNum = 0;
    $("#selectAll").prop("checked", false);
    $("#selectedCount").text(0);
@ -115,7 +117,7 @@ function queryParams(params) {
    
    return {
        teamCode: teamCode,
        page: params.offset/params.limit + 1,
        page: page,
        size: params.limit,
        startDate: startDate,
        endDate: endDate,
@ -214,6 +216,7 @@ function bindEvents(){
            var seDate = getStartEndDate($(this).attr("data-val"));
            startDate = seDate.startDate;
            endDate = seDate.endDate;
            page = 1;
            getPrescriptionList(true);
        }
    });
@ -221,6 +224,7 @@ function bindEvents(){
    $("#orderStatus").on('change', function(){
        var $this = $(this);
        state = $this.val();
        page = 1;
        getPrescriptionList(true);
    });
@ -233,11 +237,13 @@ function bindEvents(){
            $("#allocationType").prop("checked", false);
            allocationType = 0;
        }
        page = 1;
        getPrescriptionList(true);
    });
    
    $("#address").on('change', function(){
        hospital = $(this).val();
        page = 1;
        getPrescriptionList(true);
    });
@ -248,6 +254,7 @@ function bindEvents(){
        }else{
            allocationType = 0;
        }
        page = 1;
        getPrescriptionList(true);
    });
@ -255,6 +262,7 @@ function bindEvents(){
        var $input = $("#searchName"),
            text = $.trim($input.val());
        nameKey = text;
        page = 1;
        getPrescriptionList(true);
    });

+ 3 - 0
js/buz/prescription-list.js

@ -143,6 +143,9 @@ function bindEvents(){
    });
    template.helper('getStatusName', function(status){
        if(parseInt(status)< -1){
            return "续方取消";
        }
        return getStatusName(status);
    })
}