|
@@ -2323,7 +2323,7 @@ function printView(data) {
|
|
|
});
|
|
|
$('#priceTime').attr("value", format(list[0].priceTime, "yyyy-MM-dd HH:mm"));
|
|
|
// 获取医生签名
|
|
|
- getAjaxRequst("/thmz/getDoctorSignatureImage",{doctorCode:data.employeeCode},false,function (postRes) {
|
|
|
+ getAjaxRequest("/thmz/getDoctorSignatureImage",{doctorCode:data.employeeCode},false,function (postRes) {
|
|
|
if(postRes.code == 0){
|
|
|
$("#employeeName").html("<img src='" + postRes.data + "' style='width:100px;height:23px;'/>")
|
|
|
}else {
|
|
@@ -2463,4 +2463,29 @@ function getZyPrintHtml(list) {
|
|
|
'<td colspan="6" style="border: 0 !important;text-align: left;padding: 0; font-size: 14px;">'+yf+'</td>' +
|
|
|
'</tr>';
|
|
|
return tr;
|
|
|
+}
|
|
|
+
|
|
|
+function getAjaxRequest (url, data,async, callBack) {
|
|
|
+ requestAs(url, "GET", data, async,"application/x-www-form-urlencoded;charset=UTF-8", function(res) {
|
|
|
+ return typeof callBack == "function" && callBack(res)
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+function requestAs (url, method, data = {},async, contentType, back){
|
|
|
+ $.ajax({
|
|
|
+ url: url,
|
|
|
+ type: method,
|
|
|
+ data: data,
|
|
|
+ async: async,
|
|
|
+ headers:{'Accept': 'application/json','Authorization':'Bearer '+ localStorage.getItem("token")},
|
|
|
+ contentType: contentType,
|
|
|
+ dataType: "json",
|
|
|
+ success: function(res){
|
|
|
+ return typeof back == "function" && back(res);
|
|
|
+ },
|
|
|
+ error: function(error) {
|
|
|
+ console.log(error)
|
|
|
+ return typeof back == "function" && back(null);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|