PatientDetail.vue 99KB

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