patients.vue 66KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101
  1. <template>
  2. <div class="main-contain">
  3. <el-dialog
  4. title="提示"
  5. :visible.sync="exportVisible"
  6. width="40%"
  7. >
  8. <div>
  9. 您提交的患者名单已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
  10. </div>
  11. <span slot="footer" class="dialog-footer">
  12. <el-button @click="exportVisible = false">取 消</el-button>
  13. <el-button type="primary" @click="exportVisible = false">确 定</el-button>
  14. </span>
  15. </el-dialog>
  16. <el-dialog
  17. title="提示"
  18. :visible.sync="dialogVisible"
  19. width="40%"
  20. >
  21. <span>您提交的文档不是系统标准导入模板,请检查您的文档或重新 <a href="https://kuyi.shengws.com/patient_template.xlsx" style="color: blue" download="template">下载导入模板</a></span>
  22. <span slot="footer" class="dialog-footer">
  23. <el-button @click="dialogVisible = false">取 消</el-button>
  24. <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
  25. </span>
  26. </el-dialog>
  27. <el-dialog
  28. title="提示"
  29. :visible.sync="dialysisVisible"
  30. width="40%"
  31. >
  32. <span>您提交的文档中存在不同病人存在相同的透析号,请检查修改后在提交 </span>
  33. <span slot="footer" class="dialog-footer">
  34. <el-button @click="dialysisVisible = false">取 消</el-button>
  35. <el-button type="primary" @click="dialysisVisible = false">确 定</el-button>
  36. </span>
  37. </el-dialog>
  38. <el-dialog
  39. title="提示"
  40. :visible.sync="phoneVisible"
  41. width="40%"
  42. >
  43. <span>您提交的文档中存在不同病人存在相同的手机号,请检查修改后在提交 </span>
  44. <span slot="footer" class="dialog-footer">
  45. <el-button @click="phoneVisible = false">取 消</el-button>
  46. <el-button type="primary" @click="phoneVisible = false">确 定</el-button>
  47. </span>
  48. </el-dialog>
  49. <el-dialog
  50. title="提示"
  51. :visible.sync="idCardNoVisible"
  52. width="40%"
  53. >
  54. <span>您提交的文档中存在不同病人存在相同的身份证,请检查修改后在提交 </span>
  55. <span slot="footer" class="dialog-footer">
  56. <el-button @click="idCardNoVisible = false">取 消</el-button>
  57. <el-button type="primary" @click="idCardNoVisible = false">确 定</el-button>
  58. </span>
  59. </el-dialog>
  60. <el-dialog
  61. title="提示"
  62. :visible.sync="exportLogVisible"
  63. width="40%"
  64. >
  65. <div v-for="(item,index) in logs" :key="index">
  66. <span> {{ item.export_time | parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</span>
  67. <br/>
  68. <br/>
  69. <span>{{getContent(item)}}</span>
  70. <span >点击</span>
  71. <span style="color:blue" @click="generateTxt(item)">查看详情</span>
  72. <br/>
  73. <br/>
  74. </div>
  75. <span slot="footer" class="dialog-footer">
  76. <el-button @click="exportLogVisible = false">取 消</el-button>
  77. <el-button type="primary" @click="exportLogVisible = false">确 定</el-button>
  78. </span>
  79. </el-dialog>
  80. <div class="position">
  81. <bread-crumb :crumbs="crumbs"></bread-crumb>
  82. <div style="display:flex;align-items:center">
  83. <el-badge :value=value class="item">
  84. <el-button size="small" type="primary" @click="toRemind">传染病检查提醒</el-button>
  85. </el-badge>
  86. <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload" v-if="isShow"></upload-excel>
  87. <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
  88. style="margin-left:15px">
  89. <el-button
  90. class="filter-item"
  91. type="primary"
  92. size="small"
  93. >下载模版
  94. </el-button>
  95. </el-link>
  96. <el-button
  97. style="margin-left:10px;"
  98. @click="generateLog()"
  99. class="filter-item"
  100. type="primary"
  101. size="small"
  102. >下载日志
  103. </el-button>
  104. <el-button
  105. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  106. @click="$router.push({ path: '/patients/create' })"
  107. class="filter-item"
  108. type="primary"
  109. icon="el-icon-circle-plus-outline"
  110. size="small"
  111. >新增
  112. </el-button>
  113. </div>
  114. <!-- <el-button type="primary" plain style="float:right;" icon="el-icon-download" @click="putOnRecord(2,{})" >备案</el-button> -->
  115. </div>
  116. <div class="app-container">
  117. <div class="cell clearfix">
  118. <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
  119. <el-input
  120. style="width: 400px;"
  121. v-model.trim="searchKey"
  122. class="filter-item"
  123. placeholder="病人姓名/透析号"
  124. size="small"
  125. @keyup.enter.native='search'
  126. />
  127. <el-button
  128. class="filter-item"
  129. type="primary"
  130. icon="el-icon-search"
  131. @click="search"
  132. size="small"
  133. >搜索
  134. </el-button
  135. >
  136. </div>
  137. <div class="cell clearfix">
  138. <label class="title"><span class="name">日期查询</span> : </label>
  139. <el-date-picker
  140. size="small"
  141. clearable
  142. v-model="listQuery.start_time"
  143. prefix-icon="el-icon-date"
  144. @change="changeTimeOne"
  145. :editable="false"
  146. style="width: 196px;"
  147. type="date"
  148. placeholder="选择日期时间"
  149. align="right"
  150. format="yyyy-MM-dd"
  151. value-format="yyyy-MM-dd"
  152. >
  153. </el-date-picker>
  154. <span class="cellLine"> - </span>
  155. <el-date-picker
  156. size="small"
  157. clearable
  158. v-model="listQuery.end_time"
  159. prefix-icon="el-icon-date"
  160. @change="changeTime"
  161. :editable="false"
  162. style="width: 196px;"
  163. type="date"
  164. placeholder="选择日期时间"
  165. align="right"
  166. format="yyyy-MM-dd"
  167. value-format="yyyy-MM-dd"
  168. >
  169. </el-date-picker>
  170. </div>
  171. <div class="cell clearfix">
  172. <label class="title"><span class="name">排班班次</span> : </label>
  173. <div class="time ">
  174. <ul class="">
  175. <li
  176. :class="item.value == schedulType ? 'active' : ''"
  177. @click="selectSchedulType(item.value)"
  178. v-for="item in schedulArr"
  179. :key="item.value"
  180. >
  181. {{ item.label }}
  182. </li>
  183. </ul>
  184. </div>
  185. </div>
  186. <div class="cell clearfix">
  187. <label class="title"><span class="name">状态</span> : </label>
  188. <div class="time ">
  189. <ul class="">
  190. <li
  191. :class="item.value == systemType ? 'active' : ''"
  192. @click="selectSystemType(item.value)"
  193. v-for="item in systemArr"
  194. :key="item.value"
  195. >
  196. {{ item.label }}
  197. </li>
  198. </ul>
  199. </div>
  200. </div>
  201. <div class="cell clearfix">
  202. <label class="title"><span class="name">转归情况</span> : </label>
  203. <div class="time ">
  204. <ul class="">
  205. <li
  206. :class="item.lapseto == lapsetoType ? 'active' : ''"
  207. @click="selectLapseTo(item.lapseto)"
  208. v-for="item in lapsetoArr"
  209. :key="item.value"
  210. >
  211. {{ item.label }}
  212. </li>
  213. </ul>
  214. </div>
  215. </div>
  216. <div class="cell clearfix">
  217. <label class="title"><span class="name">病人来源</span> : </label>
  218. <div class="time ">
  219. <ul class="">
  220. <li
  221. :class="item.source == sourceType ? 'active' : ''"
  222. @click="selectSource(item.source)"
  223. v-for="item in sourceArr"
  224. :key="item.value"
  225. >
  226. {{ item.label }}
  227. </li>
  228. </ul>
  229. </div>
  230. </div>
  231. <!-- <div class="cell clearfix">
  232. <label class="title"><span class="name">患者去向</span> : </label>
  233. <div class="time ">
  234. <ul class="">
  235. <li
  236. :class="item.source == patientSoureType ? 'active' : ''"
  237. @click="selectPatientSource(item.source)"
  238. v-for="item in patientSourceList"
  239. :key="item.value"
  240. >
  241. {{ item.label }}
  242. </li>
  243. </ul>
  244. </div>
  245. </div> -->
  246. <div class="cell clearfix">
  247. <label class="title"><span class="name">主管护士</span> : </label>
  248. <el-select v-model="form.nurse" style="width:200px" @change="changeNuseSearch">
  249. <el-option
  250. placeholder="主管护士"
  251. v-for="(item,index) in adminUserOptions"
  252. :key="index"
  253. :label="item.name"
  254. :value="item.id"
  255. />
  256. </el-select>
  257. </div>
  258. <div class="cell clearfix">
  259. <label class="title"><span class="name">其它查询</span> : </label>
  260. <el-select
  261. v-model="listQuery.contagion"
  262. size="small"
  263. clearable
  264. placeholder="传染病"
  265. @change="changeOtherSearch"
  266. >
  267. <el-option
  268. v-for="item in contagionList"
  269. :key="item.id"
  270. :label="item.name"
  271. :value="item.id"
  272. >
  273. </el-option>
  274. </el-select>
  275. <el-select
  276. style="margin-left: 10px;"
  277. v-model="listQuery.reimbursement_way"
  278. size="small"
  279. clearable
  280. placeholder="付费方式"
  281. @change="changeOtherSearch"
  282. >
  283. <el-option
  284. v-for="item in reimbursement_ways"
  285. :key="item.id"
  286. :label="item.name"
  287. :value="item.id"
  288. >
  289. </el-option>
  290. </el-select>
  291. <el-select
  292. v-model="listQuery.isscheduling"
  293. collapse-tags
  294. style="margin-left: 10px;"
  295. clearable
  296. placeholder="排班情况"
  297. size="small"
  298. @change="changeOtherSearch"
  299. >
  300. <el-option
  301. v-for="item in scheduling"
  302. :key="item.value"
  303. :label="item.label"
  304. :value="item.value"
  305. >
  306. </el-option>
  307. </el-select>
  308. <el-select
  309. v-model="listQuery.isprescription"
  310. collapse-tags
  311. style="margin-left:10px;"
  312. clearable
  313. placeholder="透析处方"
  314. size="small"
  315. @change="changeOtherSearch"
  316. >
  317. <el-option
  318. v-for="item in prescription"
  319. :key="item.value"
  320. :label="item.label"
  321. :value="item.value"
  322. >
  323. </el-option>
  324. </el-select>
  325. <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
  326. <!-- <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button> -->
  327. </div>
  328. <div class="cell clearfix">
  329. </div>
  330. <el-table
  331. ref="multipleTable"
  332. :row-style="{ color: '#303133' }"
  333. :header-cell-style="{
  334. backgroundColor: 'rgb(245, 247, 250)',
  335. color: '#606266'
  336. }"
  337. :data="tableData"
  338. border
  339. fit
  340. highlight-current-row
  341. style="width: 100%;margin-top: 10px;"
  342. @selection-change="handleSelectionChange"
  343. >
  344. <el-table-column
  345. align="center"
  346. label="全选"
  347. width="60px"
  348. type="selection"
  349. ></el-table-column>
  350. <el-table-column
  351. type="index"
  352. label="序号"
  353. width="40px"
  354. align="center"
  355. ></el-table-column>
  356. <el-table-column
  357. label="透析号"
  358. min-width="70"
  359. property="dialysis_no"
  360. align="center"
  361. style="color:red"
  362. ></el-table-column>
  363. <el-table-column
  364. label="住院号"
  365. min-width="70"
  366. property="admission_number"
  367. align="center"
  368. >
  369. </el-table-column>
  370. <el-table-column
  371. property="name"
  372. label="姓名"
  373. min-width="70"
  374. align="center"
  375. >
  376. <template slot-scope="scope">
  377. <router-link
  378. :to="'/patients/patient/' + scope.row.id"
  379. style="color:#409eff;width:100%;display:block;"
  380. >{{ scope.row.name }}
  381. </router-link
  382. >
  383. </template>
  384. </el-table-column>
  385. <el-table-column label="性别" min-width="60" align="center">
  386. <template slot-scope="scope">
  387. <span v-if="scope.row.gender == 1">男</span>
  388. <span v-else-if="scope.row.gender == 2">女</span>
  389. <span v-else>未知</span>
  390. </template>
  391. </el-table-column>
  392. <el-table-column label="来源" min-width="60" align="center">
  393. <template slot-scope="scope">
  394. <span v-if="scope.row.source == 1">门诊</span>
  395. <span v-else-if="scope.row.source == 2">住院</span>
  396. <span v-else-if="scope.row.source == 3">门特</span>
  397. <span v-else>未知</span>
  398. </template>
  399. </el-table-column>
  400. <el-table-column label="透析次数" min-width="84" align="center">
  401. <template slot-scope="scope">
  402. <span>{{ getCount(scope.row) }}</span>
  403. </template>
  404. </el-table-column>
  405. <!-- <el-table-column min-width="150" label="二维码" align="center">
  406. <template slot-scope="scope" type="text">
  407. <a style="color:#409eff" v-if="scope.row.binding_state==1" @click="openWechatBindDialog">已绑定</a>
  408. <a style="color:#409eff" v-else @click="openWechatBindDialog">生成</a>
  409. </template>
  410. </el-table-column> -->
  411. <el-table-column label="登记日期" min-width="120" align="center">
  412. <template slot-scope="scope">
  413. <span>{{ scope.row.created_time | parseTime('{y}-{m}-{d}') }}</span>
  414. </template>
  415. </el-table-column>
  416. <el-table-column label="转归" align="center">
  417. <template slot-scope="scope">
  418. <span>{{ LapsetoInfo(scope.row) }}</span>
  419. </template>
  420. </el-table-column>
  421. <el-table-column label="转出(死亡)时间" min-width="134" align="center">
  422. <template slot-scope="scope">
  423. <!-- <span>{{getTime(scope.row.death_time)}}</span>-->
  424. <span v-if="scope.row.lapseto == 1"> </span>
  425. <span v-else >{{getTime(scope.row.death_time)}}</span>
  426. </template>
  427. </el-table-column>
  428. <el-table-column label="转出(死亡)原因" align="center" min-width="150">
  429. <template slot-scope="scope">
  430. <!-- <span>{{scope.row.out_reason}}</span>-->
  431. <span v-if="scope.row.lapseto == 1"> </span>
  432. <span v-else >{{scope.row.out_reason}}</span>
  433. </template>
  434. </el-table-column>
  435. <el-table-column label="操作" align="center" min-width="140">
  436. <template slot-scope="scope">
  437. <el-tooltip
  438. class="item"
  439. effect="dark"
  440. content="转归"
  441. placement="top"
  442. >
  443. <el-button
  444. type="primary"
  445. icon="el-icon-edit"
  446. size="small"
  447. @click="OpenSetLapseto(scope.row, scope.$index)"
  448. ></el-button>
  449. </el-tooltip>
  450. <el-tooltip
  451. class="item"
  452. effect="dark"
  453. content="流转记录"
  454. placement="top"
  455. >
  456. <el-button
  457. type="danger"
  458. icon="el-icon-tickets"
  459. size="small"
  460. @click="toOpen(scope.row.id)"
  461. ></el-button>
  462. </el-tooltip>
  463. </template>
  464. </el-table-column>
  465. </el-table>
  466. <!-- <pagi-nation title="分页"></pagi-nation> -->
  467. <el-pagination
  468. @size-change="handleSizeChange"
  469. @current-change="handleCurrentChange"
  470. :current-page="listQuery.page"
  471. :page-sizes="[10, 20, 50, 100,200,500,1000,2000]"
  472. :page-size="listQuery.limit"
  473. background
  474. style="margin-top:20px;"
  475. align="right"
  476. layout="total, sizes, prev, pager, next, jumper"
  477. :total="total"
  478. >
  479. </el-pagination>
  480. <el-dialog
  481. title="微信绑定"
  482. :visible.sync="bindWechatDialog"
  483. width="30%"
  484. center
  485. >
  486. <img :src="wechatbindimg" width="100%" alt="" v-if="wechatbindimg"/>
  487. <i class="el-icon-loading" v-else></i>
  488. <span slot="footer" class="dialog-footer">
  489. <el-button type="primary" @click="bindWechatDialog = false"
  490. >关闭</el-button
  491. >
  492. </span>
  493. </el-dialog>
  494. <el-dialog title="转归" :visible.sync="LapsetoDialogVisible">
  495. <el-form
  496. :model="lapsetoForm"
  497. :rules="lapsetoRules"
  498. ref="lapsetoForm"
  499. label-width="140px"
  500. >
  501. <el-form-item label="治疗状态(转归):" prop="lapseto_type" required>
  502. <el-radio-group v-model="lapsetoForm.lapseto_type">
  503. <el-radio
  504. v-for="item in lapsetoOptions"
  505. :key="item.value"
  506. :label="item.value"
  507. :value="item.value"
  508. >{{ item.label }}
  509. </el-radio
  510. >
  511. </el-radio-group>
  512. </el-form-item>
  513. <el-form-item label="转归(死亡)时间 :" prop="lapseto_time" required v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3">
  514. <el-date-picker
  515. v-model="lapsetoForm.lapseto_time"
  516. type="date"
  517. format="yyyy-MM-dd"
  518. value-format="yyyy-MM-dd"
  519. placeholder="选择日期时间"
  520. default-time="12:00:00"
  521. >
  522. </el-date-picker>
  523. </el-form-item>
  524. <el-form-item label="转出(死亡)原因:" v-if="lapsetoForm.lapseto_type == 2 || lapsetoForm.lapseto_type == 3">
  525. <el-input v-model="lapsetoForm.out_reason"></el-input>
  526. </el-form-item>
  527. <el-form-item label="开始时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
  528. <el-date-picker
  529. size="small"
  530. v-model="form.patient_start_time"
  531. prefix-icon="el-icon-date"
  532. :editable="false"
  533. style="width: 150px;"
  534. type="date"
  535. placeholder="选择日期时间"
  536. align="right"
  537. format="yyyy-MM-dd"
  538. value-format="yyyy-MM-dd"
  539. ></el-date-picker>
  540. </el-form-item>
  541. <el-form-item label="结束时间:" v-if="lapsetoForm.lapseto_type != 2 && lapsetoForm.lapsetoType !=3">
  542. <el-date-picker
  543. size="small"
  544. v-model="form.patient_end_time"
  545. prefix-icon="el-icon-date"
  546. :editable="false"
  547. style="width: 150px;"
  548. type="date"
  549. placeholder="选择日期时间"
  550. align="right"
  551. format="yyyy-MM-dd"
  552. value-format="yyyy-MM-dd"
  553. ></el-date-picker>
  554. </el-form-item>
  555. <el-form-item label="转院地区:" v-if="lapsetoForm.lapseto_type == 4">
  556. <el-select v-model="form.patient_address" placeholder="请选择">
  557. <el-option
  558. v-for="item in liuAddresslist"
  559. :key="item.id"
  560. :label="item.name"
  561. :value="item.name">
  562. </el-option>
  563. </el-select>
  564. </el-form-item>
  565. </el-form>
  566. <div slot="footer" class="dialog-footer">
  567. <el-button @click="LapsetoDialogVisible = false">取 消</el-button>
  568. <el-button type="primary" @click="EditLapseto()">保 存</el-button>
  569. </div>
  570. </el-dialog>
  571. <el-dialog
  572. title="签到卡"
  573. :visible.sync="centerDialogVisible"
  574. :close-on-click-modal="false"
  575. @opened="ShowQRCode()"
  576. width="30%"
  577. center
  578. >
  579. <div align="center" style="margin-bottom:6px;font-size:20px">
  580. <!-- 姓名:<el-input v-model="name" size="small" style="width:200px"></el-input><br> -->
  581. 姓名:<span>{{ this.name }}</span>
  582. </div>
  583. <div align="center" style="margin-bottom:10px;font-size:20px">
  584. <!-- 透析号:<el-input v-model="dialysis_no" size="small" style="width:200px"></el-input><br> -->
  585. 透析号:<span>{{ this.dialysis_no }}</span>
  586. </div>
  587. <div id="qrcode" align="center"></div>
  588. <span slot="footer" class="dialog-footer">
  589. <!-- <el-button type="primary" @click="download()">下载</el-button> -->
  590. <el-button type="primary" @click="print()">打印</el-button>
  591. </span>
  592. </el-dialog>
  593. <div hidden="hidden">
  594. <div id="print-card-info">
  595. <div
  596. class="order_title"
  597. align="center"
  598. style="margin-bottom:20px;font-size:35px"
  599. >
  600. 签到卡
  601. </div>
  602. <div align="center" style="margin-bottom:4px;font-size:25px">
  603. 姓名:<span>&nbsp;&nbsp;{{ this.name }}</span
  604. ><br/>
  605. </div>
  606. <div align="center" style="margin-bottom:20px;font-size:25px">
  607. 透析号:<span>&nbsp;&nbsp;{{ this.dialysis_no }}</span>
  608. </div>
  609. <div>
  610. <div id="code" align="center"></div>
  611. </div>
  612. </div>
  613. </div>
  614. </div>
  615. <el-dialog title="传染病检查提醒通知" :visible.sync="dialogTableVisible">
  616. <el-table :data="gridData">
  617. <el-table-column property="date" align="center" label="姓名" width="150">
  618. <template slot-scope="scope">{{scope.row.name}}</template>
  619. </el-table-column>
  620. <el-table-column property="name" align="center" label="检查日期" width="200">
  621. <template slot-scope="scope">
  622. <span
  623. v-if="dateCompare(scope.row.infectious_next_record_time) == 1"
  624. >
  625. <span v-if="parseInt(scope.row.infectious_next_record_time)>100000000">{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
  626. </span>
  627. <span
  628. v-if="dateCompare(scope.row.infectious_next_record_time) == 2"
  629. style="color: red"
  630. >
  631. <span v-if="parseInt(scope.row.infectious_next_record_time)>100000000">{{ scope.row.infectious_next_record_time | parseTime('{y}-{m}-{d}')}}</span>
  632. </span>
  633. </template>
  634. </el-table-column>
  635. <el-table-column property="address" align="center" label="操作">
  636. <template slot-scope="scope">
  637. <el-button size="mini" type="primary" @click="jump(scope.row.id)">查看</el-button>
  638. </template>
  639. </el-table-column>
  640. </el-table>
  641. <el-pagination
  642. @size-change="handleSizeChangeOne"
  643. @current-change="handleCurrentChangeOne"
  644. :page-size="5"
  645. :page-sizes="[10, 20, 50, 100,500,1000,2000]"
  646. background
  647. style="margin-top:20px;float: right"
  648. :total="value"
  649. ></el-pagination>
  650. </el-dialog>
  651. <el-dialog
  652. title="流转记录"
  653. :visible.sync="patieintDialogVisible"
  654. width="50%">
  655. <span>
  656. <el-table
  657. :data="patientAllgicList"
  658. border
  659. style="width: 100%">
  660. <el-table-column prop="date" label="序号" width="100" align="center">
  661. <template slot-scope="scope">
  662. {{ scope.$index + 1 }}
  663. </template>
  664. </el-table-column>
  665. <el-table-column prop="date" label="转归方式" width="100" align="center">
  666. <template slot-scope="scope">
  667. {{getPatientSource(scope.row.patient_source) }}
  668. </template>
  669. </el-table-column>
  670. <el-table-column prop="name" label="开始时间" width="180" align="center">
  671. <template slot-scope="scope" >
  672. {{ getTime(scope.row.start_time) }}
  673. </template>
  674. </el-table-column>
  675. <el-table-column prop="name" label="结束时间" width="180" align="center">
  676. <template slot-scope="scope" >
  677. {{ getTime(scope.row.end_time) }}
  678. </template>
  679. </el-table-column>
  680. <el-table-column prop="date" label="转院地区" width="180" align="center">
  681. <template slot-scope="scope">
  682. {{ scope.row.patient_address }}
  683. </template>
  684. </el-table-column>
  685. </el-table>
  686. </span>
  687. <span slot="footer" class="dialog-footer">
  688. <el-button @click="patieintDialogVisible = false">取 消</el-button>
  689. </span>
  690. </el-dialog>
  691. </div>
  692. </template>
  693. <script>
  694. import { fetchAllAdminUsers } from "@/api/doctor";
  695. import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind,getPatientAllagic,getExportList } from '@/api/patient'
  696. import { generateLog } from '@/api/config'
  697. import QRCode from 'qrcodejs2'
  698. import Vue from 'vue'
  699. import { Base64 } from 'js-base64'
  700. import { jsGetAge,uParseTime } from '@/utils/tools'
  701. import { log } from 'util'
  702. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  703. import UploadExcel from '@/xt_pages/components/UploadExcel'
  704. import { getDataConfig } from "@/utils/data";
  705. export default {
  706. name: 'Patient',
  707. components: {
  708. UploadExcel,
  709. BreadCrumb
  710. },
  711. data() {
  712. return {
  713. logs: [],
  714. downloadUrl: 'https://kuyi.shengws.com/patient_template.xltx',
  715. crumbs: [
  716. { path: false, name: '病人管理' },
  717. { path: '/patients/patients', name: '病人管理' }
  718. ],
  719. lapsetoRules: {
  720. lapseto_type: [{ required: true, message: '请选择治疗状态' }],
  721. lapseto_time: [{ required: true, message: '请选择时间' }]
  722. },
  723. currentIndex: -1,
  724. LapsetoDialogVisible: false,
  725. centerDialogVisible: false,
  726. checkAll: false,
  727. isIndeterminate: true,
  728. dialogVisible: false,
  729. exportLogVisible: false,
  730. exportVisible:false,
  731. phoneVisible:false,
  732. idCardNoVisible:false,
  733. patieintDialogVisible:false,
  734. wechatbindimg: '',
  735. isShow:true,
  736. active: true,
  737. schedulType: 0,
  738. lapsetoForm: {
  739. lapseto_type: 0,
  740. lapseto_time: '',
  741. patient_id: 0,
  742. out_reason:''
  743. },
  744. schedulArr: [
  745. { value: 0, label: '全部' },
  746. { value: 1, label: '上午' },
  747. { value: 2, label: '下午' },
  748. { value: 3, label: '晚上' }
  749. ],
  750. lapsetoOptions: [
  751. { value: 1, label: '留治' },
  752. { value: 2, label: '转出' },
  753. { value: 3, label: "死亡" },
  754. { value: 4, label: "转院" },
  755. { value: 5, label:"肾移植"},
  756. { value: 6, label:"转腹透"},
  757. { value:7, label:"出院"},
  758. { value:8, label:"好转"},
  759. { value:9, label:"放弃治疗"},
  760. { value:10, label:"其他状态"},
  761. { value:11, label:"请假"},
  762. ],
  763. systemType: 0,
  764. systemArr: [
  765. { value: 0, label: '全部' },
  766. { value: 1, label: '已绑定' },
  767. { value: 2, label: '未绑定' }
  768. ],
  769. sourceType: 0,
  770. patientSoureType:0,
  771. sourceID: 0,
  772. lapsetoType: 1,
  773. sourceArr: [
  774. { value: 0, label: '全部', source: 0, lapseto: 0 },
  775. // { value: 1, label: "转出", source: 0, lapseto: 2 },
  776. // { value: 2, label: "留治", source: 0, lapseto: 1 },
  777. { value: 1, label: '门诊', source: 1, lapseto: 1 },
  778. { value: 2, label: '住院', source: 2, lapseto: 1 },
  779. { value: 3, label: '门特', source: 3, lapseto: 1 }
  780. ],
  781. patientSourceList:[
  782. {value:0,label:"全部",source:0,lapeseto:0},
  783. {value:1,label:"门诊",source:1,lapeseto:1},
  784. {value:2,label:"住院",source:2,lapeseto:2},
  785. {value:3,label:"门特",source:3,lapeseto:3},
  786. ],
  787. lapsetoArr: [
  788. { value: 0, label: '全部', source: 0, lapseto: 0 },
  789. { value: 1, label: '转出', source: 0, lapseto: 2 },
  790. { value: 2, label: '留治', source: 0, lapseto: 1 },
  791. { value: 3, label: '死亡', source:0, lapseto: 3 },
  792. { value: 4, label: "转院", source: 0, lapseto: 4 },
  793. { value: 5, label: "肾移植", source: 0, lapseto: 5 },
  794. { value: 6, label: "转腹透", source: 0, lapseto: 6 },
  795. { value: 7, label: "出院", source: 0, lapseto: 7 },
  796. { value: 8, label: "好转", source: 0, lapseto: 8 },
  797. { value: 9, label: "放弃治疗", source: 0, lapseto: 9 },
  798. { value: 10, label: "其他状态", source: 0, lapseto: 10 },
  799. { value: 11, label: "请假", source: 0, lapseto: 11 },
  800. ],
  801. scheduling: [
  802. {
  803. value: 1,
  804. label: '已排班'
  805. },
  806. {
  807. value: 2,
  808. label: '未排班'
  809. }
  810. ],
  811. prescription: [
  812. {
  813. value: 1,
  814. label: '有处方'
  815. },
  816. {
  817. value: 2,
  818. label: '无处方'
  819. }
  820. ],
  821. tableData: null,
  822. searchKey: '',
  823. // value2: '',
  824. total: 0,
  825. pageTotal: 0,
  826. dialysisVisible:false,
  827. pageSelect: 0,
  828. max_dialysis_no: '',
  829. listQuery: {
  830. page: 1,
  831. limit: 10,
  832. schedul_type: 0,
  833. binding_state: 0,
  834. lapseto: 1,
  835. source: 0,
  836. start_time: '',
  837. end_time: '',
  838. keywords: '',
  839. contagion: '',
  840. reimbursement_way: '',
  841. isscheduling: '',
  842. isprescription: '',
  843. patientSoureType:'',
  844. nurse:0,
  845. },
  846. multipleSelection: [],
  847. bindWechatDialog: false,
  848. contagionList: [],
  849. reimbursement_ways: [],
  850. patient: null,
  851. id: '',
  852. name: '',
  853. dialysis_no: '',
  854. patientPrint: {},
  855. patient_id: '',
  856. gender: '',
  857. idcardno: '',
  858. phone: '',
  859. healthcareno: '',
  860. startTime: '',
  861. export_date: [],
  862. lapeseto:"",
  863. value:13,
  864. dialogTableVisible:false,
  865. gridData:[],
  866. totalOne: 0,
  867. page: 1,
  868. limit: 5,
  869. patientAllgicList:[],
  870. liuAddresslist:[],
  871. form:{
  872. patient_address:"",
  873. patient_start_time:"",
  874. patient_end_time:"",
  875. nurse:"0"
  876. },
  877. adminUserOptions:[],
  878. scheduleList:[],
  879. patientsList:[]
  880. }
  881. },
  882. created() {
  883. this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
  884. if(sessionStorage.getItem('patientPageSize')){
  885. this.listQuery.limit = parseInt(sessionStorage.getItem('patientPageSize'))
  886. }
  887. this.getList()
  888. this.contagionList = this.$store.getters.contagions
  889. this.reimbursement_ways = this.$store.getters.reimbursement_ways
  890. const keyword = this.$route.query && this.$route.query.keyword
  891. if (typeof keyword === 'string' && keyword.length > 0) {
  892. this.listQuery.keywords = keyword
  893. this.searchKey = keyword
  894. }
  895. //获取
  896. this.GetRemindPatientList()
  897. this.fetchAllAdminUsers();
  898. this.getExportList()
  899. },
  900. methods: {
  901. getExportList(){
  902. getExportList(this.listQuery).then(response=>{
  903. if(response.data.state ==1){
  904. this.scheduleList = response.data.data.schedule
  905. this.patientsList = response.data.data.patientsList
  906. }
  907. })
  908. },
  909. fetchAllAdminUsers() {
  910. fetchAllAdminUsers().then((response) => {
  911. if (response.data.state === 1) {
  912. var obj ={id:0,name:"全部"}
  913. this.adminUserOptions.push(obj)
  914. for(let i=0;i<response.data.data.users.length;i++){
  915. this.adminUserOptions.push(response.data.data.users[i])
  916. }
  917. }
  918. });
  919. },
  920. putOnRecord:function(type,row){
  921. if(type == 1){
  922. }else{
  923. }
  924. },
  925. generateTxt: function(log) {
  926. var content = ''
  927. var errlog = log.err_logs
  928. content = this.getContent(log)
  929. for (let i = 0; i < errlog.length; i++) {
  930. if (content.length == 0) {
  931. content = errlog[i].err_msg
  932. } else {
  933. content = content + '\n' + errlog[i].err_msg
  934. }
  935. }
  936. var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' })
  937. if (typeof url === 'object' && url instanceof Blob) {
  938. url = URL.createObjectURL(url) // 创建blob地址
  939. }
  940. const aLink = document.createElement('a')
  941. aLink.href = url
  942. aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt'
  943. aLink.click()
  944. },
  945. getContent(log) {
  946. return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
  947. },
  948. timestampToTime(timestamp) {
  949. var date = new Date(timestamp * 1000)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
  950. var Y = date.getFullYear() + '年'
  951. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月'
  952. var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 '
  953. var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时'
  954. var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分'
  955. var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒'
  956. return Y + M + D + h + m + s
  957. },
  958. generateLog() {
  959. let params = {
  960. 'log_type': 1
  961. }
  962. generateLog(params).then(
  963. response => {
  964. if (response.data.state === 1) {
  965. this.logs = response.data.data.logs
  966. this.exportLogVisible = true
  967. } else {
  968. this.$message.error(response.data.msg)
  969. }
  970. }
  971. )
  972. },
  973. handleSuccess({ results, header }) {
  974. if (header != undefined && header.length > 0) {
  975. var isHasName = header.includes('*姓名')
  976. var isHasGender = header.includes('*性别')
  977. var isHasPhone = header.includes('*手机号')
  978. var isHasIdCard = header.includes('*身份证号')
  979. var isHasDate = header.includes('*首次肾脏治疗时间')
  980. var isHasSource = header.includes('*患者来源')
  981. var isHasLapseto = header.includes('*治疗状态')
  982. var isHasInfectious = header.includes('*传染病')
  983. var isHasDiagnose = header.includes('诊断')
  984. var isHasDialysisNo = header.includes('透析号')
  985. var isHasDryWeight = header.includes('干体重(kg)')
  986. var isHasHeight = header.includes('身高(cm)')
  987. var isHasHomeAddress = header.includes('家庭住址')
  988. if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
  989. this.dialogVisible = true
  990. return
  991. }
  992. } else {
  993. this.dialogVisible = true
  994. return
  995. }
  996. getMaxDialysisNo().then(response => {
  997. if (response.data.state === 1) {
  998. this.max_dialysis_no = response.data.data.dialysis_no
  999. if (this.max_dialysis_no == 0) {
  1000. this.max_dialysis_no = 1
  1001. } else {
  1002. this.max_dialysis_no++
  1003. }
  1004. this.export_date = []
  1005. for (let i = 1; i < results.length; i++) {
  1006. let obj = {}
  1007. for (var key in results[i]) {
  1008. if (results[i]['*姓名'] === undefined) {
  1009. obj['name'] = ''
  1010. } else {
  1011. if (key == '*姓名') {
  1012. obj['name'] = results[i][key].replace(/\s/g,"")
  1013. }
  1014. }
  1015. if (results[i]['*性别'] === undefined) {
  1016. obj['gender'] = '0'
  1017. } else {
  1018. if (key == '*性别') {
  1019. if (results[i][key] == '男') {
  1020. obj['gender'] = '1'
  1021. } else if (results[i][key] == '女') {
  1022. obj['gender'] = '2'
  1023. } else {
  1024. obj['gender'] = '0'
  1025. }
  1026. }
  1027. }
  1028. if (results[i]['*手机号'] === undefined) {
  1029. obj['phone'] = ''
  1030. } else {
  1031. if (key == '*手机号') {
  1032. obj['phone'] = results[i][key].replace(/\s/g,"")
  1033. }
  1034. }
  1035. if (results[i]['*身份证号'] === undefined) {
  1036. obj['id_card_no'] = ''
  1037. } else {
  1038. if (key == '*身份证号') {
  1039. obj['id_card_no'] = results[i][key].replace(/\s/g,"")
  1040. }
  1041. }
  1042. if (results[i]['*首次肾脏治疗时间'] === undefined) {
  1043. obj['first_treatment_date'] = ''
  1044. } else {
  1045. if (key == '*首次肾脏治疗时间') {
  1046. var month = parseInt(results[i][key].replace(/\s/g,"").split('/')[0])
  1047. var day = parseInt(results[i][key].replace(/\s/g,"").split('/')[1])
  1048. var year = parseInt(results[i][key].replace(/\s/g,"").split('/')[2])
  1049. if (year < 10) {
  1050. year = '0' + year
  1051. }
  1052. if (day < 10) {
  1053. day = '0' + day
  1054. }
  1055. if (month < 10) {
  1056. month = '0' + month
  1057. }
  1058. obj['first_treatment_date'] = '20' + year.toString() + '/' + month.toString() + '/' + day.toString()
  1059. }
  1060. }
  1061. if (results[i]['*患者来源'] === undefined) {
  1062. obj['source'] = '3'
  1063. } else {
  1064. if (key == '*患者来源') {
  1065. if (results[i][key] == '门诊') {
  1066. obj['source'] = '1'
  1067. } else if (results[i][key] == '住院') {
  1068. obj['source'] = '2'
  1069. } else if (results[i][key] == '门特') {
  1070. obj['source'] = '3'
  1071. } else {
  1072. obj['source'] = '0'
  1073. }
  1074. }
  1075. }
  1076. if (results[i]['*治疗状态'] === undefined) {
  1077. obj['lapseto'] = '3'
  1078. } else {
  1079. if (key == '*治疗状态') {
  1080. if (results[i][key] == '留治') {
  1081. obj['lapseto'] = '1'
  1082. } else if (results[i][key] == '转归') {
  1083. obj['lapseto'] = '2'
  1084. } else {
  1085. obj['lapseto'] = '0'
  1086. }
  1087. }
  1088. }
  1089. if (results[i]['*传染病'] === undefined) {
  1090. let contagions = []
  1091. obj['is_infectious'] = '3'
  1092. obj['contagions'] = contagions
  1093. } else {
  1094. if (key == '*传染病') {
  1095. if (results[i][key] == '无') {
  1096. let contagions = []
  1097. obj['is_infectious'] = '1'
  1098. obj['contagions'] = contagions
  1099. } else if (results[i][key] == '乙肝') {
  1100. let contagions = []
  1101. contagions.push(2)
  1102. obj['is_infectious'] = '2'
  1103. obj['contagions'] = contagions
  1104. } else if (results[i][key] == '丙肝') {
  1105. let contagions = []
  1106. contagions.push(3)
  1107. obj['is_infectious'] = '2'
  1108. obj['contagions'] = contagions
  1109. } else if (results[i][key] == '艾滋病') {
  1110. let contagions = []
  1111. contagions.push(4)
  1112. obj['is_infectious'] = '2'
  1113. obj['contagions'] = contagions
  1114. } else if (results[i][key] == '肺结核') {
  1115. let contagions = []
  1116. contagions.push(5)
  1117. obj['is_infectious'] = '2'
  1118. obj['contagions'] = contagions
  1119. } else if (results[i][key] == '梅毒') {
  1120. let contagions = []
  1121. contagions.push(6)
  1122. obj['is_infectious'] = '2'
  1123. obj['contagions'] = contagions
  1124. } else {
  1125. let contagions = []
  1126. obj['is_infectious'] = '0'
  1127. obj['contagions'] = contagions
  1128. }
  1129. }
  1130. }
  1131. if (results[i]['诊断'] === undefined) {
  1132. obj['diagnose'] = ''
  1133. } else {
  1134. if (key == '诊断') {
  1135. obj['diagnose'] = results[i][key]
  1136. }
  1137. }
  1138. // console.log(obj)
  1139. if (results[i]['透析号'] === undefined) {
  1140. obj['dialysis_no'] = ''
  1141. } else {
  1142. if (key == '透析号') {
  1143. obj['dialysis_no'] = results[i][key].replace(/\s/g,"")
  1144. }
  1145. }
  1146. // console.log(obj)
  1147. if (results[i]['干体重(kg)'] === undefined) {
  1148. obj['dry_weight'] = ''
  1149. } else {
  1150. if (key == '干体重(kg)') {
  1151. obj['dry_weight'] = results[i][key].replace(/\s/g,"")
  1152. }
  1153. }
  1154. // console.log(obj)
  1155. if (results[i]['身高(cm)'] === undefined) {
  1156. obj['height'] = ''
  1157. } else {
  1158. if (key == '身高(cm)') {
  1159. obj['height'] = results[i][key].replace(/\s/g,"")
  1160. }
  1161. }
  1162. console.log("2222222",obj)
  1163. if (results[i]['家庭住址'] === undefined) {
  1164. obj['home_address'] = ''
  1165. } else {
  1166. if (key == '家庭住址') {
  1167. obj['home_address'] = results[i][key]
  1168. }
  1169. }
  1170. }
  1171. this.export_date.push(obj)
  1172. }
  1173. let index = 0
  1174. for (let i = 0; i < this.export_date.length; i++) {
  1175. if (this.export_date[i].dialysis_no == '') {
  1176. let new_dialysis_no = this.max_dialysis_no + index
  1177. // console.log(new_dialysis_no)
  1178. index++
  1179. let no = new_dialysis_no.toString()
  1180. // console.log(no)
  1181. let rep = 3 - no.length
  1182. // console.log(rep)
  1183. let tempNo = ""
  1184. if (rep == 1){
  1185. tempNo = "0"
  1186. }
  1187. if (rep == 2){
  1188. tempNo = "00"
  1189. }
  1190. // console.log(tempNo)
  1191. if (rep > 0) {
  1192. no = tempNo + no
  1193. }
  1194. this.export_date[i].dialysis_no = no
  1195. }
  1196. }
  1197. // console.log(this.export_date)
  1198. var tempExportDate = this.export_date
  1199. var tempExportDateOne = this.export_date
  1200. var tempExportDateTwo = this.export_date
  1201. const obj2 = {}
  1202. tempExportDate = tempExportDate.reduce((cur, next) => {
  1203. obj2[next.dialysis_no] ? '' : obj2[next.dialysis_no] = true && cur.push(next)
  1204. return cur
  1205. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1206. if (tempExportDate.length < this.export_date.length){
  1207. this.dialysisVisible = true
  1208. return
  1209. }
  1210. const obj3 = {}
  1211. tempExportDateOne = tempExportDateOne.reduce((cur, next) => {
  1212. obj3[next.phone] ? '' : obj3[next.phone] = true && cur.push(next)
  1213. return cur
  1214. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1215. if (tempExportDateOne.length < this.export_date.length){
  1216. this.phoneVisible = true
  1217. return
  1218. }
  1219. const obj4 = {}
  1220. tempExportDateTwo = tempExportDateTwo.reduce((cur, next) => {
  1221. obj4[next.id_card_no] ? '' : obj4[next.id_card_no] = true && cur.push(next)
  1222. return cur
  1223. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  1224. if (tempExportDateTwo.length < this.export_date.length){
  1225. this.idCardNoVisible = true
  1226. return
  1227. }
  1228. // this.exportVisible = true
  1229. this.$alert('您提交的患者名单已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果', '上传成功', {
  1230. confirmButtonText: '确定',
  1231. callback: action => {
  1232. }
  1233. });
  1234. this.isShow = false
  1235. let params = {
  1236. 'patients': this.export_date
  1237. }
  1238. console.log("export2222",this.export_date)
  1239. postExportPatients(params).then(
  1240. response => {
  1241. if (response.data.state === 1) {
  1242. this.getList()
  1243. this.isShow = true
  1244. } else {
  1245. this.isShow = true
  1246. this.$message.error(response.data.msg)
  1247. }
  1248. }
  1249. )
  1250. }
  1251. }
  1252. )
  1253. },
  1254. getCount(row) {
  1255. return row.total_dialysis + row.user_sys_before_count
  1256. },
  1257. EditLapseto() {
  1258. if(this.lapsetoForm.lapeseto ==2 || this.lapsetoForm.lapeseto == 3 ){
  1259. if (this.lapsetoForm.lapseto_time == '') {
  1260. this.$message.error('请选择时间')
  1261. return
  1262. }
  1263. }
  1264. // if(this.lapeseto == "留治"){
  1265. // this.lapsetoForm.lapseto_type = 1
  1266. // }
  1267. // if(this.lapeseto == "转出"){
  1268. // this.lapsetoForm.lapseto_type = 2
  1269. // }
  1270. // if(this.lapeseto == "死亡"){
  1271. // this.lapsetoForm.lapseto_type = 3
  1272. // }
  1273. console.log("22222",this.lapsetoForm)
  1274. EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm,this.form.patient_start_time,this.form.patient_end_time,this.form.patient_address).then(
  1275. response => {
  1276. if (response.data.state === 1) {
  1277. this.$notify({
  1278. title: '成功',
  1279. message: '转归设置完成',
  1280. type: 'success',
  1281. duration: 2000
  1282. })
  1283. this.tableData[this.currentIndex].lapseto = this.lapsetoForm.lapseto_type
  1284. this.tableData[this.currentIndex].out_reason = this.lapsetoForm.out_reason
  1285. this.currentIndex = -1
  1286. this.LapsetoDialogVisible = false
  1287. } else {
  1288. this.$message.error(response.data.msg)
  1289. }
  1290. }
  1291. )
  1292. },
  1293. OpenSetLapseto(row, index) {
  1294. // if(row.lapseto == 1){
  1295. // this.lapeseto = "转出"
  1296. // }
  1297. // if(row.lapseto == 2){
  1298. // this.lapeseto = "留治"
  1299. // }
  1300. // if(row.lapeseto == 3){
  1301. // this.lapeseto = "死亡"
  1302. // }
  1303. this.patient = row
  1304. this.currentIndex = index
  1305. this.lapsetoForm.lapseto_time = ''
  1306. this.lapsetoForm.lapseto_type = row.lapseto
  1307. this.lapsetoForm.patient_id = row.id
  1308. this.lapsetoForm.out_reason = row.out_reason
  1309. this.LapsetoDialogVisible = true
  1310. },
  1311. LapsetoInfo(row) {
  1312. // console.log("row",row)
  1313. if (row.lapseto === 1) {
  1314. return '留治'
  1315. } else if(row.lapseto === 2) {
  1316. return '转出'
  1317. }else if(row.lapseto === 3){
  1318. return '死亡'
  1319. }else if(row.lapseto == 4){
  1320. return "转院"
  1321. }else if(row.lapseto == 5){
  1322. return "肾移植"
  1323. }else if(row.lapseto == 6){
  1324. return "转腹透"
  1325. }else if(row.lapseto == 7){
  1326. return "出院"
  1327. }else if(row.lapseto == 8){
  1328. return "好转"
  1329. }else if (row.lapseto == 9){
  1330. return "放弃治疗"
  1331. }else if (row.lapseto == 10){
  1332. return "其他状态"
  1333. }else if(row.lapseto == 11){
  1334. return "请假"
  1335. }
  1336. },
  1337. getPatientSource(val){
  1338. if(val === 1) {
  1339. return '留治'
  1340. }else if(val === 2) {
  1341. return '转出'
  1342. }else if(val === 3){
  1343. return '死亡'
  1344. }else if(val == 4){
  1345. return "转院"
  1346. }else if(val == 5){
  1347. return "肾移植"
  1348. }else if(val == 6){
  1349. return "转腹透"
  1350. }else if(val == 7){
  1351. return "出院"
  1352. }else if(val== 8){
  1353. return "好转"
  1354. }else if (val == 9){
  1355. return "放弃治疗"
  1356. }else if (val == 10){
  1357. return "其他状态"
  1358. }else if (val == 11){
  1359. return "请假"
  1360. }
  1361. },
  1362. openWechatBindDialog() {
  1363. this.bindWechatDialog = true
  1364. },
  1365. handleCheckAllChange(val) {
  1366. // console.log(val)
  1367. // console.log(this.checkAll)
  1368. // console.log(this.isIndeterminate)
  1369. },
  1370. handleSelectionChange(val) {
  1371. this.multipleSelection = val
  1372. this.pageSelect = this.multipleSelection.length
  1373. },
  1374. handleCheckedCitiesChange(value) {
  1375. const checkedCount = value.length
  1376. this.checkAll = checkedCount === this.cities.length
  1377. this.isIndeterminate =
  1378. checkedCount > 0 && checkedCount < this.cities.length
  1379. },
  1380. handleSizeChange(val) {
  1381. sessionStorage.setItem('patientPageSize',val)
  1382. this.listQuery.limit = val
  1383. this.getList()
  1384. },
  1385. handleCurrentChange(val) {
  1386. this.listQuery.page = val
  1387. this.getList()
  1388. },
  1389. changeCategoryId(categoryId) {
  1390. this.categoryId = categoryId
  1391. },
  1392. selectSchedulType(scheduleType) {
  1393. // alert(scheduleType);/
  1394. this.schedulType = scheduleType
  1395. this.listQuery.schedul_type = scheduleType
  1396. this.getList()
  1397. this.getExportList()
  1398. },
  1399. selectSystemType(systemType) {
  1400. this.systemType = systemType
  1401. this.listQuery.binding_state = systemType
  1402. this.getList()
  1403. this.getExportList()
  1404. },
  1405. selectLapseTo(lapseto) {
  1406. this.lapsetoType = lapseto
  1407. this.listQuery.lapseto = lapseto
  1408. this.getList()
  1409. this.getExportList()
  1410. },
  1411. selectSource(source) {
  1412. this.sourceType = source
  1413. this.listQuery.source = source
  1414. this.getList()
  1415. this.getExportList()
  1416. },
  1417. selectPatientSource(source){
  1418. this.patientSoureType = source
  1419. this.listQuery.patientSoureType = source
  1420. this.getList()
  1421. this.getExportList()
  1422. },
  1423. changeTimeOne(val) {
  1424. var time = this.getTimestamp(val) - this.end_time
  1425. if (time > 0) {
  1426. this.$message.error('结束时间不能小于开始时间')
  1427. this.listQuery.start_time = ''
  1428. } else {
  1429. this.getList()
  1430. this.getExportList()
  1431. this.startTime = this.getTimestamp(val)
  1432. }
  1433. },
  1434. changeTime(val) {
  1435. var time = this.getTimestamp(val) - this.startTime
  1436. if (time < 0) {
  1437. this.$message.error('结束时间不能小于开始时间')
  1438. this.listQuery.end_time = ''
  1439. } else {
  1440. this.getList()
  1441. this.getExportList()
  1442. this.end_time = this.getTimestamp(val)
  1443. }
  1444. },
  1445. getTimestamp(time) {
  1446. // 把时间日期转成时间戳
  1447. return new Date(time).getTime() / 1000
  1448. },
  1449. search() {
  1450. this.listQuery.keywords = this.searchKey
  1451. this.getList()
  1452. },
  1453. changeOtherSearch() {
  1454. this.getList()
  1455. },
  1456. changeNuseSearch(){
  1457. this.getList()
  1458. },
  1459. getList() {
  1460. // console.log("query23323223wo",this.listQuery)
  1461. fetchList(this.listQuery).then(response => {
  1462. if (response.data.state === 0) {
  1463. this.$message.error(response.data.msg)
  1464. return false
  1465. } else {
  1466. this.tableData = response.data.data.patients
  1467. console.log("wowowowo",this.tableData)
  1468. console.log('2222222',response.data.data)
  1469. this.pageTotal = this.tableData.length
  1470. this.total = response.data.data.total
  1471. }
  1472. })
  1473. },
  1474. OpenView(name, number, id) {
  1475. this.name = name
  1476. this.dialysis_no = number
  1477. this.centerDialogVisible = true
  1478. OpenView(id).then(response => {
  1479. if (response.data.state === 0) {
  1480. this.$message.error(response.data.msg)
  1481. return false
  1482. } else {
  1483. var patient = response.data.data.patient
  1484. // console.log('二维码病人信息', patient)
  1485. this.id = patient.id
  1486. this.name = patient.name
  1487. this.gender = patient.gender
  1488. this.idcardno = patient.id_card_no
  1489. this.phone = patient.phone
  1490. this.healthcareno = patient.health_care_no
  1491. }
  1492. })
  1493. },
  1494. ShowQRCode() {
  1495. document.getElementById('qrcode').innerHTML = ''
  1496. this.qrcode = this.$QRCode()
  1497. },
  1498. download() {
  1499. alert('aaaa')
  1500. },
  1501. print() {
  1502. var ptime = Math.round(new Date().getTime() / 1000)
  1503. this.print_time = uParseTime(ptime, '{y}年{m}月{d}日')
  1504. const style =
  1505. '@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;} }'
  1506. setTimeout(() => {
  1507. printJS({
  1508. printable: 'print-card-info',
  1509. type: 'html',
  1510. style: style,
  1511. scanStyles: false
  1512. })
  1513. }, 1)
  1514. var id = this.id
  1515. var name = this.name
  1516. var gender = this.gender
  1517. if (gender === 1) {
  1518. gender = '男'
  1519. }
  1520. if (gender === 2) {
  1521. gender = '女'
  1522. }
  1523. var idcardno = this.idcardno
  1524. var phone = this.phone
  1525. var healthcareno = this.healthcareno
  1526. var dialysisno = this.dialysis_no
  1527. // Base64位加密
  1528. // var aid = this.Base64.encode(id);
  1529. // var aname = this.Base64.encode(name);
  1530. // var agender = this.Base64.encode(gender);
  1531. // var aidcardno = this.Base64.encode(idcardno);
  1532. // var aphone = this.Base64.encode(phone);
  1533. // var ahealthcareno = this.Base64.encode(healthcareno);
  1534. // var adialysisno = this.Base64.encode(dialysisno);
  1535. // 调用生成二维码的方法
  1536. this.$options.methods.qrcode(
  1537. id,
  1538. name,
  1539. gender,
  1540. idcardno,
  1541. phone,
  1542. healthcareno,
  1543. dialysisno
  1544. )
  1545. },
  1546. qrcode(id, name, gender, idcardno, phone, healthcareno, dialysisno) {
  1547. document.getElementById('code').innerHTML = ''
  1548. const qrcode = new QRCode('code', {
  1549. width: 200,
  1550. height: 200,
  1551. text:
  1552. 'user_id:' +
  1553. id +
  1554. ',' +
  1555. 'name:' +
  1556. name +
  1557. ',' +
  1558. 'dialysis_no:' +
  1559. dialysisno +
  1560. ',' +
  1561. 'gender:' +
  1562. gender +
  1563. ',' +
  1564. 'idcard_no:' +
  1565. idcardno +
  1566. ',' +
  1567. 'phone:' +
  1568. phone +
  1569. ',' +
  1570. 'healthcare_no:' +
  1571. healthcareno
  1572. })
  1573. },
  1574. toRemind(){
  1575. this.dialogTableVisible = true
  1576. },
  1577. GetRemindPatientList(){
  1578. const params = {
  1579. page: this.page,
  1580. limit: this.limit
  1581. }
  1582. GetRemind(params).then(response=>{
  1583. if(response.data.state == 1){
  1584. this.gridData = response.data.data.patients;
  1585. this.totalOne = response.data.data.total;
  1586. var value = response.data.data.total
  1587. if(value == 0){
  1588. this.value = ""
  1589. }
  1590. if(value != 0){
  1591. this.value = value
  1592. }
  1593. }
  1594. })
  1595. },
  1596. jump(id) {
  1597. // this.$router.replace({ path: "/patients/inspection?id=" + id });
  1598. this.$router.replace({path:"/patients/patients/"+id +"/inspectionInfectious"})
  1599. },
  1600. dateCompare(date) {
  1601. var date1 = Date.parse(new Date()) / 1000;
  1602. if (date > date1) {
  1603. return 1;
  1604. } else {
  1605. return 2;
  1606. }
  1607. },
  1608. handleSizeChangeOne(val) {
  1609. this.limit = val
  1610. this.GetRemindPatientList();
  1611. },
  1612. handleCurrentChangeOne(val) {
  1613. this.page = val;
  1614. this.GetRemindPatientList();
  1615. },
  1616. getTime(val) {
  1617. if(val < 0){
  1618. return ""
  1619. }
  1620. if(val == ""){
  1621. return ""
  1622. }else {
  1623. return uParseTime(val, '{y}-{m}-{d}')
  1624. }
  1625. },
  1626. toExport(){
  1627. import('@/vendor/Export2Excel').then(excel => {
  1628. console.log("hhhh323223",this.tableData)
  1629. for(let i=0;i<this.tableData.length;i++){
  1630. if(this.tableData[i].gender == 1){
  1631. this.tableData[i].genders = "男"
  1632. }
  1633. if(this.tableData[i].gender == 2){
  1634. this.tableData[i].genders = "女"
  1635. }
  1636. this.tableData[i].age_year = this.tranAge(this.tableData[i])
  1637. this.tableData[i].first_dialysis_date = this.getTime(this.tableData[i].first_dialysis_date)
  1638. if(this.tableData[i].lapseto == 0){
  1639. this.tableData[i].lapesetos = ""
  1640. }
  1641. if(this.tableData[i].lapseto == 1){
  1642. this.tableData[i].lapesetos = "留治"
  1643. }
  1644. if(this.tableData[i].lapseto == 2){
  1645. this.tableData[i].lapesetos = "转归"
  1646. }
  1647. if(this.tableData[i].source == 0){
  1648. this.tableData[i].sources = ""
  1649. }
  1650. if(this.tableData[i].source == 1){
  1651. this.tableData[i].sources = "门诊"
  1652. }
  1653. if(this.tableData[i].source == 2){
  1654. this.tableData[i].sources = "住院"
  1655. }
  1656. if(this.tableData[i].is_infectious == 0){
  1657. this.tableData[i].is_infectiouss = ""
  1658. }
  1659. if(this.tableData[i].is_infectious == 1){
  1660. this.tableData[i].is_infectiouss = "阴性"
  1661. }
  1662. if(this.tableData[i].is_infectious == 2){
  1663. this.tableData[i].is_infectiouss = "阳性"
  1664. }
  1665. }
  1666. const tHeader = ['姓名', '性别', '身份证号码','年龄','透析号','首次治疗时间','本人电话','患者来源','治疗状态','传染病']
  1667. const filterVal = ['name', 'genders', 'id_card_no','age_year','dialysis_no','first_dialysis_date','phone','sources','lapesetos','is_infectiouss']
  1668. console.log("table",this.tableData)
  1669. const data = this.formatJson(filterVal, this.tableData)
  1670. excel.export_json_to_excel({
  1671. header: tHeader,
  1672. data,
  1673. filename: '患者名单'
  1674. })
  1675. this.downloadLoading = false
  1676. })
  1677. },
  1678. formatJson(filterVal, jsonData) {
  1679. return jsonData.map(v => filterVal.map(j => v[j]));
  1680. },
  1681. toExportOne(){
  1682. import('@/vendor/Export2Excel').then(excel => {
  1683. console.log("hhhh323223",this.scheduleList)
  1684. for(let i=0;i<this.scheduleList.length;i++){
  1685. this.scheduleList[i].name = ""
  1686. this.scheduleList[i].wort_unit = ""
  1687. this.scheduleList[i].name = this.GetPatientName(this.scheduleList[i].patient_id)
  1688. this.scheduleList[i].wort_unit = this.GetPatientWorkUnit(this.scheduleList[i].patient_id)
  1689. }
  1690. const tHeader = ['姓名', '工作单位']
  1691. const filterVal = ['name', 'wort_unit']
  1692. console.log("table",this.scheduleList)
  1693. const data = this.formatJson(filterVal, this.scheduleList)
  1694. excel.export_json_to_excel({
  1695. header: tHeader,
  1696. data,
  1697. filename: '今日透析记录'
  1698. })
  1699. this.downloadLoading = false
  1700. })
  1701. },
  1702. tranAge(val) {
  1703. if(val.birthday){
  1704. var birth = uParseTime(val.birthday, '{y}-{m}-{d}');
  1705. return jsGetAge(birth, '-');
  1706. }
  1707. },
  1708. toOpen(id){
  1709. getPatientAllagic(id).then(response=>{
  1710. if(response.data.state == 1){
  1711. var list = response.data.data.list
  1712. this.patieintDialogVisible= true
  1713. this.patientAllgicList = list
  1714. }
  1715. })
  1716. },
  1717. GetPatientName(id){
  1718. var name = ""
  1719. for(let i=0;i<this.patientsList.length;i++){
  1720. if(id == this.patientsList[i].id){
  1721. name = this.patientsList[i].name
  1722. }
  1723. }
  1724. return name
  1725. },
  1726. GetPatientWorkUnit(id){
  1727. console.log("HHAHAHAH",this.patientsList)
  1728. var work_unit =""
  1729. for(let i=0;i<this.patientsList.length;i++){
  1730. if(id == this.patientsList[i].id){
  1731. work_unit = this.patientsList[i].work_unit
  1732. }
  1733. }
  1734. return work_unit
  1735. },
  1736. beforeUpload(){
  1737. }
  1738. }
  1739. }
  1740. Vue.prototype.$QRCode = function() {
  1741. var name = this.name
  1742. var dialysis_no = this.dialysis_no
  1743. var id = this.id
  1744. var gender = this.gender
  1745. if (gender === 1) {
  1746. gender = '男'
  1747. }
  1748. if (gender === 2) {
  1749. gender = '女'
  1750. }
  1751. var idcardno = this.idcardno
  1752. var phone = this.phone
  1753. var healthcareno = this.healthcareno
  1754. // BASE64加密
  1755. // var eid = this.Base64.encode(id)
  1756. // var ename = this.Base64.encode(name)
  1757. // var egender = this.Base64.encode(gender)
  1758. // var eidcardno = this.Base64.encode(idcardno)
  1759. // var ephone = this.Base64.encode(phone)
  1760. // var ehealthcareno = this.Base64.encode(healthcareno)
  1761. // var edialysisno = this.Base64.encode(dialysis_no)
  1762. var eid = id
  1763. var ename = name
  1764. var egender = gender
  1765. var eidcardno = idcardno
  1766. var ephone = phone
  1767. var ehealthcareno = healthcareno
  1768. var edialysisno = dialysis_no
  1769. console.log(
  1770. 'user_id' + eid,
  1771. 'name:' + ename,
  1772. 'gender:' + egender,
  1773. 'idcard_no:' + eidcardno,
  1774. 'phone:' + ephone,
  1775. 'healthcare_no:' + ehealthcareno,
  1776. 'edialysis_no:' + edialysisno
  1777. )
  1778. const salting = 'admin-authority'
  1779. new QRCode('qrcode', {
  1780. width: 150, // 设置宽度
  1781. height: 150, // 设置高度
  1782. text:
  1783. 'user_id:' +
  1784. eid +
  1785. ',' +
  1786. 'name:' +
  1787. ename +
  1788. ',' +
  1789. 'dialysis_no:' +
  1790. edialysisno +
  1791. ',' +
  1792. 'gender:' +
  1793. egender +
  1794. ',' +
  1795. 'idcard_no:' +
  1796. eidcardno +
  1797. ',' +
  1798. 'phone:' +
  1799. ephone +
  1800. ',' +
  1801. 'healthcare_no:' +
  1802. ehealthcareno
  1803. })
  1804. }
  1805. </script>
  1806. <style rel="stylesheet/scss" lang="scss">
  1807. .app-container {
  1808. /*margin: 20 px;*/
  1809. font-size: 15px;
  1810. .filter-container {
  1811. padding-bottom: 5px;
  1812. }
  1813. .search-component {
  1814. width: 500px;
  1815. .searchBox {
  1816. width: 300px;
  1817. height: 36px;
  1818. line-height: 36px;
  1819. padding-left: 15px;
  1820. border: 1px #dcdfe6 solid;
  1821. border-right: none;
  1822. outline: none;
  1823. float: left;
  1824. border-radius: 6px 0 0 6px;
  1825. font-size: 14px;
  1826. color: #333;
  1827. background: #fff;
  1828. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  1829. }
  1830. .searchBtn {
  1831. background-color: #409eff;
  1832. color: #fff;
  1833. font-size: 15px;
  1834. text-align: center;
  1835. height: 36px;
  1836. line-height: 36px;
  1837. float: left;
  1838. outline: none;
  1839. width: 70px;
  1840. border: none;
  1841. border-radius: 0 6px 6px 0;
  1842. font-family: "Microsoft Yahei";
  1843. cursor: pointer;
  1844. }
  1845. }
  1846. .amount {
  1847. font-weight: normal;
  1848. padding: 10px 0 0 0;
  1849. color: #606266;
  1850. font-size: 14px;
  1851. span {
  1852. color: #ef2525;
  1853. font-family: "Arial";
  1854. padding: 0 2px;
  1855. }
  1856. }
  1857. .print_main_content {
  1858. background-color: white;
  1859. width: 960px;
  1860. margin: 0 auto;
  1861. padding: 0 0 20px 0;
  1862. }
  1863. .print_main_content .order_title {
  1864. text-align: center;
  1865. font-size: 23px;
  1866. line-height: 50px;
  1867. font-weight: 500px;
  1868. }
  1869. .print_main_content table {
  1870. width: 100%;
  1871. border: 1px solid;
  1872. border-collapse: collapse;
  1873. padding: 2px;
  1874. }
  1875. .print_main_content table tbody tr td {
  1876. border: 1px solid;
  1877. text-align: center;
  1878. /* font-size: 17px; */
  1879. padding: 10px 8px;
  1880. }
  1881. .td_proj_title {
  1882. font-size: 18px;
  1883. line-height: 25px;
  1884. font-weight: 500;
  1885. }
  1886. .td_proj_content {
  1887. font-size: 18px;
  1888. line-height: 25px;
  1889. }
  1890. .td_align_left {
  1891. text-align: left;
  1892. }
  1893. .print_footnote_panel {
  1894. font-size: 17px;
  1895. line-height: 40px;
  1896. }
  1897. .print_footnote_panel .proj {
  1898. display: inline-block;
  1899. width: 49%;
  1900. }
  1901. .print_footnote_panel .proj .proj_title {
  1902. font-weight: 500;
  1903. }
  1904. }
  1905. .el-table td,
  1906. .el-table th.is-leaf,
  1907. .el-table--border,
  1908. .el-table--group {
  1909. border-color: #d0d3da;
  1910. }
  1911. .el-table--border::after,
  1912. .el-table--group::after,
  1913. .el-table::before {
  1914. background-color: #d0d3da;
  1915. }
  1916. .el-select--small {
  1917. width: 196px;
  1918. }
  1919. .el-checkbox__inner::after {
  1920. height: 10px;
  1921. left: 7px;
  1922. }
  1923. .el-checkbox__inner {
  1924. width: 20px;
  1925. height: 20px;
  1926. }
  1927. </style>