123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907 |
- <!-- 导管脱落 -->
- <template>
- <div class="patient-container">
- <div class="patient-app-containers advice-container app-container">
- <div style="display: flex;margin-bottom: 20px;">
- <div style="width: 50%;">
- <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
- <div class="history">历史评分</div>
- </div>
- <div style="margin-left: 30%;">
- <el-button type="primary" @click="open_pingfen">打印评分</el-button>
- <el-button type="primary" @click="open_mingxi">打印明细</el-button>
- </div>
- </div>
- <div>
- <el-table
- ref="multipleTable"
- :data="tableData"
- border
-
- tooltip-effect="dark"
- :header-cell-style="{
- background:'#4579c5',
- color:'#fff'
- }"
- style="width: 100%"
- @selection-change="handleSelectionChange">
- <el-table-column
- type="selection"
- width="55"
- align="center">
- </el-table-column>
- <el-table-column
- prop="time"
- label="评估日期"
- width="120"
- align="center">
- </el-table-column>
- <el-table-column
- prop="radio"
- label="脱管后风险程度"
- width="130"
- align="center">
- </el-table-column>
- <el-table-column
- prop="radio1"
- label="患者意识程度"
- width="130"
- align="center">
- </el-table-column>
- <el-table-column
- prop="radio2"
- label="患者配合程度"
- width="130"
- align="center">
- </el-table-column>
- <el-table-column
- prop="cuoshi_show"
- label="护理措施"
- width=""
- align="center">
- </el-table-column>
- <el-table-column
- prop="mark"
- label="总评分"
- width="80"
- align="center">
- </el-table-column>
- <el-table-column
- prop="evaluate"
- label="责任护士"
- width="100"
- align="center">
- </el-table-column>
- <el-table-column
- label="操作"
- width="155"
- align="center"
- show-overflow-tooltip>
- <template slot-scope="scope">
- <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
- <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
-
- <!-- 打印评分 -->
- <el-dialog
- title="提示"
- :visible.sync="dialogVisible"
- width="67%"
- >
- <div>
- <el-button type="primary" @click="print_pingfen(1)" style="float:right">打印</el-button>
- <div id="pingfeng" >
- <div class="diedao_content" style="">
- <div style="width:100%">
- <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
- <div style="margin-top: 20px;font-size: 16px;">
- <span>患者姓名:{{ Patient_info.name }}</span>
- <span>透析号:{{ Patient_info.dialysis_no }}</span>
- <span>打印时间:{{ dayin }}</span>
- </div>
- <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
- <tr>
- <td style="width:100px">评估日期</td>
- <td style="width:100px">脱管后风险程度</td>
- <td style="width:100px">患者意识程度</td>
- <td style="width:100px">患者配合程度</td>
- <td style="width:400px">护理措施</td>
- <td style="width:100px">总评分</td>
- <td style="width:100px">责任护士</td>
- </tr>
-
- <tr v-for="(item,index) in multipleSelection" :key="index">
- <td>{{ item.time }}</td>
- <td>{{ item.radio }}</td>
- <td>{{ item.radio1 }}</td>
- <td>{{ item.radio2 }}</td>
- <td>{{ item.cuoshi_show }}</td>
- <td>{{ item.mark }}</td>
- <td>{{ item.evaluate }}</td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- </div>
-
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
- </span>
- </el-dialog>
- <!-- 打印明细 -->
- <el-dialog
- title="提示"
- :visible.sync="mingxi_dialogVisible"
- width="67%"
- >
- <div>
- <div style="">
- <el-button type="primary" @click="print_pingfen(2)" style="float:right">打印</el-button>
- </div>
-
- <div id="mingxi" >
- <div class="diedao_content" style="page-break-after: always;" v-for="items in multipleSelection">
- <div style="width:100%;margin-top: 20px;">
- <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
- <div style="margin-top: 20px;font-size: 16px;">
- <span>患者姓名:{{ Patient_info.name }}</span>
- <span>透析号:{{ Patient_info.dialysis_no }}</span>
- <span>评估日期:{{ items.time }}</span>
- <span>责任护士:{{ items.evaluate}}</span>
- <span>总分:{{ items.mark }}</span>
- </div>
- <table class="table" border="1" style="width: 100%; border-collapse:collapse ;">
- <thead>
- <tr>
- <th style="width: 15%;">项目</th>
- <th style="width: 50%;">分值</th>
- <th>护理措施</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="start">A.脱管后风险程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="items.radio">
- <el-radio v-for="(item,index ) in tuoguan" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
- </el-radio-group>
- </div>
- </td>
- <td rowspan="3">
- <div style="vertical-align: top; color: black; padding: 5px;">
- <span >
- <template v-for="item in items.cuoshi1">
- <span >
- <label><input type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/> <span>{{ item.id }}.</span>{{item.label}}</label> <br/>
- </span>
- </template>
- <!-- :checked="it==item.id ? true : false" -->
- </span>
- </div>
- </td>
- </tr>
- <tr>
- <td class="start">B.患者意识程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="items.radio1">
- <el-radio v-for="(item,index ) in yishi" :label="item.value" :key="index">{{ item.label }}</el-radio>
- </el-radio-group>
- </div>
- </td>
- </tr>
- <tr>
- <td class="start">C.患者配合程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="items.radio2">
- <el-radio v-for="(item,index ) in peihe" :label="item.value" :key="index">{{ item.label }}</el-radio>
- </el-radio-group>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- <div style="margin-top: 20px;">
- <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
- <p style="display: inline-block;">
- 日期:
- <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.jiashu_date}}</span>
- </p>
- </div>
- <div class="zhuangui">
- <span>转归:</span>
- <el-radio v-model="items.zhuanggui" label="1">脱落</el-radio>
- <el-radio v-model="items.zhuanggui" label="2">未脱落</el-radio>
- </div>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 30px;">
- 评估人签字:
- <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ getoptions(items.appraiser) }}</span>
- </p>
- <p style="display: inline-block;">
- 日期:
- <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.time }}</span>
- </p>
- </div>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 30px;">
- 护士长签字:
- <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ getoptions(items.hushi) }}</span>
- </p>
- <p style="display: inline-block;">
- 日期:
- <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.hushi_date }}</span>
- </p>
- </div>
- </div>
- <hr style="margin: 10px 0px;border:1px solid rgb(135, 133, 133);"/><!--水平线-->
- <div class="shuoming">
- <p>说明:</p>
- <p>1.<5分为正常,5~8分为危险,≥9分为高度危险。</p>
- <p>2.导管脱落危险因素≥5分,需填写该表。</p>
- <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
- </div>
- <div style="font-size: 16px;">打印时间:{{ dayin }}</div>
- </div>
- </div>
- </div>
- </div>
- </el-dialog>
- <!-- 编辑 -->
- <el-dialog
- title="提示"
- :visible.sync="editor_dialogVisible"
- width="67%"
- >
- <div>
- <table class="tables" border="1" style="width: 100%;border-collapse: collapse;">
- <thead>
- <tr>
- <th style="width: 15%;">项目</th>
- <th style="width: 50%;">分值</th>
- <th>护理措施</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td class="start">A.脱管后风险程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="radio" @change="handleCheckedCitiesChange">
- <el-radio v-for="(item,index ) in tuoguan" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
- </el-radio-group>
- </div>
- </td>
- <td rowspan="3">
- <div style="vertical-align: top; color: black; padding: 5px;">
- <span v-for="item in hulicuoshi">
- <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/> <span>{{ item.id }}.</span>{{item.label}}</label> <br/>
- </span>
- </div>
- </td>
- </tr>
- <tr>
- <td class="start">B.患者意识程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="radio1" @change="handleCheckedCitiesChange">
- <el-radio v-for="(item,index ) in yishi" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
- <!-- <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio> -->
- </el-radio-group>
- </div>
- </td>
- </tr>
- <tr>
- <td class="start">C.患者配合程度</td>
- <td>
- <div class="jiange">
- <el-radio-group v-model="radio2" @change="handleCheckedCitiesChange">
- <el-radio v-for="(item,index ) in peihe" :label="item.value" :key="index" style="">{{ item.label }}</el-radio>
- <!-- <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio> -->
- </el-radio-group>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
-
- <div class="content_top" style="margin: 10px 0px;">
- <div>
- <div class="bottoms">
- <span>总分:</span>
- <el-input v-model="duct_Totalpoints" style="width: 100px;"></el-input>分
- </div>
-
- <div class="bottoms">
- <span>评估日期:</span>
- <el-date-picker
- v-model="date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- :clearable="false"
- style="width: 150px;">
- </el-date-picker>
- </div>
-
- <div class="bottoms">
- <span>责任护士:</span>
- <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
- <el-option
- v-for="item in Dutynursearr"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id"
- >
- </el-option>
- </el-select>
- </div>
-
- </div>
- <div style="margin:5px 10px;">
- <el-button type="primary" @click="daoguanclick">确认</el-button>
- </div>
- </div>
- <hr style="border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
- <div style="margin-top: 20px;">
- <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
- <p style="display: inline-block;">
- 日期:
- <el-date-picker
- v-model="jiashu_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- </p>
- </div>
- <div class="zhuangui">
- <span>转归:</span>
- <el-radio v-model="zhuanggui" label="1">脱落</el-radio>
- <el-radio v-model="zhuanggui" label="2">未脱落</el-radio>
- </div>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 30px;">
- 评估人签字:
- <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
- <el-option
- v-for="item in Dutynursearr"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id">
- </el-option>
- </el-select>
- </p>
- <p style="display: inline-block;">
- 日期:
- <el-date-picker
- v-model="date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- </p>
- </div>
- <div class="zhuangui">
- <p style="display: inline-block; margin-right: 30px;">
- 护士长签字:
- <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
- <el-option
- v-for="item in Dutynursearr"
- :key="item.admin_user_id"
- :label="item.user_name"
- :value="item.admin_user_id">
- </el-option>
- </el-select>
- </p>
- <p style="display: inline-block;">
- 日期:
- <el-date-picker
- v-model="hushi_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- </p>
- </div>
- </div>
- <hr style="margin: 10px 0px;border:none;height:1px;background:#DCDFE6;"/><!--水平线-->
- <div class="shuoming">
- <p>说明:</p>
- <p>1.<5分为正常,5~8分为危险,≥9分为高度危险。</p>
- <p>2.导管脱落危险因素≥5分,需填写该表。</p>
- <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
- </div>
- </el-dialog>
- <!--删除 -->
- <el-dialog
- title="提示"
- :visible.sync="delete_centerDialogVisible"
- width="20%"
- center>
- <span>是否删除该记录</span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="delete_daogaun">确 定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import print from 'print-js'
- import { uParseTime } from '@/utils/tools'
- import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
- deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
- export default{
- data(){
- return{
- tableData:[],
- multipleSelection:[],
- dialogVisible:false,
- mingxi_dialogVisible:false,
- editor_dialogVisible:false,
- delete_centerDialogVisible:false,
- value1:'',
- radio:'',
- radio1:'',
- radio2:'',
- radio_val:null,
- radio1_val:null,
- radio2_val:null,
- // duct_Totalpoints:0,
- options:[],
- input:'',
- value:'',
- row:'',
- tableData:[],
- date:this.getTime(new Date()),
- appraiser:'',
- // optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
- Dutynurse:'',//责任护士
- // Dutynursearr:[],//责任护士数组
- Dutynursearr:[],
- jiashu_date:this.getTime(new Date()),//家属时间
- zhuanggui:'',//转归
- hushi:'',//护理
- // hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
- hushi_date:this.getTime(new Date()),//护理时间
- limit:10,
- page:1,
- patient_id:'',
- Patient_info:{},
- cuoshi_show:[],//护理措施选中数组
- row_id:0,//table选中的id
- cath_zong:0,
- dayin:this.getTime2(new Date()),
- tuoguan:[{value:1,label:'低危导管 (1分)',is_check:false,check:0},
- {value:2,label:'中危导管 (2分)',is_check:false,check:0},
- {value:3,label:'高危导管 (3分)',is_check:false,check:0}
- ],
- yishi:[{value:0,label:'意识清醒 (0分)',is_check:false,check:0},
- {value:1,label:'中昏迷、深昏迷 (1分)',is_check:false,check:0},
- {value:2,label:'嗜睡、昏睡 (2分)',is_check:false,check:0},
- {value:3,label:'浅昏迷 (3分)',is_check:false,check:0},
- {value:4,label:'意识模糊 (4分)',is_check:false,check:0},
- ],
- peihe:[{value:1,label:'完全配合 (1分)',is_check:false,check:0},
- {value:2,label:'部分配合 (2分)',is_check:false,check:0},
- {value:3,label:'不配合 (3分)',is_check:false,check:0},
- ],
- hulicuoshi:[{id:1,label:'管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
- {id:2,label:'床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{id:3,label:'正确妥善固定;',is_check:false,check:0},
- {id:4,label:'正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
- {id:5,label:'加强巡视,及时发现满足患者需要;',is_check:false,check:0},{id:6,label:'严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
- {id:7,label:'昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
- {id:8,label:'进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
- {id:9,label:'对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
- }
- },
- created(){
- this.patient_id = this.$route.query.patient_id
- this.Patient_info = this.$route.query.Patient_info
- this.getlist()
- this.getAllNurseList()
- },
- methods:{
- fanhui(){
- window.history.go(-1);
- },
- handleSelectionChange(val) {
- this.multipleSelection = val;
- console.log('val',val);
- },
- open_pingfen(){
- if(this.multipleSelection.length==0){
- this.$message('请选择需要打印的记录')
- }else{
- this.dialogVisible=true
- }
-
- },
- open_mingxi(){
- if(this.multipleSelection.length==0){
- this.$message('请选择需要打印的记录')
- }else{
- this.mingxi_dialogVisible=true
- }
-
- },
- print_pingfen(ids){
- const style= '@media print {.diedao_content{background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
- if(ids==1){
- printJS({
- printable: 'pingfeng',
- type: 'html',
- style: style,
- scanStyles: false
- })
- this.dialogVisible=false
- }else if(ids==2){
- printJS({
- printable: 'mingxi',
- type: 'html',
- style: style,
- scanStyles: false
- })
- this.mingxi_dialogVisible=false
- }
-
- },
- // 打开编辑
- open_xiugai(row){
- this.row_id = row.id
- this.editor_dialogVisible=true
- getPedPatientFallAssessmentById(row.id).then(response =>{
- if(response.data.state == 1){
- const cath_xg = response.data.data.fallassessment
- for(let i in this.hulicuoshi){
- this.hulicuoshi[i].is_check = false
- this.hulicuoshi[i].check = 0
- this.cuoshi_show.length=0
- }
- if(cath_xg.text !=''){
- const text = JSON.parse(cath_xg.text)
- this.radio = text.radio
- this.radio1 = text.radio1
- this.radio2 = text.radio2
- this.duct_Totalpoints = text.total
- this.date = text.date
- this.Dutynurse = text.Dutynurse
- this.jiashu_date = text.jiashu_date
- this.zhuanggui = text.zhuanggui
- this.hushi = text.hushi
- this.hushi_date = text.hushi_date
- this.appraiser = text.appraiser
- for(let i in this.hulicuoshi){
- for(let j in text.cuoshi){
- if(text.cuoshi[j] == this.hulicuoshi[i].id){
- this.hulicuoshi[i].is_check = true
- this.hulicuoshi[i].check = 1
- this.cuoshi_show.push(text.cuoshi[j])
- }
- }
-
- }
- }
- }
- })
- },
- // 打开删除弹窗
- open_delete(row){
- this.row=row.id
- this.delete_centerDialogVisible=true
- },
- // 确认删除
- delete_daogaun(){
- deletePedPatientFallassment(this.row).then(response =>{
- if(response.data.state == 1){
- for(let i=0;i<this.tableData.length;i++){
- if(this.row==this.tableData[i].id){
- this.tableData.splice(i,1)
- }
- }
- }
- this.$message({message:'删除成功',type:'success'})
- })
- this.delete_centerDialogVisible=false
- return this.tableData
- },
- handleCheckedCitiesChange(e){
- if(e == this.radio){
- this.radio = e
- }
- if(e == this.radio1){
- this.radio1 = e
- }
- if(e == this.radio2){
- this.radio2 = e
- }
- },
- // 确认
- daoguanclick(){
- const data = {}
- var list =[]
- data['radio'] = this.radio
- data['radio1'] = this.radio1
- data['radio2'] = this.radio2
- data['total'] = this.duct_Totalpoints
- data['cuoshi'] = this.cuoshi_show
- data['date'] = this.date
- data['Dutynurse'] = this.Dutynurse
- data['appraiser'] = this.appraiser
- data['jiashu_date'] = this.jiashu_date
- data['zhuanggui'] = this.zhuanggui
- data['hushi'] = this.hushi
- data['hushi_date'] = this.hushi_date
- list.push(data)
- var params={
- patient_id:this.patient_id,
- record_date:this.date,
- is_type:4,
- list:list,
- id:this.row_id
- }
- updateBedPatientList(params).then(response =>{
- if(response.data.state == 1){
- const daog = response.data.data.pedFallssessment
- console.log('22222',daog);
- if(daog.text !=''){
- const text = JSON.parse(daog.text)
- for(let i in this.tableData){
- if(daog.id == this.tableData[i].id){
- this.tableData[i].id = daog.id
- this.tableData[i].radio = text.radio
- this.tableData[i].radio1 = text.radio1
- this.tableData[i].radio2 = text.radio2
- this.tableData[i].mark = text.total
- this.tableData[i].cuoshi_show = this.getcuoshi(text.cuoshi)
- this.tableData[i].time = text.date//评估时间
- this.tableData[i].evaluate = this.getoptions(text.Dutynurse)
- this.tableData[i].jiashu_date = text.jiashu_date
- this.tableData[i].zhuanggui = text.zhuanggui
- this.tableData[i].hushi = text.hushi
- this.tableData[i].hushi_date = text.hushi_date
- this.tableData[i].appraiser = text.appraiser
- this.tableData[i].huli_show = text.cuoshi
- }
- }
- }
- console.log('zzzzzzz',this.tableData);
- this.editor_dialogVisible = false
- this.$message({message:'修改成功',type:'success'})
- return this.tableData
- }
- })
- },
- // 点击护理措施
- cuoshi(item){
- for(let i in this.hulicuoshi){
- if(item.label==this.hulicuoshi[i].label ){
- if(item.is_check==false){
- this.hulicuoshi[i].check= 1
- this.hulicuoshi[i].is_check = true
- this.cuoshi_show.push(item.id)
- }else{
- this.hulicuoshi[i].check= 0
- this.hulicuoshi[i].is_check = false
- if(this.cuoshi_show.length>0){
- for(let j in this.cuoshi_show){
- if(item.id == this.cuoshi_show[j]){
- let index = this.cuoshi_show.indexOf(this.cuoshi_show[j]);
- this.cuoshi_show.splice(index,1)
- }
- }
- }
- }
- }
- }
- console.log('qqqqq',this.cuoshi_show);
- },
- // 转换时间
- getTime(val) {
- if(val < 0){
- return ""
- }
- if(val == ""){
- return ""
- }else {
- return uParseTime(val, '{y}-{m}-{d}')
- }
- },
- getTime2(val){
- if(val < 0){
- return ""
- }
- if(val == ""){
- return ""
- }else {
- return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
- }
- },
- // 数据源
- getlist(){
- var params = {
- patient_id:this.patient_id,
- limit:this.limit,
- is_type:4,
- page:this.page,
- }
- getPatientBedlist(params).then(response =>{
- if(response.data.state == 1){
- var list = response.data.data.list
-
- list.forEach(item => {
- if(item.text !=''){
- const text = JSON.parse(item.text)
- console.log('list-----',text);
- const arr = {
- id:item.id,
- radio:text.radio,
- radio1:text.radio1,
- radio2:text.radio2,
- mark:text.total,
- cuoshi_show:this.getcuoshi(text.cuoshi),
- time:text.date,//评估时间
- evaluate:this.getoptions(text.Dutynurse),
- jiashu_date:text.jiashu_date,
- zhuanggui:text.zhuanggui,
- hushi:text.hushi,
- hushi_date:text.hushi_date,
- cuoshi1:text.cuoshi1,
- appraiser:text.appraiser
- }
- this.tableData.push(arr)
- }
-
- });
- console.log('nnnnn',this.tableData);
- }
- })
- },
-
- // 评估护士
- getoptions(ids){
- const options= this.Dutynursearr
- for(let i in options){
- if(options[i].admin_user_id == ids){
- return options[i].user_name
- }
- }
- },
- // 护理措施
- getcuoshi(item){
- var arr =[]
- for(let i in this.hulicuoshi){
- for(let j in item){
- if(item[j]==this.hulicuoshi[i].id){
- arr.push(this.hulicuoshi[i].label)
- }
- }
- var arr2 = arr.join()
- }
- return arr2
- },
- // 评估人数据源
- getAllNurseList(){
- getAllNurseList().then(response=>{
- if(response.data.state ==1){
- var nurseList = response.data.data.nurseList
-
- this.Dutynursearr =nurseList
- }
- })
- },
- },
- computed:{
- duct_Totalpoints:{
- get(){
- this.cath_zong = this.radio + this.radio1 + this.radio2
- return this.cath_zong
- },
- set(val){
- return this.cath_zong = val
- }
-
- }
-
- }
- }
- </script>
- <style lang="scss" scoped>
- .patient-app-containers {
- margin-left: 10px;
- margin-right: 10px;
- background: #fff;
- }
- .history{
- display: inline-block;
- border-left:2px solid gray ;
- padding: 0 10px;
- margin-left:10px;
- color: gray;
- font-size: 18px;
- }
- .diedao_content{
- background-color: white;
- width:960px;
- margin:0 auto;
- padding: 0 0 20px 0;
- }
- .table tr td{
- padding:5px,
- }
- .tables{
- border: 1px solid #DCDFE6;
- border-collapse:collapse;
- border-spacing: 0;
- thead th{
- background: #0077ff9f;
- color: white;
- text-align: center;
- height: 40px;
- }
- tbody td{
- height: 40px;
- .el-radio {
- color: #101010;
- cursor: pointer;
- margin-right: 30px;
- font-size: 15px !important;
- }
- }
- .start{
- text-align: center;
- }
- .bing{
- width: 150px;
- text-align: center;
- }
- .bg_color{
- background: rgb(243, 240, 240);
- }
- .jiange{
- // margin-left: 20px;
- padding-left: 10px;
- color: black;
- }
- input{
- -webkit-appearance: checkbox;
- }
- }
- .shuoming p{
- margin-top: 5px;
- color: rgb(167, 165, 165);
- }
- .zhuangui{
- margin-top: 10px;
- }
- .content_top{
- display: flex;
- justify-content: space-between;
- }
- .bottoms{
- display: inline-block;
- margin-left: 10px;
- margin-top: 5px;
- }
- input{
- -webkit-appearance: checkbox;
- }
- </style>
|