index.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. var template = ''
  2. $.ajax('../../../component/statistics/LascProgressData/index.html', {
  3. data: {},
  4. dataType: 'html',
  5. cache: false,
  6. timeout: 60000,
  7. async: false,
  8. error: function (res) {},
  9. success: function (res) {
  10. template = res
  11. }
  12. })
  13. Vue.component('lasc-progress-data', {
  14. template: template,
  15. props: [],
  16. data: function () {
  17. return {
  18. status: 0,
  19. serviceHospitalList: [],
  20. form: {
  21. name: '',
  22. orderId: '',
  23. phone: '',
  24. uterineNeck: '',
  25. breastCancer: '',
  26. reception: '',
  27. molStatus: '',
  28. colStatus: ''
  29. },
  30. rangeTime: [],
  31. rangeTimeTwo: [],
  32. tableData: [],
  33. tableDataTwo: [],
  34. page: 1,
  35. pageSize: 10,
  36. total: 0,
  37. tabsId: 1,
  38. tabsList: [
  39. { id: '1', text: '筛查数据', show: true },
  40. { id: '2', text: '质控数据', show: false }
  41. ],
  42. qualityControl: [
  43. { id: '1', text: '乳腺临床检查待完善', show: true },
  44. { id: '2', text: '乳腺超声待完善', show: false },
  45. { id: '3', text: '乳腺钼靶待完善', show: false },
  46. { id: '4', text: '乳腺病理待完善', show: false },
  47. { id: '5', text: '乳腺缺漏', show: false },
  48. { id: '6', text: '乳腺初筛已完成', show: false },
  49. { id: '7', text: '乳腺超声分级比例', show: false },
  50. { id: '8', text: '统计指标', show: false }
  51. ],
  52. loginDoctor: {},
  53. loading: false,
  54. resDistrictData: [{ name: '全部', code: '' }],
  55. code: '',
  56. qualityControlId: '1',
  57. statisticalIndex: {}
  58. }
  59. },
  60. methods: {
  61. eliminateClick() {},
  62. outputServerOrder() {},
  63. search: function () {
  64. this.page = 1
  65. this.getDoorOrderList()
  66. },
  67. outputServerOrder: function (num) {
  68. var vm = this
  69. this.exportLoading = true
  70. httpRequest
  71. .downLoadFileForAjax('doctor/twoCancers/count/excel', '两癌筛查数据.xls', this.getDoorOrderParameters())
  72. .then(res => {
  73. vm.exportLoading = false
  74. })
  75. .catch(err => {
  76. vm.$message.error(err)
  77. })
  78. },
  79. hospitalList() {
  80. var vm = this
  81. httpRequest.get('doctor/twoCancers/count/hospitalList', {}).then(function (res) {
  82. if (res.status == 200) {
  83. res.data.forEach(item => {
  84. vm.resDistrictData.push({
  85. name: item.hospital_name,
  86. code: item.hospital
  87. })
  88. })
  89. }
  90. })
  91. },
  92. getDoorOrderParameters: function () {
  93. var parameters = {
  94. patientName: this.form.name, //居民姓名
  95. idcard: this.form.orderId, //身份证
  96. phone: this.form.phone, //手机号
  97. startTime: this.rangeTime[0] ? this.rangeTime[0] : '', //开始时间
  98. endTime: this.rangeTime[1] ? this.rangeTime[1] : '', //结束时间
  99. hospitalCode: this.form.reception, //筛查机构
  100. breastStatus: this.form.breastCancer, // 乳癌初筛1是0否
  101. cervicalStatus: this.form.uterineNeck, //宫颈初筛1是0否
  102. chStatus: this.form.chStatus, //宫颈检查数据1是0否
  103. page: this.page,
  104. size: this.pageSize,
  105. molStatus: this.form.molStatus,
  106. colStatus: this.form.colStatus
  107. }
  108. return parameters
  109. },
  110. getDoorOrderList: function () {
  111. this.loading = true
  112. var vm = this
  113. console.log(vm.getDoorOrderParameters(), ';;;;;;;;;;;;')
  114. httpRequest.get('doctor/twoCancers/count/doctorPCgzl', { data: vm.getDoorOrderParameters() }).then(item => {
  115. if (item.status == 200) {
  116. vm.loading = false
  117. var res = item.data.obj
  118. vm.tableData = res
  119. vm.total = item.data.total
  120. res.forEach(is => {
  121. is.id_card_no = is.id_card_no.replace(/^(.{6})(?:\d+)(.{4})$/, '$1****$2')
  122. })
  123. }
  124. })
  125. },
  126. handleCurrentChange: function (page) {
  127. this.page = page
  128. this.getDoorOrderList()
  129. },
  130. prevClick() {
  131. this.page--
  132. this.getDoorOrderList()
  133. },
  134. nextClick() {
  135. this.page++
  136. this.getDoorOrderList()
  137. }
  138. },
  139. mounted() {
  140. this.hospitalList()
  141. this.getDoorOrderList()
  142. }
  143. })