detection_result.vue 25 KB

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