1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>肺结核患者随访服务记录表</title>
- <meta name="author" content="yihu.com" />
- <meta name="format-detection" content="telephone=no" />
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
- <link rel="shortcut icon" href="../../../../favicon.ico">
- <link rel="stylesheet" type="text/css" href="../../../../css/element-ui.css" />
- <link rel="stylesheet" type="text/css" href="../../../../css/cross.css" />
- <link rel="stylesheet" type="text/css" href="../../../../css/bootstrap.min.css" />
- <link href="../../../../plugins/toastr/toastr.min.css" rel="stylesheet">
- <link href="../css/fangshi-detail.css" rel="stylesheet">
- <style>
- .setinput .el-input__inner,
- .innerInput {
- padding: 0;
- border-bottom: 1px solid #e1e1e1;
- text-align: center;
- }
- .innerInput {
- width: 100px;
- padding: 0 5px !important;
- }
- .dudaorenyuan el-radio {
- width: 50%;
- }
- .button{
- margin-right: 0px;
- }
- .button:nth-child(2){
- background:#FFC66F;
- }
- .finish{
- background:#e1e1e1 !important;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <button class="button" @click="editBtn()"> </button>
- <p class="c-f20 mb10" style="text-align: center;">肺结核患者随访服务记录表</p>
- <div class="ui-grid p10">
- <div class="ui-col-1">
- <div class="ui-grid">
- <div class="ui-col-0">姓名:</div>
- <div class="ui-col-1">
- <el-input :readonly="!editable" v-model="parient.patient.name"
- placeholder="" clearable></el-input>
- </div>
- </div>
- </div>
- <div class="ui-col-1">
- <div class="ui-grid">
- <div class="ui-col-0">编号:</div>
- <div class="ui-col-1">
- <el-input :readonly="!editable" v-model="parient.number"
- placeholder="" clearable>
- </el-input>
- </div>
- </div>
- </div>
- </div>
- <table class="table table-bordered">
- <tr>
- <td class="col-w200 c-t-center">随访时间</td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[0].followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[1].followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[2].followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[3].followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">治疗月序</td>
- <td class="setinput">
- 第
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].treate_month">
- </el-input> 月
- </td>
- <td class="setinput">
- 第
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].treate_month">
- </el-input> 月
- </td>
- <td class="setinput">
- 第
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].treate_month">
- </el-input> 月
- </td>
- <td class="setinput">
- 第
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].treate_month">
- </el-input> 月
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">督导人员</td>
- <td>
- <div>
- <!-- 1-医生,2-家属,3-自服药,4-其他 -->
- <el-radio-group :disabled="!editable"
- v-model="parient.data[0].superviser.superviser_type"
- class="dudaorenyuan">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">医生</el-radio>
- <el-radio :disabled="!editable" label="2">家属</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">自服药</el-radio>
- <el-radio :disabled="!editable" label="4">其他</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[1].superviser.superviser_type"
- class="dudaorenyuan">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">医生</el-radio>
- <el-radio :disabled="!editable" label="2">家属</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">自服药</el-radio>
- <el-radio :disabled="!editable" label="4">其他</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[2].superviser.superviser_type">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">医生</el-radio>
- <el-radio :disabled="!editable" label="2">家属</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">自服药</el-radio>
- <el-radio :disabled="!editable" label="4">其他</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[3].superviser.superviser_type">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">医生</el-radio>
- <el-radio :disabled="!editable" label="2">家属</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">自服药</el-radio>
- <el-radio :disabled="!editable" label="4">其他</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">随访方式</td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[0].way">
- <el-row>
- <!-- 1-门诊,2-家庭 3-电话-->
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">门诊</el-radio>
- <el-radio :disabled="!editable" label="2">家庭</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">电话</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[1].way">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">门诊</el-radio>
- <el-radio :disabled="!editable" label="2">家庭</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">电话</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[2].way">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">门诊</el-radio>
- <el-radio :disabled="!editable" label="2">家庭</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">电话</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- <td>
- <div>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[3].way">
- <el-row>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="1">门诊</el-radio>
- <el-radio :disabled="!editable" label="2">家庭</el-radio>
- </el-col>
- <el-col :span="24">
- <el-radio :disabled="!editable" label="3">电话</el-radio>
- </el-col>
- </el-row>
- </el-radio-group>
- </div>
- </td>
- </tr>
- <tr>
- <td class="col-w200">症状及体征:
- <!-- 0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降 -->
- <el-checkbox-group v-model="tizheng" :disabled="!editable">
- <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
- <el-checkbox label="1">咳嗽咳痰</el-checkbox>
- <el-checkbox label="2">低热盗汗</el-checkbox>
- <el-checkbox label="3">咳血或血痰</el-checkbox>
- <el-checkbox label="4">胸痛消瘦</el-checkbox>
- <el-checkbox label="5">恶心纳差</el-checkbox>
- <el-checkbox label="6">头痛失眠</el-checkbox>
- <el-checkbox label="7">视物模糊</el-checkbox>
- <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
- <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
- </el-checkbox-group>
- </td>
- <td style="vertical-align: initial;">
- 其他:
- <el-input type="textarea" :readonly="!editable" :rows="12"
- v-model="parient.data[0].symptom_other_desc" placeholder=""
- clearable></el-input>
- </td>
- <td style="vertical-align: initial;">
- 其他:
- <el-input type="textarea" :readonly="!editable" :rows="12"
- v-model="parient.data[1].symptom_other_desc" placeholder=""
- clearable></el-input>
- </td>
- <td style="vertical-align: initial;">
- 其他:
- <el-input type="textarea" :readonly="!editable" :rows="12"
- v-model="parient.data[2].symptom_other_desc" placeholder=""
- clearable></el-input>
- </td>
- <td style="vertical-align: initial;">
- 其他:
- <el-input type="textarea" :readonly="!editable" :rows="12"
- v-model="parient.data[3].symptom_other_desc" placeholder=""
- clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="table2Td" colspan="5">
- <table class="table2">
- <tr>
- <td class="c-t-center" rowspan="2" style="border-bottom: 0;width: 50px;">生活方式指导</td>
- <td class="c-t-center" style="width: 100px;">
- 吸烟
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].life_style.smoke">
- </el-input> 支
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].life_style.smoke_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].life_style.smoke">
- </el-input> 支
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].life_style.smoke_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].life_style.smoke">
- </el-input> 支
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].life_style.smoke_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].life_style.smoke">
- </el-input> 支
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].life_style.smoke_day">
- </el-input>天
- </td>
- </tr>
- <tr>
- <td class="c-t-center" style="width: 150px;">饮酒</td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].life_style.drink">
- </el-input> 两
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].life_style.drink_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].life_style.drink">
- </el-input>两
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].life_style.drink_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].life_style.drink">
- </el-input> 两
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].life_style.drink_day">
- </el-input>天
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].life_style.drink">
- </el-input> 两
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].life_style.drink_day">
- </el-input>天
- </td>
- </tr>
- <tr>
- <td class="c-t-center" rowspan="4" style="border-bottom: 0;width: 50px;">用药</td>
- <td class="c-t-center">
- 化疗方案
- </td>
- <td class="c-t-center">
- <el-input :readonly="!editable"
- v-model="parient.data[0].drug_use.chemotherapy"
- placeholder="" clearable></el-input>
- </td>
- <td class="c-t-center">
- <el-input :readonly="!editable"
- v-model="parient.data[1].drug_use.chemotherapy"
- placeholder="" clearable></el-input>
- </td>
- <td class="c-t-center">
- <el-input :readonly="!editable"
- v-model="parient.data[2].drug_use.chemotherapy"
- placeholder="" clearable></el-input>
- </td>
- <td class="c-t-center">
- <el-input :readonly="!editable"
- v-model="parient.data[3].drug_use.chemotherapy"
- placeholder="" clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="c-t-center">用法</td>
- <td>
- <!-- 1-每日,2-间歇 -->
- <el-radio-group :disabled="!editable"
- v-model="parient.data[0].drug_use.method">
- <el-radio :disabled="!editable" label="1">每日</el-radio>
- <el-radio :disabled="!editable" label="2">间歇</el-radio>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[1].drug_use.method">
- <el-radio :disabled="!editable" label="1">每日</el-radio>
- <el-radio :disabled="!editable" label="2">间歇</el-radio>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[2].drug_use.method">
- <el-radio :disabled="!editable" label="1">每日</el-radio>
- <el-radio :disabled="!editable" label="2">间歇</el-radio>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[3].drug_use.method">
- <el-radio :disabled="!editable" label="1">每日</el-radio>
- <el-radio :disabled="!editable" label="2">间歇</el-radio>
- </el-radio-group>
- </td>
- </tr>
- <tr>
- <td class="c-t-center" style="width: 150px;">药品剂型</td>
- <td>
- <!-- 1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂 -->
- <el-checkbox-group v-model="yongyao1" :disabled="!editable">
- <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
- <el-checkbox label="2">散装药</el-checkbox>
- <el-checkbox label="3">板式组合药</el-checkbox>
- <el-checkbox label="4">注射剂</el-checkbox>
- </el-checkbox-group>
- </td>
- <td>
- <el-checkbox-group v-model="yongyao2" :disabled="!editable">
- <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
- <el-checkbox label="2">散装药</el-checkbox>
- <el-checkbox label="3">板式组合药</el-checkbox>
- <el-checkbox label="4">注射剂</el-checkbox>
- </el-checkbox-group>
- </td>
- <td>
- <el-checkbox-group v-model="yongyao3" :disabled="!editable">
- <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
- <el-checkbox label="2">散装药</el-checkbox>
- <el-checkbox label="3">板式组合药</el-checkbox>
- <el-checkbox label="4">注射剂</el-checkbox>
- </el-checkbox-group>
- </td>
- <td>
- <el-checkbox-group v-model="yongyao4" :disabled="!editable">
- <el-checkbox label="1" style="margin-left:30px;">固定剂量复合制剂</el-checkbox>
- <el-checkbox label="2">散装药</el-checkbox>
- <el-checkbox label="3">板式组合药</el-checkbox>
- <el-checkbox label="4">注射剂</el-checkbox>
- </el-checkbox-group>
- </td>
- </tr>
- <tr>
- <td class="c-t-center">
- 漏服药次数
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[0].drug_use.forgot_take_drug_times">
- </el-input> 次
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[1].drug_use.forgot_take_drug_times">
- </el-input> 次
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[2].drug_use.forgot_take_drug_times">
- </el-input> 次
- </td>
- <td class="setinput">
- <el-input style="width: 70px;" type="number" :readonly="!editable"
- v-model="parient.data[3].drug_use.forgot_take_drug_times">
- </el-input> 次
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">药物不良反应</td>
- <td>
- <!-- // 药物不良反应 1-无,2-有 -->
- <el-radio-group :disabled="!editable"
- v-model="parient.data[0].drug_bad_reaction">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[0].drug_bad_reaction==2"
- style="width: 70px;" type="text" :readonly="!editable"
- v-model="parient.data[0].drug_bad_reaction_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[1].drug_bad_reaction">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[1].drug_bad_reaction==2"
- style="width: 70px;" type="text" :readonly="!editable"
- v-model="parient.data[1].drug_bad_reaction_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[2].drug_bad_reaction">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[2].drug_bad_reaction==2"
- style="width: 70px;" type="text" :readonly="!editable"
- v-model="parient.data[2].drug_bad_reaction_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[3].drug_bad_reaction">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[3].drug_bad_reaction==2"
- style="width: 70px;" type="text" :readonly="!editable"
- v-model="parient.data[3].drug_bad_reaction_detail">
- </el-input>
- </el-radio-group>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">并发症或合并症</td>
- <td>
- <!-- // 并发症 1-无,2-有 -->
- <el-radio-group :disabled="!editable"
- v-model="parient.data[0].complication">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[0].complication==2" style="width: 70px;"
- type="text" :readonly="!editable"
- v-model="parient.data[0].complication_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[1].complication">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[1].complication==2" style="width: 70px;"
- type="text" :readonly="!editable"
- v-model="parient.data[1].complication_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[2].complication">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[2].complication==2" style="width: 70px;"
- type="text" :readonly="!editable"
- v-model="parient.data[2].complication_detail">
- </el-input>
- </el-radio-group>
- </td>
- <td>
- <el-radio-group :disabled="!editable"
- v-model="parient.data[3].complication">
- <el-radio :disabled="!editable" label="1">无</el-radio>
- <el-radio :disabled="!editable" label="2">有</el-radio>
- <el-input class="innerInput" style="padding:0 !important;"
- v-if="parient.data[3].complication==2" style="width: 70px;"
- type="text" :readonly="!editable"
- v-model="parient.data[3].complication_detail">
- </el-input>
- </el-radio-group>
- </td>
- </tr>
- <tr>
- <td class="table2Td" colspan="5">
- <table class="table2">
- <tr>
- <td rowspan="3" class="c-t-center" style="border-bottom: 0; width:50px;">转诊</td>
- <td class="c-t-center" style="width: 150px;">
- 科别
- </td>
- <td>
- <el-input :readonly="!editable" style=""
- v-model="parient.data[0].trans_org.dept_name"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[1].trans_org.dept_name"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[2].trans_org.dept_name"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[3].trans_org.dept_name"
- placeholder="" clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="c-t-center">
- 原因
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[0].trans_org.reason"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[1].trans_org.reason"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[2].trans_org.reason"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[3].trans_org.reason"
- placeholder="" clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="c-t-center">
- 2周内随访,随访结果
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[0].trans_org.result_of_2_weeks"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[1].trans_org.result_of_2_weeks"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[2].trans_org.result_of_2_weeks"
- placeholder="" clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[3].trans_org.result_of_2_weeks"
- placeholder="" clearable></el-input>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">处理意见</td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[0].process_opinion" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[1].process_opinion" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[2].process_opinion" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[3].process_opinion" placeholder=""
- clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">下次随访时间</td>
- <td>
- <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[0].next_followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[1].next_followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[2].next_followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
- </td>
- <td>
- <el-date-picker value-format="yyyy-MM-dd" :readonly="!editable"
- v-model="parient.data[3].next_followup_date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- <!-- <el-input :readonly="!editable" v-model="input" placeholder="" clearable></el-input> -->
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">随访医生签名</td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[0].followup_doctor_name" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[1].followup_doctor_name" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[2].followup_doctor_name" placeholder=""
- clearable></el-input>
- </td>
- <td>
- <el-input :readonly="!editable"
- v-model="parient.data[3].followup_doctor_name" placeholder=""
- clearable></el-input>
- </td>
- </tr>
- <tr>
- <td class="col-w200 c-t-center">停止治疗及原因</td>
- <td colspan="4">
- 1.出现停止治疗时间年月日:
- <el-date-picker :readonly="!editable" value-format="yyyy-MM-dd"
- v-model="parient.stop_treate.date" type="date"
- placeholder="选择日期">
- </el-date-picker>
- 2.停止治疗原因:
- <el-radio-group :disabled="!editable"
- v-model="parient.stop_treate.reason">
- <el-radio :disabled="!editable" v-model="radio" label="1">完成疗程</el-radio>
- <el-radio :disabled="!editable" v-model="radio" label="2">死亡</el-radio>
- <el-radio :disabled="!editable" v-model="radio" label="3">丢失</el-radio>
- <el-radio :disabled="!editable" v-model="radio" label="4">转入耐多药治疗</el-radio>
- </el-radio-group>
- </td>
- </tr>
- <tr>
- <td rowspan="2" class="col-w200 c-t-center">全程管理情况</td>
- <td colspan="4">
- <div class="setinput">
- 应访视患者<el-input style="width:70px;" type="text" :readonly="!editable"
- v-model="parient.management.plan_followup_times"
- placeholder="" clearable></el-input>次,
- 实际访视<el-input style="width:70px;" type="text" :readonly="!editable"
- v-model="parient.management.real_followup_times"
- placeholder="" clearable></el-input>次
- </div>
- <div class="setinput">
- 患者在疗程中,应服药<el-input style="width:70px;" type="text" :readonly="!editable"
- v-model="parient.management.plan_take_drug_times"
- placeholder="" clearable></el-input>次,
- 实际服药<el-input style="width:70px;" type="text" :readonly="!editable"
- v-model="parient.management.real_take_drug_times"
- placeholder="" clearable></el-input>次,
- 服药率<el-input style="width:70px;" type="text" :readonly="!editable"
- v-model="percent"
- placeholder="" clearable></el-input>%
- </div>
- </td>
- </tr>
- <tr>
- <td colspan="4" class="setinput">
- 评估医生签名:
- <el-input style="width:120px;" type="text" :readonly="!editable"
- v-model="parient.management.signature_doctor_name" placeholder=""
- clearable></el-input>
- </td>
- </tr>
- </table>
- <follow-bottom :followupId="followupId"></follow-bottom>
- </div>
- <script src="../../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/util.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../plugins/toastr/toastr.min.js"></script>
- <script src="../../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
- <script src="../../../../component/followup/follow-bottom.js"></script>
- <script src="../../../../api/fangshi-api.js"></script>
- <script>
- var Request = GetRequest();
- new Vue({
- el: "#app",
- data: function () {
- return {
- finishedStatus: null, //随访完成状态
- editable: false,
- isEditBtn: true,
- data2: "",
- radio: "",
- input: '',
- check: '',
- tizheng: [], //体征
- yongyao1: [], //用药
- yongyao2: [], //用药
- yongyao3: [], //用药
- yongyao4: [], //用药
- followupId: Request['id'],
- finishedBtn:true, //是否已经完成随访
- sfStatus:'', //当前的随访状态
- showFinish:true, //是否显示完成随访按钮,
- followupClass:'',
- patientCode:'',
- parient: {
- "version": Request['version']||'1',
- "followup_id": Request['id']||'1', //随访id
- "followup_project": '',//随访项目
- "number": '', //随访编号
- "patient": {
- "name": '',//患者姓名
- "code": ''//身份证置空
- },
- "data": [
- // 1
- {
- "create_user": '',
- "create_user_name": '',
- "followup_date": '',
- "way": '',//随访方式:1-门诊,2-家庭 3-电话 //整数
- "treate_month": '',//治疗月序
- "superviser": {
- "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
- "superviser_code": '',//督导人员code
- "superviser_name": ''//督导人员name
- },
- "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
- "symptom_other_desc": '',//症状及体征其他描述
- "life_style": {
- "smoke": '', //生活方式-吸烟量
- "smoke_day":'',
- "drink": '', //生活方式-饮酒量
- "drink_day":''
- },
- "drug_use": {
- "chemotherapy": '',//用药情况-化疗方案,
- "method": '', //用药情况-用法:1-每日,2-间歇
- "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
- "forgot_take_drug_times": '',//漏服药次数
- },
- "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
- "drug_bad_reaction_detail": '', //药物不良反应描述
- "complication": '', // 并发症 1-无,2-有
- "complication_detail": '', //并發症描述
- "trans_org": { //转诊
- "dept_code": '', //科别code
- "dept_name": '', //科别
- "reason": '', //原因
- "result_of_2_weeks": '' //2周内随访,随访结果
- },
- "process_opinion": '', //处理意见,
- "next_followup_date": null, //下次随访时间
- "followup_doctor": '', // 随访医生code
- "followup_doctor_name": '',// 随访医生name
- },
- // 2
- {
- "create_user": '',
- "create_user_name": '',
- "followup_date": null,//随访日期,
- "way": '',//随访方式:1-门诊,2-家庭 //整数
- "treate_month": '',//治疗月序
- "superviser": {
- "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
- "superviser_code": '',//督导人员code
- "superviser_name": ''//督导人员name
- },
- "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
- "symptom_other_desc": '',//症状及体征其他描述
- "life_style": {
- "smoke": '', //生活方式-吸烟量
- "smoke_day":'',
- "drink": '', //生活方式-饮酒量
- "drink_day":''
- },
- "drug_use": {
- "chemotherapy": '',//用药情况-化疗方案,
- "method": '', //用药情况-用法:1-每日,2-间歇
- "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
- "forgot_take_drug_times": '',//漏服药次数
- },
- "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
- "drug_bad_reaction_detail": '', //药物不良反应描述
- "complication": '', // 并发症 1-无,2-有
- "complication_detail": '', //并發症描述,
- "trans_org": { //转诊
- "dept_code": '', //科别code
- "dept_name": '', //科别
- "reason": '', //原因
- "result_of_2_weeks": '' //2周内随访,随访结果
- },
- "process_opinion": '', //处理意见,
- "next_followup_date": null, //下次随访时间
- "followup_doctor": '', // 随访医生code
- "followup_doctor_name": '',// 随访医生name
- },
- // 3
- {
- "create_user": '',
- "create_user_name": '',
- "followup_date": null, //随访日期
- "way": '',//随访方式:1-门诊,2-家庭 //整数
- "treate_month": '',//治疗月序
- "superviser": {
- "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
- "superviser_code": '',//督导人员code
- "superviser_name": ''//督导人员name
- },
- "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
- "symptom_other_desc": '',//症状及体征其他描述
- "life_style": {
- "smoke": '', //生活方式-吸烟量
- "smoke_day":'',
- "drink": '', //生活方式-饮酒量
- "drink_day":''
- },
- "drug_use": {
- "chemotherapy": '',//用药情况-化疗方案,
- "method": '', //用药情况-用法:1-每日,2-间歇
- "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
- "forgot_take_drug_times": '',//漏服药次数
- },
- "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
- "drug_bad_reaction_detail": '', //药物不良反应描述
- "complication": '', // 并发症 1-无,2-有
- "complication_detail": '', //并發症描述,
- "trans_org": { //转诊
- "dept_code": '', //科别code
- "dept_name": '', //科别
- "reason": '', //原因
- "result_of_2_weeks": '' //2周内随访,随访结果
- },
- "process_opinion": '', //处理意见,
- "next_followup_date": null, //下次随访时间
- "followup_doctor": '', // 随访医生code
- "followup_doctor_name": '',// 随访医生name
- },
- //4
- {
- "create_user": '',
- "create_user_name": '',
- "followup_date": null, //随访日期
- "way": '',//随访方式:1-门诊,2-家庭 //整数
- "treate_month": '',//治疗月序
- "superviser": {
- "superviser_type": '',//督导人员类型:1-医生,2-家属,3-自服药,4-其他
- "superviser_code": '',//督导人员code
- "superviser_name": ''//督导人员name
- },
- "symptom": '',// string 症状及体征:0-没有症状,1-咳嗽咳痰,2-低热盗汗,3-咯血或血痰,4-胸痛消瘦,5-恶心纳差,6-头痛失眠,7-视物模糊,8-皮肤瘙痒、皮疹,9-耳鸣、听力下降
- "symptom_other_desc": '',//症状及体征其他描述
- "life_style": {
- "smoke": '', //生活方式-吸烟量
- "smoke_day":'',
- "drink": '', //生活方式-饮酒量
- "drink_day":''
- },
- "drug_use": {
- "chemotherapy": '',//用药情况-化疗方案,
- "method": '', //用药情况-用法:1-每日,2-间歇
- "dosage_form": '',// string 用药情况-药品剂型:1、固定剂量复合制剂,2-散装药,3-板式组合药,4-注射剂,
- "forgot_take_drug_times": '',//漏服药次数
- },
- "drug_bad_reaction": '', // 药物不良反应 1-无,2-有
- "drug_bad_reaction_detail": '', //药物不良反应描述
- "complication": '', // 并发症 1-无,2-有
- "complication_detail": '', //并發症描述,
- "trans_org": { //转诊
- "dept_code": '', //科别code
- "dept_name": '', //科别
- "reason": '', //原因
- "result_of_2_weeks": '' //2周内随访,随访结果
- },
- "process_opinion": '', //处理意见,
- "next_followup_date": null, //下次随访时间
- "followup_doctor": '', // 随访医生code
- "followup_doctor_name": '',// 随访医生name
- }
- ],
- "management": {
- "plan_followup_times": '', // 应访视患者次数,
- "real_followup_times": '', // 实际访视次数
- "plan_take_drug_times": '', // 患者应服药次数
- "real_take_drug_times": '', // 实际服药次数
- "take_drug_percent": '', // 患者服药率
- "signature_doctor": '', // 评估医生code
- "signature_doctor_name": '' // 评估医生签名
- },
- "stop_treate": { //停止治疗及原因
- "date": null, // 停止日期
- "reason": ''//停止原因
- }
- }
- }
- },
- mounted: function () {
- var docInfo = JSON.parse(window.localStorage.getItem("wlyyAgent"));
- console.log(docInfo.uid)
- console.log(docInfo.name)
- this.getData()
- },
- computed:{
- percent: function (){
- var vm = this
- if(vm.parient.management.real_take_drug_times && vm.parient.management.plan_take_drug_times){
- return ((vm.parient.management.real_take_drug_times / vm.parient.management.plan_take_drug_times) * 100).toFixed(2)
- }else{
- return 0
- }
-
- }
- },
- methods: {
- getData: function () {
- var vm = this
- // var vmP = this.postpartumVisitDetails Request['id']||'1'
- fangshiAPI.getPhthisis({ followupId: Request['id']||'1' }).then(function (res) {
- if(res.status==200 && !res.data[0]){
- vm.getStatus(true)
- }
- if (res.status == 200 && res.data[0]) {
- console.log("获取肺结核信息")
- console.log(res)
- vm.parient = res.data[0]
- vm.dealData()
- // vm.parient.data = vm.parient.data.map(function(ele){
- // var item = ele
- // item.superviser.superviser_type = superviser.superviser_type.toString()
- // console.log(item.superviser.superviser_type)
- // return item
- // })
- vm.getStatus(false)
- } else {
- // top.toastr.info(res.msg);
- }
- })
- },
- dealData: function () {
- //转换用药数据
- var vm=this
- vm.yongyao1 = vm.parient.data[0].drug_use.dosage_form ? vm.parient.data[0].drug_use.dosage_form.split(',') : []
- vm.yongyao2 = vm.parient.data[1].drug_use.dosage_form ? vm.parient.data[1].drug_use.dosage_form.split(',') : []
- vm.yongyao3 = vm.parient.data[2].drug_use.dosage_form ? vm.parient.data[2].drug_use.dosage_form.split(',') : []
- vm.yongyao4 = vm.parient.data[3].drug_use.dosage_form ? vm.parient.data[3].drug_use.dosage_form.split(',') : []
- //转换体征信息
- vm.tizheng = vm.parient.data[0].symptom ? vm.parient.data[0].symptom.split(',') : []
- console.log(vm.parient)
- for (var i = 0; i < 4; i++) {
- vm.parient.data[i].superviser.superviser_type = vm.parient.data[i].superviser.superviser_type.toString()
- vm.parient.data[i].way = vm.parient.data[i].way ? vm.parient.data[i].way.toString() : vm.parient.data[i].way
- vm.parient.data[i].drug_use.method = vm.parient.data[i].drug_use ? vm.parient.data[i].drug_use.method.toString() : vm.parient.data[i].drug_use
- vm.parient.data[i].drug_bad_reaction = vm.parient.data[i].drug_bad_reaction ? vm.parient.data[i].drug_bad_reaction.toString() : vm.parient.data[i].drug_bad_reaction
- vm.parient.data[i].complication = vm.parient.data[i].complication ? vm.parient.data[i].complication.toString() : vm.parient.data[i].complication
- vm.parient.stop_treate.reason = vm.parient.stop_treate.reason ? vm.parient.stop_treate.reason.toString() : vm.parient.stop_treate.reason
- vm.$forceUpdate()
- }
- console.log("!!!!!!")
- console.log(vm.parient)
- },
- getLastData: function (obj) {
- var vm = this
- fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass, patientCode: vm.patientCode }).then(function (res) {
- if (res.status == 200) {
- // 默认信息
- vm.parient.patient.name = obj.name
- vm.parient.management.signature_doctor_name = obj.doctorName
- for (var i = 0; i < 4; i++) {
- vm.parient.data[i].followup_doctor_name = obj.doctorName
- }
- // 居民存在上次历史记录,则代入默认信息
- if (res.data.detail) {
- if (res.data.detail[0]) {
- vm.parient = res.data.detail[0]
- vm.dealData()
- }
- }
- //默认日期(不被历史记录覆盖)
- for (var i=0; i<4 ;i++){
- vm.parient.data[i].followup_date=new Date().format("yyyy-MM-dd")
- }
- for (var i=0; i<4 ;i++){
- vm.parient.data[0].next_followup_date=null
- }
-
-
- }
- })
- },
- // 完成随访状态修改
- finish: function () {
- var vm = this
- fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:1 }).then(function (res) {
- if (res.status == 200) {
- vm.finishedStatus=true
- vm.setEditBtn()
- top.toastr.info("完成随访成功")
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- editData: function () {
- var vm = this
- var docInfo = JSON.parse(window.localStorage.getItem("wlyyAgent"));
- console.log("保存")
- for (var i = 0; i < 4; i++) {
- vm.parient.data[i].create_user = docInfo.uid
- vm.parient.data[i].create_user_name = docInfo.name
- vm.parient.data[i].symptom = vm.tizheng ? vm.tizheng.join(',') : ''
-
- // 并发症 1-无,2-有
- vm.parient.data[i].drug_bad_reaction_detail = vm.parient.data[i].drug_bad_reaction==2?vm.parient.data[i].drug_bad_reaction_detail:''
- vm.parient.data[i].complication_detail = vm.parient.data[i].complication==2?vm.parient.data[i].complication_detail:''
- }
- vm.parient.data[0].drug_use.dosage_form = vm.yongyao1 ? vm.yongyao1.join(',') : ''
- vm.parient.data[1].drug_use.dosage_form = vm.yongyao2 ? vm.yongyao2.join(',') : ''
- vm.parient.data[2].drug_use.dosage_form = vm.yongyao3 ? vm.yongyao3.join(',') : ''
- vm.parient.data[3].drug_use.dosage_form = vm.yongyao4 ? vm.yongyao4.join(',') : ''
- vm.parient.management.take_drug_percent = vm.percent
- // if (!vm.parient.patient.name) {
- // top.toastr.info("请输入患者姓名")
- // return false
- // }
- // if (!vm.parient.number) {
- // top.toastr.info("请输入编号")
- // return false
- // }
- vm.parient.followup_id=Request['id']
- fangshiAPI.savePhthisis({ jsonData: JSON.stringify(vm.parient) }).then(function (res) {
- if (res.status == 200) {
- vm.finishedStatus ? '' : vm.finish()
- vm.finishedStatus ? top.toastr.info('保存成功') : ''
- } else {
- top.toastr.error(res.msg);
- }
- })
- },
- setEditBtn: function () {
- var btn = document.getElementsByClassName('button')[0]
- if (!this.finishedStatus) {
- btn.innerHTML = '完成随访'
- this.editable = true
- return
- }
- if (this.isEditBtn == true) {
- btn.innerHTML = '编辑'
- this.editable = false
- } else if (this.isEditBtn == false) {
- btn.innerHTML = '保存'
- this.editable = true
- }
- },
- editBtn: function () {
- if (this.finishedStatus) {
- this.isEditBtn = !this.isEditBtn
- }
- this.setEditBtn()
- this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据
- },
- //获取当前随访状态信息 Request['id']||'1'
- getStatus:function(getLast){
- var vm = this
- fangshiAPI.getFollowupInfo({ followupId: Request['id']||'1'}).then(function (res) {
- if (res.status == 200) {
- res.data.status != 1 ? vm.finishedStatus = false : vm.finishedStatus = true
- vm.patientCode = res.data.patientCode
- vm.followupClass = res.data.followupClass
- var obj = {}
- obj.name = res.data.patient.name
- obj.doctorName = res.data.doctorName
- // finishedStatus:true 随访完成,false 随访未完成
- if(getLast){
- vm.getLastData(obj)
- }
- vm.setEditBtn()
- } else {
- top.toastr.error(res.msg);
- }
- })
- }
- }
- })
- </script>
- </body>
- </html>
|