PatientDetail.vue 86KB

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