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

PatientDetail.vue 79KB

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