1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Document</title>
- </head>
- <body>
- <script src="../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../plugins/toastr/toastr.min.js"></script>
- <script src="../../js/util.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../api/fangshi-api.js"></script>
- <script>
- //随访类别,type多类别“,”分割【1.高血压 2.糖尿病 3.肿瘤 4.精神分裂症 5.产后 6.新生儿
- // 7.严重精神病 8.80岁以上老人 9.肺结核】
- // 多次肺结核-n
- var Request = GetRequest();
- var version;
- var isAdd = Request.isEdit//是否为新增 1是 0不是
- var followupId = Request.id
- var lastedVersion = 'v1'//最新版本
- if (Request.userAgent) {
- window.localStorage.setItem(httpRequest.agentName, decodeURIComponent(Request.userAgent))
- }
- if (Request.type == '5' || Request.type == '6') {
- fangshiAPI.getPostpartumVisitDetails({ followupId: followupId || '3' }).then(function (res) {
- if (res.status == 200) {
- version = isAdd !=1 ? res.data.version : lastedVersion
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-5,6.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- } if (Request.type == '7') {
- fangshiAPI.getFollowupSevereMentalDisorder({ followupId: followupId || '1' }).then(function (res) {
- if (res.status == 200) {
- version = res.data != null ? res.data.version : lastedVersion
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-7.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- } if (Request.type == '8') {
- fangshiAPI.getOlderPeopleHealthCheckRecord({ followupId: followupId || '1' }).then(function (res) {
- if (res.status == 200) {
- version = res.data != null ? res.data.version : lastedVersion
- alert(res.data.version)
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-8.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- } if (Request.type == '9') {
- }
- </script>
- </body>
- </html>
|