index.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // 慢阻肺患者档案表格组件
  2. var template = ''
  3. $.ajax('../../../component/statistics/CopdPatientRecord/index.html', {
  4. data: {},
  5. dataType: 'html',
  6. cache: false,
  7. timeout: 60000,
  8. async: false,
  9. error: function (res) {},
  10. success: function (res) {
  11. template = res
  12. }
  13. })
  14. Vue.component('copd-patient-record', {
  15. template: template,
  16. props: [],
  17. data() {
  18. return {
  19. docInfo: JSON.parse(window.localStorage.getItem('docInfo')),
  20. daLoading: false,
  21. dataList: [],
  22. // 当前编辑的数据,点击编辑按钮后设置,取消或退出则清空
  23. currentEditData: null,
  24. // 编辑页面是否显示
  25. editViewVisable: false,
  26. userRoleCode: '',
  27. //服务记录是否显示
  28. serviceRecordVisable: false,
  29. transferStatusOptions: [{ code: '', value: '全部' }],
  30. recordStatusOptions: [{ code: '', value: '全部' }],
  31. followStatusArr: [{ code: '', value: '全部' }],
  32. receivingHospitalList: [{ code: '', name: '全部' }],
  33. receiveStatusOptions: [
  34. { value: '', label: '全部' },
  35. { value: '1', label: ' 已接收' },
  36. { value: '0', label: ' 未接收' }
  37. ],
  38. survivalStatusOption: [{ code: '', value: '全部' }],
  39. // 健康档案是否显示
  40. healthRecordVisable: false,
  41. page: 1,
  42. size: 20,
  43. rangeList: [
  44. { name: '按区', code: 'town' },
  45. { name: '按社区', code: 'hospital' }
  46. ],
  47. rangeCode: 'town',
  48. totalPage: 0,
  49. totalCount: 0,
  50. name: '',
  51. years: '',
  52. turnDownStatus: '',
  53. receiveStatus: '',
  54. archivesStatus: '',
  55. hospital: '',
  56. doctorName: '',
  57. isLive: '',
  58. patientCode: '',
  59. firstOrg: '',
  60. currentSelect: [],
  61. followupStatus: [],
  62. dicName: ['jkcopd_archivesStatus', 'jkcopd_turnDownStatus', 'jkcopd_isLive', 'jkcopd_followup_status'],
  63. isShow: false,
  64. startTime: '',
  65. endTime: '',
  66. chooseYear: '',
  67. nowyear: '',
  68. areaList: [],
  69. areaCode: '',
  70. communityCode: '',
  71. fileList: [],
  72. file: undefined,
  73. isProgressShow: false,
  74. percentage: 0,
  75. success: false,
  76. loading: false,
  77. isOver: false,
  78. status: '',
  79. errList: [],
  80. pickerOptions: {
  81. disabledDate(time) {
  82. let timeSpace = time.getTime() <= moment.toDate().getTime()
  83. return timeSpace
  84. }
  85. },
  86. communityList: [],
  87. allocationForm: {},
  88. doctorList: [],
  89. allocationDialog: false,
  90. isGuGan: false, // 判断是否是骨干,若是显示分配,若不是显示批量分配
  91. exportStandardLoading: false
  92. }
  93. },
  94. computed: {
  95. showTotalTable() {
  96. return this.currentEditData == null && this.editViewVisable == false && this.serviceRecordVisable == false && this.healthRecordVisable == false
  97. },
  98. showEditView() {
  99. return this.currentEditData && this.editViewVisable
  100. }
  101. },
  102. mounted() {
  103. var vm = this
  104. var userRole = window.sessionStorage.getItem('selectedRole')
  105. vm.userRoleCode = JSON.parse(userRole).code
  106. this.initTime(vm)
  107. this.initScope(3)
  108. this.isGuGan = this.docInfo.expandLevelName.indexOf('慢病骨干') > -1
  109. if(this.isGuGan&&JSON.parse(window.sessionStorage.getItem('userRole')).length == 0){
  110. // 是慢病骨干并且没有给任何权限时
  111. this.rangeList = [
  112. { name: '按社区', code: 'hospital' }
  113. ]
  114. this.rangeCode = 'hospital'
  115. this.areaList = [
  116. {name: this.docInfo.hospitalName.substring(0,3),code:this.docInfo.town}
  117. ]
  118. this.areaCode = this.docInfo.town
  119. this.communityList = [
  120. { name: this.docInfo.hospitalName,code:this.docInfo.hospital }
  121. ]
  122. this.communityCode = this.docInfo.hospital
  123. vm.receivingHospitalList = [{code:this.docInfo.hospital,name:this.docInfo.hospitalName}]
  124. this.hospital = this.docInfo.hospital
  125. }else{
  126. this.hospitalList()
  127. }
  128. EventBus.$on('copd-reset-select', function () {
  129. vm.currentEditData = null
  130. vm.editViewVisable = false
  131. vm.serviceRecordVisable = false
  132. vm.healthRecordVisable = false
  133. })
  134. EventBus.$on('copd-reset-save', function () {
  135. vm.currentEditData = null
  136. vm.editViewVisable = false
  137. vm.serviceRecordVisable = false
  138. vm.healthRecordVisable = false
  139. ;(vm.transferStatusOptions = [{ code: '', value: '全部' }]),
  140. (vm.recordStatusOptions = [{ code: '', value: '全部' }]),
  141. (vm.followStatusArr = [{ code: '', value: '全部' }]),
  142. (vm.receiveStatusOptions = [
  143. { value: '', label: '全部' },
  144. { value: '1', label: ' 已接收' },
  145. { value: '0', label: ' 未接收' }
  146. ]),
  147. (vm.survivalStatusOption = [{ code: '', value: '全部' }]),
  148. vm.getJkCopdPatientPage()
  149. vm.dicName.forEach(function (item) {
  150. vm.getDictByDictName(item)
  151. })
  152. })
  153. this.getJkCopdPatientPage()
  154. this.dicName.forEach(function (item) {
  155. vm.getDictByDictName(item)
  156. })
  157. // 如何是骨干并且userRole的数组长度为0 则只能选社区,并且限定死社区
  158. },
  159. destroyed() {
  160. EventBus.$off('copd-reset-select')
  161. EventBus.$off('copd-reset-save')
  162. },
  163. methods: {
  164. // 初始化时间
  165. initTime(vm) {
  166. var now = new Date()
  167. vm.endTime = now.format('yyyy-MM-dd')
  168. var start = now.getFullYear() + '-' + '01-01'
  169. vm.startTime = new Date(start).format('yyyy-MM-dd')
  170. vm.nowyear = vm.chooseYear = now.getFullYear()
  171. vm.chooseYear = '全部'
  172. vm.nowmonth = now.getMonth() + 1
  173. vm.years = ['全部']
  174. for (i = vm.nowyear; i >= 2013; i--) {
  175. vm.years.push(i)
  176. }
  177. },
  178. // 数据范围初始化
  179. initScope(type) {
  180. var vm = this
  181. //获得缓存中缓存的角色权限
  182. var userRole = window.sessionStorage.getItem('selectedRole')
  183. if (!userRole) {
  184. return false
  185. }
  186. vm.userRole = JSON.parse(userRole)
  187. vm.areaTitle = vm.userRole.name
  188. if(vm.userRole&&JSON.parse(window.sessionStorage.getItem('userRole')).length == 0){
  189. return
  190. }
  191. // const type = vm.rangeCode == 'town' ? 3 : 5
  192. if (type == 3) {
  193. this.areaCode = null
  194. this.communityCode = null
  195. if (vm.userRole.code == '350200' || vm.userRole.code == 'jk_350200') {
  196. vm.getDistrict(type, 350200, '厦门市')
  197. } else if (vm.userRole.code.indexOf('jk_') > -1) {
  198. vm.getDistrict(type, vm.userRole.code.substring(3), vm.areaTitle.substring(0, 3))
  199. } else if (vm.userRole.code.length == 6) {
  200. vm.getDistrict(type, vm.userRole.code, vm.areaTitle.substring(0, 3))
  201. }
  202. }else{
  203. this.communityCode = null
  204. if(this.rangeCode == 'hospital')vm.getDistrict(type, vm.areaCode)
  205. }
  206. //level:2、市,3、区,4、社区,5、团队
  207. // vm.initareaLevel = vm.areaLevel = vm.userRole.code == 'jk_350200' ? 2 : vm.userRole.code.length == 9 ? 3 : 4
  208. // vm.initlevel = vm.level = vm.userRole.code == 'jk_350200' ? 4 : vm.userRole.code.length == 9 ? 3 : 2
  209. // // if(vm.userRole.code == 'jk_350200'||vm.userRole.code =='350200'){
  210. // // vm.initareaLevel = vm.areaLevel = 2
  211. // // vm.initlevel = vm.level = 4
  212. // // }else if(vm.userRole.code.length == 9){
  213. // // vm.initareaLevel = vm.areaLevel = 3
  214. // // vm.initlevel = vm.level = 3
  215. // // }else{
  216. // // vm.initareaLevel = vm.areaLevel = 4
  217. // // vm.initlevel = vm.level = 2
  218. // // }
  219. // console.log(vm.initlevel);
  220. // vm.initarea = vm.area = vm.userRole.code
  221. // vm.areaTitle = vm.userRole.name
  222. // if (vm.initlevel == 4) {
  223. // //市获取区
  224. // if(vm.userRole.code == 'jk_350200'){
  225. // vm.getDistrict(3, vm.initarea.substring(3), vm.areaTitle.substr(0, 3))
  226. // }else{
  227. // vm.getDistrict(3, vm.initarea, vm.areaTitle.substr(0, 3))
  228. // }
  229. // vm.rangeCode = vm.rangeList[0].code
  230. // } else if (vm.initlevel == 3) {
  231. // //区获取社区
  232. // vm.areaList = [{ code: vm.initarea, name: vm.areaTitle }]
  233. // vm.areaCode = vm.initarea
  234. // vm.rangeCode = vm.rangeList[0].code
  235. // } else if (vm.initlevel == 2) {
  236. // //社区获取团队
  237. // vm.communityList = [{ code: vm.initarea, name: vm.areaTitle }]
  238. // vm.communityCode = vm.initarea
  239. // vm.rangeList.shift()
  240. // vm.rangeCode = vm.rangeList[0]?.code
  241. // }
  242. // vm.range = vm.rangeCode
  243. },
  244. handlePreview(value) {
  245. var vm = this
  246. var file = value.target.files[0]
  247. this.daLoading = true
  248. if (file && file.size) {
  249. var formFile = new FormData()
  250. formFile.append('file', file)
  251. httpRequest
  252. .post('doctor/jkCopd/importExcel', {
  253. data: formFile,
  254. cache: false, //上传文件无需缓存
  255. processData: false, //用于对data参数进行序列化处理 这里必须false
  256. contentType: false //必须
  257. })
  258. .then(function (res) {
  259. if (res.status == 200) {
  260. vm.getJkCopdPatientPage()
  261. vm.dicName.forEach(function (item) {
  262. vm.getDictByDictName(item)
  263. })
  264. vm.daLoading = false
  265. vm.$message({
  266. message: '导入成功!',
  267. type: 'success'
  268. })
  269. } else {
  270. vm.$message.error('导入失败!')
  271. vm.daLoading = false
  272. }
  273. })
  274. .catch(function (e) {
  275. console.error(e)
  276. vm.daLoading = false
  277. })
  278. // statisticAPI.importExcel({file:formFile}).then(function(res){
  279. // console.log('22222222222',res)
  280. // })
  281. }
  282. },
  283. //获取省市区 type:区3
  284. getDistrict: function (type, code, name) {
  285. var vm = this,
  286. list = [],
  287. param = ''
  288. if (type == 3) {
  289. list = [{ code: code, name: name }]
  290. param = 'area'
  291. } else if (type == 5) {
  292. list = [{ code: '', name: '全部' }]
  293. param = 'community'
  294. }
  295. var params = {
  296. type: type,
  297. code: code
  298. }
  299. homeAPI.getDistrict(params).then(function (res) {
  300. if (res.status == 200) {
  301. vm[param + 'List'] = list.concat(res.list)
  302. // vm[param + 'Code'] = vm[param + 'List'][0].code
  303. // console.log(vm.areaList)
  304. } else {
  305. vm.$message.error(res.msg)
  306. }
  307. })
  308. },
  309. hospitalList() {
  310. var vm = this
  311. statisticAPI.hospitalList({ queryArea: vm.userRoleCode }).then(function (res) {
  312. vm.receivingHospitalList = vm.receivingHospitalList && vm.receivingHospitalList.concat(res.detailModelList)
  313. })
  314. },
  315. exportTable() {
  316. var vm = this
  317. vm.daLoading = true
  318. var params = {
  319. startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
  320. endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31',
  321. name: this.name,
  322. turnDownStatus: this.turnDownStatus,
  323. receiveStatus: this.receiveStatus,
  324. archivesStatus: this.archivesStatus,
  325. hospital: this.hospital,
  326. doctorName: this.doctorName,
  327. isLive: this.isLive,
  328. firstOrg: this.firstOrg,
  329. queryArea: this.userRoleCode
  330. }
  331. statisticAPI.exportJkCopdAchives(params, '居民档案.xls').then(function (res) {
  332. vm.daLoading = false
  333. vm.$message({
  334. message: '导出成功!',
  335. type: 'success'
  336. })
  337. })
  338. },
  339. selectionLineChangeHandle(val) {
  340. var vm = this
  341. var arr = []
  342. val.forEach(function (item) {
  343. arr.push(item.id)
  344. })
  345. vm.currentSelect = arr
  346. },
  347. synPatient() {
  348. var vm = this
  349. if (vm.currentSelect.length) {
  350. statisticAPI
  351. .synPatient({
  352. ids: vm.currentSelect.join(','),
  353. doctor: vm.docInfo.code
  354. })
  355. .then(function (res) {
  356. if (res.status == '200') {
  357. vm.$message({
  358. message: res.message,
  359. type: 'success'
  360. })
  361. vm.getJkCopdPatientPage()
  362. vm.dicName.forEach(function (item) {
  363. vm.getDictByDictName(item)
  364. })
  365. } else {
  366. vm.$message({
  367. message: res.message,
  368. type: 'warning'
  369. })
  370. }
  371. })
  372. } else {
  373. vm.$message('请勾选患者!')
  374. }
  375. },
  376. queryDate() {
  377. this.getJkCopdPatientPage()
  378. },
  379. distributionHospital() {
  380. var vm = this
  381. if (vm.currentSelect.length) {
  382. vm.daLoading = true
  383. statisticAPI
  384. .distributionHospital({
  385. type: 1,
  386. ids: vm.currentSelect.join(','),
  387. doctor: vm.docInfo.code
  388. })
  389. .then(function (res) {
  390. if (res.status == '200') {
  391. vm.daLoading = false
  392. vm.$message({
  393. message: res.message,
  394. type: 'success'
  395. })
  396. vm.getJkCopdPatientPage()
  397. vm.dicName.forEach(function (item) {
  398. vm.getDictByDictName(item)
  399. })
  400. } else {
  401. vm.daLoading = false
  402. vm.$message({
  403. message: res.message,
  404. type: 'warning'
  405. })
  406. }
  407. })
  408. } else {
  409. vm.daLoading = false
  410. vm.$message('请勾选患者!')
  411. }
  412. },
  413. eliminateClick() {
  414. ;(this.name = ''),
  415. (this.turnDownStatus = ''),
  416. (this.receiveStatus = ''),
  417. (this.archivesStatus = ''),
  418. (this.hospital = ''),
  419. (this.doctorName = ''),
  420. (this.isLive = ''),
  421. (this.firstOrg = '')
  422. },
  423. //下转状态
  424. getDictByDictName(value) {
  425. var vm = this
  426. statisticAPI.getDictByDictName({ name: value }).then(function (res) {
  427. if (value == 'jkcopd_turnDownStatus') {
  428. vm.transferStatusOptions = vm.transferStatusOptions.concat(res.list)
  429. } else if (value == 'jkcopd_archivesStatus') {
  430. vm.recordStatusOptions = vm.recordStatusOptions.concat(res.list)
  431. } else if (value == 'jkcopd_isLive') {
  432. vm.survivalStatusOption = vm.survivalStatusOption.concat(res.list)
  433. } else if (value == 'jkcopd_followup_status') {
  434. vm.followStatusArr = vm.followStatusArr.concat(res.list)
  435. }
  436. })
  437. },
  438. onClickEdit(record) {
  439. window.localStorage.setItem('editDetail', JSON.stringify(record))
  440. if (!record) {
  441. return
  442. }
  443. this.currentEditData = record
  444. this.editViewVisable = true
  445. },
  446. onClickServiceRecord(record) {
  447. this.currentEditData = record
  448. this.serviceRecordVisable = true
  449. },
  450. /*打开预览链接*/
  451. openURL(url) {
  452. let aLabel = document.createElement('a')
  453. //设置链接
  454. aLabel.setAttribute('href', url)
  455. //新窗口打开链接
  456. aLabel.setAttribute('target', '_blank')
  457. //设置标签ID
  458. aLabel.setAttribute('id', 'reportpoint')
  459. // 防止反复添加
  460. if (document.getElementById('reportpoint')) {
  461. document.body.removeChild(document.getElementById('reportpoint'))
  462. }
  463. document.body.appendChild(aLabel)
  464. aLabel.click()
  465. //window.open(url);
  466. },
  467. onClickHealthRecord(record) {
  468. this.getCode(record.idcard)
  469. },
  470. getCode(idcard) {
  471. var vm = this
  472. this.patientCode = ''
  473. statisticAPI.getPatientAccetokenByIdcard({ idcard: idcard }).then(function (res) {
  474. if (res.status == 200) {
  475. vm.patientCode = res.data.patientCode
  476. var healthRecordServer = 'http://www.xmtyw.cn/wlyy/profileweb/#/menzhen' //健康档案服务
  477. //var healthRecordServer="https://www.xmtyw.cn/wlyytest/profileweb/#/menzhen" //健康档案服务wlyytest
  478. window.open(healthRecordServer + '?patientCode=' + res.data.patientCode)
  479. } else {
  480. vm.patientCode = ''
  481. this.$message.error('获取授权码失败')
  482. return
  483. }
  484. })
  485. },
  486. handleCurrentChange: function (val) {
  487. this.page = val
  488. this.getJkCopdPatientPage()
  489. },
  490. handleSizeChange(val) {
  491. this.size = val
  492. this.getJkCopdPatientPage()
  493. },
  494. getJkCopdPatientPage: function (val) {
  495. this.daLoading = true
  496. var vm = this
  497. var params = {
  498. page: this.page,
  499. size: this.size,
  500. name: this.name,
  501. turnDownStatus: this.turnDownStatus,
  502. receiveStatus: this.receiveStatus,
  503. archivesStatus: this.archivesStatus,
  504. hospital: this.hospital,
  505. doctorName: this.doctorName,
  506. isLive: this.isLive,
  507. queryArea: this.areaCode,
  508. queryHospital: this.communityCode,
  509. firstOrg: this.firstOrg,
  510. startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
  511. endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
  512. }
  513. statisticAPI.jkCopdAchivesPage(params).then(function (res) {
  514. vm.totalCount = res.totalCount
  515. vm.totalPage = res.totalPage
  516. vm.dataList = res.detailModelList
  517. vm.daLoading = false
  518. })
  519. },
  520. //上传
  521. toggle(isShow) {
  522. this.isShow = isShow
  523. if (!isShow) {
  524. this.reset()
  525. }
  526. },
  527. reset(type) {
  528. this.percentage = 0
  529. this.success = false
  530. this.isOver = false
  531. this.errList = []
  532. if (type != 1) {
  533. this.loading = false
  534. this.file = undefined
  535. this.month = ''
  536. }
  537. },
  538. close(type) {
  539. this.reset(type)
  540. this.isProgressShow = false
  541. if (type != 1) {
  542. this.isShow = false
  543. }
  544. },
  545. beforeUploadPic(file) {
  546. this.file = file
  547. },
  548. check() {
  549. var vm = this
  550. vm.loading = true
  551. if (!vm.file) {
  552. vm.loading = false
  553. vm.$message('请选择文件')
  554. return
  555. }
  556. vm.save()
  557. },
  558. save() {
  559. var vm = this
  560. vm.daLoading = true
  561. var formData = new FormData()
  562. formData.append('file', vm.file)
  563. // vm.initProgress()
  564. httpRequest
  565. .post('doctor/jkCopd/importExcel', {
  566. data: formData,
  567. cache: false, //上传文件无需缓存
  568. processData: false, //用于对data参数进行序列化处理 这里必须false
  569. contentType: false //必须
  570. })
  571. .then(function (res) {
  572. if (res.status == 200) {
  573. vm.getJkCopdPatientPage()
  574. vm.dicName.forEach(function (item) {
  575. vm.getDictByDictName(item)
  576. })
  577. vm.daLoading = false
  578. vm.isShow = false
  579. vm.$message({
  580. message: '导入成功!',
  581. type: 'success'
  582. })
  583. } else {
  584. vm.$message.error('导入失败!')
  585. vm.daLoading = false
  586. }
  587. })
  588. .catch(function (e) {
  589. console.error(e)
  590. vm.daLoading = false
  591. })
  592. },
  593. initProgress() {
  594. var vm = this
  595. this.isProgressShow = true
  596. setTimeout(() => {
  597. if (!vm.isOver && vm.percentage != 90) {
  598. vm.percentage += 10
  599. vm.initProgress()
  600. }
  601. }, 1000)
  602. },
  603. openAllocationDialog() {
  604. if (this.currentSelect.length == 0) {
  605. this.$message.warning('请选择患者')
  606. return
  607. }
  608. var vm = this
  609. this.allocationDialog = true
  610. statisticAPI.findDoctorList({ hospital: this.docInfo.hospital }).then(function (res) {
  611. vm.doctorList = res.detailModelList
  612. })
  613. },
  614. closeAllocationDialog() {
  615. this.allocationDialog = false
  616. },
  617. back() {
  618. var vm = this
  619. vm.currentEditData = null
  620. vm.editViewVisable = false
  621. vm.serviceRecordVisable = false
  622. vm.healthRecordVisable = false
  623. },
  624. allocationFn() {
  625. var vm = this
  626. this.$refs.allocationForm.validate(function (valid) {
  627. if (valid) {
  628. statisticAPI.distributionPatient({ ids: vm.currentSelect.join(','), doctor: vm.allocationForm.doctor }).then(function (res) {
  629. if (res.status == 200) {
  630. vm.allocationDialog = false
  631. vm.$message.success('分配成功')
  632. vm.getJkCopdPatientPage()
  633. } else {
  634. vm.$message.error(res.msg)
  635. }
  636. })
  637. }
  638. })
  639. },
  640. standardExport() {
  641. var vm = this
  642. vm.exportStandardLoading = true
  643. var params = {
  644. page: this.page,
  645. size: this.size,
  646. name: this.name,
  647. turnDownStatus: this.turnDownStatus,
  648. receiveStatus: this.receiveStatus,
  649. archivesStatus: this.archivesStatus,
  650. hospital: this.hospital,
  651. doctorName: this.doctorName,
  652. isLive: this.isLive,
  653. queryArea: this.userRoleCode,
  654. firstOrg: this.firstOrg,
  655. startTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-01-01',
  656. endTime: this.chooseYear == '全部' ? '' : this.chooseYear + '-12-31'
  657. }
  658. var time = new Date().getTime()
  659. statisticAPI.exportCountryStandard(params, `国家标准${time}.xls`).then(function (res) {
  660. vm.exportStandardLoading = false
  661. vm.$message({
  662. message: '导出成功!',
  663. type: 'success'
  664. })
  665. })
  666. }
  667. }
  668. })