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

PatientDetail.vue 70KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051
  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. {{printDate}}
  934. </div>
  935. <div class="proj"><span class="proj_title">医生签名:</span></div>
  936. </div>
  937. </div>
  938. </div>
  939. </div>
  940. </div>
  941. <div hidden="hidden">
  942. <div id="print-card-info">
  943. <div
  944. class="order_title"
  945. align="center"
  946. style="margin-bottom:20px;font-size:35px"
  947. v-if="org_id != 10223"
  948. >
  949. 签到卡
  950. </div>
  951. <div
  952. class="order_title"
  953. align="center"
  954. style="margin-bottom:20px;font-size:25px"
  955. v-if="org_id == 10223"
  956. >三优血液透析中心</div>
  957. <div align="center" style="margin-bottom:4px;font-size:25px">
  958. 姓名:<span>&nbsp;&nbsp;{{ patientPrint.name }}</span
  959. ><br />
  960. </div>
  961. <div align="center" style="margin-bottom:20px;font-size:25px">
  962. 透析号:<span>&nbsp;&nbsp;{{ patientPrint.dialysis_no }}</span>
  963. </div>
  964. <div>
  965. <div id="qrcode" align="center"></div>
  966. </div>
  967. </div>
  968. </div>
  969. </div>
  970. </template>
  971. <script>
  972. import { getDataConfig } from "@/utils/data";
  973. import { getToken } from "@/api/qiniu";
  974. import {
  975. getFileExtension,
  976. isCardNo,
  977. jsGetAge,
  978. isPositiveInteger,
  979. dialysisAge,
  980. uParseTime
  981. } from "@/utils/tools";
  982. import {
  983. generateDialysisNo,
  984. createPatient,
  985. editPatient,
  986. fetchPatient
  987. } from "@/api/patient";
  988. import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from "@/api/doctor";
  989. import { getZones } from "@/api/device/device";
  990. import print from "print-js";
  991. import QRCode from "qrcodejs2";
  992. import { Base64 } from "js-base64";
  993. import { parse } from "path";
  994. const defaultForm = {
  995. avatar: "",
  996. patientType: "",
  997. dialysisNo: "",
  998. admissionNumber: "",
  999. source: "",
  1000. lapseto: "",
  1001. partition: "",
  1002. bed: "",
  1003. name: "",
  1004. gender: "",
  1005. nation: "",
  1006. native_place: "",
  1007. maritalStatus: "",
  1008. idCardNo: "",
  1009. birth: "",
  1010. age: "",
  1011. reimbursementWayID: "",
  1012. healthCareNo: "",
  1013. healthCareDueDate: "",
  1014. height: "",
  1015. blood: "",
  1016. rh: "",
  1017. healthCareDueAlertDate: "",
  1018. education: "",
  1019. profession: "",
  1020. phone: "",
  1021. homeTelephone: "",
  1022. homeAddress: "",
  1023. work: "",
  1024. receivingDate: "",
  1025. firstDialysisDate: "",
  1026. dialysisAge: "",
  1027. induction: "",
  1028. initial: "",
  1029. dialysisTotal: "",
  1030. contagions: [],
  1031. doctor: "",
  1032. nurse: "",
  1033. assessment: "",
  1034. diseases: [],
  1035. diagnose: "",
  1036. registrars: "",
  1037. patient_complains: "",
  1038. present_history: "",
  1039. past_history: "",
  1040. temperature: "",
  1041. pulse: "",
  1042. respiratory: "",
  1043. sbp: "",
  1044. dbp: "",
  1045. record_date: "",
  1046. response_result: "",
  1047. is_infectious: "",
  1048. formItem: [],
  1049. tell_phone: "",
  1050. first_treatment_date: "",
  1051. dialysis_age: "",
  1052. expense_kind: "",
  1053. contact_name: "",
  1054. sch_remark:"",
  1055. org_id:0
  1056. };
  1057. export default {
  1058. name: "patientDetail",
  1059. components: {},
  1060. data() {
  1061. return {
  1062. expenseOptions: [
  1063. { id: 1, name: "基本医保" },
  1064. { id: 2, name: "新农合" },
  1065. { id: 3, name: "自费医疗" },
  1066. { id: 4, name: "公费医疗" },
  1067. { id: 5, name: "商业保险" },
  1068. { id: 6, name: "军队医疗" },
  1069. { id: 7, name: "其他" }
  1070. ],
  1071. generic_info_fold: true,
  1072. treat_info_fold: true,
  1073. dialogFormVisible: false,
  1074. orgname: "",
  1075. adminusername: "",
  1076. form: Object.assign({}, defaultForm),
  1077. formSubmit: true,
  1078. submitMethod: "",
  1079. uploadData: { token: "", key: "" },
  1080. dialogImageUrl: "",
  1081. qiniuDomain: "https://images.shengws.com/",
  1082. dialogVisible: false,
  1083. typeOptions: null,
  1084. styleOptions: null,
  1085. sourceOptions: [{ value: 1, label: "门诊" }, { value: 2, label: "住院" }],
  1086. lapsetoOptions: [
  1087. { value: 1, label: "留治" },
  1088. { value: 2, label: "转出" }
  1089. ],
  1090. partitionOptions: [],
  1091. sexOptions: [{ value: 1, label: "男" }, { value: 2, label: "女" }],
  1092. isHospitalFirstDialysisOptions: [
  1093. { value: 1, label: "是" },
  1094. { value: 2, label: "否" }
  1095. ],
  1096. predialysisConditionOptions: [
  1097. { value: 1, label: "腹膜透析" },
  1098. { value: 2, label: "肾移植" }
  1099. ],
  1100. maritalOptions: null,
  1101. wayOptions: null,
  1102. educationOptions: null,
  1103. professionOptions: null,
  1104. inductionOptions: null,
  1105. doctorOptions: null,
  1106. nurseOptions: null,
  1107. adminUserOptions: [],
  1108. infections: [],
  1109. rhOptions: null,
  1110. checkDisease: null,
  1111. contagionList: null,
  1112. loading: null,
  1113. patientID: 0,
  1114. patientPrint: {},
  1115. print_time: "",
  1116. printDate:"",
  1117. rules: {
  1118. contagions: [{ type: "array", required: false, trigger: "change" }],
  1119. avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
  1120. patientType: [
  1121. { required: true, message: "请选择患者类型", trigger: "blur" }
  1122. ],
  1123. dialysisNo: [
  1124. { required: true, message: "请填写透析号", trigger: "blur" }
  1125. ],
  1126. admissionNumber: [
  1127. { required: true, message: "请填写住院(门诊)号", trigger: "blur" }
  1128. ],
  1129. source: [
  1130. { required: true, message: "请选择患者来源", trigger: "blur" }
  1131. ],
  1132. lapseto: [
  1133. { required: true, message: "请选择治疗状态", trigger: "blur" }
  1134. ],
  1135. name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
  1136. gender: [{ required: true, message: "请选择性别", trigger: "blur" }],
  1137. idCardNo: [
  1138. { required: true, message: "请填写身份证号", trigger: "blur" }
  1139. ],
  1140. birth: [{ required: true, message: "请填写生日", trigger: "blur" }]
  1141. }
  1142. };
  1143. },
  1144. computed: {
  1145. generic_fold_icon: function() {
  1146. return this.generic_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1147. },
  1148. treat_fold_icon: function() {
  1149. return this.treat_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
  1150. }
  1151. },
  1152. created() {
  1153. this.org_id = this.$store.getters.xt_user.org.id
  1154. this.styleOptions = this.$store.getters.patient_types;
  1155. // this.partitionOptions = this.$store.getters.partitions;
  1156. this.maritalOptions = getDataConfig("patient", "marital_options");
  1157. this.wayOptions = getDataConfig("patient", "reimbursement_ways");
  1158. this.typeOptions = this.$store.getters.blood_types;
  1159. this.rhOptions = this.$store.getters.rh;
  1160. this.educationOptions = getDataConfig("patient", "education_types");
  1161. this.professionOptions = getDataConfig("patient", "profession_options");
  1162. this.inductionOptions = this.$store.getters.induction_options;
  1163. this.contagionList = this.$store.getters.contagions;
  1164. this.checkDisease = this.$store.getters.disease;
  1165. var xtuser = this.$store.getters.xt_user;
  1166. this.orgname = xtuser.org.org_name;
  1167. this.adminusername = xtuser.user.user_name;
  1168. this.fetchAllAdminUsers();
  1169. const id = this.$route.params && this.$route.params.id;
  1170. this.patientID = parseInt(id);
  1171. if (isNaN(this.patientID) || this.patientID <= 0) {
  1172. console.log("patient detail not had id");
  1173. this.$notify.error({
  1174. title: "错误",
  1175. message: "无效的id"
  1176. });
  1177. this.$router.push("/patients/patients");
  1178. }
  1179. this.fetchPatient(id);
  1180. this.getZones();
  1181. var ptime = Math.round(new Date().getTime() / 1000);
  1182. // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
  1183. var data = new Date();
  1184. var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
  1185. var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
  1186. this.printDate = data.getFullYear() + "-" + month + "-" + date;
  1187. },
  1188. methods: {
  1189. getTime(val) {
  1190. return uParseTime(val, "{y}年{m}月{d}日");
  1191. },
  1192. printThisInfo() {
  1193. var ptime = Math.round(new Date().getTime() / 1000);
  1194. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  1195. const style =
  1196. "@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;} }";
  1197. setTimeout(() => {
  1198. printJS({
  1199. printable: "print-info-box",
  1200. type: "html",
  1201. style: style,
  1202. scanStyles: false
  1203. });
  1204. }, 1);
  1205. },
  1206. getZones() {
  1207. getZones().then(response => {
  1208. if (response.data.state === 1) {
  1209. this.partitionOptions = response.data.data.zones;
  1210. }
  1211. });
  1212. },
  1213. fetchPatient(id) {
  1214. fetchPatient(id)
  1215. .then(response => {
  1216. console.log(response.data.data);
  1217. if (response.data.state === 1) {
  1218. this.$emit("tran-patient-info", response.data.data.patient);
  1219. var patietInfo = response.data.data.patient;
  1220. console.log("触发了吗无222222",patietInfo)
  1221. this.form.avatar = patietInfo.avatar;
  1222. this.form.name = patietInfo.name;
  1223. this.form.alias = patietInfo.alias;
  1224. this.form.lapseto = patietInfo.lapseto;
  1225. this.form.idCardNo = patietInfo.id_card_no;
  1226. this.form.dialysisNo = patietInfo.dialysis_no;
  1227. this.form.gender = patietInfo.gender;
  1228. this.form.is_infectious = patietInfo.is_infectious;
  1229. // this.form.record_date = patietInfo.is_infectious
  1230. this.form.response_result = patietInfo.response_result;
  1231. this.form.remind_cycle = patietInfo.remind_cycle;
  1232. if(patietInfo.is_infectious == 1){
  1233. this.form.remind_cycle = 0
  1234. }
  1235. console.log("222222",this.form.remind_cycle)
  1236. this.form.user_sys_before_count = patietInfo.user_sys_before_count;
  1237. this.infections = response.data.data.infections;
  1238. this.form.formItem = this.infections;
  1239. if (this.infections != null) {
  1240. if (this.infections.length > 0) {
  1241. this.form.record_date = uParseTime(
  1242. this.infections[0].inspect_date,
  1243. "{y}-{m}-{d}"
  1244. );
  1245. const select_options = ["阴性", "阳性", "弱阳性"];
  1246. for (let i = 0; i < this.infections.length; i++) {
  1247. this.infections[i]["select_options"] = select_options;
  1248. this.infections[i]["value"] = this.infections[
  1249. i
  1250. ].inspect_value;
  1251. }
  1252. }
  1253. }
  1254. if (patietInfo.gender === 1 || patietInfo.gender === 2) {
  1255. this.form.gender = patietInfo.gender;
  1256. }
  1257. this.form.nation = patietInfo.nation;
  1258. this.form.native_place = patietInfo.native_place;
  1259. this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
  1260. this.form.firstDialysisDate = uParseTime(
  1261. patietInfo.first_dialysis_date,
  1262. "{y}-{m}-{d}"
  1263. );
  1264. this.form.height = patietInfo.height + "";
  1265. // this.form.age = jsGetAge(this.form.birth, "-");
  1266. if (patietInfo.marital_status > 0) {
  1267. this.form.maritalStatus = patietInfo.marital_status;
  1268. }
  1269. this.form.children = patietInfo.children;
  1270. this.form.admissionNumber = patietInfo.admission_number;
  1271. if (patietInfo.reimbursement_way_id > 0) {
  1272. this.form.reimbursementWayID = patietInfo.reimbursement_way_id;
  1273. }
  1274. this.form.healthCareNo = patietInfo.health_care_no;
  1275. this.form.phone = patietInfo.phone;
  1276. this.form.homeTelephone = patietInfo.home_telephone;
  1277. this.form.relative_phone = patietInfo.relative_phone;
  1278. this.form.relative_relations = patietInfo.relative_relations;
  1279. this.form.homeAddress = patietInfo.home_address;
  1280. this.form.work = patietInfo.work_unit;
  1281. this.form.unit_address = patietInfo.unit_address;
  1282. if (patietInfo.age == 0) {
  1283. this.form.age = jsGetAge(this.form.birth, "-");
  1284. } else {
  1285. this.form.age = patietInfo.age;
  1286. }
  1287. if (patietInfo.profession > 0) {
  1288. this.form.profession = patietInfo.profession;
  1289. }
  1290. if (patietInfo.education_level > 0) {
  1291. this.form.education = patietInfo.education_level;
  1292. }
  1293. if (patietInfo.source === 1 || patietInfo.source === 2) {
  1294. this.form.source = patietInfo.source;
  1295. }
  1296. if (patietInfo.lapseto === 1 || patietInfo.lapseto === 2) {
  1297. this.form.lapseto = patietInfo.lapseto;
  1298. }
  1299. if (
  1300. patietInfo.is_hospital_first_dialysis === 1 ||
  1301. patietInfo.is_hospital_first_dialysis === 2
  1302. ) {
  1303. this.form.is_hospital_first_dialysis =
  1304. patietInfo.is_hospital_first_dialysis;
  1305. }
  1306. if (patietInfo.first_dialysis_date !== 0) {
  1307. this.form.firstDialysisDate = uParseTime(
  1308. patietInfo.first_dialysis_date,
  1309. "{y}-{m}-{d}"
  1310. );
  1311. }
  1312. this.form.first_dialysis_hospital =
  1313. patietInfo.first_dialysis_hospital;
  1314. if (patietInfo.predialysis_condition.length > 0) {
  1315. this.form.predialysis_condition = patietInfo.predialysis_condition.split(
  1316. ","
  1317. );
  1318. }
  1319. this.form.pre_hospital_dialysis_frequency =
  1320. patietInfo.pre_hospital_dialysis_frequency;
  1321. this.form.pre_hospital_dialysis_times =
  1322. patietInfo.pre_hospital_dialysis_times;
  1323. if (patietInfo.hospital_first_dialysis_date !== 0) {
  1324. this.form.hospital_first_dialysis_date = uParseTime(
  1325. patietInfo.hospital_first_dialysis_date,
  1326. "{y}-{m}-{d}"
  1327. );
  1328. }
  1329. this.form.contagions = response.data.data.contagions;
  1330. this.form.diseases = response.data.data.diseases;
  1331. this.form.remark = patietInfo.remark;
  1332. this.form.sch_remark = patietInfo.sch_remark;
  1333. this.form.diagnose = patietInfo.diagnose;
  1334. this.form.patient_complains = patietInfo.patient_complains;
  1335. this.form.present_history = patietInfo.present_history;
  1336. this.form.past_history = patietInfo.past_history;
  1337. this.form.temperature = patietInfo.temperature;
  1338. this.form.pulse = patietInfo.pulse;
  1339. this.form.respiratory = patietInfo.respiratory;
  1340. this.form.sbp = patietInfo.sbp;
  1341. this.form.dbp = patietInfo.dbp;
  1342. this.form.contact_name = patietInfo.contact_name;
  1343. this.form.tell_phone = patietInfo.tell_phone;
  1344. this.form.dialysis_age = patietInfo.dialysis_age;
  1345. if (patietInfo.expense_kind == 0) {
  1346. this.form.expense_kind = "";
  1347. } else {
  1348. this.form.expense_kind = patietInfo.expense_kind;
  1349. }
  1350. this.form.first_treatment_date = uParseTime(
  1351. patietInfo.first_treatment_date,
  1352. "{y}-{m}-{d}"
  1353. );
  1354. // this.form.initial = patietInfo.initial_dialysis + "";
  1355. // this.form.dialysisTotal = patietInfo.total_dialysis + "";
  1356. // this.form.assessment = patietInfo.evaluate;
  1357. // if (patietInfo.patient_type > 0) {
  1358. // this.form.patientType = patietInfo.patient_type;
  1359. // }
  1360. // if (patietInfo.partition_id > 0) {
  1361. // this.form.partition = patietInfo.partition_id;
  1362. // }
  1363. // if (patietInfo.bed_id > 0) {
  1364. // this.form.bed = patietInfo.bed_id;
  1365. // }
  1366. // this.form.healthCareDueDate = uParseTime(
  1367. // patietInfo.health_care_due_date,
  1368. // "{y}-{m}-{d}"
  1369. // );
  1370. // if (patietInfo.blood_type > 0) {
  1371. // this.form.blood = patietInfo.blood_type;
  1372. // }
  1373. // if (patietInfo.rh > 0) {
  1374. // this.form.rh = patietInfo.rh;
  1375. // }
  1376. // this.form.healthCareDueAlertDate = uParseTime(
  1377. // patietInfo.health_care_due_alert_date,
  1378. // "{y}-{m}-{d}"
  1379. // );
  1380. // this.form.receivingDate = uParseTime(
  1381. // patietInfo.receiving_date,
  1382. // "{y}-{m}-{d}"
  1383. // );
  1384. // this.form.dialysisAge = dialysisAge(
  1385. // this.form.firstDialysisDate,
  1386. // "-"
  1387. // );
  1388. // if (patietInfo.induction_period > 0) {
  1389. // this.form.induction = patietInfo.induction_period;
  1390. // }
  1391. // if (patietInfo.attending_doctor_id > 0) {
  1392. // this.form.doctor = patietInfo.attending_doctor_id;
  1393. // }
  1394. // if (patietInfo.head_nurse_id > 0) {
  1395. // this.form.nurse = patietInfo.head_nurse_id;
  1396. // }
  1397. // if (patietInfo.registrars_id > 0) {
  1398. // this.form.registrars = patietInfo.registrars_id;
  1399. // }
  1400. var contagionsArr = response.data.data.contagions;
  1401. var diseasesArr = response.data.data.diseases;
  1402. this.patientPrint = patietInfo;
  1403. var sourceLen = this.sourceOptions.length;
  1404. for (let index = 0; index < sourceLen; index++) {
  1405. if (this.sourceOptions[index].value === patietInfo.source) {
  1406. this.patientPrint.source = this.sourceOptions[index].label;
  1407. break;
  1408. }
  1409. }
  1410. var styleLen = this.styleOptions.length;
  1411. for (let index = 0; index < styleLen; index++) {
  1412. if (this.styleOptions[index].id === patietInfo.patient_type) {
  1413. this.patientPrint.patient_type = this.styleOptions[index].name;
  1414. break;
  1415. }
  1416. }
  1417. var partitionLen = this.partitionOptions.length;
  1418. for (let index = 0; index < partitionLen; index++) {
  1419. if (this.partitionOptions[index].id === patietInfo.partition_id) {
  1420. this.patientPrint.partition_id = this.partitionOptions[
  1421. index
  1422. ].name;
  1423. break;
  1424. }
  1425. }
  1426. this.patientPrint.bed_id =
  1427. patietInfo.bed_id > 0 ? patietInfo.bed_id : "";
  1428. if (patietInfo.gender === 1) {
  1429. this.patientPrint.gender = "男";
  1430. } else if (patietInfo.gender === 2) {
  1431. this.patientPrint.gender = "女";
  1432. } else {
  1433. this.patientPrint.gender = "";
  1434. }
  1435. var maritalLen = this.maritalOptions.length;
  1436. console.log(maritalLen);
  1437. for (let index = 0; index < maritalLen; index++) {
  1438. if (
  1439. this.maritalOptions[index].id ==
  1440. response.data.data.patient.marital_status
  1441. ) {
  1442. this.patientPrint.marital_status = this.maritalOptions[
  1443. index
  1444. ].name;
  1445. }
  1446. }
  1447. this.patientPrint.birthday = uParseTime(
  1448. patietInfo.birthday,
  1449. "{y}-{m}-{d}"
  1450. );
  1451. this.patientPrint.age = jsGetAge(this.patientPrint.birthday, "-");
  1452. this.patientPrint.patient_complains = patietInfo.patient_complains.replace(
  1453. /\n/g,
  1454. "<br/>"
  1455. );
  1456. this.patientPrint.present_history = patietInfo.present_history.replace(
  1457. /\n/g,
  1458. "<br/>"
  1459. );
  1460. this.patientPrint.past_history = patietInfo.past_history.replace(
  1461. /\n/g,
  1462. "<br/>"
  1463. );
  1464. this.patientPrint.remark = patietInfo.remark.replace(
  1465. /\n/g,
  1466. "<br/>"
  1467. );
  1468. this.patientPrint.sch_remark = patietInfo.sch_remark.replace(
  1469. /\n/g,
  1470. "<br/>"
  1471. );
  1472. this.patientPrint.diagnose = patietInfo.diagnose.replace(
  1473. /\n/g,
  1474. "<br/>"
  1475. );
  1476. if (typeof patietInfo.temperature === "number") {
  1477. this.patientPrint.temperature = patietInfo.temperature.toFixed(1);
  1478. }
  1479. if (patietInfo.reimbursement_way_id > 0) {
  1480. var wayLen = this.wayOptions.length;
  1481. for (let index = 0; index < wayLen; index++) {
  1482. if (
  1483. this.wayOptions[index].id === patietInfo.reimbursement_way_id
  1484. ) {
  1485. this.patientPrint.reimbursement_way_id = this.wayOptions[
  1486. index
  1487. ].name;
  1488. break;
  1489. }
  1490. }
  1491. } else {
  1492. this.patientPrint.reimbursement_way_id = "";
  1493. }
  1494. if (patietInfo.health_care_due_date !== 0) {
  1495. this.patientPrint.health_care_due_date = uParseTime(
  1496. patietInfo.health_care_due_date,
  1497. "{y}-{m}-{d}"
  1498. );
  1499. } else {
  1500. this.patientPrint.health_care_due_date = "";
  1501. }
  1502. if (patietInfo.blood_type > 0) {
  1503. var typeLen = this.typeOptions.length;
  1504. for (let index = 0; index < typeLen; index++) {
  1505. if (this.typeOptions[index].id === patietInfo.blood_type) {
  1506. this.patientPrint.blood_type = this.typeOptions[index].name;
  1507. break;
  1508. }
  1509. }
  1510. } else {
  1511. this.patientPrint.blood_type = "";
  1512. }
  1513. if (patietInfo.rh > 0) {
  1514. var rhLen = this.rhOptions.length;
  1515. for (let index = 0; index < rhLen; index++) {
  1516. if (this.rhOptions[index].id === patietInfo.rh) {
  1517. this.patientPrint.rh = this.rhOptions[index].name;
  1518. break;
  1519. }
  1520. }
  1521. } else {
  1522. this.patientPrint.rh = "";
  1523. }
  1524. if (patietInfo.health_care_due_alert_date !== 0) {
  1525. this.patientPrint.health_care_due_alert_date = uParseTime(
  1526. patietInfo.health_care_due_alert_date,
  1527. "{y}-{m}-{d}"
  1528. );
  1529. } else {
  1530. this.patientPrint.health_care_due_alert_date = "";
  1531. }
  1532. if (patietInfo.education_level > 0) {
  1533. var eLen = this.educationOptions.length;
  1534. for (let index = 0; index < eLen; index++) {
  1535. if (
  1536. this.educationOptions[index].id === patietInfo.education_level
  1537. ) {
  1538. this.patientPrint.education_level = this.educationOptions[
  1539. index
  1540. ].name;
  1541. break;
  1542. }
  1543. }
  1544. } else {
  1545. this.patientPrint.education_level = "";
  1546. }
  1547. if (patietInfo.profession > 0) {
  1548. var eLen = this.professionOptions.length;
  1549. for (let index = 0; index < eLen; index++) {
  1550. if (
  1551. this.professionOptions[index].id === patietInfo.profession
  1552. ) {
  1553. this.patientPrint.profession = this.professionOptions[
  1554. index
  1555. ].name;
  1556. break;
  1557. }
  1558. }
  1559. } else {
  1560. this.patientPrint.profession = "";
  1561. }
  1562. if (patietInfo.receiving_date !== 0) {
  1563. this.patientPrint.receiving_date = uParseTime(
  1564. patietInfo.receiving_date,
  1565. "{y}-{m}-{d}"
  1566. );
  1567. } else {
  1568. this.patientPrint.receiving_date = "";
  1569. }
  1570. if (patietInfo.first_dialysis_date !== 0) {
  1571. this.patientPrint.first_dialysis_date = uParseTime(
  1572. patietInfo.first_dialysis_date,
  1573. "{y}-{m}-{d}"
  1574. );
  1575. this.patientPrint.dialysis_age = dialysisAge(
  1576. this.patientPrint.first_dialysis_date
  1577. );
  1578. } else {
  1579. this.patientPrint.first_dialysis_date = "";
  1580. this.patientPrint.dialysis_age = "";
  1581. }
  1582. if (patietInfo.induction_period > 0) {
  1583. var eLen = this.inductionOptions.length;
  1584. for (let index = 0; index < eLen; index++) {
  1585. if (
  1586. this.inductionOptions[index].id ===
  1587. patietInfo.induction_period
  1588. ) {
  1589. this.patientPrint.induction_period = this.inductionOptions[
  1590. index
  1591. ].name;
  1592. break;
  1593. }
  1594. }
  1595. } else {
  1596. this.patientPrint.induction_period = "";
  1597. }
  1598. if (patietInfo.attending_doctor_id > 0) {
  1599. var eLen = this.adminUserOptions.length;
  1600. for (let index = 0; index < eLen; index++) {
  1601. if (
  1602. this.adminUserOptions[index].id ===
  1603. patietInfo.attending_doctor_id
  1604. ) {
  1605. this.patientPrint.attending_doctor_id = this.adminUserOptions[
  1606. index
  1607. ].name;
  1608. break;
  1609. }
  1610. }
  1611. } else {
  1612. this.patientPrint.attending_doctor_id = "";
  1613. }
  1614. if (patietInfo.head_nurse_id > 0) {
  1615. var eLen = this.adminUserOptions.length;
  1616. for (let index = 0; index < eLen; index++) {
  1617. if (
  1618. this.adminUserOptions[index].id === patietInfo.head_nurse_id
  1619. ) {
  1620. this.patientPrint.head_nurse_id = this.adminUserOptions[
  1621. index
  1622. ].name;
  1623. break;
  1624. }
  1625. }
  1626. } else {
  1627. this.patientPrint.head_nurse_id = "";
  1628. }
  1629. if (contagionsArr.length > 0) {
  1630. var contagionsIdArr = {};
  1631. var alen = contagionsArr.length;
  1632. for (let index = 0; index < alen; index++) {
  1633. contagionsIdArr[contagionsArr[index]] = 1;
  1634. }
  1635. var printContagions = [];
  1636. var clen = this.contagionList.length;
  1637. for (let index = 0; index < clen; index++) {
  1638. if (this.contagionList[index].id in contagionsIdArr) {
  1639. printContagions.push(this.contagionList[index].name);
  1640. }
  1641. }
  1642. this.patientPrint.contagions = printContagions.join("、");
  1643. } else {
  1644. this.patientPrint.contagions = "无";
  1645. }
  1646. if (diseasesArr.length > 0) {
  1647. var diseasesIdArr = {};
  1648. var alen = diseasesArr.length;
  1649. for (let index = 0; index < alen; index++) {
  1650. diseasesIdArr[diseasesArr[index]] = 1;
  1651. }
  1652. var printDisease = [];
  1653. var clen = this.checkDisease.length;
  1654. for (let index = 0; index < clen; index++) {
  1655. if (this.checkDisease[index].id in diseasesIdArr) {
  1656. printDisease.push(this.checkDisease[index].name);
  1657. }
  1658. }
  1659. this.patientPrint.diseases = printDisease.join("、");
  1660. } else {
  1661. this.patientPrint.diseases = "";
  1662. }
  1663. if (patietInfo.registrars_id > 0) {
  1664. var eLen = this.adminUserOptions.length;
  1665. for (let index = 0; index < eLen; index++) {
  1666. if (
  1667. this.adminUserOptions[index].id === patietInfo.registrars_id
  1668. ) {
  1669. this.patientPrint.registrars = this.adminUserOptions[
  1670. index
  1671. ].name;
  1672. this.form.registrars = this.adminUserOptions[index].name;
  1673. break;
  1674. }
  1675. }
  1676. } else {
  1677. this.patientPrint.registrars = "";
  1678. }
  1679. if (patietInfo.hospital_first_dialysis_date !== 0) {
  1680. this.patientPrint.hospital_first_dialysis_date = uParseTime(
  1681. patietInfo.hospital_first_dialysis_date,
  1682. "{y}-{m}-{d}"
  1683. );
  1684. } else {
  1685. this.patientPrint.hospital_first_dialysis_date = "";
  1686. }
  1687. this.checkIdCardNo();
  1688. } else {
  1689. console.log("patient get err state");
  1690. this.$notify.error({
  1691. title: "错误",
  1692. message: "网络异常"
  1693. });
  1694. this.$router.push("/patients/patients");
  1695. }
  1696. // this.postForm = response.data
  1697. // // Just for test
  1698. // this.postForm.title += ` Article Id:${this.postForm.id}`
  1699. // this.postForm.content_short += ` Article Id:${this.postForm.id}`
  1700. })
  1701. .catch(err => {
  1702. console.log("patient get err", err);
  1703. this.$notify.error({
  1704. title: "错误",
  1705. message: "网络异常"
  1706. });
  1707. this.$router.push("/patients/patients");
  1708. });
  1709. },
  1710. fetchAllDoctorAndNurse() {
  1711. fetchAllDoctorAndNurse().then(response => {
  1712. if (response.data.state === 1) {
  1713. this.doctorOptions = response.data.data.doctors;
  1714. this.nurseOptions = response.data.data.nursers;
  1715. }
  1716. });
  1717. },
  1718. fetchAllAdminUsers() {
  1719. fetchAllAdminUsers().then(response => {
  1720. if (response.data.state === 1) {
  1721. this.adminUserOptions = response.data.data.users;
  1722. }
  1723. });
  1724. },
  1725. printCard() {
  1726. var ptime = Math.round(new Date().getTime() / 1000);
  1727. this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
  1728. const style =
  1729. "@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;} }";
  1730. setTimeout(() => {
  1731. printJS({
  1732. printable: "print-card-info",
  1733. type: "html",
  1734. style: style,
  1735. scanStyles: false
  1736. });
  1737. }, 1);
  1738. var patientID = this.patientPrint.id;
  1739. var name = this.patientPrint.name;
  1740. var gender = this.patientPrint.gender;
  1741. if (gender === 1) {
  1742. gender = "男";
  1743. }
  1744. if (gender === 2) {
  1745. gender = "女";
  1746. }
  1747. var idCardNo = this.patientPrint.id_card_no;
  1748. var dialysisNo = this.patientPrint.dialysis_no;
  1749. var phone = this.patientPrint.phone;
  1750. var healthCareNo = this.patientPrint.health_care_no;
  1751. // Base64加密
  1752. var epatientID = this.Base64.encode(patientID);
  1753. var ename = this.Base64.encode(name);
  1754. var egender = this.Base64.encode(gender);
  1755. var eidCardNo = this.Base64.encode(idCardNo);
  1756. var edialysisNo = this.Base64.encode(dialysisNo);
  1757. var ephone = this.Base64.encode(phone);
  1758. var eheathCareNo = this.Base64.encode(healthCareNo);
  1759. console.log(
  1760. "id号:" + epatientID,
  1761. "姓名:" + ename,
  1762. "性别:" + egender,
  1763. "身份证:" + eidCardNo,
  1764. "透析号:" + edialysisNo,
  1765. "电话:" + ephone,
  1766. "社保号:" + eheathCareNo
  1767. );
  1768. // var params =new Object();
  1769. // params.id = this.patientPrint.id
  1770. // params.name = this.patientPrint.name;
  1771. // this.$options.methods.qrcode(epatientID, ename, egender, eidCardNo, edialysisNo, ephone, eheathCareNo)// 调用生成二维码的方法
  1772. this.$options.methods.qrcode(
  1773. patientID,
  1774. name,
  1775. gender,
  1776. idCardNo,
  1777. dialysisNo,
  1778. phone,
  1779. healthCareNo
  1780. );
  1781. // this.$options.methods.qrcode(params)
  1782. },
  1783. showInspectDialog() {
  1784. this.dialogFormVisible = true;
  1785. },
  1786. qrcode(patientID, name, gender, idCardNo, dialysisNo, phone, healthCareNo) {
  1787. document.getElementById("qrcode").innerHTML = "";
  1788. new QRCode("qrcode", {
  1789. width: 200,
  1790. height: 200,
  1791. text:
  1792. "user_id:" +
  1793. patientID +
  1794. "," +
  1795. "name:" +
  1796. name +
  1797. "," +
  1798. "dialysis_no:" +
  1799. dialysisNo +
  1800. "," +
  1801. "gender:" +
  1802. gender +
  1803. "," +
  1804. "idcard_no:" +
  1805. idCardNo +
  1806. "," +
  1807. "phone:" +
  1808. phone +
  1809. "," +
  1810. "healthcare_no:" +
  1811. healthCareNo
  1812. });
  1813. },
  1814. checkIdCardNo() {
  1815. if (!isCardNo(this.form.idCardNo)) {
  1816. this.$message.error("身份证号码信息有误!");
  1817. this.form.birth = "";
  1818. return false;
  1819. }
  1820. var thisLen = this.form.idCardNo.length;
  1821. var birth = "";
  1822. if (thisLen == 15) {
  1823. birth = "19" + this.form.idCardNo.substr(6, 6);
  1824. } else {
  1825. birth = this.form.idCardNo.substr(6, 8);
  1826. }
  1827. this.form.birth =
  1828. birth.substr(0, 4) +
  1829. "-" +
  1830. birth.substr(4, 2) +
  1831. "-" +
  1832. birth.substr(6, 2);
  1833. this.form.age = jsGetAge(this.form.birth, "-");
  1834. }
  1835. // qrcode(params){
  1836. // new QRCode('qrcode',{
  1837. // width:200,
  1838. // height:200,
  1839. // text:params,
  1840. // })
  1841. // }
  1842. }
  1843. };
  1844. </script>
  1845. <style rel="stylesheet/scss" lang="scss" scoped>
  1846. .uploadHead {
  1847. margin-top: 25%;
  1848. }
  1849. .uploadHeadBtn {
  1850. width: 148px;
  1851. margin-top: 10px;
  1852. }
  1853. .el-form {
  1854. .el-col-6,
  1855. .el-col-8 {
  1856. width: 360px;
  1857. height: 59px !important;
  1858. }
  1859. .el-form-item {
  1860. // margin-bottom: 17px !important;
  1861. .el-select {
  1862. width: 100%;
  1863. }
  1864. .el-date-editor.el-input {
  1865. width: 100%;
  1866. }
  1867. .textarea {
  1868. width: 100%;
  1869. height: 70px;
  1870. border-color: #dcdfe6;
  1871. padding: 5px;
  1872. }
  1873. }
  1874. }
  1875. // #print-info-box .info_print {
  1876. // width: 920px;
  1877. // margin: 0 auto !important;
  1878. // position: relative;
  1879. // top: 0;
  1880. // left: 0;
  1881. // padding: 20px 30px;
  1882. // }
  1883. // #print-info-box .box-title {
  1884. // text-align: center;
  1885. // font-weight: 600;
  1886. // font-size: 30px;
  1887. // line-height: 80px;
  1888. // margin-bottom: 20px;
  1889. // }
  1890. // #print-info-box .unit-title {
  1891. // text-align: center;
  1892. // line-height: 40px;
  1893. // font-size: 20px;
  1894. // font-weight: 400;
  1895. // padding-top: 10px;
  1896. // /* border: 1px solid #333; */
  1897. // }
  1898. // #print-info-box .unit-box {
  1899. // padding: 15px;
  1900. // }
  1901. // #print-info-box .unit-box-item {
  1902. // display: flex;
  1903. // align-items: center;
  1904. // justify-content: space-between;
  1905. // padding: 4px 1em;
  1906. // }
  1907. // #print-info-box .unit-box-item-col3 {
  1908. // width: 30%;
  1909. // display: flex;
  1910. // padding: 4px 0;
  1911. // }
  1912. // #print-info-box .unit-box-item-col4 {
  1913. // width: 23%;
  1914. // display: flex;
  1915. // padding: 4px 0;
  1916. // }
  1917. // #print-info-box .item-value {
  1918. // flex: 1;
  1919. // border-bottom: 1px solid #333;
  1920. // }
  1921. </style>
  1922. <style scoped>
  1923. /* 打印表格的样式 */
  1924. .print_main_content {
  1925. background-color: white;
  1926. width: 960px;
  1927. margin: 0 auto;
  1928. padding: 0 0 20px 0;
  1929. }
  1930. .print_main_content .order_title {
  1931. text-align: center;
  1932. font-size: 23px;
  1933. line-height: 50px;
  1934. font-weight: 500;
  1935. }
  1936. .print_main_content table {
  1937. width: 100%;
  1938. border: 1px solid;
  1939. border-collapse: collapse;
  1940. padding: 2px;
  1941. }
  1942. .print_main_content table tbody tr td {
  1943. border: 1px solid;
  1944. text-align: center;
  1945. /* font-size: 17px; */
  1946. padding: 10px 8px;
  1947. }
  1948. .td_proj_title {
  1949. font-size: 18px;
  1950. line-height: 25px;
  1951. font-weight: 500;
  1952. }
  1953. .td_proj_content {
  1954. font-size: 18px;
  1955. line-height: 25px;
  1956. }
  1957. .td_align_left {
  1958. text-align: left;
  1959. }
  1960. .print_footnote_panel {
  1961. font-size: 17px;
  1962. line-height: 40px;
  1963. }
  1964. .print_footnote_panel .proj {
  1965. display: inline-block;
  1966. width: 49%;
  1967. }
  1968. .print_footnote_panel .proj .proj_title {
  1969. font-weight: 500;
  1970. }
  1971. .el-select-dropdown {
  1972. z-index: 998 !important;
  1973. }
  1974. </style>