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

dialysisDrugs.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. <template>
  2. <div class="page_dialysisDrugs">
  3. <div class="cell clearfix">
  4. <label class="title"> <span class="name">排班班次</span> : </label>
  5. <div class="time">
  6. <ul class>
  7. <li
  8. :class="item.value == schedulType ? 'active' : ''"
  9. @click="selectSchedulType(item.value)"
  10. v-for="item in schedulArr"
  11. :key="item.value"
  12. >
  13. {{ item.label }}
  14. </li>
  15. </ul>
  16. </div>
  17. <label class="title"><span class="name">日期查询</span> : </label>
  18. <el-date-picker size="small" v-model="selected_date" prefix-icon="el-icon-date" @change="handleScheduleDateChange" :editable="false" :clearable="false" style="width: 196px;margin-right:10px;" type="date" placeholder="选择日期时间" align="right" ></el-date-picker>
  19. <el-input size="small" style="width: 180px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
  20. <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
  21. </div>
  22. <div class="cell clearfix" style="justify-content: space-between;">
  23. <div style="display:flex;">
  24. <label class="title"> <span class="name">分区</span> : </label>
  25. <div class="time">
  26. <ul class>
  27. <li
  28. :class="item.id == partitionType ? 'active' : ''"
  29. @click="selectPartitionType(item.id)"
  30. v-for="item in partitionArr"
  31. :key="item.id"
  32. >
  33. {{ item.name }}
  34. </li>
  35. </ul>
  36. </div>
  37. </div>
  38. <div>
  39. <!-- <el-button size="small" icon="el-icon-printer" type="primary">打印</el-button> -->
  40. <el-button size="small" type="primary" @click="statistics">统计表</el-button>
  41. </div>
  42. </div>
  43. <div class="cell clearfix" style="justify-content: space-between;">
  44. <div class="cell clearfix">
  45. <label class="title"> <span class="name">给药途径</span> : </label>
  46. <div class="time">
  47. <ul class>
  48. <li
  49. :class="item.id == delivery_way ? 'active' : ''"
  50. @click="selectDeliveryWay(item.id)"
  51. v-for="item in deliveryWay"
  52. :key="item.id"
  53. >
  54. {{ item.name }}
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. <div>
  61. <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  62. @selection-change="handleSelectionChange"
  63. :row-class-name="tableRowClassName"
  64. :span-method="objectSpanMethod"
  65. :cell-class-name="adviceNameShow"
  66. :modal-append-to-body="false"
  67. v-show="show">
  68. <el-table-column type="selection" width="55" align="center"></el-table-column>
  69. <el-table-column prop="date" label="姓名" align="center" min-width="26px">
  70. <template slot-scope="scope">
  71. <span>{{ scope.row.name }}</span>
  72. <br>
  73. ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
  74. <br>
  75. <span v-if="scope.row.mode_id == 1">(HD)</span>
  76. <span v-if="scope.row.mode_id == 2">(HDF)</span>
  77. <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
  78. <span v-if="scope.row.mode_id == 4">(HP)</span>
  79. <span v-if="scope.row.mode_id == 5">(HF)</span>
  80. <span v-if="scope.row.mode_id == 6">(SCUF)</span>
  81. <span v-if="scope.row.mode_id == 7">(IUF)</span>
  82. <span v-if="scope.row.mode_id == 8">(HFHD)</span>
  83. <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
  84. <span v-if="scope.row.mode_id == 10">(PHF)</span>
  85. <span v-if="scope.row.mode_id == 11">(HFR)</span>
  86. <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
  87. <span v-if="scope.row.mode_id == 13">(CRRT)</span>
  88. <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
  89. </template>
  90. </el-table-column>
  91. <el-table-column prop="date" label="透析器" align="center" min-width="26px">
  92. <template slot-scope="scope">
  93. <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
  94. </template>
  95. </el-table-column>
  96. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  97. <template slot-scope="scope">
  98. <span>
  99. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  100. </span>
  101. </template>
  102. </el-table-column>
  103. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  104. <template slot-scope="scope">
  105. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  106. <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
  107. {{ getAdviceContent(scope.row, 1)}}
  108. </span>
  109. </el-dropdown>
  110. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  111. <span class="el-dropdown-link">
  112. &emsp;{{ getAdviceContent(scope.row, 2)}}
  113. </span>
  114. </el-dropdown>
  115. </template>
  116. </el-table-column>
  117. <el-table-column
  118. prop="start_time"
  119. align="center"
  120. min-width="30px"
  121. label="执行时间"
  122. sortable
  123. >
  124. <template slot-scope="scope">
  125. <span v-if="scope.row.execution_time != 0">
  126. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  127. </span>
  128. <span v-else></span>
  129. </template>
  130. </el-table-column>
  131. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  132. <template slot-scope="scope">
  133. <span v-if="scope.row.parent_id == 0">
  134. {{getXuserName(scope.row.execution_staff)}}
  135. </span>
  136. <span v-else></span>
  137. </template>
  138. </el-table-column>
  139. <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
  140. <template slot-scope="scope">
  141. <span v-if="scope.row.parent_id == 0">
  142. {{getXuserName(scope.row.checker)}}
  143. </span>
  144. <span v-else></span>
  145. </template>
  146. </el-table-column>
  147. <el-table-column
  148. prop="check_time"
  149. align="center"
  150. min-width="30px"
  151. label="校对时间"
  152. sortable
  153. >
  154. <template slot-scope="scope">
  155. <span v-if="scope.row.check_time != 0">
  156. {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
  157. </span>
  158. <span v-else></span>
  159. </template>
  160. </el-table-column>
  161. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  162. <template slot-scope="scope">
  163. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  164. </template>
  165. </el-table-column>
  166. <el-table-column
  167. prop="created_time"
  168. align="center"
  169. min-width="30px"
  170. label="校对时间"
  171. sortable
  172. >
  173. <template slot-scope="scope">
  174. <span v-if="scope.row.created_time != 0">
  175. {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
  176. </span>
  177. <span v-else></span>
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. <el-table :data="scheduleMap" border :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
  182. @selection-change="handleSelectionChange"
  183. :row-class-name="tableRowClassName"
  184. :span-method="objectSpanMethod"
  185. :cell-class-name="adviceNameShow"
  186. :modal-append-to-body="false"
  187. v-show="showOne">
  188. <el-table-column type="selection" width="55" align="center"></el-table-column>
  189. <el-table-column prop="date" label="姓名" align="center" min-width="26px">
  190. <template slot-scope="scope">
  191. <span>{{ scope.row.name }}</span>
  192. <br>
  193. ({{ scope.row.parent_id == 0 ? scope.row.dialysis_no : ""}})
  194. <br>
  195. <span v-if="scope.row.mode_id == 1">(HD)</span>
  196. <span v-if="scope.row.mode_id == 2">(HDF)</span>
  197. <span v-if="scope.row.mode_id == 3">(HD+HP)</span>
  198. <span v-if="scope.row.mode_id == 4">(HP)</span>
  199. <span v-if="scope.row.mode_id == 5">(HF)</span>
  200. <span v-if="scope.row.mode_id == 6">(SCUF)</span>
  201. <span v-if="scope.row.mode_id == 7">(IUF)</span>
  202. <span v-if="scope.row.mode_id == 8">(HFHD)</span>
  203. <span v-if="scope.row.mode_id == 9">(HFHD+HP)</span>
  204. <span v-if="scope.row.mode_id == 10">(PHF)</span>
  205. <span v-if="scope.row.mode_id == 11">(HFR)</span>
  206. <span v-if="scope.row.mode_id == 12">(HDF+HP)</span>
  207. <span v-if="scope.row.mode_id == 13">(CRRT)</span>
  208. <span v-if="scope.row.mode_id == 14">(腹水回输)</span>
  209. </template>
  210. </el-table-column>
  211. <el-table-column prop="date" label="透析器" align="center" min-width="26px">
  212. <template slot-scope="scope">
  213. <span>{{ scope.row.dialyzer_perfusion_apparatus }}</span>
  214. </template>
  215. </el-table-column>
  216. <el-table-column prop="start_time" label="开始时间" align="center" min-width="35px">
  217. <template slot-scope="scope">
  218. <span>
  219. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  220. </span>
  221. </template>
  222. </el-table-column>
  223. <el-table-column prop="advice_name" min-width="50px" label="医嘱内容" align="center">
  224. <template slot-scope="scope">
  225. <el-dropdown trigger="click" v-if="scope.row.parent_id == 0">
  226. <span class="el-dropdown-link" v-if="scope.row.parent_id == 0">
  227. {{ getAdviceContent(scope.row, 1)}}
  228. </span>
  229. </el-dropdown>
  230. <el-dropdown trigger="click" v-if="scope.row.parent_id > 0">
  231. <span class="el-dropdown-link">
  232. &emsp;{{ getAdviceContent(scope.row, 2)}}
  233. </span>
  234. </el-dropdown>
  235. </template>
  236. </el-table-column>
  237. <el-table-column
  238. prop="start_time"
  239. align="center"
  240. min-width="30px"
  241. label="执行时间"
  242. sortable
  243. >
  244. <template slot-scope="scope">
  245. <span v-if="scope.row.execution_time != 0">
  246. {{scope.row.start_time | parseTime('{m}-{d} {h}:{i}')}}
  247. </span>
  248. <span v-else></span>
  249. </template>
  250. </el-table-column>
  251. <el-table-column prop="execution_staff" align="center" min-width="30px" label="执行护士">
  252. <template slot-scope="scope">
  253. <span v-if="scope.row.parent_id == 0">
  254. {{getXuserName(scope.row.execution_staff)}}
  255. </span>
  256. <span v-else></span>
  257. </template>
  258. </el-table-column>
  259. <el-table-column prop="checker" align="center" min-width="30px" label="校对护士">
  260. <template slot-scope="scope">
  261. <span v-if="scope.row.parent_id == 0">
  262. {{getXuserName(scope.row.checker)}}
  263. </span>
  264. <span v-else></span>
  265. </template>
  266. </el-table-column>
  267. <el-table-column
  268. prop="check_time"
  269. align="center"
  270. min-width="30px"
  271. label="校对时间"
  272. sortable
  273. >
  274. <template slot-scope="scope">
  275. <span v-if="scope.row.check_time != 0">
  276. {{scope.row.check_time | parseTime('{m}-{d} {h}:{i}')}}
  277. </span>
  278. <span v-else></span>
  279. </template>
  280. </el-table-column>
  281. <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
  282. <template slot-scope="scope">
  283. <span>{{ getXuserName(scope.row.advice_doctor) }}</span>
  284. </template>
  285. </el-table-column>
  286. <el-table-column
  287. prop="created_time"
  288. align="center"
  289. min-width="30px"
  290. label="校对时间"
  291. sortable
  292. >
  293. <template slot-scope="scope">
  294. <span v-if="scope.row.created_time != 0">
  295. {{scope.row.created_time | parseTime('{m}-{d} {h}:{i}')}}
  296. </span>
  297. <span v-else></span>
  298. </template>
  299. </el-table-column>
  300. </el-table>
  301. </div>
  302. <dialysis-drugs-dialog ref="dialysisDrugs"></dialysis-drugs-dialog>
  303. </div>
  304. </template>
  305. <script>
  306. const moment = require('moment')
  307. import { GetAllZone } from "@/api/dialysis";
  308. import { getSchedualDoctors } from '@/api/advice'
  309. import dialysisDrugsDialog from './dialysisDrugsDialog'
  310. export default {
  311. components:{
  312. dialysisDrugsDialog
  313. },
  314. data(){
  315. return{
  316. schedulType: 0,
  317. schedulArr: [
  318. { value: 0, label: "全部" },
  319. { value: 1, label: "上午" },
  320. { value: 2, label: "下午" },
  321. { value: 3, label: "晚上" }
  322. ],
  323. selected_date:new Date(),
  324. partitionArr:[],
  325. partitionType: 0,
  326. tableData: [],
  327. deliveryWay:[],
  328. deliver_way:0,
  329. search_input:"",
  330. show:true,
  331. showOne:false,
  332. deliveryWay:[],
  333. delivery_way:0,
  334. scheduleMap:[],
  335. selecting_schs: [],
  336. }
  337. },
  338. created(){
  339. this.getAllZone()
  340. this.getlist()
  341. },
  342. methods:{
  343. selectSchedulType(scheduleType) {
  344. this.schedulType = scheduleType;
  345. this.getlist()
  346. },
  347. selectPartitionType(partitionType) {
  348. this.partitionType = partitionType;
  349. this.getlist()
  350. },
  351. selectDeliveryWay(val){
  352. this.delivery_way = val
  353. this.getlist()
  354. },
  355. getAllZone: function() {
  356. GetAllZone().then(response => {
  357. if (response.data.state == 0) {
  358. this.$message.error(response.data.msg);
  359. return false;
  360. } else {
  361. this.partitionArr = response.data.data.zone;
  362. this.partitionArr.unshift({ id: 0, name: "全部" });
  363. var dics = response.data.data.dics
  364. var obj = {id:0,name:"全部"}
  365. this.deliveryWay.push(obj)
  366. this.deliveryWay.push(...dics)
  367. }
  368. });
  369. },
  370. statistics(){
  371. this.$refs.dialysisDrugs.show();
  372. },
  373. getlist(){
  374. var name = ""
  375. for(let i=0;i<this.deliveryWay.length;i++){
  376. if(this.delivery_way == this.deliveryWay[i].id){
  377. name = this.deliveryWay[i].name
  378. }
  379. }
  380. if(name == '全部'){
  381. name = ""
  382. }
  383. let newTime = moment(this.selected_date).format('YYYY-MM-DD')
  384. getSchedualDoctors({ date: newTime,patient_type: 0,advice_type: 2,delivery_way:name}).then(rs => {
  385. var resp = rs.data
  386. if (resp.state == 1) {
  387. this.admin_users = resp.data.adminUser
  388. var schedules = resp.data.scheduals
  389. console.log("数据多少2223333333",schedules)
  390. var config = resp.data.config
  391. if(config.is_open == 0){
  392. this.show = true
  393. this.showOne = false
  394. let arr = []
  395. let newArr = []
  396. let newSchedules = []
  397. schedules.map(item => {
  398. item.doctor_advice.map(it =>{
  399. it.name = item.patient.name
  400. if(item.prescription != null){
  401. it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
  402. }
  403. it.schedule_type = item.schedule_type
  404. it.zoneId = item.device_number.zone.id
  405. it.dialysis_no = item.patient.dialysis_no
  406. it.mode_id = item.mode_id
  407. arr.push(it)
  408. })
  409. })
  410. if(this.schedulType == 0){
  411. newSchedules = arr
  412. }else{
  413. arr.map(item => {
  414. if (item.schedule_type == this.schedulType) {
  415. newSchedules.push(item)
  416. }
  417. })
  418. }
  419. if(this.partitionType == 0){
  420. this.scheduleMap = newSchedules
  421. }else {
  422. let a = []
  423. arr.map(item => {
  424. if(this.partitionType == item.zoneId){
  425. a.push(item)
  426. }
  427. })
  428. this.scheduleMap = a
  429. }
  430. this.scheduleMap.map(ele => {
  431. let firstIndex = this.scheduleMap.findIndex(item => {
  432. return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
  433. })
  434. if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
  435. newArr.push({
  436. length: this.scheduleMap.filter(item => {
  437. return item.patient_id === ele.patient_id //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
  438. }).length,
  439. firstIndex: firstIndex // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
  440. })
  441. }
  442. })
  443. this.indexInfoList = newArr
  444. }
  445. if(config.is_open == 1 || config.is_open == 2){
  446. this.show = false
  447. this.showOne = true
  448. var schedules = resp.data.hisAdvices
  449. let arr = []
  450. let newArr = []
  451. let newSchedules = []
  452. schedules.map(item => {
  453. item.doctor_advice.map(it =>{
  454. it.name = item.patient.name
  455. if(item.prescription != null){
  456. it.dialyzer_perfusion_apparatus = item.prescription.dialyzer_perfusion_apparatus
  457. }
  458. it.schedule_type = item.schedule_type
  459. it.zoneId = item.device_number.zone.id
  460. it.dialysis_no = item.patient.dialysis_no
  461. it.mode_id = item.mode_id
  462. arr.push(it)
  463. })
  464. })
  465. if(this.schedulType == 0){
  466. newSchedules = arr
  467. }else{
  468. arr.map(item => {
  469. if (item.schedule_type == this.schedulType) {
  470. newSchedules.push(item)
  471. }
  472. })
  473. }
  474. if(this.partitionType == 0){
  475. this.scheduleMap = newSchedules
  476. }else {
  477. let a = []
  478. arr.map(item => {
  479. if(this.partitionType == item.zoneId){
  480. a.push(item)
  481. }
  482. })
  483. this.scheduleMap = a
  484. }
  485. this.scheduleMap.map(ele => {
  486. let firstIndex = this.scheduleMap.findIndex(item => {
  487. return item.patient_id === ele.patient_id // 当category相同的时候,返回第一个相同的Index 赋值给 firstIndex
  488. })
  489. if (this.scheduleMap.findIndex(item => { return item.patient_id === firstIndex}) === -1) {
  490. newArr.push({
  491. length: this.scheduleMap.filter(item => {
  492. return item.patient_id === ele.patient_id //利用数组的filter方法,过滤出相同category的数组的长度。数组长度-即为跨多少行
  493. }).length,
  494. firstIndex: firstIndex // firstIndex 返回的是第一个catergory就满足的第一个Index,即为rowIndex开始于第几行。
  495. })
  496. }
  497. })
  498. this.indexInfoList = newArr
  499. }
  500. }
  501. })
  502. },
  503. searchAction(){
  504. },
  505. handleScheduleDateChange(){
  506. },
  507. handleSelectionChange(val) {
  508. this.selecting_schs = val;
  509. },
  510. adviceNameShow({ row, column, rowIndex, columnIndex }) {
  511. if (columnIndex == 2) {
  512. return 'dialysisadvicenamedisplay'
  513. } else {
  514. return ''
  515. }
  516. },
  517. tableRowClassName({ row, rowIndex }) {
  518. },
  519. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  520. if (columnIndex === 0) {
  521. let index = this.indexInfoList.findIndex(item => { //遍历数组
  522. return item.firstIndex === rowIndex
  523. })
  524. if (index > -1) {
  525. return {
  526. rowspan: this.indexInfoList[index].length,
  527. colspan: 1
  528. }
  529. } else {
  530. return {
  531. rowspan: 0,
  532. colspan: 0
  533. }
  534. }
  535. }
  536. if (columnIndex === 1) {
  537. let index = this.indexInfoList.findIndex(item => { //遍历数组
  538. return item.firstIndex === rowIndex
  539. })
  540. if (index > -1) {
  541. return {
  542. rowspan: this.indexInfoList[index].length,
  543. colspan: 1
  544. }
  545. } else {
  546. return {
  547. rowspan: 0,
  548. colspan: 0
  549. }
  550. }
  551. }
  552. if (columnIndex === 2) {
  553. let index = this.indexInfoList.findIndex(item => { //遍历数组
  554. return item.firstIndex === rowIndex
  555. })
  556. if (index > -1) {
  557. return {
  558. rowspan: this.indexInfoList[index].length,
  559. colspan: 1
  560. }
  561. } else {
  562. return {
  563. rowspan: 0,
  564. colspan: 0
  565. }
  566. }
  567. }
  568. },
  569. getAdviceContent(row, isChild) {
  570. let tempSingleDoseDesc = ''
  571. let tempDrugSpecDesc = ''
  572. let tempPrescribingNumberDesc = ''
  573. if (row.prescribing_number) {
  574. tempPrescribingNumberDesc =
  575. row.prescribing_number + '' + row.prescribing_number_unit
  576. }
  577. if (row.single_dose) {
  578. if (this.template_id != 6) {
  579. tempSingleDoseDesc =
  580. ' 单次用量 ' + ' ' + row.single_dose + '' + row.single_dose_unit
  581. } else {
  582. tempSingleDoseDesc = row.single_dose + '' + row.single_dose_unit
  583. }
  584. }
  585. if (row.advice_desc) {
  586. tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
  587. }
  588. if (isChild == 1) {
  589. // 不是子药
  590. return (
  591. row.advice_name +
  592. tempDrugSpecDesc +
  593. ' ' +
  594. tempPrescribingNumberDesc +
  595. tempSingleDoseDesc +
  596. ' ' +
  597. row.delivery_way +
  598. ' ' +
  599. row.execution_frequency
  600. )
  601. } else {
  602. // 是子药
  603. return (
  604. row.advice_name +
  605. tempDrugSpecDesc +
  606. ' ' +
  607. tempPrescribingNumberDesc +
  608. tempSingleDoseDesc
  609. )
  610. }
  611. },
  612. getXuserName(id) {
  613. if (id <= 0) {
  614. return ''
  615. }
  616. var name = ''
  617. if (
  618. this.admin_users == null ||
  619. typeof this.admin_users.length === 'undefined'
  620. ) {
  621. return name
  622. }
  623. var leng = this.admin_users.length
  624. if (leng == 0) {
  625. return name
  626. }
  627. for (let index = 0; index < leng; index++) {
  628. if (this.admin_users[index].id == id) {
  629. name = this.admin_users[index].name
  630. break
  631. }
  632. }
  633. return name
  634. },
  635. },
  636. }
  637. </script>
  638. <style lang="scss" scoped>
  639. .page_dialysisDrugs{
  640. .clearfix:after{
  641. content:none;
  642. }
  643. }
  644. </style>