12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!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
- 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: this.followupId }).then(function (res) {
- if (res.status == 200) {
- if (res.data == null) {//第一次肺结核
- version = isAdd != 1 ? res.data.version : lastedVersion
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-9.html?id=' + followupId + "&version=" + version)
- } else {
- version =res.data.version
- location.replace('../../app/followup/' + version + '/html/fangshi-detail-10.html?id=' + followupId + "&version=" + version)
- }
- } else {
- top.toastr.error(res.msg);
- }
- })
- }
- </script>
- </body>
- </html>
|