1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149 |
- <template>
- <!-- 打印 -->
- <div>
- <template>
- <el-button
- style="position: fixed; right: 25px; z-index: 999"
- :loading="loading"
- size="small"
- icon="el-icon-printer"
- @click="printThisPage"
- type="primary"
- >打印
- </el-button>
- </template>
-
- <div class="dialysisPage" style="padding-top: 40px">
- <div
- v-if="
- org_id == 9990 ||
- org_id == 10138 ||
- org_id == 9504 ||
- org_id == 10028 ||
- org_id == 10278 ||
- org_id == 10610 ||
- org_id==10537
- "
- >
- <printTwo :info="info" v-if="org_id == 9990"></printTwo>
- <printThree
- :info="info"
- :paramsObj="paramsObj"
- :balanceAccounts="balanceAccounts"
- v-if="org_id == 10138 || org_id == 10278 || org_id ==10610 || org_id==10537 || org_id == 0"
- ></printThree>
- <printFour
- v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 "
- :info="info"
- :paramsObj="paramsObj"
- :balanceAccounts="balanceAccounts"
- ></printFour>
- </div>
- <!-- <print-other :info="info" v-if="org_id == 9919"></print-other>-->
- <!-- <printOne :info=" info" v-if="org_id == 10215 && this.paramsObj.balance_accounts_type == 2"></printOne>-->
- <!-- <printFive-->
- <!-- v-if="org_id == 10191"-->
- <!-- :info="info"-->
- <!-- :paramsObj="paramsObj"-->
- <!-- :balanceAccounts="balanceAccounts"-->
- <!-- ></printFive>-->
-
- <printSeven
- v-if="org_id == 10387 "
- :info="info"
- :paramsObj="paramsObj"
- :balanceAccounts="balanceAccounts"
- >
- </printSeven>
- <print10191 :info="info" v-if="org_id == 10191"></print10191>
- <printTen :info="info" v-if="org_id == 10210 "></printTen>
- <printEleven :info="info" v-if="org_id == 10485"></printEleven>
- <!-- 阜阳经沃 org_id != 0 && -->
- <printtwelve :info="info" v-if="org_id == 10480 "></printtwelve>
- <!-- 大冶 -->
- <printthirteen :info="info" v-if="org_id == 10510"></printthirteen>
- <!-- 广水原生堂 -->
- <printfourteen :info="info" v-if="(org_id == 10088 ) && this.paramsObj.balance_accounts_type == 1"></printfourteen>
- <!-- 盱眙恒硕 -->
- <printfivetheen :info="info" v-if="org_id == 10633"></printfivetheen>
- <!-- 顺有好 -->
- <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
-
- <printOne :info="info" v-if=" org_id != 9990 &&
- org_id != 10138 && org_id != 9504 && org_id != 10028 &&
- org_id != 10610 && org_id !=10537 && org_id !=10697 &&
- org_id != 10278 && org_id != 10387 && org_id != 10191 &&
- org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
- org_id != 10510 &&org_id != 10088 &&org_id != 10633 && this.paramsObj.balance_accounts_type == 1">
- </printOne>
- <privateChargePrint :info="info" v-if="org_id != 9990 &&
- org_id != 10138 && org_id != 9504 && org_id != 10028 && org_id !=10697 &&
- org_id != 10278 && org_id != 10610 && org_id !=10537 && org_id != 10387 &&
- org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
- org_id != 10510 &&org_id != 10633 && this.paramsObj.balance_accounts_type == 2">
- </privateChargePrint>
-
- </div>
- </div>
- </template>
-
- <script>
- import { uParseTime } from '@/utils/tools'
- import axios from 'axios'
- import BreadCrumb from '@/xt_pages/components/bread-crumb'
- import printOne from './statementTemplate/printOne'
- import privateChargePrint from './statementTemplate/privateChargePrint'
- import printTwo from './statementTemplate/printTwo'
- import printThree from './statementTemplate/printThree'
- import printFour from './statementTemplate/printFour'
- import printFive from './statementTemplate/printFive'
- import testVue from './statementTemplate/test'
- import { getAllDoctorList, getAllHisPatientList } from '@/api/project/project'
- import { getPrivateExpenses, getPrivateExpensesOrder, getPrivateExpensesTwo } from '@/api/his/his'
- import printSeven from './statementTemplate/printSeven'
- import Print10191 from './statementTemplate/print10191'
- import printTen from './statementTemplate/printTen'
- import printEleven from './statementTemplate/printeEleven'
- import printtwelve from './statementTemplate/printtwelve'
- import printthirteen from './statementTemplate/printthirteen'
- import printfourteen from './statementTemplate/printfourteen'
- import printfivetheen from './statementTemplate/printfivetheen'
- import printSixtheen from './statementTemplate/printSixtheen'
- export default {
- name: 'dialysisPrintOrder',
- components: {
- Print10191,
- printSeven,
- BreadCrumb,
- printOne,
- privateChargePrint,
- printTwo,
- printThree,
- printFour,
- testVue,
- printFive,
- printTen,
- printEleven,
- printtwelve,
- printthirteen,
- printfourteen,
- printfivetheen,
- printSixtheen
- },
- props: {
- paramsObj: Object
- },
- data() {
- return {
- fundsArray: [
- { code: '310100', name: '城镇职工基本医疗保险统筹基金' },
- { code: '310101', name: '城镇职工基本医疗保险统筹基金(预付金)' },
- { code: '310102', name: '职工门诊统筹基金' },
- { code: '310200', name: '城镇职工基本医疗保险个人账户基金' },
- { code: '310400', name: '军转干部医疗补助基金' },
- { code: '310500', name: '代缴基金(破产改制)' },
- { code: '320100', name: '公务员医疗补助基金' },
- { code: '320200', name: '厅级干部补助基金' },
- { code: '330100', name: '大额医疗费用补助基金' },
- { code: '330200', name: '职工意外伤害基金' },
- { code: '340100', name: '离休人员医疗保障基金' },
- { code: '340200', name: '离休老工人门慢保障基金' },
- { code: '350100', name: '一至六级残疾军人医疗补助基金' },
- { code: '370100', name: '企业补充医疗保险基金' },
- { code: '370200', name: '公益补充保险基金' },
- { code: '390100', name: '城乡居民基本医疗保险基金' },
- { code: '390101', name: '城乡居民基本医疗保险基金(预付金)' },
- { code: '390102', name: '居民门诊统筹基金' },
- { code: '390200', name: '城乡居民大病医疗保险基金' },
- { code: '390300', name: '城乡居民大病补充保险基金' },
- { code: '390400', name: '居民意外伤害基金' },
- { code: '390500', name: '居民家庭账户金' },
- { code: '410100', name: '工伤保险基金' },
- { code: '510100', name: '生育基金' },
- { code: '610100', name: '医疗救助基金' },
- { code: '610101', name: '医疗救助基金' },
- { code: '610200', name: '优抚对象医疗补助基金' },
- { code: '620100', name: '特惠保补偿金' },
- { code: '630100', name: '医院减免金' },
- { code: '640100', name: '政府兜底基金' },
- { code: '999106', name: '预留保证金' },
- { code: '999109', name: '农村低收入人口医疗补充保险' },
- { code: '999110', name: '居民个人账户支出基金' },
- { code: '999996', name: '医院垫付基金' },
- { code: '999997', name: '其他基金' },
- { code: '99999701', name: '再封顶线以上救助基金' },
- { code: '99999702', name: '职工大病保险基金' },
- { code: '99999705', name: '扶贫救助' },
- { code: '99999706', name: '财政医疗救助' },
- { code: '99999707', name: '新冠肺炎核酸检测财政补助' },
- { code: '99999708', name: '贫困人口再救助' },
- { code: '99999721', name: '居民医疗账户支出' },
- { code: '99999722', name: '居民贫困救助' },
- { code: '99999723', name: '居民特大病贫困救助' },
- { code: '99999724', name: '基本起付线新增支出' },
- { code: '99999725', name: '基本提高比例新增支出' },
- { code: '99999726', name: '大病起付线新增支出' },
- { code: '99999727', name: '大病提高封顶新增支出' },
- { code: '99999728', name: '基金类别贫困救助普通慢性病提高比例新增支出' },
- { code: '99999729', name: '基金类别贫困救助普通慢性病提高限额新增支出' },
- { code: '99999730', name: '基金类别贫困救助重大慢性病提高比例新增支出' },
- { code: '99999731', name: '基金类别贫困救助普通慢性病医疗救助基金支出' },
- { code: '99999732', name: '基金类别贫困救助重大慢性病医疗救助基金支出' },
- { code: '99999733', name: '基金类别贫困救助普通慢性病降低起付线新增支出' },
- { code: '99999734', name: '基金类别贫困救助重大慢性病降低起付线新增支出' },
- { code: '99999735', name: '基金类别贫困人口门诊统筹' },
- { code: '99999737', name: '职工大病补助基金' },
- { code: '99999747', name: '长期护理险基金' },
- { code: '99999748', name: '离休账户支出' },
- { code: '99999749', name: '精准扶贫补充保险基金' },
- { code: '99999750', name: '公务员补助账户支付' },
- { code: '99999751', name: '医疗救助基金(罕见病)' },
- { code: '99999752', name: '职工慢性病统筹支出' },
- { code: '99999753', name: '医疗救助基金(重特大疾病)' },
- { code: '999702', name: '二乙基金' },
- { code: '999703', name: '七至十级残疾军人医疗补助基金' },
- { code: '999704', name: '城镇职工基本医疗保险单建统筹基金' },
- { code: '999706', name: '工会互助基金' },
- { code: '390104', name: '城乡居民大额医疗保险基金' },
- { code: '99999757', name: '退休人员补充基金' },
- { code: '99999758', name: '公费医疗照顾基金' },
- { code: '360200', name: '保健基金' },
- { code: '360300', name: '保健预支付基金' },
- { code: '999998', name: '现金支出' },
- { code: '310300', name: '城镇职工大病医疗保险基金' },
- { code: '640103', name: '政府补充保障基金(特优群体人员)' },
- { code: '640104', name: '政府补充保障基金(建国前老党员)' },
- { code: '390103', name: '居民两病门诊统筹基金' },
- { code: '650101', name: '大病补充保障基金(大病购药)' },
- { code: '650102', name: '大病补充保障基金(罕见病购药)' },
- { code: '610103', name: '医疗救助基金(再救助)' },
- { code: '330102', name: '大额医疗费用救助基金' },
- { code: '610102', name: '医疗救助基金(重特大疾病/再救助)' },
- { code: '999111', name: '居民储蓄账户基金' },
- { code: '99999765', name: '平安商业保险基金' },
- { code: '99999766', name: '人保商业保险基金' },
- { code: '99999767', name: '离休单位支付基金' },
- { code: '99999768', name: '造船离休单位支付基金' },
- { code: '99999769', name: '企业离休支付基金' },
- { code: '99999770', name: '普惠保商业保险基金' },
- { code: '390700', name: '城乡居民基本医疗保险二次报销基金' },
- { code: '390801', name: '城乡低保人员团体住院医疗保险基金' },
- { code: '310701', name: '城镇职工补充医疗保险(AB款)基金' },
- { code: '999761', name: '128基金' },
- { code: '999762', name: '五七工基金' },
- { code: '999763', name: '五七工大病基金' },
- { code: '310800', name: '地方附加医保基金' },
- { code: '3990100', name: '劳模补助基金' },
- { code: '99999759', name: '城镇职工长期护理保险基金' },
- { code: '99999760', name: '城乡居民长期护理保险基金' },
- { code: '310103', name: '职工生育基金' },
- { code: '99999771', name: '生育产前检查支出' },
- { code: '99999778', name: '造船离休账户支出' },
- { code: '99999779', name: '企业离休账户支出' },
- { code: '610104', name: '残联基金' },
- { code: '610105', name: '慈善救助基金' },
- { code: '99999780', name: '商业保险补充医疗基金' },
- { code: '340300', name: '离休人员备用金' },
- { code: '99999781', name: '卫健基金' },
- { code: '99999782', name: '重大疾病基金' },
- { code: '99999783', name: '医疗援助基金' },
- { code: '370300', name: '人保健康企业补充基金' },
- { code: '99999790', name: '其他账户支付' },
- { code: '910101', name: '农民工大病医疗保险基金' },
- { code: '910102', name: '农民工大病医疗互助基金' },
- { code: '310900', name: '免缴补充基金' },
- { code: '99999784', name: '建国前老工人补助基金' },
- { code: '99999787', name: '财政补充基金' },
- { code: '99999788', name: '精防医疗补助' },
- { code: '99999785', name: '家庭医生签约公共卫生服务专项基金' },
- { code: '320300', name: '企业事业单位补充医疗保险基金' },
- { code: '999201', name: '一般诊疗费统筹基金' },
- { code: '999202', name: '核酸检测统筹基金' },
- { code: '99999772', name: '返外地退休人员支出基金' },
- { code: '310203', name: '个人本年账户基金' },
- { code: '310302', name: '先行支付大额基金' },
- { code: '350102', name: '荣军账户' },
- { code: '370201', name: '高科技人才补充基金-公益补充' },
- { code: '390301', name: '儿童统筹基金' },
- { code: '610107', name: '医疗救助再救助基金' },
- { code: '640101', name: '涟康保政策范围外基金' },
- { code: '999103', name: '地厅人员财政补助基金' },
- { code: '999700', name: '职工大病基金' },
- { code: '999701', name: '特殊职工大病基金' },
- { code: '999718', name: '先行支付统筹基金' },
- { code: '999900', name: '特殊基金' },
- { code: '99999602', name: '医院承担基金' },
- { code: '99999703', name: '财政补助基金' },
- { code: '99999741', name: '领导干部额外补充基金' },
- { code: '99999756', name: '离休账户' },
- { code: '310600', name: '基本医疗二次报销基金' },
- { code: '320400', name: '公务员二次报销基金' },
- { code: '340103', name: '中央离休基金' },
- { code: '99999704', name: '优抚补助' },
- { code: '399100', name: '医疗照顾人员补充基金' },
- { code: '620102', name: '补充医疗保险基金' },
- { code: '999705', name: '优抚基金' },
- { code: '999720', name: '工会大额互助基金' },
- { code: '310301', name: '职工大病补助基金(预付金)' },
- { code: '390201', name: '城乡居民大病医疗保险基金(预付金)' },
- { code: '310601', name: '社区门诊统筹基金' },
- { code: '310700', name: '家属统筹医疗基金' },
- { code: '310802', name: '家属统筹地方补充医疗保险基金' },
- { code: '320500', name: '公务员医疗补助个人账户基金' }
- ],
- crumbs: [
- { path: false, name: '门诊医生站' },
- { path: false, name: '打印' }
- ],
- record_date: '',
- patientTableData: [],
- advicePrint: [],
- hisPatient: {},
- patient: {},
- search_input: '',
- loading: false,
- patient_id: 0,
- prescription_id: 0,
- ids: '',
- info: null,
- order: null,
- org_id: '',
- balanceAccounts: {}
- }
- },
- methods: {
- printThisPage() {
- var ptime = Math.round(new Date().getTime() / 1000)
- this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
-
- if (
- this.$store.getters.xt_user.org_id == 10138 ||
- this.$store.getters.xt_user.org_id == 4 ||
- this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id == 10610 || this.$store.getters.xt_user.org_id == 10537
- ) {
- setTimeout(() => {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}'
- const style2 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}'
- const style3 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}'
- const style4 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}'
- const style5 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}'
- const style6 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}'
- const style7 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}'
- const style8 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}'
- const style9 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}'
- const style10 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}'
- const style11 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}'
- const style12 =
- '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}'
- if (this.num >= 13) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- } else if (this.num == 12) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style2,
- scanStyles: false
- })
- } else if (this.num == 11) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style3,
- scanStyles: false
- })
- } else if (this.num == 10) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style4,
- scanStyles: false
- })
- } else if (this.num == 9) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style5,
- scanStyles: false
- })
- } else if (this.num == 8) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style6,
- scanStyles: false
- })
- } else if (this.num == 7) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style7,
- scanStyles: false
- })
- } else if (this.num == 6) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style8,
- scanStyles: false
- })
- } else if (this.num == 5) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style9,
- scanStyles: false
- })
- } else if (this.num == 4) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style10,
- scanStyles: false
- })
- } else if (this.num == 3) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style11,
- scanStyles: false
- })
- } else if (this.num <= 2) {
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style12,
- scanStyles: false
- })
- }
- }, 500)
- } else if (
- this.$store.getters.xt_user.org_id == 9504 ||
- this.$store.getters.xt_user.org_id == 10028
- ) {
- const style =
- '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}'
- printJS({
- printable: 'prescription-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- } else {
- // 医保环境打印格式
- if (
- this.$store.getters.xt_user.org_id == 9919 ||
- this.$store.getters.xt_user.org_id == 10106
- ) {
- const style =
- '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- } else if (
- // this.$store.getters.xt_user.org_id == 0 ||
- this.$store.getters.xt_user.org_id == 10191
- ) {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- // const style =
- // "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
- // printJS({
- // printable: "statement-print",
- // type: "html",
- // style: style,
- // scanStyles: false,
- // });
- } else if (
- this.$store.getters.xt_user.org_id == 10485
- ) {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 5px;line-height: 30px;border: none;}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
-
- }else if (
- this.$store.getters.xt_user.org_id == 10480
- ) {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;} .statementTable {border-collapse: collapse;} table tr td {padding: 2px;line-height: 30px;border: 1px solid black;text-align: center;}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
-
- }else if( this.$store.getters.xt_user.org_id == 10510 ) {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- }else if (
- this.$store.getters.xt_user.org_id == 10633 || this.$store.getters.xt_user.org_id == 0
- ) {
- const style =
- '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;} .statementTable {border-collapse: collapse;} table tr td {padding: 2px;line-height: 30px;border: 1px solid black;}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
-
- } else {
- const style =
- '@media print {#statement-print{font-size:16px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;} .statementTable{border-collapse: collapse;} table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
- printJS({
- printable: 'statement-print',
- type: 'html',
- style: style,
- scanStyles: false
- })
- }
- }
- // if (this.org_template_info.template_id == 1) {
- // printJS({
- // printable: "dialysis-print-box",
- // type: "html",
- // style: style,
- // scanStyles: false
- // });
- // }
- },
- getAllDoctorList() {
- getAllDoctorList().then((response) => {
- if (response.data.state == 1) {
- var doctor = response.data.data.doctor
-
- this.doctorList = doctor
- }
- })
-
- }, getType(med_chrgitm_type) {
- switch (med_chrgitm_type) {
- case '01':
- return '床位费'
- break
- case '02':
- return '诊察费'
-
- break
- case '03':
- return '检查费'
-
- break
- case '04':
- return '化验费'
- break
- case '05':
- return '治疗费'
-
- break
- case '06':
- return '手术费'
-
- break
- case '07':
- return '护理费'
- break
- case '08':
- return '材料费'
-
- break
- case '09':
- return '西药费'
-
- break
- case '10':
- return '中药饮片费'
-
- break
- case '11':
- return '中成药费'
-
- break
- case '12':
- return '一般诊疗费'
-
- break
- case '13':
- return '挂号费'
-
- break
- case '14':
- return '其他费'
-
- break
-
- }
-
-
- },
- getAllHisPatientList() {
- const params = {
- record_date: this.record_date
- }
- getAllHisPatientList(params).then((response) => {
- if (response.data.state == 1) {
- this.patientTableData = response.data.data.list
- this.patientTableDataTwo = response.data.data.list
-
- let cal_one = 0
- let cal_two = 0
- for (let i = 0; i < response.data.data.list.length; i++) {
- if (
- response.data.data.list[i].prescription == null ||
- response.data.data.list[i].prescription.length == 0
- ) {
- cal_one = cal_one + 1
- }
- if (
- response.data.data.list[i].prescription != null &&
- response.data.data.list[i].prescription.length > 0
- ) {
- cal_two = cal_two + 1
- }
- }
- // this.$refs.tab.setCurrentRow(this.patientTableData[0])
- // console.log(this.patientTableData[0])
- // this.choosePatient(this.patientTableData[0])
- this.cal_one = cal_one
- this.cal_two = cal_two
- }
- })
- },
-
- changePatient(row) {
- console.log('row', row)
- this.patient_id = row.patient_id
- this.record_date = this.record_date
- this.prescription_id = this.prescription_id
- // var params = {
- // patient_id:row.patient_id,
- // record_date:this.record_date,
- // prescription_id:this.prescription_id,
- // }
- // getPrescriptionPrint(params).then(response=>{
- // if(response.data.state == 1){
- // var advicePrint = response.data.data.advicePrint
- // console.log("adviceprint",advicePrint)
- // this.advicePrint = advicePrint
- // // var hisPatient = response.data.data.hisPatient
- // // console.log("hispatient",hisPatient)
- // // this.hisPatient = hisPatient
- // var patient = response.data.data.patient
- // console.log("patient",patient)
- // this.patient = patient
- // var doctorPorject = response.data.data.doctorPorject
- // console.log("doctorporject",doctorPorject)
- // }
- // })
- },
- getTimes(time) {
- return uParseTime(time, '{y}-{m}-{d}')
- }, getTotal: function(items) {
- let total = 0
- for (let i = 0; i < items.length; i++) {
- total = Number(total) + Number(parseFloat(items[i].cnt) * parseFloat(items[i].pric))
- }
- return total.toFixed(2)
- },
- set10265NewData(details) {
- var list = []
- for (let a = 0; a < details.length; a++) {
- let obj = {}
- if(details[a].advice_id > 0 && details[a].project_id == 0) {
- obj['yibao_code'] = details[a].advice.drug.medical_insurance_number
- obj['yiyuan_code'] = details[a].advice.drug.id
- obj['name'] = details[a].advice.advice_name
- obj['unit'] = details[a].advice.prescribing_number_unit
- 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
- obj['count'] = details[a].cnt
- obj['price'] = parseFloat(details[a].pric)
- obj['total_price'] = parseFloat(details[a].det_item_fee_sumamt)
- obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
- // obj['yibao_biaozhi'] = details[a].
-
- list.push(obj)
- }
-
- if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 2) {
- obj['yibao_code'] = details[a].project.project.medical_code
- obj['yiyuan_code'] = details[a].project.project.id
- obj['name'] = details[a].project.project.project_name
- obj['unit'] = details[a].project.project.unit
- obj['spec'] = ""
- obj['count'] = details[a].cnt
- obj['price'] = parseFloat(details[a].pric)
- obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
- obj['total_price'] = parseFloat(details[a].det_item_fee_sumamt)
- list.push(obj)
- }
-
- if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 3) {
- obj['yibao_code'] = details[a].project.good_info.medical_insurance_number
- obj['yiyuan_code'] = details[a].project.good_info.id
- obj['name'] = details[a].project.good_info.good_name
- obj['unit'] = details[a].project.good_info.packing_unit
- obj['spec'] = details[a].project.good_info.specification_name
- obj['count'] = details[a].cnt
- obj['price'] = parseFloat(details[a].pric)
- obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
- obj['total_price'] = parseFloat(details[a].det_item_fee_sumamt)
- list.push(obj)
- }
- }
- return list
-
- },
-
- searchAction() {
- },
- getInfo(order_id, obj) {
- console.log('obj.balance_accounts_type',obj.balance_accounts_type);
- if (obj.balance_accounts_type == 2) {
- let params = {
- his_patient_id: obj.his_patient_id,
- id: obj.order_id,
- order_id: obj.order_id,
- admin_user_id: this.$store.getters.xt_user.user.id
- }
- if (
- this.org_id == 10138 ||
- this.org_id == 10278 || this.org_id == 10610 || this.org_id == 10537
- ) {
- getPrivateExpenses(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- this.balanceAccounts = response.data.data
- console.log( "this.balanceAccounts")
- console.log( this.balanceAccounts)
- let arr = []
- let obj = {
- type: 1,
- details: [],
- total: 0
- }
- let obj2 = {
- type: 2,
- details: [],
- total: 0
- }
- let obj3 = {
- type: 3,
- details: [],
- total: 0
- }
- let num = 0
-
- let obj4 = {
- type: 4,
- details: [],
- total: 0
- }
- this.balanceAccounts.order_info.map((item) => {
- if (item.advice_id > 0) {
- obj.details.push(item)
- obj.total += item.pric.toFixed(2) * item.advice.prescribing_number
- num++
- } else {
- if (item.project.type == 2) {
- obj2.details.push(item)
- obj2.total += item.pric * item.project.count
- num++
- } else {
- obj3.details.push(item)
- obj3.total += item.pric * item.project.count
- num++
- }
- }
- })
- if (this.balanceAccounts.new_order_info != null) {
- this.balanceAccounts.new_order_info.map((item) => {
- obj2.total = obj2.total + item.Total
- var newObj = {
- pric: parseFloat(item.Total),
- project: {
- count: 1,
- project: {
- project_name: item.Name,
- unit: ''
- }
- }
- }
- obj2.details.push(newObj)
- num++
- })
- }
-
- this.balanceAccounts.new_detail_list = []
- this.balanceAccounts.new_detail_list.push(obj)
- this.balanceAccounts.new_detail_list.push(obj2)
- this.balanceAccounts.new_detail_list.push(obj3)
- // this.balanceAccounts.new_detail_list.push(obj4)
-
- // console.log(111, this.balanceAccounts)
- this.num = num
- // console.log('this.num', this.num)
- }
- })
- } else if (this.org_id == 10028 || this.org_id == 9504) {
- getPrivateExpenses(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- this.balanceAccounts = response.data.data
- let obj = {
- type: 1,
- details: [],
- total: 0
- }
- let obj2 = {
- type: 2,
- details: [],
- total: 0
- }
- let obj3 = {
- type: 3,
- details: [],
- total: 0
- }
- this.balanceAccounts.order_info.map((item) => {
- if (item.advice_id > 0) {
- obj.details.push(item)
- obj.total += item.pric * item.advice.prescribing_number
- } else {
- if (item.project.type == 2) {
- obj2.details.push(item)
- obj2.total += item.pric * item.project.count
- } else {
- obj3.details.push(item)
- obj3.total += item.pric * item.project.count
- }
- }
- })
- this.balanceAccounts.new_detail_list = []
- this.balanceAccounts.new_detail_list.push(obj)
- this.balanceAccounts.new_detail_list.push(obj2)
- this.balanceAccounts.new_detail_list.push(obj3)
- console.log(111, this.balanceAccounts)
- }
- })
- } else {
- getPrivateExpensesOrder(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- var that = this
- that.info = response.data.data.info
- that.p_admin = response.data.data.printor_admin
- that.charge_admin = response.data.data.charge_admin
- that.info['new_order'] = response.data.data.info
- that.info['p_admin'] = that.p_admin
- that.info['charge_admin'] = that.charge_admin
- that.info['order_number'] = response.data.data.order_number
- that.info['patient'] = response.data.data.patient
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- that.info['fixmedins_name'] = response.data.data.org_name
- that.info['fixmedins_code'] = response.data.data.org_code
- // that.info["doctor_code"] = response.data.data.doctor_code;
- // that.info["department"] = response.data.data.department;
- // that.info["health_card_no"] = response.data.data.health_card_no;
-
-
-
-
- that.info['bed_cost_total'] = response.data.data.bedCostTotal
- that.info['bed_cost_self_total'] =
- response.data.data.bedCostSelfTotal
- that.info['bed_cost_part_self_total'] =
- response.data.data.bedCostPartSelfTotal
-
- that.info['operation_cost_total'] =
- response.data.data.operationCostTotal
- that.info['operation_cost_self_total'] =
- response.data.data.operationCostSelfTotal
- that.info['operation_cost_part_self_total'] =
- response.data.data.operationCostPartSelfTotal
-
- that.info['other_cost_total'] = response.data.data.otherCostTotal
- that.info['other_cost_self_total'] =
- response.data.data.otherCostSelfTotal
- that.info['other_cost_part_self_total'] =
- response.data.data.otherCostPartSelfTotal
-
- that.info['material_cost_total'] =
- response.data.data.materialCostTotal
- that.info['material_cost_self_total'] =
- response.data.data.materialCostSelfTotal
- that.info['material_cost_part_self_total'] =
- response.data.data.materialCostPartSelfTotal
-
- that.info['western_medicine_cost_total'] =
- response.data.data.westernMedicineCostTotal
- that.info['western_medicine_cost_self_total'] =
- response.data.data.westernMedicineCostSelfTotal
- that.info['western_medicine_cost_part_self_total'] =
- response.data.data.westernMedicineCostPartSelfTotal
-
- that.info['chinese_traditional_medicine_cost_total'] =
- response.data.data.chineseTraditionalMedicineCostTotal
- that.info['chinese_traditional_medicine_cost_self_total'] =
- response.data.data.chineseTraditionalMedicineCostSelfTotal
- that.info['chinese_traditional_medicine_cost_part_self_total'] =
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal
-
- that.info['check_cost_total'] = response.data.data.checkCostTotal
- that.info['check_cost_self_total'] =
- response.data.data.checkCostSelfTotal
- that.info['check_cost_part_self_total'] =
- response.data.data.checkCostPartSelfTotal
-
- that.info['laboratory_cost_total'] =
- response.data.data.laboratoryCostTotal
- that.info['laboratory_cost_self_total'] =
- response.data.data.laboratoryCostSelfTotal
- that.info['laboratory_cost_part_self_total'] =
- response.data.data.laboratoryCostPartSelfTotal
-
- that.info['treat_cost_total'] = response.data.data.treatCostTotal
- that.info['treat_cost_self_total'] =
- response.data.data.treatCostSelfTotal
- that.info['treat_cost_part_self_total'] =
- response.data.data.treatCostPartSelfTotal
-
-
-
-
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- that.info['his'] = response.data.data.his
- that.info['dia_config'] = response.data.data.dia_config
-
- let listarr = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
- response.data.data.order_infos[i].med_chrgitm_type = '09'
- }
- if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
- if (response.data.data.order_infos[i].project.type == 2) { //项目
- if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
- response.data.data.order_infos[i].med_chrgitm_type = '05'
- } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
- response.data.data.order_infos[i].med_chrgitm_type = '04'
- } else {
- response.data.data.order_infos[i].med_chrgitm_type = '14'
- }
- } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
- response.data.data.order_infos[i].med_chrgitm_type = '08'
- }
- }
- let order = response.data.data.order_infos[i]
- let obj = {
- name: '',
- spec: '',
- cnt: '',
- det_item_fee_sumamt: ''
- }
-
- if (order.advice_id > 0 && order.project_id == 0) {
- obj.name = order.advice.advice_name
- let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
- obj.spec = spec
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- listarr.push(obj)
-
- } else if (order.advice_id == 0 && order.project_id > 0) {
- if (order.project.type == 2) {
- obj.name = order.project.project.project_name
- obj.spec = ''
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
-
- } else {
- obj.name = order.project.good_info.good_name
- obj.spec = order.project.good_info.specification_name
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- }
- listarr.push(obj)
- }
- }
- let len = Math.ceil(listarr.length / 2)
- let L_list = []
- let R_list = []
- for(let i in listarr){
- if(i<len){
- L_list.push(listarr[i])
- }else{
- R_list.push(listarr[i])
- }
- }
- console.log('L_list111',L_list)
- console.log('R_list222',R_list)
-
- that.info['L_list'] = L_list
- that.info['R_list'] = R_list
-
- console.log(response.data.data.order_infos)
- console.log('that.info',that.info)
- var list = []
- //获取所有项目类型进行去重
- let med_chrgitm_types = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
- }
- const obj10 = {}
- med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
- obj10[next] ? '' : obj10[next] = true && cur.push(next)
- return cur
- }, []) // 设置cur默认类型为数组,并且初始值为空的数组
- let tempOrderInfo = []
- for (let i = 0; i < med_chrgitm_types.length; i++) {
-
- let obj9 = {
- details: [],
- med_chrgitm_name: that.getType(med_chrgitm_types[i]),
- total:0,
- }
-
- // if(med_chrgitm_types[i] == '09'){
- // obj.sort = 99
- // } else if(med_chrgitm_types[i] == '05'){
- // obj.sort = 98
- // } else if(med_chrgitm_types[i] == '08'){
- // obj.sort = 97
- // }else if(med_chrgitm_types[i] == '03'){
- // obj.sort = 96
- // }
-
- let tempDetails = []
- for (let b = 0; b < response.data.data.order_infos.length; b++) {
- if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
- tempDetails.push(response.data.data.order_infos[b])
- }
- }
- console.log(med_chrgitm_types[i])
- console.log(tempDetails)
- obj9.total = that.getTotal(tempDetails)
- obj9.details = that.set10265NewData(tempDetails)
- list.push(obj9)
- }
- that.info['new_list'] = list
- // that.info['listarr'] = listarr
- // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
-
- let obj = {
- type: 1,
- details: [],
- total: 0
- }
- let obj2 = {
- type: 2,
- details: [],
- total: 0
- }
- let obj3 = {
- type: 3,
- details: [],
- total: 0
- }
-
- let obj4 = {
- type: 4,
- details: [],
- total: 0
- }
- let num = 0
- that.info.order_infos.map((item) => {
- if (item.advice_id > 0) {
- obj.details.push(item)
- obj.total += item.pric * item.advice.prescribing_number
- num++
- } else {
- if (item.project.type == 2) {
- obj2.details.push(item)
- obj2.total += item.pric * item.project.count
- num++
- } else {
- obj3.details.push(item)
- obj3.total += item.pric * item.project.count
- num++
- }
- }
- })
-
- // this.info.order_infos.map(item => {
- // obj4.total = item.Total
- // obj4.details.push(item)
- // num++
- //
- // })
-
- that.info.new_detail_list = []
- that.info.new_detail_list.push(obj)
- that.info.new_detail_list.push(obj2)
- that.info.new_detail_list.push(obj3)
- // that.info.new_detail_list.push(obj4)
-
- that.num = num
-
- if (that.paramsObj.settle_type != 1) {
- that.info.begndate = that.getTimes(that.paramsObj.start_time)
- that.info.enddate = that.getTimes(that.paramsObj.end_time)
- }
-
- that.info.order_infos.map((item) => {
-
- })
-
- }
- })
- }
- } else {
- console.log('1111111',this.org_id)
- if (this.org_id == 0) {
- let params = {
- order_id: obj.order_id,
- admin_user_id: this.$store.getters.xt_user.user.id
- }
- getPrivateExpensesTwo(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- var that = this
- that.info = response.data.data.info
- that.p_admin = response.data.data.printor_admin
- that.charge_admin = response.data.data.charge_admin
-
- that.info['p_admin'] = that.p_admin
- that.info['charge_admin'] = that.charge_admin
- that.info['order_number'] = response.data.data.order_number
- that.info['patient'] = response.data.data.patient
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- that.info['fixmedins_name'] = response.data.data.org_name
- that.info['fixmedins_code'] = response.data.data.org_code
- // that.info["doctor_code"] = response.data.data.doctor_code;
- // that.info["department"] = response.data.data.department;
- // that.info["health_card_no"] = response.data.data.health_card_no;
-
- that.info['bed_cost_total'] = response.data.data.bedCostTotal
- that.info['bed_cost_self_total'] =
- response.data.data.bedCostSelfTotal
- that.info['bed_cost_part_self_total'] =
- response.data.data.bedCostPartSelfTotal
-
- that.info['operation_cost_total'] =
- response.data.data.operationCostTotal
- that.info['operation_cost_self_total'] =
- response.data.data.operationCostSelfTotal
- that.info['operation_cost_part_self_total'] =
- response.data.data.operationCostPartSelfTotal
-
- that.info['other_cost_total'] = response.data.data.otherCostTotal
- that.info['other_cost_self_total'] =
- response.data.data.otherCostSelfTotal
- that.info['other_cost_part_self_total'] =
- response.data.data.otherCostPartSelfTotal
-
- that.info['material_cost_total'] =
- response.data.data.materialCostTotal
- that.info['material_cost_self_total'] =
- response.data.data.materialCostSelfTotal
- that.info['material_cost_part_self_total'] =
- response.data.data.materialCostPartSelfTotal
-
-
-
-
- that.info['western_medicine_cost_total'] =
- response.data.data.westernMedicineCostTotal
- that.info['western_medicine_cost_self_total'] =
- response.data.data.westernMedicineCostSelfTotal
- that.info['western_medicine_cost_part_self_total'] =
- response.data.data.westernMedicineCostPartSelfTotal
-
- that.info['chinese_traditional_medicine_cost_total'] =
- response.data.data.chineseTraditionalMedicineCostTotal
- that.info['chinese_traditional_medicine_cost_self_total'] =
- response.data.data.chineseTraditionalMedicineCostSelfTotal
- that.info['chinese_traditional_medicine_cost_part_self_total'] =
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal
-
- that.info['check_cost_total'] = response.data.data.checkCostTotal
- that.info['check_cost_self_total'] =
- response.data.data.checkCostSelfTotal
- that.info['check_cost_part_self_total'] =
- response.data.data.checkCostPartSelfTotal
-
- that.info['laboratory_cost_total'] =
- response.data.data.laboratoryCostTotal
- that.info['laboratory_cost_self_total'] =
- response.data.data.laboratoryCostSelfTotal
- that.info['laboratory_cost_part_self_total'] =
- response.data.data.laboratoryCostPartSelfTotal
-
- that.info['treat_cost_total'] = response.data.data.treatCostTotal
- that.info['treat_cost_self_total'] =
- response.data.data.treatCostSelfTotal
- that.info['treat_cost_part_self_total'] =
- response.data.data.treatCostPartSelfTotal
- that.info['date'] = response.data.data.date
- // that.info["number"] = response.data.data.number;
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
-
-
-
- let list = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- let order = response.data.data.order_infos[i]
- let obj = {
- name: '',
- spec: '',
- cnt: '',
- det_item_fee_sumamt: ''
- }
-
- if (order.advice_id > 0 && order.project_id == 0) {
- obj.name = order.advice.advice_name
- let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
- obj.spec = spec
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- list.push(obj)
-
- } else if (order.advice_id == 0 && order.project_id > 0) {
- if (order.project.type == 2) {
- obj.name = order.project.project.project_name
- obj.spec = ''
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
-
- } else {
- obj.name = order.project.good_info.good_name
- obj.spec = order.project.good_info.specification_name
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- }
- list.push(obj)
- }
-
- }
-
- console.log(list)
- let len = list.length / 2
- let L_list = []
- let R_list = []
- len = Math.trunc(len)
- for (let i = 0; i < len; i++) {
- L_list.push(list[i])
- }
- console.log(len)
- for (let i = len; i < list.length; i++) {
- console.log(list[i])
- R_list.push(list[i])
- }
- console.log(L_list)
- console.log(R_list)
-
- that.info['L_list'] = L_list
- that.info['R_list'] = R_list
-
- }
- })
- } else {
- if(this.org_id == 10480){
- let params = {
- order_id: obj.order_id,
- admin_user_id: this.$store.getters.xt_user.user.id
- }
- getPrivateExpensesOrder(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- var that = this
- that.info = response.data.data.info
- that.p_admin = response.data.data.printor_admin
- that.charge_admin = response.data.data.charge_admin
- that.info['new_order'] = response.data.data.info
- that.info['p_admin'] = that.p_admin
- that.info['charge_admin'] = that.charge_admin
- that.info['order_number'] = response.data.data.order_number
- that.info['patient'] = response.data.data.patient
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- that.info['fixmedins_name'] = response.data.data.org_name
- that.info['fixmedins_code'] = response.data.data.org_code
- // that.info["doctor_code"] = response.data.data.doctor_code;
- // that.info["department"] = response.data.data.department;
- // that.info["health_card_no"] = response.data.data.health_card_no;
-
- that.info['bed_cost_total'] = response.data.data.bedCostTotal
- that.info['bed_cost_self_total'] =
- response.data.data.bedCostSelfTotal
- that.info['bed_cost_part_self_total'] =
- response.data.data.bedCostPartSelfTotal
-
- that.info['operation_cost_total'] =
- response.data.data.operationCostTotal
- that.info['operation_cost_self_total'] =
- response.data.data.operationCostSelfTotal
- that.info['operation_cost_part_self_total'] =
- response.data.data.operationCostPartSelfTotal
-
- that.info['other_cost_total'] = response.data.data.otherCostTotal
- that.info['other_cost_self_total'] =
- response.data.data.otherCostSelfTotal
- that.info['other_cost_part_self_total'] =
- response.data.data.otherCostPartSelfTotal
-
- that.info['material_cost_total'] =
- response.data.data.materialCostTotal
- that.info['material_cost_self_total'] =
- response.data.data.materialCostSelfTotal
- that.info['material_cost_part_self_total'] =
- response.data.data.materialCostPartSelfTotal
-
- that.info['western_medicine_cost_total'] =
- response.data.data.westernMedicineCostTotal
- that.info['western_medicine_cost_self_total'] =
- response.data.data.westernMedicineCostSelfTotal
- that.info['western_medicine_cost_part_self_total'] =
- response.data.data.westernMedicineCostPartSelfTotal
-
- that.info['chinese_traditional_medicine_cost_total'] =
- response.data.data.chineseTraditionalMedicineCostTotal
- that.info['chinese_traditional_medicine_cost_self_total'] =
- response.data.data.chineseTraditionalMedicineCostSelfTotal
- that.info['chinese_traditional_medicine_cost_part_self_total'] =
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal
-
- that.info['check_cost_total'] = response.data.data.checkCostTotal
- that.info['check_cost_self_total'] =
- response.data.data.checkCostSelfTotal
- that.info['check_cost_part_self_total'] =
- response.data.data.checkCostPartSelfTotal
-
- that.info['laboratory_cost_total'] =
- response.data.data.laboratoryCostTotal
- that.info['laboratory_cost_self_total'] =
- response.data.data.laboratoryCostSelfTotal
- that.info['laboratory_cost_part_self_total'] =
- response.data.data.laboratoryCostPartSelfTotal
-
- that.info['treat_cost_total'] = response.data.data.treatCostTotal
- that.info['treat_cost_self_total'] =
- response.data.data.treatCostSelfTotal
- that.info['treat_cost_part_self_total'] =
- response.data.data.treatCostPartSelfTotal
-
-
-
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- that.info['his'] = response.data.data.his
- that.info['dia_config'] = response.data.data.dia_config
-
-
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- if (response.data.data.order_infos[i].advice_id > 0 && response.data.data.order_infos[i].project_id == 0) {
- response.data.data.order_infos[i].med_chrgitm_type = '09'
- }
- if (response.data.data.order_infos[i].advice_id == 0 && response.data.data.order_infos[i].project_id > 0) {
- if (response.data.data.order_infos[i].project.type == 2) { //项目
- if (response.data.data.order_infos[i].project.project.cost_classify == 2) {
- response.data.data.order_infos[i].med_chrgitm_type = '05'
- } else if (response.data.data.order_infos[i].project.project.cost_classify == 3) {
- response.data.data.order_infos[i].med_chrgitm_type = '04'
- } else {
- response.data.data.order_infos[i].med_chrgitm_type = '14'
- }
- } else if (response.data.data.order_infos[i].project.type == 3) { //耗材
- response.data.data.order_infos[i].med_chrgitm_type = '08'
- }
- }
- }
- console.log(response.data.data.order_infos)
- console.log(that.info)
-
- var list = []
- //获取所有项目类型进行去重
- let med_chrgitm_types = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
- }
- const obj10 = {}
- med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
- obj10[next] ? '' : obj10[next] = true && cur.push(next)
- return cur
- }, []) // 设置cur默认类型为数组,并且初始值为空的数组
- let tempOrderInfo = []
- for (let i = 0; i < med_chrgitm_types.length; i++) {
-
- let obj9 = {
- details: [],
- med_chrgitm_name: that.getType(med_chrgitm_types[i]),
- total:0,
- }
-
- // if(med_chrgitm_types[i] == '09'){
- // obj.sort = 99
- // } else if(med_chrgitm_types[i] == '05'){
- // obj.sort = 98
- // } else if(med_chrgitm_types[i] == '08'){
- // obj.sort = 97
- // }else if(med_chrgitm_types[i] == '03'){
- // obj.sort = 96
- // }
-
- let tempDetails = []
- for (let b = 0; b < response.data.data.order_infos.length; b++) {
- if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
- tempDetails.push(response.data.data.order_infos[b])
- }
- }
- console.log(med_chrgitm_types[i])
- console.log(tempDetails)
- obj9.total = that.getTotal(tempDetails)
- obj9.details = that.set10265NewData(tempDetails)
- list.push(obj9)
- }
- that.info['new_list'] = list
- // list.sort((a,b) => a.sort < b.sort ? 1 : a.sort > b.sort ? -1 : 0)
-
- let obj = {
- type: 1,
- details: [],
- total: 0
- }
- let obj2 = {
- type: 2,
- details: [],
- total: 0
- }
- let obj3 = {
- type: 3,
- details: [],
- total: 0
- }
-
- let obj4 = {
- type: 4,
- details: [],
- total: 0
- }
- let num = 0
- that.info.order_infos.map((item) => {
- if (item.advice_id > 0) {
- obj.details.push(item)
- obj.total += item.pric * item.advice.prescribing_number
- num++
- } else {
- if (item.project.type == 2) {
- obj2.details.push(item)
- obj2.total += item.pric * item.project.count
- num++
- } else {
- obj3.details.push(item)
- obj3.total += item.pric * item.project.count
- num++
- }
- }
- })
-
- // this.info.order_infos.map(item => {
- // obj4.total = item.Total
- // obj4.details.push(item)
- // num++
- //
- // })
- var funds = []
- for(let i = 0; i < response.data.data.funds.length; i++){
- var objs = {}
- objs["number"] = i + 1
- objs["fund_pay"] = response.data.data.funds[i].fund_payamt
- objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
- objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
- for(let b = 0; b < that.fundsArray.length; b++){
- if(response.data.data.funds[i].fund_pay_type == that.fundsArray[b].code){
- objs["name"] =that.fundsArray[b].name
- }
- }
- funds.push(objs)
- }
- that.info['funds'] = funds
- console.log(that.info)
-
- that.info.new_detail_list = []
- that.info.new_detail_list.push(obj)
- that.info.new_detail_list.push(obj2)
- that.info.new_detail_list.push(obj3)
- // that.info.new_detail_list.push(obj4)
-
- that.num = num
-
- if (that.paramsObj.settle_type != 1) {
- that.info.begndate = that.getTimes(that.paramsObj.start_time)
- that.info.enddate = that.getTimes(that.paramsObj.end_time)
- }
-
- that.info.order_infos.map((item) => {
-
- })
-
- }
- })
-
-
-
- }else{
- var that = this
- axios
- .get('http://127.0.0.1:9532/api/settle/query', {
- params: {
- order_id: order_id,
- admin_user_id: this.$store.getters.xt_user.user.id
- }
- })
- .then(function(response) {
- if (response.data.state == 0) {
- this.$message.error(response.data.msg)
- return false
- } else {
- console.log(response.data.data.info)
- that.info = response.data.data.info
- that.p_admin = response.data.data.printor_admin
- that.charge_admin = response.data.data.charge_admin
- that.info['psn_cash_pay'] = response.data.data.psn_cash_pay
- that.info['new_order'] = response.data.data.order
- that.info['p_admin'] = that.p_admin
- that.info['charge_admin'] = that.charge_admin
- that.info['order_number'] = response.data.data.order_number
- that.info['patient'] = response.data.data.patient
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
- that.info['diagnosis'] = response.data.data.diagnosis
- if(that.org_id == 10191){
- that.info['org_code'] = "H36030201006"
- that.info['org_name'] = "萍乡欣瑞怡康血液透析中心"
- }else{
-
- that.info['org_code'] =response.data.data.org_code
- that.info['org_name'] = response.data.data.org_name
- }
-
-
- that.info['doctor_code'] = response.data.data.doctor_code
- that.info['department'] = response.data.data.department
- that.info['health_card_no'] = response.data.data.health_card_no
-
-
- if(response.data.data.zcCostTotal){
- that.info['zc_cost_total'] =
- response.data.data.zcCostTotal
- }else{
- that.info['zc_cost_total'] = 0
- }
-
- if(response.data.data.zcCostSelfTotal){
- that.info['zc_cost_self_total'] =
- response.data.data.zcCostSelfTotal
- }else{
- that.info['zc_cost_self_total'] = 0
- }
-
-
- if(response.data.data.zcCostPartSelfTotal){
- that.info['zc_cost_part_self_total'] =
- response.data.data.zcCostPartSelfTotal
- }else{
- that.info['zc_cost_part_self_total'] = 0
- }
-
-
- that.info['bed_cost_total'] = response.data.data.bedCostTotal
- that.info['bed_cost_self_total'] =
- response.data.data.bedCostSelfTotal
- that.info['bed_cost_part_self_total'] =
- response.data.data.bedCostPartSelfTotal
-
- that.info['operation_cost_total'] =
- response.data.data.operationCostTotal
- that.info['operation_cost_self_total'] =
- response.data.data.operationCostSelfTotal
- that.info['operation_cost_part_self_total'] =
- response.data.data.operationCostPartSelfTotal
-
- that.info['other_cost_total'] = response.data.data.otherCostTotal
- that.info['other_cost_self_total'] =
- response.data.data.otherCostSelfTotal
- that.info['other_cost_part_self_total'] =
- response.data.data.otherCostPartSelfTotal
-
- that.info['material_cost_total'] =
- response.data.data.materialCostTotal
- that.info['material_cost_self_total'] =
- response.data.data.materialCostSelfTotal
- that.info['material_cost_part_self_total'] =
- response.data.data.materialCostPartSelfTotal
-
- that.info['western_medicine_cost_total'] =
- response.data.data.westernMedicineCostTotal
- that.info['western_medicine_cost_self_total'] =
- response.data.data.westernMedicineCostSelfTotal
- that.info['western_medicine_cost_part_self_total'] =
- response.data.data.westernMedicineCostPartSelfTotal
-
- that.info['chinese_traditional_medicine_cost_total'] =
- response.data.data.chineseTraditionalMedicineCostTotal
- that.info['chinese_traditional_medicine_cost_self_total'] =
- response.data.data.chineseTraditionalMedicineCostSelfTotal
- that.info['chinese_traditional_medicine_cost_part_self_total'] =
- response.data.data.chineseTraditionalMedicineCostPartSelfTotal
-
- that.info['check_cost_total'] = response.data.data.checkCostTotal
- that.info['check_cost_self_total'] =
- response.data.data.checkCostSelfTotal
- that.info['check_cost_part_self_total'] =
- response.data.data.checkCostPartSelfTotal
-
- that.info['laboratory_cost_total'] =
- response.data.data.laboratoryCostTotal
- that.info['laboratory_cost_self_total'] =
- response.data.data.laboratoryCostSelfTotal
- that.info['laboratory_cost_part_self_total'] =
- response.data.data.laboratoryCostPartSelfTotal
-
- that.info['treat_cost_total'] = response.data.data.treatCostTotal
- that.info['treat_cost_self_total'] =
- response.data.data.treatCostSelfTotal
- that.info['treat_cost_part_self_total'] =
- response.data.data.treatCostPartSelfTotal
-
- if(response.data.data.zcCostTotal){
- that.info['zc_cost_total'] =
- response.data.data.zcCostTotal
- }else{
- that.info['zc_cost_total'] = 0
- }
- if(response.data.data.zcCostSelfTotal){
- that.info['zc_cost_self_total'] =
- response.data.data.zcCostSelfTotal
- }else{
- that.info['zc_cost_self_total'] = 0
- }
- if(response.data.data.zcCostPartSelfTotal){
- that.info['zc_cost_part_self_total'] =
- response.data.data.zcCostPartSelfTotal
- }else{
- that.info['zc_cost_part_self_total'] = 0
- }
-
- if(response.data.data.huliCostTotal){
- that.info['huli_cost_total'] =
- response.data.data.huliCostTotal
- }else{
- that.info['huli_cost_total'] = 0
- }
- if(response.data.data.huliCostSelfTotal){
- that.info['huli_cost_self_total'] =
- response.data.data.huliCostSelfTotal
- }else{
- that.info['huli_cost_self_total'] = 0
- }
- if(response.data.data.huliCostPartSelfTotal){
- that.info['huli_cost_part_self_total'] =
- response.data.data.huliCostPartSelfTotal
- }else{
- that.info['huli_cost_part_self_total'] = 0
- }
- that.info['date'] = response.data.data.date
- that.info['number'] = response.data.data.number
- that.info['order_infos'] = response.data.data.order_infos
-
- that.info['bedInscpTotal'] =
- response.data.data.bedInscpTotal
- that.info['bedSelfTotal'] =
- response.data.data.bedSelfTotal
-
- that.info['operationInscpTotal'] =
- response.data.data.operationInscpTotal
- that.info['operationSelfTotal'] =
- response.data.data.operationSelfTotal
-
- that.info['checkInscpTotal'] =
- response.data.data.checkInscpTotal
- that.info['checkSelfTotal'] =
- response.data.data.checkSelfTotal
-
- that.info['treatInscpTotal'] =
- response.data.data.treatInscpTotal
- that.info['treatSelfTotal'] =
- response.data.data.treatSelfTotal
-
- that.info['laboratoryInscpTotal'] =
- response.data.data.laboratoryInscpTotal
- that.info['laboratorySelfTotal'] =
- response.data.data.laboratorySelfTotal
-
- that.info['westernMedicineInscpTotal'] =
- response.data.data.westernMedicineInscpTotal
- that.info['westernMedicineSelfTotal'] =
- response.data.data.westernMedicineSelfTotal
-
- that.info['materialInscpTotal'] =
- response.data.data.materialInscpTotal
- that.info['materialSelfTotal'] =
- response.data.data.materialSelfTotal
-
- that.info['chineseTraditionalInscpTotal'] =
- response.data.data.chineseTraditionalInscpTotal
- that.info['chineseTraditionalSelfTotal'] =
- response.data.data.chineseTraditionalSelfTotal
-
- that.info['otherInscpTotal'] =
- response.data.data.otherInscpTotal
- that.info['otherSelfTotal'] =
- response.data.data.otherSelfTotal
- that.info['dia_config'] = response.data.data.dia_config
-
-
-
- //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
- var list = []
- //获取所有项目类型进行去重
- let med_chrgitm_types = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- med_chrgitm_types.push(response.data.data.order_infos[i].med_chrgitm_type)
- }
- const obj10 = {}
- med_chrgitm_types = med_chrgitm_types.reduce((cur, next) => {
- obj10[next] ? '' : obj10[next] = true && cur.push(next)
- return cur
- }, []) // 设置cur默认类型为数组,并且初始值为空的数组
- for (let i = 0; i < med_chrgitm_types.length; i++) {
-
- let obj9 = {
- details: [],
- med_chrgitm_name: that.getType(med_chrgitm_types[i]),
- total:0,
- }
-
- let tempDetails = []
- for (let b = 0; b < response.data.data.order_infos.length; b++) {
- if (med_chrgitm_types[i] == response.data.data.order_infos[b].med_chrgitm_type) {
- tempDetails.push(response.data.data.order_infos[b])
- }
- }
- obj9.total = that.getTotal(tempDetails)
- obj9.details = that.set10265NewData(tempDetails)
- list.push(obj9)
- }
- that.info['new_list'] = list
- //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
-
-
- let obj = {
- type: 1,
- details: [],
- total: 0
- }
- let obj2 = {
- type: 2,
- details: [],
- total: 0
- }
- let obj3 = {
- type: 3,
- details: [],
- total: 0
- }
-
- let obj4 = {
- type: 4,
- details: [],
- total: 0
- }
- let num = 0
- that.info.order_infos.map((item) => {
- if (item.advice_id > 0) {
- obj.details.push(item)
- obj.total += item.pric * item.advice.prescribing_number
- num++
- } else {
- if (item.project.type == 2) {
- obj2.details.push(item)
- obj2.total += item.pric * item.project.count
- num++
- } else {
- obj3.details.push(item)
- obj3.total += item.pric * item.project.count
- num++
- }
- }
- })
-
- // this.info.order_infos.map(item => {
- // obj4.total = item.Total
- // obj4.details.push(item)
- // num++
- //
- // })
-
- that.info.new_detail_list = []
- that.info.new_detail_list.push(obj)
- that.info.new_detail_list.push(obj2)
- that.info.new_detail_list.push(obj3)
- // that.info.new_detail_list.push(obj4)
-
- that.num = num
-
- if (that.paramsObj.settle_type != 1) {
- that.info.begndate = that.getTimes(that.paramsObj.start_time)
- that.info.enddate = that.getTimes(that.paramsObj.end_time)
- }
-
- let list = []
- for (let i = 0; i < response.data.data.order_infos.length; i++) {
- let order = response.data.data.order_infos[i]
- let obj = {
- name: '',
- spec: '',
- cnt: '',
- det_item_fee_sumamt: ''
- }
-
- if (order.advice_id > 0 && order.project_id == 0) {
- obj.name = order.advice.advice_name
- let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
- obj.spec = spec
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- list.push(obj)
-
- } else if (order.advice_id == 0 && order.project_id > 0) {
- if (order.project.type == 2) {
- obj.name = order.project.project.project_name
- obj.spec = ''
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- list.push(obj)
-
- } else {
- obj.name = order.project.good_info.good_name
- obj.spec = order.project.good_info.specification_name
- obj.cnt = order.cnt
- obj.det_item_fee_sumamt = order.det_item_fee_sumamt
- list.push(obj)
- }
- }
- }
- let len = list.length / 2
- let L_list = []
- let R_list = []
- len = Math.trunc(len)
- for (let i = 0; i < len; i++) {
- L_list.push(list[i])
- }
- for (let i = len; i < list.length; i++) {
- R_list.push(list[i])
- }
- that.info['L_list'] = L_list
- that.info['R_list'] = R_list
- var funds = []
- for(let i = 0; i < response.data.data.funds.length; i++){
- var objs = {}
- objs["number"] = i + 1
- objs["fund_pay"] = response.data.data.funds[i].fund_payamt
- objs["limit_pay"] = response.data.data.funds[i].inscp_scp_amt
- objs["insp_pay"] = response.data.data.funds[i].inscp_scp_amt
- for(let b = 0; b < that.fundsArray.length; b++){
- if(response.data.data.funds[i].fund_pay_type == that.fundsArray[b].code){
- objs["name"] =that.fundsArray[b].name
- }
- }
- funds.push(objs)
- }
- that.info['funds'] = funds
-
-
-
- }
- })
- .catch(function(error) {
- })
- }
-
- }
- }
-
- }
- },
-
- created() {
- this.org_id = this.$store.getters.xt_user.org_id
- this.getInfo(this.paramsObj.order_id, this.paramsObj)
- },
- watch: {
- paramsObj: {
- //深度监听,可监听到对象、数组的变化
- handler(val, oldVal) {
- this.paramsObj = val
- this.org_id = this.$store.getters.xt_user.org_id
- this.getInfo(this.paramsObj.order_id, this.paramsObj)
- },
- deep: true,
- immediate: true
- }
- }
- }
- </script>
-
- <style>
- .dialysis-print-order {
- width: 960px;
- margin: 0 auto;
- }
-
- .dialysis-print-order .order-yy-name {
- margin: auto;
- text-align: center;
- font-size: 20px;
- letter-spacing: 5px;
- }
-
- .dialysis-print-order .order-title {
- margin: auto;
- font-weight: 600;
- text-align: center;
- font-size: 22px;
- padding: 10px;
- }
-
- .dialysis-print-order .table-box {
- width: 100%;
- line-height: 23px;
- font-size: 14px;
- }
-
- .dialysis-print-order .print-table {
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- line-height: 40px;
- font-size: 14px;
- border-color: #000;
- }
-
- .dialysis-print-order .print-table-no {
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- font-size: 14px;
- }
-
- .dialysis-print-order .under-line {
- border-bottom: 1px solid #999;
- width: 95%;
- text-align: center;
- margin-left: 2px;
- }
-
- .dialysis-print-order .title-box {
- text-align: center;
- font-size: 16px;
- }
-
- .dialysis-print-order .radio-lebel-box {
- font-weight: 400;
- cursor: pointer;
- }
-
- .dialysis-print-order .radio-no {
- opacity: 0;
- outline: none;
- position: absolute;
- margin: 0;
- width: 0;
- height: 0;
- z-index: -1;
- }
-
- .dialysis-print-order .radio-inner {
- white-space: nowrap;
- cursor: pointer;
- outline: none;
- display: inline-block;
- line-height: 1;
- position: relative;
- vertical-align: middle;
- }
-
- .dialysis-print-order .radio-fang {
- display: inline-block;
- position: relative;
- border: 1px solid #000;
- box-sizing: border-box;
- width: 14px;
- height: 14px;
- background-color: #fff;
- z-index: 1;
- transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
- background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
- }
-
- .dialysis-print-order .is-checked-radio::after {
- content: "√";
- font-size: 15px;
- }
-
- .dialysis-print-order .print-table-no tr td {
- padding: 8px 5px;
- line-height: 25px;
- }
-
- .dialysis-print-order .print-table tr td {
- padding: 1px 1px;
- /*line-height: 25px;*/
- }
-
- .es-img {
- height: 30px;
- }
-
- .advice-name {
- text-align: left;
- }
-
- .advice-children {
- display: flex;
- }
-
- .title-box-pro {
- border: 0 #fff;
- line-height: 25px;
- height: 25px;
- text-align: left;
- padding-left: 10px !important;
- }
-
- .title-box-pro-tr {
- border: 0 #fff;
- }
-
- .text-align-left {
- text-align: left !important;
- padding-left: 10px !important;
- font-size: 14px !important;
- line-height: 25px;
- }
-
- .print-table-tr-new td {
- line-height: 20px !important;
- }
-
- .border-top-solid {
- border: solid 1px #000;
- }
-
- .print-template-two tr {
- line-height: 30px;
- }
-
- .table-box1 {
- border: 1px solid #000;
- width: 100%;
- line-height: 30px;
- font-size: 14px;
- border-collapse: collapse;
- }
-
- .table-box1 tr {
- border-bottom: 1px solid #000;
- }
- </style>
-
- <style lang="scss">
- .newContainer {
-
- .dialysisPage::-webkit-scrollbar {
- height: 15px;
- }
-
- .el-date-editor {
-
- .el-input__inner {
- padding-right: 0px;
- }
-
- }
- .el-table td,
- .el-table th {
- text-align: center;
- }
-
- }
- .newContainer::-webkit-scrollbar {
- height: 15px !important;
- }
- </style>
|