Jelajahi Sumber

两癌筛查报表新增随访状态,间期癌(接口还未对接)

wangyuxiang 1 hari lalu
induk
melakukan
d5e2da9aa0

+ 12 - 0
component/statistics/breastCancerPatient/index.html

@ -67,6 +67,12 @@
            </template>
          </el-table-column>
        </el-table-column>
        <!-- todo 需对接后端接口字段-->
        <el-table-column prop="cduCompleteNum" label="间期癌" align="center">
          <template slot-scope="scope">
            <span class="pointer c-409eff" @click="openDialog(scope.row, 'cduCompleteNum')">{{scope.row['cduCompleteNum']}}</span>
          </template>
        </el-table-column>
      </template>
    </el-table>
    <!-- <el-pagination
@ -101,6 +107,12 @@
            <el-option label="宫颈完成筛查乳腺待完善" value="5"></el-option>
          </el-select>
        </el-form-item>
        <!-- todo 字段需对接 -->
        <el-form-item label="随访状态:">
          <el-select v-model="form.followUp">
            <el-option v-for="item in followupOptions" :value="item.value" :label="item.label" :key="item.value"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="数据范围:">
          <el-select v-model="form.range" disabled>
            <el-option v-for="item in rangeOptions" :value="item.value" :label="item.label" :key="item.value"></el-option>

+ 28 - 8
component/statistics/breastCancerPatient/index.js

@ -5,7 +5,7 @@ $.ajax('../../../component/statistics/breastCancerPatient/index.html', {
  cache: false,
  timeout: 60000,
  async: false,
  error: function (res) {},
  error: function (res) { },
  success: function (res) {
    template = res
  }
@ -29,6 +29,11 @@ Vue.component('breast-cancer-patient', {
        { label: '机构', value: '2' },
        { label: '居住地', value: '3' }
      ],
      followupOptions: [
        { label: '全部', value: '' },
        { label: '已随访', value: '1' },
        { label: '未随访', value: '0' }
      ],
      areaOptions: [
        { label: '思明区', value: '350203' },
        { label: '海沧区', value: '350205' },
@ -50,7 +55,8 @@ Vue.component('breast-cancer-patient', {
        { label: '个人筛查状态', prop: 'statusName', width: '100' }
      ],
      form: {
        range: '1'
        range: '1',
        followUp: ''
      },
      query: {
        page: 1,
@ -214,7 +220,14 @@ Vue.component('breast-cancer-patient', {
            { prop: 'labelWait', label: '待评估' },
            { prop: 'rate6', label: '高风险人群比例' }
          ]
        }
        },
        {
          label: '随访状态',
          children: [
            { prop: 'label1', label: '已随访' },
            { prop: 'label2', label: '未随访' },
          ]
        },
      ],
      dialogLoading: false
    }
@ -290,7 +303,6 @@ Vue.component('breast-cancer-patient', {
          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]
@ -350,7 +362,6 @@ Vue.component('breast-cancer-patient', {
      this.yearType = '1'
      this.chooseYear = new Date().getFullYear()
      this.chooseTime = null
      console.log('1111111111111111', this)
      const now = new Date()
      // 获取当前日期
      const endDate = new Date()
@ -403,6 +414,18 @@ Vue.component('breast-cancer-patient', {
    },
    openDialog(row, prop) {
      var vm = this
      // todo 需改为未随访字段  未随访不可点击
      const excludeFields = ['infoCompleteNum']
      if (excludeFields.includes(prop)) {
        return
      }
      // 随访字段 需改随访字段  点击已随访需待状态过去
      const includeFields = ["followUp", ]
      if (includeFields.includes(prop)) {
        this.query.followUp = row.followUp
      }else{
        this.query.followUp = ''
      }
      vm.dialogLoading = true
      this.query.type = 'r_' + prop
      this.query.orgCode = row.orgCode
@ -427,7 +450,6 @@ Vue.component('breast-cancer-patient', {
    caseDataList() {
      var vm = this
      vm.dialogLoading = true
      // console.log('statusstatus', this.query)
      // this.query.type = this.query.type.substring(0, this.query.type.length - 1) + this.query.status
      var params = {
        ...this.query,
@ -488,8 +510,6 @@ Vue.component('breast-cancer-patient', {
      })
    },
    dialogResetFn() {
      console.log('22222222222222', this)
      this.query = {
        page: 1,
        size: 10,