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

PatientDetail.vue 71KB

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