patients.vue 67KB

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