Browse Source

康复管理

hd 3 months ago
parent
commit
a630b5b02e

+ 3 - 3
app/rehabilitation/html/rehabilitation_management.html

@ -242,14 +242,14 @@
                <i class="icon icon-next icon-20" @click="nextMonth"></i>
              </span>
            </div>
            <div class="c-t-center mt50">
            <div class="c-t-center mt50" v-if="lastPlan&&tabStatus==2">
              <img src="../images/wushuju_img.png" alt="" />
              <p class="c-999 mt10">
                该患者存在暂未结束的康复计划,
                <span style="color: #00a6ff">点击查看></span>
                <span style="color: #00a6ff;cursor: pointer;" @click="toLastPlan">点击查看></span>
              </p>
            </div>
            <template v-if="0">
            <template v-else>
              <div v-show="!showServerItemDetail&&tabStatus==1" class="calendar-content ui-grid ui-grid-vertical">
                <div class="calendar-descript">
                  <span>图例注释:</span>

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

@ -74,7 +74,8 @@
      showServerItemDetail: false,
      serverItemInfo: undefined,
      islimit: false,
      scList: []
      scList: [],
      lastPlan: null
    },
    mounted: function () {
      if (!this.planId) {
@ -458,7 +459,7 @@
          nMnow = this.mnow + 1
          nYnow = this.ynow
        }
        var m_days = new Array(31, 28 + this.is_leap(nYnow), 31, 30, 31, 01, 31, 31, 30, 31, 30, 31) //每个月的天数
        var m_days = new Array(31, 28 + this.is_leap(nYnow), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31) //每个月的天数
        return {
          days: m_days[nMnow],
          date: nYnow + '-' + (++nMnow >= 10 ? nMnow : '0' + nMnow)
@ -803,6 +804,7 @@
        }
        rehaAPI.calendarPlanDetailItems(params).then(function (res) {
          if (res.status == 200) {
            vm.lastPlan = res.json
            var arr = []
            $.each(res.data, function (i, o) {
              if (o.code == '3' && o.type) {
@ -918,6 +920,9 @@
            layer.close(loading)
            layer.msg('系统繁忙', { icon: 5 })
          })
      },
      toLastPlan(){
        window.location.href = `${window.location.pathname}?planId=${this.lastPlan.id}&patientCode=${this.patientCode}`
      }
    },
    watch: {