Browse Source

续方订单列表bug解决

raolu 7 năm trước cách đây
mục cha
commit
5b91afb2fb
3 tập tin đã thay đổi với 15 bổ sung9 xóa
  1. 13 7
      js/buz/order-list.js
  2. 1 1
      js/consulting-api.js
  3. 1 1
      order-list.html

+ 13 - 7
js/buz/order-list.js

@ -77,13 +77,16 @@ function getPrescriptionList( refresh){
                        o.result = result;
                        o.statusName = getStatusName(o.status);
                        o.express = getExpressName(o.dispensaryType);
                        var address = "";
                        var address = "",
                            expressage = "";
                        if(o.dispensaryType == 2){
                            address = o.patientHospitalAddress;
                            o.expressageName = o.expressageHospitalName;
                        }else{
                            address = o.expressageHospitalName;
                            expressage = o.expressageHospitalName;
                            address = o.provinceName + o.cityName + o.townName + o.address;
                        }else if(o.dispensaryType == 3){
                            address = o.patientHospitalName;
                            expressage = o.expressageName;
                        }
                        o.expressage = expressage;
                        o.address = address;
                        o.action = '<a class="c-12b7f5" href="prescription-main.html?code='+o.code+'&patiCode='+o.patientCode+'&teamCode='+teamCode+'&tab=2">查看</a>';
                        o.checkbox = '<input name="orderItem" type="checkbox" class="icon-checkbox" data-status="'+o.status+'" data-type="'+o.dispensaryType+'" data-expressage="'+o.expressageCode+'" data-code="'+o.code+'">';
@ -103,7 +106,6 @@ function getPrescriptionList( refresh){
}
function queryParams(params) {
    console.log(params);
    //当表格数据变化的时候,则取消全选按钮,然后之前的选中的信息将取消选中
    page = params.offset/params.limit + 1;
    selectItemNum = 0;
@ -167,7 +169,11 @@ function getHealthDoctorList(isRefresh){
        }],
        onClickRow: function(row, $el){
            $("#orderCount").text(selectItemNum);
            $("#docInfo").text(row.name+row.jobName);
            var jobName = '';
            if(row.jobName){
                jobName = row.jobName;
            }
            $("#docInfo").text(row.name+jobName);
            $("#confirmModal").modal('toggle');
            selectDoctor = row.code;
        }

+ 1 - 1
js/consulting-api.js

@ -26,7 +26,7 @@
            return APIService.httpGet('/doctor/consult/prescriptionDetail', data);
        },
        uploadImage: function(data){
            return APIService.upload('upload/chat', data);
            return APIService.httpPost('upload/chat', data);
        },
        getPatientServiceType: function(data){
            return APIService.httpGet('doctor/sign/getPatientFamilyServer', data);

+ 1 - 1
order-list.html

@ -75,7 +75,7 @@
                    <th data-field="name" tabindex="0">居民姓名</th>
                    <th data-field="result" tabindex="0">诊断结果</th>
                    <th data-field="express" tabindex="0">配送方式</th>
                    <th data-field="expressageName" tabindex="0">配送员</th>
                    <th data-field="expressage" tabindex="0">配送员</th>
                    <th data-field="address" tabindex="0">配送地点</th>
                    <th data-field="statusName" tabindex="0">订单状态</th>
                    <th data-field="action" tabindex="0">操作</th>