PatientDetail.vue 69KB

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