executionRecord.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <template>
  2. <view class="content">
  3. <ren-calendar ref='ren' :markDays='markDays' :headerBar='false' :open="false" @onDayClick='onDayClick'></ren-calendar>
  4. <view class="inner">
  5. <view class="title-box align-center justify-between">
  6. <text>用药情况</text>
  7. <view class="select-box" @click="navgetTo()">
  8. <text>打卡 (0/2)</text>
  9. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  10. </view>
  11. </view>
  12. <view class="form-box">
  13. <view class="form-item">
  14. <view class="left">
  15. <text class="label">阿仑单抗 1.0mg</text>
  16. <text class="time">11:30</text>
  17. </view>
  18. <view class="check">
  19. <u-icon name="checkmark-circle-fill" color="#008FD3" size="18"></u-icon>
  20. <text>已用药</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="title-box align-center justify-between">
  25. <text class="left">饮食情况</text>
  26. <view class="select-box2" @click="navgetTo('/pages_user/user/dietList')">
  27. <image class="w24 h24" src="@/static/images/company/edit_add_icon.png"></image>
  28. <text>记录饮食</text>
  29. </view>
  30. </view>
  31. <view class="form-box mb20" v-if="foods.length>0">
  32. <view class="form-item" v-for="(item,index) in foods">
  33. <text class="label">{{item.mealDescription}}</text>
  34. <text class="time2 ml20">{{item.recordTime.slice(0,5)}}</text>
  35. </view>
  36. </view>
  37. <view class="title-box">
  38. 健康数据
  39. </view>
  40. <view class="form-box">
  41. <view class="form-item">
  42. <text class="label">腰围</text>
  43. <view class="num">
  44. <text>70cm</text>
  45. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  46. </view>
  47. </view>
  48. <view class="form-item">
  49. <text class="label">臀围</text>
  50. <view class="num">
  51. <text>70cm</text>
  52. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  53. </view>
  54. </view>
  55. <view class="form-item">
  56. <text class="label">血糖</text>
  57. <view class="num">
  58. <text>4.0</text>
  59. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  60. </view>
  61. </view>
  62. <view class="form-item">
  63. <text class="label">血压</text>
  64. <view class="num">
  65. <text>--</text>
  66. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  67. </view>
  68. </view>
  69. <view class="form-item">
  70. <text class="label">尿酸</text>
  71. <view class="num">
  72. <text>正常</text>
  73. <image class="w48 h48" src="@/static/images/health/right_arrow_right_icon24.png"></image>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="title-box align-center justify-between">
  78. <text class="left">指标信息</text>
  79. <view class="select-box2" @click="navgetTo('/pages_user/user/editIndicator')">
  80. <image class="w24 h24" src="@/static/images/company/edit_add_icon.png"></image>
  81. <text>选择指标项</text>
  82. </view>
  83. </view>
  84. <view class="form-box">
  85. <view class="form-item">
  86. <text class="label">促甲状腺素受体抗体(A-TSHR)</text>
  87. <view class="num">
  88. <text>2.12 1U/L</text>
  89. </view>
  90. </view>
  91. <view class="form-item">
  92. <text class="label">低密度脂蛋白胆固醇(LDL)</text>
  93. <view class="num">
  94. <text>3.00 mmol/L</text>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="title-box">
  99. 其他
  100. </view>
  101. <view class="form-box mb20">
  102. <view class="form-item">
  103. <text class="label">口感舌燥,恶心</text>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </template>
  109. <script>
  110. import {getMyRecordList} from '@/api/companyUser.js'
  111. import RenCalendar from '@/components/ren-calendar/ren-calendar.vue'
  112. import {
  113. getDocDetails,
  114. addDoc,
  115. editDoc
  116. } from '@/api/doc.js'
  117. export default {
  118. components:{
  119. RenCalendar
  120. },
  121. data() {
  122. return {
  123. curDate:'',
  124. markDays:[],
  125. foods:[],
  126. type: null,
  127. patientId: null,
  128. famaleurl:"/static/images/health/female_profile.png",
  129. maleurl:"/static/images/health/my_heads.png",
  130. checked:1,
  131. tags: [{
  132. name: '心脏病',
  133. checked:true,
  134. id: 1
  135. },
  136. {
  137. name: '脑梗死',
  138. checked:false,
  139. id: 2
  140. },{
  141. name: '肾病',
  142. checked:false,
  143. id: 3
  144. },{
  145. name: '脂肪肝',
  146. checked:false,
  147. id: 4
  148. }],
  149. form: {
  150. userName: null,
  151. idCard: null,
  152. sex: null,
  153. birthday: null,
  154. remark: null,
  155. }
  156. };
  157. },
  158. onLoad(option) {
  159. let today = this.$refs.ren.getToday().date;
  160. this.curDate = today;
  161. this.markDays.push(today);
  162. this.type = option.type;
  163. var that=this;
  164. this.userId=option.userId;
  165. uni.$on('refreshExecutionRecord', () => {
  166. this.getMyRecordList()
  167. })
  168. this.getMyRecordList()
  169. },
  170. onShow(){
  171. },
  172. methods: {
  173. //日历
  174. onDayClick(data){
  175. this.curDate = data.date;
  176. this.getMyRecordList()
  177. },
  178. navgetTo(url){
  179. uni.navigateTo({
  180. url:url
  181. })
  182. },
  183. //饮食
  184. getMyRecordList() {
  185. // var user=JSON.parse(uni.getStorageSync('userInfo'));
  186. var data = {
  187. userId:this.userId,
  188. startDate:this.curDate,
  189. "pageNum": 1,
  190. "pageSize": 10,
  191. };
  192. getMyRecordList(data).then(
  193. res => {
  194. if (res.code == 200) {
  195. this.foods = res.data.list;
  196. } else {
  197. uni.showToast({
  198. title: res.msg,
  199. });
  200. }
  201. },
  202. rej => {}
  203. );
  204. },
  205. getDocDetails() {
  206. var data = {
  207. docId: this.docId
  208. };
  209. getDocDetails(data).then(
  210. res => {
  211. if (res.code == 200) {
  212. this.form = res.data;
  213. } else {
  214. uni.showToast({
  215. title: res.msg,
  216. });
  217. }
  218. },
  219. rej => {}
  220. );
  221. },
  222. // 出生日期选择
  223. bindDateChange: function(e) {
  224. this.form.birthday = e.target.value
  225. },
  226. }
  227. }
  228. </script>
  229. <style lang="scss">
  230. page {
  231. height: 100%;
  232. }
  233. .content {
  234. height: 100%;
  235. display: flex;
  236. flex-direction: column;
  237. justify-content: space-between;
  238. .inner {
  239. // height: calc(100% - 120upx);
  240. padding:0 20upx;
  241. .title-box{
  242. font-family: PingFang SC, PingFang SC;
  243. font-weight: 500;
  244. font-size: 32rpx;
  245. color: #626468;
  246. padding: 24rpx 0;
  247. .select-box{
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. text{
  252. font-family: PingFang SC;
  253. font-weight: 400;
  254. font-size: 24rpx;
  255. color: #626468;
  256. margin-left: 8rpx;
  257. }
  258. }
  259. .select-box2{
  260. width: 216rpx;
  261. height: 64rpx;
  262. background: #FFFFFF;
  263. border-radius: 32rpx 32rpx 32rpx 32rpx;
  264. display: flex;
  265. align-items: center;
  266. justify-content: center;
  267. text{
  268. font-family: PingFang SC;
  269. font-weight: 400;
  270. font-size: 24rpx;
  271. color: #626468;
  272. margin-left: 5rpx;
  273. }
  274. }
  275. }
  276. .form-box {
  277. padding: 0 30upx;
  278. background: #FFFFFF;
  279. border-radius: 16upx;
  280. // margin-bottom: 20upx;
  281. .form-title {
  282. font-family: PingFang SC;
  283. font-weight: 500;
  284. font-size: 32rpx;
  285. color: #626468;
  286. text-align: left;
  287. padding: 30rpx 0;
  288. display: block;
  289. }
  290. .form-item {
  291. padding: 30upx 0;
  292. display: flex;
  293. align-items: center;
  294. justify-content: space-between;
  295. border-bottom: 1px solid #F1F1F1;
  296. &:last-child {
  297. border-bottom: none;
  298. }
  299. .left{
  300. display: flex;
  301. flex-direction: column;
  302. align-items: flex-start;
  303. .time{
  304. font-family: PingFang SC;
  305. font-weight: 400;
  306. font-size: 28rpx;
  307. color: #898E91;
  308. text-align: left;
  309. }
  310. }
  311. .time2{
  312. font-family: PingFang SC;
  313. font-weight: 400;
  314. font-size: 28rpx;
  315. color: #898E91;
  316. text-align: right;
  317. }
  318. .check{
  319. display: flex;
  320. align-items: center;
  321. justify-content: center;
  322. text{
  323. // font-family: PingFang SC;
  324. font-weight: 400;
  325. font-size: 24rpx;
  326. color: #008FD3;
  327. margin-left: 16rpx;
  328. }
  329. }
  330. .label {
  331. // width: 150upx;
  332. text-align: left;
  333. font-weight: 500;
  334. font-size: 32rpx;
  335. color: #222426;
  336. text-align: left;
  337. }
  338. .num{
  339. font-family: PingFang SC;
  340. font-weight: 400;
  341. font-size: 32rpx;
  342. color: #222426;
  343. line-height: 34rpx;
  344. display: flex;
  345. align-items: center;
  346. }
  347. }
  348. }
  349. }
  350. .btn-box {
  351. height: 120upx;
  352. padding: 0 30upx;
  353. display: flex;
  354. align-items: center;
  355. justify-content: center;
  356. // position: fixed;
  357. // width: 90%;
  358. // bottom: 0;
  359. // left: 50%;
  360. // transform: translate(-50%,-50%);
  361. // background: #FFFFFF;
  362. .sub-btn {
  363. width: 100%;
  364. height: 88upx;
  365. line-height: 88upx;
  366. text-align: center;
  367. font-size: 32upx;
  368. font-family: PingFang SC;
  369. font-weight: bold;
  370. color: #FFFFFF;
  371. background: #008FD3;
  372. border-radius: 44upx;
  373. margin-bottom: 40upx;
  374. }
  375. }
  376. }
  377. </style>