123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685 |
- <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="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-col :span="24">
- <el-form-item label="登记人员 : ">
- <span>{{ form.registrars }} </span>
- </el-form-item>
- </el-col>
-
- <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-form>
- <!-- 打印预览 -->
- <div style="display: none">
- <div id="print-info-box" v-if="org_id !=10206&&org_id !=0">
- <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 >
- <!-- 用 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"
- v-html="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"
- v-html="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"
- v-html="patientPrint.treatment_plan"
- ></div>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="print_footnote_panel">
- <div class="proj">
- <span class="proj_title">日期:</span>
-
- <!-- <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394 || org_id ==10612 || org_id == 0 || org_id ==10617">
- {{getTime(patientPrint.created_time)}}</span>
- <span v-else>{{ printDate }}</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="margin-top: 70px;">
- <div class="order_title">{{ orgname }} 血液净化患者首次门诊病历</div>
- <div >
- <table >
- <tbody>
- <tr>
- <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 姓名
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.name }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 性别
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.gender }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 年龄
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.age }}岁
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 报销方式
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{patientPrint.reimbursement_way_id}}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 透析号
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{patientPrint.dialysis_no}}
- </td>
- <!-- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 籍贯
- </td>
- <td style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.native_place }}
- </td> -->
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 电话
- </td>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.phone }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 民族
- </td>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.nation }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 身份证号
- </td>
- <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.id_card_no }}
- </td>
- </tr>
- <tr>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 联系人
- </td>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.contact_name }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 电话
- </td>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.home_telephone }}
- </td>
- <td style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 联系地址
- </td>
- <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.home_address }}
- </td>
- </tr>
- <tr>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 首次透析时间
- </td>
- <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
- {{ patientPrint.first_dialysis_date }}
- </td>
- <td colspan="2" style="padding: 3px 0px;font-size: 17px;font-weight: 500;">
- 血管通路
- </td>
- <td colspan="3" style="padding: 3px 0px;font-size: 17px;">
-
- </td>
- </tr>
-
- <tr>
- <td style="padding: 3px 0px;font-size: 17px; font-weight: 500;">
- 主诉
- </td>
- <td colspan="9" style="text-align: left; padding:0px 5px ;font-size: 17px;">
- {{ 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">
-
- </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>
- <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"
- 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">
- <span class="proj_title">日期:</span>
-
- <!-- <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394 || org_id ==10612 || org_id == 0 || org_id ==10617">
- {{getTime(patientPrint.created_time)}}</span>
- <span v-else>{{ printDate }}</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>
-
- <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:"",
- };
-
- 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:[],
- };
- },
- 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: {
- getTime(val) {
- return uParseTime(val, "{y}年{m}月{d}日");
- },
- 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;} }";
-
- setTimeout(() => {
- printJS({
- printable: "print-info-box",
- type: "html",
- style: style,
- 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;
- 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.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%;
- }
- .print_footnote_panel .proj .proj_title {
- font-weight: 500;
- }
- .el-select-dropdown {
- z-index: 998 !important;
- }
- </style>
|