index.js 21 KB

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