Forráskód Böngészése

对接患者档案

542372506@qq.com 1 hete
szülő
commit
e495f718b9

+ 4 - 9
component/statistics/LascPatient/index.html

@ -18,7 +18,7 @@
        <label class="c-333 c-f14" style="display: flex; align-items: center">
        <label class="c-333 c-f14" style="display: flex; align-items: center">
          <el-radio v-model="yearType" label="2">宫颈初筛时间:</el-radio>
          <el-radio v-model="yearType" label="2">宫颈初筛时间:</el-radio>
          <el-date-picker
          <el-date-picker
            v-model="chooseTime"
            v-model="chooseTime1"
            type="daterange"
            type="daterange"
            range-separator="至"
            range-separator="至"
            start-placeholder="开始日期"
            start-placeholder="开始日期"
@ -38,22 +38,17 @@
      </div>
      </div>
      <div class="searchDiv pb20 pr20">
      <div class="searchDiv pb20 pr20">
        <label class="c-333 c-f14">地区:</label>
        <label class="c-333 c-f14">地区:</label>
        <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
        <el-select class="formWidth" v-model="form.town" placeholder="请选择" @change="getHospital">
          <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
          <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
        </el-select>
        </el-select>
      </div>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
      <div class="searchDiv pb20 pr20" v-if="form.range == '2'">
        <label class="c-333 c-f14">社区:</label>
        <label class="c-333 c-f14">社区:</label>
        <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
        <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
          <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
          <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
        </el-select>
        </el-select>
      </div>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
        <label class="c-333 c-f14">团队:</label>
        <el-select class="formWidth" v-model="form.team" placeholder="请选择">
          <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
        </el-select>
      </div>
   
      <div class="searchDiv pb20">
      <div class="searchDiv pb20">
        <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
        <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
        <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
        <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>

+ 36 - 26
component/statistics/LascPatient/index.js

@ -23,11 +23,12 @@ Vue.component('lasc-patient', {
      serviceRecordVisable: false,
      serviceRecordVisable: false,
      yearType: '1',
      yearType: '1',
      chooseYear: null,
      chooseYear: null,
      chooseTime1:null,
      chooseTime: null,
      chooseTime: null,
      formDialogVisible: true,
      formDialogVisible: true,
      rangeOptions: [
      rangeOptions: [
        { label: '区', value: 'town' },
        { label: '社区', value: 'hospital' }
        { label: '区', value: '1' },
        { label: '社区', value: '2' }
      ],
      ],
      areaOptions: [
      areaOptions: [
        { label: '思明区', value: '350203' },
        { label: '思明区', value: '350203' },
@ -40,7 +41,7 @@ Vue.component('lasc-patient', {
      hospitalOptions: [],
      hospitalOptions: [],
      teamOptions: [],
      teamOptions: [],
      form: {
      form: {
        range: 'town'
        range: '1'
      },
      },
      loading: false,
      loading: false,
      exportLoading: false,
      exportLoading: false,
@ -99,21 +100,20 @@ Vue.component('lasc-patient', {
        this.level = 2 // 区管理
        this.level = 2 // 区管理
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'town',
          area: selectedRole.code
          range: '1',
          town: selectedRole.code
        }
        }
        this.getHospital(selectedRole.code)
        this.getHospital(selectedRole.code)
      } else {
      } else {
        this.level = 3 // 社区管理
        this.level = 3 // 社区管理
        this.rangeOptions = [
        this.rangeOptions = [
          { label: '社区', value: 'hospital' },
          { label: '团队', value: 'team' }
          { label: '社区', value: '2' }
        ]
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code.substring(0, 6) }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
        this.form = {
        this.form = {
          range: 'hospital',
          area: selectedRole.code.substring(0, 6),
          range: '2',
          town: selectedRole.code.substring(0, 6),
          hospital: selectedRole.code
          hospital: selectedRole.code
        }
        }
        this.getTeam(selectedRole.code)
        this.getTeam(selectedRole.code)
@ -133,7 +133,7 @@ Vue.component('lasc-patient', {
    },
    },
    resetArea() {
    resetArea() {
      if (this.level == 1) {
      if (this.level == 1) {
        delete this.form.area
        delete this.form.town
        delete this.form.hospital
        delete this.form.hospital
        delete this.form.team
        delete this.form.team
      } else if (this.level == 2) {
      } else if (this.level == 2) {
@ -154,15 +154,20 @@ Vue.component('lasc-patient', {
      var params = {
      var params = {
        ...this.form,
        ...this.form,
        page: this.page,
        page: this.page,
        size: this.size
        size: this.size,
        timeType: this.yearType,
      }
      }
      if (this.yearType == '1') {
        params.startDate = this.chooseYear + '-01-01'
        params.endDate = this.chooseYear + '-12-31'
      } else {
        if (this.chooseTime) {
          params.startDate = this.chooseTime[0]
          params.endDate = this.chooseTime[1]
      console.log('11111111111111111',this)
      if (this.yearType && this.yearType==1) {
        if(this.chooseTime){
          params.startTime = this.chooseTime[0]
          params.endTime = this.chooseTime[1]
        }
       
      } else if(this.yearType && this.yearType==2) {
        if (this.chooseTime1) {
          params.startTime = this.chooseTime1[0]
          params.endTime = this.chooseTime1[1]
        }
        }
      }
      }
@ -188,15 +193,20 @@ Vue.component('lasc-patient', {
      var params = {
      var params = {
        ...this.form,
        ...this.form,
        page: this.page,
        page: this.page,
        pageSize: this.size
        size: this.size,
        timeType: this.yearType,
      }
      }
      if (this.yearType == '1') {
        params.startDate = this.chooseYear + '-01-01'
        params.endDate = this.chooseYear + '-12-31'
      } else {
        if (this.chooseTime) {
          params.startDate = this.chooseTime[0]
          params.endDate = this.chooseTime[1]
      console.log('11111111111111111',this)
      if (this.yearType && this.yearType==1) {
        if(this.chooseTime){
          params.startTime = this.chooseTime[0]
          params.endTime = this.chooseTime[1]
        }
       
      } else if(this.yearType && this.yearType==2) {
        if (this.chooseTime1) {
          params.startTime = this.chooseTime1[0]
          params.endTime = this.chooseTime1[1]
        }
        }
      }
      }
      this.exportLoading = true
      this.exportLoading = true