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

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