hd 3 meses atrás
pai
commit
21b46b9925

+ 35 - 7
component/statistics/GxbCy/index.js

@ -202,7 +202,8 @@ Vue.component('gxb-cy', {
      var vm = this
      var vm = this
      this.loading = true
      this.loading = true
      var params = {
      var params = {
        ...this.form
        ...this.form,
        isTotal: 1
      }
      }
      if (this.yearType == '1') {
      if (this.yearType == '1') {
        params.startDate = this.chooseYear + '-01-01'
        params.startDate = this.chooseYear + '-01-01'
@ -255,7 +256,7 @@ Vue.component('gxb-cy', {
        }
        }
      }
      }
      this.exportLoading = true
      this.exportLoading = true
      var fileName = `冠心病出院下转统计表${new Date().getTime()}.xls`
      var fileName = `冠心病康复管理情况统计表${new Date().getTime()}.xls`
      httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbRehabilitationInfo', fileName, params).then(function () {
      httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbRehabilitationInfo', fileName, params).then(function () {
        vm.exportLoading = false
        vm.exportLoading = false
      })
      })
@ -267,10 +268,12 @@ Vue.component('gxb-cy', {
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
    },
    },
    getHospital(code) {
    getHospital(code, flag = true) {
      var vm = this
      var vm = this
      delete this.form.hospital
      delete this.form.team
      if(flag){
        delete this.form.hospital
        delete this.form.team
      }
      var params = {
      var params = {
        type: 5,
        type: 5,
        code: code
        code: code
@ -280,9 +283,11 @@ Vue.component('gxb-cy', {
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
      })
      })
    },
    },
    getTeam(code) {
    getTeam(code, flag = true) {
      var vm = this
      var vm = this
      delete this.form.team
      if(flag){
        delete this.form.team
      }
      var params = {
      var params = {
        hospital: code,
        hospital: code,
        area: this.form.area
        area: this.form.area
@ -546,6 +551,29 @@ Vue.component('gxb-cy', {
    },
    },
    closeMessageDialog() {
    closeMessageDialog() {
      this.messageVisible = false
      this.messageVisible = false
    },
    getData(data) {
      this.yearType = data.yearType
      this.form.range = data.range
      this.form.area = data.area
      this.form.hospital = data.hospital
      this.form.team = data.team
      if (this.yearType == 1) {
        this.chooseYear = data.time
      } else {
        this.chooseTime = data.time
      }
      if (this.form.hospital) {
        // 如果有社区code传过来就调社区医院列表接口
        this.getHospital(data.area, false)
      }
      if (this.form.team) {
        // 如果有团队code传过来就调团队列表接口
        this.getTeam(data.hospital, false)
      }
      this.searchFn()
    }
    }
  },
  },
  mounted() {
  mounted() {

+ 36 - 9
component/statistics/GxbMz/index.js

@ -165,7 +165,8 @@ Vue.component('gxb-mz', {
      var vm = this
      var vm = this
      this.loading = true
      this.loading = true
      var params = {
      var params = {
        ...this.form
        ...this.form,
        isTotal: 1
      }
      }
      if (this.yearType == '1') {
      if (this.yearType == '1') {
        params.startDate = this.chooseYear + '-01-01'
        params.startDate = this.chooseYear + '-01-01'
@ -189,10 +190,10 @@ Vue.component('gxb-mz', {
            var data = JSON.parse(JSON.stringify(item))
            var data = JSON.parse(JSON.stringify(item))
            if (vm.form.range == 'town') {
            if (vm.form.range == 'town') {
              data.town = item.name
              data.town = item.name
              data.hasChildren = true
              data.hasChildren = data.code && true
            } else if (vm.form.range == 'hospital') {
            } else if (vm.form.range == 'hospital') {
              data.hospital = item.name
              data.hospital = item.name
              data.hasChildren = true
              data.hasChildren = data.code && true
            } else if (vm.form.range == 'team') {
            } else if (vm.form.range == 'team') {
              data.team = item.name
              data.team = item.name
            }
            }
@ -233,10 +234,12 @@ Vue.component('gxb-mz', {
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
    },
    },
    getHospital(code) {
    getHospital(code, flag = true) {
      var vm = this
      var vm = this
      delete this.form.hospital
      delete this.form.team
      if (flag) {
        delete this.form.hospital
        delete this.form.team
      }
      var params = {
      var params = {
        type: 5,
        type: 5,
        code: code
        code: code
@ -250,9 +253,11 @@ Vue.component('gxb-mz', {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = res.list
      })
      })
    },
    },
    getTeam(code) {
    getTeam(code, flag = true) {
      var vm = this
      var vm = this
      delete this.form.team
      if (flag) {
        delete this.form.team
      }
      var params = {
      var params = {
        hospital: code
        hospital: code
      }
      }
@ -559,7 +564,6 @@ Vue.component('gxb-mz', {
      }
      }
      this.loading = true
      this.loading = true
      httpRequest.get('statistics/collaborate/turnDownDataPage', { data: params }).then(function (res) {
      httpRequest.get('statistics/collaborate/turnDownDataPage', { data: params }).then(function (res) {
        console.log('99999999999999999999999999999999999999', res)
        if (res.status == 200) {
        if (res.status == 200) {
          vm.dialogTableData = res.detailModelList
          vm.dialogTableData = res.detailModelList
          vm.total = res.totalCount
          vm.total = res.totalCount
@ -574,6 +578,29 @@ Vue.component('gxb-mz', {
    closeDialog1() {
    closeDialog1() {
      this.dialogVisible = false
      this.dialogVisible = false
    },
    getData(data) {
      this.yearType = data.yearType
      this.form.range = data.range
      this.form.area = data.area
      this.form.hospital = data.hospital
      this.form.team = data.team
      if (this.yearType == 1) {
        this.chooseYear = data.time
      } else {
        this.chooseTime = data.time
      }
      if (this.form.hospital) {
        // 如果有社区code传过来就调社区医院列表接口
        this.getHospital(data.area, false)
      }
      if (this.form.team) {
        // 如果有团队code传过来就调团队列表接口
        this.getTeam(data.hospital, false)
      }
      this.searchFn()
    }
    }
  },
  },
  mounted() {
  mounted() {

+ 10 - 6
component/statistics/GxbTurnup/index.js

@ -184,7 +184,7 @@ Vue.component('gxb-turnup', {
        }
        }
      }
      }
      this.exportLoading = true
      this.exportLoading = true
      var fileName = `冠心病上转情况表${new Date().getTime()}.xls`
      var fileName = `冠心病上转情况统计表${new Date().getTime()}.xls`
      httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbTurnUpInfo', fileName, params).then(function () {
      httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbTurnUpInfo', fileName, params).then(function () {
        vm.exportLoading = false
        vm.exportLoading = false
      })
      })
@ -196,10 +196,12 @@ Vue.component('gxb-turnup', {
      this.chooseTime = null
      this.chooseTime = null
      this.$forceUpdate()
      this.$forceUpdate()
    },
    },
    getHospital(code) {
    getHospital(code, flag = true) {
      var vm = this
      var vm = this
      delete this.form.hospital
      delete this.form.team
      if(flag){
        delete this.form.hospital
        delete this.form.team
      }
      var params = {
      var params = {
        type: 5,
        type: 5,
        code: code
        code: code
@ -209,9 +211,11 @@ Vue.component('gxb-turnup', {
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
      })
      })
    },
    },
    getTeam(code) {
    getTeam(code, flag) {
      var vm = this
      var vm = this
      delete this.form.team
      if(flag){
        delete this.form.team
      }
      var params = {
      var params = {
        hospital: code,
        hospital: code,
        area: this.form.area
        area: this.form.area