dialysisGoodPrint.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb :crumbs="crumbs"></bread-crumb>
  5. <el-row style="float:right;">
  6. <el-col :span="24">
  7. <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
  8. </el-col>
  9. </el-row>
  10. </div>
  11. <div class="app-container" style="background-color: white;">
  12. <div id="print_content">
  13. <div class="print_main_content">
  14. <div class="order_title_panl">
  15. <span class="main_title"> &nbsp;
  16. 透析耗材
  17. </span>
  18. <span style="float:right;">打印日期: &nbsp;
  19. {{$route.query.schedule_date}}
  20. </span>
  21. </div>
  22. <div class="table_panel">
  23. <table class="table" v-if="his_config.is_open != 1">
  24. <thead>
  25. <tr>
  26. <td width="50">序号</td>
  27. <td width="100">透析机号</td>
  28. <td width="100">姓名</td>
  29. <td width="100">透析号</td>
  30. <td width="100">透析模式</td>
  31. <td width="200" v-for="(item,index) in rowList" :key="index">
  32. {{item.filed_name_cn}}
  33. </td>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <tr v-for="(item,i) in tableData" :key="i">
  38. <td>{{i+1}}</td>
  39. <td>
  40. <span v-if="org_id!=0&&org_id!=10702"> {{item.device_number.zone.name}} </span>
  41. {{item.device_number.number}}
  42. </td>
  43. <td>{{item.patient.name}}</td>
  44. <td>{{item.patient.dialysis_no}}</td>
  45. <td>{{ getModeId(item.mode_id) }}</td>
  46. <td v-for="(it,index) in rowList" :key="index">
  47. <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
  48. <span v-if="org_id !=10599">
  49. {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
  50. </span>
  51. <span v-if="org_id==10599">
  52. <span v-if="item.dialysis_prescription!=null && item.dialysis_prescription.id == 0"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
  53. <span v-if="item.dialysis_prescription!=null & item.dialysis_prescription.id >0"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
  54. </span>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. <table class="table" v-if="his_config.is_open == 1">
  60. <thead>
  61. <tr>
  62. <td width="50">序号</td>
  63. <td width="100">透析机号</td>
  64. <td width="100">姓名</td>
  65. <td width="100">透析机号</td>
  66. <td width="100">透析模式</td>
  67. <td width="100" v-if="org_id == 10610 || org_id == 0">钙</td>
  68. <td width="200" v-for="(item,index) in typeList" :key="index">
  69. {{item.type_name}}
  70. </td>
  71. </tr>
  72. </thead>
  73. <tbody>
  74. <tr v-for="(item,i) in tableData" :key="i">
  75. <td>{{i+1}}</td>
  76. <td> <span v-if="org_id!=0&&org_id!=10702">{{item.device_number.zone.name}} </span>
  77. {{item.device_number.number}}
  78. </td>
  79. <td>{{item.patient.name}}</td>
  80. <td>{{item.patient.dialysis_no}}</td>
  81. <td>{{ getModeId(item.mode_id) }}</td>
  82. <td v-if="org_id == 0 || org_id == 10610">{{ item.dialysis_solution.calcium }}</td>
  83. <td v-for="(it,index) in typeList" :key="index">
  84. <span v-if="item.his_prescription_project.length>0"> {{getStr(item.typeList[index].id,item.his_prescription_project,item.patient_id)}}</span>
  85. <span v-if="item.his_prescription_project.length==0">{{getStr(item.typeList[index].id,item.projectList,item.patient_id)}}</span>
  86. </td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </template>
  96. <script>
  97. import { GetAllZone,getPatientDialysisSolutionGroupList,getDialysisGoodTotalCount,saveHisDialysis,getHisDialysisGoodCount } from '@/api/dialysis'
  98. import { parseTime } from '@/utils'
  99. import { uParseTime } from '@/utils/tools'
  100. import BreadCrumb from '@/xt_pages/components/bread-crumb'
  101. import print from 'print-js'
  102. import { getDataConfig } from '@/utils/data'
  103. import org from '../../../../router/modules/org'
  104. export default {
  105. name: 'SchedulePrint',
  106. data() {
  107. return {
  108. crumbs: [
  109. { path: false, name: '排班管理' },
  110. { path: false, name: '排班打印' }
  111. ],
  112. td_1_width: '8%',
  113. td_2_width: '8%',
  114. td_3_width: '64%',
  115. td_4_width: '20%',
  116. month: 1,
  117. begin_day: 1,
  118. total:[],
  119. list:[],
  120. schedule_date:"",
  121. schedule_type:0,
  122. partition_type:0,
  123. keywords:"",
  124. loading:false,
  125. tableData:[],
  126. numberList:[],
  127. partitionArr:[],
  128. his_config:{},
  129. typeList:[],
  130. rowList:[],
  131. dialysate_formulation:[],
  132. body_fluid_option:[],
  133. displace_liqui_part_option:[],
  134. blood_access_option:[],
  135. hemodialysisPipelinesOptions:[],
  136. org_id:0
  137. }
  138. },
  139. components: {
  140. BreadCrumb
  141. },
  142. created() {
  143. this.org_id = this.$store.getters.xt_user.org.id
  144. this.dialysate_formulation = getDataConfig(
  145. 'hemodialysis',
  146. 'dialysate_formulation'
  147. )
  148. this.body_fluid_option = this.$store.getters.body_fluid
  149. this.displace_liqui_part_option = this.$store.getters.displace_liqui
  150. this.blood_access_option = this.$store.getters.blood_access
  151. this.blood_access_option = getDataConfig('hemodialysis', 'vascular_access_desc')
  152. this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
  153. var filedList = this.$store.getters.xt_user.fileds
  154. for (let i = 0; i < filedList.length; i++) {
  155. if ( filedList[i].module == 1 && filedList[i].is_show == 1 && (filedList[i].filed_name_cn == '透析器/灌流器' || filedList[i].filed_name_cn == '透析器' || filedList[i].filed_name_cn == '灌流器' || filedList[i].filed_name_cn == '钾' || filedList[i].filed_name_cn == '钠' || filedList[i].filed_name_cn == '钙' || filedList[i].filed_name_cn == '葡萄糖' || filedList[i].filed_name_cn == '穿刺针' || filedList[i].filed_name_cn == '滤过器')) {
  156. this.rowList.push(filedList[i])
  157. }
  158. }
  159. this.getlist()
  160. },
  161. methods: {
  162. getModeId(val){
  163. var name =""
  164. if(val == 1){
  165. name ="HD"
  166. }
  167. if(val == 2){
  168. name ="HDF"
  169. }
  170. if(val == 3){
  171. name ="HD+HP"
  172. }
  173. if(val == 4){
  174. name ="HP"
  175. }
  176. if(val == 5){
  177. name ="HF"
  178. }
  179. if(val == 6){
  180. name ="SCUF"
  181. }
  182. if(val == 7){
  183. name ="IUF"
  184. }
  185. if(val == 8){
  186. name ="IUF"
  187. }
  188. if(val == 9){
  189. name ="HFHD+HP"
  190. }
  191. if(val == 10){
  192. name ="PHF"
  193. }
  194. if(val == 11){
  195. name ="HFR"
  196. }
  197. if(val == 12){
  198. name ="HDF+HP"
  199. }
  200. if(val == 13){
  201. name ="CRRT"
  202. }
  203. if(val == 14){
  204. name ="腹水回输"
  205. }
  206. if(val == 19){
  207. name ="IUF+HD"
  208. }
  209. if(val == 20){
  210. name ="UF"
  211. }
  212. if(val == 21){
  213. name ="HD+"
  214. }
  215. if(val == 22){
  216. name ="血浆胆红素吸附+HDF"
  217. }
  218. if(val == 23){
  219. name ="血浆胆红素吸附"
  220. }
  221. if(val == 24){
  222. name ="I-HDF"
  223. }
  224. if(val == 25){
  225. name ="HD高通"
  226. }
  227. if(val == 26){
  228. name ="CVVH"
  229. }
  230. if(val == 27){
  231. name ="CVVHD"
  232. }
  233. if(val == 28){
  234. name ="CVVHDF"
  235. }
  236. if(val == 29){
  237. name ="PE"
  238. }
  239. if(val == 30){
  240. name ="血浆胆红素吸附+HP"
  241. }
  242. if(val == 31){
  243. name ="HPD"
  244. }
  245. if(val == 32){
  246. name ="HDP"
  247. }
  248. if(val == 33){
  249. name = "HFD"
  250. }
  251. if(val == 34){
  252. name = "HDF100"
  253. }
  254. if(val == 35){
  255. name = "HDF600"
  256. }
  257. if(val == 36){
  258. name = "HDF800"
  259. }
  260. if(val == 37){
  261. name = "HDF1000"
  262. }
  263. if(val == 38){
  264. name = "HDF80"
  265. }
  266. if(val == 39){
  267. name = "HF16"
  268. }
  269. return name
  270. },
  271. getlist(){
  272. var params = {
  273. keywords:this.$route.query.keywords,
  274. limit:this.$route.query.limit,
  275. page:this.$route.query.page,
  276. partition_id:this.$route.query.partition_id,
  277. schedule_date:this.$route.query.schedule_date,
  278. schedule_type:this.$route.query.schedule_type,
  279. ids:this.$route.query.ids,
  280. }
  281. getPatientDialysisSolutionGroupList(params).then(response=>{
  282. if(response.data.state == 1){
  283. var list = response.data.data.list
  284. if(list!=null &&list.length>0){
  285. for(let i=0;i<list.length;i++){
  286. list[i].sort = 0
  287. list[i].sort = list[i].device_number.sort
  288. }
  289. }
  290. list.sort(this.compare('sort'))
  291. var total = response.data.data.total
  292. this.total = total
  293. var goodType = response.data.data.goodType
  294. var config = response.data.data.config
  295. this.his_config = config
  296. if(config.is_open !=1){
  297. if(list!=null){
  298. for(let i=0;i<list.length;i++){
  299. list[i].rowList = []
  300. list[i].rowList = this.rowList
  301. }
  302. }
  303. this.tableData= []
  304. this.tableData = list
  305. }
  306. if(config.is_open == 1){
  307. if(list!=null){
  308. this.typeList= []
  309. for(let i=0;i<goodType.length;i++){
  310. if(goodType[i].is_open == 1){
  311. this.typeList.push(goodType[i])
  312. }
  313. }
  314. for(let i=0;i<list.length;i++){
  315. list[i].projectList = []
  316. list[i].typeList = []
  317. list[i].typeList = this.typeList
  318. }
  319. for(let i=0;i<list.length;i++){
  320. if(list[i].his_prescription_template.his_prescription_info!=null && list[i].his_prescription_template.his_prescription_info.length >0){
  321. for(let j=0;j<list[i].his_prescription_template.his_prescription_info.length;j++){
  322. for(let z=0;z<list[i].his_prescription_template.his_prescription_info[j].project.length;z++){
  323. list[i].projectList.push(list[i].his_prescription_template.his_prescription_info[j].project[z])
  324. }
  325. }
  326. }
  327. }
  328. console.log("list列表",list)
  329. this.tableData = []
  330. this.tableData = list
  331. }
  332. }
  333. }
  334. })
  335. },
  336. getTimeOne(val) {
  337. if(val == ""){
  338. return ""
  339. }else {
  340. return uParseTime(val, '{y}-{m}-{d}')
  341. }
  342. },
  343. printAction: function() {
  344. const style = '@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
  345. printJS({
  346. printable: 'print_content',
  347. type: 'html',
  348. documentTitle: ' ',
  349. style: style,
  350. scanStyles: false
  351. })
  352. },
  353. getStr(good_type_id,arrNew,patient_id){
  354. var arr= []
  355. var str = ""
  356. if(arrNew!=null && arrNew.length > 0){
  357. for(let i=0;i<arrNew.length;i++){
  358. arrNew[i].good_type_id = 0
  359. arrNew[i].good_type_id = arrNew[i].good_info.good_type_id
  360. arrNew[i].good_id = 0
  361. arrNew[i].good_id = arrNew[i].good_info.id
  362. if(arrNew[i].patient_id == patient_id && arrNew[i].good_info.good_type_id == good_type_id){
  363. arr.push(arrNew[i])
  364. }
  365. }
  366. }
  367. let dataInfo = {}
  368. if(arr!=null && arr.length > 0){
  369. arr.forEach((item, index) => {
  370. let { good_id } = item
  371. if (!dataInfo[good_id]) {
  372. dataInfo[good_id] = {
  373. good_id:item.good_id,
  374. child: [],
  375. count:0,
  376. specification_name:item.good_info.specification_name
  377. }
  378. }
  379. })
  380. let newArr = Object.values(dataInfo)
  381. console.log("newArr",newArr)
  382. for(let i=0;i<arr.length;i++){
  383. for(let j=0;j<newArr.length;j++){
  384. if( arr[i].good_info.id == newArr[j].good_id){
  385. newArr[j].child.push(arr[i])
  386. }
  387. }
  388. }
  389. if(newArr!=null && newArr.length > 0){
  390. for(let j=0;j<newArr.length;j++){
  391. for(let z=0;z<newArr[j].child.length;z++){
  392. newArr[j].count += parseInt(newArr[j].child[z].count)
  393. }
  394. }
  395. for(let j=0;j<newArr.length;j++){
  396. str += newArr[j].specification_name + "*" + newArr[j].count + " "
  397. }
  398. }
  399. }
  400. return str
  401. },
  402. getName(filed_name_cn,val){
  403. if(filed_name_cn == "透析模式"){
  404. return this.getModeName(val.mode_id)
  405. }
  406. if(filed_name_cn == "血流量"){
  407. if(val.blood_flow_volume > 0){
  408. return val.blood_flow_volume
  409. }else{
  410. return ""
  411. }
  412. }
  413. if(filed_name_cn == "目标超滤量"){
  414. return val.target_ultrafiltration?val.target_ultrafiltration:""
  415. }
  416. if(filed_name_cn == "透析液配方"){
  417. return this.getDialysateFormulation(val.dialysate_formulation)
  418. }
  419. if(filed_name_cn == "抗凝剂"){
  420. return this.getAnticoagulant(val.anticoagulant)
  421. }
  422. if(filed_name_cn == "首剂"){
  423. return val.anticoagulant_shouji?val.anticoagulant_shouji:""
  424. }
  425. if(filed_name_cn == "维持"){
  426. return val.anticoagulant_weichi?val.anticoagulant_weichi:""
  427. }
  428. if(filed_name_cn == "总量"){
  429. return val.anticoagulant_zongliang?val.anticoagulant_zongliang:""
  430. }
  431. if(filed_name_cn == "置换量"){
  432. return val.replacement_total?val.replacement_total:""
  433. }
  434. if(filed_name_cn == "钾"){
  435. return val.kalium?val.kalium:""
  436. }
  437. if(filed_name_cn == "钠"){
  438. return val.sodium?val.sodium:""
  439. }
  440. if(filed_name_cn == "钙"){
  441. return val.calcium?val.calcium:""
  442. }
  443. if(filed_name_cn == "碳酸氢盐"){
  444. return val.bicarbonate?val.bicarbonate:""
  445. }
  446. if(filed_name_cn == "透析液流量"){
  447. return val.dialysate_flow?val.dialysate_flow:""
  448. }
  449. if(filed_name_cn == "透析液温度"){
  450. return val.dialysate_temperature?val.dialysate_temperature:""
  451. }
  452. if(filed_name_cn == "电导度"){
  453. return val.conductivity?val.conductivity:""
  454. }
  455. if(filed_name_cn == "透析器/灌流器"){
  456. return val.dialyzer_perfusion_apparatus?val.dialyzer_perfusion_apparatus:""
  457. }
  458. if(filed_name_cn == "钙名称"){
  459. return val.anticoagulant_gaimingcheng?val.anticoagulant_gaimingcheng:""
  460. }
  461. if(filed_name_cn == "钙剂量"){
  462. return val.anticoagulant_gaijiliang?val.anticoagulant_gaijiliang:""
  463. }
  464. if(filed_name_cn == "体液过多症状"){
  465. return this.getBodyFluid(val.body_fluid)
  466. }
  467. if(filed_name_cn == "透析前使用特殊药物"){
  468. return val.special_medicine?val.special_medicine:""
  469. }
  470. if(filed_name_cn == "透析前使用其他特殊药物"){
  471. return val.special_medicine_other?val.special_medicine_other:""
  472. }
  473. if(filed_name_cn == "置换液"){
  474. return this.getDisplace(val.displace_liqui_part)
  475. }
  476. if(filed_name_cn == "血管通路"){
  477. return this.getBloodAccess(val.blood_access)
  478. }
  479. if(filed_name_cn == "体液过多其他症状"){
  480. return val.body_fluid_other?val.body_fluid_other:""
  481. }
  482. if(filed_name_cn == "透析时长"){
  483. return val.dialysis_duration_hour + "小时" + val.dialysis_duration_minute + "分钟"
  484. }
  485. if(filed_name_cn == "置换液总量"){
  486. return val.displace_liqui_value?val.displace_liqui_value:""
  487. }
  488. if(filed_name_cn == "透析器"){
  489. return val.dialysis_dialyszers
  490. }
  491. if(filed_name_cn == "注射器"){
  492. return ""
  493. }
  494. if(filed_name_cn == "抗凝提前停止"){
  495. return ""
  496. }
  497. if(filed_name_cn == "肝素钠"){
  498. return ""
  499. }
  500. if(filed_name_cn == "鱼精蛋白"){
  501. return ""
  502. }
  503. if(filed_name_cn == "下机前推住鱼精蛋白"){
  504. return ""
  505. }
  506. if(filed_name_cn == "无肝素钠备注"){
  507. return ""
  508. }
  509. if(filed_name_cn == "灌流器"){
  510. return val.dialysis_irrigation
  511. }
  512. if(filed_name_cn == "抗凝剂商品名称"){
  513. return ""
  514. }
  515. if(filed_name_cn == "置换速度"){
  516. return ""
  517. }
  518. if(filed_name_cn == "病情"){
  519. return ""
  520. }
  521. if(filed_name_cn == "葡萄糖"){
  522. return val.amylaceum?val.amylaceum:""
  523. }
  524. if(filed_name_cn == "单超时长"){
  525. return ""
  526. }
  527. if(filed_name_cn == "单超脱水"){
  528. return ""
  529. }
  530. if(filed_name_cn == "置换流量"){
  531. return ""
  532. }
  533. if(filed_name_cn == "血浆分离器"){
  534. return val.plasma_separator?val.plasma_separator:""
  535. }
  536. if(filed_name_cn == "透析管路"){
  537. return this.getHemodialysisPipelines(val.hemodialysis_pipelines)
  538. }
  539. if(filed_name_cn == "透析管路支数"){
  540. return ""
  541. }
  542. if(filed_name_cn == "穿刺针"){
  543. return val.puncture_needle?val.puncture_needle:""
  544. }
  545. if(filed_name_cn == "促红素"){
  546. return val.epo_count?val.epo_count:""
  547. }
  548. if(filed_name_cn == "促红素支数"){
  549. return val.epo_count?val.epo_count:""
  550. }
  551. if(filed_name_cn == "最大超滤率"){
  552. return val.max_ultrafiltration_rate?val.max_ultrafiltration_rate:""
  553. }
  554. if(filed_name_cn == "滤过器"){
  555. return val.dialysis_strainer?val.dialysis_strainer:""
  556. }
  557. },
  558. getModeName(id){
  559. var name = ""
  560. if(id == 1){
  561. name = "HD"
  562. }
  563. if(id == 2){
  564. name = "HDF"
  565. }
  566. if(id == 3){
  567. name = "HD+HP"
  568. }
  569. if(id == 4){
  570. name = "HP"
  571. }
  572. if(id == 5){
  573. name = "HF"
  574. }
  575. if(id == 6){
  576. name = "SCUF"
  577. }
  578. if(id == 7){
  579. name = "IUF"
  580. }
  581. if(id == 8){
  582. name = "HFHD"
  583. }
  584. if(id == 9){
  585. name = "HFHD+HP"
  586. }
  587. if(id == 10){
  588. name = "PHF"
  589. }
  590. if(id == 11){
  591. name = "HFR"
  592. }
  593. if(id == 12){
  594. name = "HDF+HP"
  595. }
  596. if(id == 13){
  597. name = "CRRT"
  598. }
  599. if(id == 14){
  600. name = "腹水回输"
  601. }
  602. if(id == 19){
  603. name = "IUF+HD"
  604. }
  605. if(id == 20){
  606. name = "UF"
  607. }
  608. if(id == 21){
  609. name = "HD+"
  610. }
  611. if(id == 22){
  612. name = "血浆胆红素吸附+HDF"
  613. }
  614. if(id == 23){
  615. name = "血浆胆红素吸附"
  616. }
  617. if(id == 24){
  618. name = "I-HDF"
  619. }
  620. if(id == 25){
  621. name = "HD高通"
  622. }
  623. if(id == 26){
  624. name = "CVVH"
  625. }
  626. if(id == 27){
  627. name = "CVVHD"
  628. }
  629. if(id == 28){
  630. name = "CVVHDF"
  631. }
  632. if(id == 29){
  633. name = "PE"
  634. }
  635. if(id == 30){
  636. name = "血浆胆红素吸附+HP"
  637. }
  638. if(id == 31){
  639. name = "HPD"
  640. }
  641. if(id == 32){
  642. name = "HDP"
  643. }
  644. return name
  645. },
  646. getDialysateFormulation(id){
  647. var name = ""
  648. for(let i=0;i<this.dialysate_formulation.length;i++){
  649. if(id == this.dialysate_formulation[i].id){
  650. name = this.dialysate_formulation[i].name
  651. }
  652. }
  653. return name
  654. },
  655. getAnticoagulant(id){
  656. var name = ""
  657. if(id == 1){
  658. name = "无肝素"
  659. }
  660. if(id == 2){
  661. name = "普通肝素"
  662. }
  663. if(id == 3){
  664. name = "低分子肝素"
  665. }
  666. if(id == 4){
  667. name = "阿加曲班"
  668. }
  669. if(id == 5){
  670. name ="枸橼酸钠"
  671. }
  672. if(id == 6){
  673. name = "低分子肝素钙"
  674. }
  675. if(id == 7){
  676. name = "低分子肝素钠"
  677. }
  678. if(id ==8){
  679. name = "依诺肝素"
  680. }
  681. if(id ==9){
  682. name = "达肝素"
  683. }
  684. if(id ==10){
  685. name = "体外抗凝"
  686. }
  687. if(id ==11){
  688. name = "那曲肝素"
  689. }
  690. if(id ==12){
  691. name = "无抗凝剂"
  692. }
  693. if(id ==13){
  694. name = "那曲肝素钙"
  695. }
  696. return name
  697. },
  698. getBodyFluid(id){
  699. var name = ""
  700. for(let i=0;i<this.body_fluid_option.length;i++){
  701. if(id == this.body_fluid_option[i].id){
  702. name = this.body_fluid_option[i].name
  703. }
  704. }
  705. return name
  706. },
  707. getDisplace(id){
  708. var name = ""
  709. for(let i=0;i<this.displace_liqui_part_option.length;i++){
  710. if(id == this.displace_liqui_part_option[i].id){
  711. name = this.displace_liqui_part_option[i].name
  712. }
  713. }
  714. return name
  715. },
  716. getBloodAccess(id){
  717. var name = ""
  718. for(let i=0;i<this.blood_access_option.length;i++){
  719. if(id == this.blood_access_option[i].id){
  720. name = this.blood_access_option[i].name
  721. }
  722. }
  723. return name
  724. },
  725. getHemodialysisPipelines(id){
  726. var name = ""
  727. for(let i=0;i<this.hemodialysisPipelinesOptions.length;i++){
  728. if(id == this.hemodialysisPipelinesOptions[i].id){
  729. name = this.hemodialysisPipelinesOptions[i].name
  730. }
  731. }
  732. return name
  733. },
  734. compare(p) { //这是比较函数
  735. return function (m, n) {
  736. var a = m[p];
  737. var b = n[p];
  738. return a - b; //升序
  739. }
  740. },
  741. }
  742. }
  743. </script>
  744. <style rel="stylesheet/scss" lang="scss" scoped>
  745. .print_main_content {
  746. background-color: white;
  747. width: 960px;
  748. margin: 0 auto;
  749. padding: 0 0 20px 0;
  750. .order_title_panl {
  751. text-align: center;
  752. .main_title {
  753. font-size: 18px;
  754. line-height: 40px;
  755. font-weight: 500;
  756. }
  757. }
  758. .table_panel {
  759. .table {
  760. width: 100%;
  761. border: 1px solid;
  762. border-collapse: collapse;
  763. padding: 2px;
  764. thead {
  765. tr {
  766. td {
  767. border: 1px solid;
  768. text-align: center;
  769. font-size: 20px;
  770. padding: 15px 5px;
  771. }
  772. }
  773. }
  774. tbody {
  775. tr {
  776. td {
  777. border: 1px solid;
  778. text-align: center;
  779. font-size: 18px;
  780. padding: 10px 5px;
  781. .proj {
  782. padding: 5px 0;
  783. text-align: left;
  784. .proj_title {
  785. font-size: 16px;
  786. font-weight: 500;
  787. line-height: 25px;
  788. }
  789. .proj_item {
  790. font-size: 15px;
  791. line-height: 20px;
  792. .zone_name {
  793. font-weight: 500;
  794. }
  795. }
  796. }
  797. }
  798. }
  799. }
  800. }
  801. }
  802. }
  803. </style>