Chensc 22 horas atrás
pai
commit
c0f16d58df

+ 15 - 17
component/statistics/LascCervical/index.js

@ -276,7 +276,7 @@ Vue.component('lasc-cervical', {
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
        this.level = 1 //  市卫健委
        this.areaOptions = [
          { label: '厦门市', value: '' },
@ -324,22 +324,21 @@ Vue.component('lasc-cervical', {
    resetArea() {
      if (this.level == 1) {
        this.areaOptions.push({ label: '其他', value: 'other' })
      } 
      }
    },
    getDictData() {},
    searchFn() {
      var vm = this
      this.loading = true
      var params = {
        ...this.form,
        ...this.form
        // page: this.page,
        // size: this.size
      }
      if(this.form.range==3){
        if(this.form.town&&this.form.town!='other'){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
      if (this.form.range == 3) {
        if (this.form.town && this.form.town != 'other') {
          params.town = this.areaOptions.find(item => item.value == this.form.town).label
        }
        
      }
      vm.tableData = []
      if (this.chooseTime) {
@ -414,11 +413,10 @@ Vue.component('lasc-cervical', {
        code: code
      }
      if (!code) {
        params={
        params = {
          type: 6,
          code: '350200'
        }
        
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
@ -494,11 +492,11 @@ Vue.component('lasc-cervical', {
      vm.dialogLoading = true
      this.query.type = 'g_' + prop
      this.query.orgCode = row.orgCode
     
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
        town: this.form.range==3?row.orgCode:(this.form && this.form.town) || ''
        town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || ''
      }
      vm.dialogTableData = []
      if (this.chooseTime) {
@ -516,11 +514,11 @@ Vue.component('lasc-cervical', {
    caseDataList() {
      var vm = this
      vm.dialogLoading = true
      this.query.type = this.query.type.substring(0,this.query.type.length-1)+this.query.status
      this.query.type = this.query.type.substring(0, this.query.type.length - 1) + this.query.status
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
        town:  (this.form && this.form.town) || '',
        town: (this.form && this.form.town) || '',
        hospital: (this.form && this.form.hospital) || ''
      }
      vm.dialogTableData = []
@ -569,8 +567,8 @@ Vue.component('lasc-cervical', {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.caseDataList()
    },
@ -580,8 +578,8 @@ Vue.component('lasc-cervical', {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.visible = false
    },

+ 3 - 3
component/statistics/LascPatient/index.js

@ -94,10 +94,10 @@ Vue.component('lasc-patient', {
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
        this.level = 1 //  市卫健委
        this.areaOptions = [
          { label:'厦门市',value:''},
          { label: '厦门市', value: '' },
          { label: '思明区', value: '350203' },
          { label: '海沧区', value: '350205' },
          { label: '湖里区', value: '350206' },
@ -221,7 +221,7 @@ Vue.component('lasc-patient', {
    },
    eliminateClick() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      console.log('11111111111111',this.level)
      console.log('11111111111111', this.level)
      if (this.level == 1) {
        this.form = {
          range: '1'

+ 19 - 22
component/statistics/LascProgress/index.js

@ -99,7 +99,7 @@ Vue.component('lasc-progress', {
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
        this.level = 1 //  市卫健委
        this.areaOptions = [
          { label: '厦门市', value: '' },
@ -120,9 +120,7 @@ Vue.component('lasc-progress', {
        this.getHospital(selectedRole.code)
      } else {
        this.level = 3 // 社区管理
        this.rangeOptions = [
          { label: '机构', value: '2' }
        ]
        this.rangeOptions = [{ label: '机构', value: '2' }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
@ -151,12 +149,12 @@ Vue.component('lasc-progress', {
      }
    },
    resetArea() {
      if(this.form.range==2){
      if (this.form.range == 2) {
        this.hospitalsByType()
      }
      if (this.level == 1) {
        this.areaOptions.push({ label: '其他', value: 'other' })
      } 
      }
    },
    getDictData() {
      var vm = this
@ -177,15 +175,14 @@ Vue.component('lasc-progress', {
      var vm = this
      this.loading = true
      var params = {
        ...this.form,
        ...this.form
        // page: this.page,
        // size: this.size
      }
      if(this.form.range==3){
        if(this.form.town&&this.form.town!='other'){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
      if (this.form.range == 3) {
        if (this.form.town && this.form.town != 'other') {
          params.town = this.areaOptions.find(item => item.value == this.form.town).label
        }
        
      }
      vm.tableData = []
      if (this.chooseTime) {
@ -260,8 +257,8 @@ Vue.component('lasc-progress', {
        type: 5,
        code: code
      }
      if(!code){
        params={
      if (!code) {
        params = {
          type: 6,
          code: '350200'
        }
@ -312,7 +309,7 @@ Vue.component('lasc-progress', {
              res.list.forEach(function (v) {
                vm.hospitalOptions.push(v)
              })
              console.log('22222222222222222222',vm)
              console.log('22222222222222222222', vm)
            }
          })
          .catch(function (err) {
@ -326,8 +323,8 @@ Vue.component('lasc-progress', {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.visible = false
    },
@ -370,11 +367,11 @@ Vue.component('lasc-progress', {
      vm.dialogLoading = true
      this.query.type = 't_' + prop
      this.query.orgCode = row.orgCode
     
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
        town: this.form.range==3?row.orgCode: (this.form && this.form.town) || ''
        town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || ''
      }
      vm.dialogTableData = []
      if (this.chooseTime) {
@ -387,13 +384,13 @@ Vue.component('lasc-progress', {
        vm.query.total = res.totalCount
        vm.visible = true
        vm.dialogLoading = false
        console.log('333333333333333',vm)
        console.log('333333333333333', vm)
      })
    },
    caseDataList() {
      var vm = this
      vm.dialogLoading = true
      this.query.type = this.query.type.substring(0,this.query.type.length-1)+this.query.status
      this.query.type = this.query.type.substring(0, this.query.type.length - 1) + this.query.status
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
@ -447,8 +444,8 @@ Vue.component('lasc-progress', {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.caseDataList()
    },

+ 21 - 24
component/statistics/breastCancerPatient/index.js

@ -230,7 +230,7 @@ Vue.component('breast-cancer-patient', {
    },
    init() {
      var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
      if (selectedRole.code.indexOf('350200') > -1 || selectedRole.code.indexOf('8d94ce907e4d4356b68f6c5d4d0d6bc9') > -1) {
        this.level = 1 //  市卫健委
        this.areaOptions = [
          { label: '厦门市', value: '' },
@ -251,9 +251,7 @@ Vue.component('breast-cancer-patient', {
        this.getHospital(selectedRole.code)
      } else {
        this.level = 3 // 社区管理
        this.rangeOptions = [
          { label: '机构', value: '2' }
        ]
        this.rangeOptions = [{ label: '机构', value: '2' }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
@ -279,21 +277,20 @@ Vue.component('breast-cancer-patient', {
    resetArea() {
      if (this.level == 1) {
        this.areaOptions.push({ label: '其他', value: 'other' })
      } 
      }
    },
    getList() {
      var vm = this
      this.loading = true
      var params = {
        ...this.form,
        ...this.form
      }
      if(this.form.range==3){
        if(this.form.town&&this.form.town!='other'){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
      if (this.form.range == 3) {
        if (this.form.town && this.form.town != 'other') {
          params.town = this.areaOptions.find(item => item.value == this.form.town).label
        }
      }
      console.log('22222222222222222222',vm)
      console.log('22222222222222222222', vm)
      vm.tableData = []
      if (this.chooseTime) {
        params.startTime = this.chooseTime[0]
@ -353,7 +350,7 @@ Vue.component('breast-cancer-patient', {
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      console.log('1111111111111111',this)
      console.log('1111111111111111', this)
      const now = new Date()
      // 获取当前日期
      const endDate = new Date()
@ -372,8 +369,8 @@ Vue.component('breast-cancer-patient', {
        type: 5,
        code: code
      }
      if(!code){
        params={
      if (!code) {
        params = {
          type: 6,
          code: '350200'
        }
@ -412,7 +409,7 @@ Vue.component('breast-cancer-patient', {
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
        town: this.form.range==3?row.orgCode: (this.form && this.form.town) || ''
        town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || ''
      }
      vm.dialogTableData = []
      if (this.chooseTime) {
@ -430,11 +427,11 @@ Vue.component('breast-cancer-patient', {
    caseDataList() {
      var vm = this
      vm.dialogLoading = true
      this.query.type = this.query.type.substring(0,this.query.type.length-1)+this.query.status
      this.query.type = this.query.type.substring(0, this.query.type.length - 1) + this.query.status
      var params = {
        ...this.query,
        range: (this.form && this.form.range) || '',
        town: this.form.range==3?row.orgCode: (this.form && this.form.town) || '',
        town: this.form.range == 3 ? row.orgCode : (this.form && this.form.town) || '',
        hospital: (this.form && this.form.hospital) || ''
      }
      vm.dialogTableData = []
@ -454,10 +451,10 @@ Vue.component('breast-cancer-patient', {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.visible=false
      this.visible = false
    },
    dialogSearchFn() {
      this.caseDataList()
@ -490,14 +487,14 @@ Vue.component('breast-cancer-patient', {
      })
    },
    dialogResetFn() {
      console.log('22222222222222',this)
      
      console.log('22222222222222', this)
      this.query = {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
        type: this.query.type,
        orgCode: this.query.orgCode
      }
      this.caseDataList()
    },