|
@@ -224,6 +224,7 @@ function saveData() {
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
data: JSON.stringify(s_data),
|
|
data: JSON.stringify(s_data),
|
|
success: function (res) {
|
|
success: function (res) {
|
|
|
|
+ let visitDate = format(res.data,'yyyy-MM-dd HH:mm:ss');
|
|
if (res == '401' || res == 401) {
|
|
if (res == '401' || res == 401) {
|
|
window.location.href = '/thmz/login/view'
|
|
window.location.href = '/thmz/login/view'
|
|
return;
|
|
return;
|
|
@@ -232,7 +233,8 @@ function saveData() {
|
|
$("#editModal").modal("hide");
|
|
$("#editModal").modal("hide");
|
|
clearZyReq();
|
|
clearZyReq();
|
|
//successMesage(res);
|
|
//successMesage(res);
|
|
- printZyReq($("#patientId").val(),1)
|
|
|
|
|
|
+
|
|
|
|
+ printZyReq($("#patientId").val(),1, visitDate)
|
|
} else {
|
|
} else {
|
|
errorMesage(res);
|
|
errorMesage(res);
|
|
}
|
|
}
|