12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553 |
- <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
- "
- >
- <printTwo :info="info" v-if="org_id == 9990"></printTwo>
- <printThree
- :info="info"
- :paramsObj="paramsObj"
- :balanceAccounts="balanceAccounts"
- v-if="org_id == 10138 || org_id == 10278 "
- ></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>
- <!-- 阜阳经沃 -->
- <printtwelve :info="info" v-if="org_id == 10480 || org_id == 0"></printtwelve>
- <printOne :info="info" v-if=" org_id != 9990 &&
- org_id != 10138 &&
- org_id != 9504 &&
- org_id != 10028 &&
- org_id != 0 &&
- org_id != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 10480 && 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 != 10278 && org_id != 10387 && org_id != 10191 &&org_id != 10210 &&org_id != 10485 &&org_id != 0 &&org_id != 10480 && 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'
- export default {
- name: 'dialysisPrintOrder',
- components: {
- Print10191,
- printSeven,
- BreadCrumb,
- printOne,
- privateChargePrint,
- printTwo,
- printThree,
- printFour,
- testVue,
- printFive,
- printTen,
- printEleven,
- printtwelve
- },
- props: {
- paramsObj: Object
- },
- data() {
- return {
- 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
- ) {
- 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 || 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;}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 {
- 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
- })
- }
- }
-
- // 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) {
-
- 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
- ) {
- getPrivateExpenses(params).then((response) => {
- if (response.data.state == 0) {
- // this.$message.error(response.data.msg)
-
- return false
- } else {
- this.balanceAccounts = response.data.data
- 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['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
-
- 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)
-
- 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++
- //
- // })
-
- 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(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 {
- 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['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
- 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
-
- 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['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
-
-
- //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
-
- }
- })
- .catch(function(error) {
- })
- }
- }
-
- }
- },
-
- created() {
- console.log(this.paramsObj)
- this.getInfo(this.paramsObj.order_id, this.paramsObj)
- this.org_id = this.$store.getters.xt_user.org_id
- console.log('this.org_id', this.org_id)
- },
- watch: {
- paramsObj: {
- //深度监听,可监听到对象、数组的变化
- handler(val, oldVal) {
- this.paramsObj = val
- console.log(this.paramsObj)
-
- 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>
|