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

tableData.vue 65KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152
  1. <template>
  2. <div id="table_data">
  3. <!-- <div style="margin-bottom:-30px">
  4. <span>分区:</span>
  5. <el-select v-model="partition_id" placeholder="请选择" @change="changePartiton">
  6. <el-option
  7. v-for="item in this.zones"
  8. :key="item.id"
  9. :label="item.name"
  10. :value="item.id">
  11. </el-option>
  12. </el-select>
  13. <span style="margin-left:100px">班次:</span>
  14. <el-select v-model="schedule_type" placeholder="请选择" @change="changeSchedule_type">
  15. <el-option
  16. v-for="item in options"
  17. :key="item.id"
  18. :label="item.name"
  19. :value="item.id">
  20. </el-option>
  21. </el-select>
  22. </div> -->
  23. <div class="cell clearfix" v-if="weekTime == 'thisWeek' || weekTime == 'nextWeek' || weekTime == 'nextTwoWeek' ">
  24. <el-input
  25. size="small"
  26. style="width: 200px;"
  27. class="filter-item"
  28. v-model.trim="keywords"
  29. placeholder="病人名称/透析号"
  30. @keyup.enter.native='search'
  31. />
  32. <el-button
  33. size="small"
  34. class="filter-item"
  35. type="primary"
  36. icon="el-icon-search"
  37. @click="search"
  38. >搜索</el-button
  39. >
  40. </div>
  41. <el-dialog :visible.sync="searchTableVisible" width="80%">
  42. <el-table
  43. :data="schedulePatients"
  44. :header-cell-style="{
  45. backgroundColor: 'rgb(245, 247, 250)',
  46. color: '#606266'
  47. }"
  48. :row-style="{ color: '#303133' }"
  49. style="width: 100%"
  50. border
  51. >
  52. <el-table-column label="姓名" width="120">
  53. <template slot-scope="scope">
  54. {{ scope.row.patient }}
  55. </template>
  56. </el-table-column>
  57. <el-table-column label="透析日期" width="200">
  58. <template slot-scope="scope">
  59. {{ getDialysisDate(scope.row) }}
  60. </template>
  61. </el-table-column>
  62. <el-table-column label="分区">
  63. <template slot-scope="scope">
  64. {{ scope.row.zone.name }}
  65. </template>
  66. </el-table-column>
  67. <el-table-column label="班次" width="80">
  68. <template slot-scope="scope">
  69. {{ getSchedulesType(scope.row.schedule_type) }}
  70. </template>
  71. </el-table-column>
  72. <el-table-column label="机号" width="80">
  73. <template slot-scope="scope">
  74. {{ scope.row.number.number }}
  75. </template>
  76. </el-table-column>
  77. <el-table-column label="透析模式" width="100">
  78. <template slot-scope="scope">
  79. {{ scope.row.mode.name }}
  80. </template>
  81. </el-table-column>
  82. <el-table-column label="操作" align="center" width="300">
  83. <template slot-scope="scope">
  84. <el-button
  85. size="mini"
  86. type="primary"
  87. @click="CancelSchedule(scope.row.id)"
  88. >
  89. 取消排班
  90. </el-button>
  91. <el-button
  92. size="mini"
  93. type="primary"
  94. @click="changeMachineNumber(scope.$index, scope.row)"
  95. >
  96. 调整机号
  97. </el-button>
  98. <el-button
  99. size="mini"
  100. type="primary"
  101. @click="changeMode(scope.$index, scope.row)"
  102. >
  103. 调整模式
  104. </el-button>
  105. </template>
  106. </el-table-column>
  107. </el-table>
  108. </el-dialog>
  109. <el-table
  110. :row-style="{ color: '#303133' }"
  111. :header-cell-style="{
  112. backgroundColor: 'rgb(245, 247, 250)',
  113. color: '#606266'
  114. }"
  115. :data="scheduleZone"
  116. :span-method="objectSpanMethod"
  117. @cell-click="clickThis"
  118. :summary-method="getSummaries"
  119. show-summary
  120. :row-class-name="tableRowClassName"
  121. :cell-class-name="cellClass"
  122. sum-text="总数"
  123. :height="tableContainHeight"
  124. ref="table"
  125. style="width: 100%;cursor: pointer;"
  126. >
  127. <el-table-column
  128. prop="area"
  129. label="分区"
  130. width="80"
  131. align="center"
  132. fixed
  133. ></el-table-column>
  134. <el-table-column
  135. prop="cut"
  136. label="机号"
  137. width="80"
  138. align="center"
  139. fixed
  140. ></el-table-column>
  141. <el-table-column
  142. :label="'周一 (' + weekTitle[0] + ')'"
  143. width="215"
  144. align="center"
  145. >
  146. <el-table-column prop="Mon_M" label="上" width="70" align="center">
  147. <schedule-item
  148. slot-scope="scope"
  149. :schedule-detail="scope.row.Mon_M"
  150. ></schedule-item>
  151. </el-table-column>
  152. <el-table-column prop="Mon_A" label="下" width="70" align="center">
  153. <schedule-item
  154. slot-scope="scope"
  155. :schedule-detail="scope.row.Mon_A"
  156. ></schedule-item>
  157. </el-table-column>
  158. <el-table-column prop="Mon_N" label="晚" width="70" align="center">
  159. <schedule-item
  160. slot-scope="scope"
  161. :schedule-detail="scope.row.Mon_N"
  162. ></schedule-item>
  163. </el-table-column>
  164. </el-table-column>
  165. <el-table-column
  166. :label="'周二 (' + weekTitle[1] + ')'"
  167. width="215"
  168. align="center"
  169. >
  170. <el-table-column prop="Tue_M" label="上" width="70" align="center">
  171. <schedule-item
  172. slot-scope="scope"
  173. :schedule-detail="scope.row.Tue_M"
  174. ></schedule-item>
  175. </el-table-column>
  176. <el-table-column prop="Tue_A" label="下" width="70" align="center">
  177. <schedule-item
  178. slot-scope="scope"
  179. :schedule-detail="scope.row.Tue_A"
  180. ></schedule-item>
  181. </el-table-column>
  182. <el-table-column prop="Tue_N" label="晚" width="70" align="center">
  183. <schedule-item
  184. slot-scope="scope"
  185. :schedule-detail="scope.row.Tue_N"
  186. ></schedule-item>
  187. </el-table-column>
  188. </el-table-column>
  189. <el-table-column
  190. :label="'周三 (' + weekTitle[2] + ')'"
  191. width="215"
  192. align="center"
  193. >
  194. <el-table-column prop="Wed_M" label="上" width="70" align="center">
  195. <schedule-item
  196. slot-scope="scope"
  197. :schedule-detail="scope.row.Wed_M"
  198. ></schedule-item>
  199. </el-table-column>
  200. <el-table-column prop="Wed_A" label="下" width="70" align="center">
  201. <schedule-item
  202. slot-scope="scope"
  203. :schedule-detail="scope.row.Wed_A"
  204. ></schedule-item>
  205. </el-table-column>
  206. <el-table-column prop="Wed_N" label="晚" width="70" align="center">
  207. <schedule-item
  208. slot-scope="scope"
  209. :schedule-detail="scope.row.Wed_N"
  210. ></schedule-item>
  211. </el-table-column>
  212. </el-table-column>
  213. <el-table-column
  214. :label="'周四 (' + weekTitle[3] + ')'"
  215. width="215"
  216. align="center"
  217. >
  218. <el-table-column prop="Thurs_M" label="上" width="70" align="center">
  219. <schedule-item
  220. slot-scope="scope"
  221. :schedule-detail="scope.row.Thurs_M"
  222. ></schedule-item>
  223. </el-table-column>
  224. <el-table-column prop="Thurs_A" label="下" width="70" align="center">
  225. <schedule-item
  226. slot-scope="scope"
  227. :schedule-detail="scope.row.Thurs_A"
  228. ></schedule-item>
  229. </el-table-column>
  230. <el-table-column prop="Thurs_N" label="晚" width="70" align="center">
  231. <schedule-item
  232. slot-scope="scope"
  233. :schedule-detail="scope.row.Thurs_N"
  234. ></schedule-item>
  235. </el-table-column>
  236. </el-table-column>
  237. <el-table-column
  238. :label="'周五 (' + weekTitle[4] + ')'"
  239. width="215"
  240. align="center"
  241. >
  242. <el-table-column prop="Fri_M" label="上" width="70" align="center">
  243. <schedule-item
  244. slot-scope="scope"
  245. :schedule-detail="scope.row.Fri_M"
  246. ></schedule-item>
  247. </el-table-column>
  248. <el-table-column prop="Fri_A" label="下" width="70" align="center">
  249. <schedule-item
  250. slot-scope="scope"
  251. :schedule-detail="scope.row.Fri_A"
  252. ></schedule-item>
  253. </el-table-column>
  254. <el-table-column prop="Fri_N" label="晚" width="70" align="center">
  255. <schedule-item
  256. slot-scope="scope"
  257. :schedule-detail="scope.row.Fri_N"
  258. ></schedule-item>
  259. </el-table-column>
  260. </el-table-column>
  261. <el-table-column
  262. :label="'周六 (' + weekTitle[5] + ')'"
  263. width="215"
  264. align="center"
  265. >
  266. <el-table-column prop="Sat_M" label="上" width="70" align="center">
  267. <schedule-item
  268. slot-scope="scope"
  269. :schedule-detail="scope.row.Sat_M"
  270. ></schedule-item>
  271. </el-table-column>
  272. <el-table-column prop="Sat_A" label="下" width="70" align="center">
  273. <schedule-item
  274. slot-scope="scope"
  275. :schedule-detail="scope.row.Sat_A"
  276. ></schedule-item>
  277. </el-table-column>
  278. <el-table-column prop="Sat_N" label="晚" width="70" align="center">
  279. <schedule-item
  280. slot-scope="scope"
  281. :schedule-detail="scope.row.Sat_N"
  282. ></schedule-item>
  283. </el-table-column>
  284. </el-table-column>
  285. <el-table-column
  286. :label="'周日 (' + weekTitle[6] + ')'"
  287. min-width="215"
  288. align="center"
  289. >
  290. <el-table-column prop="Sun_M" label="上" min-width="70" align="center">
  291. <schedule-item
  292. slot-scope="scope"
  293. :schedule-detail="scope.row.Sun_M"
  294. ></schedule-item>
  295. </el-table-column>
  296. <el-table-column prop="Sun_A" label="下" min-width="70" align="center">
  297. <schedule-item
  298. slot-scope="scope"
  299. :schedule-detail="scope.row.Sun_A"
  300. ></schedule-item>
  301. </el-table-column>
  302. <el-table-column prop="Sun_N" label="晚" min-width="70" align="center">
  303. <schedule-item
  304. slot-scope="scope"
  305. :schedule-detail="scope.row.Sun_N"
  306. ></schedule-item>
  307. </el-table-column>
  308. </el-table-column>
  309. <el-table-column
  310. prop="total"
  311. label="总数"
  312. width="60"
  313. align="center"
  314. fixed="right"
  315. ></el-table-column>
  316. </el-table>
  317. <el-dialog
  318. title="排班"
  319. :visible.sync="dialogTableVisible"
  320. width="1000px;"
  321. :v-model="dialog"
  322. v-loading="creating_schedule"
  323. >
  324. <div>
  325. <div class="cell clearfix">
  326. <label class="title"><span class="name">当前排班</span> : </label>
  327. <div class="time ">
  328. <ul class="">
  329. <span class="current"
  330. >日期 : {{ currentData.schedule_date }} &nbsp;&nbsp; 班次 :
  331. {{ currentData.type_name }} &nbsp;&nbsp; 病房 :
  332. {{ currentData.zone_name }} &nbsp;&nbsp; 透析机 :
  333. {{ currentData.bed_name }}
  334. </span>
  335. </ul>
  336. </div>
  337. </div>
  338. <div class="cell clearfix">
  339. <label class="title"><span class="name">患者搜索</span> : </label>
  340. <div class="time ">
  341. <ul class="">
  342. <el-input
  343. size="medium"
  344. v-model="searchKey"
  345. placeholder="请输入搜索的内容"
  346. style="width:260px"
  347. @keyup.enter.native='SubmitSearch'
  348. ></el-input>
  349. <el-button
  350. type="primary"
  351. icon="el-icon-search"
  352. @click="SubmitSearch"
  353. >搜索</el-button
  354. >
  355. </ul>
  356. </div>
  357. </div>
  358. <div class="cell clearfix">
  359. <label class="title"><span class="name">排班</span> : </label>
  360. <div class="time ">
  361. <ul class="">
  362. <li
  363. v-for="item in schedulArr"
  364. @click="changeSearchSchedule(item.value)"
  365. :key="item.value"
  366. :class="patientQuery.schedule == item.value ? 'active' : ''"
  367. >
  368. {{ item.label }}
  369. </li>
  370. </ul>
  371. </div>
  372. </div>
  373. <!-- <div class="cell clearfix">
  374. <label class="title"><span class="name">标签</span> : </label>
  375. <div class="time ">
  376. <ul class="">
  377. <li v-for="item in tagArr" :key="item.value" >{{item.label}}</li>
  378. </ul>
  379. </div>
  380. </div> -->
  381. <div class="cell clearfix">
  382. <label class="title"><span class="name">传染病</span> : </label>
  383. <div class="time ">
  384. <ul class="">
  385. <li
  386. v-for="item in diseasesArr"
  387. @click="changeSearchContagion(item.value)"
  388. :key="item.value"
  389. :class="patientQuery.contagion == item.value ? 'active' : ''"
  390. >
  391. {{ item.label }}
  392. </li>
  393. </ul>
  394. </div>
  395. </div>
  396. </div>
  397. <el-table
  398. ref="singleTable"
  399. :data="patients"
  400. border
  401. highlight-current-row
  402. @current-change="handleCurrentChange"
  403. :header-cell-style="{ backgroundColor: 'rgb(236, 245, 255)' }"
  404. >
  405. <el-table-column
  406. type="index"
  407. label="序号"
  408. width="89"
  409. align="center"
  410. ></el-table-column>
  411. <el-table-column
  412. property="dialysis_no"
  413. label="透析号"
  414. min-width="110"
  415. align="center"
  416. ></el-table-column>
  417. <el-table-column
  418. property="name"
  419. label="姓名"
  420. min-width="110"
  421. align="center"
  422. ></el-table-column>
  423. <el-table-column
  424. property="schedules"
  425. label="双周已排"
  426. min-width="80"
  427. align="center"
  428. >
  429. <template slot-scope="scope">
  430. <span>{{ scope.row.schedules.length }}次</span>
  431. </template>
  432. </el-table-column>
  433. <el-table-column
  434. property="solutions"
  435. label="治疗频率"
  436. min-width="200"
  437. align="center"
  438. >
  439. <template slot-scope="scope">
  440. <span v-for="solution in scope.row.solutions" :key="solution.id"
  441. >{{ solution.name }}({{ solution.period }}{{ solution.times }})
  442. </span>
  443. </template>
  444. </el-table-column>
  445. <el-table-column
  446. property="sch_remark"
  447. label="备注"
  448. min-width="200"
  449. align="center"
  450. >
  451. </el-table-column>
  452. </el-table>
  453. <div slot="footer" class="dialog-footer">
  454. <el-button @click="closePatientPanel()">取 消</el-button>
  455. <el-button
  456. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  457. type="primary"
  458. @click="setSchedule"
  459. >保 存
  460. </el-button>
  461. </div>
  462. </el-dialog>
  463. <el-dialog title="调整排班" :visible.sync="tzDialogVisible" width="500px">
  464. <div style="width:100%;margin:0 auto">
  465. <el-radio-group v-model="tiaoZhengType" :class="tiaozhengclass">
  466. <el-radio :label="1">取消排班</el-radio>
  467. <el-radio :label="2">调整机号</el-radio>
  468. <el-radio :label="3">调整模式</el-radio>
  469. </el-radio-group>
  470. </div>
  471. <span slot="footer" class="dialog-footer">
  472. <el-button
  473. @click="
  474. tzDialogVisible = false;
  475. tiaoZhengType = 1;
  476. "
  477. >取 消</el-button
  478. >
  479. <el-button
  480. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  481. type="primary"
  482. @click="submitTiaoX"
  483. >
  484. <span v-if='tiaoZhengType == 1'>保存</span>
  485. <span v-if='tiaoZhengType == 2'>下一步</span>
  486. <span v-if='tiaoZhengType == 3'>下一步</span>
  487. </el-button>
  488. </span>
  489. </el-dialog>
  490. <el-dialog
  491. title="调整模式"
  492. :visible.sync="msDialogVisible"
  493. width="500px"
  494. v-loading="changing_mode"
  495. >
  496. <div>
  497. <el-form
  498. :model="changeSchedule"
  499. ref="changeSchedule"
  500. :rules="changeRules"
  501. >
  502. <el-form-item label="" prop="mode_id">
  503. <el-select
  504. v-model="changeSchedule.mode_id"
  505. placeholder="请选择"
  506. style="width:100%"
  507. >
  508. <el-option
  509. :disabled="item.id == currentData.mode_id"
  510. v-for="item in modeOptions"
  511. :key="item.id"
  512. :label="item.name"
  513. :value="item.id"
  514. >
  515. </el-option>
  516. </el-select>
  517. </el-form-item>
  518. </el-form>
  519. </div>
  520. <span slot="footer" class="dialog-footer">
  521. <el-button @click="msDialogVisible = false">取 消</el-button>
  522. <el-button
  523. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  524. type="primary"
  525. @click="submitMode('changeSchedule')"
  526. >保 存</el-button
  527. >
  528. </span>
  529. </el-dialog>
  530. <el-dialog
  531. title="调整机号"
  532. :visible.sync="jhDialogVisible"
  533. width="500px"
  534. v-loading="changing_bed"
  535. >
  536. <div>
  537. <el-form
  538. :model="changeSchedule"
  539. ref="changeSchedule"
  540. :rules="changeRules"
  541. label-width="90px"
  542. >
  543. <el-form-item label="排班日期: ">
  544. <el-input v-model="currentData.schedule_date" disabled></el-input>
  545. </el-form-item>
  546. <el-form-item label="班次: " prop="schedule_type">
  547. <el-select
  548. v-model="changeSchedule.schedule_type"
  549. placeholder="请选择"
  550. style="width:100%"
  551. @change="changeScheduleType"
  552. >
  553. <el-option
  554. v-for="item in scheduleType"
  555. :key="item.id"
  556. :label="item.name"
  557. :value="item.id"
  558. >
  559. </el-option>
  560. </el-select>
  561. </el-form-item>
  562. <el-form-item label="病房: " prop="partition_id">
  563. <el-select
  564. v-model="zone_name"
  565. placeholder="请选择"
  566. style="width:100%"
  567. @change="changePartition"
  568. >
  569. <el-option
  570. v-for="(item, index) in zone_names"
  571. :key="index"
  572. :label="item"
  573. :value="item"
  574. >
  575. </el-option>
  576. </el-select>
  577. </el-form-item>
  578. <el-form-item label="透析机: " prop="bed_id">
  579. <el-select
  580. v-model="device_id"
  581. placeholder="请选择"
  582. style="width:100%"
  583. >
  584. <el-option
  585. v-for="item in current_devices"
  586. :key="item.id"
  587. :label="item.number"
  588. :value="item.id"
  589. >
  590. </el-option>
  591. </el-select>
  592. </el-form-item>
  593. </el-form>
  594. </div>
  595. <span slot="footer" class="dialog-footer">
  596. <el-button @click="jhDialogVisible = false">取 消</el-button>
  597. <el-button
  598. :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
  599. type="primary"
  600. @click="submitTiaoZJH('changeSchedule')"
  601. >保 存</el-button
  602. >
  603. </span>
  604. </el-dialog>
  605. </div>
  606. </template>
  607. <script>
  608. import { uParseTime } from "@/utils/tools";
  609. import {
  610. CancelSchedule,
  611. ChangeSchedule,
  612. CreateSchedule,
  613. getSchedulePatients,
  614. getSchedules,
  615. getSearchResult,
  616. getUrgentScheduleInitData,
  617. getWeekPanels,
  618. getAllZones,
  619. } from "@/api/schedule";
  620. import ScheduleItem from "./ScheduleItem";
  621. let rowNumber = 0;
  622. export default {
  623. name: "tableData",
  624. props: {
  625. weekTime: {
  626. type: String,
  627. default: "thisWeek"
  628. },
  629. scheduleZoneRowProp: {
  630. type: Array,
  631. dafault: []
  632. },
  633. scheduleZoneProp: {
  634. type: Array,
  635. dafault: []
  636. },
  637. partitionsProp: {
  638. type: Object,
  639. dafault: {}
  640. }
  641. },
  642. data() {
  643. return {
  644. // tableContainHeight:400,
  645. // tableHeight:'window.innerHeight - 0',
  646. // rowClass: "table-row-new-class schedule-table-row",
  647. searchKey: "",
  648. tiaoZhengType: 1,
  649. modeOptions: null,
  650. keywords: "",
  651. schedulePatients: [],
  652. searchTableVisible: false,
  653. dialog: {
  654. tag: ""
  655. },
  656. patients: [],
  657. toDay: "",
  658. schedulArr: [
  659. { value: 0, label: "不限" },
  660. { value: 2, label: "未排班" },
  661. { value: 1, label: "已排班" }
  662. ],
  663. tagArr: [
  664. { value: 1, label: "不限" },
  665. { value: 2, label: "透析记录" },
  666. { value: 3, label: "传染病" }
  667. ],
  668. diseasesArr: [{ value: 0, label: "不限" }],
  669. scheduleType: [
  670. { id: 1, name: "上午" },
  671. { id: 2, name: "下午" },
  672. { id: 3, name: "晚上" }
  673. ],
  674. dialogTableVisible: false,
  675. tzDialogVisible: false,
  676. msDialogVisible: false,
  677. jhDialogVisible: false,
  678. scheduleZone: this.scheduleZoneProp,
  679. scheduleZoneRow: -1,
  680. partitions: [],
  681. jihaos: [],
  682. weekTitle: ["", "", "", "", "", "", ""],
  683. weekDays: ["", "", "", "", "", "", ""],
  684. currentData: {
  685. id: 0,
  686. schedule_date: "",
  687. schedule_type: 0,
  688. bed_id: 0,
  689. partition_id: 0,
  690. patient_id: 0,
  691. schedule_week: 0,
  692. mode_id: 0,
  693. type_name: "",
  694. bed_name: "",
  695. partition_type: 0,
  696. contagions: [],
  697. patient: ""
  698. },
  699. changeSchedule: {
  700. mode_id: "",
  701. schedule_type: "",
  702. partition_id: "",
  703. bed_id: "",
  704. schedule_week: "",
  705. partition_type: ""
  706. },
  707. patientQuery: {
  708. keywords: "",
  709. schedule: 0,
  710. contagion: 0
  711. },
  712. tiaozhengclass: "tiaozhengclass",
  713. changeRules: {
  714. mode_id: [{ required: true, message: "请选择模式", trigger: "blur" }],
  715. schedule_type: [
  716. { required: true, message: "请选择班次", trigger: "blur" }
  717. ],
  718. partition_id: [
  719. { required: true, message: "请选择病房", trigger: "blur" }
  720. ],
  721. bed_id: [{ required: true, message: "请选择透析机", trigger: "blur" }]
  722. },
  723. weekday: 0,
  724. creating_schedule: false,
  725. changing_mode: false,
  726. changing_bed: false,
  727. tableHeight: document.documentElement.clientHeight,
  728. origin_schedules: [],
  729. origin_device_numbers: [],
  730. zone_device_map: {},
  731. device_id: 0,
  732. zone_name: "",
  733. current_devices: [],
  734. zone_names: [],
  735. zone_device_options: [],
  736. options:[
  737. {id:0,name:"全部"},
  738. {id:1,name:"上午"},
  739. {id:2,name:"下午"},
  740. {id:3,name:"晚上"},
  741. ],
  742. partition_id:"",
  743. schedule_type:"",
  744. zones:[{id:0,name:"全部"}],
  745. theType:""
  746. };
  747. },
  748. watch: {
  749. weekTime: function() {
  750. var theType = this.weekType(this.weekTime);
  751. console.log("999999999",theType)
  752. this.theType = theType
  753. this.getSchedules();
  754. },
  755. scheduleZoneRow: function() {
  756. var theType = this.weekType(this.weekTime);
  757. this.theType = theType
  758. this.getSchedules();
  759. },
  760. tableHeight(val) {
  761. if (!this.timer) {
  762. this.tableHeight = val;
  763. this.timer = true;
  764. const that = this;
  765. setTimeout(function() {
  766. that.timer = false;
  767. }, 400);
  768. }
  769. }
  770. },
  771. methods: {
  772. cellClass({ row, column, rowIndex, columnIndex }) {
  773. if (columnIndex == 0 || columnIndex == 1 || columnIndex == 23) {
  774. return "";
  775. } else {
  776. if (this.weekTime == "lastWeek") {
  777. return "schedule-table-cell-disable";
  778. } else if (this.weekTime == "thisWeek") {
  779. var weekday = Math.floor((columnIndex - 2) / 3 + 1);
  780. if (weekday < this.weekday) {
  781. return "schedule-table-cell-disable";
  782. }
  783. }
  784. }
  785. return "";
  786. },
  787. SubmitSearch() {
  788. this.patientQuery.keywords = this.searchKey;
  789. this.getSchedulePatients();
  790. },
  791. changeSearchContagion(id) {
  792. this.patientQuery.contagion = id;
  793. this.getSchedulePatients();
  794. },
  795. changeSearchSchedule(id) {
  796. this.patientQuery.schedule = id;
  797. this.getSchedulePatients();
  798. },
  799. getSummaries(param) {
  800. const { columns, data } = param;
  801. const sums = [];
  802. columns.forEach((column, index) => {
  803. if (index === 0 || index === 25) {
  804. sums[index] = "总数";
  805. return;
  806. }
  807. if (index === 1 || index === 24) {
  808. sums[index] = data.length;
  809. return;
  810. }
  811. const values = data.map(item => item[column.property]);
  812. if (index === 23) {
  813. sums[index] = values.reduce((prev, curr) => {
  814. const value = Number(curr);
  815. if (!isNaN(value)) {
  816. return prev + curr;
  817. } else {
  818. return prev;
  819. }
  820. }, 0);
  821. sums[index];
  822. return;
  823. }
  824. sums[index] = values.reduce((prev, curr) => {
  825. if (typeof curr["mode_id"] === "undefined") {
  826. return prev;
  827. }
  828. const value = Number(curr["mode_id"]);
  829. if (!isNaN(value) && value > 0) {
  830. return prev + 1;
  831. } else {
  832. return prev;
  833. }
  834. }, 0);
  835. sums[index];
  836. });
  837. return sums;
  838. },
  839. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  840. var that = this;
  841. var rowNum = 0;
  842. rowNumber = 0;
  843. var rutrnData = {};
  844. if (columnIndex === 0 || columnIndex == 25) {
  845. var rowLen = this.scheduleZoneRow.length;
  846. if (rowLen > 0) {
  847. for (let index = 0; index < rowLen; index++) {
  848. rowNum = this.scheduleZoneRow[index];
  849. rowNumber += rowNum;
  850. var f = rowNumber - rowNum;
  851. if (f == rowIndex) {
  852. rutrnData = {
  853. rowspan: rowNum,
  854. colspan: 1
  855. };
  856. break;
  857. } else if (rowIndex < rowNumber) {
  858. rutrnData = {
  859. rowspan: 0,
  860. colspan: 0
  861. };
  862. break;
  863. }
  864. }
  865. return rutrnData;
  866. }
  867. }
  868. },
  869. handleCurrentChange(row) {
  870. if (typeof row === "undefined" || row == null) {
  871. this.currentData.patient_id = 0;
  872. this.currentData.contagions = [];
  873. } else {
  874. this.currentData.patient_id = row.id;
  875. this.currentData.contagions = row.contagions;
  876. }
  877. },
  878. closePatientPanel(row) {
  879. this.dialogTableVisible = false;
  880. this.$refs.singleTable.setCurrentRow(row);
  881. this.currentData.patient_id = 0;
  882. },
  883. getSchedules() {
  884. const params = {
  885. weekTime:this.theType,
  886. partition_id:this.partition_id,
  887. schedule_type:this.schedule_type,
  888. }
  889. getSchedules(params).then(response => {
  890. if (response.data.state == 1) {
  891. this.weekTitle = response.data.data.weekTitle;
  892. this.weekDays = response.data.data.days;
  893. this.toDay = response.data.data.today;
  894. var theSchedules = response.data.data.schdules;
  895. console.log("中国4444444444444",this.scheduleZone)
  896. var that = this;
  897. this.scheduleZone.forEach(function(zone, index) {
  898. that.scheduleZone[index].Mon_M = {
  899. mode_id: 0,
  900. mode_name: "",
  901. patient_id: 0,
  902. patient: ""
  903. };
  904. that.scheduleZone[index].Mon_A = {
  905. mode_id: 0,
  906. mode_name: "",
  907. patient_id: 0,
  908. patient: ""
  909. };
  910. that.scheduleZone[index].Mon_N = {
  911. mode_id: 0,
  912. mode_name: "",
  913. patient_id: 0,
  914. patient: ""
  915. };
  916. that.scheduleZone[index].Tue_M = {
  917. mode_id: 0,
  918. mode_name: "",
  919. patient_id: 0,
  920. patient: ""
  921. };
  922. that.scheduleZone[index].Tue_A = {
  923. mode_id: 0,
  924. mode_name: "",
  925. patient_id: 0,
  926. patient: ""
  927. };
  928. that.scheduleZone[index].Tue_N = {
  929. mode_id: 0,
  930. mode_name: "",
  931. patient_id: 0,
  932. patient: ""
  933. };
  934. that.scheduleZone[index].Wed_M = {
  935. mode_id: 0,
  936. mode_name: "",
  937. patient_id: 0,
  938. patient: ""
  939. };
  940. that.scheduleZone[index].Wed_A = {
  941. mode_id: 0,
  942. mode_name: "",
  943. patient_id: 0,
  944. patient: ""
  945. };
  946. that.scheduleZone[index].Wed_N = {
  947. mode_id: 0,
  948. mode_name: "",
  949. patient_id: 0,
  950. patient: ""
  951. };
  952. that.scheduleZone[index].Thurs_M = {
  953. mode_id: 0,
  954. mode_name: "",
  955. patient_id: 0,
  956. patient: ""
  957. };
  958. that.scheduleZone[index].Thurs_A = {
  959. mode_id: 0,
  960. mode_name: "",
  961. patient_id: 0,
  962. patient: ""
  963. };
  964. that.scheduleZone[index].Thurs_N = {
  965. mode_id: 0,
  966. mode_name: "",
  967. patient_id: 0,
  968. patient: ""
  969. };
  970. that.scheduleZone[index].Fri_M = {
  971. mode_id: 0,
  972. mode_name: "",
  973. patient_id: 0,
  974. patient: ""
  975. };
  976. that.scheduleZone[index].Fri_A = {
  977. mode_id: 0,
  978. mode_name: "",
  979. patient_id: 0,
  980. patient: ""
  981. };
  982. that.scheduleZone[index].Fri_N = {
  983. mode_id: 0,
  984. mode_name: "",
  985. patient_id: 0,
  986. patient: ""
  987. };
  988. that.scheduleZone[index].Sat_M = {
  989. mode_id: 0,
  990. mode_name: "",
  991. patient_id: 0,
  992. patient: ""
  993. };
  994. that.scheduleZone[index].Sat_A = {
  995. mode_id: 0,
  996. mode_name: "",
  997. patient_id: 0,
  998. patient: ""
  999. };
  1000. that.scheduleZone[index].Sat_N = {
  1001. mode_id: 0,
  1002. mode_name: "",
  1003. patient_id: 0,
  1004. patient: ""
  1005. };
  1006. that.scheduleZone[index].Sun_A = {
  1007. mode_id: 0,
  1008. mode_name: "",
  1009. patient_id: 0,
  1010. patient: ""
  1011. };
  1012. that.scheduleZone[index].Sun_N = {
  1013. mode_id: 0,
  1014. mode_name: "",
  1015. patient_id: 0,
  1016. patient: ""
  1017. };
  1018. that.scheduleZone[index].Sun_M = {
  1019. mode_id: 0,
  1020. mode_name: "",
  1021. patient_id: 0,
  1022. patient: ""
  1023. };
  1024. that.scheduleZone[index].total = 0;
  1025. if (response.data.data.schdules.length > 0) {
  1026. theSchedules.forEach(function(schedule, sindex) {
  1027. if (zone.jihao_id == schedule.bed_id) {
  1028. // if(zone.zone_id == schedule.partition_id && zone.jihao_id == schedule.bed_id) {
  1029. var weekPath = that.weekPath(
  1030. schedule.schedule_week,
  1031. schedule.schedule_type
  1032. );
  1033. if (weekPath.length == 2) {
  1034. console.log(schedule);
  1035. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1036. that.scheduleZone[index][weekPathKey] = {
  1037. schedule_id: schedule.id,
  1038. mode_id: schedule.mode_id,
  1039. patient_id: schedule.patient_id,
  1040. patient: schedule.patient,
  1041. patient_contagions: schedule.patient_contagions,
  1042. mode_name:
  1043. typeof that.modeOptions[schedule.mode_id] ===
  1044. "undefined"
  1045. ? ""
  1046. : that.modeOptions[schedule.mode_id].name
  1047. };
  1048. that.scheduleZone[index].total += 1;
  1049. }
  1050. }
  1051. });
  1052. }
  1053. });
  1054. } else {
  1055. this.$message.error("网络错误");
  1056. return false;
  1057. }
  1058. });
  1059. },
  1060. getSchedulePatients() {
  1061. getSchedulePatients(this.patientQuery).then(response => {
  1062. if (response.data.state == 1) {
  1063. this.patients = response.data.data.patients;
  1064. }
  1065. });
  1066. },
  1067. CancelSchedule(id) {
  1068. this.$confirm("确定要取消当前排班?", "提示", {
  1069. confirmButtonText: "确定",
  1070. cancelButtonText: "取消",
  1071. type: "warning"
  1072. })
  1073. .then(() => {
  1074. CancelSchedule(id).then(response => {
  1075. if (response.data.state == 0) {
  1076. this.$message.error(response.data.msg);
  1077. } else {
  1078. this.$message({
  1079. type: "success",
  1080. message: "排班已取消!"
  1081. });
  1082. var that = this;
  1083. var schedule = response.data.data.schedule;
  1084. this.scheduleZone.forEach(function(zone, index) {
  1085. if (
  1086. zone.zone_id == schedule.partition_id &&
  1087. zone.jihao_id == schedule.bed_id
  1088. ) {
  1089. var weekPath = that.weekPath(
  1090. schedule.schedule_week,
  1091. schedule.schedule_type
  1092. );
  1093. if (weekPath.length == 2) {
  1094. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1095. that.scheduleZone[index][weekPathKey] = {
  1096. schedule_id: 0,
  1097. mode_id: 0,
  1098. patient_id: 0,
  1099. patient: "",
  1100. mode_name: ""
  1101. };
  1102. that.scheduleZone[index].total -= 1;
  1103. }
  1104. }
  1105. });
  1106. this.tzDialogVisible = false;
  1107. this.searchTableVisible = false;
  1108. }
  1109. });
  1110. })
  1111. .catch(() => {});
  1112. },
  1113. changeScheduleActon(formName) {
  1114. this.changing_bed = true;
  1115. ChangeSchedule(this.currentData.id, this.changeSchedule)
  1116. .then(response => {
  1117. if (response.data.state == 0) {
  1118. this.$message.error(response.data.msg);
  1119. } else {
  1120. this.$message({
  1121. type: "success",
  1122. message: "修改成功!"
  1123. });
  1124. var that = this;
  1125. var schedule = response.data.data.schedule;
  1126. this.scheduleZone.forEach(function(zone, index) {
  1127. if (
  1128. zone.zone_id == schedule.partition_id &&
  1129. zone.jihao_id == schedule.bed_id
  1130. ) {
  1131. var weekPath = that.weekPath(
  1132. schedule.schedule_week,
  1133. schedule.schedule_type
  1134. );
  1135. if (weekPath.length == 2) {
  1136. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1137. that.scheduleZone[index][weekPathKey] = {
  1138. schedule_id: schedule.id,
  1139. mode_id: schedule.mode_id,
  1140. patient_id: schedule.patient_id,
  1141. patient: that.currentData.patient,
  1142. patient_contagions: that.currentData.contagions,
  1143. mode_name:
  1144. typeof that.modeOptions[schedule.mode_id] === "undefined"
  1145. ? ""
  1146. : that.modeOptions[schedule.mode_id].name
  1147. };
  1148. that.scheduleZone[index].total += 1;
  1149. }
  1150. }
  1151. if (
  1152. zone.zone_id == that.currentData.partition_id &&
  1153. zone.jihao_id == that.currentData.bed_id
  1154. ) {
  1155. var weekPath = that.weekPath(
  1156. that.currentData.schedule_week,
  1157. that.currentData.schedule_type
  1158. );
  1159. if (weekPath.length == 2) {
  1160. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1161. that.scheduleZone[index][weekPathKey] = {
  1162. schedule_id: 0,
  1163. mode_id: 0,
  1164. patient_id: 0,
  1165. patient: "",
  1166. mode_name: "",
  1167. patient_contagions: []
  1168. };
  1169. that.scheduleZone[index].total -= 1;
  1170. }
  1171. }
  1172. });
  1173. this.$refs[formName].resetFields();
  1174. this.jhDialogVisible = false;
  1175. }
  1176. this.changing_bed = false;
  1177. })
  1178. .catch(err => {
  1179. this.$message.error(err);
  1180. this.changing_bed = false;
  1181. });
  1182. },
  1183. CreateSchedule(id, data) {
  1184. this.creating_schedule = true;
  1185. CreateSchedule(id, data)
  1186. .then(response => {
  1187. if (response.data.state == 0) {
  1188. this.$message.error(response.data.msg);
  1189. } else {
  1190. this.$message({
  1191. type: "success",
  1192. message: "排班成功!"
  1193. });
  1194. var that = this;
  1195. var schedule = response.data.data.schedule;
  1196. this.scheduleZone.forEach(function(zone, index) {
  1197. if (
  1198. zone.zone_id == schedule.partition_id &&
  1199. zone.jihao_id == schedule.bed_id
  1200. ) {
  1201. var weekPath = that.weekPath(
  1202. schedule.schedule_week,
  1203. schedule.schedule_type
  1204. );
  1205. if (weekPath.length == 2) {
  1206. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1207. that.scheduleZone[index][weekPathKey] = {
  1208. schedule_id: schedule.id,
  1209. mode_id: schedule.mode_id,
  1210. patient_id: schedule.patient_id,
  1211. patient: schedule.patient,
  1212. patient_contagions: that.currentData.contagions,
  1213. mode_name:
  1214. typeof that.modeOptions[schedule.mode_id] === "undefined"
  1215. ? ""
  1216. : that.modeOptions[schedule.mode_id].name
  1217. };
  1218. that.scheduleZone[index].total += 1;
  1219. }
  1220. }
  1221. });
  1222. this.closePatientPanel();
  1223. }
  1224. this.creating_schedule = false;
  1225. })
  1226. .catch(err => {
  1227. this.$message.error(err);
  1228. this.creating_schedule = false;
  1229. });
  1230. },
  1231. clickThis(row, column, cell, event) {
  1232. // debugger
  1233. console.log("aaa",column.property);
  1234. var week = this.weekDay(column.property);
  1235. console.log("week",week);
  1236. if (week[0] == -1 || week[1] == -1) {
  1237. return false;
  1238. }
  1239. if (this.toDay > this.weekDays[week[0] - 1]) {
  1240. return false;
  1241. }
  1242. this.currentData.schedule_date = this.weekDays[week[0] - 1];
  1243. this.currentData.schedule_type = week[1];
  1244. this.currentData.bed_id = row.jihao_id;
  1245. this.currentData.partition_id = row.zone_id;
  1246. this.currentData.schedule_week = week[0];
  1247. this.currentData.type_name = this.dayType(week[1]);
  1248. this.currentData.zone_name = row.area;
  1249. this.currentData.bed_name = row.cut;
  1250. this.currentData.partition_type = row.zone_type;
  1251. console.log(this.currentData);
  1252. if (row[column.property].schedule_id > 0) {
  1253. this.currentData.mode_id = row[column.property].mode_id;
  1254. this.currentData.id = row[column.property].schedule_id;
  1255. this.currentData.patient_id = row[column.property].patient_id;
  1256. this.currentData.patient = row[column.property].patient;
  1257. this.currentData.contagions = row[column.property].patient_contagions;
  1258. this.tiaoZhengType = 1;
  1259. this.tzDialogVisible = true;
  1260. } else {
  1261. this.currentData.mode_id = 1;
  1262. this.currentData.id = 0;
  1263. this.currentData.patient_id = 0;
  1264. this.currentData.patient = "";
  1265. this.currentData.contagions = [];
  1266. this.getSchedulePatients();
  1267. this.dialogTableVisible = true;
  1268. }
  1269. },
  1270. submitTiaoZJH(formName) {
  1271. this.$refs[formName].validate(valid => {
  1272. if (valid) {
  1273. var weekPath = this.weekPath(
  1274. this.changeSchedule.schedule_week,
  1275. this.changeSchedule.schedule_type
  1276. );
  1277. if (weekPath.length != 2) {
  1278. this.$message.error("数据异常");
  1279. return false;
  1280. }
  1281. this.changeSchedule.bed_id = this.device_id;
  1282. for (let i = 0; i < this.origin_device_numbers.length; i++) {
  1283. if (this.origin_device_numbers[i].id == this.device_id) {
  1284. this.changeSchedule.partition_id = this.origin_device_numbers[
  1285. i
  1286. ].zone_id;
  1287. }
  1288. }
  1289. // console.log(this.scheduleZone)
  1290. this.changeSchedule.change_action = "change_device";
  1291. this.changeScheduleActon(formName);
  1292. // this.changeSchedule.spartition_type = this.scheduleZone[index].zone_type
  1293. // var weekPathKey = weekPath[0] + '_' + weekPath[1]
  1294. // for (var index in this.scheduleZone) {
  1295. // if (this.scheduleZone[index].jihao_id == this.changeSchedule.bed_id) {
  1296. // if (this.scheduleZone[index][weekPathKey].mode_id > 0) {
  1297. // this.$message.error('选中的区域已经存在排班,不能再排班!')
  1298. // return false
  1299. // }
  1300. // break
  1301. // }
  1302. // }
  1303. // 可能
  1304. // 患者有传染病,与选择的机器类型(传染病)不匹配
  1305. // 患者没有传染病,但机器是某个传染病的专用透析器
  1306. // 机器的透析模式与患者不匹配
  1307. // if (this.currentData.contagions.length > 0) {
  1308. // var cflag = false
  1309. // for (var index in this.currentData.contagions) {
  1310. // if (this.currentData.contagions[index].disease_id == this.changeSchedule.partition_type) {
  1311. // cflag = true
  1312. // }
  1313. // }
  1314. // if (!cflag) {
  1315. // this.$confirm('此患者有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
  1316. // .then(() => {
  1317. //
  1318. // }).catch(() => {
  1319. // })
  1320. // } else {
  1321. // this.changeSchedule.change_action = 'change_device'
  1322. // this.changeScheduleActon(formName)
  1323. // }
  1324. // } else if (this.changeSchedule.partition_type > 1) {
  1325. // this.$confirm('此患者没有传染病,与此透析机不匹配,确定在此排班吗?', '提示', { confirmButtonText: '确 定', cancelButtonText: '取 消', type: 'warning' })
  1326. // .then(() => {
  1327. // this.changeSchedule.change_action = 'change_device'
  1328. // this.changeScheduleActon(formName)
  1329. // }).catch(() => {
  1330. // })
  1331. // } else {
  1332. // this.changeSchedule.change_action = 'change_device'
  1333. // this.changeScheduleActon(formName)
  1334. // }
  1335. }
  1336. });
  1337. },
  1338. submitMode(formName) {
  1339. this.changing_mode = true;
  1340. this.changeSchedule.change_action = "change_mode";
  1341. ChangeSchedule(this.currentData.id, this.changeSchedule)
  1342. .then(response => {
  1343. if (response.data.state == 0) {
  1344. this.$message.error(response.data.msg);
  1345. } else {
  1346. this.$message({
  1347. type: "success",
  1348. message: "修改成功!"
  1349. });
  1350. var that = this;
  1351. var schedule = response.data.data.schedule;
  1352. this.scheduleZone.forEach(function(zone, index) {
  1353. if (
  1354. zone.zone_id == schedule.partition_id &&
  1355. zone.jihao_id == schedule.bed_id
  1356. ) {
  1357. var weekPath = that.weekPath(
  1358. schedule.schedule_week,
  1359. schedule.schedule_type
  1360. );
  1361. if (weekPath.length == 2) {
  1362. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1363. that.scheduleZone[index][weekPathKey].mode_id =
  1364. schedule.mode_id;
  1365. that.scheduleZone[index][weekPathKey].mode_name =
  1366. typeof that.modeOptions[schedule.mode_id] === "undefined"
  1367. ? ""
  1368. : that.modeOptions[schedule.mode_id].name;
  1369. }
  1370. }
  1371. });
  1372. this.msDialogVisible = false;
  1373. }
  1374. this.changing_mode = false;
  1375. })
  1376. .catch(err => {
  1377. this.$message.error(err);
  1378. this.changing_mode = false;
  1379. });
  1380. },
  1381. submitTiaoZMS(formName) {
  1382. this.$refs[formName].validate(valid => {
  1383. if (valid) {
  1384. this.changing_mode = true;
  1385. this.changeSchedule.change_action = "change_mode";
  1386. ChangeSchedule(this.currentData.id, this.changeSchedule)
  1387. .then(response => {
  1388. if (response.data.state == 0) {
  1389. this.$message.error(response.data.msg);
  1390. } else {
  1391. this.$message({
  1392. type: "success",
  1393. message: "修改成功!"
  1394. });
  1395. var that = this;
  1396. var schedule = response.data.data.schedule;
  1397. this.scheduleZone.forEach(function(zone, index) {
  1398. if (
  1399. zone.zone_id == schedule.partition_id &&
  1400. zone.jihao_id == schedule.bed_id
  1401. ) {
  1402. var weekPath = that.weekPath(
  1403. schedule.schedule_week,
  1404. schedule.schedule_type
  1405. );
  1406. if (weekPath.length == 2) {
  1407. var weekPathKey = weekPath[0] + "_" + weekPath[1];
  1408. that.scheduleZone[index][weekPathKey].mode_id =
  1409. schedule.mode_id;
  1410. that.scheduleZone[index][weekPathKey].mode_name =
  1411. typeof that.modeOptions[schedule.mode_id] ===
  1412. "undefined"
  1413. ? ""
  1414. : that.modeOptions[schedule.mode_id].name;
  1415. }
  1416. }
  1417. });
  1418. this.$refs[formName].resetFields();
  1419. this.msDialogVisible = false;
  1420. }
  1421. this.changing_mode = false;
  1422. })
  1423. .catch(err => {
  1424. this.$message.error(err);
  1425. this.changing_mode = false;
  1426. });
  1427. }
  1428. });
  1429. },
  1430. changePartition(value) {
  1431. this.current_devices = this.zone_device_map[value];
  1432. this.device_id = this.current_devices[0].id;
  1433. },
  1434. changeScheduleType(schedule_type) {
  1435. const params = {
  1436. type: schedule_type,
  1437. date: this.currentData.schedule_date
  1438. };
  1439. getUrgentScheduleInitData(params)
  1440. .then(rs => {
  1441. if (rs.data.state == 1) {
  1442. this.origin_schedules = rs.data.data.schedules;
  1443. this.origin_device_numbers = rs.data.data.device_numbers;
  1444. var zone_device_map = {};
  1445. for (
  1446. let index = 0;
  1447. index < this.origin_device_numbers.length;
  1448. index++
  1449. ) {
  1450. const device_number = this.origin_device_numbers[index];
  1451. if (
  1452. zone_device_map[device_number.zone_name] == null ||
  1453. zone_device_map[device_number.zone_name] == undefined
  1454. ) {
  1455. zone_device_map[device_number.zone_name] = [];
  1456. }
  1457. zone_device_map[device_number.zone_name].push(device_number);
  1458. }
  1459. this.zone_device_map = zone_device_map;
  1460. this.zone_names = Object.keys(this.zone_device_map);
  1461. // console.log('8989898989898989',this.zone_names)
  1462. // console.log(this.current_devices);
  1463. if (this.zone_names.length > 0) {
  1464. this.zone_name = this.zone_names[0];
  1465. this.current_devices = this.zone_device_map[this.zone_name];
  1466. this.device_id = this.current_devices[0].id;
  1467. }
  1468. console.log(this.current_devices);
  1469. this.zone_device_options = [
  1470. { values: this.zone_names },
  1471. // { values: this.getDeviceNumberNames(this.current_devices) },
  1472. { values: this.current_devices }
  1473. ];
  1474. console.log(this.current_devices);
  1475. } else {
  1476. }
  1477. })
  1478. .catch(err => {
  1479. this.loading = false;
  1480. });
  1481. },
  1482. submitTiaoX() {
  1483. // if (this.tiaoZhengType==1) {
  1484. // this.$confirm('确定要取消当前排班?', '提示', {
  1485. // confirmButtonText: '确定',
  1486. // cancelButtonText: '取消',
  1487. // type: 'warning'
  1488. // }).then(() => {
  1489. // this.CancelSchedule(this.currentData.id);
  1490. // }).catch(() => {});
  1491. // }
  1492. switch (this.tiaoZhengType) {
  1493. case 1:
  1494. this.CancelSchedule(this.currentData.id);
  1495. break;
  1496. case 2:
  1497. this.changeSchedule = {
  1498. mode_id: this.currentData.mode_id,
  1499. schedule_type: this.currentData.schedule_type,
  1500. partition_id: this.currentData.partition_id,
  1501. bed_id: this.currentData.bed_id,
  1502. schedule_week: this.currentData.schedule_week,
  1503. partition_type: ""
  1504. };
  1505. if (
  1506. typeof this.partitions[this.currentData.partition_id].jihaos !==
  1507. "undefined"
  1508. ) {
  1509. this.jihaos = this.partitions[this.currentData.partition_id].jihaos;
  1510. } else {
  1511. this.jihaos = [];
  1512. }
  1513. const params = {
  1514. type: this.currentData.schedule_type,
  1515. date: this.currentData.schedule_date
  1516. };
  1517. getUrgentScheduleInitData(params)
  1518. .then(response => {
  1519. if (response.data.state == 0) {
  1520. this.$message.error(response.data.msg);
  1521. } else {
  1522. if (response.data.state == 1) {
  1523. this.origin_schedules = response.data.data.schedules;
  1524. this.origin_device_numbers =
  1525. response.data.data.device_numbers;
  1526. var zone_device_map = {};
  1527. for (
  1528. let index = 0;
  1529. index < this.origin_device_numbers.length;
  1530. index++
  1531. ) {
  1532. const device_number = this.origin_device_numbers[index];
  1533. if (
  1534. zone_device_map[device_number.zone_name] == null ||
  1535. zone_device_map[device_number.zone_name] == undefined
  1536. ) {
  1537. zone_device_map[device_number.zone_name] = [];
  1538. }
  1539. zone_device_map[device_number.zone_name].push(
  1540. device_number
  1541. );
  1542. }
  1543. this.zone_device_map = zone_device_map;
  1544. this.zone_names = Object.keys(this.zone_device_map);
  1545. if (this.zone_names.length > 0) {
  1546. this.zone_name = this.zone_names[0];
  1547. this.current_devices = this.zone_device_map[this.zone_name];
  1548. console.log(this.zone_device_map[this.zone_name]);
  1549. this.device_id = this.current_devices[0].id;
  1550. }
  1551. this.zone_device_options = [
  1552. { values: this.zone_names },
  1553. // { values: this.getDeviceNumberNames(this.current_devices) },
  1554. { values: this.current_devices }
  1555. ];
  1556. //
  1557. // for (let i = this.origin_schedules.length - 1; i >= 0; i--) {
  1558. // for (let y = this.origin_device_numbers.length - 1; y >= 0; y--) {
  1559. // if (this.origin_device_numbers[y].id == this.origin_schedules[i].bed_id) {
  1560. // this.origin_device_numbers.splice(y, 1)
  1561. // }
  1562. // }
  1563. // }
  1564. // // debugger
  1565. // var zone_device_map = {}
  1566. // for (let index = 0; index < this.origin_device_numbers.length; index++) {
  1567. // const device_number = this.origin_device_numbers[index]
  1568. // if (zone_device_map[device_number.zone.name] == null || zone_device_map[device_number.zone.name] == undefined) {
  1569. // zone_device_map[device_number.zone.name] = []
  1570. // }
  1571. // zone_device_map[device_number.zone.name].push(device_number)
  1572. // }
  1573. // this.zone_device_map = zone_device_map
  1574. //
  1575. // this.zone_names = Object.keys(this.zone_device_map)
  1576. // if (this.zone_names.length > 0) {
  1577. // this.zone_name = this.zone_names[0]
  1578. // this.current_devices = this.zone_device_map[this.zone_name]
  1579. // this.device_id = this.current_devices[0].id
  1580. // }
  1581. //
  1582. // this.zone_device_options = [
  1583. // { values: this.zone_names },
  1584. // // { values: this.getDeviceNumberNames(this.current_devices) },
  1585. // { values: this.current_devices }
  1586. // ]
  1587. } else {
  1588. }
  1589. }
  1590. })
  1591. .catch(err => {
  1592. this.$message.error(err);
  1593. });
  1594. this.tzDialogVisible = false;
  1595. this.jhDialogVisible = true;
  1596. break;
  1597. case 3:
  1598. this.changeSchedule = {
  1599. mode_id: "",
  1600. schedule_type: "",
  1601. partition_id: "",
  1602. bed_id: "",
  1603. schedule_week: "",
  1604. partition_type: ""
  1605. };
  1606. this.tzDialogVisible = false;
  1607. this.msDialogVisible = true;
  1608. break;
  1609. default:
  1610. break;
  1611. }
  1612. },
  1613. setSchedule() {
  1614. var that = this;
  1615. var submitFlag = true;
  1616. if (this.currentData.patient_id <= 0) {
  1617. this.$message.error("请先选择患者");
  1618. return false;
  1619. }
  1620. if (
  1621. this.currentData.schedule_date.length == 0 ||
  1622. this.currentData.schedule_type < 1 ||
  1623. this.currentData.schedule_type > 3 ||
  1624. this.currentData.bed_id < 1 ||
  1625. this.currentData.partition_id < 1 ||
  1626. this.currentData.schedule_week < 1 ||
  1627. this.currentData.schedule_week > 7
  1628. ) {
  1629. this.$message.error("请先选择排班时间或机号");
  1630. return false;
  1631. }
  1632. // 可能
  1633. // 患者有传染病,与选择的机器类型(传染病)不匹配
  1634. // 患者没有传染病,但机器是某个传染病的专用透析器
  1635. // 机器的透析模式与患者不匹配
  1636. if (this.currentData.contagions.length > 0) {
  1637. var cflag = false;
  1638. this.currentData.contagions.forEach(function(contagion) {
  1639. if (contagion.disease_id == that.currentData.partition_type) {
  1640. cflag = true;
  1641. }
  1642. });
  1643. if (!cflag) {
  1644. this.$confirm(
  1645. "此患者有传染病,与此透析机不匹配,确定在此排班吗?",
  1646. "提示",
  1647. {
  1648. confirmButtonText: "确 定",
  1649. cancelButtonText: "取 消",
  1650. type: "warning"
  1651. }
  1652. )
  1653. .then(() => {
  1654. this.CreateSchedule(
  1655. this.currentData.patient_id,
  1656. this.currentData
  1657. );
  1658. })
  1659. .catch(() => {});
  1660. } else {
  1661. this.CreateSchedule(this.currentData.patient_id, this.currentData);
  1662. }
  1663. } else if (that.currentData.partition_type > 1) {
  1664. this.$confirm(
  1665. "此患者没有传染病,与此透析机不匹配,确定在此排班吗?",
  1666. "提示",
  1667. {
  1668. confirmButtonText: "确 定",
  1669. cancelButtonText: "取 消",
  1670. type: "warning"
  1671. }
  1672. )
  1673. .then(() => {
  1674. this.CreateSchedule(this.currentData.patient_id, this.currentData);
  1675. })
  1676. .catch(() => {});
  1677. } else {
  1678. this.CreateSchedule(this.currentData.patient_id, this.currentData);
  1679. }
  1680. },
  1681. weekType(weekTime) {
  1682. var theType = 2;
  1683. switch (weekTime) {
  1684. case "lastWeek":
  1685. theType = 1;
  1686. break;
  1687. case "thisWeek":
  1688. theType = 2;
  1689. break;
  1690. case "nextWeek":
  1691. theType = 3;
  1692. break;
  1693. case "nextTwoWeek":
  1694. theType = 4;
  1695. break;
  1696. default:
  1697. theType = 2;
  1698. break;
  1699. }
  1700. return theType;
  1701. },
  1702. dayType(theType) {
  1703. var jType = "";
  1704. switch (theType) {
  1705. case 1:
  1706. jType = "上午";
  1707. break;
  1708. case 2:
  1709. jType = "下午";
  1710. break;
  1711. case 3:
  1712. jType = "晚上";
  1713. break;
  1714. default:
  1715. break;
  1716. }
  1717. return jType;
  1718. },
  1719. weekPath(week, schedule_type) {
  1720. var weekArr = {
  1721. 1: "Mon",
  1722. 2: "Tue",
  1723. 3: "Wed",
  1724. 4: "Thurs",
  1725. 5: "Fri",
  1726. 6: "Sat",
  1727. 7: "Sun"
  1728. };
  1729. var typeArr = { 1: "M", 2: "A", 3: "N" };
  1730. if (
  1731. typeof weekArr[week] === "undefined" ||
  1732. typeof typeArr[schedule_type] === "undefined"
  1733. ) {
  1734. return [];
  1735. }
  1736. return [weekArr[week], typeArr[schedule_type]];
  1737. },
  1738. weekDay(prop) {
  1739. var week = prop.split("_");
  1740. if (week.length != 2) {
  1741. return [-1, -1];
  1742. }
  1743. var w = -1;
  1744. var n = -1;
  1745. switch (week[0]) {
  1746. case "Mon":
  1747. w = 1;
  1748. break;
  1749. case "Tue":
  1750. w = 2;
  1751. break;
  1752. case "Wed":
  1753. w = 3;
  1754. break;
  1755. case "Thurs":
  1756. w = 4;
  1757. break;
  1758. case "Fri":
  1759. w = 5;
  1760. break;
  1761. case "Sat":
  1762. w = 6;
  1763. break;
  1764. case "Sun":
  1765. w = 7;
  1766. break;
  1767. default:
  1768. w = -1;
  1769. break;
  1770. }
  1771. switch (week[1]) {
  1772. case "M":
  1773. n = 1;
  1774. break;
  1775. case "A":
  1776. n = 2;
  1777. break;
  1778. case "N":
  1779. n = 3;
  1780. break;
  1781. default:
  1782. n = -1;
  1783. break;
  1784. }
  1785. if (w == -1 || n == -1) {
  1786. return [-1, -1];
  1787. }
  1788. return [w, n];
  1789. },
  1790. search: function() {
  1791. let week_type = 0
  1792. if (this.weekTime == 'thisWeek'){
  1793. week_type = 1
  1794. }else if(this.weekTime == 'nextWeek'){
  1795. week_type = 2
  1796. }else if(this.weekTime == 'nextTwoWeek'){
  1797. week_type = 3
  1798. }
  1799. const params = {
  1800. keywords: this.keywords,
  1801. week_type: week_type,
  1802. };
  1803. getSearchResult(params).then(response => {
  1804. if (response.data.state == 1) {
  1805. this.schedulePatients = response.data.data.schdules;
  1806. this.searchTableVisible = true;
  1807. }
  1808. });
  1809. },
  1810. changeMachineNumber: function(index, row) {
  1811. this.currentData.schedule_type = row.schedule_type;
  1812. this.currentData.bed_id = row.bed_id;
  1813. this.currentData.partition_id = row.partition_id;
  1814. this.currentData.schedule_week = row.schedule_week;
  1815. switch (row.schedule_type) {
  1816. case 1:
  1817. this.currentData.type_name = "上午";
  1818. break;
  1819. case 2:
  1820. this.currentData.type_name = "下午";
  1821. break;
  1822. case 3:
  1823. this.currentData.type_name = "晚上";
  1824. break;
  1825. }
  1826. this.currentData.zone_name = row.zone.name;
  1827. this.currentData.bed_name = row.number.number;
  1828. this.currentData.partition_type = row.zone.type;
  1829. this.currentData.mode_id = row.mode_id;
  1830. this.currentData.patient_id = row.patient_id;
  1831. this.currentData.patient = row.patient;
  1832. this.currentData.contagions = row.patient_contagions;
  1833. this.currentData.id = row.id;
  1834. this.changeSchedule = {
  1835. mode_id: row.mode_id,
  1836. schedule_type: row.schedule_type,
  1837. partition_id: row.partition_id,
  1838. bed_id: row.bed_id,
  1839. schedule_week: row.schedule_week,
  1840. partition_type: ""
  1841. };
  1842. this.currentData.schedule_date = uParseTime(
  1843. row.schedule_date,
  1844. "{y}-{m}-{d}"
  1845. );
  1846. if (typeof this.partitions[row.partition_id].jihaos !== "undefined") {
  1847. this.jihaos = this.partitions[row.partition_id].jihaos;
  1848. } else {
  1849. this.jihaos = [];
  1850. }
  1851. this.searchTableVisible = false;
  1852. this.jhDialogVisible = true;
  1853. },
  1854. getDialysisDate: function(row) {
  1855. let week = "";
  1856. switch (row.schedule_week) {
  1857. case 7:
  1858. week = "周日";
  1859. break;
  1860. case 1:
  1861. week = "周一";
  1862. break;
  1863. case 2:
  1864. week = "周二";
  1865. break;
  1866. case 3:
  1867. week = "周三";
  1868. break;
  1869. case 4:
  1870. week = "周四";
  1871. break;
  1872. case 5:
  1873. week = "周五";
  1874. break;
  1875. case 6:
  1876. week = "周六";
  1877. break;
  1878. }
  1879. return week + "(" + uParseTime(row.schedule_date, "{y}-{m}-{d}") + ")";
  1880. },
  1881. getSchedulesType: function(type) {
  1882. let type_name = "";
  1883. switch (type) {
  1884. case 1:
  1885. type_name = "上午";
  1886. break;
  1887. case 2:
  1888. type_name = "下午";
  1889. break;
  1890. case 3:
  1891. type_name = "晚上";
  1892. break;
  1893. }
  1894. return type_name;
  1895. },
  1896. changeMode: function(index, row) {
  1897. this.changeSchedule = {
  1898. mode_id: "",
  1899. schedule_type: "",
  1900. partition_id: "",
  1901. bed_id: "",
  1902. schedule_week: "",
  1903. partition_type: ""
  1904. };
  1905. this.currentData.id = row.id;
  1906. this.searchTableVisible = false;
  1907. this.msDialogVisible = true;
  1908. },
  1909. tableRowClassName({row, rowIndex}) {
  1910. if(row.zone_type == 1){
  1911. return 'table-row-new-class schedule-table-row'
  1912. }else {
  1913. return 'table-row-new-class schedule-table-row backPurple'
  1914. }
  1915. },
  1916. getAllZones(){
  1917. getAllZones().then(response=>{
  1918. if(response.data.state == 1){
  1919. var zones = response.data.data.zones
  1920. this.zones.push(...zones)
  1921. }
  1922. })
  1923. },
  1924. changePartiton(val){
  1925. this.$emit('event1', val)
  1926. this.partition_id = val
  1927. this.getSchedules()
  1928. },
  1929. changeSchedule_type(val){
  1930. this.$emit('event2', val)
  1931. this.schedule_type = val
  1932. this.getSchedules()
  1933. }
  1934. },
  1935. components: {
  1936. ScheduleItem
  1937. },
  1938. mounted() {
  1939. console.log('this.tableContainHeight,',this.$refs.table.$el.offsetTop);
  1940. this.tableContainHeight =
  1941. window.innerHeight - this.$refs.table.$el.offsetTop - 120;
  1942. console.log(this.tableContainHeight);
  1943. // var theType = this.weekType(this.weekTime);
  1944. // this.getSchedules(theType);
  1945. const that = this;
  1946. window.onresize = () => {
  1947. return (() => {
  1948. window.fullHeight = document.documentElement.clientHeight;
  1949. if (window.fullHeight < 200) {
  1950. that.tableHeight = 200;
  1951. } else {
  1952. that.tableHeight = window.fullHeight - 160;
  1953. }
  1954. })();
  1955. };
  1956. },
  1957. // mounted:function(){
  1958. // this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 160
  1959. // },
  1960. created() {
  1961. this.changeScheduleType(1)
  1962. rowNumber = 0;
  1963. this.modeOptions = this.$store.getters.treatment_mode;
  1964. this.partitions = this.partitionsProp;
  1965. var contagions = this.$store.getters.contagions;
  1966. if (contagions.length > 0) {
  1967. var that = this;
  1968. contagions.forEach(function(citem) {
  1969. if (citem.type == 2) {
  1970. that.diseasesArr.push({ value: citem.id, label: citem.name });
  1971. }
  1972. });
  1973. }
  1974. this.scheduleZoneRow = this.scheduleZoneRowProp;
  1975. this.weekday = new Date().getDay();
  1976. if (this.weekday == 0) {
  1977. this.weekday = 7;
  1978. }
  1979. this.getAllZones()
  1980. }
  1981. };
  1982. </script>
  1983. <style rel="stylesheet/css" lang="scss">
  1984. .tiaozhengclass {
  1985. display: block;
  1986. margin: 0 auto;
  1987. }
  1988. // .el-table tr {
  1989. // background-color: #111 !important;
  1990. // }
  1991. .schedule-table-row {
  1992. background: #fff !important;
  1993. }
  1994. .schedule-table-row:hover {
  1995. background: #fff !important;
  1996. }
  1997. .schedule-table-row td:hover {
  1998. background: rgb(88, 162, 236) !important;
  1999. }
  2000. .schedule-table-row td .cell {
  2001. font-size: 12px;
  2002. white-space: nowrap !important;
  2003. }
  2004. .schedule-table-cell-disable {
  2005. background-color: rgb(245, 245, 245) !important;
  2006. }
  2007. #table_data {
  2008. min-height: calc(100vh - 350px);
  2009. }
  2010. #table_data ::-webkit-scrollbar {
  2011. height: 15px;
  2012. }
  2013. .el-table td,
  2014. .el-table th.is-leaf,
  2015. .el-table--border,
  2016. .el-table--group {
  2017. border-color: #d0d3da;
  2018. }
  2019. .el-table--border::after,
  2020. .el-table--group::after,
  2021. .el-table::before {
  2022. background-color: #d0d3da;
  2023. }
  2024. .el-table--border th {
  2025. border-color: #d0d3da;
  2026. }
  2027. .el-table--border td {
  2028. border-color: #d0d3da;
  2029. }
  2030. .el-table td {
  2031. border-color: #d0d3da;
  2032. }
  2033. // .el-table__body tr.current-row > td {
  2034. // background-color: #409eff !important;
  2035. // color: #fff;
  2036. // }
  2037. // .el-table__body tr > td:hover {
  2038. // background-color: #409eff !important;
  2039. // }
  2040. #table_data {
  2041. .el-table__body tr.current-row > td {
  2042. background-color: #ecf5ff !important;
  2043. color: #3a8ee6;
  2044. }
  2045. .el-table__body tr > td:hover {
  2046. background-color: #409eff !important;
  2047. color: #fff;
  2048. }
  2049. }
  2050. .backPurple{
  2051. color: #08c3df !important;
  2052. }
  2053. </style>