hd 4 months ago
parent
commit
fb9374518d

+ 2 - 2
app/rehabilitation/html/followRecord.html

@ -41,7 +41,7 @@
      margin-left: 0;
      margin-left: 0;
    }
    }
    .el-checkbox {
    .el-checkbox {
      margin-right: 0;
      margin-right: 10px;
    }
    }
  </style>
  </style>
  <body>
  <body>
@ -421,7 +421,7 @@
              return Promise.reject()
              return Promise.reject()
            }
            }
            if (vm.adverseEventArr.length == 0) {
            if (vm.adverseEventArr.length == 0) {
              layer.msg('请选择药物副作用情况')
              layer.msg('请选择不良事件种类')
              return Promise.reject()
              return Promise.reject()
            }
            }
            var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2
            var loadding = top.layer.load(0, { shade: false }) //0代表加载的风格,支持0-2

+ 48 - 17
component/rehabilitation/server-items-detail.js

@ -187,6 +187,7 @@ Vue.component('server-items-detail', {
  props: ['patientname', 'patientcode', 'planid', 'plandetailid'],
  props: ['patientname', 'patientcode', 'planid', 'plandetailid'],
  data: function () {
  data: function () {
    return {
    return {
      scList: [],
      ynow: currentGMT.getFullYear(), //年份
      ynow: currentGMT.getFullYear(), //年份
      mnow: currentGMT.getMonth(), //月份(比实际少一个月---0开始至11)
      mnow: currentGMT.getMonth(), //月份(比实际少一个月---0开始至11)
      dnow: currentGMT.getDate(), //当前日
      dnow: currentGMT.getDate(), //当前日
@ -245,22 +246,20 @@ Vue.component('server-items-detail', {
            vm.service = res.data
            vm.service = res.data
            var isZK = vm.docInfo.doctorType == 1 ? true : false
            var isZK = vm.docInfo.doctorType == 1 ? true : false
            vm.service.isZK = isZK
            vm.service.isZK = isZK
            // if (vm.service.isMyTask == 1) {
            //   //执行者
            //   vm.service.isCK = true //无法显示按钮
            //   if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
            //     //说明我自己是创建者
            //     vm.service.isCK = false
            //     vm.service.isCreate = true
            //   }
            // } else {
            //   if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
            //     //说明我自己是创建者
            //     vm.service.isCreate = true
            //   }
            // }
            console.log('service', vm.service)
            if (vm.service.isMyTask == 1) {
              //执行者
              vm.service.isCK = true //无法显示按钮
              if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
                //说明我自己是创建者
                vm.service.isCK = false
                vm.service.isCreate = true
              }
            } else {
              if (vm.docInfo.uid == vm.service.specialistDoctorCode) {
                //说明我自己是创建者
                vm.service.isCreate = true
              }
            }
            if (vm.service.frequencyCode) {
            if (vm.service.frequencyCode) {
              vm.islimit = true
              vm.islimit = true
              vm.goToLoadData(true)
              vm.goToLoadData(true)
@ -979,6 +978,27 @@ Vue.component('server-items-detail', {
      }
      }
      this.viewDetail(planids, type, recordId)
      this.viewDetail(planids, type, recordId)
    },
    },
    getList: function () {
      var vm = this
      console.log('211111111111111111111111', vm.planInfo)
      rehaAPI
        .getList({
          doctor: docInfo.code,
          diseaseType: vm.service.disease,
          type: '',
          patientName: '',
          patientCode: this.patientCode,
          isDanger: '',
          pageNo: 1,
          pageSize: 1,
          filterType: 1,
          isAscvd: vm.planInfo.disease == '3' ? 1 : ''
        })
        .then(function (res) {
          vm.scList = res.data
          console.log(res, 'dasssssssssssssssssss')
        })
    },
    viewDetail: function (planids, type, recordId) {
    viewDetail: function (planids, type, recordId) {
      var vm = this
      var vm = this
      if (!planids) {
      if (!planids) {
@ -1021,7 +1041,18 @@ Vue.component('server-items-detail', {
        shift: 5,
        shift: 5,
        shadeClose: false, //点击遮罩关闭层
        shadeClose: false, //点击遮罩关闭层
        content:
        content:
          '../../rehabilitation/html/service_item_content.html?planids=' + planids + '&planId=' + vm.planid + '&patient=' + vm.patientcode + '&patientName=' + vm.patientname,
          '../../rehabilitation/html/service_item_content.html?planids=' +
          planids +
          '&planId=' +
          vm.planid +
          '&patient=' +
          vm.patientcode +
          '&patientName=' +
          vm.patientname +
          '&disease=' +
          vm.service.disease +
          '&scLenght=' +
          vm.scList.length,
        end: function () {
        end: function () {
          vm.initData()
          vm.initData()
        }
        }