1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788 |
- <template>
- <div class="app-container">
- <el-dialog
- title="查看传染病检查结果"
- :visible.sync="dialogFormVisible"
- width="1000px"
- id="user-inspection-form"
- >
- <el-form :model="form" ref="form" label-position="top">
- <el-row>
- <el-col :span="1"> </el-col>
-
- <template v-for="(item, index) in form.formItem">
- <el-col :span="7" >
- <el-form-item
- :label="item.item_name"
- v-if="item.range_type == 1"
- :key="item.item_id"
- :prop="'formItem.' + index + '.value'"
- >
- <el-input
- placeholder="请填入"
- v-model="item.value"
- style="width: 95%"
- type="number"
- disabled
- >
- <template slot="append">{{ item.unit }}</template>
- </el-input>
- </el-form-item>
- <el-form-item
- :label="item.item_name"
- v-else
- :key="item.item_id"
- :prop="'formItem.' + index + '.value'"
- >
- <!-- :key="item.item_id" -->
- <el-select
- v-model="item.value"
- placeholder="请选择"
- style="width: 95%"
- disabled
- >
- <el-option
- v-for="(optionItem, oidex) in item.select_options"
- :key="oidex"
- :label="optionItem"
- :value="optionItem"
- >
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="1" :key="'form-col' + index"> </el-col>
- </template>
- </el-row>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button @click="dialogFormVisible = false">关闭</el-button>
- </div>
- </el-dialog>
-
- <el-form
- ref="form"
- :rules="rules"
- :model="form"
- label-width="134px"
- class="clearfix"
- id="patient-info"
- >
- <div style="float: right; z-index: 8; position: absolute; right: 16px">
- <el-button
- size="small"
- type="primary"
- @click="printCard()"
- style="margin: 0 6px 6px 0; z-index: 1"
- >打印签到卡</el-button
- >
- <el-button
- size="small"
- :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false"
- type="primary"
- @click="$router.push('/patients/patient/' + patientID + '/edit')"
- style="margin: 0 0 6px 0; z-index: 1"
- >修改</el-button
- >
- <el-button
- size="small"
- type="primary"
- @click="printThisInfo()"
- style="margin: 0 6px 6px 0; z-index: 1"
- >打印</el-button
- >
- </div>
- <div class="dataTitle">一般资料</div>
- <el-row>
- <el-col :span="20">
- <el-row :gutter="10">
- <el-col :span="8">
- <el-form-item label="姓名 : " class="is-required" prop="name">
- <el-input v-model="form.name" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="height: 59px">
- <el-form-item label="性别 : " class="is-required" prop="gender">
- <el-radio-group v-model="form.gender">
- <el-radio
- v-for="item in sexOptions"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- disabled
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item
- label="身份证号 : "
- class="is-required"
- >
- <el-input v-model="form.idCardNo" disabled @blur="checkIdCardNo"></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8" style="height: 59px">
- <el-form-item label="年龄 : " class="is-required" prop="age">
- <el-input v-model="form.age" disabled></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="透析号 : " class="is-required">
- <el-input
- disabled
- v-model="form.dialysisNo"
- placeholder="填写或自动生成"
- style="width: 110px; float: left; margin-right: 1%"
- ></el-input>
- <el-button disabled type="primary">自动生成</el-button>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item
- label="出生日期 : "
- class="is-required"
- prop="birth"
- >
- <el-date-picker
- v-model="form.birth"
- type="date"
- disabled
- placeholder="选择日期"
- :suffix-icon="'el-icon-menu'"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" v-if="org_id!=0 && org_id!=10138 && org_id!=10278">
- <el-form-item
- label="首次肾脏治疗时间 : "
- label-width="150px"
- class="is-required"
- prop="birth"
- >
- <el-date-picker
- v-model="form.firstDialysisDate"
- type="date"
- disabled
- placeholder="选择日期"
- :suffix-icon="'el-icon-menu'"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="6" :style="isEdit ? 'width:380px' : ''" v-if="org_id==0||org_id == 10138 || org_id == 10278">
- <el-form-item
- label="首次进入本院时间:"
- prop="firstDialysisDate"
- label-width="150px"
- >
- <el-date-picker
- v-model="form.firstDialysisDate"
- type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="本人电话: " class="is-required">
- <el-input
- v-model="form.phone"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="家属姓名: ">
- <el-input
- v-model="form.contact_name"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="家属电话: ">
- <el-input
- v-model="form.homeTelephone"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <el-col :span="6">
- <el-form-item
- label="本院首次透析 : "
- prop="is_hospital_first_dialysis"
- >
- <el-radio-group v-model="form.is_hospital_first_dialysis">
- <el-radio
- v-for="item in isHospitalFirstDialysisOptions"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- disabled
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item
- label="系统前透析次数 : "
- prop="first_dialysis_hospital"
- >
- <el-input v-model="form.user_sys_before_count" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="首次诊治日期 : ">
- <el-date-picker
- v-model="form.first_treatment_date"
- type="date"
- disabled
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="上家透析医院 : " prop="first_dialysis_hospital">
- <el-input
- v-model="form.first_dialysis_hospital"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="透析之前情况 : " prop="predialysis_condition">
- <el-checkbox-group v-model="form.predialysis_condition">
- <el-checkbox
- v-for="item in predialysisConditionOptions"
- :label="item.label"
- :key="item.value"
- :value="item.label"
- disabled
- >{{ item.label }}</el-checkbox
- >
- </el-checkbox-group>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="家庭住址 : " prop="homeAddress">
- <el-input v-model="form.homeAddress" disabled style="width: 350px;"></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" :style="isEdit ? 'width:280px' : ''">
- <el-form-item
- label="打印日期:"
- label-width="150px"
- >
- <el-date-picker
- disabled
- v-model="form.print_date"
- type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
- <el-input v-model="form.admissionNumber" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="工作单位 : " prop="work">
- <el-input v-model="form.work" disabled></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="病历号 : " prop="record_number">
- <el-input
- style="width: 200px;"
- v-model="form.record_number"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="主管护士 : " prop="record_number">
- <el-select v-model="form.nurse" style="width:200px" disabled>
- <el-option
- v-for="(item,index) in adminUserOptions"
- :key="index"
- :label="item.name"
- :value="item.id"
-
- />
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="6">
- <el-form-item
- label="本院前透析频率 : "
- prop="pre_hospital_dialysis_frequency"
- >
- <el-input
- v-model="form.pre_hospital_dialysis_frequency"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item
- label="本院前透析次数 : "
- prop="pre_hospital_dialysis_times"
- >
- <el-input
- v-model="form.pre_hospital_dialysis_times"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item
- label="本院首次透析 : "
- prop="hospital_first_dialysis_date"
- >
- <el-date-picker
- v-model="form.hospital_first_dialysis_date"
- type="date"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- disabled
- ></el-date-picker>
- </el-form-item>
- </el-col>
-
- <el-col :span="8" style="height: 59px">
- <el-form-item
- label="患者来源 : "
- class="is-required"
- prop="source"
- >
- <el-radio-group v-model="form.source">
- <el-radio
- v-for="item in sourceOptions"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- disabled
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
-
- <!-- <el-col :span="24" :style="isEdit ? 'width:600px' : ''">
- <el-form-item
- label="患者类型 : "
- class="is-required"
- prop="source"
- >
- <el-radio-group v-model="form.patient_type">
- <el-radio
- v-for="item in patientType"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col> -->
-
-
- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
- <el-form-item
- label="患者去向 : "
- >
- <el-radio-group v-model="form.patient_source">
- <el-radio
- disabled
- v-for="item in patientSourceList"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
-
-
- <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
- <el-form-item
- label="流转地: "
- >
- <el-select v-model="form.patient_address" placeholder="请选择">
- <el-option
- v-for="item in liuAddresslist"
- :key="item.id"
- :label="item.name"
- :value="item.name">
- </el-option>
- </el-select>
- </el-form-item>
- </el-col>
- -->
-
- <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
- <el-form-item
- label="流转开始时间 : "
- >
- <el-date-picker
- size="small"
- v-model="form.patient_start_time"
- prefix-icon="el-icon-date"
- :editable="false"
- style="width: 150px;"
- type="date"
- placeholder="选择日期时间"
- align="right"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- @change="startTimeChange"
- ></el-date-picker>
- </el-form-item>
- </el-col> -->
-
- <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
- <el-form-item
- label="流转结束时间 : "
- >
- <el-date-picker
- size="small"
- v-model="form.patient_end_time"
- prefix-icon="el-icon-date"
- :editable="false"
- style="width: 150px;"
- type="date"
- placeholder="选择日期时间"
- align="right"
- format="yyyy-MM-dd"
- value-format="yyyy-MM-dd"
- @change="startTimeChange"
- ></el-date-picker>
- </el-form-item>
- </el-col> -->
-
- <!-- <el-col :span="8" style="margin-bottom: 20px;">
- <el-form-item
- label="备注 : "
- prop="sch_remark">
- <el-input
- disabled
- type="textarea"
- :rows="3"
- v-model="form.sch_remark"
- resize="none"
- placeholder
- ></el-input>
- </el-form-item>
- </el-col> -->
-
- <el-col :span="8" style="height: 59px">
- <el-form-item
- label="治疗状态(转归) : "
- class="is-required"
- prop="lapseto"
- >
- <el-radio-group v-model="form.lapseto">
- <el-radio
- v-for="item in lapsetoOptions"
- :key="item.value"
- :label="item.value"
- :value="item.value"
- disabled
- >{{ item.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="传染病 : " required prop="is_infectious">
- <el-radio-group v-model="form.is_infectious" disabled>
- <el-radio :label="1">阴性</el-radio>
- <el-radio :label="2">阳性</el-radio>
- </el-radio-group>
- <el-checkbox-group
- v-model="form.contagions"
- v-if="form.is_infectious == '2'"
- disabled
- >
- <el-checkbox
- v-for="item in contagionList"
- v-if="item.type == 2"
- :label="item.id"
- :key="item.id"
- name="contagions"
- :value="item.id"
- >{{ item.name }}
- </el-checkbox>
- </el-checkbox-group>
- </el-form-item>
-
- <el-col :span="24">
- <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
- <el-input v-model="form.infectious_remark"></el-input>
- </el-form-item>
- </el-col>
-
- <el-form-item label="疑难内瘘:">
- <el-radio-group v-model="form.troble_shoot" disabled>
- <el-radio :label="1">是</el-radio>
- <el-radio :label="2">否</el-radio>m
- </el-radio-group>
- </el-form-item>
-
- <el-form-item label="人员编码: ">
- <el-input v-model="form.zb_patient_id"></el-input>
- </el-form-item>
- </el-col>
-
- <!--<el-col :span="16" >-->
- <!--<el-form-item label="检查结果日期 : " >-->
- <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
- <!--format="yyyy-MM-dd"-->
- <!--style="width: 200px;"-->
- <!--value-format="yyyy-MM-dd"></el-date-picker>-->
- <!--<!–<el-button type="primary" @click="recordCheck()">录入检验检查</el-button>–>-->
-
- <!--</el-form-item>-->
-
- <!--</el-col>-->
-
- <el-col :span="16">
- <el-form-item label="检查结果日期 : ">
- <!--<el-date-picker v-model="form.record_date" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'"-->
- <!--format="yyyy-MM-dd"-->
- <!--style="width: 200px;"-->
- <!--disabled-->
- <!--value-format="yyyy-MM-dd" v-if="isEdit"></el-date-picker>-->
-
- <el-date-picker
- v-model="form.record_date"
- type="date"
- placeholder="选择日期"
- :suffix-icon="'el-icon-menu'"
- format="yyyy-MM-dd"
- disabled
- style="width: 200px"
- value-format="yyyy-MM-dd"
- ></el-date-picker>
- <el-button type="primary" @click="showInspectDialog()"
- >查看检验检查</el-button
- >
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="传染病周期提醒: ">
- <el-radio-group
- v-model="form.remind_cycle"
- @change="changeCycle()"
- disabled
- >
- <el-radio :label="1">一月一次</el-radio>
- <el-radio :label="2">两月一次</el-radio>
- <el-radio :label="3">三月一次</el-radio>
- <el-radio :label="4">半年一次</el-radio>
- <el-radio :label="5">一年一次</el-radio>
- </el-radio-group>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="诊断 : " prop="diagnose">
- <!-- <textarea v-model="form.diagnose" class="textarea" disabled></textarea> -->
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.diagnose"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="24">
- <el-form-item label="诊疗计划 : " prop="diagnose">
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.treatment_plan"
- resize="none"
- placeholder
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="民族 : " prop="nation">
- <el-input
- v-model="form.nation"
- maxlength="30"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="籍贯 : " prop="native_place">
- <el-input
- v-model="form.native_place"
- maxlength="30"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
-
-
- <div v-show="!generic_info_fold">
- <el-col :span="8">
- <el-form-item label="别名 : " prop="alias">
- <el-input v-model="form.alias" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="身高(cm) : " prop="height">
- <el-input
- maxlength="5"
- v-model="form.height"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="婚姻状况 : " prop="maritalStatus">
- <el-select
- v-model="form.maritalStatus"
- placeholder="请选择婚姻状况"
- disabled
- >
- <el-option
- v-for="item in maritalOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="子女情况(个) : " prop="children">
- <el-input
- maxlength="5"
- v-model="form.children"
- disabled
- ></el-input>
- </el-form-item>
- <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
- </el-form-item> -->
- </el-col>
- <!-- <el-col :span="8">
- <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
- <el-input v-model="form.admissionNumber" disabled></el-input>
- </el-form-item>
- </el-col> -->
- <el-col :span="8">
- <el-form-item label="医保类型 : " prop="reimbursementWayID">
- <el-select v-model="form.reimbursementWayID" disabled>
- <el-option
- v-for="item in wayOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="医保号 : " prop="healthCareNo">
- <el-input v-model="form.healthCareNo" disabled></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="教育程度 : " prop="educationOptions">
- <el-select v-model="form.education" disabled>
- <el-option
- v-for="item in educationOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="固定电话 : ">
- <el-input
- v-model="form.tell_phone"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="费别 : ">
- <el-select v-model="form.expense_kind" disabled>
- <el-option
- v-for="item in expenseOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="透析龄(月): ">
- <el-input v-model="form.dialysis_age" disabled></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="亲友电话: " prop="relative_phone">
- <el-input
- v-model="form.relative_phone"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="亲友关系: " prop="relative_relations">
- <el-input
- v-model="form.relative_relations"
- maxlength="20"
- disabled
- ></el-input>
- </el-form-item>
- </el-col>
- <el-col :span="8">
- <el-form-item label="职业 : " prop="profession">
- <el-select v-model="form.profession" disabled>
- <el-option
- v-for="item in professionOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="单位地址 : " prop="unit_address">
- <el-input v-model="form.unit_address" disabled></el-input>
- </el-form-item>
- </el-col>
- </div>
- <el-col :span="8">
- <el-form-item>
- <el-button
- type="text"
- @click="generic_info_fold = !generic_info_fold"
- >{{ generic_info_fold ? "更多资料" : "收起"
- }}<i class="el-icon--right" :class="generic_fold_icon"></i
- ></el-button>
- </el-form-item>
- </el-col>
- </el-row>
- </el-col>
- <el-col :span="4" align="center">
- <img
- width="146px"
- height="146px"
- v-if="form.avatar"
- :src="form.avatar"
- class="avatar"
- />
- <el-form-item prop="avatar">
- <el-input
- v-model="form.avatar"
- type="hidden"
- placeholder=""
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <div class="dataTitle">治疗信息</div>
- <div style="display: flex">
- <div style="flex: 1 1 9%;">
- <el-row :gutter="24">
- <el-col :span="24">
- <el-form-item label="主诉 : " prop="patient_complains">
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.patient_complains"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="24">
- <el-col :span="24">
- <el-form-item label="既往史 : " prop="past_history">
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.past_history"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="24">
- <el-col :span="24">
- <el-form-item label="过敏史 : " prop="past_history">
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.allergic_history"
- resize="none"
- placeholder=""
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="24">
- <el-col :span="24">
- <el-form-item label="体格检查">
- <el-input
- v-model="form.temperature"
- style="width: 200px"
- disabled
- >
- <template slot="prepend">体温:</template>
- <template slot="append">℃</template>
- </el-input>
- <el-input v-model="form.pulse" style="width: 220px" disabled>
- <template slot="prepend">脉搏: </template>
- <template slot="append">次/分</template>
- </el-input>
- <el-input
- v-model="form.respiratory"
- style="width: 220px"
- disabled
- >
- <template slot="prepend">呼吸: </template>
- <template slot="append">次/分</template>
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row :gutter="24">
- <el-col>
- <el-form-item>
- <el-input v-model="form.sbp" style="width: 240px" disabled>
- <template slot="prepend">收缩压:</template>
- <template slot="append">mmHg</template>
- </el-input>
- <el-input v-model="form.dbp" style="width: 240px" disabled>
- <template slot="prepend">舒张压:</template>
- <template slot="append">mmHg</template>
- </el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </div>
-
- <div style="flex: 1;" class="now_his">
- <el-row :gutter="24" style="height:100%;">
- <el-col :span="24" style="height:100%;">
- <el-form-item label="现病史 : " prop="present_history" style="height:100%;">
- <el-input
- style="height:100%;"
- type="textarea"
- :rows="3"
- v-model="form.present_history"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
- </div>
- </div>
- <el-row :gutter="24">
- <el-col :span="24">
- <el-form-item label="" prop="remark">
- <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.remark"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
-
- <el-col :span="8">
- <el-form-item label="" prop="sch_remark">
- <!-- <textarea v-model="form.remark" class="textarea" disabled></textarea> -->
- <el-input
- type="textarea"
- :rows="3"
- v-model="form.sch_remark"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
-
- <!-- <el-col :span="24">
- <el-form-item label="慢性病 : " prop="diseases">
- <el-checkbox-group v-model="form.diseases">
- <el-checkbox
- v-for="item in checkDisease"
- :label="item.id"
- :key="item.id"
- :value="item.id"
- disabled
- >{{ item.name }}</el-checkbox
- >
- </el-checkbox-group>
- </el-form-item>
- </el-col> -->
- </el-row>
-
- <!-- <el-col :span="24">
- <el-form-item>
- <el-button type="text" @click="treat_info_fold = !treat_info_fold"
- >{{ treat_info_fold ? "更多治疗信息" : "收起"
- }}<i class="el-icon--right" :class="treat_fold_icon"></i
- ></el-button>
- </el-form-item>
- </el-col> -->
-
- <el-row>
- <el-col :span="24" style="height:100%;">
- <el-form-item label="家族史 : " prop="famality_record" style="height:100%;">
- <el-input
- style="height:100%;"
- type="textarea"
- :rows="3"
- v-model="form.famality_record"
- resize="none"
- placeholder=""
- readonly
- ></el-input>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col :span="24" style="height:100%;">
- <el-form-item label="登记人员 : " style="height:100%;">
- <span>{{ form.registrars }} </span>
- </el-form-item>
- </el-col>
- </el-row>
-
- <el-row>
- <el-col :span="6">
- <el-form-item label="医生 : ">
- <el-select v-model="form.doctor" disabled>
- <el-option
- v-for="item in adminUserOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id"
- />
- </el-select>
- </el-form-item>
- </el-col>
- </el-row>
-
- </el-form>
- <!-- 打印预览 style="display: none"-->
- <div style="display: none">
- <div id="print-info-box" v-if="org_id !=10206">
- <div class="print_main_content" style="margin-top: 70px;">
- <div class="order_title" v-if="org_id!=10210">{{ orgname }} 血液透析门诊病历</div>
- <div class="order_title" v-if="org_id==10210">{{ orgname }} 血液透析住院病历</div>
- <div >
- <table style="border-collapse: collapse;">
- <!-- 用 thead 规定好宽度 -->
- <!-- <thead>
- <tr v-show="false">
- <td width="7%"></td>
- <td width="10%"></td>
- <td width="5%"></td>
- <td width="10%"></td>
- <td width="5%"></td>
- <td width="10%"></td>
- <td width="5%"></td>
- <td width="30%"></td>
- </tr>
- </thead> -->
- <tbody>
- <tr>
- <!-- -->
- <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 姓名
- <!-- <div class="td_proj_title">姓名</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.name }}
- <!-- <div class="td_proj_content">{{ patientPrint.name }}</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- 性别
- <!-- <div class="td_proj_title">性别</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.gender }}
- <!-- <div class="td_proj_content">{{ patientPrint.gender }}</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 年龄
- <!-- <div class="td_proj_title">年龄</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.age }}岁
- <!-- <div class="td_proj_content">{{ patientPrint.age }}岁</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 籍贯
- <!-- <div class="td_proj_title">籍贯</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.native_place }}
- <!-- <div class="td_proj_content td_align_left">
- {{ patientPrint.native_place }}
- </div> -->
- </td>
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 职业
- <!-- <div class="td_proj_title">职业</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.profession }}
- <!-- <div class="td_proj_content">
- {{ patientPrint.profession }}
- </div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 婚姻
- <!-- <div class="td_proj_title">婚姻</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.marital_status }}
- <!-- <div class="td_proj_content">
- {{ patientPrint.marital_status }}
- </div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 透析号
- <!-- <div class="td_proj_title">透析号</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.dialysis_no }}
- <!-- <div class="td_proj_content">
- {{ patientPrint.dialysis_no }}
- </div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 身份证号
- <!-- <div class="td_proj_title">身份证号</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.id_card_no }}
- <!-- <div class="td_proj_content td_align_left">
- {{ patientPrint.id_card_no }}
- </div> -->
- </td>
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 民族
- <!-- <div class="td_proj_title">民族</div> valign="top" -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.nation }}
- <!-- <div class="td_proj_content">{{ patientPrint.nation }}</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 电话
- <!-- <div class="td_proj_title">电话</div> -->
- </td>
- <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.phone }}
- <!-- <div class="td_proj_content td_align_left">
- {{ patientPrint.phone }}
- </div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 家属电话
- <!-- <div class="td_proj_title">家属电话</div> -->
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.home_telephone }}
- <!-- <div class="td_proj_content td_align_left">
- {{ patientPrint.home_telephone }}
- </div> -->
- </td>
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">地址</td>
- <td colspan="7" style="text-align: left; padding:0px 5px;font-size: 17px;">
- <!-- class="td_proj_content td_align_left" -->
- <!-- <div > -->
- {{ patientPrint.home_address }}
- <!-- </div> -->
- </td>
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px; font-weight: 500;">
- 主诉
- <!-- <div class="td_proj_title">主诉</div> -->
- </td>
- <!-- class="td_proj_content td_align_left" -->
- <td colspan="7" style="text-align: left; padding:0px 5px ;font-size: 17px;">
- {{ patientPrint.patient_complains }}
- <!-- <div style="padding: 0px 0px;"
- v-html="patientPrint.patient_complains"
- ></div> -->
- </td>
- </tr>
- <tr >
- <td>
- <div class="td_proj_title">现<br />病<br />史</div>
- </td>
- <td colspan="7">
- <!-- <div class="td_proj_content td_align_left">{{patientPrint.present_history}}</div> -->
-
-
- <div
- class="td_proj_content td_align_left"
- v-html="patientPrint.present_history"
- ></div>
- </td>
- </tr>
-
- <tr>
- <td>
- <div class="td_proj_title">既<br />往<br />史</div>
- </td>
- <td colspan="7">
-
- <div class="td_proj_content td_align_left">
- {{ patientPrint.past_history }}
- </div>
- <!-- v-html="patientPrint.past_history" -->
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">过敏史</div>
- <!-- <div class="td_proj_title" v-if="org_id !=10278 && org_id!=10138 && org_id!=0">传<br />染<br />病</div>
- <div class="td_proj_title" v-if="org_id==10138 || org_id == 10278 || org_id == 0">过<br />敏<br />史</div> -->
- </td>
- <td colspan="7">
- <div class="td_proj_content td_align_left">
- {{ patientPrint.allergic_history }}
- </div>
- </td>
- </tr>
-
- <tr>
- <td colspan="8"><div class="td_proj_title">体格检查</div></td>
- </tr>
- <tr>
- <td colspan="8">
- <div class="td_proj_title">
- T
- {{
- patientPrint.temperature
- }}℃ P
- {{
- patientPrint.pulse
- }}次/分 R
- {{
- patientPrint.respiratory
- }}次/分 BP
- {{ patientPrint.sbp }}/{{ patientPrint.dbp }} mmHg
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="8">
- <div
- class="td_proj_content td_align_left"
-
- > {{ patientPrint.remark }}</div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">诊<br />断</div>
- </td>
- <td colspan="7">
- <div
- class="td_proj_content td_align_left"
- >
- {{ patientPrint.diagnose }}
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">诊<br />疗<br />计<br />划</div>
- </td>
- <td colspan="7">
- <div
- class="td_proj_content td_align_left"
-
- >
- {{ patientPrint.treatment_plan }}
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="print_footnote_panel">
- <div class="proj">
- <span class="proj_title">日期:</span>
-
- <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span>
- <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span>
-
- </div>
- <div class="proj">
- <span class="proj_title">医生签名:
- <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
- <span v-else>
- <img style="height:30px;margin-top:20px" :src="getDcotorName(patientPrint.doctor)" alt="" srcset="">
- </span>
- </span>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div id="print-info-box" v-else>
- <div class="print_main_content" style="font-family:SimSun;">
- <div style="font-size: 35px;font-weight: 600;text-align: center;margin-top: 30px;">
- {{ orgname }}
- </div>
- <div style="font-size: 35px;font-weight: 600;margin-bottom: 10px;text-align: center;">血液净化治疗患者首次门诊病历</div>
- <div >
- <table border="1" style="border-collapse: collapse;text-align: center;">
- <tbody>
- <tr>
- <td style="width:8%;padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 姓名
- </td>
- <td style="padding: 5px 0px;font-size: 22px;width:15%;">
- {{ patientPrint.name }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;width:7%;">
- 性别
- </td>
- <td style="padding: 5px 0px;font-size: 22px;width:5%;">
- {{ patientPrint.gender }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;width:8%;">
- 年龄
- </td>
- <td style="padding: 5px 0px;font-size: 22px;width:10%;">
- <!-- {{ patientPrint.age }} -->
- {{ calculateAge(patientPrint.id_card_no,patientPrint.created_time) }}
- 岁
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;width:12%;">
- 医保类型
- </td>
- <td style="padding: 5px 0px;font-size: 22px;width: 15%;">
- {{patientPrint.reimbursement_way_id }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;width:10%;">
- 透析号
- </td>
- <td style="padding: 5px 0px;font-size: 22px;width:10%;">
- {{patientPrint.dialysis_no}}
- </td>
- </tr>
- <tr>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 电话
- </td>
- <td style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.phone }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 民族
- </td>
- <td colspan="3" style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.nation }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 身份证号
- </td>
- <td colspan="3" style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.id_card_no }}
- </td>
- </tr>
- <tr>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 联系人
- </td>
- <td style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.contact_name }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 电话
- </td>
- <td colspan="3" style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.home_telephone }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 联系地址
- </td>
- <td colspan="3" style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.home_address }}
- </td>
- </tr>
- <tr>
- <td colspan="2" style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 首次透析时间
- </td>
- <td colspan="4" style="padding: 5px 0px;font-size: 22px;">
- {{ patientPrint.first_dialysis_date }}
- </td>
- <td style="padding: 5px 0px;font-size: 22px;font-weight: 500;">
- 血管通路
- </td>
- <td colspan="3" style="padding: 5px 0px;font-size: 22px;">
- {{ patientVascularAccessOne.blood_access_part_id }} {{ patientVascularAccessOne.blood_access_part_opera_id }}
- </td>
- </tr>
-
- <tr>
- <td style="padding: 5px 0px;font-size: 22px; font-weight: 500;">
- 主诉
- </td>
- <td colspan="9" style="text-align: left; padding:0px 5px ;font-size: 22px;">
- {{ patientPrint.patient_complains }}
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">现<br />病<br />史</div>
- </td>
- <td colspan="9">
- <div
- class="td_proj_content td_align_left"
- v-html="patientPrint.present_history"
- ></div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">既<br />往<br />史</div>
- </td>
- <td colspan="9">
- <div class="td_proj_content td_align_left">
- {{ patientPrint.past_history }}
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">过敏史</div>
- </td>
- <td colspan="5">
- <div class="td_proj_content td_align_left">
- {{ patientPrint.allergic_history }}
- </div>
- </td>
- <td>
- <div class="td_proj_title">家族史</div>
- </td>
- <td colspan="3">
- <div class="td_proj_content td_align_left">
- {{ patientPrint.famality_record }}
- </div>
- </td>
- </tr>
-
- <tr>
- <td colspan="10"><div class="td_proj_title">体格检查</div></td>
- </tr>
- <tr>
- <td colspan="10">
- <div class="td_proj_title">
- T:
- {{
- patientPrint.temperature
- }}℃ P:
- {{
- patientPrint.pulse
- }}次/分 R:
- {{
- patientPrint.respiratory
- }}次/分 BP:
- {{ patientPrint.sbp }}/{{ patientPrint.dbp }} mmHg
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="10">
- <div
- class="td_proj_content td_align_left"
- v-html="patientPrint.remark"
- ></div>
- </td>
- </tr>
- <tr>
- <td style="width: 15%;">
- <div class="td_proj_title">辅助检查</div>
- </td>
- <td colspan="9">
- <div
- class="td_proj_content td_align_left"
-
- ></div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">诊<br />断</div>
- </td>
- <td colspan="9">
- <div
- class="td_proj_content td_align_left wrapper"
- v-html="patientPrint.diagnose"
- ></div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="td_proj_title">诊<br />疗<br />计<br />划</div>
- </td>
- <td colspan="9">
- <div
- class="td_proj_content td_align_left"
- v-html="patientPrint.treatment_plan"
- ></div>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="print_footnote_panel">
- <div class="proj" style="">
- <span class="proj_title">医生签名:
- <span v-if="patientPrint!=undefined&&getDcotorName(patientPrint.doctor) == ''">{{getDcotorNameOne(patientPrint.doctor)}}</span>
- <span v-else>
- <img style="height:30px;margin-top:20px" :src="getDcotorName(patientPrint.doctor)" alt="" srcset="">
- </span>
- </span>
- </div>
- <div class="proj" style="text-align: right;">
- <span class="proj_title">日期:</span>
- <span v-if="patientPrint.print_date>0">{{getTime(patientPrint.print_date)}}</span>
- <span v-if="patientPrint.print_date<=0">{{getTime(patientPrint.created_time)}}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div hidden="hidden">
- <div id="print-card-info">
- <div
- class="order_title"
- align="center"
- style="margin-bottom: 20px; font-size: 35px"
- v-if="org_id != 10223"
- >
- 签到卡
- </div>
- <div
- class="order_title"
- align="center"
- style="margin-bottom: 20px; font-size: 25px"
- v-if="org_id == 10223"
- >
- 三优血液透析中心
- </div>
- <div align="center" style="margin-bottom: 4px; font-size: 25px">
- 姓名:<span> {{ patientPrint.name }}</span
- ><br />
- </div>
- <div align="center" style="margin-bottom: 20px; font-size: 25px">
- 透析号:<span> {{ patientPrint.dialysis_no }}</span>
- </div>
- <div>
- <div id="qrcode" align="center"></div>
- </div>
- </div>
- </div>
- </div>
- </template>
-
- <script>
- import { getDataConfig } from "@/utils/data";
- import { getToken } from "@/api/qiniu";
- // import print from "print-js";
- import {
- getFileExtension,
- isCardNo,
- jsGetAge,
- isPositiveInteger,
- dialysisAge,
- uParseTime,
- } from "@/utils/tools";
- import {
- generateDialysisNo,
- createPatient,
- editPatient,
- fetchPatient,
- } from "@/api/patient";
- import { fetchAllDoctorAndNurse, fetchAllAdminUsers } from "@/api/doctor";
- import { getZones } from "@/api/device/device";
- import print from "print-js";
- import QRCode from "qrcodejs2";
- import { Base64 } from "js-base64";
- import { parse } from "path";
-
- const defaultForm = {
- avatar: "",
- patientType: "",
- dialysisNo: "",
- admissionNumber: "",
- source: "",
- lapseto: "",
- partition: "",
- bed: "",
- name: "",
- gender: "",
- nation: "",
- native_place: "",
- maritalStatus: "",
- idCardNo: "",
- birth: "",
- age: "",
- reimbursementWayID: "",
- healthCareNo: "",
- healthCareDueDate: "",
- height: "",
- blood: "",
- rh: "",
- healthCareDueAlertDate: "",
- education: "",
- profession: "",
- phone: "",
- homeTelephone: "",
- homeAddress: "",
- work: "",
- receivingDate: "",
- firstDialysisDate: "",
- dialysisAge: "",
- induction: "",
- initial: "",
- dialysisTotal: "",
- contagions: [],
- doctor: "",
- nurse: "",
- assessment: "",
- diseases: [],
- diagnose: "",
- registrars: "",
- patient_complains: "",
- present_history: "",
- past_history: "",
- temperature: "",
- pulse: "",
- respiratory: "",
- sbp: "",
- dbp: "",
- record_date: "",
- response_result: "",
- is_infectious: "",
- formItem: [],
- tell_phone: "",
- first_treatment_date: "",
- dialysis_age: "",
- expense_kind: "",
- contact_name: "",
- sch_remark: "",
- org_id: 0,
- troble_shoot: "",
- zb_patient_id: "",
- treatment_plan: "",
- doctor:"",
- record_number:"",
- patient_source:"",
- patient_start_time:"",
- patient_end_time:"",
- patient_address:"",
- infectious_remark:"",
- allergic_history:"",
- print_date:"",
- famality_record:"",
- patient_type:"",
- };
-
- export default {
- name: "patientDetail",
- components: {},
-
- data() {
- return {
- expenseOptions: [
- { id: 1, name: "基本医保" },
- { id: 2, name: "新农合" },
- { id: 3, name: "自费医疗" },
- { id: 4, name: "公费医疗" },
- { id: 5, name: "商业保险" },
- { id: 6, name: "军队医疗" },
- { id: 7, name: "其他" },
- ],
- patientSourceList:[
- {value:1,label:"门诊"},
- {value:2,label:"住院"},
- ],
- generic_info_fold: true,
- treat_info_fold: true,
- dialogFormVisible: false,
- orgname: "",
- adminusername: "",
- form: Object.assign({}, defaultForm),
- formSubmit: true,
- submitMethod: "",
- uploadData: { token: "", key: "" },
- dialogImageUrl: "",
- qiniuDomain: "https://images.shengws.com/",
- dialogVisible: false,
- typeOptions: null,
- styleOptions: null,
- sourceOptions: [
- { value: 1, label: "门诊" },
- { value: 2, label: "住院" },
- { value: 3, label: "门特" },
- ],
- lapsetoOptions: [
- { value: 1, label: "留治" },
- { value: 2, label: "转出" },
- ],
- partitionOptions: [],
- sexOptions: [
- { value: 1, label: "男" },
- { value: 2, label: "女" },
- ],
- isHospitalFirstDialysisOptions: [
- { value: 1, label: "是" },
- { value: 2, label: "否" },
- ],
- predialysisConditionOptions: [
- { value: 1, label: "腹膜透析" },
- { value: 2, label: "肾移植" },
- ],
- maritalOptions: null,
- wayOptions: null,
- educationOptions: null,
- professionOptions: null,
- inductionOptions: null,
- doctorOptions: null,
- nurseOptions: null,
- adminUserOptions: [],
- infections: [],
- rhOptions: null,
- checkDisease: null,
- contagionList: null,
- loading: null,
- patientID: 0,
- patientPrint: {},
- print_time: "",
- printDate: "",
- rules: {
- contagions: [{ type: "array", required: false, trigger: "change" }],
- avatar: [{ required: true, message: "请上传头像", trigger: "blur" }],
- patientType: [
- { required: true, message: "请选择患者类型", trigger: "blur" },
- ],
- dialysisNo: [
- { required: true, message: "请填写透析号", trigger: "blur" },
- ],
- admissionNumber: [
- { required: true, message: "请填写住院(门诊)号", trigger: "blur" },
- ],
- source: [
- { required: true, message: "请选择患者来源", trigger: "blur" },
- ],
- lapseto: [
- { required: true, message: "请选择治疗状态", trigger: "blur" },
- ],
- name: [{ required: true, message: "请填写姓名", trigger: "blur" }],
- gender: [{ required: true, message: "请选择性别", trigger: "blur" }],
- idCardNo: [
- { required: true, message: "请填写身份证号", trigger: "blur" },
- ],
- birth: [{ required: true, message: "请填写生日", trigger: "blur" }],
- },
- shootList: [
- { id: 1, name: "是" },
- { id: 2, name: "否" },
- ],
- operators:[],
- liuAddresslist:[],
- patientVascularAccessOne:{},
- patientType: [{ value: 1, label: "血透患者" }, { value: 2, label: "慢病患者" }, { value: 3, label: "会员患者" },{ value: 4, label: "腹透患者" },{ value: 5, label: "CKD患者" },{ value: 6, label: "其他患者" }],
- };
- },
- computed: {
- generic_fold_icon: function () {
- return this.generic_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
- },
- treat_fold_icon: function () {
- return this.treat_info_fold ? "el-icon-arrow-down" : "el-icon-arrow-up";
- },
- },
- created() {
- this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
- console.log("liuAddresslist",this.liuAddresslist)
- this.org_id = this.$store.getters.xt_user.org.id;
- this.form.doctor = this.$store.getters.xt_user.user.id
- console.log("owowow",this.$store.getters.xt_user.user.id)
-
- this.styleOptions = this.$store.getters.patient_types;
- // this.partitionOptions = this.$store.getters.partitions;
- this.maritalOptions = getDataConfig("patient", "marital_options");
- this.wayOptions = getDataConfig("patient", "reimbursement_ways");
- this.typeOptions = this.$store.getters.blood_types;
- this.rhOptions = this.$store.getters.rh;
- this.educationOptions = getDataConfig("patient", "education_types");
- this.professionOptions = getDataConfig("patient", "profession_options");
- var obj ={id:11,name:"退休"}
- var objOne = {id:12,name:"灵活就业人员"}
- this.professionOptions.push(obj)
- this.professionOptions.push(objOne)
- this.inductionOptions = this.$store.getters.induction_options;
- this.contagionList = this.$store.getters.contagions;
- this.checkDisease = this.$store.getters.disease;
-
- var xtuser = this.$store.getters.xt_user;
- this.orgname = xtuser.org.org_name;
- this.adminusername = xtuser.user.user_name;
-
- this.fetchAllAdminUsers();
-
- const id = this.$route.params && this.$route.params.id;
- this.patientID = parseInt(id);
- if (isNaN(this.patientID) || this.patientID <= 0) {
- console.log("patient detail not had id");
- this.$notify.error({
- title: "错误",
- message: "无效的id",
- });
- this.$router.push("/patients/patients");
- }
- this.fetchPatient(id);
- this.getZones();
- var ptime = Math.round(new Date().getTime() / 1000);
- // this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}');
-
- var data = new Date();
- var month =
- data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
- var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
- this.printDate = data.getFullYear() + "-" + month + "-" + date;
- },
- methods: {
- calculateAge(idNumber,created_time) {
- var year = this.getTimeOne(created_time)
-
- var month = this.getTimeTwo(created_time)
-
- var day = this.getTimeThree(created_time)
- console.log("start_time=====",year)
- // 假设身份证号码是18位,且生日在第7位到第14位
- const birthYear = parseInt(idNumber.substring(6, 10), 10);
- const birthMonth = parseInt(idNumber.substring(10, 12), 10);
- const birthDay = parseInt(idNumber.substring(12, 14), 10);
-
- const today = new Date();
- // console.log("today============",today)
- var ageYear = year - birthYear;
- let ageMonth = month - birthMonth; // 月份是从0开始的
- let ageDay = day - birthDay;
-
- // 调整月份和日期,以便于正确计算
- if (ageDay < 0) {
- ageMonth -= 1;
- // 获取上个月的天数
- const pastMonthDay = new Date(year,month, 0).getDate();
- ageDay += pastMonthDay;
- }
- if (ageMonth < 0) {
- ageYear -= 1;
- ageMonth += 12;
- }
-
- return ageYear
- },
- getTime(val) {
- return uParseTime(val, "{y}年{m}月{d}日");
- },
- getTimeOne(val) {
- return uParseTime(val, "{y}");
- },
- getTimeTwo(val) {
- return uParseTime(val, "{m}");
- },
- getTimeThree(val) {
- return uParseTime(val, "{h}");
- },
- printThisInfo() {
- var ptime = Math.round(new Date().getTime() / 1000);
- this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
- const style =
- "@page {margin-top:10px;}@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .print_main_content table { width: 100%; border-collapse: collapse; padding: 2px; } .print_main_content table tbody tr{page-break-inside:avoid;} .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 18px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 18px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 17px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} }";
- const style1 =
- "@page {margin-top:10px;}@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content table { width: 100%; padding: 2px; } .print_main_content table tbody tr{page-break-inside:avoid;} .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 22px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 22px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 22px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} .wrapper {white-space: pre-wrap;} }";
- if(this.org_id != 10206 && this.org_id !=0){
- console.log('1111111');
-
- setTimeout(() => {
- printJS({
- printable: "print-info-box",
- type: "html",
- style: style,
- scanStyles: false,
- });
- }, 1);
- }else{
- console.log('121212','10206');
-
- setTimeout(() => {
- printJS({
- printable: "print-info-box",
- type: "html",
- style: style1,
- scanStyles: false,
- });
- }, 1);
- }
-
- },
- getZones() {
- getZones().then((response) => {
- if (response.data.state === 1) {
- this.partitionOptions = response.data.data.zones;
- }
- });
- },
- fetchPatient(id) {
- fetchPatient(id)
- .then((response) => {
- console.log(response.data.data);
- if (response.data.state === 1) {
- this.$emit("tran-patient-info", response.data.data.patient);
- var patietInfo = response.data.data.patient;
- this.patientVascularAccessOne = response.data.data.patientVascularAccessOne
- console.log("触发了吗无222222", patietInfo);
- this.form.avatar = patietInfo.avatar;
- this.form.name = patietInfo.name;
- this.form.alias = patietInfo.alias;
- this.form.lapseto = patietInfo.lapseto;
- this.form.idCardNo = patietInfo.id_card_no;
- this.form.dialysisNo = patietInfo.dialysis_no;
- this.form.gender = patietInfo.gender;
- this.form.is_infectious = patietInfo.is_infectious;
- this.form.troble_shoot = patietInfo.troble_shoot;
- this.form.zb_patient_id = patietInfo.zb_patient_id;
- // this.form.record_date = patietInfo.is_infectious
- this.form.response_result = patietInfo.response_result;
- this.form.remind_cycle = patietInfo.remind_cycle;
- this.form.treatment_plan = patietInfo.treatment_plan;
- this.form.doctor = patietInfo.doctor
- if(this.form.doctor == 0){
- this.form.doctor = ""
- }
- // if (patietInfo.is_infectious == 1) {
- // this.form.remind_cycle = 0;
- // }
- // console.log("222222", this.form.remind_cycle);
- this.form.user_sys_before_count = patietInfo.user_sys_before_count;
-
- this.infections = response.data.data.infections;
- this.form.formItem = this.infections;
- if (this.infections != null) {
- if (this.infections.length > 0) {
- this.form.record_date = uParseTime(
- this.infections[0].inspect_date,
- "{y}-{m}-{d}"
- );
- const select_options = ["阴性", "阳性", "弱阳性"];
- for (let i = 0; i < this.infections.length; i++) {
- this.infections[i]["select_options"] = select_options;
- this.infections[i]["value"] =
- this.infections[i].inspect_value;
- }
- }
- }
-
- if (patietInfo.gender === 1 || patietInfo.gender === 2) {
- this.form.gender = patietInfo.gender;
- }
- this.form.nation = patietInfo.nation;
- this.form.native_place = patietInfo.native_place;
- this.form.birth = uParseTime(patietInfo.birthday, "{y}-{m}-{d}");
- this.form.firstDialysisDate = uParseTime(
- patietInfo.first_dialysis_date,
- "{y}-{m}-{d}"
- );
- this.form.height = patietInfo.height + "";
- // this.form.age = jsGetAge(this.form.birth, "-");
- if (patietInfo.marital_status > 0) {
- this.form.maritalStatus = patietInfo.marital_status;
- }
- this.form.children = patietInfo.children;
- this.form.admissionNumber = patietInfo.admission_number;
- if (patietInfo.reimbursement_way_id > 0) {
- this.form.reimbursementWayID = patietInfo.reimbursement_way_id;
- }
- this.form.healthCareNo = patietInfo.health_care_no;
- this.form.phone = patietInfo.phone;
- this.form.homeTelephone = patietInfo.home_telephone;
- this.form.relative_phone = patietInfo.relative_phone;
- this.form.relative_relations = patietInfo.relative_relations;
- this.form.homeAddress = patietInfo.home_address;
- this.form.work = patietInfo.work_unit;
- this.form.unit_address = patietInfo.unit_address;
-
- if (patietInfo.age == 0) {
- this.form.age = jsGetAge(this.form.birth, "-");
- } else {
- this.form.age = patietInfo.age;
- }
-
- if (patietInfo.profession > 0) {
- this.form.profession = patietInfo.profession;
- }
- if (patietInfo.education_level > 0) {
- this.form.education = patietInfo.education_level;
- }
- if (patietInfo.source === 1 || patietInfo.source === 2 || patietInfo.source === 3) {
- this.form.source = patietInfo.source;
- }
- if (patietInfo.lapseto === 1 || patietInfo.lapseto === 2) {
- this.form.lapseto = patietInfo.lapseto;
- }
- if (
- patietInfo.is_hospital_first_dialysis === 1 ||
- patietInfo.is_hospital_first_dialysis === 2
- ) {
- this.form.is_hospital_first_dialysis =
- patietInfo.is_hospital_first_dialysis;
- }
- if (patietInfo.first_dialysis_date !== 0) {
- this.form.firstDialysisDate = uParseTime(
- patietInfo.first_dialysis_date,
- "{y}-{m}-{d}"
- );
- }
- this.form.first_dialysis_hospital =
- patietInfo.first_dialysis_hospital;
- if (patietInfo.predialysis_condition.length > 0) {
- this.form.predialysis_condition =
- patietInfo.predialysis_condition.split(",");
- }
- this.form.pre_hospital_dialysis_frequency =
- patietInfo.pre_hospital_dialysis_frequency;
- this.form.pre_hospital_dialysis_times =
- patietInfo.pre_hospital_dialysis_times;
- if (patietInfo.hospital_first_dialysis_date !== 0) {
- this.form.hospital_first_dialysis_date = uParseTime(
- patietInfo.hospital_first_dialysis_date,
- "{y}-{m}-{d}"
- );
- }
- this.form.contagions = response.data.data.contagions;
- this.form.diseases = response.data.data.diseases;
- this.form.remark = patietInfo.remark;
- this.form.sch_remark = patietInfo.sch_remark;
-
- this.form.diagnose = patietInfo.diagnose;
-
- this.form.patient_complains = patietInfo.patient_complains;
- this.form.present_history = patietInfo.present_history;
- this.form.past_history = patietInfo.past_history;
- this.form.temperature = patietInfo.temperature;
- this.form.pulse = patietInfo.pulse;
- this.form.respiratory = patietInfo.respiratory;
- this.form.sbp = patietInfo.sbp;
- this.form.dbp = patietInfo.dbp;
-
- this.form.contact_name = patietInfo.contact_name;
- this.form.tell_phone = patietInfo.tell_phone;
- this.form.dialysis_age = patietInfo.dialysis_age;
- this.form.record_number = patietInfo.record_number
- if (patietInfo.expense_kind == 0) {
- this.form.expense_kind = "";
- } else {
- this.form.expense_kind = patietInfo.expense_kind;
- }
-
- this.form.first_treatment_date = uParseTime(
- patietInfo.first_treatment_date,
- "{y}-{m}-{d}"
- );
-
- this.form.print_date = uParseTime(
- patietInfo.print_date,
- "{y}-{m}-{d}"
- );
-
- this.form.patient_source = patietInfo.patient_source
- if (patietInfo.patient_start_time != 0) {
- this.form.patient_start_time = uParseTime(
- patietInfo.patient_start_time,
- "{y}-{m}-{d}"
- );
- }
-
- if (patietInfo.patient_end_time != 0) {
- this.form.patient_end_time = uParseTime(
- patietInfo.patient_end_time,
- "{y}-{m}-{d}"
- );
- }
- this.form.patient_address = patietInfo.patient_address
- this.form.allergic_history = patietInfo.allergic_history
- this.form.infectious_remark = patietInfo.infectious_remark
- this.form.famality_record = patietInfo.famality_record
- if(patietInfo.patient_type >0){
- this.form.patient_type = patietInfo.patient_type
- }
- // this.form.initial = patietInfo.initial_dialysis + "";
- // this.form.dialysisTotal = patietInfo.total_dialysis + "";
- // this.form.assessment = patietInfo.evaluate;
- // if (patietInfo.patient_type > 0) {
- // this.form.patientType = patietInfo.patient_type;
- // }
- // if (patietInfo.partition_id > 0) {
- // this.form.partition = patietInfo.partition_id;
- // }
- // if (patietInfo.bed_id > 0) {
- // this.form.bed = patietInfo.bed_id;
- // }
- // this.form.healthCareDueDate = uParseTime(
- // patietInfo.health_care_due_date,
- // "{y}-{m}-{d}"
- // );
- // if (patietInfo.blood_type > 0) {
- // this.form.blood = patietInfo.blood_type;
- // }
- // if (patietInfo.rh > 0) {
- // this.form.rh = patietInfo.rh;
- // }
- // this.form.healthCareDueAlertDate = uParseTime(
- // patietInfo.health_care_due_alert_date,
- // "{y}-{m}-{d}"
- // );
- // this.form.receivingDate = uParseTime(
- // patietInfo.receiving_date,
- // "{y}-{m}-{d}"
- // );
- // this.form.dialysisAge = dialysisAge(
- // this.form.firstDialysisDate,
- // "-"
- // );
- // if (patietInfo.induction_period > 0) {
- // this.form.induction = patietInfo.induction_period;
- // }
- // if (patietInfo.attending_doctor_id > 0) {
- // this.form.doctor = patietInfo.attending_doctor_id;
- // }
- if (patietInfo.head_nurse_id > 0) {
- this.form.nurse = patietInfo.head_nurse_id;
- }
- // if (patietInfo.registrars_id > 0) {
- // this.form.registrars = patietInfo.registrars_id;
- // }
-
- var contagionsArr = response.data.data.contagions;
- var diseasesArr = response.data.data.diseases;
- // console.log('123456',response.data.data);
- this.patientPrint = patietInfo;
- console.log('this.patientPrint',this.patientPrint);
- var sourceLen = this.sourceOptions.length;
- for (let index = 0; index < sourceLen; index++) {
- if (this.sourceOptions[index].value === patietInfo.source) {
- this.patientPrint.source = this.sourceOptions[index].label;
- break;
- }
- }
- var styleLen = this.styleOptions.length;
- for (let index = 0; index < styleLen; index++) {
- if (this.styleOptions[index].id === patietInfo.patient_type) {
- this.patientPrint.patient_type = this.styleOptions[index].name;
- break;
- }
- }
- var partitionLen = this.partitionOptions.length;
- for (let index = 0; index < partitionLen; index++) {
- if (this.partitionOptions[index].id === patietInfo.partition_id) {
- this.patientPrint.partition_id =
- this.partitionOptions[index].name;
- break;
- }
- }
- this.patientPrint.bed_id =
- patietInfo.bed_id > 0 ? patietInfo.bed_id : "";
- if (patietInfo.gender === 1) {
- this.patientPrint.gender = "男";
- } else if (patietInfo.gender === 2) {
- this.patientPrint.gender = "女";
- } else {
- this.patientPrint.gender = "";
- }
- var maritalLen = this.maritalOptions.length;
- console.log(maritalLen);
- for (let index = 0; index < maritalLen; index++) {
- if (
- this.maritalOptions[index].id ==
- response.data.data.patient.marital_status
- ) {
- this.patientPrint.marital_status =
- this.maritalOptions[index].name;
- }
- }
-
- this.patientPrint.birthday = uParseTime(
- patietInfo.birthday,
- "{y}-{m}-{d}"
- );
- this.patientPrint.age = jsGetAge(this.patientPrint.birthday, "-");
-
- this.patientPrint.patient_complains =
- patietInfo.patient_complains.replace(/\n/g, "<br/>");
- // console.log('qwerewqrt',patietInfo.present_history);
- this.patientPrint.present_history =
- patietInfo.present_history.replace(/\n/g, "<br/>");
- console.log('qwerewqrt',patietInfo.past_history);
- this.patientPrint.past_history = patietInfo.past_history.replace(
- /\n/g,
- "<br/>"
- );
- this.patientPrint.remark = patietInfo.remark.replace(
- /\n/g,
- "<br/>"
- );
-
-
-
- this.patientPrint.sch_remark = patietInfo.sch_remark.replace(
- /\n/g,
- "<br/>"
- );
- this.patientPrint.diagnose = patietInfo.diagnose.replace(
- /\n/g,
- "<br/>"
- );
- if (typeof patietInfo.temperature === "number") {
- this.patientPrint.temperature = patietInfo.temperature.toFixed(1);
- }
- console.log('this.patientPrint.remark',this.patientPrint.remark);
- if (patietInfo.reimbursement_way_id > 0) {
- var wayLen = this.wayOptions.length;
- for (let index = 0; index < wayLen; index++) {
- if (
- this.wayOptions[index].id === patietInfo.reimbursement_way_id
- ) {
- this.patientPrint.reimbursement_way_id =
- this.wayOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.reimbursement_way_id = "";
- }
- if (patietInfo.health_care_due_date !== 0) {
- this.patientPrint.health_care_due_date = uParseTime(
- patietInfo.health_care_due_date,
- "{y}-{m}-{d}"
- );
- } else {
- this.patientPrint.health_care_due_date = "";
- }
- if (patietInfo.blood_type > 0) {
- var typeLen = this.typeOptions.length;
- for (let index = 0; index < typeLen; index++) {
- if (this.typeOptions[index].id === patietInfo.blood_type) {
- this.patientPrint.blood_type = this.typeOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.blood_type = "";
- }
- if (patietInfo.rh > 0) {
- var rhLen = this.rhOptions.length;
- for (let index = 0; index < rhLen; index++) {
- if (this.rhOptions[index].id === patietInfo.rh) {
- this.patientPrint.rh = this.rhOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.rh = "";
- }
- if (patietInfo.health_care_due_alert_date !== 0) {
- this.patientPrint.health_care_due_alert_date = uParseTime(
- patietInfo.health_care_due_alert_date,
- "{y}-{m}-{d}"
- );
- } else {
- this.patientPrint.health_care_due_alert_date = "";
- }
- if (patietInfo.education_level > 0) {
- var eLen = this.educationOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.educationOptions[index].id === patietInfo.education_level
- ) {
- this.patientPrint.education_level =
- this.educationOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.education_level = "";
- }
- if (patietInfo.profession > 0) {
- var eLen = this.professionOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.professionOptions[index].id === patietInfo.profession
- ) {
- this.patientPrint.profession =
- this.professionOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.profession = "";
- }
- if (patietInfo.receiving_date !== 0) {
- this.patientPrint.receiving_date = uParseTime(
- patietInfo.receiving_date,
- "{y}-{m}-{d}"
- );
- } else {
- this.patientPrint.receiving_date = "";
- }
- if (patietInfo.first_dialysis_date !== 0) {
- this.patientPrint.first_dialysis_date = uParseTime(
- patietInfo.first_dialysis_date,
- "{y}-{m}-{d}"
- );
- this.patientPrint.dialysis_age = dialysisAge(
- this.patientPrint.first_dialysis_date
- );
- } else {
- this.patientPrint.first_dialysis_date = "";
- this.patientPrint.dialysis_age = "";
- }
- if (patietInfo.induction_period > 0) {
- var eLen = this.inductionOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.inductionOptions[index].id ===
- patietInfo.induction_period
- ) {
- this.patientPrint.induction_period =
- this.inductionOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.induction_period = "";
- }
- if (patietInfo.attending_doctor_id > 0) {
- var eLen = this.adminUserOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.adminUserOptions[index].id ===
- patietInfo.attending_doctor_id
- ) {
- this.patientPrint.attending_doctor_id =
- this.adminUserOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.attending_doctor_id = "";
- }
- if (patietInfo.head_nurse_id > 0) {
- var eLen = this.adminUserOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.adminUserOptions[index].id === patietInfo.head_nurse_id
- ) {
- this.patientPrint.head_nurse_id =
- this.adminUserOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.head_nurse_id = "";
- }
-
- if (contagionsArr.length > 0) {
- var contagionsIdArr = {};
- var alen = contagionsArr.length;
- for (let index = 0; index < alen; index++) {
- contagionsIdArr[contagionsArr[index]] = 1;
- }
- var printContagions = [];
- var clen = this.contagionList.length;
- for (let index = 0; index < clen; index++) {
- if (this.contagionList[index].id in contagionsIdArr) {
- printContagions.push(this.contagionList[index].name);
- }
- }
- this.patientPrint.contagions = printContagions.join("、");
- } else {
- this.patientPrint.contagions = "阴性";
- }
-
- if (diseasesArr.length > 0) {
- var diseasesIdArr = {};
- var alen = diseasesArr.length;
- for (let index = 0; index < alen; index++) {
- diseasesIdArr[diseasesArr[index]] = 1;
- }
- var printDisease = [];
- var clen = this.checkDisease.length;
- for (let index = 0; index < clen; index++) {
- if (this.checkDisease[index].id in diseasesIdArr) {
- printDisease.push(this.checkDisease[index].name);
- }
- }
- this.patientPrint.diseases = printDisease.join("、");
- } else {
- this.patientPrint.diseases = "";
- }
-
- if (patietInfo.registrars_id > 0) {
- var eLen = this.adminUserOptions.length;
- for (let index = 0; index < eLen; index++) {
- if (
- this.adminUserOptions[index].id === patietInfo.registrars_id
- ) {
- this.patientPrint.registrars =
- this.adminUserOptions[index].name;
- this.form.registrars = this.adminUserOptions[index].name;
- break;
- }
- }
- } else {
- this.patientPrint.registrars = "";
- }
-
- if (patietInfo.hospital_first_dialysis_date !== 0) {
- this.patientPrint.hospital_first_dialysis_date = uParseTime(
- patietInfo.hospital_first_dialysis_date,
- "{y}-{m}-{d}"
- );
- } else {
- this.patientPrint.hospital_first_dialysis_date = "";
- }
-
- // this.checkIdCardNo();
- } else {
- console.log("patient get err state");
- this.$notify.error({
- title: "错误",
- message: "网络异常",
- });
- this.$router.push("/patients/patients");
- }
-
- // this.postForm = response.data
- // // Just for test
- // this.postForm.title += ` Article Id:${this.postForm.id}`
- // this.postForm.content_short += ` Article Id:${this.postForm.id}`
- })
- .catch((err) => {
- console.log("patient get err", err);
- this.$notify.error({
- title: "错误",
- message: "网络异常",
- });
- this.$router.push("/patients/patients");
- });
- },
- fetchAllDoctorAndNurse() {
- fetchAllDoctorAndNurse().then((response) => {
- if (response.data.state === 1) {
- this.doctorOptions = response.data.data.doctors;
- this.nurseOptions = response.data.data.nursers;
- }
- });
- },
- fetchAllAdminUsers() {
- fetchAllAdminUsers().then((response) => {
- if (response.data.state === 1) {
- this.adminUserOptions = response.data.data.users;
- this.operators = response.data.data.operators
- console.log("医生签名",this.operators)
- }
- });
- },
- getDcotorName(admin_user_id){
- var url = ""
- if(this.operators!=null && this.operators.length > 0){
- for(let i=0;i<this.operators.length;i++){
- if(admin_user_id == this.operators[i].admin_user_id){
- url = this.operators[i].url
- }
- }
- }
-
- return url
- },
- getDcotorNameOne(admin_user_id){
- var name = ""
- for(let i=0;i<this.adminUserOptions.length;i++){
- if(admin_user_id == this.adminUserOptions[i].id){
- name = this.adminUserOptions[i].name
- }
- }
- return name
- },
- printCard() {
- var ptime = Math.round(new Date().getTime() / 1000);
- this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
-
- const style =
- "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0; } .print_main_content .order_title { text-align: center; font-size: 23px; line-height: 50px; font-weight: 500; } .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px; } .td_proj_title { font-size: 18px; line-height: 25px; font-weight: 500; } .td_proj_content { font-size: 18px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 17px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj .proj_title { font-weight: 500;} }";
-
- setTimeout(() => {
- printJS({
- printable: "print-card-info",
- type: "html",
- style: style,
- scanStyles: false,
- });
- }, 1);
-
- var patientID = this.patientPrint.id;
- var name = this.patientPrint.name;
- var gender = this.patientPrint.gender;
- if (gender === 1) {
- gender = "男";
- }
- if (gender === 2) {
- gender = "女";
- }
- var idCardNo = this.patientPrint.id_card_no;
- var dialysisNo = this.patientPrint.dialysis_no;
- var phone = this.patientPrint.phone;
- var healthCareNo = this.patientPrint.health_care_no;
-
- // Base64加密
- var epatientID = this.Base64.encode(patientID);
- var ename = this.Base64.encode(name);
- var egender = this.Base64.encode(gender);
- var eidCardNo = this.Base64.encode(idCardNo);
- var edialysisNo = this.Base64.encode(dialysisNo);
- var ephone = this.Base64.encode(phone);
- var eheathCareNo = this.Base64.encode(healthCareNo);
- console.log(
- "id号:" + epatientID,
- "姓名:" + ename,
- "性别:" + egender,
- "身份证:" + eidCardNo,
- "透析号:" + edialysisNo,
- "电话:" + ephone,
- "社保号:" + eheathCareNo
- );
- // var params =new Object();
- // params.id = this.patientPrint.id
- // params.name = this.patientPrint.name;
- // this.$options.methods.qrcode(epatientID, ename, egender, eidCardNo, edialysisNo, ephone, eheathCareNo)// 调用生成二维码的方法
- this.$options.methods.qrcode(
- patientID,
- name,
- gender,
- idCardNo,
- dialysisNo,
- phone,
- healthCareNo
- );
- // this.$options.methods.qrcode(params)
- },
- showInspectDialog() {
- this.dialogFormVisible = true;
- },
-
- qrcode(patientID, name, gender, idCardNo, dialysisNo, phone, healthCareNo) {
- document.getElementById("qrcode").innerHTML = "";
- new QRCode("qrcode", {
- width: 200,
- height: 200,
- text:
- "user_id:" +
- patientID +
- "," +
- "name:" +
- name +
- "," +
- "dialysis_no:" +
- dialysisNo +
- "," +
- "gender:" +
- gender +
- "," +
- "idcard_no:" +
- idCardNo +
- "," +
- "phone:" +
- phone +
- "," +
- "healthcare_no:" +
- healthCareNo,
- });
- },
- checkIdCardNo() {
- if(this.$store.getters.xt_user.org_id != 10278 && this.$store.getters.xt_user.org_id != 10138) {
- if (!isCardNo(this.form.idCardNo)) {
- this.$message.error("身份证号码信息有误!");
- this.form.birth = "";
- return false;
- }
- }
- var thisLen = this.form.idCardNo.length;
- var birth = "";
- if (thisLen == 15) {
- birth = "19" + this.form.idCardNo.substr(6, 6);
- } else {
- birth = this.form.idCardNo.substr(6, 8);
- }
- this.form.birth =
- birth.substr(0, 4) +
- "-" +
- birth.substr(4, 2) +
- "-" +
- birth.substr(6, 2);
-
- this.form.age = jsGetAge(this.form.birth, "-");
- },
-
- // qrcode(params){
- // new QRCode('qrcode',{
- // width:200,
- // height:200,
- // text:params,
- // })
- // }
- },
-
- };
- </script>
-
- <style rel="stylesheet/scss" lang="scss" scoped>
- .uploadHead {
- margin-top: 25%;
- }
- .uploadHeadBtn {
- width: 148px;
- margin-top: 10px;
- }
- .el-form {
- .el-col-6,
- .el-col-8 {
- width: 360px;
- height: 59px !important;
- }
- .el-form-item {
- // margin-bottom: 17px !important;
- .el-select {
- width: 100%;
- }
- .el-date-editor.el-input {
- width: 100%;
- }
- .textarea {
- width: 100%;
- height: 70px;
- border-color: #dcdfe6;
- padding: 5px;
- }
- }
- }
-
- /deep/ .now_his{
- .el-row{
- .el-col-24{
- .el-form-item{
- .el-form-item__content{
- height: 100%;
- .el-textarea{
- .el-textarea__inner{
- height: 93%;
- }
- }
- }
- }
- }
- }
- }
-
- // #print-info-box .info_print {
- // width: 920px;
- // margin: 0 auto !important;
- // position: relative;
- // top: 0;
- // left: 0;
- // padding: 20px 30px;
- // }
- // #print-info-box .box-title {
- // text-align: center;
- // font-weight: 600;
- // font-size: 30px;
- // line-height: 80px;
- // margin-bottom: 20px;
- // }
-
- // #print-info-box .unit-title {
- // text-align: center;
- // line-height: 40px;
- // font-size: 20px;
- // font-weight: 400;
- // padding-top: 10px;
- // /* border: 1px solid #333; */
- // }
-
- // #print-info-box .unit-box {
- // padding: 15px;
- // }
-
- // #print-info-box .unit-box-item {
- // display: flex;
- // align-items: center;
- // justify-content: space-between;
- // padding: 4px 1em;
- // }
-
- // #print-info-box .unit-box-item-col3 {
- // width: 30%;
- // display: flex;
- // padding: 4px 0;
- // }
-
- // #print-info-box .unit-box-item-col4 {
- // width: 23%;
- // display: flex;
- // padding: 4px 0;
- // }
-
- // #print-info-box .item-value {
- // flex: 1;
- // border-bottom: 1px solid #333;
- // }
- </style>
-
- <style scoped>
- /* 打印表格的样式 */
- .print_main_content {
- background-color: white;
- width: 960px;
- margin: 0 auto;
- padding: 0 0 0 0;
- page-break-after: always;
- }
- .print_main_content .order_title {
- text-align: center;
- font-size: 23px;
- line-height: 50px;
- font-weight: 500;
- }
- .print_main_content table {
- width: 100%;
- border: 1px solid;
- border-collapse: collapse;
- padding: 2px;
- }
- .print_main_content table tbody tr td {
- border: 1px solid;
- text-align: center;
- /* font-size: 17px; */
- /* padding: 10px 8px; */
- }
- .td_proj_title {
- font-size: 17px;
- /* line-height: 20px; */
- font-weight: 500;
- }
- .td_proj_content {
- font-size: 17px;
- /* line-height: 20px; */
- }
- .td_align_left {
- text-align: left;
- }
- .print_footnote_panel {
- font-size: 17px;
- line-height: 40px;
- }
- .print_footnote_panel .proj {
- display: inline-block;
- width: 49%;
- text-align: center;
- }
- .print_footnote_panel .proj .proj_title {
- font-weight: 500;
- }
- .el-select-dropdown {
- z-index: 998 !important;
- }
- .wrapper {
- white-space: pre-wrap;
- }
- </style>
|