Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

PatientDetail.vue 85KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416
  1. <template>
  2. <div class="app-container">
  3. <el-dialog
  4. title="查看传染病检查结果"
  5. :visible.sync="dialogFormVisible"
  6. width="1000px"
  7. id="user-inspection-form"
  8. >
  9. <el-form :model="form" ref="form" label-position="top">
  10. <el-row>
  11. <el-col :span="1">&nbsp;</el-col>
  12. <template v-for="(item, index) in form.formItem">
  13. <el-col :span="7" >
  14. <el-form-item
  15. :label="item.item_name"
  16. v-if="item.range_type == 1"
  17. :key="item.item_id"
  18. :prop="'formItem.' + index + '.value'"
  19. >
  20. <el-input
  21. placeholder="请填入"
  22. v-model="item.value"
  23. style="width: 95%"
  24. type="number"
  25. disabled
  26. >
  27. <template slot="append">{{ item.unit }}</template>
  28. </el-input>
  29. </el-form-item>
  30. <el-form-item
  31. :label="item.item_name"
  32. v-else
  33. :key="item.item_id"
  34. :prop="'formItem.' + index + '.value'"
  35. >
  36. <!-- :key="item.item_id" -->
  37. <el-select
  38. v-model="item.value"
  39. placeholder="请选择"
  40. style="width: 95%"
  41. disabled
  42. >
  43. <el-option
  44. v-for="(optionItem, oidex) in item.select_options"
  45. :key="oidex"
  46. :label="optionItem"
  47. :value="optionItem"
  48. >
  49. </el-option>
  50. </el-select>
  51. </el-form-item>
  52. </el-col>
  53. <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
  54. </template>
  55. </el-row>
  56. </el-form>
  57. <div slot="footer" class="dialog-footer">
  58. <el-button @click="dialogFormVisible = false">关闭</el-button>
  59. </div>
  60. </el-dialog>
  61. <el-form
  62. ref="form"
  63. :rules="rules"
  64. :model="form"
  65. label-width="134px"
  66. class="clearfix"
  67. id="patient-info"
  68. >
  69. <div style="float: right; z-index: 8; position: absolute; right: 16px">
  70. <el-button
  71. size="small"
  72. type="primary"
  73. @click="printCard()"
  74. style="margin: 0 6px 6px 0; z-index: 1"
  75. >打印签到卡</el-button
  76. >
  77. <el-button
  78. size="small"
  79. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  80. type="primary"
  81. @click="$router.push('/patients/patient/' + patientID + '/edit')"
  82. style="margin: 0 0 6px 0; z-index: 1"
  83. >修改</el-button
  84. >
  85. <el-button
  86. size="small"
  87. type="primary"
  88. @click="printThisInfo()"
  89. style="margin: 0 6px 6px 0; z-index: 1"
  90. >打印</el-button
  91. >
  92. </div>
  93. <div class="dataTitle">一般资料</div>
  94. <el-row>
  95. <el-col :span="20">
  96. <el-row :gutter="10">
  97. <el-col :span="8">
  98. <el-form-item label="姓名 : " class="is-required" prop="name">
  99. <el-input v-model="form.name" disabled></el-input>
  100. </el-form-item>
  101. </el-col>
  102. <el-col :span="8" style="height: 59px">
  103. <el-form-item label="性别 : " class="is-required" prop="gender">
  104. <el-radio-group v-model="form.gender">
  105. <el-radio
  106. v-for="item in sexOptions"
  107. :key="item.value"
  108. :label="item.value"
  109. :value="item.value"
  110. disabled
  111. >{{ item.label }}</el-radio
  112. >
  113. </el-radio-group>
  114. </el-form-item>
  115. </el-col>
  116. <el-col :span="8">
  117. <el-form-item
  118. label="身份证号 : "
  119. class="is-required"
  120. prop="idCardNo"
  121. >
  122. <el-input v-model="form.idCardNo" disabled></el-input>
  123. </el-form-item>
  124. </el-col>
  125. <el-col :span="8" style="height: 59px">
  126. <el-form-item label="年龄 : " class="is-required" prop="age">
  127. <el-input v-model="form.age" disabled></el-input>
  128. </el-form-item>
  129. </el-col>
  130. <el-col :span="8">
  131. <el-form-item label="透析号 : " class="is-required">
  132. <el-input
  133. disabled
  134. v-model="form.dialysisNo"
  135. placeholder="填写或自动生成"
  136. style="width: 110px; float: left; margin-right: 1%"
  137. ></el-input>
  138. <el-button disabled type="primary">自动生成</el-button>
  139. </el-form-item>
  140. </el-col>
  141. <el-col :span="8">
  142. <el-form-item
  143. label="出生日期 : "
  144. class="is-required"
  145. prop="birth"
  146. >
  147. <el-date-picker
  148. v-model="form.birth"
  149. type="date"
  150. disabled
  151. placeholder="选择日期"
  152. :suffix-icon="'el-icon-menu'"
  153. format="yyyy-MM-dd"
  154. value-format="yyyy-MM-dd"
  155. ></el-date-picker>
  156. </el-form-item>
  157. </el-col>
  158. <el-col :span="8" v-if="org_id!=0 && org_id!=10138 && org_id!=10278">
  159. <el-form-item
  160. label="首次肾脏治疗时间 : "
  161. label-width="150px"
  162. class="is-required"
  163. prop="birth"
  164. >
  165. <el-date-picker
  166. v-model="form.firstDialysisDate"
  167. type="date"
  168. disabled
  169. placeholder="选择日期"
  170. :suffix-icon="'el-icon-menu'"
  171. format="yyyy-MM-dd"
  172. value-format="yyyy-MM-dd"
  173. ></el-date-picker>
  174. </el-form-item>
  175. </el-col>
  176. <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id==0||org_id == 10138 || org_id == 10278">
  177. <el-form-item
  178. label="首次进入本院时间:"
  179. prop="firstDialysisDate"
  180. label-width="150px"
  181. >
  182. <el-date-picker
  183. v-model="form.firstDialysisDate"
  184. type="date"
  185. format="yyyy-MM-dd"
  186. value-format="yyyy-MM-dd"
  187. ></el-date-picker>
  188. </el-form-item>
  189. </el-col>
  190. <el-col :span="8">
  191. <el-form-item label="本人电话: " class="is-required" prop="phone">
  192. <el-input
  193. v-model="form.phone"
  194. maxlength="20"
  195. disabled
  196. ></el-input>
  197. </el-form-item>
  198. </el-col>
  199. <el-col :span="8">
  200. <el-form-item label="家属姓名: ">
  201. <el-input
  202. v-model="form.contact_name"
  203. maxlength="20"
  204. disabled
  205. ></el-input>
  206. </el-form-item>
  207. </el-col>
  208. <el-col :span="8">
  209. <el-form-item label="家属电话: " prop="homeTelephone">
  210. <el-input
  211. v-model="form.homeTelephone"
  212. maxlength="20"
  213. disabled
  214. ></el-input>
  215. </el-form-item>
  216. </el-col>
  217. <el-col :span="6">
  218. <el-form-item
  219. label="本院首次透析 : "
  220. prop="is_hospital_first_dialysis"
  221. >
  222. <el-radio-group v-model="form.is_hospital_first_dialysis">
  223. <el-radio
  224. v-for="item in isHospitalFirstDialysisOptions"
  225. :key="item.value"
  226. :label="item.value"
  227. :value="item.value"
  228. disabled
  229. >{{ item.label }}</el-radio
  230. >
  231. </el-radio-group>
  232. </el-form-item>
  233. </el-col>
  234. <el-col :span="6">
  235. <el-form-item
  236. label="系统前透析次数 : "
  237. prop="first_dialysis_hospital"
  238. >
  239. <el-input v-model="form.user_sys_before_count" disabled></el-input>
  240. </el-form-item>
  241. </el-col>
  242. <el-col :span="6">
  243. <el-form-item label="首次诊治日期 : ">
  244. <el-date-picker
  245. v-model="form.first_treatment_date"
  246. type="date"
  247. disabled
  248. format="yyyy-MM-dd"
  249. value-format="yyyy-MM-dd"
  250. ></el-date-picker>
  251. </el-form-item>
  252. </el-col>
  253. <el-col :span="6">
  254. <el-form-item label="上家透析医院 : " prop="first_dialysis_hospital">
  255. <el-input
  256. v-model="form.first_dialysis_hospital"
  257. disabled
  258. ></el-input>
  259. </el-form-item>
  260. </el-col>
  261. <el-col :span="24">
  262. <el-form-item label="透析之前情况 : " prop="predialysis_condition">
  263. <el-checkbox-group v-model="form.predialysis_condition">
  264. <el-checkbox
  265. v-for="item in predialysisConditionOptions"
  266. :label="item.label"
  267. :key="item.value"
  268. :value="item.label"
  269. disabled
  270. >{{ item.label }}</el-checkbox
  271. >
  272. </el-checkbox-group>
  273. </el-form-item>
  274. </el-col>
  275. <el-col :span="24">
  276. <el-form-item label="病历号 : " prop="record_number">
  277. <el-input
  278. style="width: 200px;"
  279. v-model="form.record_number"
  280. disabled
  281. ></el-input>
  282. </el-form-item>
  283. </el-col>
  284. <el-col :span="24">
  285. <el-form-item label="主管护士 : " prop="record_number">
  286. <el-select v-model="form.nurse" style="width:200px" disabled>
  287. <el-option
  288. v-for="(item,index) in adminUserOptions"
  289. :key="index"
  290. :label="item.name"
  291. :value="item.id"
  292. />
  293. </el-select>
  294. </el-form-item>
  295. </el-col>
  296. <el-col :span="6">
  297. <el-form-item
  298. label="本院前透析频率 : "
  299. prop="pre_hospital_dialysis_frequency"
  300. >
  301. <el-input
  302. v-model="form.pre_hospital_dialysis_frequency"
  303. disabled
  304. ></el-input>
  305. </el-form-item>
  306. </el-col>
  307. <el-col :span="6">
  308. <el-form-item
  309. label="本院前透析次数 : "
  310. prop="pre_hospital_dialysis_times"
  311. >
  312. <el-input
  313. v-model="form.pre_hospital_dialysis_times"
  314. disabled
  315. ></el-input>
  316. </el-form-item>
  317. </el-col>
  318. <el-col :span="6">
  319. <el-form-item
  320. label="本院首次透析 : "
  321. prop="hospital_first_dialysis_date"
  322. >
  323. <el-date-picker
  324. v-model="form.hospital_first_dialysis_date"
  325. type="date"
  326. format="yyyy-MM-dd"
  327. value-format="yyyy-MM-dd"
  328. disabled
  329. ></el-date-picker>
  330. </el-form-item>
  331. </el-col>
  332. <el-col :span="8" style="height: 59px">
  333. <el-form-item
  334. label="患者来源 : "
  335. class="is-required"
  336. prop="source"
  337. >
  338. <el-radio-group v-model="form.source">
  339. <el-radio
  340. v-for="item in sourceOptions"
  341. :key="item.value"
  342. :label="item.value"
  343. :value="item.value"
  344. disabled
  345. >{{ item.label }}</el-radio
  346. >
  347. </el-radio-group>
  348. </el-form-item>
  349. </el-col>
  350. <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  351. <el-form-item
  352. label="患者去向 : "
  353. >
  354. <el-radio-group v-model="form.patient_source">
  355. <el-radio
  356. disabled
  357. v-for="item in patientSourceList"
  358. :key="item.value"
  359. :label="item.value"
  360. :value="item.value"
  361. >{{ item.label }}</el-radio
  362. >
  363. </el-radio-group>
  364. </el-form-item>
  365. </el-col>
  366. <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  367. <el-form-item
  368. label="流转地: "
  369. >
  370. <el-select v-model="form.patient_address" placeholder="请选择">
  371. <el-option
  372. v-for="item in liuAddresslist"
  373. :key="item.id"
  374. :label="item.name"
  375. :value="item.name">
  376. </el-option>
  377. </el-select>
  378. </el-form-item>
  379. </el-col>
  380. -->
  381. <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  382. <el-form-item
  383. label="流转开始时间 : "
  384. >
  385. <el-date-picker
  386. size="small"
  387. v-model="form.patient_start_time"
  388. prefix-icon="el-icon-date"
  389. :editable="false"
  390. style="width: 150px;"
  391. type="date"
  392. placeholder="选择日期时间"
  393. align="right"
  394. format="yyyy-MM-dd"
  395. value-format="yyyy-MM-dd"
  396. @change="startTimeChange"
  397. ></el-date-picker>
  398. </el-form-item>
  399. </el-col> -->
  400. <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
  401. <el-form-item
  402. label="流转结束时间 : "
  403. >
  404. <el-date-picker
  405. size="small"
  406. v-model="form.patient_end_time"
  407. prefix-icon="el-icon-date"
  408. :editable="false"
  409. style="width: 150px;"
  410. type="date"
  411. placeholder="选择日期时间"
  412. align="right"
  413. format="yyyy-MM-dd"
  414. value-format="yyyy-MM-dd"
  415. @change="startTimeChange"
  416. ></el-date-picker>
  417. </el-form-item>
  418. </el-col> -->
  419. <!-- <el-col :span="8" style="margin-bottom: 20px;">
  420. <el-form-item
  421. label="备注 : "
  422. prop="sch_remark">
  423. <el-input
  424. disabled
  425. type="textarea"
  426. :rows="3"
  427. v-model="form.sch_remark"
  428. resize="none"
  429. placeholder
  430. ></el-input>
  431. </el-form-item>
  432. </el-col> -->
  433. <el-col :span="8" style="height: 59px">
  434. <el-form-item
  435. label="治疗状态(转归) : "
  436. class="is-required"
  437. prop="lapseto"
  438. >
  439. <el-radio-group v-model="form.lapseto">
  440. <el-radio
  441. v-for="item in lapsetoOptions"
  442. :key="item.value"
  443. :label="item.value"
  444. :value="item.value"
  445. disabled
  446. >{{ item.label }}</el-radio
  447. >
  448. </el-radio-group>
  449. </el-form-item>
  450. </el-col>
  451. <el-col :span="24">
  452. <el-form-item label="传染病 : " required prop="is_infectious">
  453. <el-radio-group v-model="form.is_infectious" disabled>
  454. <el-radio :label="1">阴性</el-radio>
  455. <el-radio :label="2">阳性</el-radio>
  456. </el-radio-group>
  457. <el-checkbox-group
  458. v-model="form.contagions"
  459. v-if="form.is_infectious == '2'"
  460. disabled
  461. >
  462. <el-checkbox
  463. v-for="item in contagionList"
  464. v-if="item.type == 2"
  465. :label="item.id"
  466. :key="item.id"
  467. name="contagions"
  468. :value="item.id"
  469. >{{ item.name }}
  470. </el-checkbox>
  471. </el-checkbox-group>
  472. </el-form-item>
  473. <el-col :span="24">
  474. <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
  475. <el-input v-model="form.infectious_remark"></el-input>
  476. </el-form-item>
  477. </el-col>
  478. <el-form-item label="疑难内瘘:">
  479. <el-radio-group v-model="form.troble_shoot" disabled>
  480. <el-radio :label="1">是</el-radio>
  481. <el-radio :label="2">否</el-radio>m
  482. </el-radio-group>
  483. </el-form-item>
  484. <el-form-item label="人员编码: ">
  485. <el-input v-model="form.zb_patient_id"></el-input>
  486. </el-form-item>
  487. </el-col>
  488. <!--<el-col :span="16" >-->
  489. <!--<el-form-item label="检查结果日期 : " >-->
  490. <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
  491. <!--format="yyyy-MM-dd"-->
  492. <!--style="width: 200px;"-->
  493. <!--value-format="yyyy-MM-dd"></el-date-picker>-->
  494. <!--&lt;!&ndash;<el-button type="primary" @click="recordCheck()">录入检验检查</el-button>&ndash;&gt;-->
  495. <!--</el-form-item>-->
  496. <!--</el-col>-->
  497. <el-col :span="16">
  498. <el-form-item label="检查结果日期 : ">
  499. <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
  500. <!--format="yyyy-MM-dd"-->
  501. <!--style="width: 200px;"-->
  502. <!--disabled-->
  503. <!--value-format="yyyy-MM-dd" v-if="isEdit"></el-date-picker>-->
  504. <el-date-picker
  505. v-model="form.record_date"
  506. type="date"
  507. placeholder="选择日期"
  508. :suffix-icon="'el-icon-menu'"
  509. format="yyyy-MM-dd"
  510. disabled
  511. style="width: 200px"
  512. value-format="yyyy-MM-dd"
  513. ></el-date-picker>
  514. <el-button type="primary" @click="showInspectDialog()"
  515. >查看检验检查</el-button
  516. >
  517. </el-form-item>
  518. </el-col>
  519. <el-col :span="24">
  520. <el-form-item label="传染病周期提醒: ">
  521. <el-radio-group
  522. v-model="form.remind_cycle"
  523. @change="changeCycle()"
  524. disabled
  525. >
  526. <el-radio :label="1">一月一次</el-radio>
  527. <el-radio :label="2">两月一次</el-radio>
  528. <el-radio :label="3">三月一次</el-radio>
  529. <el-radio :label="4">半年一次</el-radio>
  530. <el-radio :label="5">一年一次</el-radio>
  531. </el-radio-group>
  532. </el-form-item>
  533. </el-col>
  534. <el-col :span="24">
  535. <el-form-item label="诊断 : " prop="diagnose">
  536. <!-- <textarea v-model="form.diagnose" class="textarea" disabled></textarea> -->
  537. <el-input
  538. type="textarea"
  539. :rows="3"
  540. v-model="form.diagnose"
  541. resize="none"
  542. placeholder=""
  543. readonly
  544. ></el-input>
  545. </el-form-item>
  546. </el-col>
  547. <el-col :span="24">
  548. <el-form-item label="诊疗计划 : " prop="diagnose">
  549. <el-input
  550. type="textarea"
  551. :rows="3"
  552. v-model="form.treatment_plan"
  553. resize="none"
  554. placeholder
  555. readonly
  556. ></el-input>
  557. </el-form-item>
  558. </el-col>
  559. <el-col :span="8">
  560. <el-form-item label="民族 : " prop="nation">
  561. <el-input
  562. v-model="form.nation"
  563. maxlength="30"
  564. disabled
  565. ></el-input>
  566. </el-form-item>
  567. </el-col>
  568. <el-col :span="8">
  569. <el-form-item label="籍贯 : " prop="native_place">
  570. <el-input
  571. v-model="form.native_place"
  572. maxlength="30"
  573. disabled
  574. ></el-input>
  575. </el-form-item>
  576. </el-col>
  577. <el-col :span="8">
  578. <el-form-item label="家庭住址 : " prop="homeAddress">
  579. <el-input v-model="form.homeAddress" disabled style="width: 350px;"></el-input>
  580. </el-form-item>
  581. </el-col>
  582. <div v-show="!generic_info_fold">
  583. <el-col :span="8">
  584. <el-form-item label="别名 : " prop="alias">
  585. <el-input v-model="form.alias" disabled></el-input>
  586. </el-form-item>
  587. </el-col>
  588. <el-col :span="8">
  589. <el-form-item label="身高(cm) : " prop="height">
  590. <el-input
  591. maxlength="5"
  592. v-model="form.height"
  593. disabled
  594. ></el-input>
  595. </el-form-item>
  596. </el-col>
  597. <el-col :span="8">
  598. <el-form-item label="婚姻状况 : " prop="maritalStatus">
  599. <el-select
  600. v-model="form.maritalStatus"
  601. placeholder="请选择婚姻状况"
  602. disabled
  603. >
  604. <el-option
  605. v-for="item in maritalOptions"
  606. :key="item.id"
  607. :label="item.name"
  608. :value="item.id"
  609. />
  610. </el-select>
  611. </el-form-item>
  612. </el-col>
  613. <el-col :span="8">
  614. <el-form-item label="子女情况(个) : " prop="children">
  615. <el-input
  616. maxlength="5"
  617. v-model="form.children"
  618. disabled
  619. ></el-input>
  620. </el-form-item>
  621. <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
  622. </el-form-item> -->
  623. </el-col>
  624. <el-col :span="8">
  625. <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
  626. <el-input v-model="form.admissionNumber" disabled></el-input>
  627. </el-form-item>
  628. </el-col>
  629. <el-col :span="8">
  630. <el-form-item label="医保类型 : " prop="reimbursementWayID">
  631. <el-select v-model="form.reimbursementWayID" disabled>
  632. <el-option
  633. v-for="item in wayOptions"
  634. :key="item.id"
  635. :label="item.name"
  636. :value="item.id"
  637. />
  638. </el-select>
  639. </el-form-item>
  640. </el-col>
  641. <el-col :span="8">
  642. <el-form-item label="医保号 : " prop="healthCareNo">
  643. <el-input v-model="form.healthCareNo" disabled></el-input>
  644. </el-form-item>
  645. </el-col>
  646. <el-col :span="8">
  647. <el-form-item label="教育程度 : " prop="educationOptions">
  648. <el-select v-model="form.education" disabled>
  649. <el-option
  650. v-for="item in educationOptions"
  651. :key="item.id"
  652. :label="item.name"
  653. :value="item.id"
  654. />
  655. </el-select>
  656. </el-form-item>
  657. </el-col>
  658. <el-col :span="8">
  659. <el-form-item label="固定电话 : ">
  660. <el-input
  661. v-model="form.tell_phone"
  662. maxlength="20"
  663. disabled
  664. ></el-input>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="8">
  668. <el-form-item label="费别 : ">
  669. <el-select v-model="form.expense_kind" disabled>
  670. <el-option
  671. v-for="item in expenseOptions"
  672. :key="item.id"
  673. :label="item.name"
  674. :value="item.id"
  675. />
  676. </el-select>
  677. </el-form-item>
  678. </el-col>
  679. <el-col :span="8">
  680. <el-form-item label="透析龄(月): ">
  681. <el-input v-model="form.dialysis_age" disabled></el-input>
  682. </el-form-item>
  683. </el-col>
  684. <el-col :span="8">
  685. <el-form-item label="亲友电话: " prop="relative_phone">
  686. <el-input
  687. v-model="form.relative_phone"
  688. maxlength="20"
  689. disabled
  690. ></el-input>
  691. </el-form-item>
  692. </el-col>
  693. <el-col :span="8">
  694. <el-form-item label="亲友关系: " prop="relative_relations">
  695. <el-input
  696. v-model="form.relative_relations"
  697. maxlength="20"
  698. disabled
  699. ></el-input>
  700. </el-form-item>
  701. </el-col>
  702. <el-col :span="8">
  703. <el-form-item label="职业 : " prop="profession">
  704. <el-select v-model="form.profession" disabled>
  705. <el-option
  706. v-for="item in professionOptions"
  707. :key="item.id"
  708. :label="item.name"
  709. :value="item.id"
  710. />
  711. </el-select>
  712. </el-form-item>
  713. </el-col>
  714. <el-col :span="8">
  715. <el-form-item label="工作单位 : " prop="work">
  716. <el-input v-model="form.work" disabled></el-input>
  717. </el-form-item>
  718. </el-col>
  719. <el-col :span="8">
  720. <el-form-item label="单位地址 : " prop="unit_address">
  721. <el-input v-model="form.unit_address" disabled></el-input>
  722. </el-form-item>
  723. </el-col>
  724. </div>
  725. <el-col :span="8">
  726. <el-form-item>
  727. <el-button
  728. type="text"
  729. @click="generic_info_fold = !generic_info_fold"
  730. >{{ generic_info_fold ? "更多资料" : "收起"
  731. }}<i class="el-icon--right" :class="generic_fold_icon"></i
  732. ></el-button>
  733. </el-form-item>
  734. </el-col>
  735. </el-row>
  736. </el-col>
  737. <el-col :span="4" align="center">
  738. <img
  739. width="146px"
  740. height="146px"
  741. v-if="form.avatar"
  742. :src="form.avatar"
  743. class="avatar"
  744. />
  745. <el-form-item prop="avatar">
  746. <el-input
  747. v-model="form.avatar"
  748. type="hidden"
  749. placeholder=""
  750. ></el-input>
  751. </el-form-item>
  752. </el-col>
  753. </el-row>
  754. <div class="dataTitle">治疗信息</div>
  755. <div style="display: flex">
  756. <div style="flex: 1 1 9%;">
  757. <el-row :gutter="24">
  758. <el-col :span="24">
  759. <el-form-item label="主诉 : " prop="patient_complains">
  760. <el-input
  761. type="textarea"
  762. :rows="3"
  763. v-model="form.patient_complains"
  764. resize="none"
  765. placeholder=""
  766. readonly
  767. ></el-input>
  768. </el-form-item>
  769. </el-col>
  770. </el-row>
  771. <el-row :gutter="24">
  772. <el-col :span="24">
  773. <el-form-item label="既往史 : " prop="past_history">
  774. <el-input
  775. type="textarea"
  776. :rows="3"
  777. v-model="form.past_history"
  778. resize="none"
  779. placeholder=""
  780. readonly
  781. ></el-input>
  782. </el-form-item>
  783. </el-col>
  784. </el-row>
  785. <el-row :gutter="24">
  786. <el-col :span="24">
  787. <el-form-item label="过敏史 : " prop="past_history">
  788. <el-input
  789. type="textarea"
  790. :rows="3"
  791. v-model="form.allergic_history"
  792. resize="none"
  793. placeholder=""
  794. ></el-input>
  795. </el-form-item>
  796. </el-col>
  797. </el-row>
  798. <el-row :gutter="24">
  799. <el-col :span="24">
  800. <el-form-item label="体格检查">
  801. <el-input
  802. v-model="form.temperature"
  803. style="width: 200px"
  804. disabled
  805. >
  806. <template slot="prepend">体温:</template>
  807. <template slot="append">℃</template>
  808. </el-input>
  809. <el-input v-model="form.pulse" style="width: 220px" disabled>
  810. <template slot="prepend">脉搏: </template>
  811. <template slot="append">次/分</template>
  812. </el-input>
  813. <el-input
  814. v-model="form.respiratory"
  815. style="width: 220px"
  816. disabled
  817. >
  818. <template slot="prepend">呼吸: </template>
  819. <template slot="append">次/分</template>
  820. </el-input>
  821. </el-form-item>
  822. </el-col>
  823. </el-row>
  824. <el-row :gutter="24">
  825. <el-col>
  826. <el-form-item>
  827. <el-input v-model="form.sbp" style="width: 240px" disabled>
  828. <template slot="prepend">收缩压:</template>
  829. <template slot="append">mmHg</template>
  830. </el-input>
  831. <el-input v-model="form.dbp" style="width: 240px" disabled>
  832. <template slot="prepend">舒张压:</template>
  833. <template slot="append">mmHg</template>
  834. </el-input>
  835. </el-form-item>
  836. </el-col>
  837. </el-row>
  838. </div>
  839. <div style="flex: 1;" class="now_his">
  840. <el-row :gutter="24" style="height:100%;">
  841. <el-col :span="24" style="height:100%;">
  842. <el-form-item label="现病史 : " prop="present_history" style="height:100%;">
  843. <el-input
  844. style="height:100%;"
  845. type="textarea"
  846. :rows="3"
  847. v-model="form.present_history"
  848. resize="none"
  849. placeholder=""
  850. readonly
  851. ></el-input>
  852. </el-form-item>
  853. </el-col>
  854. </el-row>
  855. </div>
  856. </div>
  857. <el-row :gutter="24">
  858. <el-col :span="24">
  859. <el-form-item label="" prop="remark">
  860. <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
  861. <el-input
  862. type="textarea"
  863. :rows="3"
  864. v-model="form.remark"
  865. resize="none"
  866. placeholder=""
  867. readonly
  868. ></el-input>
  869. </el-form-item>
  870. </el-col>
  871. <el-col :span="8">
  872. <el-form-item label="" prop="sch_remark">
  873. <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
  874. <el-input
  875. type="textarea"
  876. :rows="3"
  877. v-model="form.sch_remark"
  878. resize="none"
  879. placeholder=""
  880. readonly
  881. ></el-input>
  882. </el-form-item>
  883. </el-col>
  884. <!-- <el-col :span="24">
  885. <el-form-item label="慢性病 : " prop="diseases">
  886. <el-checkbox-group v-model="form.diseases">
  887. <el-checkbox
  888. v-for="item in checkDisease"
  889. :label="item.id"
  890. :key="item.id"
  891. :value="item.id"
  892. disabled
  893. >{{ item.name }}</el-checkbox
  894. >
  895. </el-checkbox-group>
  896. </el-form-item>
  897. </el-col> -->
  898. </el-row>
  899. <!-- <el-col :span="24">
  900. <el-form-item>
  901. <el-button type="text" @click="treat_info_fold = !treat_info_fold"
  902. >{{ treat_info_fold ? "更多治疗信息" : "收起"
  903. }}<i class="el-icon--right" :class="treat_fold_icon"></i
  904. ></el-button>
  905. </el-form-item>
  906. </el-col> -->
  907. <el-col :span="24">
  908. <el-form-item label="登记人员 : ">
  909. <span>{{ form.registrars }} </span>
  910. </el-form-item>
  911. </el-col>
  912. <el-col :span="6">
  913. <el-form-item label="医生 : ">
  914. <el-select v-model="form.doctor" disabled>
  915. <el-option
  916. v-for="item in adminUserOptions"
  917. :key="item.id"
  918. :label="item.name"
  919. :value="item.id"
  920. />
  921. </el-select>
  922. </el-form-item>
  923. </el-col>
  924. </el-form>
  925. <!-- 打印预览 -->
  926. <div style="display: none">
  927. <div id="print-info-box">
  928. <div class="print_main_content" >
  929. <div class="order_title" v-if="org_id!=10210">{{ orgname }} 血液透析门诊病历</div>
  930. <div class="order_title" v-if="org_id==10210">{{ orgname }} 血液透析住院病历</div>
  931. <div >
  932. <table >
  933. <!-- 用 thead 规定好宽度 -->
  934. <!-- <thead>
  935. <tr v-show="false">
  936. <td width="7%"></td>
  937. <td width="10%"></td>
  938. <td width="5%"></td>
  939. <td width="10%"></td>
  940. <td width="5%"></td>
  941. <td width="10%"></td>
  942. <td width="5%"></td>
  943. <td width="30%"></td>
  944. </tr>
  945. </thead> -->
  946. <tbody>
  947. <tr>
  948. <!-- -->
  949. <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
  950. 姓名
  951. <!-- <div class="td_proj_title">姓名</div> -->
  952. </td>
  953. <td style="padding: 3px 0px;font-size: 17px;">
  954. {{ patientPrint.name }}
  955. <!-- <div class="td_proj_content">{{ patientPrint.name }}</div> -->
  956. </td>
  957. <td style="padding: 3px 0px;font-size: 17px;">
  958. 性别
  959. <!-- <div class="td_proj_title">性别</div> -->
  960. </td>
  961. <td style="padding: 3px 0px;font-size: 17px;">
  962. {{ patientPrint.gender }}
  963. <!-- <div class="td_proj_content">{{ patientPrint.gender }}</div> -->
  964. </td>
  965. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  966. 年龄
  967. <!-- <div class="td_proj_title">年龄</div> -->
  968. </td>
  969. <td style="padding: 3px 0px;font-size: 17px;">
  970. {{ patientPrint.age }}岁
  971. <!-- <div class="td_proj_content">{{ patientPrint.age }}岁</div> -->
  972. </td>
  973. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  974. 籍贯
  975. <!-- <div class="td_proj_title">籍贯</div> -->
  976. </td>
  977. <td style="padding: 3px 0px;font-size: 17px;">
  978. {{ patientPrint.native_place }}
  979. <!-- <div class="td_proj_content td_align_left">
  980. {{ patientPrint.native_place }}
  981. </div> -->
  982. </td>
  983. </tr>
  984. <tr>
  985. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  986. 职业
  987. <!-- <div class="td_proj_title">职业</div> -->
  988. </td>
  989. <td style="padding: 3px 0px;font-size: 17px;">
  990. {{ patientPrint.profession }}
  991. <!-- <div class="td_proj_content">
  992. {{ patientPrint.profession }}
  993. </div> -->
  994. </td>
  995. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  996. 婚姻
  997. <!-- <div class="td_proj_title">婚姻</div> -->
  998. </td>
  999. <td style="padding: 3px 0px;font-size: 17px;">
  1000. {{ patientPrint.marital_status }}
  1001. <!-- <div class="td_proj_content">
  1002. {{ patientPrint.marital_status }}
  1003. </div> -->
  1004. </td>
  1005. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  1006. 透析号
  1007. <!-- <div class="td_proj_title">透析号</div> -->
  1008. </td>
  1009. <td style="padding: 3px 0px;font-size: 17px;">
  1010. {{ patientPrint.dialysis_no }}
  1011. <!-- <div class="td_proj_content">
  1012. {{ patientPrint.dialysis_no }}
  1013. </div> -->
  1014. </td>
  1015. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  1016. 身份证号
  1017. <!-- <div class="td_proj_title">身份证号</div> -->
  1018. </td>
  1019. <td style="padding: 3px 0px;font-size: 17px;">
  1020. {{ patientPrint.id_card_no }}
  1021. <!-- <div class="td_proj_content td_align_left">
  1022. {{ patientPrint.id_card_no }}
  1023. </div> -->
  1024. </td>
  1025. </tr>
  1026. <tr>
  1027. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  1028. 民族
  1029. <!-- <div class="td_proj_title">民族</div> valign="top" -->
  1030. </td>
  1031. <td style="padding: 3px 0px;font-size: 17px;">
  1032. {{ patientPrint.nation }}
  1033. <!-- <div class="td_proj_content">{{ patientPrint.nation }}</div> -->
  1034. </td>
  1035. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  1036. 电话
  1037. <!-- <div class="td_proj_title">电话</div> -->
  1038. </td>
  1039. <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
  1040. {{ patientPrint.phone }}
  1041. <!-- <div class="td_proj_content td_align_left">
  1042. {{ patientPrint.phone }}
  1043. </div> -->
  1044. </td>
  1045. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
  1046. 家属电话
  1047. <!-- <div class="td_proj_title">家属电话</div> -->
  1048. </td>
  1049. <td style="padding: 3px 0px;font-size: 17px;">
  1050. {{ patientPrint.home_telephone }}
  1051. <!-- <div class="td_proj_content td_align_left">
  1052. {{ patientPrint.home_telephone }}
  1053. </div> -->
  1054. </td>
  1055. </tr>
  1056. <tr>
  1057. <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">地址</td>
  1058. <td colspan="7" style="text-align: left; padding:0px 5px;font-size: 17px;">
  1059. <!-- class="td_proj_content td_align_left" -->
  1060. <!-- <div > -->
  1061. {{ patientPrint.home_address }}
  1062. <!-- </div> -->
  1063. </td>
  1064. </tr>
  1065. <tr>
  1066. <td style="padding: 3px 0px;font-size: 17px; font-weight: 500;">
  1067. 主诉
  1068. <!-- <div class="td_proj_title">主诉</div> -->
  1069. </td>
  1070. <!-- class="td_proj_content td_align_left" -->
  1071. <td colspan="7" style="text-align: left; padding:0px 5px ;font-size: 17px;">
  1072. {{ patientPrint.patient_complains }}
  1073. <!-- <div style="padding: 0px 0px;"
  1074. v-html="patientPrint.patient_complains"
  1075. ></div> -->
  1076. </td>
  1077. </tr>
  1078. <tr >
  1079. <td>
  1080. <div class="td_proj_title">现<br />病<br />史</div>
  1081. </td>
  1082. <td colspan="7">
  1083. <!-- <div class="td_proj_content td_align_left">{{patientPrint.present_history}}</div> -->
  1084. <div
  1085. class="td_proj_content td_align_left"
  1086. v-html="patientPrint.present_history"
  1087. ></div>
  1088. </td>
  1089. </tr>
  1090. <tr>
  1091. <td>
  1092. <div class="td_proj_title">既<br />往<br />史</div>
  1093. </td>
  1094. <td colspan="7">
  1095. <div class="td_proj_content td_align_left">
  1096. {{ patientPrint.past_history }}
  1097. </div>
  1098. <!-- v-html="patientPrint.past_history" -->
  1099. </td>
  1100. </tr>
  1101. <tr>
  1102. <td>
  1103. <div class="td_proj_title">过敏史</div>
  1104. <!-- <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
  1105. <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div> -->
  1106. </td>
  1107. <td colspan="7">
  1108. <div class="td_proj_content td_align_left">
  1109. {{ patientPrint.allergic_history }}
  1110. </div>
  1111. </td>
  1112. </tr>
  1113. <tr>
  1114. <td colspan="8"><div class="td_proj_title">体格检查</div></td>
  1115. </tr>
  1116. <tr>
  1117. <td colspan="8">
  1118. <div class="td_proj_title">
  1119. T
  1120. {{
  1121. patientPrint.temperature
  1122. }}℃&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; P
  1123. {{
  1124. patientPrint.pulse
  1125. }}次/分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; R
  1126. {{
  1127. patientPrint.respiratory
  1128. }}次/分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BP
  1129. {{ patientPrint.sbp }}/{{ patientPrint.dbp }} mmHg
  1130. </div>
  1131. </td>
  1132. </tr>
  1133. <tr>
  1134. <td colspan="8">
  1135. <div
  1136. class="td_proj_content td_align_left"
  1137. v-html="patientPrint.remark"
  1138. ></div>
  1139. </td>
  1140. </tr>
  1141. <tr>
  1142. <td>
  1143. <div class="td_proj_title">诊<br />断</div>
  1144. </td>
  1145. <td colspan="7">
  1146. <div
  1147. class="td_proj_content td_align_left"
  1148. v-html="patientPrint.diagnose"
  1149. ></div>
  1150. </td>
  1151. </tr>
  1152. <tr>
  1153. <td>
  1154. <div class="td_proj_title">诊<br />疗<br />计<br />划</div>
  1155. </td>
  1156. <td colspan="7">
  1157. <div
  1158. class="td_proj_content td_align_left"
  1159. v-html="patientPrint.treatment_plan"
  1160. ></div>
  1161. </td>
  1162. </tr>
  1163. </tbody>
  1164. </table>
  1165. <div class="print_footnote_panel">
  1166. <div class="proj">
  1167. <span class="proj_title">日期:</span>
  1168. <!-- {{ getTime(patientPrint.created_time) }} -->
  1169. <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394">{{
  1170. getTime(patientPrint.created_time)
  1171. }}</span>
  1172. <span v-else>{{ printDate }}</span>
  1173. </div>
  1174. <div class="proj">
  1175. <span class="proj_title">医生签名:
  1176. <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
  1177. <span v-else>
  1178. <img style="height:30px;margin-top:20px" :src="getDcotorName(patientPrint.doctor)" alt="" srcset="">
  1179. </span>
  1180. </span>
  1181. </div>
  1182. </div>
  1183. </div>
  1184. </div>
  1185. </div>
  1186. </div>
  1187. <div hidden="hidden">
  1188. <div id="print-card-info">
  1189. <div
  1190. class="order_title"
  1191. align="center"
  1192. style="margin-bottom: 20px; font-size: 35px"
  1193. v-if="org_id != 10223"
  1194. >
  1195. 签到卡
  1196. </div>
  1197. <div
  1198. class="order_title"
  1199. align="center"
  1200. style="margin-bottom: 20px; font-size: 25px"
  1201. v-if="org_id == 10223"
  1202. >
  1203. 三优血液透析中心
  1204. </div>
  1205. <div align="center" style="margin-bottom: 4px; font-size: 25px">
  1206. 姓名:<span>&nbsp;&nbsp;{{ patientPrint.name }}</span
  1207. ><br />
  1208. </div>
  1209. <div align="center" style="margin-bottom: 20px; font-size: 25px">
  1210. 透析号:<span>&nbsp;&nbsp;{{ patientPrint.dialysis_no }}</span>
  1211. </div>
  1212. <div>
  1213. <div id="qrcode" align="center"></div>
  1214. </div>
  1215. </div>
  1216. </div>
  1217. </div>
  1218. </template>
  1219. <script>
  1220. import { getDataConfig } from "@/utils/data";
  1221. import { getToken } from "@/api/qiniu";
  1222. // import print from "print-js";
  1223. import {
  1224. getFileExtension,
  1225. isCardNo,
  1226. jsGetAge,
  1227. isPositiveInteger,
  1228. dialysisAge,
  1229. uParseTime,
  1230. } from "@/utils/tools";
  1231. import {
  1232. generateDialysisNo,
  1233. createPatient,
  1234. editPatient,
  1235. fetchPatient,
  1236. } from "@/api/patient";
  1237. import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from "@/api/doctor";
  1238. import { getZones } from "@/api/device/device";
  1239. import print from "print-js";
  1240. import QRCode from "qrcodejs2";
  1241. import { Base64 } from "js-base64";
  1242. import { parse } from "path";
  1243. const defaultForm = {
  1244. avatar: "",
  1245. patientType: "",
  1246. dialysisNo: "",
  1247. admissionNumber: "",
  1248. source: "",
  1249. lapseto: "",
  1250. partition: "",
  1251. bed: "",
  1252. name: "",
  1253. gender: "",
  1254. nation: "",
  1255. native_place: "",
  1256. maritalStatus: "",
  1257. idCardNo: "",
  1258. birth: "",
  1259. age: "",
  1260. reimbursementWayID: "",
  1261. healthCareNo: "",
  1262. healthCareDueDate: "",
  1263. height: "",
  1264. blood: "",
  1265. rh: "",
  1266. healthCareDueAlertDate: "",
  1267. education: "",
  1268. profession: "",
  1269. phone: "",
  1270. homeTelephone: "",
  1271. homeAddress: "",
  1272. work: "",
  1273. receivingDate: "",
  1274. firstDialysisDate: "",
  1275. dialysisAge: "",
  1276. induction: "",
  1277. initial: "",
  1278. dialysisTotal: "",
  1279. contagions: [],
  1280. doctor: "",
  1281. nurse: "",
  1282. assessment: "",
  1283. diseases: [],
  1284. diagnose: "",
  1285. registrars: "",
  1286. patient_complains: "",
  1287. present_history: "",
  1288. past_history: "",
  1289. temperature: "",
  1290. pulse: "",
  1291. respiratory: "",
  1292. sbp: "",
  1293. dbp: "",
  1294. record_date: "",
  1295. response_result: "",
  1296. is_infectious: "",
  1297. formItem: [],
  1298. tell_phone: "",
  1299. first_treatment_date: "",
  1300. dialysis_age: "",
  1301. expense_kind: "",
  1302. contact_name: "",
  1303. sch_remark: "",
  1304. org_id: 0,
  1305. troble_shoot: "",
  1306. zb_patient_id: "",
  1307. treatment_plan: "",
  1308. doctor:"",
  1309. record_number:"",
  1310. patient_source:"",
  1311. patient_start_time:"",
  1312. patient_end_time:"",
  1313. patient_address:"",
  1314. infectious_remark:"",
  1315. allergic_history:"",
  1316. };
  1317. export default {
  1318. name: "patientDetail",
  1319. components: {},
  1320. data() {
  1321. return {
  1322. expenseOptions: [
  1323. { id: 1, name: "基本医保" },
  1324. { id: 2, name: "新农合" },
  1325. { id: 3, name: "自费医疗" },
  1326. { id: 4, name: "公费医疗" },
  1327. { id: 5, name: "商业保险" },
  1328. { id: 6, name: "军队医疗" },
  1329. { id: 7, name: "其他" },
  1330. ],
  1331. patientSourceList:[
  1332. {value:1,label:"门诊"},
  1333. {value:2,label:"住院"},
  1334. ],
  1335. generic_info_fold: true,
  1336. treat_info_fold: true,
  1337. dialogFormVisible: false,
  1338. orgname: "",
  1339. adminusername: "",
  1340. form: Object.assign({}, defaultForm),
  1341. formSubmit: true,
  1342. submitMethod: "",
  1343. uploadData: { token: "", key: "" },
  1344. dialogImageUrl: "",
  1345. qiniuDomain: "https://images.shengws.com/",
  1346. dialogVisible: false,
  1347. typeOptions: null,
  1348. styleOptions: null,
  1349. sourceOptions: [
  1350. { value: 1, label: "门诊" },
  1351. { value: 2, label: "住院" },
  1352. { value: 3, label: "门特" },
  1353. ],
  1354. lapsetoOptions: [
  1355. { value: 1, label: "留治" },
  1356. { value: 2, label: "转出" },
  1357. ],
  1358. partitionOptions: [],
  1359. sexOptions: [
  1360. { value: 1, label: "男" },
  1361. { value: 2, label: "女" },
  1362. ],
  1363. isHospitalFirstDialysisOptions: [
  1364. { value: 1, label: "是" },
  1365. { value: 2, label: "否" },
  1366. ],
  1367. predialysisConditionOptions: [
  1368. { value: 1, label: "腹膜透析" },
  1369. { value: 2, label: "肾移植" },
  1370. ],
  1371. maritalOptions: null,
  1372. wayOptions: null,
  1373. educationOptions: null,
  1374. professionOptions: null,
  1375. inductionOptions: null,
  1376. doctorOptions: null,
  1377. nurseOptions: null,
  1378. adminUserOptions: [],
  1379. infections: [],
  1380. rhOptions: null,
  1381. checkDisease: null,
  1382. contagionList: null,
  1383. loading: null,
  1384. patientID: 0,
  1385. patientPrint: {},
  1386. print_time: "",
  1387. printDate: "",
  1388. rules: {
  1389. contagions: [{ type: "array", required: false, trigger: "change" }],
  1390. avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
  1391. patientType: [
  1392. { required: true, message: "请选择患者类型", trigger: "blur" },
  1393. ],
  1394. dialysisNo: [
  1395. { required: true, message: "请填写透析号", trigger: "blur" },
  1396. ],
  1397. admissionNumber: [
  1398. { required: true, message: "请填写住院(门诊)号", trigger: "blur" },
  1399. ],
  1400. source: [
  1401. { required: true, message: "请选择患者来源", trigger: "blur" },
  1402. ],
  1403. lapseto: [
  1404. { required: true, message: "请选择治疗状态", trigger: "blur" },
  1405. ],
  1406. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  1407. gender: [{ required: true, message: "请选择性别", trigger: "blur" }],
  1408. idCardNo: [
  1409. { required: true, message: "请填写身份证号", trigger: "blur" },
  1410. ],
  1411. birth: [{ required: true, message: "请填写生日", trigger: "blur" }],
  1412. },
  1413. shootList: [
  1414. { id: 1, name: "是" },
  1415. { id: 2, name: "否" },
  1416. ],
  1417. operators:[],
  1418. liuAddresslist:[],
  1419. };
  1420. },
  1421. computed: {
  1422. generic_fold_icon: function () {
  1423. return this.generic_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1424. },
  1425. treat_fold_icon: function () {
  1426. return this.treat_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1427. },
  1428. },
  1429. created() {
  1430. this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
  1431. console.log("liuAddresslist",this.liuAddresslist)
  1432. this.org_id = this.$store.getters.xt_user.org.id;
  1433. this.form.doctor = this.$store.getters.xt_user.user.id
  1434. console.log("owowow",this.$store.getters.xt_user.user.id)
  1435. this.styleOptions = this.$store.getters.patient_types;
  1436. // this.partitionOptions = this.$store.getters.partitions;
  1437. this.maritalOptions = getDataConfig("patient", "marital_options");
  1438. this.wayOptions = getDataConfig("patient", "reimbursement_ways");
  1439. this.typeOptions = this.$store.getters.blood_types;
  1440. this.rhOptions = this.$store.getters.rh;
  1441. this.educationOptions = getDataConfig("patient", "education_types");
  1442. this.professionOptions = getDataConfig("patient", "profession_options");
  1443. this.inductionOptions = this.$store.getters.induction_options;
  1444. this.contagionList = this.$store.getters.contagions;
  1445. this.checkDisease = this.$store.getters.disease;
  1446. var xtuser = this.$store.getters.xt_user;
  1447. this.orgname = xtuser.org.org_name;
  1448. this.adminusername = xtuser.user.user_name;
  1449. this.fetchAllAdminUsers();
  1450. const id = this.$route.params && this.$route.params.id;
  1451. this.patientID = parseInt(id);
  1452. if (isNaN(this.patientID) || this.patientID <= 0) {
  1453. console.log("patient detail not had id");
  1454. this.$notify.error({
  1455. title: "错误",
  1456. message: "无效的id",
  1457. });
  1458. this.$router.push("/patients/patients");
  1459. }
  1460. this.fetchPatient(id);
  1461. this.getZones();
  1462. var ptime = Math.round(new Date().getTime() / 1000);
  1463. // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
  1464. var data = new Date();
  1465. var month =
  1466. data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
  1467. var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
  1468. this.printDate = data.getFullYear() + "-" + month + "-" + date;
  1469. },
  1470. methods: {
  1471. getTime(val) {
  1472. return uParseTime(val, "{y}年{m}月{d}日");
  1473. },
  1474. printThisInfo() {
  1475. var ptime = Math.round(new Date().getTime() / 1000);
  1476. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  1477. const style =
  1478. "@page {margin-top:10px;}@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .print_main_content table { width: 100%; border-collapse: collapse; padding: 2px; } .print_main_content table tbody tr{page-break-inside:avoid;} .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 18px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 18px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 17px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} }";
  1479. setTimeout(() => {
  1480. printJS({
  1481. printable: "print-info-box",
  1482. type: "html",
  1483. style: style,
  1484. scanStyles: false,
  1485. });
  1486. }, 1);
  1487. },
  1488. getZones() {
  1489. getZones().then((response) => {
  1490. if (response.data.state === 1) {
  1491. this.partitionOptions = response.data.data.zones;
  1492. }
  1493. });
  1494. },
  1495. fetchPatient(id) {
  1496. fetchPatient(id)
  1497. .then((response) => {
  1498. console.log(response.data.data);
  1499. if (response.data.state === 1) {
  1500. this.$emit("tran-patient-info", response.data.data.patient);
  1501. var patietInfo = response.data.data.patient;
  1502. console.log("触发了吗无222222", patietInfo);
  1503. this.form.avatar = patietInfo.avatar;
  1504. this.form.name = patietInfo.name;
  1505. this.form.alias = patietInfo.alias;
  1506. this.form.lapseto = patietInfo.lapseto;
  1507. this.form.idCardNo = patietInfo.id_card_no;
  1508. this.form.dialysisNo = patietInfo.dialysis_no;
  1509. this.form.gender = patietInfo.gender;
  1510. this.form.is_infectious = patietInfo.is_infectious;
  1511. this.form.troble_shoot = patietInfo.troble_shoot;
  1512. this.form.zb_patient_id = patietInfo.zb_patient_id;
  1513. // this.form.record_date = patietInfo.is_infectious
  1514. this.form.response_result = patietInfo.response_result;
  1515. this.form.remind_cycle = patietInfo.remind_cycle;
  1516. this.form.treatment_plan = patietInfo.treatment_plan;
  1517. this.form.doctor = patietInfo.doctor
  1518. if(this.form.doctor == 0){
  1519. this.form.doctor = ""
  1520. }
  1521. // if (patietInfo.is_infectious == 1) {
  1522. // this.form.remind_cycle = 0;
  1523. // }
  1524. // console.log("222222", this.form.remind_cycle);
  1525. this.form.user_sys_before_count = patietInfo.user_sys_before_count;
  1526. this.infections = response.data.data.infections;
  1527. this.form.formItem = this.infections;
  1528. if (this.infections != null) {
  1529. if (this.infections.length > 0) {
  1530. this.form.record_date = uParseTime(
  1531. this.infections[0].inspect_date,
  1532. "{y}-{m}-{d}"
  1533. );
  1534. const select_options = ["阴性", "阳性", "弱阳性"];
  1535. for (let i = 0; i < this.infections.length; i++) {
  1536. this.infections[i]["select_options"] = select_options;
  1537. this.infections[i]["value"] =
  1538. this.infections[i].inspect_value;
  1539. }
  1540. }
  1541. }
  1542. if (patietInfo.gender === 1 || patietInfo.gender === 2) {
  1543. this.form.gender = patietInfo.gender;
  1544. }
  1545. this.form.nation = patietInfo.nation;
  1546. this.form.native_place = patietInfo.native_place;
  1547. this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
  1548. this.form.firstDialysisDate = uParseTime(
  1549. patietInfo.first_dialysis_date,
  1550. "{y}-{m}-{d}"
  1551. );
  1552. this.form.height = patietInfo.height + "";
  1553. // this.form.age = jsGetAge(this.form.birth, "-");
  1554. if (patietInfo.marital_status > 0) {
  1555. this.form.maritalStatus = patietInfo.marital_status;
  1556. }
  1557. this.form.children = patietInfo.children;
  1558. this.form.admissionNumber = patietInfo.admission_number;
  1559. if (patietInfo.reimbursement_way_id > 0) {
  1560. this.form.reimbursementWayID = patietInfo.reimbursement_way_id;
  1561. }
  1562. this.form.healthCareNo = patietInfo.health_care_no;
  1563. this.form.phone = patietInfo.phone;
  1564. this.form.homeTelephone = patietInfo.home_telephone;
  1565. this.form.relative_phone = patietInfo.relative_phone;
  1566. this.form.relative_relations = patietInfo.relative_relations;
  1567. this.form.homeAddress = patietInfo.home_address;
  1568. this.form.work = patietInfo.work_unit;
  1569. this.form.unit_address = patietInfo.unit_address;
  1570. if (patietInfo.age == 0) {
  1571. this.form.age = jsGetAge(this.form.birth, "-");
  1572. } else {
  1573. this.form.age = patietInfo.age;
  1574. }
  1575. if (patietInfo.profession > 0) {
  1576. this.form.profession = patietInfo.profession;
  1577. }
  1578. if (patietInfo.education_level > 0) {
  1579. this.form.education = patietInfo.education_level;
  1580. }
  1581. if (patietInfo.source === 1 || patietInfo.source === 2 || patietInfo.source === 3) {
  1582. this.form.source = patietInfo.source;
  1583. }
  1584. if (patietInfo.lapseto === 1 || patietInfo.lapseto === 2) {
  1585. this.form.lapseto = patietInfo.lapseto;
  1586. }
  1587. if (
  1588. patietInfo.is_hospital_first_dialysis === 1 ||
  1589. patietInfo.is_hospital_first_dialysis === 2
  1590. ) {
  1591. this.form.is_hospital_first_dialysis =
  1592. patietInfo.is_hospital_first_dialysis;
  1593. }
  1594. if (patietInfo.first_dialysis_date !== 0) {
  1595. this.form.firstDialysisDate = uParseTime(
  1596. patietInfo.first_dialysis_date,
  1597. "{y}-{m}-{d}"
  1598. );
  1599. }
  1600. this.form.first_dialysis_hospital =
  1601. patietInfo.first_dialysis_hospital;
  1602. if (patietInfo.predialysis_condition.length > 0) {
  1603. this.form.predialysis_condition =
  1604. patietInfo.predialysis_condition.split(",");
  1605. }
  1606. this.form.pre_hospital_dialysis_frequency =
  1607. patietInfo.pre_hospital_dialysis_frequency;
  1608. this.form.pre_hospital_dialysis_times =
  1609. patietInfo.pre_hospital_dialysis_times;
  1610. if (patietInfo.hospital_first_dialysis_date !== 0) {
  1611. this.form.hospital_first_dialysis_date = uParseTime(
  1612. patietInfo.hospital_first_dialysis_date,
  1613. "{y}-{m}-{d}"
  1614. );
  1615. }
  1616. this.form.contagions = response.data.data.contagions;
  1617. this.form.diseases = response.data.data.diseases;
  1618. this.form.remark = patietInfo.remark;
  1619. this.form.sch_remark = patietInfo.sch_remark;
  1620. this.form.diagnose = patietInfo.diagnose;
  1621. this.form.patient_complains = patietInfo.patient_complains;
  1622. this.form.present_history = patietInfo.present_history;
  1623. this.form.past_history = patietInfo.past_history;
  1624. this.form.temperature = patietInfo.temperature;
  1625. this.form.pulse = patietInfo.pulse;
  1626. this.form.respiratory = patietInfo.respiratory;
  1627. this.form.sbp = patietInfo.sbp;
  1628. this.form.dbp = patietInfo.dbp;
  1629. this.form.contact_name = patietInfo.contact_name;
  1630. this.form.tell_phone = patietInfo.tell_phone;
  1631. this.form.dialysis_age = patietInfo.dialysis_age;
  1632. this.form.record_number = patietInfo.record_number
  1633. if (patietInfo.expense_kind == 0) {
  1634. this.form.expense_kind = "";
  1635. } else {
  1636. this.form.expense_kind = patietInfo.expense_kind;
  1637. }
  1638. this.form.first_treatment_date = uParseTime(
  1639. patietInfo.first_treatment_date,
  1640. "{y}-{m}-{d}"
  1641. );
  1642. this.form.patient_source = patietInfo.patient_source
  1643. if (patietInfo.patient_start_time != 0) {
  1644. this.form.patient_start_time = uParseTime(
  1645. patietInfo.patient_start_time,
  1646. "{y}-{m}-{d}"
  1647. );
  1648. }
  1649. if (patietInfo.patient_end_time != 0) {
  1650. this.form.patient_end_time = uParseTime(
  1651. patietInfo.patient_end_time,
  1652. "{y}-{m}-{d}"
  1653. );
  1654. }
  1655. this.form.patient_address = patietInfo.patient_address
  1656. this.form.allergic_history = patietInfo.allergic_history
  1657. this.form.infectious_remark = patietInfo.infectious_remark
  1658. // this.form.initial = patietInfo.initial_dialysis + "";
  1659. // this.form.dialysisTotal = patietInfo.total_dialysis + "";
  1660. // this.form.assessment = patietInfo.evaluate;
  1661. // if (patietInfo.patient_type > 0) {
  1662. // this.form.patientType = patietInfo.patient_type;
  1663. // }
  1664. // if (patietInfo.partition_id > 0) {
  1665. // this.form.partition = patietInfo.partition_id;
  1666. // }
  1667. // if (patietInfo.bed_id > 0) {
  1668. // this.form.bed = patietInfo.bed_id;
  1669. // }
  1670. // this.form.healthCareDueDate = uParseTime(
  1671. // patietInfo.health_care_due_date,
  1672. // "{y}-{m}-{d}"
  1673. // );
  1674. // if (patietInfo.blood_type > 0) {
  1675. // this.form.blood = patietInfo.blood_type;
  1676. // }
  1677. // if (patietInfo.rh > 0) {
  1678. // this.form.rh = patietInfo.rh;
  1679. // }
  1680. // this.form.healthCareDueAlertDate = uParseTime(
  1681. // patietInfo.health_care_due_alert_date,
  1682. // "{y}-{m}-{d}"
  1683. // );
  1684. // this.form.receivingDate = uParseTime(
  1685. // patietInfo.receiving_date,
  1686. // "{y}-{m}-{d}"
  1687. // );
  1688. // this.form.dialysisAge = dialysisAge(
  1689. // this.form.firstDialysisDate,
  1690. // "-"
  1691. // );
  1692. // if (patietInfo.induction_period > 0) {
  1693. // this.form.induction = patietInfo.induction_period;
  1694. // }
  1695. // if (patietInfo.attending_doctor_id > 0) {
  1696. // this.form.doctor = patietInfo.attending_doctor_id;
  1697. // }
  1698. if (patietInfo.head_nurse_id > 0) {
  1699. this.form.nurse = patietInfo.head_nurse_id;
  1700. }
  1701. // if (patietInfo.registrars_id > 0) {
  1702. // this.form.registrars = patietInfo.registrars_id;
  1703. // }
  1704. var contagionsArr = response.data.data.contagions;
  1705. var diseasesArr = response.data.data.diseases;
  1706. // console.log('123456',response.data.data);
  1707. this.patientPrint = patietInfo;
  1708. var sourceLen = this.sourceOptions.length;
  1709. for (let index = 0; index < sourceLen; index++) {
  1710. if (this.sourceOptions[index].value === patietInfo.source) {
  1711. this.patientPrint.source = this.sourceOptions[index].label;
  1712. break;
  1713. }
  1714. }
  1715. var styleLen = this.styleOptions.length;
  1716. for (let index = 0; index < styleLen; index++) {
  1717. if (this.styleOptions[index].id === patietInfo.patient_type) {
  1718. this.patientPrint.patient_type = this.styleOptions[index].name;
  1719. break;
  1720. }
  1721. }
  1722. var partitionLen = this.partitionOptions.length;
  1723. for (let index = 0; index < partitionLen; index++) {
  1724. if (this.partitionOptions[index].id === patietInfo.partition_id) {
  1725. this.patientPrint.partition_id =
  1726. this.partitionOptions[index].name;
  1727. break;
  1728. }
  1729. }
  1730. this.patientPrint.bed_id =
  1731. patietInfo.bed_id > 0 ? patietInfo.bed_id : "";
  1732. if (patietInfo.gender === 1) {
  1733. this.patientPrint.gender = "男";
  1734. } else if (patietInfo.gender === 2) {
  1735. this.patientPrint.gender = "女";
  1736. } else {
  1737. this.patientPrint.gender = "";
  1738. }
  1739. var maritalLen = this.maritalOptions.length;
  1740. console.log(maritalLen);
  1741. for (let index = 0; index < maritalLen; index++) {
  1742. if (
  1743. this.maritalOptions[index].id ==
  1744. response.data.data.patient.marital_status
  1745. ) {
  1746. this.patientPrint.marital_status =
  1747. this.maritalOptions[index].name;
  1748. }
  1749. }
  1750. this.patientPrint.birthday = uParseTime(
  1751. patietInfo.birthday,
  1752. "{y}-{m}-{d}"
  1753. );
  1754. this.patientPrint.age = jsGetAge(this.patientPrint.birthday, "-");
  1755. this.patientPrint.patient_complains =
  1756. patietInfo.patient_complains.replace(/\n/g, "<br/>");
  1757. // console.log('qwerewqrt',patietInfo.present_history);
  1758. this.patientPrint.present_history =
  1759. patietInfo.present_history.replace(/\n/g, "<br/>");
  1760. console.log('qwerewqrt',patietInfo.past_history);
  1761. this.patientPrint.past_history = patietInfo.past_history.replace(
  1762. /\n/g,
  1763. "<br/>"
  1764. );
  1765. this.patientPrint.remark = patietInfo.remark.replace(
  1766. /\n/g,
  1767. "<br/>"
  1768. );
  1769. this.patientPrint.sch_remark = patietInfo.sch_remark.replace(
  1770. /\n/g,
  1771. "<br/>"
  1772. );
  1773. this.patientPrint.diagnose = patietInfo.diagnose.replace(
  1774. /\n/g,
  1775. "<br/>"
  1776. );
  1777. if (typeof patietInfo.temperature === "number") {
  1778. this.patientPrint.temperature = patietInfo.temperature.toFixed(1);
  1779. }
  1780. if (patietInfo.reimbursement_way_id > 0) {
  1781. var wayLen = this.wayOptions.length;
  1782. for (let index = 0; index < wayLen; index++) {
  1783. if (
  1784. this.wayOptions[index].id === patietInfo.reimbursement_way_id
  1785. ) {
  1786. this.patientPrint.reimbursement_way_id =
  1787. this.wayOptions[index].name;
  1788. break;
  1789. }
  1790. }
  1791. } else {
  1792. this.patientPrint.reimbursement_way_id = "";
  1793. }
  1794. if (patietInfo.health_care_due_date !== 0) {
  1795. this.patientPrint.health_care_due_date = uParseTime(
  1796. patietInfo.health_care_due_date,
  1797. "{y}-{m}-{d}"
  1798. );
  1799. } else {
  1800. this.patientPrint.health_care_due_date = "";
  1801. }
  1802. if (patietInfo.blood_type > 0) {
  1803. var typeLen = this.typeOptions.length;
  1804. for (let index = 0; index < typeLen; index++) {
  1805. if (this.typeOptions[index].id === patietInfo.blood_type) {
  1806. this.patientPrint.blood_type = this.typeOptions[index].name;
  1807. break;
  1808. }
  1809. }
  1810. } else {
  1811. this.patientPrint.blood_type = "";
  1812. }
  1813. if (patietInfo.rh > 0) {
  1814. var rhLen = this.rhOptions.length;
  1815. for (let index = 0; index < rhLen; index++) {
  1816. if (this.rhOptions[index].id === patietInfo.rh) {
  1817. this.patientPrint.rh = this.rhOptions[index].name;
  1818. break;
  1819. }
  1820. }
  1821. } else {
  1822. this.patientPrint.rh = "";
  1823. }
  1824. if (patietInfo.health_care_due_alert_date !== 0) {
  1825. this.patientPrint.health_care_due_alert_date = uParseTime(
  1826. patietInfo.health_care_due_alert_date,
  1827. "{y}-{m}-{d}"
  1828. );
  1829. } else {
  1830. this.patientPrint.health_care_due_alert_date = "";
  1831. }
  1832. if (patietInfo.education_level > 0) {
  1833. var eLen = this.educationOptions.length;
  1834. for (let index = 0; index < eLen; index++) {
  1835. if (
  1836. this.educationOptions[index].id === patietInfo.education_level
  1837. ) {
  1838. this.patientPrint.education_level =
  1839. this.educationOptions[index].name;
  1840. break;
  1841. }
  1842. }
  1843. } else {
  1844. this.patientPrint.education_level = "";
  1845. }
  1846. if (patietInfo.profession > 0) {
  1847. var eLen = this.professionOptions.length;
  1848. for (let index = 0; index < eLen; index++) {
  1849. if (
  1850. this.professionOptions[index].id === patietInfo.profession
  1851. ) {
  1852. this.patientPrint.profession =
  1853. this.professionOptions[index].name;
  1854. break;
  1855. }
  1856. }
  1857. } else {
  1858. this.patientPrint.profession = "";
  1859. }
  1860. if (patietInfo.receiving_date !== 0) {
  1861. this.patientPrint.receiving_date = uParseTime(
  1862. patietInfo.receiving_date,
  1863. "{y}-{m}-{d}"
  1864. );
  1865. } else {
  1866. this.patientPrint.receiving_date = "";
  1867. }
  1868. if (patietInfo.first_dialysis_date !== 0) {
  1869. this.patientPrint.first_dialysis_date = uParseTime(
  1870. patietInfo.first_dialysis_date,
  1871. "{y}-{m}-{d}"
  1872. );
  1873. this.patientPrint.dialysis_age = dialysisAge(
  1874. this.patientPrint.first_dialysis_date
  1875. );
  1876. } else {
  1877. this.patientPrint.first_dialysis_date = "";
  1878. this.patientPrint.dialysis_age = "";
  1879. }
  1880. if (patietInfo.induction_period > 0) {
  1881. var eLen = this.inductionOptions.length;
  1882. for (let index = 0; index < eLen; index++) {
  1883. if (
  1884. this.inductionOptions[index].id ===
  1885. patietInfo.induction_period
  1886. ) {
  1887. this.patientPrint.induction_period =
  1888. this.inductionOptions[index].name;
  1889. break;
  1890. }
  1891. }
  1892. } else {
  1893. this.patientPrint.induction_period = "";
  1894. }
  1895. if (patietInfo.attending_doctor_id > 0) {
  1896. var eLen = this.adminUserOptions.length;
  1897. for (let index = 0; index < eLen; index++) {
  1898. if (
  1899. this.adminUserOptions[index].id ===
  1900. patietInfo.attending_doctor_id
  1901. ) {
  1902. this.patientPrint.attending_doctor_id =
  1903. this.adminUserOptions[index].name;
  1904. break;
  1905. }
  1906. }
  1907. } else {
  1908. this.patientPrint.attending_doctor_id = "";
  1909. }
  1910. if (patietInfo.head_nurse_id > 0) {
  1911. var eLen = this.adminUserOptions.length;
  1912. for (let index = 0; index < eLen; index++) {
  1913. if (
  1914. this.adminUserOptions[index].id === patietInfo.head_nurse_id
  1915. ) {
  1916. this.patientPrint.head_nurse_id =
  1917. this.adminUserOptions[index].name;
  1918. break;
  1919. }
  1920. }
  1921. } else {
  1922. this.patientPrint.head_nurse_id = "";
  1923. }
  1924. if (contagionsArr.length > 0) {
  1925. var contagionsIdArr = {};
  1926. var alen = contagionsArr.length;
  1927. for (let index = 0; index < alen; index++) {
  1928. contagionsIdArr[contagionsArr[index]] = 1;
  1929. }
  1930. var printContagions = [];
  1931. var clen = this.contagionList.length;
  1932. for (let index = 0; index < clen; index++) {
  1933. if (this.contagionList[index].id in contagionsIdArr) {
  1934. printContagions.push(this.contagionList[index].name);
  1935. }
  1936. }
  1937. this.patientPrint.contagions = printContagions.join("、");
  1938. } else {
  1939. this.patientPrint.contagions = "阴性";
  1940. }
  1941. if (diseasesArr.length > 0) {
  1942. var diseasesIdArr = {};
  1943. var alen = diseasesArr.length;
  1944. for (let index = 0; index < alen; index++) {
  1945. diseasesIdArr[diseasesArr[index]] = 1;
  1946. }
  1947. var printDisease = [];
  1948. var clen = this.checkDisease.length;
  1949. for (let index = 0; index < clen; index++) {
  1950. if (this.checkDisease[index].id in diseasesIdArr) {
  1951. printDisease.push(this.checkDisease[index].name);
  1952. }
  1953. }
  1954. this.patientPrint.diseases = printDisease.join("、");
  1955. } else {
  1956. this.patientPrint.diseases = "";
  1957. }
  1958. if (patietInfo.registrars_id > 0) {
  1959. var eLen = this.adminUserOptions.length;
  1960. for (let index = 0; index < eLen; index++) {
  1961. if (
  1962. this.adminUserOptions[index].id === patietInfo.registrars_id
  1963. ) {
  1964. this.patientPrint.registrars =
  1965. this.adminUserOptions[index].name;
  1966. this.form.registrars = this.adminUserOptions[index].name;
  1967. break;
  1968. }
  1969. }
  1970. } else {
  1971. this.patientPrint.registrars = "";
  1972. }
  1973. if (patietInfo.hospital_first_dialysis_date !== 0) {
  1974. this.patientPrint.hospital_first_dialysis_date = uParseTime(
  1975. patietInfo.hospital_first_dialysis_date,
  1976. "{y}-{m}-{d}"
  1977. );
  1978. } else {
  1979. this.patientPrint.hospital_first_dialysis_date = "";
  1980. }
  1981. this.checkIdCardNo();
  1982. } else {
  1983. console.log("patient get err state");
  1984. this.$notify.error({
  1985. title: "错误",
  1986. message: "网络异常",
  1987. });
  1988. this.$router.push("/patients/patients");
  1989. }
  1990. // this.postForm = response.data
  1991. // // Just for test
  1992. // this.postForm.title += ` Article Id:${this.postForm.id}`
  1993. // this.postForm.content_short += ` Article Id:${this.postForm.id}`
  1994. })
  1995. .catch((err) => {
  1996. console.log("patient get err", err);
  1997. this.$notify.error({
  1998. title: "错误",
  1999. message: "网络异常",
  2000. });
  2001. this.$router.push("/patients/patients");
  2002. });
  2003. },
  2004. fetchAllDoctorAndNurse() {
  2005. fetchAllDoctorAndNurse().then((response) => {
  2006. if (response.data.state === 1) {
  2007. this.doctorOptions = response.data.data.doctors;
  2008. this.nurseOptions = response.data.data.nursers;
  2009. }
  2010. });
  2011. },
  2012. fetchAllAdminUsers() {
  2013. fetchAllAdminUsers().then((response) => {
  2014. if (response.data.state === 1) {
  2015. this.adminUserOptions = response.data.data.users;
  2016. this.operators = response.data.data.operators
  2017. console.log("医生签名",this.operators)
  2018. }
  2019. });
  2020. },
  2021. getDcotorName(admin_user_id){
  2022. var url = ""
  2023. if(this.operators!=null && this.operators.length > 0){
  2024. for(let i=0;i<this.operators.length;i++){
  2025. if(admin_user_id == this.operators[i].admin_user_id){
  2026. url = this.operators[i].url
  2027. }
  2028. }
  2029. }
  2030. return url
  2031. },
  2032. getDcotorNameOne(admin_user_id){
  2033. var name = ""
  2034. for(let i=0;i<this.adminUserOptions.length;i++){
  2035. if(admin_user_id == this.adminUserOptions[i].id){
  2036. name = this.adminUserOptions[i].name
  2037. }
  2038. }
  2039. return name
  2040. },
  2041. printCard() {
  2042. var ptime = Math.round(new Date().getTime() / 1000);
  2043. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  2044. const style =
  2045. "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 18px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 18px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 17px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} }";
  2046. setTimeout(() => {
  2047. printJS({
  2048. printable: "print-card-info",
  2049. type: "html",
  2050. style: style,
  2051. scanStyles: false,
  2052. });
  2053. }, 1);
  2054. var patientID = this.patientPrint.id;
  2055. var name = this.patientPrint.name;
  2056. var gender = this.patientPrint.gender;
  2057. if (gender === 1) {
  2058. gender = "男";
  2059. }
  2060. if (gender === 2) {
  2061. gender = "女";
  2062. }
  2063. var idCardNo = this.patientPrint.id_card_no;
  2064. var dialysisNo = this.patientPrint.dialysis_no;
  2065. var phone = this.patientPrint.phone;
  2066. var healthCareNo = this.patientPrint.health_care_no;
  2067. // Base64加密
  2068. var epatientID = this.Base64.encode(patientID);
  2069. var ename = this.Base64.encode(name);
  2070. var egender = this.Base64.encode(gender);
  2071. var eidCardNo = this.Base64.encode(idCardNo);
  2072. var edialysisNo = this.Base64.encode(dialysisNo);
  2073. var ephone = this.Base64.encode(phone);
  2074. var eheathCareNo = this.Base64.encode(healthCareNo);
  2075. console.log(
  2076. "id号:" + epatientID,
  2077. "姓名:" + ename,
  2078. "性别:" + egender,
  2079. "身份证:" + eidCardNo,
  2080. "透析号:" + edialysisNo,
  2081. "电话:" + ephone,
  2082. "社保号:" + eheathCareNo
  2083. );
  2084. // var params =new Object();
  2085. // params.id = this.patientPrint.id
  2086. // params.name = this.patientPrint.name;
  2087. // this.$options.methods.qrcode(epatientID, ename, egender, eidCardNo, edialysisNo, ephone, eheathCareNo)// 调用生成二维码的方法
  2088. this.$options.methods.qrcode(
  2089. patientID,
  2090. name,
  2091. gender,
  2092. idCardNo,
  2093. dialysisNo,
  2094. phone,
  2095. healthCareNo
  2096. );
  2097. // this.$options.methods.qrcode(params)
  2098. },
  2099. showInspectDialog() {
  2100. this.dialogFormVisible = true;
  2101. },
  2102. qrcode(patientID, name, gender, idCardNo, dialysisNo, phone, healthCareNo) {
  2103. document.getElementById("qrcode").innerHTML = "";
  2104. new QRCode("qrcode", {
  2105. width: 200,
  2106. height: 200,
  2107. text:
  2108. "user_id:" +
  2109. patientID +
  2110. "," +
  2111. "name:" +
  2112. name +
  2113. "," +
  2114. "dialysis_no:" +
  2115. dialysisNo +
  2116. "," +
  2117. "gender:" +
  2118. gender +
  2119. "," +
  2120. "idcard_no:" +
  2121. idCardNo +
  2122. "," +
  2123. "phone:" +
  2124. phone +
  2125. "," +
  2126. "healthcare_no:" +
  2127. healthCareNo,
  2128. });
  2129. },
  2130. checkIdCardNo() {
  2131. if(this.$store.getters.xt_user.org_id != 10278 && this.$store.getters.xt_user.org_id != 10138) {
  2132. if (!isCardNo(this.form.idCardNo)) {
  2133. this.$message.error("身份证号码信息有误!");
  2134. this.form.birth = "";
  2135. return false;
  2136. }
  2137. }
  2138. var thisLen = this.form.idCardNo.length;
  2139. var birth = "";
  2140. if (thisLen == 15) {
  2141. birth = "19" + this.form.idCardNo.substr(6, 6);
  2142. } else {
  2143. birth = this.form.idCardNo.substr(6, 8);
  2144. }
  2145. this.form.birth =
  2146. birth.substr(0, 4) +
  2147. "-" +
  2148. birth.substr(4, 2) +
  2149. "-" +
  2150. birth.substr(6, 2);
  2151. this.form.age = jsGetAge(this.form.birth, "-");
  2152. },
  2153. // qrcode(params){
  2154. // new QRCode('qrcode',{
  2155. // width:200,
  2156. // height:200,
  2157. // text:params,
  2158. // })
  2159. // }
  2160. },
  2161. };
  2162. </script>
  2163. <style rel="stylesheet/scss" lang="scss" scoped>
  2164. .uploadHead {
  2165. margin-top: 25%;
  2166. }
  2167. .uploadHeadBtn {
  2168. width: 148px;
  2169. margin-top: 10px;
  2170. }
  2171. .el-form {
  2172. .el-col-6,
  2173. .el-col-8 {
  2174. width: 360px;
  2175. height: 59px !important;
  2176. }
  2177. .el-form-item {
  2178. // margin-bottom: 17px !important;
  2179. .el-select {
  2180. width: 100%;
  2181. }
  2182. .el-date-editor.el-input {
  2183. width: 100%;
  2184. }
  2185. .textarea {
  2186. width: 100%;
  2187. height: 70px;
  2188. border-color: #dcdfe6;
  2189. padding: 5px;
  2190. }
  2191. }
  2192. }
  2193. /deep/ .now_his{
  2194. .el-row{
  2195. .el-col-24{
  2196. .el-form-item{
  2197. .el-form-item__content{
  2198. height: 100%;
  2199. .el-textarea{
  2200. .el-textarea__inner{
  2201. height: 93%;
  2202. }
  2203. }
  2204. }
  2205. }
  2206. }
  2207. }
  2208. }
  2209. // #print-info-box .info_print {
  2210. // width: 920px;
  2211. // margin: 0 auto !important;
  2212. // position: relative;
  2213. // top: 0;
  2214. // left: 0;
  2215. // padding: 20px 30px;
  2216. // }
  2217. // #print-info-box .box-title {
  2218. // text-align: center;
  2219. // font-weight: 600;
  2220. // font-size: 30px;
  2221. // line-height: 80px;
  2222. // margin-bottom: 20px;
  2223. // }
  2224. // #print-info-box .unit-title {
  2225. // text-align: center;
  2226. // line-height: 40px;
  2227. // font-size: 20px;
  2228. // font-weight: 400;
  2229. // padding-top: 10px;
  2230. // /* border: 1px solid #333; */
  2231. // }
  2232. // #print-info-box .unit-box {
  2233. // padding: 15px;
  2234. // }
  2235. // #print-info-box .unit-box-item {
  2236. // display: flex;
  2237. // align-items: center;
  2238. // justify-content: space-between;
  2239. // padding: 4px 1em;
  2240. // }
  2241. // #print-info-box .unit-box-item-col3 {
  2242. // width: 30%;
  2243. // display: flex;
  2244. // padding: 4px 0;
  2245. // }
  2246. // #print-info-box .unit-box-item-col4 {
  2247. // width: 23%;
  2248. // display: flex;
  2249. // padding: 4px 0;
  2250. // }
  2251. // #print-info-box .item-value {
  2252. // flex: 1;
  2253. // border-bottom: 1px solid #333;
  2254. // }
  2255. </style>
  2256. <style scoped>
  2257. /* 打印表格的样式 */
  2258. .print_main_content {
  2259. background-color: white;
  2260. width: 960px;
  2261. margin: 0 auto;
  2262. padding: 0 0 0 0;
  2263. page-break-after: always;
  2264. }
  2265. .print_main_content .order_title {
  2266. text-align: center;
  2267. font-size: 23px;
  2268. line-height: 50px;
  2269. font-weight: 500;
  2270. }
  2271. .print_main_content table {
  2272. width: 100%;
  2273. border: 1px solid;
  2274. border-collapse: collapse;
  2275. padding: 2px;
  2276. }
  2277. .print_main_content table tbody tr td {
  2278. border: 1px solid;
  2279. text-align: center;
  2280. /* font-size: 17px; */
  2281. /* padding: 10px 8px; */
  2282. }
  2283. .td_proj_title {
  2284. font-size: 17px;
  2285. /* line-height: 20px; */
  2286. font-weight: 500;
  2287. }
  2288. .td_proj_content {
  2289. font-size: 17px;
  2290. /* line-height: 20px; */
  2291. }
  2292. .td_align_left {
  2293. text-align: left;
  2294. }
  2295. .print_footnote_panel {
  2296. font-size: 17px;
  2297. line-height: 40px;
  2298. }
  2299. .print_footnote_panel .proj {
  2300. display: inline-block;
  2301. width: 49%;
  2302. }
  2303. .print_footnote_panel .proj .proj_title {
  2304. font-weight: 500;
  2305. }
  2306. .el-select-dropdown {
  2307. z-index: 998 !important;
  2308. }
  2309. </style>