patients.vue 47KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543
  1. <template>
  2. <div class="main-contain">
  3. <el-dialog
  4. title="提示"
  5. :visible.sync="dialogVisible"
  6. width="40%"
  7. >
  8. <span>您提交的文档不是系统标准导入模板,请检查您的文档或重新 <a href="https://kuyi.shengws.com/patient_template.xlsx" style="color: blue" download="template">下载导入模板</a></span>
  9. <span slot="footer" class="dialog-footer">
  10. <el-button @click="dialogVisible = false">取 消</el-button>
  11. <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
  12. </span>
  13. </el-dialog>
  14. <el-dialog
  15. title="提示"
  16. :visible.sync="dialysisVisible"
  17. width="40%"
  18. >
  19. <span>您提交的文档中存在不同病人存在相同的透析号,请检查修改后在提交 </span>
  20. <span slot="footer" class="dialog-footer">
  21. <el-button @click="dialysisVisible = false">取 消</el-button>
  22. <el-button type="primary" @click="dialysisVisible = false">确 定</el-button>
  23. </span>
  24. </el-dialog>
  25. <el-dialog
  26. title="提示"
  27. :visible.sync="phoneVisible"
  28. width="40%"
  29. >
  30. <span>您提交的文档中存在不同病人存在相同的手机号,请检查修改后在提交 </span>
  31. <span slot="footer" class="dialog-footer">
  32. <el-button @click="phoneVisible = false">取 消</el-button>
  33. <el-button type="primary" @click="phoneVisible = false">确 定</el-button>
  34. </span>
  35. </el-dialog>
  36. <el-dialog
  37. title="提示"
  38. :visible.sync="idCardNoVisible"
  39. width="40%"
  40. >
  41. <span>您提交的文档中存在不同病人存在相同的身份证,请检查修改后在提交 </span>
  42. <span slot="footer" class="dialog-footer">
  43. <el-button @click="idCardNoVisible = false">取 消</el-button>
  44. <el-button type="primary" @click="idCardNoVisible = false">确 定</el-button>
  45. </span>
  46. </el-dialog>
  47. <el-dialog
  48. title="提示"
  49. :visible.sync="exportLogVisible"
  50. width="40%"
  51. >
  52. <div v-for="(item,index) in logs" :key="index">
  53. <span> {{ item.export_time | parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</span>
  54. <br/>
  55. <br/>
  56. <span>{{getContent(item)}}</span>
  57. <span style="color:blue" @click="generateTxt(item)">点击</span>
  58. <span>查看详情</span>
  59. <br/>
  60. <br/>
  61. </div>
  62. <span slot="footer" class="dialog-footer">
  63. <el-button @click="exportLogVisible = false">取 消</el-button>
  64. <el-button type="primary" @click="exportLogVisible = false">确 定</el-button>
  65. </span>
  66. </el-dialog>
  67. <div class="position">
  68. <bread-crumb :crumbs="crumbs"></bread-crumb>
  69. <div style="display:flex;align-items:center">
  70. <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>
  71. <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
  72. style="margin-left:15px">
  73. <el-button
  74. class="filter-item"
  75. type="primary"
  76. size="small"
  77. >下载模版
  78. </el-button>
  79. </el-link>
  80. <el-button
  81. style="margin-left:10px;"
  82. @click="generateLog()"
  83. class="filter-item"
  84. type="primary"
  85. size="small"
  86. >下载日志
  87. </el-button>
  88. <el-button
  89. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  90. @click="$router.push({ path: '/patients/create' })"
  91. class="filter-item"
  92. type="primary"
  93. icon="el-icon-circle-plus-outline"
  94. size="small"
  95. >新增
  96. </el-button>
  97. </div>
  98. </div>
  99. <div class="app-container">
  100. <div class="cell clearfix">
  101. <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
  102. <el-input
  103. style="width: 400px;"
  104. v-model.trim="searchKey"
  105. class="filter-item"
  106. placeholder="病人姓名/透析号"
  107. size="small"
  108. />
  109. <el-button
  110. class="filter-item"
  111. type="primary"
  112. icon="el-icon-search"
  113. @click="search"
  114. size="small"
  115. >搜索
  116. </el-button
  117. >
  118. </div>
  119. <div class="cell clearfix">
  120. <label class="title"><span class="name">日期查询</span> : </label>
  121. <el-date-picker
  122. size="small"
  123. clearable
  124. v-model="listQuery.start_time"
  125. prefix-icon="el-icon-date"
  126. @change="changeTimeOne"
  127. :editable="false"
  128. style="width: 196px;"
  129. type="date"
  130. placeholder="选择日期时间"
  131. align="right"
  132. format="yyyy-MM-dd"
  133. value-format="yyyy-MM-dd"
  134. >
  135. </el-date-picker>
  136. <span class="cellLine"> - </span>
  137. <el-date-picker
  138. size="small"
  139. clearable
  140. v-model="listQuery.end_time"
  141. prefix-icon="el-icon-date"
  142. @change="changeTime"
  143. :editable="false"
  144. style="width: 196px;"
  145. type="date"
  146. placeholder="选择日期时间"
  147. align="right"
  148. format="yyyy-MM-dd"
  149. value-format="yyyy-MM-dd"
  150. >
  151. </el-date-picker>
  152. </div>
  153. <div class="cell clearfix">
  154. <label class="title"><span class="name">排班班次</span> : </label>
  155. <div class="time ">
  156. <ul class="">
  157. <li
  158. :class="item.value == schedulType ? 'active' : ''"
  159. @click="selectSchedulType(item.value)"
  160. v-for="item in schedulArr"
  161. :key="item.value"
  162. >
  163. {{ item.label }}
  164. </li>
  165. </ul>
  166. </div>
  167. </div>
  168. <div class="cell clearfix">
  169. <label class="title"><span class="name">状态</span> : </label>
  170. <div class="time ">
  171. <ul class="">
  172. <li
  173. :class="item.value == systemType ? 'active' : ''"
  174. @click="selectSystemType(item.value)"
  175. v-for="item in systemArr"
  176. :key="item.value"
  177. >
  178. {{ item.label }}
  179. </li>
  180. </ul>
  181. </div>
  182. </div>
  183. <div class="cell clearfix">
  184. <label class="title"><span class="name">转归情况</span> : </label>
  185. <div class="time ">
  186. <ul class="">
  187. <li
  188. :class="item.lapseto == lapsetoType ? 'active' : ''"
  189. @click="selectLapseTo(item.lapseto)"
  190. v-for="item in lapsetoArr"
  191. :key="item.value"
  192. >
  193. {{ item.label }}
  194. </li>
  195. </ul>
  196. </div>
  197. </div>
  198. <div class="cell clearfix">
  199. <label class="title"><span class="name">病人来源</span> : </label>
  200. <div class="time ">
  201. <ul class="">
  202. <li
  203. :class="item.source == sourceType ? 'active' : ''"
  204. @click="selectSource(item.source)"
  205. v-for="item in sourceArr"
  206. :key="item.value"
  207. >
  208. {{ item.label }}
  209. </li>
  210. </ul>
  211. </div>
  212. </div>
  213. <div class="cell clearfix">
  214. <label class="title"><span class="name">其它查询</span> : </label>
  215. <el-select
  216. v-model="listQuery.contagion"
  217. size="small"
  218. clearable
  219. placeholder="传染病"
  220. @change="changeOtherSearch"
  221. >
  222. <el-option
  223. v-for="item in contagionList"
  224. :key="item.id"
  225. :label="item.name"
  226. :value="item.id"
  227. >
  228. </el-option>
  229. </el-select>
  230. <el-select
  231. style="margin-left: 10px;"
  232. v-model="listQuery.reimbursement_way"
  233. size="small"
  234. clearable
  235. placeholder="付费方式"
  236. @change="changeOtherSearch"
  237. >
  238. <el-option
  239. v-for="item in reimbursement_ways"
  240. :key="item.id"
  241. :label="item.name"
  242. :value="item.id"
  243. >
  244. </el-option>
  245. </el-select>
  246. <el-select
  247. v-model="listQuery.isscheduling"
  248. collapse-tags
  249. style="margin-left: 10px;"
  250. clearable
  251. placeholder="排班情况"
  252. size="small"
  253. @change="changeOtherSearch"
  254. >
  255. <el-option
  256. v-for="item in scheduling"
  257. :key="item.value"
  258. :label="item.label"
  259. :value="item.value"
  260. >
  261. </el-option>
  262. </el-select>
  263. <el-select
  264. v-model="listQuery.isprescription"
  265. collapse-tags
  266. style="margin-left:10px;"
  267. clearable
  268. placeholder="透析处方"
  269. size="small"
  270. @change="changeOtherSearch"
  271. >
  272. <el-option
  273. v-for="item in prescription"
  274. :key="item.value"
  275. :label="item.label"
  276. :value="item.value"
  277. >
  278. </el-option>
  279. </el-select>
  280. </div>
  281. <el-table
  282. ref="multipleTable"
  283. :row-style="{ color: '#303133' }"
  284. :header-cell-style="{
  285. backgroundColor: 'rgb(245, 247, 250)',
  286. color: '#606266'
  287. }"
  288. :data="tableData"
  289. border
  290. fit
  291. highlight-current-row
  292. style="width: 100%;margin-top: 10px;"
  293. @selection-change="handleSelectionChange"
  294. >
  295. <el-table-column
  296. align="center"
  297. label="全选"
  298. width="60px"
  299. type="selection"
  300. ></el-table-column>
  301. <el-table-column
  302. type="index"
  303. label="序号"
  304. width="60px"
  305. align="center"
  306. ></el-table-column>
  307. <el-table-column
  308. label="透析号"
  309. min-width="80"
  310. property="dialysis_no"
  311. align="center"
  312. style="color:red"
  313. ></el-table-column>
  314. <el-table-column
  315. label="住院号"
  316. min-width="80"
  317. property="admission_number"
  318. align="center"
  319. >
  320. </el-table-column>
  321. <el-table-column
  322. property="name"
  323. label="姓名"
  324. min-width="80"
  325. align="center"
  326. >
  327. <template slot-scope="scope">
  328. <router-link
  329. :to="'/patients/patient/' + scope.row.id"
  330. style="color:#409eff"
  331. >{{ scope.row.name }}
  332. </router-link
  333. >
  334. </template>
  335. </el-table-column>
  336. <el-table-column label="性别" min-width="80" align="center">
  337. <template slot-scope="scope">
  338. <span v-if="scope.row.gender == 1">男</span>
  339. <span v-else-if="scope.row.gender == 2">女</span>
  340. <span v-else>未知</span>
  341. </template>
  342. </el-table-column>
  343. <el-table-column label="来源" min-width="80" align="center">
  344. <template slot-scope="scope">
  345. <span v-if="scope.row.source == 1">门诊</span>
  346. <span v-else-if="scope.row.source == 2">住院</span>
  347. <span v-else>未知</span>
  348. </template>
  349. </el-table-column>
  350. <el-table-column label="透析次数" min-width="94" align="center">
  351. <template slot-scope="scope">
  352. <span>{{ getCount(scope.row) }}</span>
  353. </template>
  354. </el-table-column>
  355. <!-- <el-table-column min-width="150" label="二维码" align="center">
  356. <template slot-scope="scope" type="text">
  357. <a style="color:#409eff" v-if="scope.row.binding_state==1" @click="openWechatBindDialog">已绑定</a>
  358. <a style="color:#409eff" v-else @click="openWechatBindDialog">生成</a>
  359. </template>
  360. </el-table-column> -->
  361. <el-table-column label="日期" min-width="144" align="center">
  362. <template slot-scope="scope">
  363. <span>{{ scope.row.created_time | parseTime('{y}-{m}-{d}') }}</span>
  364. </template>
  365. </el-table-column>
  366. <el-table-column label="转归" align="center">
  367. <template slot-scope="scope">
  368. <span>{{ LapsetoInfo(scope.row) }}</span>
  369. </template>
  370. </el-table-column>
  371. <el-table-column label="操作" align="center" min-width="140">
  372. <template slot-scope="scope">
  373. <el-tooltip
  374. class="item"
  375. effect="dark"
  376. content="转归"
  377. placement="top"
  378. >
  379. <el-button
  380. type="primary"
  381. icon="el-icon-edit"
  382. size="small"
  383. @click="OpenSetLapseto(scope.row, scope.$index)"
  384. ></el-button>
  385. </el-tooltip>
  386. <el-tooltip
  387. class="item"
  388. effect="dark"
  389. content="预览"
  390. placement="top"
  391. >
  392. <el-button
  393. type="danger"
  394. icon="el-icon-tickets"
  395. size="small"
  396. @click="
  397. OpenView(scope.row.name, scope.row.dialysis_no, scope.row.id)
  398. "
  399. ></el-button>
  400. </el-tooltip>
  401. </template>
  402. </el-table-column>
  403. </el-table>
  404. <!-- <pagi-nation title="分页"></pagi-nation> -->
  405. <el-pagination
  406. @size-change="handleSizeChange"
  407. @current-change="handleCurrentChange"
  408. :current-page="listQuery.pate"
  409. :page-sizes="[10, 20, 50, 100]"
  410. :page-size="10"
  411. background
  412. style="margin-top:20px;"
  413. align="right"
  414. layout="total, sizes, prev, pager, next, jumper"
  415. :total="total"
  416. >
  417. </el-pagination>
  418. <el-dialog
  419. title="微信绑定"
  420. :visible.sync="bindWechatDialog"
  421. width="30%"
  422. center
  423. >
  424. <img :src="wechatbindimg" width="100%" alt="" v-if="wechatbindimg"/>
  425. <i class="el-icon-loading" v-else></i>
  426. <span slot="footer" class="dialog-footer">
  427. <el-button type="primary" @click="bindWechatDialog = false"
  428. >关闭</el-button
  429. >
  430. </span>
  431. </el-dialog>
  432. <el-dialog title="转归" :visible.sync="LapsetoDialogVisible">
  433. <el-form
  434. :model="lapsetoForm"
  435. :rules="lapsetoRules"
  436. ref="lapsetoForm"
  437. label-width="140px"
  438. >
  439. <el-form-item label="治疗状态(转归):" prop="lapseto_type" required>
  440. <el-radio-group v-model="lapsetoForm.lapseto_type">
  441. <el-radio
  442. v-for="item in lapsetoOptions"
  443. :key="item.value"
  444. :label="item.value"
  445. :value="item.value"
  446. >{{ item.label }}
  447. </el-radio
  448. >
  449. </el-radio-group>
  450. </el-form-item>
  451. <el-form-item label="转归时间 :" prop="lapseto_time" required>
  452. <el-date-picker
  453. v-model="lapsetoForm.lapseto_time"
  454. type="datetime"
  455. format="yyyy-MM-dd HH:mm:ss"
  456. value-format="yyyy-MM-dd HH:mm:ss"
  457. placeholder="选择日期时间"
  458. default-time="12:00:00"
  459. >
  460. </el-date-picker>
  461. </el-form-item>
  462. </el-form>
  463. <div slot="footer" class="dialog-footer">
  464. <el-button @click="LapsetoDialogVisible = false">取 消</el-button>
  465. <el-button type="primary" @click="EditLapseto()">保 存</el-button>
  466. </div>
  467. </el-dialog>
  468. <el-dialog
  469. title="签到卡"
  470. :visible.sync="centerDialogVisible"
  471. :close-on-click-modal="false"
  472. @opened="ShowQRCode()"
  473. width="30%"
  474. center
  475. >
  476. <div align="center" style="margin-bottom:6px;font-size:20px">
  477. <!-- 姓名:<el-input v-model="name" size="small" style="width:200px"></el-input><br> -->
  478. 姓名:<span>{{ this.name }}</span>
  479. </div>
  480. <div align="center" style="margin-bottom:10px;font-size:20px">
  481. <!-- 透析号:<el-input v-model="dialysis_no" size="small" style="width:200px"></el-input><br> -->
  482. 透析号:<span>{{ this.dialysis_no }}</span>
  483. </div>
  484. <div id="qrcode" align="center"></div>
  485. <span slot="footer" class="dialog-footer">
  486. <!-- <el-button type="primary" @click="download()">下载</el-button> -->
  487. <el-button type="primary" @click="print()">打印</el-button>
  488. </span>
  489. </el-dialog>
  490. <div hidden="hidden">
  491. <div id="print-card-info">
  492. <div
  493. class="order_title"
  494. align="center"
  495. style="margin-bottom:20px;font-size:35px"
  496. >
  497. 签到卡
  498. </div>
  499. <div align="center" style="margin-bottom:4px;font-size:25px">
  500. 姓名:<span>&nbsp;&nbsp;{{ this.name }}</span
  501. ><br/>
  502. </div>
  503. <div align="center" style="margin-bottom:20px;font-size:25px">
  504. 透析号:<span>&nbsp;&nbsp;{{ this.dialysis_no }}</span>
  505. </div>
  506. <div>
  507. <div id="code" align="center"></div>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </template>
  514. <script>
  515. import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients } from '@/api/patient'
  516. import { generateLog } from '@/api/config'
  517. import QRCode from 'qrcodejs2'
  518. import Vue from 'vue'
  519. import { Base64 } from 'js-base64'
  520. import { uParseTime } from '@/utils/tools'
  521. import { log } from 'util'
  522. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  523. import UploadExcel from '@/xt_pages/components/UploadExcel'
  524. export default {
  525. name: 'Patient',
  526. components: {
  527. UploadExcel,
  528. BreadCrumb
  529. },
  530. data() {
  531. return {
  532. logs: [],
  533. downloadUrl: 'https://kuyi.shengws.com/patient_template.xltx',
  534. crumbs: [
  535. { path: false, name: '病人管理' },
  536. { path: '/patients/patients', name: '病人管理' }
  537. ],
  538. lapsetoRules: {
  539. lapseto_type: [{ required: true, message: '请选择治疗状态' }],
  540. lapseto_time: [{ required: true, message: '请选择转归时间' }]
  541. },
  542. currentIndex: -1,
  543. LapsetoDialogVisible: false,
  544. centerDialogVisible: false,
  545. checkAll: false,
  546. isIndeterminate: true,
  547. dialogVisible: false,
  548. exportLogVisible: false,
  549. phoneVisible:false,
  550. idCardNoVisible:false,
  551. wechatbindimg: '',
  552. active: true,
  553. schedulType: 0,
  554. lapsetoForm: {
  555. lapseto_type: 0,
  556. lapseto_time: '',
  557. patient_id: 0
  558. },
  559. schedulArr: [
  560. { value: 0, label: '全部' },
  561. { value: 1, label: '上午' },
  562. { value: 2, label: '下午' },
  563. { value: 3, label: '晚上' }
  564. ],
  565. lapsetoOptions: [
  566. { value: 1, label: '留治' },
  567. { value: 2, label: '转出' }
  568. ],
  569. systemType: 0,
  570. systemArr: [
  571. { value: 0, label: '全部' },
  572. { value: 1, label: '已绑定' },
  573. { value: 2, label: '未绑定' }
  574. ],
  575. sourceType: 0,
  576. sourceID: 0,
  577. lapsetoType: 0,
  578. sourceArr: [
  579. { value: 0, label: '全部', source: 0, lapseto: 0 },
  580. // { value: 1, label: "转出", source: 0, lapseto: 2 },
  581. // { value: 2, label: "留治", source: 0, lapseto: 1 },
  582. { value: 3, label: '门诊', source: 1, lapseto: 1 },
  583. { value: 4, label: '住院', source: 2, lapseto: 1 }
  584. ],
  585. lapsetoArr: [
  586. { value: 0, label: '全部', source: 0, lapseto: 0 },
  587. { value: 1, label: '转出', source: 0, lapseto: 2 },
  588. { value: 2, label: '留治', source: 0, lapseto: 1 }
  589. // { value: 3, label: "门诊", source: 1, lapseto: 1 },
  590. // { value: 4, label: "住院", source: 2, lapseto: 1 }
  591. ],
  592. scheduling: [
  593. {
  594. value: 1,
  595. label: '已排班'
  596. },
  597. {
  598. value: 2,
  599. label: '未排班'
  600. }
  601. ],
  602. prescription: [
  603. {
  604. value: 1,
  605. label: '有处方'
  606. },
  607. {
  608. value: 2,
  609. label: '无处方'
  610. }
  611. ],
  612. tableData: null,
  613. searchKey: '',
  614. // value2: '',
  615. total: 0,
  616. pageTotal: 0,
  617. dialysisVisible:false,
  618. pageSelect: 0,
  619. max_dialysis_no: '',
  620. listQuery: {
  621. page: 1,
  622. limit: 10,
  623. schedul_type: 0,
  624. binding_state: 0,
  625. lapseto: 0,
  626. source: 0,
  627. start_time: '',
  628. end_time: '',
  629. keywords: '',
  630. contagion: '',
  631. reimbursement_way: '',
  632. isscheduling: '',
  633. isprescription: ''
  634. },
  635. multipleSelection: [],
  636. bindWechatDialog: false,
  637. contagionList: [],
  638. reimbursement_ways: [],
  639. patient: null,
  640. id: '',
  641. name: '',
  642. dialysis_no: '',
  643. patientPrint: {},
  644. patient_id: '',
  645. gender: '',
  646. idcardno: '',
  647. phone: '',
  648. healthcareno: '',
  649. startTime: '',
  650. export_date: []
  651. }
  652. },
  653. created() {
  654. this.getList()
  655. this.contagionList = this.$store.getters.contagions
  656. this.reimbursement_ways = this.$store.getters.reimbursement_ways
  657. const keyword = this.$route.query && this.$route.query.keyword
  658. if (typeof keyword === 'string' && keyword.length > 0) {
  659. this.listQuery.keywords = keyword
  660. this.searchKey = keyword
  661. }
  662. },
  663. methods: {
  664. generateTxt: function(log) {
  665. var content = ''
  666. var errlog = log.err_logs
  667. content = this.getContent(log)
  668. for (let i = 0; i < errlog.length; i++) {
  669. if (content.length == 0) {
  670. content = errlog[i].err_msg
  671. } else {
  672. content = content + '\n' + errlog[i].err_msg
  673. }
  674. }
  675. var url = new Blob(['\ufeff' + content], { type: 'text/txt,charset=UTF-8' })
  676. if (typeof url === 'object' && url instanceof Blob) {
  677. url = URL.createObjectURL(url) // 创建blob地址
  678. }
  679. const aLink = document.createElement('a')
  680. aLink.href = url
  681. aLink.download = this.timestampToTime(log.export_time) + '错误日志' + '.txt'
  682. aLink.click()
  683. },
  684. getContent(log) {
  685. return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
  686. },
  687. timestampToTime(timestamp) {
  688. var date = new Date(timestamp * 1000)//时间戳为10位需*1000,时间戳为13位的话不需乘1000
  689. var Y = date.getFullYear() + '年'
  690. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '月'
  691. var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate()) + '日 '
  692. var h = (date.getHours() < 10 ? '0' + (date.getHours()) : date.getHours()) + '时'
  693. var m = (date.getMinutes() < 10 ? '0' + (date.getMinutes()) : date.getMinutes()) + '分'
  694. var s = (date.getSeconds() < 10 ? '0' + (date.getSeconds()) : date.getSeconds()) + '秒'
  695. return Y + M + D + h + m + s
  696. },
  697. generateLog() {
  698. let params = {
  699. 'log_type': 1
  700. }
  701. generateLog(params).then(
  702. response => {
  703. if (response.data.state === 1) {
  704. this.logs = response.data.data.logs
  705. this.exportLogVisible = true
  706. } else {
  707. this.$message.error(response.data.msg)
  708. }
  709. }
  710. )
  711. },
  712. handleSuccess({ results, header }) {
  713. console.log(results)
  714. console.log(header)
  715. if (header != undefined && header.length > 0) {
  716. var isHasName = header.includes('*姓名')
  717. var isHasGender = header.includes('*性别')
  718. var isHasPhone = header.includes('*手机号')
  719. var isHasIdCard = header.includes('*身份证号')
  720. var isHasDate = header.includes('*首次肾脏治疗时间')
  721. var isHasSource = header.includes('*患者来源')
  722. var isHasLapseto = header.includes('*治疗状态')
  723. var isHasInfectious = header.includes('*传染病')
  724. var isHasDiagnose = header.includes('诊断')
  725. var isHasDialysisNo = header.includes('透析号')
  726. var isHasDryWeight = header.includes('干体重(kg)')
  727. var isHasHeight = header.includes('身高(cm)')
  728. var isHasHomeAddress = header.includes('家庭住址')
  729. if (!(isHasName && isHasGender && isHasPhone && isHasIdCard && isHasDate && isHasSource && isHasLapseto && isHasInfectious && isHasDiagnose && isHasDialysisNo && isHasDryWeight && isHasHeight && isHasHomeAddress)) {
  730. this.dialogVisible = true
  731. return
  732. }
  733. } else {
  734. this.dialogVisible = true
  735. return
  736. }
  737. getMaxDialysisNo().then(
  738. response => {
  739. if (response.data.state === 1) {
  740. this.max_dialysis_no = response.data.data.dialysis_no
  741. if (this.max_dialysis_no == 0) {
  742. this.max_dialysis_no = 1
  743. } else {
  744. this.max_dialysis_no++
  745. }
  746. this.export_date = []
  747. for (let i = 1; i < results.length; i++) {
  748. let obj = {}
  749. for (var key in results[i]) {
  750. if (results[i]['*姓名'] === undefined) {
  751. obj['name'] = ''
  752. } else {
  753. if (key == '*姓名') {
  754. obj['name'] = results[i][key].replace(/\s/g,"")
  755. }
  756. }
  757. if (results[i]['*性别'] === undefined) {
  758. obj['gender'] = '0'
  759. } else {
  760. if (key == '*性别') {
  761. if (results[i][key] == '男') {
  762. obj['gender'] = '1'
  763. } else if (results[i][key] == '女') {
  764. obj['gender'] = '2'
  765. } else {
  766. obj['gender'] = '0'
  767. }
  768. }
  769. }
  770. if (results[i]['*手机号'] === undefined) {
  771. obj['phone'] = ''
  772. } else {
  773. if (key == '*手机号') {
  774. obj['phone'] = results[i][key].replace(/\s/g,"")
  775. }
  776. }
  777. if (results[i]['*身份证号'] === undefined) {
  778. obj['id_card_no'] = ''
  779. } else {
  780. if (key == '*身份证号') {
  781. obj['id_card_no'] = results[i][key].replace(/\s/g,"")
  782. }
  783. }
  784. if (results[i]['*首次肾脏治疗时间'] === undefined) {
  785. obj['first_treatment_date'] = ''
  786. } else {
  787. if (key == '*首次肾脏治疗时间') {
  788. var month = parseInt(results[i][key].replace(/\s/g,"").split('/')[0])
  789. var day = parseInt(results[i][key].replace(/\s/g,"").split('/')[1])
  790. var year = parseInt(results[i][key].replace(/\s/g,"").split('/')[2])
  791. if (year < 10) {
  792. year = '0' + year
  793. }
  794. if (day < 10) {
  795. day = '0' + day
  796. }
  797. if (month < 10) {
  798. month = '0' + month
  799. }
  800. obj['first_treatment_date'] = '20' + year.toString() + '/' + month.toString() + '/' + day.toString()
  801. }
  802. }
  803. if (results[i]['*患者来源'] === undefined) {
  804. obj['source'] = '3'
  805. } else {
  806. if (key == '*患者来源') {
  807. if (results[i][key] == '门诊') {
  808. obj['source'] = '1'
  809. } else if (results[i][key] == '住院') {
  810. obj['source'] = '2'
  811. } else {
  812. obj['source'] = '0'
  813. }
  814. }
  815. }
  816. if (results[i]['*治疗状态'] === undefined) {
  817. obj['lapseto'] = '3'
  818. } else {
  819. if (key == '*治疗状态') {
  820. if (results[i][key] == '留治') {
  821. obj['lapseto'] = '1'
  822. } else if (results[i][key] == '转归') {
  823. obj['lapseto'] = '2'
  824. } else {
  825. obj['lapseto'] = '0'
  826. }
  827. }
  828. }
  829. if (results[i]['*传染病'] === undefined) {
  830. let contagions = []
  831. obj['is_infectious'] = '3'
  832. obj['contagions'] = contagions
  833. } else {
  834. if (key == '*传染病') {
  835. if (results[i][key] == '无') {
  836. let contagions = []
  837. obj['is_infectious'] = '1'
  838. obj['contagions'] = contagions
  839. } else if (results[i][key] == '乙肝') {
  840. let contagions = []
  841. contagions.push(2)
  842. obj['is_infectious'] = '2'
  843. obj['contagions'] = contagions
  844. } else if (results[i][key] == '丙肝') {
  845. let contagions = []
  846. contagions.push(3)
  847. obj['is_infectious'] = '2'
  848. obj['contagions'] = contagions
  849. } else if (results[i][key] == '艾滋病') {
  850. let contagions = []
  851. contagions.push(4)
  852. obj['is_infectious'] = '2'
  853. obj['contagions'] = contagions
  854. } else if (results[i][key] == '肺结核') {
  855. let contagions = []
  856. contagions.push(5)
  857. obj['is_infectious'] = '2'
  858. obj['contagions'] = contagions
  859. } else if (results[i][key] == '梅毒') {
  860. let contagions = []
  861. contagions.push(6)
  862. obj['is_infectious'] = '2'
  863. obj['contagions'] = contagions
  864. } else {
  865. let contagions = []
  866. obj['is_infectious'] = '0'
  867. obj['contagions'] = contagions
  868. }
  869. }
  870. }
  871. if (results[i]['诊断'] === undefined) {
  872. obj['diagnose'] = ''
  873. } else {
  874. if (key == '诊断') {
  875. obj['diagnose'] = results[i][key]
  876. }
  877. }
  878. console.log(obj)
  879. if (results[i]['透析号'] === undefined) {
  880. obj['dialysis_no'] = ''
  881. } else {
  882. if (key == '透析号') {
  883. obj['dialysis_no'] = results[i][key].replace(/\s/g,"")
  884. }
  885. }
  886. console.log(obj)
  887. if (results[i]['干体重(kg)'] === undefined) {
  888. obj['dry_weight'] = ''
  889. } else {
  890. if (key == '干体重(kg)') {
  891. obj['dry_weight'] = results[i][key].replace(/\s/g,"")
  892. }
  893. }
  894. console.log(obj)
  895. if (results[i]['身高(cm)'] === undefined) {
  896. obj['height'] = ''
  897. } else {
  898. if (key == '身高(cm)') {
  899. obj['height'] = results[i][key].replace(/\s/g,"")
  900. }
  901. }
  902. console.log(obj)
  903. if (results[i]['家庭住址'] === undefined) {
  904. obj['home_address'] = ''
  905. } else {
  906. if (key == '家庭住址') {
  907. obj['home_address'] = results[i][key]
  908. }
  909. }
  910. }
  911. this.export_date.push(obj)
  912. }
  913. let index = 0
  914. for (let i = 0; i < this.export_date.length; i++) {
  915. if (this.export_date[i].dialysis_no == '') {
  916. let new_dialysis_no = this.max_dialysis_no + index
  917. console.log(new_dialysis_no)
  918. index++
  919. let no = new_dialysis_no.toString()
  920. console.log(no)
  921. let rep = 3 - no.length
  922. console.log(rep)
  923. let tempNo = ""
  924. if (rep == 1){
  925. tempNo = "0"
  926. }
  927. if (rep == 2){
  928. tempNo = "00"
  929. }
  930. console.log(tempNo)
  931. if (rep > 0) {
  932. no = tempNo + no
  933. }
  934. this.export_date[i].dialysis_no = no
  935. }
  936. }
  937. console.log(this.export_date)
  938. var tempExportDate = this.export_date
  939. var tempExportDateOne = this.export_date
  940. var tempExportDateTwo = this.export_date
  941. const obj2 = {}
  942. tempExportDate = tempExportDate.reduce((cur, next) => {
  943. obj2[next.dialysis_no] ? '' : obj2[next.dialysis_no] = true && cur.push(next)
  944. return cur
  945. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  946. if (tempExportDate.length < this.export_date.length){
  947. this.dialysisVisible = true
  948. return
  949. }
  950. const obj3 = {}
  951. tempExportDateOne = tempExportDateOne.reduce((cur, next) => {
  952. obj3[next.phone] ? '' : obj3[next.phone] = true && cur.push(next)
  953. return cur
  954. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  955. if (tempExportDateOne.length < this.export_date.length){
  956. this.phoneVisible = true
  957. return
  958. }
  959. const obj4 = {}
  960. tempExportDateTwo = tempExportDateTwo.reduce((cur, next) => {
  961. obj4[next.id_card_no] ? '' : obj4[next.id_card_no] = true && cur.push(next)
  962. return cur
  963. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  964. if (tempExportDateTwo.length < this.export_date.length){
  965. this.idCardNoVisible = true
  966. return
  967. }
  968. let params = {
  969. 'patients': this.export_date
  970. }
  971. postExportPatients(params).then(
  972. response => {
  973. if (response.data.state === 1) {
  974. this.getList()
  975. } else {
  976. this.$message.error(response.data.msg)
  977. }
  978. }
  979. )
  980. }
  981. }
  982. )
  983. },
  984. getCount(row) {
  985. console.log(row)
  986. return row.total_dialysis + row.user_sys_before_count
  987. },
  988. EditLapseto() {
  989. if (this.lapsetoForm.lapseto_time == '') {
  990. this.$message.error('请选择时间')
  991. return
  992. }
  993. EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(
  994. response => {
  995. if (response.data.state === 1) {
  996. this.$notify({
  997. title: '成功',
  998. message: '转归设置完成',
  999. type: 'success',
  1000. duration: 2000
  1001. })
  1002. this.tableData[
  1003. this.currentIndex
  1004. ].lapseto = this.lapsetoForm.lapseto_type
  1005. this.currentIndex = -1
  1006. this.LapsetoDialogVisible = false
  1007. } else {
  1008. this.$message.error(response.data.msg)
  1009. }
  1010. }
  1011. )
  1012. },
  1013. OpenSetLapseto(row, index) {
  1014. this.patient = row
  1015. this.currentIndex = index
  1016. this.lapsetoForm.lapseto_time = ''
  1017. this.lapsetoForm.lapseto_type = row.lapseto
  1018. this.lapsetoForm.patient_id = row.id
  1019. this.LapsetoDialogVisible = true
  1020. },
  1021. LapsetoInfo(row) {
  1022. if (
  1023. typeof row.lapseto === 'undefined' ||
  1024. (row.lapseto !== 1 && row.lapseto !== 2)
  1025. ) {
  1026. return '未设置'
  1027. } else if (row.lapseto === 1) {
  1028. return '留治'
  1029. } else {
  1030. return '转出'
  1031. }
  1032. },
  1033. openWechatBindDialog() {
  1034. this.bindWechatDialog = true
  1035. },
  1036. handleCheckAllChange(val) {
  1037. console.log(val)
  1038. console.log(this.checkAll)
  1039. console.log(this.isIndeterminate)
  1040. },
  1041. handleSelectionChange(val) {
  1042. this.multipleSelection = val
  1043. this.pageSelect = this.multipleSelection.length
  1044. },
  1045. handleCheckedCitiesChange(value) {
  1046. const checkedCount = value.length
  1047. this.checkAll = checkedCount === this.cities.length
  1048. this.isIndeterminate =
  1049. checkedCount > 0 && checkedCount < this.cities.length
  1050. },
  1051. handleSizeChange(val) {
  1052. this.listQuery.limit = val
  1053. this.getList()
  1054. },
  1055. handleCurrentChange(val) {
  1056. this.listQuery.page = val
  1057. this.getList()
  1058. },
  1059. changeCategoryId(categoryId) {
  1060. this.categoryId = categoryId
  1061. },
  1062. selectSchedulType(scheduleType) {
  1063. // alert(scheduleType);/
  1064. this.schedulType = scheduleType
  1065. this.listQuery.schedul_type = scheduleType
  1066. this.getList()
  1067. },
  1068. selectSystemType(systemType) {
  1069. this.systemType = systemType
  1070. this.listQuery.binding_state = systemType
  1071. this.getList()
  1072. },
  1073. selectLapseTo(lapseto) {
  1074. this.lapsetoType = lapseto
  1075. this.listQuery.lapseto = lapseto
  1076. this.getList()
  1077. },
  1078. selectSource(source) {
  1079. this.sourceType = source
  1080. this.listQuery.source = source
  1081. this.getList()
  1082. },
  1083. changeTimeOne(val) {
  1084. var time = this.getTimestamp(val) - this.end_time
  1085. if (time > 0) {
  1086. this.$message.error('结束时间不能小于开始时间')
  1087. this.listQuery.start_time = ''
  1088. } else {
  1089. this.getList()
  1090. this.startTime = this.getTimestamp(val)
  1091. }
  1092. },
  1093. changeTime(val) {
  1094. var time = this.getTimestamp(val) - this.startTime
  1095. if (time < 0) {
  1096. this.$message.error('结束时间不能小于开始时间')
  1097. this.listQuery.end_time = ''
  1098. } else {
  1099. this.getList()
  1100. this.end_time = this.getTimestamp(val)
  1101. }
  1102. },
  1103. getTimestamp(time) {
  1104. // 把时间日期转成时间戳
  1105. return new Date(time).getTime() / 1000
  1106. },
  1107. search() {
  1108. this.listQuery.keywords = this.searchKey
  1109. this.getList()
  1110. },
  1111. changeOtherSearch() {
  1112. this.getList()
  1113. },
  1114. getList() {
  1115. fetchList(this.listQuery).then(response => {
  1116. if (response.data.state === 0) {
  1117. this.$message.error(response.data.msg)
  1118. return false
  1119. } else {
  1120. this.tableData = response.data.data.patients
  1121. // console.log('病人是', this.tableData)
  1122. this.pageTotal = this.tableData.length
  1123. this.total = response.data.data.total
  1124. }
  1125. })
  1126. },
  1127. OpenView(name, number, id) {
  1128. this.name = name
  1129. this.dialysis_no = number
  1130. this.centerDialogVisible = true
  1131. OpenView(id).then(response => {
  1132. if (response.data.state === 0) {
  1133. this.$message.error(response.data.msg)
  1134. return false
  1135. } else {
  1136. var patient = response.data.data.patient
  1137. console.log('二维码病人信息', patient)
  1138. this.id = patient.id
  1139. this.name = patient.name
  1140. this.gender = patient.gender
  1141. this.idcardno = patient.id_card_no
  1142. this.phone = patient.phone
  1143. this.healthcareno = patient.health_care_no
  1144. }
  1145. })
  1146. },
  1147. ShowQRCode() {
  1148. document.getElementById('qrcode').innerHTML = ''
  1149. this.qrcode = this.$QRCode()
  1150. },
  1151. download() {
  1152. alert('aaaa')
  1153. },
  1154. print() {
  1155. var ptime = Math.round(new Date().getTime() / 1000)
  1156. this.print_time = uParseTime(ptime, '{y}年{m}月{d}日')
  1157. const style =
  1158. '@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;} }'
  1159. setTimeout(() => {
  1160. printJS({
  1161. printable: 'print-card-info',
  1162. type: 'html',
  1163. style: style,
  1164. scanStyles: false
  1165. })
  1166. }, 1)
  1167. var id = this.id
  1168. var name = this.name
  1169. var gender = this.gender
  1170. if (gender === 1) {
  1171. gender = '男'
  1172. }
  1173. if (gender === 2) {
  1174. gender = '女'
  1175. }
  1176. var idcardno = this.idcardno
  1177. var phone = this.phone
  1178. var healthcareno = this.healthcareno
  1179. var dialysisno = this.dialysis_no
  1180. // Base64位加密
  1181. // var aid = this.Base64.encode(id);
  1182. // var aname = this.Base64.encode(name);
  1183. // var agender = this.Base64.encode(gender);
  1184. // var aidcardno = this.Base64.encode(idcardno);
  1185. // var aphone = this.Base64.encode(phone);
  1186. // var ahealthcareno = this.Base64.encode(healthcareno);
  1187. // var adialysisno = this.Base64.encode(dialysisno);
  1188. // 调用生成二维码的方法
  1189. this.$options.methods.qrcode(
  1190. id,
  1191. name,
  1192. gender,
  1193. idcardno,
  1194. phone,
  1195. healthcareno,
  1196. dialysisno
  1197. )
  1198. },
  1199. qrcode(id, name, gender, idcardno, phone, healthcareno, dialysisno) {
  1200. document.getElementById('code').innerHTML = ''
  1201. const qrcode = new QRCode('code', {
  1202. width: 200,
  1203. height: 200,
  1204. text:
  1205. 'user_id:' +
  1206. id +
  1207. ',' +
  1208. 'name:' +
  1209. name +
  1210. ',' +
  1211. 'dialysis_no:' +
  1212. dialysisno +
  1213. ',' +
  1214. 'gender:' +
  1215. gender +
  1216. ',' +
  1217. 'idcard_no:' +
  1218. idcardno +
  1219. ',' +
  1220. 'phone:' +
  1221. phone +
  1222. ',' +
  1223. 'healthcare_no:' +
  1224. healthcareno
  1225. })
  1226. }
  1227. // components:{
  1228. // pagiNation
  1229. // }
  1230. }
  1231. }
  1232. Vue.prototype.$QRCode = function() {
  1233. var name = this.name
  1234. var dialysis_no = this.dialysis_no
  1235. var id = this.id
  1236. var gender = this.gender
  1237. if (gender === 1) {
  1238. gender = '男'
  1239. }
  1240. if (gender === 2) {
  1241. gender = '女'
  1242. }
  1243. var idcardno = this.idcardno
  1244. var phone = this.phone
  1245. var healthcareno = this.healthcareno
  1246. // BASE64加密
  1247. // var eid = this.Base64.encode(id)
  1248. // var ename = this.Base64.encode(name)
  1249. // var egender = this.Base64.encode(gender)
  1250. // var eidcardno = this.Base64.encode(idcardno)
  1251. // var ephone = this.Base64.encode(phone)
  1252. // var ehealthcareno = this.Base64.encode(healthcareno)
  1253. // var edialysisno = this.Base64.encode(dialysis_no)
  1254. var eid = id
  1255. var ename = name
  1256. var egender = gender
  1257. var eidcardno = idcardno
  1258. var ephone = phone
  1259. var ehealthcareno = healthcareno
  1260. var edialysisno = dialysis_no
  1261. console.log(
  1262. 'user_id' + eid,
  1263. 'name:' + ename,
  1264. 'gender:' + egender,
  1265. 'idcard_no:' + eidcardno,
  1266. 'phone:' + ephone,
  1267. 'healthcare_no:' + ehealthcareno,
  1268. 'edialysis_no:' + edialysisno
  1269. )
  1270. const salting = 'admin-authority'
  1271. new QRCode('qrcode', {
  1272. width: 150, // 设置宽度
  1273. height: 150, // 设置高度
  1274. text:
  1275. 'user_id:' +
  1276. eid +
  1277. ',' +
  1278. 'name:' +
  1279. ename +
  1280. ',' +
  1281. 'dialysis_no:' +
  1282. edialysisno +
  1283. ',' +
  1284. 'gender:' +
  1285. egender +
  1286. ',' +
  1287. 'idcard_no:' +
  1288. eidcardno +
  1289. ',' +
  1290. 'phone:' +
  1291. ephone +
  1292. ',' +
  1293. 'healthcare_no:' +
  1294. ehealthcareno
  1295. })
  1296. }
  1297. </script>
  1298. <style rel="stylesheet/scss" lang="scss">
  1299. .app-container {
  1300. /*margin: 20 px;*/
  1301. font-size: 15px;
  1302. .filter-container {
  1303. padding-bottom: 5px;
  1304. }
  1305. .search-component {
  1306. width: 500px;
  1307. .searchBox {
  1308. width: 300px;
  1309. height: 36px;
  1310. line-height: 36px;
  1311. padding-left: 15px;
  1312. border: 1px #dcdfe6 solid;
  1313. border-right: none;
  1314. outline: none;
  1315. float: left;
  1316. border-radius: 6px 0 0 6px;
  1317. font-size: 14px;
  1318. color: #333;
  1319. background: #fff;
  1320. box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
  1321. }
  1322. .searchBtn {
  1323. background-color: #409eff;
  1324. color: #fff;
  1325. font-size: 15px;
  1326. text-align: center;
  1327. height: 36px;
  1328. line-height: 36px;
  1329. float: left;
  1330. outline: none;
  1331. width: 70px;
  1332. border: none;
  1333. border-radius: 0 6px 6px 0;
  1334. font-family: "Microsoft Yahei";
  1335. cursor: pointer;
  1336. }
  1337. }
  1338. .amount {
  1339. font-weight: normal;
  1340. padding: 10px 0 0 0;
  1341. color: #606266;
  1342. font-size: 14px;
  1343. span {
  1344. color: #ef2525;
  1345. font-family: "Arial";
  1346. padding: 0 2px;
  1347. }
  1348. }
  1349. .print_main_content {
  1350. background-color: white;
  1351. width: 960px;
  1352. margin: 0 auto;
  1353. padding: 0 0 20px 0;
  1354. }
  1355. .print_main_content .order_title {
  1356. text-align: center;
  1357. font-size: 23px;
  1358. line-height: 50px;
  1359. font-weight: 500px;
  1360. }
  1361. .print_main_content table {
  1362. width: 100%;
  1363. border: 1px solid;
  1364. border-collapse: collapse;
  1365. padding: 2px;
  1366. }
  1367. .print_main_content table tbody tr td {
  1368. border: 1px solid;
  1369. text-align: center;
  1370. /* font-size: 17px; */
  1371. padding: 10px 8px;
  1372. }
  1373. .td_proj_title {
  1374. font-size: 18px;
  1375. line-height: 25px;
  1376. font-weight: 500;
  1377. }
  1378. .td_proj_content {
  1379. font-size: 18px;
  1380. line-height: 25px;
  1381. }
  1382. .td_align_left {
  1383. text-align: left;
  1384. }
  1385. .print_footnote_panel {
  1386. font-size: 17px;
  1387. line-height: 40px;
  1388. }
  1389. .print_footnote_panel .proj {
  1390. display: inline-block;
  1391. width: 49%;
  1392. }
  1393. .print_footnote_panel .proj .proj_title {
  1394. font-weight: 500;
  1395. }
  1396. }
  1397. .el-table td,
  1398. .el-table th.is-leaf,
  1399. .el-table--border,
  1400. .el-table--group {
  1401. border-color: #d0d3da;
  1402. }
  1403. .el-table--border::after,
  1404. .el-table--group::after,
  1405. .el-table::before {
  1406. background-color: #d0d3da;
  1407. }
  1408. .el-select--small {
  1409. width: 196px;
  1410. }
  1411. .el-checkbox__inner::after {
  1412. height: 10px;
  1413. left: 7px;
  1414. }
  1415. .el-checkbox__inner {
  1416. width: 20px;
  1417. height: 20px;
  1418. }
  1419. </style>