sign_detail.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. var httpData=GetRequest(),
  2. doctorInfo = JSON.parse(window.localStorage.getItem('wlyyAgent'))
  3. function showSuccessMessage(msg) {
  4. layer.msg(msg, {
  5. icon: 1
  6. })
  7. }
  8. function showErrorMessage(msg) {
  9. layer.msg(msg, {
  10. icon: 5
  11. })
  12. }
  13. function showWarningMessage(msg) {
  14. layer.msg(msg, {
  15. icon: 2
  16. })
  17. }
  18. function showInfoMessage(msg) {
  19. layer.msg(msg, {
  20. icon: 6
  21. })
  22. }
  23. new Vue({
  24. el: "#app",
  25. data: {
  26. isLeader: null,
  27. isShowList1: false,
  28. isShowList2: false,
  29. isShowList3: false,
  30. isShowList4:false,
  31. isJudgeHealthDoctor: null,
  32. isJudgezkDoctor:null,
  33. isJudgeDoctor: null,
  34. isJudgeExpense: null,
  35. isSaveBtn: false,
  36. isSaveBtn1: false,
  37. isSaveBtn2: false,
  38. isSaveBtn3:false,
  39. patientInfo: {jtSign:{}},
  40. doctorTeam: {},
  41. patientInfo: null,
  42. doctorTeam: null,
  43. doctorList: null,
  44. memberList: null,
  45. zkDoctorList:null,
  46. dictList: null,
  47. adminTeamCode: null,
  48. fileList: null,
  49. serverName: null,
  50. isShowzkdoctor:false,
  51. },
  52. mounted: function() {
  53. this.patientSign();
  54. this.patientTeam();
  55. this.getDictByDictName();
  56. this.findPatientSignServerBySignCode()
  57. },
  58. methods: {
  59. patientSign: function() {
  60. var vm = this,
  61. loadding = layer.load(0, {shade: false}),
  62. params = {
  63. code: httpData.patientCode
  64. }
  65. signAPI.patientSign(params).then(function(res) {
  66. layer.close(loadding)
  67. if(res.status == 200) {
  68. vm.patientInfo = res.data
  69. vm.jsJudgeExpense = res.data.jtSign.expensesType
  70. } else {
  71. showErrorMessage(res.msg);
  72. }
  73. })
  74. },
  75. patientTeam: function() {
  76. var vm = this,
  77. loadding = layer.load(0, {shade: false}),
  78. params = {
  79. code: httpData.patientCode
  80. }
  81. signAPI.patientTeam(params).then(function(res) {
  82. layer.close(loadding)
  83. if(res.status == 200) {
  84. vm.doctorTeam = res.data
  85. vm.isJudgeHealthDoctor = vm.doctorTeam.healthDoctorCode
  86. vm.isJudgezkDoctor=vm.doctorTeam.specialist
  87. vm.isJudgeDoctor = vm.doctorTeam.doctorCode
  88. vm.isLeader = vm.doctorTeam.isLeader
  89. if(vm.isLeader) {
  90. vm.teamMember()
  91. }
  92. } else {
  93. showErrorMessage(res.msg);
  94. }
  95. })
  96. },
  97. getDictByDictName: function() {
  98. var vm =this,
  99. loadding = layer.load(0, {shade: false}),
  100. params = {
  101. name: "SIGN_EXPENSES"
  102. }
  103. signAPI.getDictByDictName(params).then(function(res) {
  104. layer.close(loadding)
  105. if(res.status == 200) {
  106. vm.dictList = res.list
  107. } else {
  108. showErrorMessage(res.msg);
  109. }
  110. })
  111. },
  112. findPatientSignServerBySignCode: function() {
  113. var vm =this,
  114. loadding = layer.load(0, {shade: false}),
  115. params = {
  116. signCode: httpData.signCode
  117. };
  118. signAPI.findPatientSignServerBySignCode(params).then(function(res) {
  119. layer.close(loadding)
  120. if(res.status == 200) {
  121. vm.fileList = [];
  122. var len = res.data.length;
  123. if(res.data.length > 0) {
  124. vm.serverName = "";
  125. for(var i = 0; i < len; i++) {
  126. if(i == 0) {
  127. vm.serverName += res.data[i].serverTypeName
  128. } else {
  129. vm.serverName += ',' + res.data[i].serverTypeName
  130. }
  131. }
  132. if(vm.serverName.split(',').indexOf('高血压')>-1 || vm.serverName.split(',').indexOf('糖尿病')>-1){
  133. console.log('服务类型存在高血压,糖尿病')
  134. vm.isShowzkdoctor=true
  135. }else{
  136. vm.isShowzkdoctor=false
  137. }
  138. }
  139. $.each(res.data, function(i, v) {
  140. if(v.serverType == 8 || v.serverType == 9 || v.serverType == 11) {
  141. vm.fileList.push(v);
  142. }
  143. });
  144. } else {
  145. showErrorMessage(res.msg);
  146. }
  147. })
  148. },
  149. teamMember: function() {
  150. var vm = this,
  151. loadding = layer.load(0, {shade: false}),
  152. params = {
  153. teamId: vm.doctorTeam.teamId
  154. }
  155. signAPI.teamMember(params).then(function(res) {
  156. layer.close(loadding)
  157. vm.memberList = []
  158. vm.doctorList = []
  159. vm.zkDoctorList=[]
  160. if(res.status == 200) {
  161. $.each(res.data, function(i, v) {
  162. if(v.available && (v.level == 3 || v.level == 2)) {vm.memberList.push(v);}
  163. if(v.available && v.level == 2) {vm.doctorList.push(v);}
  164. vm.zkDoctorList.push(v)
  165. });
  166. } else {
  167. showErrorMessage(res.msg);
  168. }
  169. })
  170. },
  171. selectStatus: function(num) {
  172. if (num == 1) {
  173. this.isShowList3 = false;
  174. this.isShowList2 = false;
  175. this.isShowList4 = false;
  176. this.isShowList1 = !this.isShowList1;
  177. } else if (num == 2) {
  178. this.isShowList3 = false;
  179. this.isShowList1 = false;
  180. this.isShowList4 = false;
  181. this.isShowList2 = !this.isShowList2;
  182. }else if(num==4){
  183. this.isShowList1=false
  184. this.isShowList2=false
  185. this.isShowList3=false
  186. this.isShowList4=!this.isShowList4
  187. } else {
  188. this.isShowList1 = false;
  189. this.isShowList2 = false;
  190. this.isShowList4 = false;
  191. this.isShowList3 = !this.isShowList3;
  192. }
  193. },
  194. selectLi: function(num, data) {
  195. if(num == 1) {
  196. this.isShowList1 = false;
  197. if(data.code == this.isJudgeDoctor) {
  198. this.isSaveBtn = false
  199. } else {
  200. this.isSaveBtn = true
  201. }
  202. this.doctorTeam.doctorCode = data.code;
  203. this.doctorTeam.doctorName = data.name;
  204. }
  205. if(num == 2) {
  206. this.isShowList2 = false;
  207. if(data.code == this.isJudgeHealthDoctor) {
  208. this.isSaveBtn1 = false
  209. } else {
  210. this.isSaveBtn1 = true
  211. }
  212. this.doctorTeam.healthDoctorCode = data.code;
  213. this.doctorTeam.healthDoctorName = data.name;
  214. }
  215. if(num == 3) {
  216. this.isShowList3 = false;
  217. if(data.code == this.jsJudgeExpense) {
  218. this.isSaveBtn2 = false
  219. } else {
  220. this.isSaveBtn2 = true
  221. }
  222. this.patientInfo.jtSign.expensesType = data.code
  223. }
  224. if(num == 4){
  225. this.isShowList4=false
  226. if(data.code==this.isJudgezkDoctor){
  227. this.isSaveBtn3=false
  228. }else{
  229. this.isSaveBtn3=true
  230. }
  231. this.doctorTeam.specialist = data.code;
  232. this.doctorTeam.specialistName = data.name;
  233. }
  234. },
  235. // 把原来下拉选择框变成可搜索下拉选择框
  236. changeSelect4:function(val){
  237. var obj = {};
  238. obj = this.doctorList.find(function(item){
  239. return item.code === val;
  240. });
  241. this.doctorTeam.doctorName=obj.name
  242. if(val == this.isJudgeDoctor) {
  243. this.isSaveBtn = false
  244. } else {
  245. this.isSaveBtn = true
  246. }
  247. },
  248. changeSelect2:function(val){
  249. var obj = {};
  250. obj = this.memberList.find(function(item){
  251. return item.code === val;
  252. });
  253. this.doctorTeam.healthDoctorName=obj.name
  254. if(val == this.isJudgeHealthDoctor) {
  255. this.isSaveBtn1 = false
  256. } else {
  257. this.isSaveBtn1 = true
  258. }
  259. },
  260. changeSelect5:function(val){
  261. var obj = {};
  262. obj = this.zkDoctorList.find(function(item){
  263. return item.code === val;
  264. });
  265. this.doctorTeam.specialistName=obj.name
  266. if(val==this.isJudgezkDoctor){
  267. this.isSaveBtn3=false
  268. }else{
  269. this.isSaveBtn3=true
  270. }
  271. },
  272. showExpensesName: function(code) {
  273. var expensesName;
  274. if(!this.dictList) {
  275. return "请选择补贴类型";
  276. }
  277. for(var i = 0, len = this.dictList.length; i < len; i++) {
  278. if(code == this.dictList[i].code) {
  279. expensesName = this.dictList[i].value;
  280. }
  281. }
  282. return expensesName
  283. },
  284. handleExpensesStatus: function(status) {
  285. if(status == 0) return "&emsp;未缴费";
  286. if(status == 1) return "&emsp;已缴费";
  287. if(status == 2) return "&emsp;已退费";
  288. if(!status) return "";
  289. },
  290. setPatImg: function(str) {
  291. var imgStr = httpRequest.getImgUrl(str);
  292. if (imgStr == "") {
  293. return '../../../images/p-female.png';
  294. } else {
  295. return imgStr;
  296. }
  297. },
  298. lookPhoto: function(data) {
  299. layer.open({
  300. type: 2,
  301. area: ['100%', '100%'],
  302. title: "凭证预览",
  303. shade: 0.5,
  304. shadeClose: true,
  305. content: '../html/photo_show.html?serverType=' + data.serverType + '&patientCode=' + httpData.patientCode
  306. })
  307. },
  308. saveChange: function() {
  309. if(!this.isSaveBtn && !this.isSaveBtn1 && !this.isSaveBtn2 && !this.isSaveBtn3) {
  310. return false;
  311. }
  312. var vm = this,
  313. loadding = layer.load(0, {shade: false}),
  314. params = {
  315. patient: httpData.patientCode
  316. }
  317. if(this.isSaveBtn) {
  318. params.doctor = this.doctorTeam.doctorCode
  319. }
  320. if(this.isSaveBtn1) {
  321. params.healthDoctor = this.doctorTeam.healthDoctorCode
  322. }
  323. if(this.isSaveBtn3){
  324. params.specialist=this.doctorTeam.specialist
  325. }
  326. if(this.isSaveBtn2) {
  327. params.expensesType = this.patientInfo.jtSign.expensesType
  328. }
  329. signAPI.saveChange(params).then(function(res) {
  330. layer.close(loadding)
  331. if(res.status == 200) {
  332. showSuccessMessage(res.msg);
  333. vm.patientSign();
  334. vm.patientTeam();
  335. vm.isSaveBtn = false
  336. vm.isSaveBtn1 = false
  337. vm.isSaveBtn2 = false
  338. vm.isSaveBtn3 = false
  339. } else {
  340. showErrorMessage(res.msg);
  341. }
  342. })
  343. },
  344. showProject: function() {
  345. layer.open({
  346. type: 1,
  347. area: ['400px', '600px'],
  348. shade: 0.5,
  349. title: '个性化服务项目',
  350. shift: 2,
  351. closeBtn: 1,
  352. shadeClose: true, //点击遮罩关闭层
  353. content: '<div class="p20 pb0">'+
  354. '<h4><b>1、基本医疗服务</b></h4>'+
  355. '<div class="pb15">'+
  356. '<div class="pl20 pt5">'+
  357. '<div class="pb5">1.1 提供一般常见病、多发病、诊断明确的慢性病VIP诊疗服务(相对独立就诊服务区,每次诊疗时间不低于10分钟,个性化健康指导)。 </div>'+
  358. '</div>'+
  359. '</div>'+
  360. '<h4><b>2、免费提供以下基本公共卫生服务</b></h4>'+
  361. '<div class="pb15">'+
  362. '<ol class="pl20 pt5">'+
  363. '<div class="pb5">2.1 居民健康档案的建立和维护;</div>'+
  364. '<div class="pb5">2.2 健康评估、健康促进、健康干预;</div>'+
  365. '<div class="pb5">2.3 0~6岁儿童健康管理;</div>'+
  366. '<div class="pb5">2.4 孕产妇健康管理;</div>'+
  367. '<div class="pb5">2.5 老年人健康管理服务;</div>'+
  368. '<div class="pb5">2.6 预防接种服务;</div>'+
  369. '<div class="pb5">2.7 传染病报告和处理;</div>'+
  370. '<div class="pb5">2.8 高血压患者健康管理;</div>'+
  371. '<div class="pb5">2.9 Ⅱ型糖尿病患者健康管理;</div>'+
  372. '<div class="pb5">2.10 重性精神疾病患者管理;</div>'+
  373. '<div class="pb5">2.11 中医药健康管理。</div>'+
  374. '</ol>'+
  375. '</div>'+
  376. '<h4><b>3、免费提供以下个性化服务</b></h4>'+
  377. '<div class="pb15">'+
  378. '<div class="pl20 pt5">'+
  379. '<div class="pb5">3.1 由专科医师个性化技术指导。根据病情需求,由家庭医生预约,接受三级医院专科医师技术指导。 </div>'+
  380. '<div class="pb5">3.2 由“家庭医生服务团队”提供个性化健康管理、健康评估、健康咨询服务。协助签约居民参与社区自我健康管理团体活动,开展自我健康管理。利用手机APP、或微信公众号服务平台,提供便捷的健康咨询服务。</div>'+
  381. '<div class="pb5">3.3 上级医院专家预约服务及转诊服务。优先提供上级医院专家门诊预约(根据病情优先享受名院、名科、名医预约服务)、大型仪器设备检查预约及根据病情需要的转诊服务。</div>'+
  382. '<div class="pb5">3.4社区门诊预约服务。家庭医生会根据病情有针对性的为签约居民办理下次门诊预约服务。</div>'+
  383. '<div class="pb5">3.5为高血压、糖尿病等慢性病签约对象提供“三师共管”慢病精细化管理服务。重点为高血压、糖尿病等慢性病人提供日常随访、定期检查及全程健康管理等服务。根据病情发展及控制情况提供适时动态转库服务。病情不稳定期纳入强化管理库,由三师提供强化管理服务;病情稳定期纳入常规管理库,在专科医师指导下由全科医生团队提供常规管理服务;强化管理库及常规管理库病人依据病情实行动态流动,需转专科医师时优先及时安排。</div>'+
  384. '<div class="pb5">3.6为65岁以上老人提供日常随访、定期检查及全程健康管理等服务。为80岁以上老年人及失能半失能老人免费提供每年不少于一次上门出诊服务。签约老人可享受包括测血压、体格检查、用药指导、健康咨询等服务。</div>'+
  385. '</div>'+
  386. '</div>'+
  387. '<h4><b>4、参加厦门市基本医疗保险的本市户籍人员可享受以下医保优惠政策:</b></h4>'+
  388. '<div class="pb15">'+
  389. '<div class="pl20 pt5">'+
  390. '<div class="pb5">4.1 根据上级医院用药长期医嘱,向慢性病患者开具4-8周(含慢性病相关辅助用药)的门诊用药处方。</div>'+
  391. '<div class="pb5">4.2 在基层医疗卫生机构或医保定点门诊部就医,门诊医疗费不设起付标准,即参保职工个人医疗账户用完后直接进入社会统筹医疗基金支付段,参保居民直接进入社会统筹医疗基金支付段。</div>'+
  392. '<div class="pb5">4.3 住院医疗费不设二次及以上起付标准。</div>'+
  393. '</div>'+
  394. '</div>'+
  395. '<h4><b>5、签约对象在享受上述签约服务外,还可享受以下服务项目:</b></h4>'+
  396. '<div class="pb15">'+
  397. '<div class="pl20 pt5">'+
  398. '<div class="pb5">5.1 为有康复需求的康复患者免费建立康复、训练档案。提供针对性康复训练和康复治疗服务,相关服务按物价部门制定的标准收取服务费。</div>'+
  399. '<div class="pb5">5.2 为有需要的签约居民提供建立家庭病床、导尿、换药、上门测血糖、上门抽血检验等有偿上门服务。乙方需要甲方提供出诊等上门适宜医疗服务(不提供院外静脉输液),须先通过甲方的医学安全性评估,并签订相关免责申明。</div>'+
  400. '<div class="pb5">5.3优先安排彩超、肿瘤标志物检查、眼底筛查、24小时动态血压监测、糖尿病足筛查、尿微量蛋白检测等基本医疗收费项目及慢性疾病筛查服务项目。</div>'+
  401. '</div>'+
  402. '</div>'+
  403. '</div>',
  404. });
  405. }
  406. }
  407. })