PatientDetail.vue 101KB

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