PatientDetail.vue 103KB

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