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

PatientDetail.vue 74KB

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