PatientDetail.vue 97KB

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