detection_result.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238
  1. <template>
  2. <view class="m-3 mb-5">
  3. <view class="" v-if="propData.patient">
  4. <view class="centerY mt-3">
  5. <view class="bule_line" style=""></view>
  6. <text class="font-bold text-dark ml-2 fs-16 line-height1">检测结果一栏</text>
  7. </view>
  8. <view class="mt-3 bg-white p-3" >
  9. <view class="">
  10. <view class="mtable-title centerY bg-primary text-white fs-12">
  11. <view class="text-center w-25">
  12. 检查项
  13. </view>
  14. <view class=" text-center w-25">
  15. 标准值
  16. </view>
  17. <view class="text-center w-30">
  18. 当前结果
  19. </view>
  20. <view class="text-center w-20">
  21. 单位
  22. </view>
  23. </view>
  24. <view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable1" style="color: #868687;">
  25. <view class="text-center w-25 text-dark">
  26. {{item.title}}
  27. </view>
  28. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
  29. {{item.standard1}}
  30. </view>
  31. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
  32. {{item.standard2}}
  33. </view>
  34. <view class="text-center w-30">
  35. <span v-if="item.type==1">{{item.value}}</span>
  36. <span v-if="item.type==0" class="text-error">{{item.value }}
  37. </span>
  38. </view>
  39. <view class="text-center w-20">
  40. {{item.unit}}
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 尿常规 -->
  46. <view class="">
  47. <view class="centerY mt-3">
  48. <view class="bule_line" style=""></view>
  49. <text class="font-bold text-dark ml-2 fs-16 line-height1">尿常规</text>
  50. </view>
  51. <view class="mt-3 bg-white p-3" v-if="datatable2.length">
  52. <view class="">
  53. <view class="mtable-title centerY bg-primary text-white fs-12">
  54. <view class="text-center w-25">
  55. 检查项
  56. </view>
  57. <view class=" text-center w-25">
  58. 标准值
  59. </view>
  60. <view class="text-center w-30">
  61. 当前结果
  62. </view>
  63. <view class="text-center w-20">
  64. 单位
  65. </view>
  66. </view>
  67. <view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable2"
  68. style="color: #868687;">
  69. <view class="text-center w-25 text-dark">
  70. {{item.title}}
  71. </view>
  72. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
  73. {{item.standard1}}
  74. </view>
  75. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
  76. {{item.standard2}}
  77. </view>
  78. <view class="text-center w-30">
  79. <span v-if="item.type==1">{{item.value}}</span>
  80. <span v-if="item.type==0" class="text-error">{{item.value }}
  81. </span>
  82. </view>
  83. <view class="text-center w-20">
  84. {{item.unit}}
  85. </view>
  86. </view>
  87. </view>
  88. <view class="fs-14 border-top mt-3">
  89. <view class="mt-3">
  90. 报告时间: <span>{{'2022-05-19 10:03:30'}}</span>
  91. </view>
  92. <view class="mt-2">
  93. 报告医生: <span>{{'边建丞'}}</span>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="mt-3 bg-white" v-else>
  98. <Empty title="暂无尿常规检测数据" />
  99. </view>
  100. </view>
  101. <view class="">
  102. <view class="centerY mt-3">
  103. <view class="bule_line" style=""></view>
  104. <text class="font-bold text-dark ml-2 fs-16 line-height1">血常规</text>
  105. </view>
  106. <view class="mt-3 bg-white p-3" v-if="datatable3.length">
  107. <view class="">
  108. <view class="mtable-title centerY bg-primary text-white fs-12">
  109. <view class="text-center w-30">
  110. 检查项
  111. </view>
  112. <view class=" text-center w-25">
  113. 标准值
  114. </view>
  115. <view class="text-center w-25">
  116. 当前结果
  117. </view>
  118. <view class="text-center w-20">
  119. 单位
  120. </view>
  121. </view>
  122. <view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable3"
  123. style="color: #868687;">
  124. <view class="text-center w-30 text-dark">
  125. {{item.title}}
  126. </view>
  127. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
  128. {{item.standard1}}
  129. </view>
  130. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
  131. {{item.standard2}}
  132. </view>
  133. <view class="text-center w-25">
  134. <span v-if="item.type==1">{{item.value}}</span>
  135. <span v-if="item.type==0" class="text-error">{{item.value }}
  136. </span>
  137. </view>
  138. <view class="text-center w-20">
  139. {{item.unit}}
  140. </view>
  141. </view>
  142. </view>
  143. <view class="fs-14 border-top mt-3">
  144. <view class="mt-3">
  145. 报告时间: <span>{{'2022-05-19 10:03:30'}}</span>
  146. </view>
  147. <view class="mt-2">
  148. 报告医生: <span>{{'边建丞'}}</span>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="mt-3 bg-white" v-else>
  153. <Empty title="暂无血常规检测数据" />
  154. </view>
  155. </view>
  156. <view class="">
  157. <view class="centerY mt-3">
  158. <view class="bule_line" style=""></view>
  159. <text class="font-bold text-dark ml-2 fs-16 line-height1">B超</text>
  160. </view>
  161. <view class="mt-3 bg-white p-3" v-if="datatable4.length">
  162. <view class="">
  163. <view class="mtable-title centerY bg-primary text-white fs-12">
  164. <view class="text-center w-30">
  165. 检查项
  166. </view>
  167. <view class="w-70">
  168. 当前结果
  169. </view>
  170. </view>
  171. <view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable4"
  172. style="color: #868687;align-items: flex-start;">
  173. <view class="text-center w-30 text-dark">
  174. {{item.title}}
  175. </view>
  176. <view class="w-70">
  177. <span v-if="item.type==1">{{item.value}}</span>
  178. <!-- <span v-if="item.type==0" class="text-error">{{item.value }} -->
  179. </span>
  180. </view>
  181. </view>
  182. </view>
  183. <view class="fs-14 border-top mt-3">
  184. <view class="mt-3">
  185. 报告时间: <span>{{'2022-05-19 10:03:30'}}</span>
  186. </view>
  187. <view class="mt-2">
  188. 报告医生: <span>{{'边建丞'}}</span>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="mt-3 bg-white" v-else>
  193. <Empty title="暂无B超检测数据" />
  194. </view>
  195. </view>
  196. <view class="">
  197. <view class="centerY mt-3">
  198. <view class="bule_line" style=""></view>
  199. <text class="font-bold text-dark ml-2 fs-16 line-height1">大便常规</text>
  200. </view>
  201. <view class="mt-3 bg-white p-3" v-if="datatable5.length">
  202. <view class="">
  203. <view class="mtable-title centerY bg-primary text-white fs-12">
  204. <view class="text-center w-30">
  205. 检查项
  206. </view>
  207. <view class=" text-center w-25">
  208. 标准值
  209. </view>
  210. <view class="text-center w-25">
  211. 当前结果
  212. </view>
  213. <view class="text-center w-20">
  214. 单位
  215. </view>
  216. </view>
  217. <view class="mtable-body-item centerY fs-12" v-for="(item,index) in datatable5"
  218. style="color: #868687;">
  219. <view class="text-center w-30 text-dark">
  220. {{item.title}}
  221. </view>
  222. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==1">
  223. {{item.standard1}}
  224. </view>
  225. <view class="text-center w-25 text-green2" v-if="propData.patient.sex==2">
  226. {{item.standard2}}
  227. </view>
  228. <view class="text-center w-25">
  229. <span v-if="item.type==1">{{item.value}}</span>
  230. <span v-if="item.type==0" class="text-error">{{item.value }}
  231. </span>
  232. </view>
  233. <view class="text-center w-20">
  234. {{item.unit}}
  235. </view>
  236. </view>
  237. </view>
  238. <view class="fs-14 border-top mt-3">
  239. <view class="mt-3">
  240. 报告时间: <span>{{'2022-05-19 10:03:30'}}</span>
  241. </view>
  242. <view class="mt-2">
  243. 报告医生: <span>{{'边建丞'}}</span>
  244. </view>
  245. </view>
  246. </view>
  247. <view class="mt-3 bg-white" v-else>
  248. <Empty title="暂无大便常规检测数据" />
  249. </view>
  250. </view>
  251. </view>
  252. </view>
  253. </template>
  254. <script>
  255. import {
  256. config
  257. } from '@/static/js/defult_value.js';
  258. import Empty from '@/component/empty/empty.vue'
  259. // 尿常规 数据
  260. const datatable2 = [{
  261. title: '葡萄糖(GLU)',
  262. value: '',
  263. standard1: '阴性 (-)',
  264. standard2: '阴性 (-)',
  265. type: 1,
  266. key: 'key',
  267. key1: 'key1',
  268. unit: 'mmol/L',
  269. },
  270. {
  271. title: '胆红素(BIL)',
  272. value: '',
  273. standard1: '阴性 (-)',
  274. standard2: '阴性 (-)',
  275. type: 1,
  276. key: 'key',
  277. key1: 'key1',
  278. unit: 'umol/L',
  279. },
  280. {
  281. title: '酮体(KET)',
  282. value: '',
  283. standard1: '阴性 (-)',
  284. standard2: '阴性 (-)',
  285. type: 1,
  286. key: 'key',
  287. key1: 'key1',
  288. unit: 'mmol/L',
  289. },
  290. {
  291. title: '比重(SG)',
  292. value: '',
  293. standard1: '1.015-1.025',
  294. standard2: '1.015-1.025',
  295. type: 1,
  296. key: 'key',
  297. key1: 'key1',
  298. unit: '',
  299. },
  300. {
  301. title: '潜血(BLD)',
  302. value: '',
  303. standard1: '阴性 (-)',
  304. standard2: '阴性 (-)',
  305. type: 1,
  306. key: 'key',
  307. key1: 'key1',
  308. unit: 'mg/L',
  309. },
  310. {
  311. title: '酸碱度(PH)',
  312. value: '',
  313. standard1: '5.5-6.5',
  314. standard2: '5.5-6.5',
  315. type: 1,
  316. key: '',
  317. key1: '',
  318. unit: '',
  319. },
  320. {
  321. title: '蛋白(PRO)',
  322. value: '',
  323. standard1: '阴性 (-)',
  324. standard2: '阴性 (-)',
  325. type: 1,
  326. key: '',
  327. key1: '',
  328. unit: 'g/L',
  329. },
  330. {
  331. title: '尿胆原(URO)',
  332. value: '',
  333. standard1: '阴性 (-)',
  334. standard2: '阴性 (-)',
  335. type: 1,
  336. key: '',
  337. key1: '',
  338. unit: 'mmol/L',
  339. },
  340. {
  341. title: '亚硝酸盐(NIT)',
  342. value: '',
  343. standard1: '阴性 (-)',
  344. standard2: '阴性 (-)',
  345. type: 1,
  346. key: '',
  347. key1: '',
  348. unit: '',
  349. },
  350. {
  351. title: '白细胞(LEU)',
  352. value: '',
  353. standard1: '阴性 (-)',
  354. standard2: '阴性 (-)',
  355. type: 1,
  356. key: '',
  357. key1: '',
  358. unit: '',
  359. },
  360. {
  361. title: '颜色(Color)',
  362. value: '',
  363. standard1: '',
  364. standard2: '',
  365. type: 1,
  366. key: '',
  367. key1: '',
  368. unit: '',
  369. },
  370. {
  371. title: '浊度(TURB)',
  372. value: '',
  373. standard1: '',
  374. standard2: '',
  375. type: 1,
  376. key: '',
  377. key1: '',
  378. unit: '',
  379. },
  380. {
  381. title: '红细胞(RBC)',
  382. value: '',
  383. standard1: '0-13.1',
  384. standard2: '0-13.1',
  385. type: 1,
  386. key: '',
  387. key1: '',
  388. unit: '/ul',
  389. },
  390. {
  391. title: '白细胞(WBC)',
  392. value: '',
  393. standard1: '0.0-13.2',
  394. standard2: '0.0-13.2',
  395. type: 1,
  396. key: '',
  397. key1: '',
  398. unit: '/ul',
  399. },
  400. {
  401. title: '上皮细胞 (EC)',
  402. value: '',
  403. standard1: '0.0-5.2',
  404. standard2: '0.0-5.2',
  405. type: 1,
  406. key: '',
  407. key1: '',
  408. unit: '/ul',
  409. },
  410. {
  411. title: '管型(CAST)',
  412. value: '',
  413. standard1: '0.0-2.4',
  414. standard2: '0.0-2.4',
  415. type: 1,
  416. key: '',
  417. key1: '',
  418. unit: '/ul',
  419. },
  420. {
  421. title: '结晶(XTAL)',
  422. value: '',
  423. standard1: '0.0-0.3',
  424. standard2: '0.0-0.3',
  425. type: 1,
  426. key: '',
  427. key1: '',
  428. unit: '/ul',
  429. },
  430. {
  431. title: '酵母菌(YLC)',
  432. value: '',
  433. standard1: '0.0',
  434. standard2: '0.0',
  435. type: 1,
  436. key: '',
  437. key1: '',
  438. unit: '/ul',
  439. },
  440. {
  441. title: '粘液丝(MUCUS)',
  442. value: '',
  443. standard1: '0.0-7.0',
  444. standard2: '0.0-7.0',
  445. type: 1,
  446. key: '',
  447. key1: '',
  448. unit: '/ul',
  449. },
  450. {
  451. title: '电导率(COND)',
  452. value: '',
  453. standard1: '3.0-39.0',
  454. standard2: '3.0-39.0',
  455. type: 1,
  456. key: '',
  457. key1: '',
  458. unit: 'mS/cm',
  459. },
  460. ];
  461. //血常规 数据
  462. const datatable3 = [{
  463. title: 'HR白细胞绝对值',
  464. value: '',
  465. standard1: '4.3-11.3',
  466. standard2: '4.3-11.3',
  467. type: 1,
  468. key: '',
  469. key1: '',
  470. unit: '10^9/L',
  471. },
  472. {
  473. title: '中性粒细胞绝对值',
  474. value: '',
  475. standard1: '1.6-7.8',
  476. standard2: '1.6-7.8',
  477. type: 1,
  478. key: '',
  479. key1: '',
  480. unit: '10^9/L',
  481. },
  482. {
  483. title: '中性粒细胞百分比',
  484. value: '',
  485. standard1: '31-70',
  486. standard2: '31-70',
  487. type: 1,
  488. key: '',
  489. key1: '',
  490. unit: '%',
  491. },
  492. {
  493. title: '淋巴细胞绝对值',
  494. value: '',
  495. standard1: '1.5-4.6',
  496. standard2: '1.5-4.6',
  497. type: 1,
  498. key: '',
  499. key1: '',
  500. unit: '',
  501. },
  502. {
  503. title: '淋巴细胞百分比',
  504. value: '',
  505. standard1: '23-59',
  506. standard2: '23-59',
  507. type: 1,
  508. key: '',
  509. key1: '',
  510. unit: '%',
  511. },
  512. {
  513. title: '单核细胞绝对值',
  514. value: '',
  515. standard1: '0.13-0.76',
  516. standard2: '0.13-0.76',
  517. type: 1,
  518. key: '',
  519. key1: '',
  520. unit: '10^9/L',
  521. },
  522. {
  523. title: '单核细胞百分比',
  524. value: '',
  525. standard1: '2-11',
  526. standard2: '2-11',
  527. type: 1,
  528. key: '',
  529. key1: '',
  530. unit: '%',
  531. },
  532. {
  533. title: '嗜酸性粒细胞绝对值',
  534. value: '',
  535. standard1: '0.00-0.68',
  536. standard2: '0.00-0.68',
  537. type: 1,
  538. key: '',
  539. key1: '',
  540. unit: '10^9/L',
  541. },
  542. {
  543. title: '嗜酸性粒细胞百分比',
  544. value: '',
  545. standard1: '0-9',
  546. standard2: '0-9',
  547. type: 1,
  548. key: '',
  549. key1: '',
  550. unit: '%',
  551. },
  552. {
  553. title: '嗜碱性粒细胞绝对值',
  554. value: '',
  555. standard1: '0.00-0.07',
  556. standard2: '0.00-0.07',
  557. type: 1,
  558. key: '',
  559. key1: '',
  560. unit: '10^9/L',
  561. },
  562. {
  563. title: '嗜碱性粒细胞百分比',
  564. value: '',
  565. standard1: '0-1',
  566. standard2: '0-1',
  567. type: 1,
  568. key: '',
  569. key1: '',
  570. unit: '%',
  571. },
  572. {
  573. title: 'HR红细胞绝对值',
  574. value: '',
  575. standard1: '4.2-5.7',
  576. standard2: '4.2-5.7',
  577. type: 1,
  578. key: '',
  579. key1: '',
  580. unit: '10^12/L',
  581. },
  582. {
  583. title: 'HR血红蛋白',
  584. value: '',
  585. standard1: '118-156',
  586. standard2: '118-156',
  587. type: 1,
  588. key: '',
  589. key1: '',
  590. unit: 'g/L',
  591. },
  592. {
  593. title: 'HR红细胞压积',
  594. value: '',
  595. standard1: '0.36-0.460',
  596. standard2: '0.36-0.46',
  597. type: 1,
  598. key: '',
  599. key1: '',
  600. unit: 'L/L',
  601. },
  602. {
  603. title: '红细胞平均体积',
  604. value: '',
  605. standard1: '77-92',
  606. standard2: '77-92',
  607. type: 1,
  608. key: '',
  609. key1: '',
  610. unit: 'fL',
  611. }, {
  612. title: '平均血红蛋白含量',
  613. value: '',
  614. standard1: '25-34',
  615. standard2: '25-34',
  616. type: 1,
  617. key: '',
  618. key1: '',
  619. unit: 'pg',
  620. }, {
  621. title: '平均血红蛋白浓度',
  622. value: '',
  623. standard1: '310-355',
  624. standard2: '310-355',
  625. type: 1,
  626. key: '',
  627. key1: '',
  628. unit: 'g/L',
  629. }, {
  630. title: '红细胞分布宽度',
  631. value: '',
  632. standard1: '11.00-14.50',
  633. standard2: '11.00-14.50',
  634. type: 1,
  635. key: '',
  636. key1: '',
  637. unit: '%',
  638. }, {
  639. title: 'HR血小板绝对值',
  640. value: '',
  641. standard1: '167-453',
  642. standard2: '167-453',
  643. type: 1,
  644. key: '',
  645. key1: '',
  646. unit: '10^9/L',
  647. }, {
  648. title: '平均血小板体积',
  649. value: '',
  650. standard1: '6.5-13.0',
  651. standard2: '6.5-13.0',
  652. type: 1,
  653. key: '',
  654. key1: '',
  655. unit: 'fL',
  656. }, {
  657. title: '血小板压积',
  658. value: '',
  659. standard1: '0.09-0.31',
  660. standard2: '0.09-0.31',
  661. type: 1,
  662. key: '',
  663. key1: '',
  664. unit: '%',
  665. }, {
  666. title: '血小板分布宽度',
  667. value: '',
  668. standard1: '15.50-17.10',
  669. standard2: '15.50-17.10',
  670. type: 1,
  671. key: '',
  672. key1: '',
  673. unit: '%',
  674. }, {
  675. title: 'HR超敏C反应蛋白',
  676. value: '',
  677. standard1: '0.00-8.00',
  678. standard2: '0.00-8.00',
  679. type: 1,
  680. key: '',
  681. key1: '',
  682. unit: 'mg/L',
  683. },
  684. ];
  685. // b超
  686. const datatable4 = [{
  687. title: '检查部位',
  688. value: '肝胆脾胰',
  689. type: 1,
  690. }, {
  691. title: '影像表现',
  692. value: '肝胆脾胰未见明显异常',
  693. type: 1,
  694. }, {
  695. title: '影像诊断',
  696. value: '肝脏大小形态正常,包膜光滑,实质回声均匀,肝内血管纹理清晰门静脉主千内径正常,血流通畅胆囊大小形态正常,壁薄光滑,内透声好。胆总管不扩张,显示段未见明显强光团。 脾脏大小正常,包膜光滑,实质回声均匀胰腺显示部分大小形态正常,实质回声均匀,胰管无扩张.',
  697. type: 1,
  698. }, ];
  699. //大便常规
  700. const datatable5 = [{
  701. title: '颜色',
  702. value: '',
  703. standard1: '',
  704. standard2: '',
  705. type: 1,
  706. key: '',
  707. key1: '',
  708. unit: '',
  709. },
  710. {
  711. title: '性状',
  712. value: '',
  713. standard1: '',
  714. standard2: '',
  715. type: 1,
  716. key: '',
  717. key1: '',
  718. unit: '',
  719. },
  720. {
  721. title: '镜检白细胞(WBC)',
  722. value: '',
  723. standard1: '阴性 (-)',
  724. standard2: '阴性 (-)',
  725. type: 1,
  726. key: '',
  727. key1: '',
  728. unit: '/HP',
  729. },
  730. {
  731. title: '镜检红细胞(RBC)',
  732. value: '',
  733. standard1: '阴性 (-)',
  734. standard2: '阴性 (-)',
  735. type: 1,
  736. key: '',
  737. key1: '',
  738. unit: '/HP',
  739. },
  740. {
  741. title: '寄生虫卵',
  742. value: '',
  743. standard1: '阴性 (-)',
  744. standard2: '阴性 (-)',
  745. type: 1,
  746. key: '',
  747. key1: '',
  748. unit: '/LP',
  749. },
  750. {
  751. title: 'HR隐血试验',
  752. value: '',
  753. standard1: '阴性 (-)6',
  754. standard2: '阴性 (-)',
  755. type: 1,
  756. key: '',
  757. key1: '',
  758. unit: '',
  759. },
  760. {
  761. title: '痴疾阿米巴',
  762. value: '',
  763. standard1: '阴性 (-)',
  764. standard2: '阴性 (-)',
  765. type: 1,
  766. key: '',
  767. key1: '',
  768. unit: '',
  769. },
  770. {
  771. title: '粪便找霉菌',
  772. value: '',
  773. standard1: '阴性 (-)',
  774. standard2: '阴性 (-)',
  775. type: 1,
  776. key: '',
  777. key1: '',
  778. unit: '',
  779. },
  780. ];
  781. export default {
  782. components:{Empty},
  783. name: 'DetectionResult',
  784. data() {
  785. return {
  786. datatable2:[],
  787. datatable3:[],
  788. datatable4:[],
  789. datatable5:[],
  790. datatable1: [{
  791. title: 'BMI',
  792. value: '',
  793. standard1: '18.5~24',
  794. standard2: '18.5~24',
  795. type: 1,
  796. key: 'visit',
  797. key1: 'bmi',
  798. unit: 'kg/m²',
  799. },
  800. {
  801. title: '腰围',
  802. value: '',
  803. standard1: '<90',
  804. standard2: '<85',
  805. type: 1,
  806. key: 'visit',
  807. key1: 'waist',
  808. unit: 'cm',
  809. },
  810. {
  811. title: '收缩压',
  812. value: '',
  813. standard1: '<140',
  814. standard2: '<140',
  815. type: 1,
  816. key: 'visit',
  817. key1: 'shrink',
  818. unit: 'mmHg',
  819. },
  820. {
  821. title: '舒张压',
  822. value: '',
  823. standard1: '<90',
  824. standard2: '<90',
  825. type: 1,
  826. key: 'visit',
  827. key1: 'diastole',
  828. unit: 'mmHg',
  829. },
  830. {
  831. title: '心率',
  832. value: '',
  833. standard1: '60~90',
  834. standard2: '60~90',
  835. type: 1,
  836. key: '',
  837. key1: 'pulse',
  838. unit: '次/分钟',
  839. },
  840. {
  841. title: '吸烟',
  842. value: '',
  843. standard1: '戒烟',
  844. standard2: '戒烟',
  845. type: 1,
  846. key: '',
  847. key1: 'rxyl',
  848. unit: '根 ',
  849. },
  850. {
  851. title: '喝酒',
  852. value: '',
  853. standard1: '戒酒',
  854. standard2: '戒酒',
  855. type: 1,
  856. key: '',
  857. key1: 'ryjl',
  858. unit: 'ml',
  859. },
  860. {
  861. title: '血糖',
  862. value: '',
  863. standard1: '3.9~6.9',
  864. standard2: '3.9~6.9',
  865. type: 1,
  866. key: 'checkList',
  867. key1: 'bloodGlucose',
  868. unit: 'mmol/L',
  869. },
  870. {
  871. title: '血氧',
  872. value: '',
  873. standard1: '>=90',
  874. standard2: '>=90',
  875. type: 1,
  876. key: 'checkList',
  877. key1: 'spo2',
  878. unit: '%',
  879. },
  880. // {
  881. // title: '糖化血红蛋白',
  882. // value: '',
  883. // standard1: '<6.5',
  884. // standard2: '<6.5',
  885. // type: 1,
  886. // key: '',
  887. // key1: 'thxhdb',
  888. // unit: '%',
  889. // },
  890. // {
  891. // title: '总胆固醇',
  892. // value: '',
  893. // standard1: '2.85~5.69',
  894. // standard2: '2.85~5.69',
  895. // type: 1,
  896. // key: 'checkList',
  897. // key1: 'chol',
  898. // unit: 'mmol/L',
  899. // },
  900. // {
  901. // title: '甘油三酯',
  902. // value: '',
  903. // standard1: '0.45~1.7',
  904. // standard2: '0.45~1.7',
  905. // type: 1,
  906. // key: 'checkList',
  907. // key1: 'bloodFat1',
  908. // unit: 'mmol/L',
  909. // },
  910. // {
  911. // title: '低密度脂蛋白',
  912. // value: '',
  913. // standard1: '0~3.4',
  914. // standard2: '0~3.4',
  915. // type: 1,
  916. // key: 'checkList',
  917. // key1: 'bloodFat3',
  918. // unit: 'mmol/L',
  919. // },
  920. // {
  921. // title: '高密度脂蛋白',
  922. // value: '',
  923. // standard1: '1.16~1.55',
  924. // standard2: '1.16~1.55',
  925. // type: 1,
  926. // key: 'checkList',
  927. // key1: 'bloodFat4',
  928. // unit: 'mmol/L',
  929. // },
  930. // {
  931. // title: '肌酐',
  932. // value: '',
  933. // standard1: '53~106',
  934. // standard2: '44~97',
  935. // type: 1,
  936. // key: 'checkList',
  937. // key1: 'urine1',
  938. // unit: 'μmol/L',
  939. // },
  940. // {
  941. // title: '微量白蛋白',
  942. // value: '',
  943. // standard1: '0~30',
  944. // standard2: '0~30',
  945. // type: 1,
  946. // key: 'checkList',
  947. // key1: 'urine2',
  948. // unit: 'mg/L',
  949. // },
  950. // {
  951. // title: '尿酸',
  952. // value: '',
  953. // standard1: '149~416',
  954. // standard2: '89~357',
  955. // type: 1,
  956. // key: 'checkList',
  957. // key1: 'ua',
  958. // unit: 'μmol/L',
  959. // },
  960. ],
  961. }
  962. },
  963. props: {
  964. propData: {
  965. type: Object,
  966. default () {
  967. return {
  968. patient: {},
  969. checkResult: {}
  970. }
  971. },
  972. },
  973. },
  974. watch: {
  975. propData: {
  976. handler(val) {
  977. if (val.patient&&val.patient.id) {
  978. //
  979. if(val.patient.idCard=='330683198901040824'){
  980. this.datatable2=datatable2
  981. this.datatable3=datatable3
  982. this.datatable4=datatable4
  983. this.datatable5=datatable5
  984. }
  985. this.setlist(val.checkResult)
  986. }
  987. },
  988. },
  989. },
  990. created() {
  991. },
  992. methods: {
  993. setlist(checkResult) {
  994. if (checkResult.bmi) {
  995. let checkList = checkResult || {}
  996. this.datatable1.map((item, index) => {
  997. if (item.key == 'checkList') {
  998. this.datatable1[index].value = this.filterA(
  999. checkList[item.key1],
  1000. item.key1
  1001. ).value
  1002. this.datatable1[index].type = this.filterA(
  1003. checkList[item.key1],
  1004. item.key1
  1005. ).type
  1006. } else {
  1007. this.datatable1[index].value = this.filterA(
  1008. checkList[item.key1],
  1009. item.key1
  1010. ).value
  1011. this.datatable1[index].type = this.filterA(
  1012. checkList[item.key1],
  1013. item.key1
  1014. ).type
  1015. }
  1016. })
  1017. } else {
  1018. this.datatable1.map((item, index) => {
  1019. this.datatable1[index].value = '未测量'
  1020. this.datatable1[index].type = 1
  1021. })
  1022. }
  1023. this.datatable2.map((item, index) => {
  1024. this.datatable2[index].value = '未测量'
  1025. this.datatable2[index].type = 1
  1026. })
  1027. this.datatable3.map((item, index) => {
  1028. this.datatable3[index].value = '未测量'
  1029. this.datatable3[index].type = 1
  1030. })
  1031. // this.datatable4.map((item, index) => {
  1032. // this.datatable4[index].value = '未测量'
  1033. // this.datatable4[index].type = 1
  1034. // })
  1035. this.datatable5.map((item, index) => {
  1036. this.datatable5[index].value = '未测量'
  1037. this.datatable5[index].type = 1
  1038. })
  1039. },
  1040. filterA(val, key) {
  1041. // console.log(key, val)
  1042. if ((val != 0 && this.$mf.isEmpty(val)) || String(val) == '') {
  1043. // console.log(key, val, val != 0, '0' == '')
  1044. return {
  1045. value: '未测量',
  1046. type: 1
  1047. }
  1048. }
  1049. return {
  1050. value: val,
  1051. type: this.check({
  1052. type: key,
  1053. value: val,
  1054. age: this.propData.patient.age,
  1055. sex: this.propData.patient.sex,
  1056. }) ?
  1057. 0 : 1,
  1058. }
  1059. },
  1060. check({
  1061. type,
  1062. value,
  1063. age,
  1064. sex
  1065. }) {
  1066. let msg = this.propData.patient
  1067. let arr = config
  1068. if (!arr[type]) {
  1069. return false
  1070. }
  1071. if (type == 'shrink' && age) {
  1072. if (msg.age > 65) {
  1073. if (value > arr['shrinktop'][1]) {
  1074. return true
  1075. }
  1076. if (value < arr['shrinktop'][0]) {
  1077. return true
  1078. }
  1079. } else {
  1080. if (value > arr['shrinklow'][1]) {
  1081. return true
  1082. }
  1083. if (value < arr['shrinklow'][0]) {
  1084. return true
  1085. }
  1086. }
  1087. }
  1088. if (sex) {
  1089. if (msg.sex == 1) {
  1090. if (value > arr[type][0][1]) {
  1091. return true
  1092. }
  1093. if (value < arr[type][0][0]) {
  1094. return true
  1095. }
  1096. } else {
  1097. if (value > arr[type][1][1]) {
  1098. return true
  1099. }
  1100. if (value < arr[type][1][0]) {
  1101. return true
  1102. }
  1103. }
  1104. }
  1105. if (value > arr[type][1]) {
  1106. return true
  1107. }
  1108. if (value < arr[type][0]) {
  1109. return true
  1110. }
  1111. return false
  1112. },
  1113. }
  1114. }
  1115. </script>
  1116. <style lang="scss">
  1117. page {
  1118. background: #F5F9FF;
  1119. }
  1120. .mtable {
  1121. &-title {
  1122. border-radius: 50rpx;
  1123. padding: 20rpx 0 20rpx 20rpx;
  1124. box-shadow: 0px 2px 7px 1px rgba(45, 142, 255, 0.5);
  1125. }
  1126. &-body {
  1127. &-item {
  1128. margin-top: 20rpx;
  1129. border-radius: 50rpx;
  1130. padding: 14rpx 0 14rpx 20rpx;
  1131. background-color: #F6F9FE;
  1132. color: #868687;
  1133. }
  1134. }
  1135. }
  1136. </style>
  1137. let data1 = {
  1138. checkList: [],
  1139. visit: {
  1140. "id": 1336,
  1141. "isSend": 0,
  1142. "sendTime": null,
  1143. "idCard": "123456200001011212",
  1144. "opUserId": 35,
  1145. "type": "gxy",
  1146. "sfys": "王医生",
  1147. "sffs": "门诊",
  1148. "zg": "继续随访",
  1149. "zdsf": 1,
  1150. "mqzz": "[\"无症状\"]",
  1151. "xltz": "良好",
  1152. "zyxw": "良好",
  1153. "fyqk": "规律",
  1154. "ywfy": "无",
  1155. "rxyl": 0,
  1156. "rxylzd": 0,
  1157. "ryjl": 0,
  1158. "ryjlzd": 0,
  1159. "ydcs": 2,
  1160. "ydcszd": 6,
  1161. "ydsj": 30,
  1162. "ydsjzd": 30,
  1163. "sycd": "中",
  1164. "sycdzd": "轻",
  1165. "zs": null,
  1166. "zszd": null,
  1167. "tzzd": 29,
  1168. "bmizd": 23.8,
  1169. "ywzd": 89,
  1170. "sffl": "控制满意",
  1171. "gljb": "三级管理",
  1172. "xcyy": "2022-10-06",
  1173. "zz": 0,
  1174. "zzyy": "",
  1175. "zzjg": "",
  1176. "jkcf": "1. 定期检查血脂,控制高脂肪饮食,不吃动物的内脏及其制品,可常食用黑木耳、山楂等。肥胖者需控制体重。\n2. 建议接种流感疫苗和肺炎疫苗。\n3. 饮食宜用低盐饮食,食盐每天不超过5~10克(1~2钱)。\n4.
  1177. 从卧位到立位时不能太快,以防止发生直立性低血压。\n5. 保持大便畅通。",
  1178. "zdmbd": "触及正常",
  1179. "yds": "无",
  1180. "ydsyl": "",
  1181. "dxtfy": "无",
  1182. "xtlx": "空腹血糖",
  1183. "xtz": 0,
  1184. "thxhdb": "",
  1185. "jcrq": "2022-09-06",
  1186. "bqgss": "",
  1187. "zzqt": "无",
  1188. "tzqt": "无",
  1189. "height": 112,
  1190. "weight": 50,
  1191. "bmi": 39.9,
  1192. "waist": 1231,
  1193. "shrink": 123,
  1194. "diastole": 11,
  1195. "pulse": 31,
  1196. "temperature": 312,
  1197. "bloodGlucose1": null,
  1198. "bloodGlucose2": null,
  1199. "medicinalList":
  1200. "[{\"id\":773,\"idCard\":\"123456200001011212\",\"opUserId\":1,\"name\":\"拉西地平片\",\"type\":\"Gxy\",\"medicinalUnit\":\"mg\",\"unit\":\"4\",\"medicinalUse\":\"口服\",\"medicinalInterval\":\"1天/1次\",\"untowardReaction\":\"无\",\"medicinalId\":null,\"medicineUnitId\":null,\"usageId\":null,\"wayId\":null,\"createTime\":\"2022-08-05\"}]",
  1201. "visitSendId": null,
  1202. "doctorId": null,
  1203. "jkdaGljb": "",
  1204. "bloodFat1": null,
  1205. "bloodFat2": null,
  1206. "bloodFat3": null,
  1207. "bloodFat4": null,
  1208. "createTime": "2022-09-06T10:30:09",
  1209. "updateTime": "2022-09-06T10:30:09",
  1210. "isDelete": 0,
  1211. "otherDisease": "无",
  1212. "lgmjzsj": null,
  1213. "fymjzsj": null,
  1214. "qttz1": "无",
  1215. "lgymjzyy": "0",
  1216. "ymgz": "0",
  1217. "fyymjzyy": "0",
  1218. "outVisterDoctor": null,
  1219. "brjy": null,
  1220. "outVisterSign": null,
  1221. "BackVisitorDate": null
  1222. }
  1223. }