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

listPrint.vue 31KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <div>
  3. <template>
  4. <el-button
  5. style="position:fixed;right:25px;z-index:999"
  6. :loading="loading"
  7. size="small"
  8. icon="el-icon-printer"
  9. @click="printThisPage"
  10. type="primary"
  11. >打印
  12. </el-button
  13. >
  14. </template>
  15. <div class='dialysisPage' style="padding-top:40px;">
  16. <printOne v-if="org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id != 0 && org_id!=9675" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
  17. <printTwo v-if="org_id == 10106 && this.paramsObj.balance_accounts_type != 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></printTwo>
  18. <print-three v-if=" org_id == 0 || org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
  19. <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>
  20. <print-two10265 v-if="org_id == 10265 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. import printOne from './listTemplate/printOne'
  26. import printTwo from './listTemplate/printTwo'
  27. // import printThree from './listTemplate/printThree'
  28. import print from "print-js";
  29. import { getHisOrderDetail,getPrivateExpensesOrder } from '@/api/his/his'
  30. import { uParseTime } from '@/utils/tools'
  31. import axios from 'axios'
  32. import PrintThree from './listTemplate/printThree'
  33. import ListPrintTwo from './listTemplate/listPrintTwo'
  34. import PrintTwo10265 from "./listTemplate/printTwo10265";
  35. export default {
  36. name: 'listPrint',
  37. components: {
  38. PrintTwo10265,
  39. ListPrintTwo,
  40. PrintThree,
  41. printOne,
  42. printTwo
  43. },
  44. props: {
  45. paramsObj: Object
  46. },
  47. data() {
  48. return {
  49. list: [],
  50. patient:{},
  51. order:{},
  52. admin:{},
  53. order_infos:null,
  54. info:null,
  55. p_admin:{},
  56. charge_admin:{},
  57. org_id:'',
  58. hospital_record:{}
  59. }
  60. },
  61. created() {
  62. this.getInfo(this.paramsObj.id)
  63. this.org_id = this.$store.getters.xt_user.org_id
  64. if(this.org_id == 10106){
  65. if(this.paramsObj.balance_accounts_type == 2){
  66. this.getInfoPrivateExpenses10106(this.paramsObj.id)
  67. }else{
  68. this.getInfo10106(this.paramsObj.id)
  69. }
  70. }
  71. },
  72. methods: {
  73. getTimes(time) {
  74. return uParseTime(time, '{y}-{m}-{d}')
  75. },
  76. getInfo(order_id) {
  77. let params = {
  78. id: order_id
  79. }
  80. getHisOrderDetail(params).then(response => {
  81. if (response.data.state == 0) {
  82. this.$message.error(response.data.msg)
  83. return false
  84. } else {
  85. if(this.org_id == 10265 || this.org_id == 0){
  86. this.order = response.data.data.order
  87. this.patient = response.data.data.patient
  88. this.admin = response.data.data.admin_info
  89. this.hospital_record = response.data.data.hospital_record
  90. //获取所有项目类型进行去重
  91. let med_chrgitm_types = []
  92. for (let i = 0; i < response.data.data.order_info.length; i++) {
  93. med_chrgitm_types.push(response.data.data.order_info[i].med_chrgitm_type)
  94. }
  95. const obj = {}
  96. med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
  97. obj[next] ? '' : obj[next] = true && cur.push(next)
  98. return cur
  99. }, []) // 设置cur默认类型为数组,并且初始值为空的数组
  100. let tempOrderInfo = []
  101. for (let i = 0; i < med_chrgitm_types.length; i++) {
  102. let obj = {
  103. details: [],
  104. med_chrgitm_name:this.getType(med_chrgitm_types[i]),
  105. jiaTotal:0,
  106. total:0,
  107. yiTotal:0,
  108. noMedicineTotal:0,
  109. bingTotal:0,
  110. otherTotal:0,
  111. sort:0,
  112. }
  113. if(med_chrgitm_types[i] == '09'){
  114. obj.sort = 99
  115. } else if(med_chrgitm_types[i] == '05'){
  116. obj.sort = 98
  117. } else if(med_chrgitm_types[i] == '08'){
  118. obj.sort = 97
  119. }else if(med_chrgitm_types[i] == '03'){
  120. obj.sort = 96
  121. }
  122. let tempDetails = []
  123. for (let b = 0; b < response.data.data.order_info.length; b++) {
  124. if (med_chrgitm_types[i] == response.data.data.order_info[b].med_chrgitm_type) {
  125. tempDetails.push(response.data.data.order_info[b])
  126. }
  127. }
  128. obj.total = this.getTotal(tempDetails)
  129. obj.jiaTotal = this.getJiaTotal(tempDetails)
  130. obj.yiTotal = this.getYiTotal(tempDetails)
  131. obj.noMedicineTotal = this.getNoMedicineTotal(tempDetails)
  132. obj.bingTotal = this.getBingTotal(tempDetails)
  133. obj.otherTotal = this.getOtherTotal(tempDetails)
  134. obj.details = this.set10265NewData(tempDetails)
  135. this.list.push(obj)
  136. }
  137. this.list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
  138. console.log(this.list,'sssss')
  139. }else{
  140. this.order = response.data.data.order
  141. this.patient = response.data.data.patient
  142. this.admin = response.data.data.admin_info
  143. for (let i = 0; i < response.data.data.order_info.length; i++) {
  144. var infos = response.data.data.order_info[i]
  145. let obj = {
  146. med_chrgitm_type: this.getType(infos.med_chrgitm_type),
  147. price: infos.pric.toFixed(4),
  148. count: infos.cnt
  149. }
  150. if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
  151. obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
  152. obj['feedetl_sn'] = infos.feedetl_sn
  153. if(infos.project.type == 2){
  154. obj['name'] = infos.project.project.project_name
  155. obj['spec'] = ''
  156. obj['unit'] = infos.project.project.unit
  157. obj['is_total']= 0
  158. }else if (infos.project.type == 3){
  159. obj['name'] = infos.project.good_info.good_name
  160. obj['spec'] = ""
  161. obj['unit'] = infos.project.good_info.packing_unit
  162. obj['is_total']= 0
  163. }
  164. }
  165. if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
  166. obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
  167. obj['name'] = infos.advice.drug.drug_name
  168. obj['unit'] = infos.advice.prescribing_number_unit
  169. obj['feedetl_sn'] = infos.feedetl_sn
  170. obj['spec'] = infos.advice.drug.dose + infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number + infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
  171. obj['is_total']= 0
  172. // v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
  173. }
  174. this.list.push(obj)
  175. this.list.sort(function(a, b) {
  176. return b.p_time < a.p_time ? 1 : -1
  177. })
  178. }
  179. let newObj = {}
  180. newObj['name'] = "合计"
  181. newObj['price']= this.order.medfee_sumamt
  182. newObj['is_total']= 1
  183. this.list.push(newObj)
  184. }
  185. }
  186. })
  187. },
  188. getJiaTotal(items){
  189. console.log(items)
  190. let total = 0
  191. for(let i = 0; i < items.length; i++){
  192. if(items[i].chrgitm_lv == "01") {
  193. total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
  194. }
  195. }
  196. return total.toFixed(2)
  197. },getYiTotal(items){
  198. let total = 0
  199. for(let i = 0; i < items.length; i++){
  200. if(items[i].chrgitm_lv == "02") {
  201. total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
  202. // total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
  203. }
  204. }
  205. return total.toFixed(2)
  206. },getNoMedicineTotal(items){
  207. let total = 0
  208. for(let i = 0; i < items.length; i++){
  209. total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
  210. }
  211. return total.toFixed(2)
  212. },getBingTotal(items){
  213. let total = 0
  214. for(let i = 0; i < items.length; i++){
  215. if(items[i].chrgitm_lv == "03") {
  216. total = parseFloat(total) + (parseFloat(items[i].cnt) * parseFloat(items[i].pric))
  217. // total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
  218. }
  219. }
  220. return total.toFixed(2)
  221. },getOtherTotal(items){
  222. // let total = 0
  223. // for(let i = 0; i < items.length; i++){
  224. // total = Number(total) + Number((parseFloat(items[i].count) * parseFloat(items[i].price)).toFixed(2))
  225. // }
  226. // return total.toFixed(2)
  227. },getTotal:function(items){
  228. let total = 0
  229. for(let i = 0; i < items.length; i++){
  230. total = Number(total) + Number(parseFloat(items[i].cnt) * parseFloat(items[i].pric))
  231. }
  232. return total.toFixed(2)
  233. },
  234. setNewData(details) {
  235. let drug_ids = []
  236. let project_ids = []
  237. for (let i = 0; i < details.length; i++) {
  238. if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
  239. let obj = {
  240. id: details[i].advice.drug_id,
  241. price: details[i].advice.price,
  242. lv: details[i].chrgitm_lv,
  243. }
  244. drug_ids.push(obj)
  245. } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
  246. let obj = {
  247. id: details[i].project.project_id,
  248. price: details[i].project.price,
  249. lv: details[i].chrgitm_lv,
  250. }
  251. project_ids.push(obj)
  252. }
  253. }
  254. //
  255. // console.log('old ids')
  256. // console.log(drug_ids)
  257. // console.log(project_ids)
  258. // console.log('old ids')
  259. let new_drug_ids = this.unique(drug_ids)
  260. let new_project_ids = this.unique(project_ids)
  261. let list = []
  262. console.log('ids')
  263. console.log(new_drug_ids)
  264. console.log(new_project_ids)
  265. console.log('ids')
  266. if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
  267. for (let i = 0; i < new_drug_ids.length; i++) {
  268. let obj = {}
  269. let count = 0
  270. for (let a = 0; a < details.length; a++) {
  271. if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price ) {
  272. obj['name'] = details[a].advice.advice_name
  273. // obj['spec'] = details[a].advice.drug.drug_spec
  274. obj['spec'] = details[a].advice.drug.dose + details[a].advice.drug.dose_unit+"*" + details[a].advice.drug.min_number + details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
  275. obj['unit'] = details[a].advice.prescribing_number_unit
  276. obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
  277. obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
  278. obj['price'] = parseFloat(details[a].pric)
  279. obj['is_total'] = 2
  280. count = count + details[a].cnt
  281. }
  282. }
  283. obj['count'] = count
  284. list.push(obj)
  285. }
  286. }
  287. if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
  288. for (let i = 0; i < new_project_ids.length; i++) {
  289. let obj = {}
  290. let count = 0
  291. for (let a = 0; a < details.length; a++) {
  292. if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price) {
  293. if( details[a].project.type == 2){
  294. obj['name'] = details[a].project.project.project_name
  295. obj['spec'] = ''
  296. obj['unit'] = details[a].project.project.unit
  297. }else if(details[a].project.type == 3){
  298. obj['name'] = details[a].project.good_info.good_name
  299. obj['spec'] = ''
  300. obj['unit'] = details[a].project.good_info.packing_unit
  301. }
  302. obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
  303. obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
  304. obj['price'] = parseFloat(details[a].pric)
  305. obj['is_total'] = 2
  306. count = count + details[a].cnt
  307. }
  308. }
  309. obj['count'] = count
  310. list.push(obj)
  311. }
  312. }
  313. return list
  314. },
  315. set10265NewData(details) {
  316. let drug_ids = []
  317. let project_ids = []
  318. for (let i = 0; i < details.length; i++) {
  319. if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
  320. let obj = {
  321. id: details[i].advice.drug_id,
  322. price: details[i].advice.price,
  323. lv: details[i].chrgitm_lv,
  324. }
  325. drug_ids.push(obj)
  326. } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
  327. let obj = {
  328. id: details[i].project.project_id,
  329. price: details[i].project.price,
  330. lv: details[i].chrgitm_lv,
  331. }
  332. project_ids.push(obj)
  333. }
  334. }
  335. //
  336. // console.log('old ids')
  337. // console.log(drug_ids)
  338. // console.log(project_ids)
  339. // console.log('old ids')
  340. let new_drug_ids = this.unique10265(drug_ids)
  341. let new_project_ids = this.unique10265(project_ids)
  342. let list = []
  343. console.log('ids')
  344. console.log(new_drug_ids)
  345. console.log(new_project_ids)
  346. console.log('ids')
  347. if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
  348. for (let i = 0; i < new_drug_ids.length; i++) {
  349. let obj = {}
  350. let count = 0
  351. for (let a = 0; a < details.length; a++) {
  352. if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price && new_drug_ids[i].lv == details[a].chrgitm_lv) {
  353. obj['name'] = details[a].advice.advice_name
  354. // obj['spec'] = details[a].advice.drug.drug_spec
  355. obj['spec'] = details[a].advice.drug.dose + details[a].advice.drug.dose_unit+"*" + details[a].advice.drug.min_number + details[a].advice.drug.min_unit+"/"+ details[a].advice.drug.max_unit
  356. obj['unit'] = details[a].advice.prescribing_number_unit
  357. obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
  358. obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
  359. obj['price'] = parseFloat(details[a].pric)
  360. obj['is_total'] = 2
  361. count = count + details[a].cnt
  362. }
  363. }
  364. obj['count'] = count
  365. list.push(obj)
  366. }
  367. }
  368. if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
  369. for (let i = 0; i < new_project_ids.length; i++) {
  370. let obj = {}
  371. let count = 0
  372. for (let a = 0; a < details.length; a++) {
  373. if (new_project_ids[i].id == details[a].project.project_id && new_project_ids[i].price == details[a].project.price && new_project_ids[i].lv == details[a].chrgitm_lv) {
  374. if( details[a].project.type == 2){
  375. obj['name'] = details[a].project.project.project_name
  376. obj['spec'] = ''
  377. obj['unit'] = details[a].project.project.unit
  378. }else if(details[a].project.type == 3){
  379. obj['name'] = details[a].project.good_info.good_name
  380. obj['spec'] = ''
  381. obj['unit'] = details[a].project.good_info.packing_unit
  382. }
  383. obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
  384. obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
  385. obj['price'] = parseFloat(details[a].pric)
  386. obj['is_total'] = 2
  387. count = count + details[a].cnt
  388. }
  389. }
  390. obj['count'] = count
  391. list.push(obj)
  392. }
  393. }
  394. return list
  395. },
  396. getType(med_chrgitm_type) {
  397. switch (med_chrgitm_type) {
  398. case '01':
  399. return '床位费'
  400. break
  401. case '02':
  402. return '诊察费'
  403. break
  404. case '03':
  405. return '检查费'
  406. break
  407. case '04':
  408. return '化验费'
  409. break
  410. case '05':
  411. return '治疗费'
  412. break
  413. case '06':
  414. return '手术费'
  415. break
  416. case '07':
  417. return '护理费'
  418. break
  419. case '08':
  420. return '材料费'
  421. break
  422. case '09':
  423. return '西药费'
  424. break
  425. case '10':
  426. return '中药饮片费'
  427. break
  428. case '11':
  429. return '中成药费'
  430. break
  431. case '12':
  432. return '一般诊疗费'
  433. break
  434. case '13':
  435. return '挂号费'
  436. break
  437. case '14':
  438. return '其他费'
  439. break
  440. case '0':
  441. return '其他费'
  442. break
  443. }
  444. },
  445. getMedicineInsuranceType(type) {
  446. switch (type) {
  447. case "01":
  448. return '甲类'
  449. break
  450. case "02":
  451. return '乙类'
  452. break
  453. case "03":
  454. return '丙类'
  455. break
  456. }
  457. },
  458. unique(array) {
  459. // res用来存储结果
  460. var res = []
  461. for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
  462. for (var j = 0, resLen = res.length; j < resLen; j++) {
  463. if (array[i].id === res[j].id && array[i].price === res[j].price) {
  464. break
  465. }
  466. }
  467. // 如果array[i]是唯一的,那么执行完循环,j等于resLen
  468. if (j === resLen) {
  469. res.push(array[i])
  470. }
  471. }
  472. return res
  473. },
  474. unique10265(array) {
  475. // res用来存储结果
  476. var res = []
  477. for (var i = 0, arrayLen = array.length; i < arrayLen; i++) {
  478. for (var j = 0, resLen = res.length; j < resLen; j++) {
  479. if (array[i].id === res[j].id && array[i].price === res[j].price && array[i].lv === res[j].lv) {
  480. break
  481. }
  482. }
  483. // 如果array[i]是唯一的,那么执行完循环,j等于resLen
  484. if (j === resLen) {
  485. res.push(array[i])
  486. }
  487. }
  488. return res
  489. },
  490. printThisPage() {
  491. if(this.org_id != 10106){
  492. if(this.org_id == 10215 || this.org_id == 0|| this.org_id == 9675){
  493. const style =
  494. '@media print {.allListTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.allListInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;} .allListTable{border: none;width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;} .allListTable tr{page-break-inside:avoid;} .allListTable tr td {padding: 0 5px;border: 1px solid #000;}.tableBottom{font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne{margin-right: 40px;}}'
  495. printJS({
  496. printable: 'allList-print',
  497. type: 'html',
  498. style: style,
  499. scanStyles: false
  500. })
  501. }else {
  502. const style =
  503. '@media print {.listTitle{font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo{display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align:left;}.listTable tr td {padding: 0 5px;}.tableBottom{font-size: 16px;display: flex;margin-top: 10px;}.tableBottomOne{margin-right: 40px;}}'
  504. printJS({
  505. printable: 'list-print',
  506. type: 'html',
  507. style: style,
  508. scanStyles: false
  509. })
  510. }
  511. }else{
  512. const style =
  513. '@media print {#statement-print{font-size:12px;width:800px;margin:0 auto;}.statementTitle{font-size: 22px;text-align: center;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}';
  514. printJS({
  515. printable: "statement-print",
  516. type: "html",
  517. style: style,
  518. scanStyles: false
  519. });
  520. }
  521. // if (this.org_template_info.template_id == 1) {
  522. // printJS({
  523. // printable: "dialysis-print-box",
  524. // type: "html",
  525. // style: style,
  526. // scanStyles: false
  527. // });
  528. // }
  529. },getInfoPrivateExpenses10106(order_id){
  530. let params = {
  531. order_id: order_id,
  532. admin_user_id:this.$store.getters.xt_user.user.id
  533. }
  534. getPrivateExpensesOrder(params).then(response => {
  535. if (response.data.state == 0) {
  536. this.$message.error(response.data.msg)
  537. return false
  538. } else {
  539. this.info = response.data.data.info
  540. this.info['org_name'] = response.data.data.org_name
  541. this.info['date'] = response.data.data.date
  542. this.info['number'] = response.data.data.number
  543. this.info['name'] = response.data.data.name
  544. this.p_admin = response.data.data.printor_admin
  545. this.charge_admin = response.data.data.charge_admin
  546. this.order_infos = response.data.data
  547. }
  548. })
  549. }, getGoodUnit(id) {
  550. var goodUnit = this.$store.getters.good_unit
  551. for (let i = 0; i < goodUnit.length; i++) {
  552. if (goodUnit[i].id == id) {
  553. return goodUnit[i].name
  554. }
  555. }
  556. },
  557. getInfo10106(order_id) {
  558. if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
  559. var that = this
  560. axios.get('http://127.0.0.1:9532/api/settle/query', {
  561. params: {
  562. order_id: order_id,
  563. admin_user_id:that.$store.getters.xt_user.user.id
  564. }
  565. })
  566. .then(function (response) {
  567. if (response.data.state == 0) {
  568. this.$message.error(response.data.msg)
  569. return false
  570. } else {
  571. console.log("logloglog")
  572. console.log(response.data.data.info)
  573. that.info = response.data.data.info
  574. that.p_admin = response.data.data.printor_admin
  575. that.charge_admin = response.data.data.charge_admin
  576. that.order_infos = response.data.data
  577. console.log(that.info)
  578. that.info['bed_cost_total'] = response.data.data.bedCostTotal
  579. that.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
  580. that.info['bed_cost_part_self_total'] = response.data.data.bedCostPartSelfTotal
  581. that.info['operation_cost_total'] = response.data.data.operationCostTotal
  582. that.info['operation_cost_self_total'] = response.data.data.operationCostSelfTotal
  583. that.info['operation_cost_part_self_total'] = response.data.data.operationCostPartSelfTotal
  584. that.info['other_cost_total'] = response.data.data.otherCostTotal
  585. that.info['other_cost_self_total'] = response.data.data.otherCostSelfTotal
  586. that.info['other_cost_part_self_total'] = response.data.data.otherCostPartSelfTotal
  587. that.info['material_cost_total'] = response.data.data.materialCostTotal
  588. that.info['material_cost_self_total'] = response.data.data.materialCostSelfTotal
  589. that.info['material_cost_part_self_total'] = response.data.data.materialCostPartSelfTotal
  590. that.info['western_medicine_cost_total'] = response.data.data.westernMedicineCostTotal
  591. that.info['western_medicine_cost_self_total'] = response.data.data.westernMedicineCostSelfTotal
  592. that.info['western_medicine_cost_part_self_total'] = response.data.data.westernMedicineCostPartSelfTotal
  593. that.info['chinese_traditional_medicine_cost_total'] = response.data.data.chineseTraditionalMedicineCostTotal
  594. that.info['chinese_traditional_medicine_cost_self_total'] = response.data.data.chineseTraditionalMedicineCostSelfTotal
  595. that.info['chinese_traditional_medicine_cost_part_self_total'] = response.data.data.chineseTraditionalMedicineCostPartSelfTotal
  596. that.info['check_cost_total'] = response.data.data.checkCostTotal
  597. that.info['check_cost_self_total'] = response.data.data.checkCostSelfTotal
  598. that.info['check_cost_part_self_total'] = response.data.data.checkCostPartSelfTotal
  599. that.info['laboratory_cost_total'] = response.data.data.laboratoryCostTotal
  600. that.info['laboratory_cost_self_total'] = response.data.data.laboratoryCostSelfTotal
  601. that.info['laboratory_cost_part_self_total'] = response.data.data.laboratoryCostPartSelfTotal
  602. that.info['treat_cost_total'] = response.data.data.treatCostTotal
  603. that.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
  604. that.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
  605. console.log(this.info)
  606. }
  607. })
  608. .catch(function (error) {
  609. });
  610. }
  611. }
  612. }
  613. }
  614. </script>
  615. <style>
  616. .dialysis-print-order {
  617. width: 960px;
  618. margin: 0 auto;
  619. }
  620. .dialysis-print-order .order-yy-name {
  621. margin: auto;
  622. text-align: center;
  623. font-size: 20px;
  624. letter-spacing: 5px;
  625. }
  626. .dialysis-print-order .order-title {
  627. margin: auto;
  628. font-weight: 600;
  629. text-align: center;
  630. font-size: 22px;
  631. padding: 10px;
  632. }
  633. .dialysis-print-order .table-box {
  634. width: 100%;
  635. line-height: 23px;
  636. font-size: 14px;
  637. }
  638. .dialysis-print-order .print-table {
  639. width: 100%;
  640. text-align: center;
  641. border-collapse: collapse;
  642. line-height: 40px;
  643. font-size: 14px;
  644. border-color: #000;
  645. }
  646. .dialysis-print-order .print-table-no {
  647. width: 100%;
  648. text-align: center;
  649. border-collapse: collapse;
  650. font-size: 14px;
  651. }
  652. .dialysis-print-order .under-line {
  653. border-bottom: 1px solid #999;
  654. width: 95%;
  655. text-align: center;
  656. margin-left: 2px;
  657. }
  658. .dialysis-print-order .title-box {
  659. text-align: center;
  660. font-size: 16px;
  661. }
  662. .dialysis-print-order .radio-lebel-box {
  663. font-weight: 400;
  664. cursor: pointer;
  665. }
  666. .dialysis-print-order .radio-no {
  667. opacity: 0;
  668. outline: none;
  669. position: absolute;
  670. margin: 0;
  671. width: 0;
  672. height: 0;
  673. z-index: -1;
  674. }
  675. .dialysis-print-order .radio-inner {
  676. white-space: nowrap;
  677. cursor: pointer;
  678. outline: none;
  679. display: inline-block;
  680. line-height: 1;
  681. position: relative;
  682. vertical-align: middle;
  683. }
  684. .dialysis-print-order .radio-fang {
  685. display: inline-block;
  686. position: relative;
  687. border: 1px solid #000;
  688. box-sizing: border-box;
  689. width: 14px;
  690. height: 14px;
  691. background-color: #fff;
  692. z-index: 1;
  693. transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
  694. background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
  695. }
  696. .dialysis-print-order .is-checked-radio::after {
  697. content: "√";
  698. font-size: 15px;
  699. }
  700. .dialysis-print-order .print-table-no tr td {
  701. padding: 8px 5px;
  702. line-height: 25px;
  703. }
  704. .dialysis-print-order .print-table tr td {
  705. padding: 1px 1px;
  706. /*line-height: 25px;*/
  707. }
  708. .es-img {
  709. height: 30px;
  710. }
  711. .advice-name {
  712. text-align: left;
  713. }
  714. .advice-children {
  715. display: flex;
  716. }
  717. .title-box-pro {
  718. border: 0 #fff;
  719. line-height: 25px;
  720. height: 25px;
  721. text-align: left;
  722. padding-left: 10px !important;
  723. }
  724. .title-box-pro-tr {
  725. border: 0 #fff;
  726. }
  727. .text-align-left {
  728. text-align: left !important;
  729. padding-left: 10px !important;
  730. font-size: 14px !important;
  731. line-height: 25px;
  732. }
  733. .print-table-tr-new td {
  734. line-height: 20px !important;
  735. }
  736. .border-top-solid {
  737. border: solid 1px #000;
  738. }
  739. .print-template-two tr {
  740. line-height: 30px;
  741. }
  742. .table-box1 {
  743. border: 1px solid #000;
  744. width: 100%;
  745. line-height: 30px;
  746. font-size: 14px;
  747. border-collapse: collapse;
  748. }
  749. .table-box1 tr {
  750. border-bottom: 1px solid #000;
  751. }
  752. </style>
  753. <style lang="scss">
  754. .newContainer {
  755. .dialysisPage::-webkit-scrollbar {
  756. height: 15px;
  757. }
  758. .el-date-editor {
  759. .el-input__inner {
  760. padding-right: 0px;
  761. }
  762. }
  763. .el-table td, .el-table th {
  764. text-align: center;
  765. }
  766. }
  767. .newContainer::-webkit-scrollbar {
  768. height: 15px !important;
  769. }
  770. </style>