Browse Source

解决bug4473 【PC随访】随访,点击登记随访结果报错

raolu 7 years ago
parent
commit
ba5b9a8d32
2 changed files with 10 additions and 4 deletions
  1. 8 2
      js/buz/followup/followup-register.js
  2. 2 2
      js/buz/prescription-tabs.js

+ 8 - 2
js/buz/followup/followup-register.js

@ -3,6 +3,7 @@
        fd_class = request.fd_class, //随访类型,与续方类型一致
        patiCode = request.patiCode,
        fv_id = request.fv_id,
        prescriptionCode = request.prescriptionCode,
        fv_status,
        fv_type;

@ -110,13 +111,18 @@
                if($(this).attr("disabled")){
                    return false;
                }
                var doneDate = $("#doneDate").val() ? $("#doneDate").val()+":00" : "",
                    planDate = $("#nextDate").val() ? $("#nextDate").val()+":00" : "";
                var params = {
                    id: fv_id,
                    date: $("#doneDate").val(),
                    date: doneDate,
                    followupType : fv_type,
                    followupClass : fv_class,
                    followupManagerStatus : $("#followupStatus").val(),
                    plandate:$("#nextDate").val()
                    plandate: planDate
                }
                if(prescriptionCode){ //续方相关的随访需要带上续方code
                    params.prescriptioncode = prescriptionCode;
                }
                followupAPI.startFollowup(params).then(function(res){
                    if(res.status == 200){

+ 2 - 2
js/buz/prescription-tabs.js

@ -59,7 +59,7 @@ var links = [{
    class: ''
},{
    index: 9,
    url: 'page/followup/followup-main.html?fv_id='+fv_id+'&patiCode='+patiCode+'&fv_class='+fv_class,
    url: 'page/followup/followup-main.html?fv_id='+fv_id+'&patiCode='+patiCode+'&fv_class='+fv_class+'&prescriptionCode='+prescriptionCode,
    name: '随访记录',
    class: ''
}];
@ -279,7 +279,7 @@ function updateLinkInfo(){
        class: ''
    },{
        index: 9,
        url: 'page/followup/followup-main.html?fv_id='+fv_id+'&patiCode='+patiCode+'&fv_class='+fv_class,
        url: 'page/followup/followup-main.html?fv_id='+fv_id+'&patiCode='+patiCode+'&fv_class='+fv_class+'&prescriptionCode='+prescriptionCode,
        name: '随访记录',
        class: ''
    }];