hd 1 miesiąc temu
rodzic
commit
0c3c41e478
45 zmienionych plików z 141 dodań i 122 usunięć
  1. 24 64
      app/rehabilitation/html/device.html
  2. 2 2
      app/rehabilitation/html/guide_the_message.html
  3. 12 6
      app/rehabilitation/html/healthFoodDetail.html
  4. 39 4
      app/rehabilitation/html/healthMonitor.html
  5. 63 45
      app/rehabilitation/html/healthProtect.html
  6. 1 1
      app/rehabilitation/html/service_item_content.html
  7. BIN
      app/rehabilitation/images/01baicai_img.png
  8. BIN
      app/rehabilitation/images/01dami_img.png
  9. BIN
      app/rehabilitation/images/01doufu_img.png
  10. BIN
      app/rehabilitation/images/01douyou_img.png
  11. BIN
      app/rehabilitation/images/01duixia_img.png
  12. BIN
      app/rehabilitation/images/01gushulei_icon.png
  13. BIN
      app/rehabilitation/images/01xigua_img.png
  14. BIN
      app/rehabilitation/images/02caomei_img.png
  15. BIN
      app/rehabilitation/images/02doujiang_img.png
  16. BIN
      app/rehabilitation/images/02fanqie_img.png
  17. BIN
      app/rehabilitation/images/02huashengyou_img.png
  18. BIN
      app/rehabilitation/images/02shucailei_icon.png
  19. BIN
      app/rehabilitation/images/02xiaomi_img.png
  20. BIN
      app/rehabilitation/images/02yangrou_img.png
  21. BIN
      app/rehabilitation/images/03.shuiguolei_icon.png
  22. BIN
      app/rehabilitation/images/03caiziyou_img.png
  23. BIN
      app/rehabilitation/images/03doujiao_img.png
  24. BIN
      app/rehabilitation/images/03lvdou_img.png
  25. BIN
      app/rehabilitation/images/03niurou_img.png
  26. BIN
      app/rehabilitation/images/03pingguo_img.png
  27. BIN
      app/rehabilitation/images/04.roudanlei_icon.png
  28. BIN
      app/rehabilitation/images/04huloubu_img.png
  29. BIN
      app/rehabilitation/images/04matou_img.png
  30. BIN
      app/rehabilitation/images/04xiangchang_img.png
  31. BIN
      app/rehabilitation/images/04zimajiang_img.png
  32. BIN
      app/rehabilitation/images/05.dadoulei_icon.png
  33. BIN
      app/rehabilitation/images/05hetao_img.png
  34. BIN
      app/rehabilitation/images/05jidan_img.png
  35. BIN
      app/rehabilitation/images/05ou_img.png
  36. BIN
      app/rehabilitation/images/05wotou_img.png
  37. BIN
      app/rehabilitation/images/06.nailei_icon.png
  38. BIN
      app/rehabilitation/images/06xianmianbao_img.png
  39. BIN
      app/rehabilitation/images/06xingren_img.png
  40. BIN
      app/rehabilitation/images/07.youzhilei_icon.png
  41. BIN
      app/rehabilitation/images/07binggan_img.png
  42. BIN
      app/rehabilitation/images/07guazi_img.png
  43. BIN
      app/rehabilitation/images/08huasheng_img.png
  44. BIN
      app/rehabilitation/images/08toudou_img.png
  45. BIN
      app/rehabilitation/images/shuannai_img.png

+ 24 - 64
app/rehabilitation/html/device.html

@ -3,7 +3,7 @@
  <head>
  <head>
    <meta charset="UTF-8" />
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>新增设备</title>
    <title>设备</title>
    <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
@ -97,7 +97,7 @@
              <span>{{item.name}}</span>
              <span>{{item.name}}</span>
            </div>
            </div>
          </el-tab-pane>
          </el-tab-pane>
          <el-tab-pane label="智能手表" name="watch">
          <el-tab-pane label="智能手表" name="watch"  class="box">
            <div v-for="item in watchList" :id="item.id" class="item" @click="selectItem(item)">
            <div v-for="item in watchList" :id="item.id" class="item" @click="selectItem(item)">
              <div class="img-box">
              <div class="img-box">
                <img :src="item.photo" alt="" v-if="item.photo!=''" />
                <img :src="item.photo" alt="" v-if="item.photo!=''" />
@ -106,7 +106,7 @@
              <span>{{item.name}}</span>
              <span>{{item.name}}</span>
            </div>
            </div>
          </el-tab-pane>
          </el-tab-pane>
          <el-tab-pane label="血糖仪" name="xuetang">
          <el-tab-pane label="血糖仪" name="xuetang" class="box">
            <div v-for="item in xuetangList" :id="item.id" class="item" @click="selectItem(item)">
            <div v-for="item in xuetangList" :id="item.id" class="item" @click="selectItem(item)">
              <div class="img-box">
              <div class="img-box">
                <img :src="item.photo" alt="" v-if="item.photo!=''" />
                <img :src="item.photo" alt="" v-if="item.photo!=''" />
@ -132,9 +132,7 @@
            <el-input v-model="query.sim" placeholder="请输入SIM码"></el-input>
            <el-input v-model="query.sim" placeholder="请输入SIM码"></el-input>
          </div>
          </div>
          <div class="title">绑定快捷键</div>
          <div class="title">绑定快捷键</div>
          <el-radio v-model="query.userType" label="1" class="ml6">A</el-radio>
          <br />
          <el-radio v-model="query.userType" label="2" class="ml6">B</el-radio>
          <el-radio v-model="query.userType" :label="key" class="ml6" v-for="(value, key) in deviceObj.multiUser">{{value}}</el-radio>
          <br />
          <br />
          绑定后,从该快捷键上传的数据将导入您的健康记录中!
          绑定后,从该快捷键上传的数据将导入您的健康记录中!
        </div>
        </div>
@ -175,68 +173,23 @@
            patient: '',
            patient: '',
            step: 1,
            step: 1,
            query: {},
            query: {},
            xueyaList: [
              {
                'id': 2,
                'categoryCode': '1',
                'photo': 'http://f1.yihuimg.com/TFS/upfile/doctor_honor/2016-07-12/497280_1468291541996.png',
                'brands': '康为',
                'model': 'G-426-3',
                'isMultiUser': '0',
                'multiUser': '{"默认":"-1"}',
                'name': '康为G-426-3',
                'czrq': '2016-09-08',
                'del': '1',
                'authorizationTime': null
              },
              {
                'id': 3,
                'categoryCode': '1',
                'photo': 'http://f1.yihuimg.com/TFS/upfile/doctor_honor/2016-07-12/497276_1468291512115.png',
                'brands': '爱奥乐',
                'model': 'G-777G',
                'isMultiUser': '0',
                'multiUser': '{"默认":"-1"}',
                'name': '爱奥乐G-777G',
                'czrq': '2016-09-08',
                'del': '1',
                'authorizationTime': null
              },
              {
                'id': 5,
                'categoryCode': '1',
                'photo': 'http://www.xmtyw.cn/group1/M00/00/30/Cl8WjFonog2Af6nAAAFuhkn1vlY658.png',
                'brands': '三诺',
                'model': '亲智',
                'isMultiUser': '0',
                'multiUser': '{"默认":"-1"}',
                'name': '三诺亲智',
                'czrq': '2017-12-06',
                'del': '1',
                'authorizationTime': null
              },
              {
                'id': 8,
                'categoryCode': '1',
                'photo': '',
                'brands': '弈拓',
                'model': 'YTSE-1606',
                'isMultiUser': '',
                'multiUser': '',
                'name': '自助体检一体机',
                'czrq': '2019-01-27',
                'del': '1',
                'authorizationTime': null
              }
            ],
            xueyaList: [],
            watchList: [],
            watchList: [],
            xuetangList: [],
            xuetangList: [],
            deviceObj: {}
            deviceObj: {},
            deviceId: null,
            dataId: null
          }
          }
        },
        },
        methods: {
        methods: {
          initData(){
            const vm = this
            httpRequest.get('common/device/DeviceInfo', { data: { id: this.deviceId } }).then(function(res){
              vm.deviceObj = res.data
            })
          },
          tabChange(val) {
          tabChange(val) {
            switch (val) {
            switch (val.name) {
              case 'xueya':
              case 'xueya':
                this.getXueyaList()
                this.getXueyaList()
                break
                break
@ -250,6 +203,7 @@
          },
          },
          getXueyaList() {
          getXueyaList() {
            const vm = this
            const vm = this
            
            httpRequest.get('common/device/DeviceList', { data: { category_code: 2 } }).then(function (res) {
            httpRequest.get('common/device/DeviceList', { data: { category_code: 2 } }).then(function (res) {
              vm.xueyaList = res.data
              vm.xueyaList = res.data
            })
            })
@ -270,7 +224,8 @@
            const vm = this
            const vm = this
            httpRequest.get('common/device/DeviceInfo', { data: { id: item.id } }).then(function (res) {
            httpRequest.get('common/device/DeviceInfo', { data: { id: item.id } }).then(function (res) {
              vm.step++
              vm.step++
              vm.deviceObj = { ...res.data, categoryCode: 4 }
              vm.deviceObj = res.data
              vm.deviceObj.multiUser = JSON.parse(res.data.multiUser) 
              vm.query = {}
              vm.query = {}
            })
            })
          },
          },
@ -469,8 +424,13 @@
        },
        },
        mounted() {
        mounted() {
          // this.getXueyaList()
          this.getXueyaList()
          this.patient = GetRequest().patient
          this.patient = GetRequest().patient
          this.deviceId = GetRequest().deviceId
          this.dataId = GetRequest().id
          if(this.deviceId){
            this.step = 2
          }
        }
        }
      })
      })
    </script>
    </script>

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

@ -143,7 +143,7 @@
						<button class="btn btn-12b7f5" v-if="service.type==4 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>
						<button class="btn btn-12b7f5" v-if="service.type==4 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>
						<button class="btn btn-yuyue" v-if="service.type==5 && service.status!=1 && service.isMyTask==1" @click="kfzd()">发送指导</button>
						<button class="btn btn-yuyue" v-if="service.type==5 && service.status!=1 && service.isMyTask==1" @click="kfzd()">发送指导</button>
						<button class="btn btn-yuyue" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==0"  @click="sfjh()" style="width: auto">创建随访计划</button>
						<button class="btn btn-yuyue" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==0"  @click="sfjh()" style="width: auto">创建随访计划</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="openRecordForm" style="width: auto">记录随访表单</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="openFollowRecordForm" style="width: auto">记录随访表单</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="openFollowResult" style="width: auto">查看随访结果</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.status==1" @click="openFollowResult" style="width: auto">查看随访结果</button>
						<button class="btn btn-yuyue" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && selectCheckTyperadio!=1 && !service.appointmentTime" @click="sendSpecialistWeixinMessage(7)">提醒患者</button>
						<button class="btn btn-yuyue" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && selectCheckTyperadio!=1 && !service.appointmentTime" @click="sendSpecialistWeixinMessage(7)">提醒患者</button>
						<button class="btn btn-12b7f5" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && selectCheckTyperadio==0 && !service.appointmentTime" @click="rehabilitationReservation()">代预约</button>
						<button class="btn btn-12b7f5" v-if="service.type==7 && service.status!=1 && service.isMyTask==1 && selectCheckTyperadio==0 && !service.appointmentTime" @click="rehabilitationReservation()">代预约</button>
@ -180,7 +180,7 @@
						<button class="btn btn-zhidao" v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==7 && showRecordFinished && showRecordFinished" @click="qrwc(service.patient,service.type)">确认完成</button>
						<button class="btn btn-zhidao" v-if="islimit&&service.planStatus!=0 && service.status!=1 && service.isMyTask==1 && service.type==7 && showRecordFinished && showRecordFinished" @click="qrwc(service.patient,service.type)">确认完成</button>
					</div>
					</div>
					<div v-if="!islimit&&service.planStatus!=0" class="flex-box btns-group clearfix"> <!-- 不限制频次 -->
					<div v-if="!islimit&&service.planStatus!=0" class="flex-box btns-group clearfix"> <!-- 不限制频次 -->
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus!=1 && service.isMyTask==1 && service.operate==1" @click="qwapp" style="width: auto">记录随访表单</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus!=1 && service.isMyTask==1 && service.operate==1" @click="openFollowRecordForm" style="width: auto">记录随访表单</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus==1" @click="qwapp" style="width: auto">查看随访结果</button>
						<button class="btn btn-12b7f5" v-if="service.type==6 && service.recordStatus==1" @click="qwapp" style="width: auto">查看随访结果</button>
					</div>
					</div>
	      		</div>
	      		</div>

+ 12 - 6
app/rehabilitation/html/healthFoodDetail.html

@ -21,6 +21,9 @@
        padding-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      }
      }
      .food-info img{
        max-width: 280px;
      }
      .tip {
      .tip {
        color: #11b7f5;
        color: #11b7f5;
        padding: 12px 0;
        padding: 12px 0;
@ -30,7 +33,10 @@
        align-items: center;
        align-items: center;
      }
      }
      .food-item {
      .food-item {
        margin-bottom: 10px;
        margin-bottom: 20px;
      }
      .food-item img{
        width: 100px;
      }
      }
      .pl8 {
      .pl8 {
        padding-left: 8px;
        padding-left: 8px;
@ -50,13 +56,13 @@
      <div class="food-info">
      <div class="food-info">
        <div class="lheight2">{{dietDetail.time}}</div>
        <div class="lheight2">{{dietDetail.time}}</div>
        <div class="lheight2" style="margin-bottom: 8px">{{dietDetail.content}}</div>
        <div class="lheight2" style="margin-bottom: 8px">{{dietDetail.content}}</div>
        <img src="../../../images/img.png" alt="" />
        <img :src="dietDetail.images" alt="" />
      </div>
      </div>
      <div class="tip">以下食物热量和营养价值仅供参考</div>
      <div class="tip">以下食物热量和营养价值仅供参考</div>
      <div class="food-list">
      <div class="food-list">
        <div class="food-item" v-for="(item,i) in foodList" :key="i">
        <div class="food-item" v-for="(item,i) in foodList" :key="i">
          <div class="flex">
          <div class="flex">
            <img src="../../../images/img.png" alt="" />
            <img :src="item.photo" alt="" />
            <div class="pl8">
            <div class="pl8">
              <div>
              <div>
                {{item.name}}
                {{item.name}}
@ -96,10 +102,10 @@
        methods: {
        methods: {
          getFoodDetail() {
          getFoodDetail() {
            const vm  = this
            const vm  = this
            httpRequest.get('common/device/DeviceList', { data: { id: this.id } }).then(function (res) {
              vm.dietDetail = res.dietDetail
            httpRequest.get('doctor/health_record/dietDetail', { data: { id: this.id } }).then(function (res) {
              vm.dietDetail = res.data.dietDetail
              vm.dietDetail.time = vm.dietDetail.recordDate.substring(0,10)
              vm.dietDetail.time = vm.dietDetail.recordDate.substring(0,10)
              vm.foodList = res.foodCompList.map(function(item){
              vm.foodList = (res.data.foodCompList??[]).map(function(item){
                return {
                return {
                  ...item,
                  ...item,
                  component: JSON.parse(item.component)
                  component: JSON.parse(item.component)

+ 39 - 4
app/rehabilitation/html/healthMonitor.html

@ -58,6 +58,7 @@
        align-items: center;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 8px 0;
        padding: 8px 0;
        cursor: pointer;
      }
      }
      .device-item .device-info {
      .device-item .device-info {
        line-height: 28px;
        line-height: 28px;
@ -149,7 +150,7 @@
        </el-tab-pane>
        </el-tab-pane>
        <el-tab-pane label="智能设备" name="device">
        <el-tab-pane label="智能设备" name="device">
          <div class="device-box">
          <div class="device-box">
            <div class="device-item" v-for="(item,i) in deviceList" :key="i">
            <div class="device-item" v-for="(item,i) in deviceList" :key="i" @click="openDeviceDetail(item)">
              <div class="flex">
              <div class="flex">
                <img :src="item.devicePhoto" alt="" style="width: 100px" />
                <img :src="item.devicePhoto" alt="" style="width: 100px" />
                <div style="margin-left: 16px">
                <div style="margin-left: 16px">
@ -243,8 +244,17 @@
          getDeviceList() {
          getDeviceList() {
            const vm = this
            const vm = this
            httpRequest.get('doctor/device/PatientDeviceList', { data: { page: 1, pagesize: 100, patient: this.patient } }).then(function (res) {
            httpRequest.get('doctor/device/PatientDeviceList', { data: { page: 1, pagesize: 100, patient: this.patient } }).then(function (res) {
              vm.deviceList = res.data
              vm.getBindUser()
              vm.deviceList = res.data.map(function(item){
                var bindUser = '患者绑定'
                if (!!item.doctor) {
                  bindUser = item.doctorName
                }
                item.people = bindUser
                return{
                  ...item,
                  people: bindUser
                }
              })
            })
            })
          },
          },
          getHealthProtect() {
          getHealthProtect() {
@ -298,7 +308,6 @@
                title = '心率'
                title = '心率'
                break
                break
            }
            }
            console.log(`rehabilitation/html/healthBodyRecord.html?key=${key}&patient=${this.patient}&time=${time.substring(0, 10)}`);
            
            
            top.layer.open({
            top.layer.open({
              type: 2,
              type: 2,
@ -353,6 +362,32 @@
              content: '../../rehabilitation/html/device.html?patient=' + this.patient
              content: '../../rehabilitation/html/device.html?patient=' + this.patient
            })
            })
          },
          },
          openDeviceDetail(item){
            var title = ""
            switch(item.categoryCode){
              case '2':
                title = "血压计"
                break
              case '4':
                title = "智能手表"
                break
              case '1':
                title = "血糖仪"
                break
            }
            top.layer.open({
              type: 2,
              area: ['700px', '700px'],
              shade: 0.5,
              title: title,
              fixed: true, //不固定
              maxmin: true,
              closeBtn: 1,
              // shift: 5,
              shadeClose: false, //点击遮罩关闭层
              content: `../../rehabilitation/html/device.html?patient=${this.patient}&deviceId=${item.deviceId}&id=${item.id}`
            })
          },
          getRecordType(isDevice) {
          getRecordType(isDevice) {
            return isDevice === null ? '手动记录' : isDevice != null ? '设备上传' : ''
            return isDevice === null ? '手动记录' : isDevice != null ? '设备上传' : ''
          },
          },

+ 63 - 45
app/rehabilitation/html/healthProtect.html

@ -3,7 +3,7 @@
  <head>
  <head>
    <meta charset="UTF-8" />
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <title>保健记录</title>
    <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/style.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
    <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
@ -56,15 +56,15 @@
      <div class="box" v-else-if="key == 1">
      <div class="box" v-else-if="key == 1">
        <div class="item" v-for="(item,i) in medicineList" :key="i">
        <div class="item" v-for="(item,i) in medicineList" :key="i">
          <div>
          <div>
            <div class="lheight2">{{item.name}}</div>
            <div class="lheight2">{{item.time}}</div>
            <div class="lheight2">{{item.medicines}}</div>
            <div class="lheight2">{{item.record_date}} {{}}</div>
          </div>
          </div>
        </div>
        </div>
      </div>
      </div>
      <div class="box" v-else>
      <div class="box" v-else>
        <div class="item" v-for="(item,i) in foodList" :key="i" style="cursor: pointer;" @click="openFoodDetail(item)">
        <div class="item" v-for="(item,i) in foodList" :key="i" style="cursor: pointer" @click="openFoodDetail(item)">
          <div>
          <div>
            <div class="lheight2">{{item.content}}</div>
            <div class="lheight2" style="font-size: 16px">{{item.content}}</div>
            <div class="lheight2">{{item.record_date}} {{item.recordMethod}}</div>
            <div class="lheight2">{{item.record_date}} {{item.recordMethod}}</div>
          </div>
          </div>
          <i class="el-icon-arrow-right"></i>
          <i class="el-icon-arrow-right"></i>
@ -89,6 +89,7 @@
          return {
          return {
            key: null,
            key: null,
            patient: null,
            patient: null,
            endTime: null,
            sportList: [],
            sportList: [],
            medicineList: [],
            medicineList: [],
            foodList: []
            foodList: []
@ -97,50 +98,38 @@
        mounted() {
        mounted() {
          this.key = GetRequest().key
          this.key = GetRequest().key
          this.patient = GetRequest().patient
          this.patient = GetRequest().patient
          this.endTime = GetRequest().time
          switch (this.key) {
            case '0':
              this.getSportList()
              break
            case '1':
              this.getMedicineList()
              break
            case '2':
              this.getFoodList()
              break
          }
        },
        },
        methods: {
        methods: {
          getTagType(type) {
            switch (type) {
              case 0:
                return 'success'
              case 1:
                return ''
              case 2:
                return 'warning'
              case 3:
                return 'danger'
            }
          },
          getTagName(type) {
            switch (type) {
              case 0:
                return '轻度运动'
              case 1:
                return '中度运动'
              case 2:
                return '稍强运动'
              case 3:
                return '强度运动'
            }
          },
          openFoodDetail(item){
          openFoodDetail(item) {
            top.layer.open({
            top.layer.open({
              type: 2,
              type: 2,
              area: ['700px', '700px'],
              area: ['700px', '700px'],
              shade: 0.5,
              shade: 0.5,
              title: "饮食详情",
              title: '饮食详情',
              fixed: true, //不固定
              fixed: true, //不固定
              maxmin: true,
              maxmin: true,
              closeBtn: 1,
              closeBtn: 1,
              // shift: 5,
              // shift: 5,
              shadeClose: false, //点击遮罩关闭层
              shadeClose: false, //点击遮罩关闭层
              content: `./healthFoodDetail.html?id=${item.id}`
              content: `../../rehabilitation/html/healthFoodDetail.html?id=${item.id}`
            })
            })
          },
          },
          getSportList(){
          getSportList() {
            const vm = this
            const vm = this
            function getTagType(val){
              switch(val) {
            function getTagType(val) {
              switch (val) {
                case '轻度运动':
                case '轻度运动':
                  return 'success'
                  return 'success'
                case '中度运动':
                case '中度运动':
@ -151,8 +140,15 @@
                  return 'error'
                  return 'error'
              }
              }
            }
            }
            httpRequest.post('doctor/health_record/list_sports',{page:1,pagesize:100,patient: this.patient}).then(function(res){
              vm.sportList = res.data.list.map(function(item){
            const params = {
              page: 1,
              pagesize: 100,
              patient: this.patient,
              start: this.getDateFromCurrentDate(this.endTime, -2000) + ' 00:00:00',
              end: this.endTime + ' 23:59:59'
            }
            httpRequest.post('doctor/health_record/list_sports', { data: params }).then(function (res) {
              vm.sportList = res.list.map(function (item) {
                return {
                return {
                  ...item,
                  ...item,
                  tagType: getTagType(item.sports_type)
                  tagType: getTagType(item.sports_type)
@ -160,27 +156,49 @@
              })
              })
            })
            })
          },
          },
          getMedicineList(){
          getMedicineList() {
            const vm = this
            const vm = this
            httpRequest.post('doctor/health_record/list_sports',{page:1,pagesize:100,patient: this.patient}).then(function(res){
              vm.sportList = res.data.list.map(function(item){
            const params = {
              page: 1,
              pagesize: 100,
              patient: this.patient,
              start: this.getDateFromCurrentDate(this.endTime, -2000) + ' 00:00:00',
              end: this.endTime + ' 23:59:59'
            }
            httpRequest.post('doctor/health_record/list_medication', { data: params }).then(function (res) {
              vm.medicineList = res.list.map(function (item) {
                return {
                return {
                  ...item,
                  ...item,
                  tagType: getTagType(item.sports_type)
                  recordMethod: item.source == 0 ? '手动记录' : '设备上传'
                }
                }
              })
              })
            })
            })
          },
          },
          getFoodList(){
          getFoodList() {
            const vm = this
            const vm = this
            httpRequest.post('doctor/health_record/list_diet',{page:1,pageSize: 100,patient:this.patient}).then(function(res){
              vm.foodList = res.list.map(function(item){
            const params = {
              page: 1,
              pagesize: 100,
              patient: this.patient,
              start: this.getDateFromCurrentDate(this.endTime, -2000) + ' 00:00:00',
              end: this.endTime + ' 23:59:59'
            }
            httpRequest.post('doctor/health_record/list_diet', { data: params }).then(function (res) {
              vm.foodList = res.list.map(function (item) {
                return {
                return {
                  ...item,
                  ...item,
                  recordMethod: item.deviceSn?'设备上传':'手动上传'
                  recordMethod: item.deviceSn ? '设备上传' : '手动上传'
                }
                }
              })
              })
            })
            })
          },
          getDateFromCurrentDate(fromDate, dayInterval) {
            var curDate = new Date(Date.parse(fromDate.replace(/-/g, '/')))
            curDate.setDate(curDate.getDate() + dayInterval)
            var year = curDate.getFullYear()
            var month = curDate.getMonth() + 1 < 10 ? '0' + (curDate.getMonth() + 1) : curDate.getMonth() + 1
            var day = curDate.getDate() < 10 ? '0' + curDate.getDate() : curDate.getDate()
            return year + '-' + month + '-' + day
          }
          }
        }
        }
      })
      })

+ 1 - 1
app/rehabilitation/html/service_item_content.html

@ -75,7 +75,7 @@
							<button class="btn btn-12b7f5" v-if="service.itemType==4 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==4 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>
		      				<button class="btn btn-yuyue" v-if="service.itemType==5 && service.status!=1 && service.isMyTask==1" @click="kfzd(service.planDetaiId)">发送指导</button>
		      				<button class="btn btn-yuyue" v-if="service.itemType==5 && service.status!=1 && service.isMyTask==1" @click="kfzd(service.planDetaiId)">发送指导</button>
							<button class="btn btn-yuyue" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==0" @click="sfjh(service.planDetaiId)" style="width: auto">创建随访计划</button>
							<button class="btn btn-yuyue" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==0" @click="sfjh(service.planDetaiId)" style="width: auto">创建随访计划</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="qwapp" style="width: auto">记录随访表单</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status!=1 && service.isMyTask==1 && service.operate==1" @click="openFollowRecordForm" style="width: auto">记录随访表单</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==6 && service.status==1" @click="qwapp" style="width: auto">查看随访结果</button>
							<button class="btn btn-yuyue" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1" @click="sendSpecialistWeixinMessage(service.planDetaiId,7)">提醒患者</button>
							<button class="btn btn-yuyue" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1" @click="sendSpecialistWeixinMessage(service.planDetaiId,7)">提醒患者</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>
							<button class="btn btn-12b7f5" v-if="service.itemType==7 && service.status!=1 && service.isMyTask==1" @click="qwapp">代预约</button>

BIN
app/rehabilitation/images/01baicai_img.png


BIN
app/rehabilitation/images/01dami_img.png


BIN
app/rehabilitation/images/01doufu_img.png


BIN
app/rehabilitation/images/01douyou_img.png


BIN
app/rehabilitation/images/01duixia_img.png


BIN
app/rehabilitation/images/01gushulei_icon.png


BIN
app/rehabilitation/images/01xigua_img.png


BIN
app/rehabilitation/images/02caomei_img.png


BIN
app/rehabilitation/images/02doujiang_img.png


BIN
app/rehabilitation/images/02fanqie_img.png


BIN
app/rehabilitation/images/02huashengyou_img.png


BIN
app/rehabilitation/images/02shucailei_icon.png


BIN
app/rehabilitation/images/02xiaomi_img.png


BIN
app/rehabilitation/images/02yangrou_img.png


BIN
app/rehabilitation/images/03.shuiguolei_icon.png


BIN
app/rehabilitation/images/03caiziyou_img.png


BIN
app/rehabilitation/images/03doujiao_img.png


BIN
app/rehabilitation/images/03lvdou_img.png


BIN
app/rehabilitation/images/03niurou_img.png


BIN
app/rehabilitation/images/03pingguo_img.png


BIN
app/rehabilitation/images/04.roudanlei_icon.png


BIN
app/rehabilitation/images/04huloubu_img.png


BIN
app/rehabilitation/images/04matou_img.png


BIN
app/rehabilitation/images/04xiangchang_img.png


BIN
app/rehabilitation/images/04zimajiang_img.png


BIN
app/rehabilitation/images/05.dadoulei_icon.png


BIN
app/rehabilitation/images/05hetao_img.png


BIN
app/rehabilitation/images/05jidan_img.png


BIN
app/rehabilitation/images/05ou_img.png


BIN
app/rehabilitation/images/05wotou_img.png


BIN
app/rehabilitation/images/06.nailei_icon.png


BIN
app/rehabilitation/images/06xianmianbao_img.png


BIN
app/rehabilitation/images/06xingren_img.png


BIN
app/rehabilitation/images/07.youzhilei_icon.png


BIN
app/rehabilitation/images/07binggan_img.png


BIN
app/rehabilitation/images/07guazi_img.png


BIN
app/rehabilitation/images/08huasheng_img.png


BIN
app/rehabilitation/images/08toudou_img.png


BIN
app/rehabilitation/images/shuannai_img.png