Browse Source

修改bug

542372506@qq.com 17 hours ago
parent
commit
e7920bdb1f

+ 9 - 2
component/statistics/CopdServiceRecordPatient/index.js

@ -176,8 +176,15 @@ Vue.component('Copd-service-record-patient', {
        type: vm.serviceNode
      }
      httpRequest.get('doctor/twoCancers/count/serviceRecord', { data: params }).then(function (res) {
        vm.events = res.obj.records
        vm.detailInfo = res.obj
        if(res.status==200){
          vm.events = res.obj.records
          if(!vm.serviceNode){
            vm.detailInfo = res.obj
          }
        
        }else{
          alert(vm.message)
        }
        vm.loading = false
      })
    },

+ 8 - 1
component/statistics/LascBreastFollowUp/index.js

@ -74,6 +74,13 @@ Vue.component('lasc-breast-followUp', {
    }
  },
  mounted() {
   
    if (this.data.value && this.data.value.length && this.data.value[0].id) {
      var first = this.data.value[0]
      this.form.screenId = first.screenId
      this.form.id = first.id ? first.id : ''
      first.reviewValue = first.reviewValue ? first.reviewValue.split(',') : ''
      this.show = false
      this.form = first
    }
  }
})

+ 38 - 1
component/statistics/LascBreastPathologyInspectEntityList/index.js

@ -97,6 +97,43 @@ Vue.component('lasc-breast-pathology-inspect-entity-list', {
    }
  },
  created() {
    
    var vm = this
    if (this.data.value && this.data.value.length && this.data.value[0].id) {
      var first = this.data.value[0]
      this.form.screenId = first.screenId
      this.form.id = first.id ? first.id : ''
      this.form.receivePathologicalExamination = first.receivePathologicalExamination
      this.form.refusePathologicalExaminationReason = first.refusePathologicalExaminationReason
      this.form.breastPathologyRefusalReason = first.breastPathologyRefusalReason ? first.breastPathologyRefusalReason.split(',') : []
      this.form.breastPathologyRefusalReasonContent = first.breastPathologyRefusalReasonContent
      this.form.pathologicalExamTime = first.pathologicalExamTime
      var formData = JSON.parse(JSON.stringify(this.data.value))
      formData.forEach(function (v) {
        var left = { boxShow: false, name: '左乳' },
          right = { boxShow: false, name: '右乳' }
        for (var k in v) {
          if (k.indexOf('right') === 0) {
            right[k] = v[k]
            if (k == 'rightPathologicalBiopsyMethod') {
              right[k] = right[k] ? right[k].split(',') : []
            }
            if (k == 'rightPathologicalMalignanciesType') {
              right[k] = right[k] ? right[k].split(',') : []
            }
          } else if (k.indexOf('left') === 0) {
            left['right' + k.substring(4)] = v[k]
            if (k == 'leftPathologicalBiopsyMethod') {
              left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : ''
            }
            if (k == 'leftPathologicalMalignanciesType') {
              left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : ''
            }
          }
        }
        v.breastList = [right, left]
        v.pathologicalExaminationDiagnosisOrgPick = vm.getPathologicalExaminationDiagnosisOrg(v.pathologicalExaminationDiagnosisOrg)
      })
      this.form.list = formData
    }
  }
})

+ 3 - 1
component/statistics/LascBreastSurgeryInspectEntity/index.js

@ -49,6 +49,8 @@ Vue.component('lasc-breast-surgery-inspect-entity', {
    }
  },
  mounted() {
    
    var form = JSON.parse(JSON.stringify(this.data.value))
    form.surgicalClinicTreatmentSuggestions = (form.surgicalClinicTreatmentSuggestions && form.surgicalClinicTreatmentSuggestions.split(',')) || []
    this.form = _.assign(this.form, form)
  }
})

+ 9 - 1
component/statistics/LascBreastTreatInfo/index.js

@ -86,6 +86,14 @@ Vue.component('lasc-breast-treat-info', {
    }
  },
  mounted() {
    
    if (this.data.value && this.data.value.length && this.data.value[0].id) {
      var first = this.data.value[0]
      this.form.screenId = first.screenId
      this.form.id = first.id ? first.id : ''
      first.type = first.type ? first.type.split(',') : []
      first.breastCancerSurgeryMode = first.breastCancerSurgeryMode ? first.breastCancerSurgeryMode.split(',') : []
      first.armpitSurgeryMode = first.armpitSurgeryMode ? first.armpitSurgeryMode.split(',') : []
      this.form = first
    }
  }
})

+ 3 - 3
component/statistics/LascCervical/index.html

@ -26,7 +26,7 @@
          <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
        </el-select>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == '2' || form.range == '3'">
      <div class="searchDiv pb20 pr20" v-if="form.range == '2' ">
        <label class="c-333 c-f14">机构:</label>
        <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>
@ -74,7 +74,7 @@
        </el-table-column>
      </template>
    </el-table>
    <el-pagination
    <!-- <el-pagination
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      :current-page.sync="page"
@ -82,7 +82,7 @@
      :page-sizes="[10, 20, 50]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
      class="pagination"></el-pagination>
      class="pagination"></el-pagination> -->
    <el-dialog :visible.sync="visible" title="个案数据列表" @close="closeDialog" width="1200px">
      <el-form inline size="mini">

+ 27 - 10
component/statistics/LascCervical/index.js

@ -255,8 +255,9 @@ Vue.component('lasc-cervical', {
            { prop: 'finSNum3', label: '炎症' },
            { prop: 'finSNum4', label: '低级别病变(原CIN1)' },
            { prop: 'finSNum5', label: '高级别病变(原CIN2及CIN3)' },
            { prop: 'finSNum6', label: '宫颈微小浸润癌(鳞癌/腺癌)' },
            { prop: 'finSNum7', label: '宫颈浸润癌(鳞癌/腺癌)' }
            { prop: 'finSNum6', label: '宫颈原位腺癌(AIS)' },
            { prop: 'finSNum7', label: '宫颈微小浸润癌(鳞癌/腺癌)' },
            { prop: 'finSNum8', label: '宫颈浸润癌(鳞癌/腺癌)' }
          ]
        }
      ],
@ -296,7 +297,7 @@ Vue.component('lasc-cervical', {
        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 = {
@ -338,8 +339,14 @@ Vue.component('lasc-cervical', {
      this.loading = true
      var params = {
        ...this.form,
        page: this.page,
        size: this.size
        // page: this.page,
        // size: this.size
      }
      if(this.form.range==3){
        if(this.form.town){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
        }
        
      }
      vm.tableData = []
      if (this.chooseTime) {
@ -349,7 +356,7 @@ Vue.component('lasc-cervical', {
      httpRequest.get('/doctor/twoCancers/count/cervicalQualityCount', { data: params }).then(function (res) {
        if (res.status == 200) {
          vm.tableData = res.detailModelList
          vm.total = res.totalCount
          // vm.total = res.totalCount
        }
        console.log('22222222222222222', vm.tableData)
        vm.loading = false
@ -414,12 +421,15 @@ Vue.component('lasc-cervical', {
        code: code
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
        params={
          type: 6,
          code: '350200'
        }
        
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
      })
    },
    getTeam(code, flag = true) {
@ -572,6 +582,13 @@ Vue.component('lasc-cervical', {
    },
    closeDialog() {
      this.query = {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
      }
      this.visible = false
    },

+ 3 - 1
component/statistics/LascCervicalColposcopyEntityList/index.js

@ -31,7 +31,9 @@ Vue.component('lasc-cervical-colposcopy-entity-list', {
  },
  template: template,
  created: function () {
   
    if (this.data.value && this.data.value.length && this.data.value[0].id) {
      this.form.list = this.data.value
    }
  },
  watch:{
    data:{

+ 15 - 2
component/statistics/LascCervicalColposcopyFollowup/index.js

@ -50,8 +50,21 @@ Vue.component('lasc-cervical-colposcopy-followup', {
    }
  },
  created: function () {
    
  },
    var vm = this
    if (this.data.value && this.data.value.length) {
      var form = JSON.parse(JSON.stringify(this.data.value))
      if (vm.isStrEmpty(form[0].examineStatus)) {
        this.form.list = _.map(form, function (v) {
          return _.assign(vm.getDefItem(), v)
        })
      } else {
        _.each(form, function (m) {
          m.examineCauseResultAbnormal = m.examineCauseResultAbnormal.split(',')
        })
        this.form.list = form
      }
    }
},
  methods: {
    getDefItem: function (noDefault) {
      var tmp = {

+ 10 - 1
component/statistics/LascCervicalCytologyInspectEntityList/index.js

@ -74,6 +74,15 @@ Vue.component('lasc-cervical-cytology-inspect-entityList', {
    }
  },
  mounted() {
   
    var vm = this
    this.form.screenId = this.data.screenId
    if (this.data.value && this.data.value.length) {
      var form = JSON.parse(JSON.stringify(this.data.value))
      form.forEach(function (v) {
        v.tbsResult = vm.tbsResultList[Number(v.tbsResult) - 1]
      })
      this.form.list = form
      vm.cytoTubeNum = vm.data.value[0].cytoTubeNum
    }
  }
})

+ 77 - 72
component/statistics/LascCervicalFinalDiagnosisEntity/index.js

@ -60,85 +60,90 @@ Vue.component('lasc-cervical-final-diagnosis-entity', {
  },
  template: template,
  mounted() {
        var form = JSON.parse(JSON.stringify(this.data.value[0]))
        console.log(form, 'formformform111111111111111')
        if (!this.readonly) {
          this.form = {
            screenId: '', //两癌筛查id
            finalDiagnosisResult: '', //最后诊断
            finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
            finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
            finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
            finalDiagnosisOrg: '', //检查机构
            finalDiagnosisUser: '', //检查人员
            finalDiagnosisTime: '', //检查时间
    
            cervicalLesionsFollowStatus: '', //宫颈病变随访情况
            cervicalLesionsTreatment: '', //宫颈病变接受治疗
            cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
            cervicalLesionsTreatmentMethod: '', //治疗方法
            cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
            followUpOrg: '', //治疗机构
            followUpTime: '', //治疗日期
    
            acceptPathologicalExamination: '', //接受组织病理学检查
            refusePathologicalExaminationReason: '', //未接受检查的原因
            refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
            pathologicalExaminationResult: [], //组织病理学检查结果
            pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
            pathologicalExaminationOrg: '', // 检查机构
            pathologicalExaminationUser: '', //检查人员
            pathologicalExaminationTime: '' //检查时间
        if(this.data&&this.data.value&&this.data.value.length!=0){
          var form = JSON.parse(JSON.stringify(this.data.value[0]))
          console.log(form, 'formformform111111111111111')
          if (!this.readonly) {
            this.form = {
              screenId: '', //两癌筛查id
              finalDiagnosisResult: '', //最后诊断
              finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
              finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
              finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
              finalDiagnosisOrg: '', //检查机构
              finalDiagnosisUser: '', //检查人员
              finalDiagnosisTime: '', //检查时间
      
              cervicalLesionsFollowStatus: '', //宫颈病变随访情况
              cervicalLesionsTreatment: '', //宫颈病变接受治疗
              cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
              cervicalLesionsTreatmentMethod: '', //治疗方法
              cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
              followUpOrg: '', //治疗机构
              followUpTime: '', //治疗日期
      
              acceptPathologicalExamination: '', //接受组织病理学检查
              refusePathologicalExaminationReason: '', //未接受检查的原因
              refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
              pathologicalExaminationResult: [], //组织病理学检查结果
              pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
              pathologicalExaminationOrg: '', // 检查机构
              pathologicalExaminationUser: '', //检查人员
              pathologicalExaminationTime: '' //检查时间
            }
          } else {
            console.log(form, 'formformform')
            form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || []
            form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || []
            this.form = _.assign(this.form, form)
            this.form.screenId = this.data.screenId
            console.log('1111111111111111',this.form)
          }
        } else {
          console.log(form, 'formformform')
          form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || []
          form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || []
          this.form = _.assign(this.form, form)
          this.form.screenId = this.data.screenId
          console.log('1111111111111111',this.form)
        }
        
  },
  watch:{
    'data':{
      handler(newVal,oldVal){
        var form = JSON.parse(JSON.stringify(this.data.value))
        console.log(form, 'formformform111111111111111')
        if (!this.readonly) {
          this.form = {
            screenId: '', //两癌筛查id
            finalDiagnosisResult: '', //最后诊断
            finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
            finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
            finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
            finalDiagnosisOrg: '', //检查机构
            finalDiagnosisUser: '', //检查人员
            finalDiagnosisTime: '', //检查时间
    
            cervicalLesionsFollowStatus: '', //宫颈病变随访情况
            cervicalLesionsTreatment: '', //宫颈病变接受治疗
            cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
            cervicalLesionsTreatmentMethod: '', //治疗方法
            cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
            followUpOrg: '', //治疗机构
            followUpTime: '', //治疗日期
    
            acceptPathologicalExamination: '', //接受组织病理学检查
            refusePathologicalExaminationReason: '', //未接受检查的原因
            refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
            pathologicalExaminationResult: [], //组织病理学检查结果
            pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
            pathologicalExaminationOrg: '', // 检查机构
            pathologicalExaminationUser: '', //检查人员
            pathologicalExaminationTime: '' //检查时间
        if(this.data&&this.data.value&&this.data.value.length!=0){
          var form = JSON.parse(JSON.stringify(this.data.value[0]))
          console.log(form, 'formformform111111111111111')
          if (!this.readonly) {
            this.form = {
              screenId: '', //两癌筛查id
              finalDiagnosisResult: '', //最后诊断
              finalDiagnosisAbnormal: [], //最后诊断 - 异常内容
              finalDiagnosisMalignantTumors: '', //最后诊断 - 异常内容 - 其他恶性肿瘤说明
              finalDiagnosisOtherAbnormal: '', //最后诊断 - 异常内容 - 其他异常描述
              finalDiagnosisOrg: '', //检查机构
              finalDiagnosisUser: '', //检查人员
              finalDiagnosisTime: '', //检查时间
      
              cervicalLesionsFollowStatus: '', //宫颈病变随访情况
              cervicalLesionsTreatment: '', //宫颈病变接受治疗
              cervicalLesionsUnbehandeltReason: '', //宫颈病变接受治疗 - 未接收治疗原因
              cervicalLesionsTreatmentMethod: '', //治疗方法
              cervicalLesionsTreatmentOther: '', //治疗方法 - 其他
              followUpOrg: '', //治疗机构
              followUpTime: '', //治疗日期
      
              acceptPathologicalExamination: '', //接受组织病理学检查
              refusePathologicalExaminationReason: '', //未接受检查的原因
              refusePathologicalExaminationReasonOther: '', // 未接受检查的其他原因
              pathologicalExaminationResult: [], //组织病理学检查结果
              pathologicalExaminationAbnormalOther: '', //组织病理学其他描述
              pathologicalExaminationOrg: '', // 检查机构
              pathologicalExaminationUser: '', //检查人员
              pathologicalExaminationTime: '' //检查时间
            }
          } else {
            console.log(form, 'formformform')
            form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || []
            form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || []
            this.form = _.assign(this.form, form)
            this.form.screenId = this.data.screenId
            console.log('1111111111111111',this.form)
          }
        } else {
          console.log(form, 'formformform')
          form.finalDiagnosisAbnormal = (form.finalDiagnosisAbnormal && form.finalDiagnosisAbnormal.split(',')) || []
          form.pathologicalExaminationResult = (form.pathologicalExaminationResult && form.pathologicalExaminationResult.split(',')) || []
          this.form = _.assign(this.form, form)
          this.form.screenId = this.data.screenId
          console.log('1111111111111111',this.form)
        }
      },
      deep:true

+ 22 - 1
component/statistics/LascCervicalGynecologicalExaminationEntityList/index.js

@ -76,6 +76,27 @@ Vue.component('lasc-cervical-gynecological-examination-entityList', {
    }
  },
  mounted() {
    
    var vm = this
        this.form.screenId = this.data.screenId || ''
        if (this.data.value && this.data.value.length) {
          var list = JSON.parse(JSON.stringify(this.data.value))
          list.forEach(function (v) {
            v.vulvaInspect = vm.formatList(v.vulvaInspect)
            v.vaginalInspect = vm.formatList(v.vaginalInspect)
            v.secretion = vm.formatList(v.secretion)
            v.cervixInspect = vm.formatList(v.cervixInspect)
            v.uterusInspect = vm.formatList(v.uterusInspect)
            v.pelvicInspect = vm.formatList(v.pelvicInspect)
            v.secretionInspectPathogens = vm.formatList(v.secretionInspectPathogens)
            v.clinicalDiagnosis = vm.formatList(v.clinicalDiagnosis)
            v.pelvicTendernessLocation = vm.formatList(v.pelvicTendernessLocation)
            v.uterusInspectTumorPosition = vm.formatList(v.uterusInspectTumorPosition)
            v.vaginalInspectTumorPosition = vm.formatList(v.vaginalInspectTumorPosition)
            v.vulvaInspectTumorPosition = vm.formatList(v.vulvaInspectTumorPosition)
            v.pelvicInspectTumorPosition = vm.formatList(v.pelvicInspectTumorPosition)
          })
          this.form.list = list
          this.form.receiveCervicalCarcinomaInspect = list[0].receiveCervicalCarcinomaInspect
        }
  }
})

+ 15 - 1
component/statistics/LascCervicalHistopathologyFollowup/index.js

@ -29,7 +29,21 @@ Vue.component('lasc-cervical-histopathology-followup', {
  },
  template: template,
  created: function () {
    
    var vm = this
    this.form.screenId = this.data.screenId
    if (this.data.value && this.data.value.length) {
      var form = JSON.parse(JSON.stringify(this.data.value))
      if (vm.isStrEmpty(form[0].examineStatus)) {
        this.form.list = _.map(form, function (v) {
          return _.assign(vm.getDefItem(), v)
        })
      } else {
        _.each(form, function (m) {
          m.examineResultAbnorma = m.examineResultAbnorma.split(',')
        })
        this.form.list = form
      }
    }
  },
  watch:{
    data:{

+ 26 - 1
component/statistics/LascCervicalHpvEntityList/index.js

@ -105,6 +105,31 @@ Vue.component('lasc-cervical-hpv-entityList', {
  },
  mounted() {
    
    this.form.screenId = this.data.screenId
    var vm = this
    if (this.data.value && this.data.value.length) {
      var first = this.data.value[0]
      var formValue = JSON.parse(JSON.stringify(this.data.value))
      formValue.forEach(function (v) {
        var hpvHighRiskTypes = vm.getHpvHighRiskTypes(),
          hpvLowRiskTypes = vm.getHpvLowRiskTypes()
        if (v.hpvHighRiskTypes) {
          v.hpvHighRiskTypes.split(',').forEach(function (v) {
            hpvHighRiskTypes[v] = '2'
          })
        }
        v.hpvHighRiskTypes = hpvHighRiskTypes
        if (v.hpvLowRiskTypes) {
          v.hpvLowRiskTypes.split(',').forEach(function (v) {
            hpvLowRiskTypes[v] = '2'
          })
        }
        v.hpvLowRiskTypes = hpvLowRiskTypes
      })
      this.form.list = formValue
      vm.hpvTubeNum = vm.data.value && vm.data.value[0].hpvTubeNum ? vm.data.value[0].hpvTubeNum : ''
    }
  }
})

+ 19 - 1
component/statistics/LascCervicalPathologicalExaminationList/index.js

@ -60,6 +60,24 @@ Vue.component('lasc-cervical-pathological-examination-list', {
    }
  },
  mounted() {
    
    if (this.data.value && this.data.value.length && this.data.value[0].id) {
      var form = JSON.parse(JSON.stringify(this.data.value))
      form.forEach(function (v) {
        if (v.pathologicalExaminationResult != 1) {
          var pathologicalExaminationResult = v.pathologicalExaminationResult
          v.pathologicalExaminationResult = []
          if (v.pathologicalExaminationAbnormal) {
            v.pathologicalExaminationAbnormal.split(',').forEach(function (m) {
              v.pathologicalExaminationResult.push(pathologicalExaminationResult + '-' + m)
            })
          }
        } else {
          v.pathologicalExaminationResult = v.pathologicalExaminationResult ? v.pathologicalExaminationResult.split(',') : ''
        }
      })
      this.form.list = form
      console.log('99999999999999999', this.form)
    }
  }
})

+ 1 - 1
component/statistics/LascModifyPatient/index.js

@ -205,7 +205,7 @@ Vue.component('lasc-modify-patient', {
      httpRequest.post('doctor/twoCancers/updBaseInfoSave', { data: params }).then(function (res) {
        console.log('333333333333333', res)
        if (res.status == 200) {
          toastr.error('保存成功')
          toastr.success('保存成功')
          vm.getTableInfo()
        } else {
          toastr.error(res.msg)

+ 4 - 5
component/statistics/LascProgress/index.html

@ -26,7 +26,7 @@
          <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
        </el-select>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == '2'|| form.range == '3'">
      <div class="searchDiv pb20 pr20" v-if="form.range == '2'">
        <label class="c-333 c-f14">机构:</label>
        <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" >
          <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
@ -47,7 +47,7 @@
        </template>
      </el-table-column>
    </el-table>
    <el-pagination
    <!-- <el-pagination
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      :current-page.sync="page"
@ -55,7 +55,7 @@
      :page-sizes="[10, 20, 50]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
      class="pagination"></el-pagination>
      class="pagination"></el-pagination> -->
    <el-dialog :visible.sync="visible" title="个案数据列表" @close="closeDialog" width="1200px">
      <el-form inline size="mini">
@ -71,7 +71,6 @@
        <el-form-item label="个人筛查状态:">
          <el-select v-model="query.status">
            <el-option label="全部" value=""></el-option>
            <el-option label="待评估" value="0"></el-option>
            <el-option label="已评估" value="1"></el-option>
            <el-option label="已评估且管理" value="2"></el-option>
            <el-option label="宫颈待完善乳腺待完善" value="3"></el-option>
@ -89,7 +88,7 @@
            <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="机构:" v-if="form.range == '2' ||form.range == '3'">
        <el-form-item label="机构:" v-if="form.range == '2' ">
          <el-select v-model="form.hospital" disabled>
            <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
          </el-select>

+ 31 - 26
component/statistics/LascProgress/index.js

@ -115,14 +115,13 @@ Vue.component('lasc-progress', {
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.form = {
          range: '1',
          area: selectedRole.code
          town: selectedRole.code
        }
        this.getHospital(selectedRole.code)
      } else {
        this.level = 3 // 社区管理
        this.rangeOptions = [
          { label: '社区', value: '2' },
          { label: '团队', value: 'team' }
          { label: '机构', value: '2' }
        ]
        this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
        this.hospitalOptions = [{ name: selectedRole.name, code: selectedRole.code }]
@ -152,15 +151,8 @@ Vue.component('lasc-progress', {
      }
    },
    resetArea() {
      if (this.level == 1) {
        delete this.form.area
        delete this.form.hospital
        delete this.form.team
      } else if (this.level == 2) {
        delete this.form.hospital
        delete this.form.team
      } else {
        delete this.form.team
      if(this.form.range==2){
        this.hospitalsByType()
      }
    },
    getDictData() {
@ -183,8 +175,14 @@ Vue.component('lasc-progress', {
      this.loading = true
      var params = {
        ...this.form,
        page: this.page,
        size: this.size
        // page: this.page,
        // size: this.size
      }
      if(this.form.range==3){
        if(this.form.town){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
        }
        
      }
      vm.tableData = []
      if (this.chooseTime) {
@ -194,7 +192,7 @@ Vue.component('lasc-progress', {
      httpRequest.get('doctor/twoCancers/count/twoCancerProgress', { data: params }).then(function (res) {
        if (res.status == 200) {
          vm.tableData = res.detailModelList
          vm.total = res.totalCount
          // vm.total = res.totalCount
        }
        vm.loading = false
      })
@ -210,7 +208,7 @@ Vue.component('lasc-progress', {
        params.startTime = this.chooseTime[0]
        params.endTime = this.chooseTime[1]
      }
      this.exportLoading = true
      vm.exportLoading = true
      var fileName = `两癌筛查进度统计${new Date().getTime()}.xls`
      httpRequest.downLoadFileForAjax('doctor/twoCancers/count/exportTwoCancerProgress', fileName, params).then(function () {
        vm.exportLoading = false
@ -259,13 +257,15 @@ Vue.component('lasc-progress', {
        type: 5,
        code: code
      }
      if (!code) {
        vm.hospitalOptions = [{ name: '全部', value: '' }]
        vm.teamOptions = [{ name: '全部', value: '' }]
        return false
      if(!code){
        params={
          type: 6,
          code: '350200'
        }
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = res.list
        vm.hospitalOptions = [{ code: '', name: '全部' }]
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
      })
    },
@ -305,13 +305,11 @@ Vue.component('lasc-progress', {
          })
          .then(function (res) {
            if (res.status == 200) {
              vm.communityHospitals = [{ label: '全部', value: '' }]
              vm.hospitalOptions = [{ name: '全部', code: '' }]
              res.list.forEach(function (v) {
                vm.communityHospitals.push({
                  value: v.code,
                  label: v.name
                })
                vm.hospitalOptions.push(v)
              })
              console.log('22222222222222222222',vm)
            }
          })
          .catch(function (err) {
@ -321,6 +319,13 @@ Vue.component('lasc-progress', {
    },
    closeDialog() {
      this.query = {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
      }
      this.visible = false
    },

+ 37 - 18
component/statistics/LascProgressData/index.html

@ -21,6 +21,15 @@
        <el-input style="width: 150px" v-model="form.phone" placeholder="请输入手机号"></el-input>
      </label>
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14" style="display: flex; align-items: center">
        宫颈癌初筛:
        <el-select v-model="form.cervicalStatus" placeholder="请选择">
          <el-option label="是" :value="1"></el-option>
          <el-option label="否" :value="0"></el-option>
        </el-select>
      </label>
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14" style="display: flex; align-items: center">
@ -60,7 +69,7 @@
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14" style="display: flex; align-items: center">
        宫颈检查数据:
        筛查机构:
        <el-select v-model="form.reception" placeholder="请选择">
          <el-option v-for="(item,index) in resDistrictData" :key="index" :label="item.name" :value="item.code"></el-option>
        </el-select>
@ -88,29 +97,29 @@
      <el-table-column prop="patient_name" align="center" label="筛查对象姓名"></el-table-column>
      <el-table-column prop="phone" align="center" label="手机号"></el-table-column>
      <el-table-column prop="id_card_no" align="center" label="身份证"></el-table-column>
      <el-table-column prop="geStatus" align="center" label="宫颈癌初筛"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_time" align="center" label="检查时间"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_org" align="center" label="检查机构"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_user" align="center" label="检查人员"></el-table-column>
      <el-table-column prop="ciStatus" align="center" label="乳腺癌初筛"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_time" align="center" label="检查时间" width="140"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_org" align="center" label="检查机构"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_user" align="center" label="检查人员"></el-table-column>
      <el-table-column prop="geStatus" align="center" label="宫颈初筛"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_time" align="center" label="宫颈时间"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_org" align="center" label="宫颈机构"></el-table-column>
      <el-table-column prop="cervical_cancer_inspect_user" align="center" label="宫颈人员"></el-table-column>
      <el-table-column prop="ciStatus" align="center" label="乳腺初筛"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_time" align="center" label="乳腺时间" width="140"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_org" align="center" label="乳腺机构"></el-table-column>
      <el-table-column prop="breast_ultrasound_inspect_user" align="center" label="乳腺检查人员"></el-table-column>
      <el-table-column prop="chStatus" align="center" label="宫颈检查数据">
        <div slot-scope="scope">{{scope.row.chStatus==1? '是' : '否'}}</div>
      </el-table-column>
      <el-table-column prop="molStatus" align="center" label="乳腺钼靶监查(是否)">
      <el-table-column prop="molStatus" align="center" label="乳腺钼靶检查">
        <div slot-scope="scope">{{scope.row.molStatus==1? '是' : '否'}}</div>
      </el-table-column>
      <el-table-column prop="breast_molybdenum_time" align="center" label="检查时间"></el-table-column>
      <el-table-column prop="breast_molybdenum_org" align="center" label="检查机构"></el-table-column>
      <el-table-column prop="breast_molybdenum_user" align="center" label="检查人员"></el-table-column>
      <el-table-column prop="colStatus" align="center" label="阴道镜检查(是否)">
      <el-table-column prop="breast_molybdenum_time" align="center" label="钼靶时间"></el-table-column>
      <el-table-column prop="breast_molybdenum_org" align="center" label="钼靶检查机构"></el-table-column>
      <el-table-column prop="breast_molybdenum_user" align="center" label="钼靶检查人员"></el-table-column>
      <el-table-column prop="colStatus" align="center" label="阴道镜检查">
        <div slot-scope="scope">{{scope.row.colStatus==1? '是' : '否'}}</div>
      </el-table-column>
      <el-table-column prop="colposcopy_time" align="center" label="检查时间"></el-table-column>
      <el-table-column prop="colposcopy_org" align="center" label="检查机构"></el-table-column>
      <el-table-column prop="colposcopy_user" align="center" label="检查人员"></el-table-column>
      <el-table-column prop="colposcopy_time" align="center" label="阴道镜检查时间"></el-table-column>
      <el-table-column prop="colposcopy_org" align="center" label="阴道镜检查机构"></el-table-column>
      <el-table-column prop="colposcopy_user" align="center" label="阴道镜检查人员"></el-table-column>
      <el-table-column prop="cpatStatusName" align="center" label="组织病理学检查"></el-table-column>
      <el-table-column prop="cpatTime" align="center" label="组织病理学检查时间"></el-table-column>
@ -126,11 +135,21 @@
      :current-page="page"
      @current-change="handleCurrentChange"
      background
      layout="prev, pager, next"
      layout="total, sizes, prev, pager, next, jumper"
      align="right"
      @prev-click="prevClick"
      @next-click="nextClick"
      :page-size="pageSize"
      @size-change="handleSizeChange"
      :total="total"></el-pagination>
  </div>
      <!-- <el-pagination
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      :current-page.sync="page"
      :page-size="size"
      :page-sizes="[10, 20, 50]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
      class="pagination"></el-pagination> -->
</div>

+ 41 - 5
component/statistics/LascProgressData/index.js

@ -57,11 +57,24 @@ Vue.component('lasc-progress-data', {
      resDistrictData: [{ name: '全部', code: '' }],
      code: '',
      qualityControlId: '1',
      statisticalIndex: {}
      statisticalIndex: {},
      exportLoading:false
    }
  },
  methods: {
    eliminateClick() {},
    eliminateClick() {
      this.form={
        name: '',
        orderId: '',
        phone: '',
        uterineNeck: '',
        breastCancer: '',
        reception: '',
        molStatus: '',
        colStatus: ''
      }
      this.rangeTime=[]
    },
    outputServerOrder() {},
    search: function () {
      this.page = 1
@ -69,6 +82,7 @@ Vue.component('lasc-progress-data', {
    },
    outputServerOrder: function (num) {
      var vm = this
      console.log('111111111111111111',vm)
      vm.exportLoading = true
      httpRequest
        .downLoadFileForAjax('doctor/twoCancers/count/excel', '两癌筛查数据.xls', this.getDoorOrderParameters())
@ -81,8 +95,14 @@ Vue.component('lasc-progress-data', {
    },
    hospitalList() {
      var vm = this
      httpRequest.get('doctor/twoCancers/count/hospitalList', {}).then(function (res) {
      var data={
        town:this.level==2?this.area:'',
        hospital:this.level==3?this.area:''
      }
      httpRequest.get('doctor/twoCancers/count/hospitalList', {data}).then(function (res) {
        if (res.status == 200) {
          res.data.forEach(item => {
            vm.resDistrictData.push({
@ -102,14 +122,16 @@ Vue.component('lasc-progress-data', {
        endTime: this.rangeTime[1] ? this.rangeTime[1] : '', //结束时间
        hospitalCode: this.form.reception, //筛查机构
        breastStatus: this.form.breastCancer, // 乳癌初筛1是0否
        cervicalStatus: this.form.uterineNeck, //宫颈初筛1是0否
        cervicalStatus: this.form.cervicalStatus, //宫颈初筛1是0否
        chStatus: this.form.chStatus, //宫颈检查数据1是0否
        page: this.page,
        size: this.pageSize,
        molStatus: this.form.molStatus,
        colStatus: this.form.colStatus,
        queryCode:this.loginDoctor.currentUserRole.code,
        queryLevel: this.loginDoctor.currentUserRole.level
        queryLevel: this.level,
        level:'',
        area:''
      }
      return parameters
    },
@ -133,6 +155,10 @@ Vue.component('lasc-progress-data', {
      this.page = page
      this.getDoorOrderList()
    },
    handleSizeChange: function(val) {
      this.pageSize = val
      this.getDoorOrderList()
    },
    prevClick() {
      this.page--
      this.getDoorOrderList()
@ -143,6 +169,16 @@ Vue.component('lasc-progress-data', {
    }
  },
  mounted() {
    var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
      if (selectedRole.code.indexOf('350200') > -1) {
        this.level = 1 //  市卫健委
      } else if (selectedRole.code.length == 6) {
        this.level = 2 // 区管理
        this.area=selectedRole.code
      } else {
        this.level=3
        this.area=selectedRole.code
      }
    this.loginDoctor=JSON.parse(window.localStorage.getItem('wlyyAgent'));
    this.hospitalList()
    this.getDoorOrderList()

+ 4 - 4
component/statistics/breastCancerPatient/index.html

@ -26,7 +26,7 @@
          <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
        </el-select>
      </div>
      <div class="searchDiv pb20 pr20" v-if="form.range == '2' || form.range == '3'">
      <div class="searchDiv pb20 pr20" v-if="form.range == '2' ">
        <label class="c-333 c-f14">机构:</label>
        <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>
@ -69,7 +69,7 @@
        </el-table-column>
      </template>
    </el-table>
    <el-pagination
    <!-- <el-pagination
      @current-change="handleCurrentChange"
      @size-change="handleSizeChange"
      :current-page.sync="page"
@ -77,7 +77,7 @@
      :page-sizes="[10, 20, 50]"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total"
      class="pagination"></el-pagination>
      class="pagination"></el-pagination> -->
    <el-dialog :visible.sync="visible" title="个案数据列表" @close="closeDialog" width="1200px">
      <el-form inline size="mini">
@ -111,7 +111,7 @@
            <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="机构:" v-if="form.range == '2' || form.range == '3'">
        <el-form-item label="机构:" v-if="form.range == '2' ">
          <el-select v-model="form.hospital" disabled>
            <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
          </el-select>

+ 25 - 5
component/statistics/breastCancerPatient/index.js

@ -252,8 +252,7 @@ Vue.component('breast-cancer-patient', {
      } else {
        this.level = 3 // 社区管理
        this.rangeOptions = [
          { label: '机构', value: '2' },
          { label: '居住地', value: '3' }
          { 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 }]
@ -294,9 +293,15 @@ Vue.component('breast-cancer-patient', {
      this.loading = true
      var params = {
        ...this.form,
        page: this.page,
        size: this.size
      }
      if(this.form.range==3){
        if(this.form.town){
          params.town=this.areaOptions.find(item=>item.value==this.form.town).label
        }
        
      }
      console.log('22222222222222222222',vm)
      vm.tableData = []
      if (this.chooseTime) {
        params.startTime = this.chooseTime[0]
@ -375,6 +380,12 @@ Vue.component('breast-cancer-patient', {
        type: 5,
        code: code
      }
      if(!code){
        params={
          type: 6,
          code: '350200'
        }
      }
      httpRequest.post('common/district', { data: params }).then(function (res) {
        vm.hospitalOptions = [{ code: '', name: '全部' }]
        vm.hospitalOptions = vm.hospitalOptions.concat(res.list)
@ -445,7 +456,16 @@ Vue.component('breast-cancer-patient', {
        vm.dialogLoading = false
      })
    },
    closeDialog() {},
    closeDialog() {
      this.query = {
        page: 1,
        size: 10,
        total: 0,
        type:this.query.type, 
        orgCode:this.query.orgCode, 
      }
      this.visible=false
    },
    dialogSearchFn() {
      this.caseDataList()
    },