ソースを参照

bug + 家庭病床数据统计

hd 1 週間 前
コミット
c7906ad91e

+ 2 - 0
app/rehabilitation/js/rehabilitation_management.js

@ -329,6 +329,8 @@
          layer.msg('无服务项', { icon: 5 })
          return
        }
        console.log(planids, type, item,"item");
        
        if (vm.planInfo.disease == '3' && vm.scList.length == 0 && item && item.code == '6' && vm.loginDoctor.doctorType != '1') {
          this.$confirm('提示该居民近一年没有进行冠心病风险评估,请先进行评估,再进行随访登记', '提示', {
            confirmButtonText: '确定',

+ 6 - 104
app/statistics/html/comprehensive-query.html

@ -128,32 +128,7 @@
            </div>
            <div class="ui-col-1 bgc-fff p20" style="min-width: 900px">
              <template
                v-if="
									handleNodeId != 46&&
									handleNodeId != 47&&
									handleNodeId!=48&&
									handleNodeId!=49&&
									handleNodeId!=50&&
									handleNodeId!=51&&
									handleNodeId!=52&&
									handleNodeId!=53&&
									handleNodeId!=54&&
									handleNodeId!=55&&
									handleNodeId!=56&&
									handleNodeId!=57&&
									handleNodeId!=58&&
									handleNodeId!=59&&
									handleNodeId!=60&&
									handleNodeId!=61&&
									handleNodeId!=62&&
                  handleNodeId!=63&&
                  handleNodeId!=64&&
                  handleNodeId!=71&&
                  handleNodeId!=72&&
                  handleNodeId!=73&&
                  handleNodeId!=74&&
                  handleNodeId!=75
									">
                v-if="componentId.indexOf(handleNodeId)==-1">
                <div class="searchDiv" v-if="tabsId!=5">
                  <template v-if="handleNodeId!=44&&expertFamilyIdType != 'zhuanke1'&&handleNodeId!=45">
                    <el-radio v-model="radio" label="1">按签约年度:</el-radio>
@ -545,32 +520,7 @@
              <div class="searchDiv mt10" v-if="tabsId!=5">
                <template
                  v-if="handleNodeId!=44&&
											handleNodeId!=46&&
											handleNodeId != 47&&
											handleNodeId!=48&&
											handleNodeId!=49&&
											handleNodeId!=50&&
											handleNodeId!=51&&
											handleNodeId!=52&&
											handleNodeId!=53&&
											handleNodeId!=54&&
											handleNodeId!=55&&
											handleNodeId!=56&&
											handleNodeId!=57&&
											handleNodeId!=58&&
											handleNodeId!=59&&
											handleNodeId!=60&&
											handleNodeId!=61&&
											handleNodeId!=62&&
											handleNodeId!=63&&
											handleNodeId!=64&&
                                            handleNodeId!=71&&
                                            handleNodeId!=75&&
                                            handleNodeId!=72&&
                                            handleNodeId!=73&&
                                            handleNodeId!=74
											">
                v-if="['44'].concat(componentId).indexOf(handleNodeId)==-1">
                  <label class="c-333 c-f14" for="">数据范围:</label>
                  <el-select v-model="rangeCode" style="width: 100px" class="pr10">
                    <el-option v-for="(item , index) in rangeList" :key="index" :label="item.name" :value="item.code"></el-option>
@ -594,32 +544,7 @@
                  </el-select>
                </template>
                <template
                  v-if="
										handleNodeId!=46&&
										handleNodeId != 47&&
										handleNodeId!=48&&
										handleNodeId!=49&&
										handleNodeId!=50&&
										handleNodeId!=51&&
										handleNodeId!=52&&
										handleNodeId!=53&&
										handleNodeId!=54&&
										handleNodeId!=55&&
										handleNodeId!=56&&
										handleNodeId!=57&&
										handleNodeId!=58&&
										handleNodeId!=59&&
										handleNodeId!=60&&
										handleNodeId!=61&&
										handleNodeId!=62&&
										handleNodeId!=63&&
										handleNodeId!=64&&
                                        handleNodeId!=71&&
                                        handleNodeId!=75&&
                                        handleNodeId!=72&&
                                        handleNodeId!=73&&
                                        handleNodeId!=74
										">
                  v-if="componentId.indexOf(handleNodeId)==-1">
                  <el-button type="primary" size="mini" @click="searchHandle(true)">查询</el-button>
                  <el-button type="ff9526" size="mini" @click="exportHandle">导出</el-button>
                  <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
@ -950,6 +875,7 @@
                  <plan-service v-if="handleNodeId == 73"></plan-service>
                  <bed-check v-if="handleNodeId == 74"></bed-check>
                  <referral v-if="handleNodeId == 75"></referral>
                  <call-record v-if="handleNodeId == 76"></call-record>
                </div>
                <div v-if="handleNodeShow == 3">
                  <el-table v-if="collectCode == 1" border :data="diseaseReport" style="width: 100%" v-loading="loadingTwo" class="mt20">
@ -1001,32 +927,7 @@
                </div>
                <template
                  v-if="
										handleNodeId!=46&&
										handleNodeId!=47&&
										handleNodeId!=48&&
										handleNodeId!=49&&
										handleNodeId!=50&&
										handleNodeId!=51&&
										handleNodeId!=52&&
										handleNodeId!=53&&
										handleNodeId!=54&&
										handleNodeId!=55&&
										handleNodeId!=56&&
										handleNodeId!=57&&
										handleNodeId!=58&&
										handleNodeId!=59&&
										handleNodeId!=60&&
										handleNodeId!=61&&
										handleNodeId!=62&&
										handleNodeId!=63&&
										handleNodeId!=64&&
										handleNodeId!=71&&
										handleNodeId!=72&&
										handleNodeId!=73&&
										handleNodeId!=74&&
										handleNodeId!=75
										">
                  v-if="componentId.indexOf(handleNodeId)==-1">
                  <div class="c-t-right mt20">
                    <el-pagination
                      @current-change="handleCurrentChange"
@ -1101,5 +1002,6 @@
    <script src="../../../component/statistics/PlanService/index.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../component/statistics/BedCheck/index.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../component/statistics/Referral/index.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../../component/statistics/CallRecord/index.js" type="text/javascript" charset="utf-8"></script>
  </body>
</html>

+ 3 - 1
app/statistics/js/comprehensive-query.js

@ -174,6 +174,7 @@ new Vue({
      {label: '计划服务情况分析', id: '73'},
      {label: '病床查床情况分析', id: '74'},
      {label: '转诊与撤床情况分析', id: '75'},
      {label: '一键报警记录查询', id: '76'},
    ],
    copdFilterCheckValue: [],
    handleNodeShow: 1,
@ -536,7 +537,8 @@ new Vue({
        label: '死亡',
        value: 2
      }
    ]
    ],
    componentId: ['46','47','48','49','50','51','52','53','54','55','56','57','58','59','60','61','62','63','64','71','75','72','73','74','75','76']
  },
  components: {
    vuedals: Vuedals.Component

+ 14 - 7
component/common/jtbc.css

@ -21,6 +21,9 @@
  height: 15px;
  background-color: #00bf79;
}
.jtbc label{
  white-space: nowrap;
}
.c-333{
  color: #333;
}
@ -52,10 +55,10 @@
.textarea-content{
  max-width: 300px;
}
.timeline-box{
.jtbc .timeline-box{
  padding: 0 20px;
}
.timeline{
.jtbc .timeline-box .timeline{
  position: relative;
  display: flex;
  align-items: center;
@ -63,7 +66,7 @@
  height: 70px;
  line-height: 70px;
}
.timeline .circle{
.jtbc .timeline-box .timeline .circle{
  width: 16px;
  height: 16px;
  border-radius: 50%;
@ -72,17 +75,17 @@
  position: relative;
  z-index: 2;
}
.timeline .time{
.jtbc .timeline-box .timeline .time{
  margin-right: 90px;
  width: 120px;
}
.timeline .name{
.jtbc .timeline-box .timeline .name{
  width: 100px;
}
.timeline .statusName{
.jtbc .timeline-box .timeline .statusName{
  padding-left: 100px;
}
.line{
.jtbc .line{
  position: absolute;
  width: 1px;
  height: 70px;
@ -90,4 +93,8 @@
  background-color: #e2e2e2;
  top: 50%;
  transform: translateY(-50%);
}
.jtbc .pagination{
  margin-top: 20px;
  float: right;
}

+ 3 - 1
component/rehabilitation/server-items-detail.js

@ -982,7 +982,9 @@ Vue.component('server-items-detail', {
    },
    onViewDetail: function (item, type) {
      var vm = this
      if (this.scList == 0) {
      console.log(item,"item",type);
      
      if (this.scList == 0&&item.code == '6'&& vm.docInfo.doctorType != '1') {
        this.$confirm('提示该居民近一年没有进行冠心病风险评估,请先进行评估,再进行随访登记', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',

+ 1 - 1
component/statistics/BedCheck/index.html

@ -8,7 +8,7 @@
  </head>
  <body> -->
    <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
    <div id="app">
    <div id="app" class="jtbc">
      <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
        <div class="searchDiv pb20 pr20">
          <label class="c-333 c-f14">

+ 1 - 1
component/statistics/BuildBed/index.html

@ -9,7 +9,7 @@
  <body> -->
    <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
    
    <div id="app">
    <div id="app" class="jtbc">
      <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
        <div class="searchDiv pb20">
          <label class="c-333 c-f14">

+ 34 - 0
component/statistics/CallRecord/index.html

@ -0,0 +1,34 @@
<!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
<div id="app" class="jtbc">
  <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14">报警时间:</label>
      <el-date-picker v-model="chooseTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd"></el-date-picker>
    </div>
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14">患者姓名:</label>
      <el-input v-model="form.name" class="formWidth wd160" placeholder="请输入患者姓名查询"></el-input>
    </div>
    <div class="searchDiv pb20">
      <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
      <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
      <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
    </div>
  </div>
  <el-table :data="tableData" style="width: 100%" v-loading="loading">
    <el-table-column type="index" min-width="60" label="序号"></el-table-column>
    <el-table-column :label="item.label" v-for="item in tableHeader">
      <template slot-scope="scope">{{scope.row[item.prop]}}</template>
    </el-table-column>
  </el-table>
  <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>

+ 97 - 0
component/statistics/CallRecord/index.js

@ -0,0 +1,97 @@
var template = ''
$.ajax('../../../component/statistics/CallRecord/index.html', {
  data: {},
  dataType: 'html',
  cache: false,
  timeout: 60000,
  async: false,
  error: function (res) {},
  success: function (res) {
    template = res
  }
})
Vue.component('call-record', {
  template: template,
  props: [],
  data: function () {
    return {
      chooseTime: null,
      form: {},
      tableData: [],
      tableHeader: [
        { label: '报警人', prop: 'doctorName' },
        { label: '手机号码', prop: 'phone' },
        { label: '报警时间', prop: 'createTime' },
        { label: '业务来源', prop: 'typeName' },
        { label: '患者姓名', prop: 'patientName' },
        { label: '身份证号', prop: 'idcard' },
        { label: '联系电话', prop: 'mobile' },
        { label: '家庭住址', prop: 'address' }
      ],
      page: 1,
      size: 10,
      total: 0,
      loading: false,
      exportLoading: false
    }
  },
  methods: {
    queryDate() {
      this.page = 1
      this.getList()
    },
    exportTable() {
      var vm = this
      var params = {
        ...this.form,
        page: this.page,
        pageSize: this.size
      }
      if (this.chooseTime) {
        params.startDate = this.chooseTime[0]
        params.endDate = this.chooseTime[1]
      }
      this.exportLoading = true
      var fileName = `报警记录${new Date().getTime()}.xls`
      httpRequest.downLoadFileForAjax('doctor/familyBed/exportCallRecordPage', fileName, params).then(function(){
        vm.exportLoading = false
      })
    },
    eliminateClick() {
      this.form = {}
      this.chooseTime = null
    },
    getList() {
      var vm = this
      this.loading = true
      var params = {
        ...this.form,
        page: this.page,
        pageSize: this.size
      }
      if (this.chooseTime) {
        params.startDate = this.chooseTime[0]
        params.endDate = this.chooseTime[1]
      }
      httpRequest.get('doctor/familyBed/callRecordPage', { data: params }).then(function (res) {
        if(res.status == 200){
          vm.tableData = res.detailModelList
          vm.total = res.totalCount
        }
        vm.loading = false
      })
    },
    handleCurrentChange(val) {
      this.page = val
      this.getList()
    },
    handleSizeChange(val) {
      this.size = val
      this.getList()
    }
  },
  mounted() {
    this.getList()
  }
})

+ 1 - 1
component/statistics/PatientSituation/index.html

@ -9,7 +9,7 @@
  <body> -->
    <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
    <div id="app">
    <div id="app" class="jtbc">
      <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
        <div class="searchDiv pb20 pr20">
          <label class="c-333 c-f14">

+ 1 - 1
component/statistics/PlanService/index.html

@ -9,7 +9,7 @@
  <body> -->
    <!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
    <div id="app">
    <div id="app" class="jtbc">
      <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
        <div class="searchDiv pb20 pr20">
          <label class="c-333 c-f14">

+ 1 - 1
component/statistics/Referral/index.html

@ -1,6 +1,6 @@
<!-- 家庭病床css文件位置位于/component/common/jtbc.css -->
<div id="app">
<div id="app" class="jtbc">
  <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
    <div class="searchDiv pb20 pr20">
      <label class="c-333 c-f14">