123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!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="../../js/es6-promise.js"></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))
- }
- bindEvent()
- function bindEvent() {
- if (Request.type == '5') {
- fangshiAPI.getPostpartumVisitDetails({ 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-5.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- }
- if (Request.type == '6') {
- fangshiAPI.getNewbornFamilyVisitRecord({ 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-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
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-8.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- } if (Request.type == '9') {
- fangshiAPI.getPhthisisFirstCheckRecord({ followupId: followupId }).then(function (res) {
- if (res.status == 200) {
- version = isAdd != 1 ? res.data.version : lastedVersion
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-9.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- } if (Request.type == '10') {
- fangshiAPI.getPhthisis({ followupId: followupId || '1' }).then(function (res) {
- if (res.status == 200) {
- version = isAdd != 1 ? res.data[0].version : lastedVersion
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-10.html?id=' + followupId + "&version=" + version)
- } else {
- top.toastr.error(res.msg);
- }
- })
- }
- }
- </script>
- </body>
- </html>
|