PatientDetail.vue 69KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030
  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">
  221. <el-form-item label="备注" prop="sch_remark">
  222. <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
  223. <el-input
  224. type="textarea"
  225. :rows="3"
  226. v-model="form.sch_remark"
  227. resize="none"
  228. placeholder=""
  229. readonly
  230. ></el-input>
  231. </el-form-item>
  232. </el-col>
  233. <el-col :span="8" style="height:59px;">
  234. <el-form-item
  235. label="治疗状态(转归) : "
  236. class="is-required"
  237. prop="lapseto"
  238. >
  239. <el-radio-group v-model="form.lapseto">
  240. <el-radio
  241. v-for="item in lapsetoOptions"
  242. :key="item.value"
  243. :label="item.value"
  244. :value="item.value"
  245. disabled
  246. >{{ item.label }}</el-radio
  247. >
  248. </el-radio-group>
  249. </el-form-item>
  250. </el-col>
  251. <el-col :span="24">
  252. <el-form-item label="传染病 : " required prop="is_infectious">
  253. <el-radio-group v-model="form.is_infectious" disabled>
  254. <el-radio :label="1">阴性</el-radio>
  255. <el-radio :label="2">阳性</el-radio>
  256. </el-radio-group>
  257. <el-checkbox-group
  258. v-model="form.contagions"
  259. v-if="form.is_infectious == '2'"
  260. disabled
  261. >
  262. <el-checkbox
  263. v-for="item in contagionList"
  264. v-if="item.type == 2"
  265. :label="item.id"
  266. :key="item.id"
  267. name="contagions"
  268. :value="item.id"
  269. >{{ item.name }}
  270. </el-checkbox>
  271. </el-checkbox-group>
  272. </el-form-item>
  273. </el-col>
  274. <!--<el-col :span="16" >-->
  275. <!--<el-form-item label="检查结果日期 : " >-->
  276. <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
  277. <!--format="yyyy-MM-dd"-->
  278. <!--style="width: 200px;"-->
  279. <!--value-format="yyyy-MM-dd"></el-date-picker>-->
  280. <!--&lt;!&ndash;<el-button type="primary" @click="recordCheck()">录入检验检查</el-button>&ndash;&gt;-->
  281. <!--</el-form-item>-->
  282. <!--</el-col>-->
  283. <el-col :span="16">
  284. <el-form-item label="检查结果日期 : ">
  285. <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
  286. <!--format="yyyy-MM-dd"-->
  287. <!--style="width: 200px;"-->
  288. <!--disabled-->
  289. <!--value-format="yyyy-MM-dd" v-if="isEdit"></el-date-picker>-->
  290. <el-date-picker
  291. v-model="form.record_date"
  292. type="date"
  293. placeholder="选择日期"
  294. :suffix-icon="'el-icon-menu'"
  295. format="yyyy-MM-dd"
  296. disabled
  297. style="width: 200px;"
  298. value-format="yyyy-MM-dd"
  299. ></el-date-picker>
  300. <el-button type="primary" @click="showInspectDialog()"
  301. >查看检验检查</el-button
  302. >
  303. </el-form-item>
  304. </el-col>
  305. <el-col :span="24">
  306. <el-form-item label="传染病周期提醒: ">
  307. <el-radio-group
  308. v-model="form.remind_cycle"
  309. @change="changeCycle()"
  310. disabled
  311. >
  312. <el-radio :label="1">一月一次</el-radio>
  313. <el-radio :label="2">两月一次</el-radio>
  314. <el-radio :label="3">三月一次</el-radio>
  315. <el-radio :label="4">半年一次</el-radio>
  316. <el-radio :label="5">一年一次</el-radio>
  317. </el-radio-group>
  318. </el-form-item>
  319. </el-col>
  320. <el-col :span="24">
  321. <el-form-item label="诊断 : " prop="diagnose">
  322. <!-- <textarea v-model="form.diagnose" class="textarea" disabled></textarea> -->
  323. <el-input
  324. type="textarea"
  325. :rows="3"
  326. v-model="form.diagnose"
  327. resize="none"
  328. placeholder=""
  329. readonly
  330. ></el-input>
  331. </el-form-item>
  332. </el-col>
  333. <el-col :span="8">
  334. <el-form-item label="民族 : " prop="nation">
  335. <el-input
  336. v-model="form.nation"
  337. maxlength="30"
  338. disabled
  339. ></el-input>
  340. </el-form-item>
  341. </el-col>
  342. <el-col :span="8">
  343. <el-form-item label="籍贯 : " prop="native_place">
  344. <el-input
  345. v-model="form.native_place"
  346. maxlength="30"
  347. disabled
  348. ></el-input>
  349. </el-form-item>
  350. </el-col>
  351. <el-col :span="8">
  352. <el-form-item label="家庭住址 : " prop="homeAddress">
  353. <el-input v-model="form.homeAddress" disabled></el-input>
  354. </el-form-item>
  355. </el-col>
  356. <div v-show="!generic_info_fold">
  357. <el-col :span="8">
  358. <el-form-item label="别名 : " prop="alias">
  359. <el-input v-model="form.alias" disabled></el-input>
  360. </el-form-item>
  361. </el-col>
  362. <el-col :span="8">
  363. <el-form-item label="身高(cm) : " prop="height">
  364. <el-input
  365. maxlength="5"
  366. v-model="form.height"
  367. disabled
  368. ></el-input>
  369. </el-form-item>
  370. </el-col>
  371. <el-col :span="8">
  372. <el-form-item label="婚姻状况 : " prop="maritalStatus">
  373. <el-select
  374. v-model="form.maritalStatus"
  375. placeholder="请选择婚姻状况"
  376. disabled
  377. >
  378. <el-option
  379. v-for="item in maritalOptions"
  380. :key="item.id"
  381. :label="item.name"
  382. :value="item.id"
  383. />
  384. </el-select>
  385. </el-form-item>
  386. </el-col>
  387. <el-col :span="8">
  388. <el-form-item label="子女情况(个) : " prop="children">
  389. <el-input
  390. maxlength="5"
  391. v-model="form.children"
  392. disabled
  393. ></el-input>
  394. </el-form-item>
  395. <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
  396. </el-form-item> -->
  397. </el-col>
  398. <el-col :span="8">
  399. <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
  400. <el-input v-model="form.admissionNumber" disabled></el-input>
  401. </el-form-item>
  402. </el-col>
  403. <el-col :span="8">
  404. <el-form-item label="医保类型 : " prop="reimbursementWayID">
  405. <el-select v-model="form.reimbursementWayID" disabled>
  406. <el-option
  407. v-for="item in wayOptions"
  408. :key="item.id"
  409. :label="item.name"
  410. :value="item.id"
  411. />
  412. </el-select>
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="8">
  416. <el-form-item label="医保号 : " prop="healthCareNo">
  417. <el-input v-model="form.healthCareNo" disabled></el-input>
  418. </el-form-item>
  419. </el-col>
  420. <el-col :span="8">
  421. <el-form-item label="教育程度 : " prop="educationOptions">
  422. <el-select v-model="form.education" disabled>
  423. <el-option
  424. v-for="item in educationOptions"
  425. :key="item.id"
  426. :label="item.name"
  427. :value="item.id"
  428. />
  429. </el-select>
  430. </el-form-item>
  431. </el-col>
  432. <el-col :span="8">
  433. <el-form-item label="固定电话 : ">
  434. <el-input
  435. v-model="form.tell_phone"
  436. maxlength="20"
  437. disabled
  438. ></el-input>
  439. </el-form-item>
  440. </el-col>
  441. <el-col :span="8">
  442. <el-form-item label="费别 : ">
  443. <el-select v-model="form.expense_kind" disabled>
  444. <el-option
  445. v-for="item in expenseOptions"
  446. :key="item.id"
  447. :label="item.name"
  448. :value="item.id"
  449. />
  450. </el-select>
  451. </el-form-item>
  452. </el-col>
  453. <el-col :span="8">
  454. <el-form-item label="透析龄(月): ">
  455. <el-input v-model="form.dialysis_age" disabled></el-input>
  456. </el-form-item>
  457. </el-col>
  458. <el-col :span="8">
  459. <el-form-item label="亲友电话: " prop="relative_phone">
  460. <el-input
  461. v-model="form.relative_phone"
  462. maxlength="20"
  463. disabled
  464. ></el-input>
  465. </el-form-item>
  466. </el-col>
  467. <el-col :span="8">
  468. <el-form-item label="亲友关系: " prop="relative_relations">
  469. <el-input
  470. v-model="form.relative_relations"
  471. maxlength="20"
  472. disabled
  473. ></el-input>
  474. </el-form-item>
  475. </el-col>
  476. <el-col :span="8">
  477. <el-form-item label="职业 : " prop="profession">
  478. <el-select v-model="form.profession" disabled>
  479. <el-option
  480. v-for="item in professionOptions"
  481. :key="item.id"
  482. :label="item.name"
  483. :value="item.id"
  484. />
  485. </el-select>
  486. </el-form-item>
  487. </el-col>
  488. <el-col :span="8">
  489. <el-form-item label="工作单位 : " prop="work">
  490. <el-input v-model="form.work" disabled></el-input>
  491. </el-form-item>
  492. </el-col>
  493. <el-col :span="8">
  494. <el-form-item label="单位地址 : " prop="unit_address">
  495. <el-input v-model="form.unit_address" disabled></el-input>
  496. </el-form-item>
  497. </el-col>
  498. </div>
  499. <el-col :span="8">
  500. <el-form-item>
  501. <el-button
  502. type="text"
  503. @click="generic_info_fold = !generic_info_fold"
  504. >{{ generic_info_fold ? "更多资料" : "收起"
  505. }}<i class="el-icon--right" :class="generic_fold_icon"></i
  506. ></el-button>
  507. </el-form-item>
  508. </el-col>
  509. </el-row>
  510. </el-col>
  511. <el-col :span="4" align="center">
  512. <img
  513. width="146px"
  514. height="146px"
  515. v-if="form.avatar"
  516. :src="form.avatar"
  517. class="avatar"
  518. />
  519. <el-form-item prop="avatar">
  520. <el-input
  521. v-model="form.avatar"
  522. type="hidden"
  523. placeholder=""
  524. ></el-input>
  525. </el-form-item>
  526. </el-col>
  527. </el-row>
  528. <div class="dataTitle">治疗信息</div>
  529. <el-row :gutter="24">
  530. <el-col :span="12">
  531. <el-form-item label="主诉 : " prop="patient_complains">
  532. <el-input
  533. type="textarea"
  534. :rows="3"
  535. v-model="form.patient_complains"
  536. resize="none"
  537. placeholder=""
  538. readonly
  539. ></el-input>
  540. </el-form-item>
  541. </el-col>
  542. <el-col :span="12">
  543. <el-form-item label="现病史 : " prop="present_history">
  544. <el-input
  545. type="textarea"
  546. :rows="3"
  547. v-model="form.present_history"
  548. resize="none"
  549. placeholder=""
  550. readonly
  551. ></el-input>
  552. </el-form-item>
  553. </el-col>
  554. <el-col :span="12">
  555. <el-form-item label="既往史 : " prop="past_history">
  556. <el-input
  557. type="textarea"
  558. :rows="3"
  559. v-model="form.past_history"
  560. resize="none"
  561. placeholder=""
  562. readonly
  563. ></el-input>
  564. </el-form-item>
  565. </el-col>
  566. <el-col>
  567. <el-form-item label="体格检查">
  568. <el-input v-model="form.temperature" style="width: 200px;" disabled>
  569. <template slot="prepend"
  570. >体温:</template
  571. >
  572. <template slot="append"
  573. >℃</template
  574. >
  575. </el-input>
  576. <el-input v-model="form.pulse" style="width: 220px;" disabled>
  577. <template slot="prepend"
  578. >脉搏:
  579. </template>
  580. <template slot="append"
  581. >次/分</template
  582. >
  583. </el-input>
  584. <el-input v-model="form.respiratory" style="width: 220px;" disabled>
  585. <template slot="prepend"
  586. >呼吸:
  587. </template>
  588. <template slot="append"
  589. >次/分</template
  590. >
  591. </el-input>
  592. </el-form-item>
  593. </el-col>
  594. <el-col>
  595. <el-form-item>
  596. <el-input v-model="form.sbp" style="width: 240px;" disabled>
  597. <template slot="prepend"
  598. >收缩压:</template
  599. >
  600. <template slot="append"
  601. >mmHg</template
  602. >
  603. </el-input>
  604. <el-input v-model="form.dbp" style="width: 240px;" disabled>
  605. <template slot="prepend"
  606. >舒张压:</template
  607. >
  608. <template slot="append"
  609. >mmHg</template
  610. >
  611. </el-input>
  612. </el-form-item>
  613. </el-col>
  614. <el-col :span="24">
  615. <el-form-item label="" prop="remark">
  616. <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
  617. <el-input
  618. type="textarea"
  619. :rows="3"
  620. v-model="form.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>