1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843 |
- <template>
- <!-- <div class="main-contain">
- <div class="position">
- <bread-crumb></bread-crumb>
- </div> -->
- <div class="patient-container">
- <PatientSidebar :id="patient_id" defaultActive="3-5"></PatientSidebar>
- <div v-loading="loading">
- <div class="patient-app-container advice-container app-container" style="">
- <div style="display: flex;">
- <div style="width: 34%;">
- <div style="display: flex;">
- <div style="flex: 1.1;">
- <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">病史列表</span>
- </div>
- <div style="flex: 0.9;text-align: right;">
- <el-button type="primary" size="small" @click="add_click">添加</el-button>
- </div>
- </div>
- <div>
- <el-table class="table"
- ref="phy_table"
- :data="tableData"
- :highlight-current-row="true"
- @current-change="getCurrentChangeOne"
- style="width: 100%">
-
- <el-table-column prop="index" label="序号" width="50">
- <template slot-scope="scope">
- {{ scope.$index + 1 }}
- </template>
- </el-table-column>
- <el-table-column prop="date" label="时间" width="">
- <template slot-scope="scope">
- {{ getTime(scope.row.record_time) }}
- </template>
- </el-table-column>
- <el-table-column prop="doctor" label="医生">
- <template slot-scope="scope">
- {{ getDocName(scope.row.recorder) }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div style="width: 65%;margin-left: 10px;">
- <div style="display: flex;">
- <div style="flex: 1;">
- <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;">详情</span>
- </div>
- <div style="flex: 1;text-align: right;">
- <div v-if='add_index == 0'>
- <el-button type="primary" size="small" @click="showEdit">修改</el-button>
- <el-button size="small" type="danger" @click="deleteAction">删除</el-button>
- <el-button type="primary" size="small" @click="prints">打印</el-button>
- </div>
- <div v-if="add_index == 1">
- <el-button type="primary" size="small" @click="showSave">保存</el-button>
- <el-button size="small" @click="showCancel">取消</el-button>
- </div>
- </div>
- </div>
- <div style="display: flex;margin: 10px 0;">
- <div style="flex: 1;">
- 记录时间:
- <el-date-picker v-model="record_date" prefix-icon="el-icon-date" :editable="false"
- style="width: 250px;"
- type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm:ss"
- value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
- </div>
- <div style="flex: 1;">
- 病程医生:
- <el-select v-model="admin_user_id" placeholder="请选择" :disabled="disabled">
- <el-option
- v-for="item in doctorOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </div>
- </div>
- <div>
- <span style="display: inline-block;border-left: 5px solid #3891f1f5;padding-left: 5px;margin-bottom: 5px;">
- 病程内容
- </span>
- <div style="display:flex;">
- <div>
- 取值时间:
- <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
- <el-option
- v-for="item in quzhi_options"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div style="margin:0 10px">
- <el-date-picker
- @change="changStartDate"
- v-model="start_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- <span>-</span>
- <el-date-picker
- @change="changEndDate"
- v-model="end_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- </div>
- <!-- <div>
- <el-button type="primary" size="small" @click="autotext_click">
- 生成
- </el-button>
- <el-button type="primary" size="small" @click="auto_dialog=false">
- 取消
- </el-button>
- </div> -->
- </div>
- <div style="margin: 10px 0;">
- <el-button type="primary" size="small" @click="template_click">
- {{ add_index ==0 ? '设置模板' : '模板库' }}
- </el-button>
- <el-button type="primary" size="small" @click="auto_click">
- 自动生成
- </el-button>
- </div>
- <ueditor ref="editor" id="editors" :content="new_content"></ueditor>
- </div>
- </div>
- </div>
- </div>
-
-
- <el-dialog
- title="设置模板"
- :visible.sync="template_dialog"
- width="20%"
- center>
- <div>
- 模板名称:
- <el-input v-model="title" placeholder="请输入内容" style="width: 160px;"></el-input>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="template_dialog = false">取 消</el-button>
- <el-button type="primary" @click="saveTemplate">确 定</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="模板库"
- :visible.sync="library_dialog"
- width="70%"
- class="lirary"
- >
- <div>
- <div style="display: flex;">
- <div style="width: 27%;">
- <el-table
- :data="templateList"
- :highlight-current-row="true"
- @row-click="rowclick"
- ref="record_table_one"
- @current-change="getCurrentChangeTwo"
- style="width: 100%">
- <el-table-column prop="index" label="序号" width="">
- <template slot-scope="scope">
- {{ scope.$index + 1 }}
- </template>
- </el-table-column>
- <el-table-column prop="name" label="模板名称" width="">
- <template slot-scope="scope">
- {{ scope.row.title }}
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div style="width: 72%;margin-left: 10px;">
- <div class="Second_title">模板内容</div>
- <div style="">
- <keep-alive>
- <ueditor ref="editorOne" id="editors" :content="new_content"></ueditor>
- </keep-alive>
- </div>
- </div>
- </div>
- </div>
- <span slot="footer" class="dialog-footer" style="text-align: center;">
- <el-button type="danger" @click="template_dele">删除模板</el-button>
- <el-button type="primary" @click="template_save">保存模板</el-button>
- <el-button type="primary" @click="toContentPint">应用</el-button>
- <el-button @click="library_dialog = false">取消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- title="提示"
- :visible.sync="auto_dialog"
- width="70%"
- top="0"
- >
- <div>
- <!-- <div style="display:flex;"> -->
- <!-- <div>
- 取值时间:
- <el-select v-model="quzhi_date" @change="datachange" placeholder="请选择" style="width: 120px;">
- <el-option
- v-for="item in quzhi_options"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div style="margin:0 10px">
- <el-date-picker
- @change="changStartDate"
- v-model="start_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- <span>-</span>
- <el-date-picker
- @change="changEndDate"
- v-model="end_date"
- type="date"
- value-format="yyyy-MM-dd"
- placeholder="选择日期"
- style="width: 150px;">
- </el-date-picker>
- </div> -->
- <div style="text-align: right;margin-bottom: 10px;">
- <el-button type="primary" size="small" @click="autotext_click">
- 生成
- </el-button>
- <el-button type="primary" size="small" @click="auto_dialog=false">
- 取消
- </el-button>
- </div>
- <!-- </div> -->
- <div v-show="AuToShow">
- <text_content @new_content="newcontent" :patient="patient" :prescriptionList="prescriptionList" :berforList="berforList"
- :monitorList="monitorList" :dryweightList="dryweightList" :inpectionList="inpectionList" :dialysisOrderList="dialysisOrderList"
- :start_date="start_date" :end_date="end_date" :patient_id="patient_id" :num="num"></text_content>
- </div>
- </div>
-
- </el-dialog>
-
-
- </div>
- </div>
-
-
- </template>
-
- <script>
- import PatientSidebar from './components/PatientSidebar'
- import PatientSidebar_new from './components/PatientSidebar_new'
- import Editor from '@/components/Editor'
- import ueditor from '@/components/Uedtior'
- import text_content from './text_content'
- const moment = require('moment')
- import { getDataConfig } from "@/utils/data";
- import {
- createNewCourseOfDiseaseRecord,
- deleteNewCouseOfDisease,
- modifyCourseOfDiseaseRecord,
- getPatientCourseOfDiseaseList,
- saveCoureseTemplateTitle,
- getPatientCoureOfTempalate,
- saveCourseOfNewTemplate,
- deleteCourseTempalte,
- getAutoPatientContent
- } from '@/api/patient'
- import { fetchAllDoctorAndNurse } from "@/api/doctor";
- import { parseTime } from '@/utils'
- import BreadCrumb from '@/xt_pages/components/bread-crumb'
- import { uParseTime } from '@/utils/tools'
- export default {
- name: 'CourseOfDisease',
- components: {
- PatientSidebar,
- BreadCrumb,
- Editor,
- PatientSidebar_new,
- ueditor,
- text_content,
- },
- data() {
- return {
- loading: false,
- title: '',
- patient_id: 0,
- date: [],
- start_time: '',
- end_time: '',
- course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
- records: [],
- doctors: [],
- current_select_record: null,
- show_dialog: false,
- show_edit_dialog: false,
- uploading_new_record: false,
- templates: this.$store.getters.configlist.course_disease,
- select_template: '',
- new_content: '',
- edit_new_content: '',
- edit_course_of_disease_time: '',
- selectingRows: [],
- table_current_index: -1,
- edit_current_id: 0,
- edit_title: '',
- ids:"",
- idArr:[],
- org_id:0,
- add_index:0,
- disabled:true,
- template_dialog:false,
- library_dialog:false,
- auto_dialog:false,
- quzhi_date:1,
- start_date:'',
- end_date:'',
- quzhi_options:[{value:1,label:'本周'},{value:2,label:'上周'},{value:3,label:'本月'},{value:4,label:'上周'},],
- tableData:[],
- admin_user_id:0,
- record_date:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
- template_name:"",
- id:0,
- doctorOptions:[],
- template_content:"",
- template_id:0,
- title:"",
- templateList:[],
- tab:[{id:1,name:'人促红注射液',type:'长期医嘱',start:'2024-12-04',dosage:"3000iu",pinlv:'一周三次',status:''},
- {id:2,name:'人促红注射液2',type:'长期医嘱',start:'2024-12-05',dosage:"3000iu",pinlv:'一周三次',status:''},
- ],
- prescriptionList:[],
- berforList:[],
- monitorList:[],
- dryweightList:[],
- inpectionList:[],
- dialysisOrderList:[],
- patient:{},
- AuToShow:false,
-
- num:22222222
- // name:"",
- // gander:"",
- // age:0,
- // dialysis_no:"",
- // patient_new:{},
- // prescriptionList:[],
- // berforList:[],
- // monitorList:[],
- // dryweightList:[],
- // inpectionList:[],
- // dialysisOrderList:[],
- // patient:{},
- }
- },
- created() {
- this.admin_user_id = this.$store.getters.xt_user.user.id
-
- this.patient_id = parseInt(this.$route.query.id)
- this.org_id = this.$store.getters.xt_user.template_info.org_id;
- if (isNaN(this.patient_id) || this.patient_id <= 0) {
- this.$notify.error({
- title: '错误',
- message: '无效的id'
- })
- this.$router.push('/patients/patients')
- return
- }
- // const ceshi = ``
-
- // // const ceshi=`hellow word`
- // this.new_content = ceshi
- // this.$refs.editor.contents=ceshi
- this.fetchAllDoctorAndNurse()
- this.getlist()
- },
- methods: {
- changStartDate(val){
- this.start_date = val
- },
- changEndDate(val){
- this.end_date = val
- },
- datachange(val){
- if(val ==1){
- this.start_date = this.getFirstDayOfWeek(new Date())
- this.end_date = this.getTime(new Date())
- }else if(val ==2){
- this.getlastweek(new Date())
- }else if(val ==3){
- this.start_date = this.getFirstDayOfMonth(new Date())
- this.end_date = this.getTime(new Date())
- }else if(val ==4){
- this.getLastMonthFirstDay()
- this.getLastMonthLastDay()
- }
- },
- toContentPint(){
- this.$refs.editor.contents = this.template_content
- this.library_dialog = false
- },
- getCurrentChangeOne(val){
- this.$refs.editor.contents = val.content
- this.record_date = this.getTime(val.record_time)
- this.id = val.id
- },
- getCurrentChangeTwo(val){
-
- this.$refs.editorOne.contents = val.content
- this.template_content = ""
- this.template_content = val.content
- this.template_id = val.id
- },
- template_dele(){
- deleteCourseTempalte(this.template_id).then(response=>{
- if(response.data.state == 1){
- var msg = response.data.data.msg
- this.$message.success("删除成功!")
- this.library_dialog = false
- this.getPatientCoureOfTempalateOne()
- }
- })
- },
- getPatientCoureOfTempalateOne(){
-
- },
- rowclick(){
-
- },
- prints(){
-
- },
- saveTemplate(){
-
- var params = {
- title:this.title,
- content: this.$refs.editor.contents,
- }
- saveCoureseTemplateTitle(params).then(response=>{
- if(response.data.state == 1){
- var courseTemplate = response.data.data.courseTemplate
- this.$message.success("保存成功!")
- this.template_dialog = false
- }
- })
- },
- template_save(){
- var params = {
- template_id:this.template_id,
- content:this.$refs.editorOne.contents
- }
-
- saveCourseOfNewTemplate(params).then(response=>{
- if(response.data.state == 1){
- var msg = response.data.data.msg
- this.$message.success("保存成功")
- this.library_dialog = false
- }
- })
- },
- getDocName(admin_user_id){
- var user_name = ""
- for(let i=0;i<this.doctorOptions.length;i++){
- if(admin_user_id == this.doctorOptions[i].id){
- user_name = this.doctorOptions[i].name
- }
- }
- return user_name
- },
- getlist(){
- var params = {
- patient_id:this.patient_id
- }
- getPatientCourseOfDiseaseList(params).then(response=>{
- if(response.data.state == 1){
- var list = response.data.data.list
- this.tableData = []
- this.tableData = list
-
- }
- })
- },
- fetchAllDoctorAndNurse() {
- fetchAllDoctorAndNurse().then(response => {
- if (response.data.state == 1) {
- this.doctorOptions= []
- this.doctorOptions = response.data.data.doctors;
- }
- });
- },
- add_click(){
- this.admin_user_id = ""
- this.admin_user_id = this.$store.getters.xt_user.user.id
- this.fetchAllDoctorAndNurse()
- this.$refs.editor.contents = ""
- this.id = 0
- this.disabled = false
- this.add_index = 1
- },
- showCancel(){
- this.add_index = 0
- this.disabled = true
- },
- showSave(){
- this.add_index = 0
- this.disabled = true
- console.log("haaaaaaaaaaaaaaa",this.$refs)
- this.new_content = this.$refs.editor.contents
- if (this.new_content.length == 0) {
- this.$message.error('请填写病程内容')
- return
- }
- var params = {
- id:this.id,
- patient_id:this.patient_id,
- record_date:this.record_date,
- content:this.new_content,
- admin_user_id:this.admin_user_id,
- }
- console.log("params",params)
- createNewCourseOfDiseaseRecord(params).then(response => {
- if(response.data.state == 1){
- var msg = response.data.data.msg
- this.$message.success("保存成功!")
- this.getlist()
- }
-
- }).catch(error => {
-
- })
- },
- template_click(){
- console.log('this.add_index',this.add_index);
-
- if(this.add_index ==0){
- this.template_dialog = true
- }else{
- getPatientCoureOfTempalate().then(response=>{
- if(response.data.state == 1){
- this.library_dialog = true
- this.templateList = response.data.data.templateList
- console.log("hahhahahaha",this.$refs)
- if(this.templateList!=null && this.templateList.length>0){
- this.$refs.record_table_one.setCurrentRow(this.templateList[0])
- }
- console.log("haaaaaaaaaaaaa",this.templateList)
-
- }
- })
-
- }
- },
- auto_click(){
- this.start_date = this.getFirstDayOfWeek(new Date())
- this.end_date = this.getTime(new Date())
- // this.getAutoPatientContent()
- this.auto_dialog = true
- },
- autotext_click(){
-
- // this.$nextTick(()=>{
- // const iframeDoc = document.getElementsByClassName('edui-editor-iframeholder')[0].getElementsByTagName('iframe')[0].contentDocument.getElementsByTagName('tbody')[0].children[9].children[1]
- // var newListArr =[]
- // for(let j in this.tab){
- // const obj={
- // id:this.tab[j].id,
- // newlist:'newList'+j
- // }
- // newListArr.push(obj)
- // }
- // for(let i in this.tab){
- // for(let j in newListArr){
- // if(this.tab[i].id==newListArr[j].id){
- // let newList = document.createElement('p');
- // newList.style.cssText='display: flex;text-align: center;border-bottom: 1px solid black;';
- // let newListItem1 = document.createElement('span');
- // newListItem1.style.cssText= 'width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
- // let newListItem2 = document.createElement('span');
- // newListItem2.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
- // let newListItem3 = document.createElement('span');
- // newListItem3.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
- // let newListItem4 = document.createElement('span');
- // newListItem4.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
- // let newListItem5 = document.createElement('span');
- // newListItem5.style.cssText= 'width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;'
- // let newListItem6 = document.createElement('span');
- // newListItem6.style.cssText= 'width: 10%;display: inline-block;padding: 5px 0;'
- // newListItem1.textContent = this.tab[i].name;
- // newListItem2.textContent = this.tab[i].type;
- // newListItem3.textContent = this.tab[i].start;
- // newListItem4.textContent = this.tab[i].dosage;
- // newListItem5.textContent = this.tab[i].pinlv;
- // newListItem6.textContent = this.tab[i].status;
- // newList.appendChild(newListItem1);
- // newList.appendChild(newListItem2);
- // newList.appendChild(newListItem3);
- // newList.appendChild(newListItem4);
- // newList.appendChild(newListItem5);
- // newList.appendChild(newListItem6);
- // iframeDoc.appendChild(newList)
- // }
- // }
- // }
- // })
- this.AuToShow = true
-
- // this.getAutoPatientContent()
- },
- // 本周
- getFirstDayOfWeek(date){
- var weekday = date.getDay()
- date.setDate(date.getDate()-weekday+1);//往前算(weekday-1)天,年份、月份会自动变化
- return this.timeFormat(date);
- },
- // 上周
- getlastweek(date){
- date.setDate(date.getDate()-7 - date.getDay() + 1);
- var m =''
- var d = ''
- if(date.getMonth() + 1<10){
- m = '0'+(date.getMonth() + 1)
- }else{
- m = date.getMonth() + 1
- }
- if(date.getDate()<10){
- d = '0'+date.getDate()
- }else{
- d = date.getDate()
- }
- // this.start_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate() ;
- this.start_date = date.getFullYear() + "-" + m + "-" + d ;
- date.setDate(date.getDate() +6);
- var mm = ''
- var dd = ''
- if(date.getMonth() + 1<10){
- mm = '0'+(date.getMonth() + 1)
- }else{
- mm = date.getMonth() + 1
- }
- if(date.getDate()<10){
- dd = '0'+date.getDate()
- }else{
- dd = date.getDate()
- }
- // if(date.getMonth() + 1<10)
- // this.end_date = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
- this.end_date = date.getFullYear() + "-" + mm + "-" + dd ;
- console.log('this.end_date',this.end_date);
- },
- // 本月
- getFirstDayOfMonth (date) {
- date.setDate(1);
- return this.timeFormat(date);
- },
- //上个月第一天
- getLastMonthFirstDay() {
- var date = new Date();
- date.setDate(0);
- var y = date.getFullYear(); //获取年份
- var m = date.getMonth() + 1; //获取月份
- m = m < 10 ? "0" + m : m;
- this.start_date = [y, m, '01'].join("-")
- // return [y, m, '01'].join("-");
- },
- // 上个月最后一天
- getLastMonthLastDay() {
- var date = new Date();
- date.setDate(0);
- var y = date.getFullYear(); //获取年份
- var m = date.getMonth() + 1; //获取月份
- var d = new Date(y, m, 0).getDate(); //获取当月最后一日
- m = m < 10 ? "0" + m : m; //月份补 0
- d = d < 10 ? "0" + d : d; //日数补 0
- this.end_date = [y, m, d].join("-")
- // return [y, m, d].join("-");
- },
- // 日期格式化
- timeFormat(date) {
- if (!date || typeof(date) === "string") {
- this.error("参数异常,请检查...");
- }
- var y = date.getFullYear(); //年
- if(date.getMonth() + 1<10){
- var m ='0'+(date.getMonth() + 1); //月
- }else{
- var m =date.getMonth() + 1; //月
- }
- if(date.getDate()<10){
- var d ='0'+date.getDate(); //日
- }else{
- var d = date.getDate(); //日
- }
- // var d = date.getDate(); //日
-
- return y + "-" + m + "-" + d;
- },
-
-
- requestCourseRecords: function() {
- this.loading = true
- getCourseOfDiseaseRecords(this.patient_id, this.start_time, this.end_time).then(rs => {
- this.loading = false
- var resp = rs.data
- if (resp.state == 1) {
- this.current_select_record = null
- this.records = resp.data.records
- console.log("records232322332323232323223",this.records)
- this.doctors = resp.data.doctors
-
- } else {
- this.$message.error(resp.msg)
- }
- }).catch(error => {
- this.loading = false
- this.$message.error(error)
- })
- },
-
- didChangeCurrentRecord: function(record) {
- this.current_select_record = record
- },
- recordTime: function(timestamp) {
- var time = new Date(timestamp * 1000)
- return parseTime(time, '{y}-{m}-{d} {h}:{i}:{s}')
- },
- doctorName: function(doctor_id) {
- for (let index = 0; index < this.doctors.length; index++) {
- const doctor = this.doctors[index]
- if (doctor.id == doctor_id) {
- return doctor.name
- }
- }
- return ''
- },
- modifyAction: function() {
-
- this.edit_new_content = this.$refs.edit_neditor.content
- if (this.edit_new_content.length == 0) {
- this.$message.error('请填写病程内容')
- return
- }
- this.uploading_new_record = true
- modifyCourseOfDiseaseRecord(this.patient_id, this.edit_new_content, this.edit_course_of_disease_time, this.edit_current_id, this.edit_title).then(rs => {
- this.uploading_new_record = false
- var resp = rs.data
- if (resp.state == 1) {
- this.records[this.table_current_index].content = resp.data.record.content
- this.records[this.table_current_index].record_time = resp.data.record.record_time
- this.records[this.table_current_index].recorder = resp.data.record.recorder
- this.records[this.table_current_index].title = resp.data.record.title
-
- this.show_edit_dialog = false
- this.edit_new_content = ''
- this.table_current_index = -1
-
- } else {
- this.table_current_index = -1
- this.$message.error(resp.msg)
- }
-
- }).catch(error => {
- this.table_current_index = -1
- this.uploading_new_record = false
- this.$message.error(error)
- })
-
- },
-
- getAutoPatientContent(){
- if(this.start_date == ""){
- this.$message.error("请选择开始时间")
- }
- if(this.end_date == ""){
- this.$message.error("请选择结束时间")
- }
- var params = {
- start_time:this.start_date,
- end_time:this.end_date,
- patient_id:this.patient_id,
- }
- console.log("start_time==============",params)
- getAutoPatientContent(params).then(response=>{
- if(response.data.state == 1){
-
- var prescription = response.data.data.prescription
- var hd_total =0
- var hdArr =[]
- var hdf_total =0
- var hdfArr=[]
- var hdhp_total = 0
- var hdhpArr = []
- var hp_total = 0
- var hpArr= []
- var hf_total = 0
- var hfArr = []
- var scuf_total =0
- var scufArr = []
- var iuf_total =0
- var iufArr = []
- var hfhd_total =0
- var hfhdArr = []
-
- var hfhdhp_total =0
- var hfhdhpArr = []
-
- var phf_total =0
- var phfArr = []
-
-
- var hdfhp_total =0
- var hdfhpArr = []
- var crrt_total =0
- var crrtArr = []
- var iufhd_total =0
- var iufhdArr = []
- var uf_total =0
- var ufArr = []
- var hdjia_total =0
- var hdjiaArr = []
- var ihdf_total =0
- var ihdfArr = []
- var hdgaotong_total =0
- var hdgaotongArr = []
- var cvvh_total =0
- var cvvhArr = []
-
- var cvvhd_total =0
- var cvvhdArr = []
-
- var cvvhdf_total =0
- var cvvhdfArr = []
- var petotal =0
- var peArr=[]
- var hpdtotal =0
- var hpdArr=[]
-
- var hdptotal=0
- var hdpArr =[]
-
- var hfdtotal=0
- var hfdArr =[]
-
- var hdf100total=0
- var hdf100Arr =[]
-
- var hdf600total=0
- var hdf600Arr =[]
-
- var hdf100total=0
- var hdf100Arr =[]
-
- var hdf800total=0
- var hdf800Arr =[]
-
- var hdf1000total=0
- var hdf1000Arr =[]
-
-
- var hdf80total=0
- var hdf80Arr =[]
-
- var hf16total=0
- var hf16Arr =[]
-
- var hdwugantotal=0
- var hdwuganArr =[]
-
- var hdf17total=0
- var hdf17Arr =[]
-
- var hddiantotal=0
- var hddianArr =[]
-
-
- var hd2total=0
- var hd2Arr =[]
-
- var total_count = 0
-
- var total_min = 0
- var total_hour = 0
- var total_hour_str =""
-
- var dialyzerPerfusionApparatus = []
- var dialyzerArr = []
- var dialysisStrainerArr = []
- var dialysisIrrigationArr = []
-
- var kaliumArr= []
- var sodiumArr= []
- var calciumArr= []
- var bicarbonateArr = []
- var prescriptionSodiumArr = []
-
-
- if(prescription!=null && prescription.length>0){
- total_count = prescription.length
- }
-
-
- if(prescription!=null && prescription.length>0){
- for(let i=0;i<prescription.length;i++){
- if(prescription[i].dialyzer_perfusion_apparatus!=""){
- dialyzerPerfusionApparatus.push(prescription[i].dialyzer_perfusion_apparatus)
- }
- if(prescription[i].dialysis_dialyszers!=""){
- dialyzerArr.push(prescription[i].dialysis_dialyszers)
- }
- if(prescription[i].dialysis_strainer!=""){
- dialysisStrainerArr.push(prescription[i].dialysis_strainer)
- }
- if(prescription[i].dialysis_irrigation!=""){
- dialysisIrrigationArr.push(prescription[i].dialysis_irrigation)
- }
- if(prescription[i].kalium!=""){
- kaliumArr.push(prescription[i].kalium)
- }
- if(prescription[i].sodium!=""){
- sodiumArr.push(prescription[i].kalium)
- }
- if(prescription[i].calcium!=""){
- calciumArr.push(prescription[i].calcium)
- }
- if(prescription[i].bicarbonate!=""){
- bicarbonateArr.push(prescription[i].bicarbonate)
- }
- if(prescription[i].prescription_sodium!=""){
- prescriptionSodiumArr.push(prescription[i].prescription_sodium)
- }
-
- total_min += parseInt(prescription[i].dialysis_duration_hour *60)+ parseInt(prescription[i].dialysis_duration_minute)
-
- if(prescription[i].mode_id == 1){
- hdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 2){
- hdfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 3){
- hdhpArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 4){
- hpArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 5){
- hfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 6){
- scufArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 7){
- iufArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 8){
- hfhdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 9){
- hfhdhpArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 10){
- phfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 11){
- hfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 12){
- hdfhpArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 13){
- crrtArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 19){
- iufhdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 20){
- ufArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 21){
- hdjiaArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 24){
- ihdfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 25){
- hdgaotongArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 26){
- cvvhArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 27){
- cvvhdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 28){
- cvvhdfArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 29){
- peArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 31){
- hpdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 32){
- hdpArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 33){
- hfdArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 34){
- hdf100Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 35){
- hdf600Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 36){
- hdf800Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 37){
- hdf1000Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 38){
- hdf80Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 39){
- hf16Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 40){
- hdwuganArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 41){
- hdf17Arr.push(prescription[i])
- }
- if(prescription[i].mode_id == 42){
- hddianArr.push(prescription[i])
- }
- if(prescription[i].mode_id == 43){
- hd2Arr.push(prescription[i])
- }
-
- }
- }
-
- total_hour = ((total_min/60)/total_count).toFixed(2)
- total_hour_str = total_hour +"小时/次"
-
- hd_total = hdArr.length
-
- var hd_str = ""
- if(hd_total>0){
- hd_str = "HD"+hd_total +"次"
- }
-
- hdf_total = hdfArr.length
-
- var hdf_str =""
- if(hdf_total>0){
- hdf_str = "HDF"+hd_total +"次"
- }
-
- hdhp_total = hdhpArr.length
- var hdhp_str =""
- if(hdhp_total>0){
- hdhp_str = "HD+HP"+hdhp_total+"次"
- }
- hp_total = hpArr.length
- var hp_str= ""
- if(hp_total>0){
- hp_str = "HP"+hdptotal+"次"
- }
-
- hf_total = hfArr.length
- var hf_str = ""
- if(hf_total>0){
- hf_str = "HF "+hf_total+"次"
- }
- var scuf_str = ""
- scuf_total = scufArr.length
- if(scuf_total>0){
- scuf_str = "SCUF"+scuf_total+"次"
- }
- iuf_total = iufArr
- var iuf_str= ""
- if(iuf_total>0){
- iuf_str = "IUF"+iuf_total+"次"
- }
- hfhd_total = hfhd_total
- var hfhd_str= ""
- if(hfhd_total>0){
- hfhd_str = "HFHD"+hfhd_total+"次"
- }
-
- hfhdhp_total = hfhdhpArr
- var hfhdhp_str =""
- if(hfhdhp_total>0){
- hfhdhp_str = "HFHD+HP"+hfhdhp_total+"次"
- }
- phf_total = phfArr
- var phf_str= ""
- if(phf_total>0){
- phf_str = "PHF"+phf_total + "次"
- }
- hdfhp_total = hdfhpArr
- var hdfhp_str =""
- if(hdfhp_total>0){
- hdfhp_str = "HDFHP"+hdfhp_total+"次"
- }
- crrt_total = crrtArr
- var crrt_str =""
- if(crrt_total>0){
- crrt_str = "CRRT"+crrt_total+"次"
- }
- iuf_total = iufhdArr
- var iuf_str = ""
- if(iuf_total>0){
- iuf_str = "IUF"+iuf_total+"次"
- }
- uf_total = ufArr
- var uf_str= ""
- if(uf_total>0){
- uf_str = "UF"+uf_total +"次"
- }
-
- hdjia_total = hdjiaArr
- var hdjia_str =""
- if(hdjia_total>0){
- hdjia_str = "HD+"+hdjia_total+"次"
- }
-
- ihdf_total = ihdfArr
- var ihdf_str = ""
- if(ihdf_total>0){
- ihdf_str = "IHDF"+ihdf_total +"次"
- }
- hdgaotong_total = hdgaotongArr
- var hdgaotong_str = ""
- if(hdgaotong_total>0){
- hdgaotong_str = "HD高通"+hdgaotong_total+"次"
- }
- cvvh_total = cvvhArr
- var cvvh_str =""
- if(cvvh_total>0){
- cvvh_str = "CVVH"+cvvh_total + "次"
- }
- cvvhd_total = cvvhdArr
- var cvvhd_str = ""
- if(cvvhd_total>0){
- cvvhd_str = "CVVHD"+cvvhd_total+"次"
- }
- cvvhdf_total =cvvhdfArr
- var cvvhdf_str = ""
- if(cvvhdf_total>0){
- cvvhdf_str="CVVHDF"+cvvhdf_total+"次"
- }
- petotal = peArr
- var pe_str =""
- if(petotal>0){
- pe_str = "PE"+petotal+"次"
- }
- hpdtotal = hpdArr
- var hpd_str =""
- if(hpdtotal>0){
- hpd_str = "HDP"+hpdtotal+"次"
- }
- hfdtotal = hfdArr
- var hfd_str =""
- if(hfdtotal>0){
- hfd_str ="HFD"+hfdtotal +"次"
- }
- hdf100total = hdf1000Arr
- var hdf100str = ""
- if(hdf100total>0){
- hdf100str = "HDF100"+hdf100total+"次"
- }
- hdf600total = hdf600Arr
- var hdf600str = ""
- if(hdf600total>0){
- hdf600str = "HDF600"+hdf600total+"次"
- }
- hdf100total = hdf1000Arr
- var hdf1000str = ""
- if(hdf100total>0){
- hdf1000str = "HDF1000"+hdf100total+"次"
- }
- hdf80total = hdf80Arr
- var hdf80str = ""
- if(hdf80total>0){
- hdf80str ="HDF80"+hdf80str +"次"
- }
- hf16total = hf16Arr
- var hf16str = ""
- if(hf16total>0){
- hf16str = "HF16"+ hf16Arr +"次"
- }
- hdwugantotal = hdwuganArr
- var hdwuganstr = ""
- if(hdwugantotal>0){
- hdwuganstr = "HD无肝素"+hdwugantotal+"次"
- }
- hdf17total = hdf17Arr
- var hdf17str = ""
- if(hdf17total>0){
- hdf17str = "HDF17"+hdf17total + "次"
- }
- hddiantotal = hddianArr
- var hddianstr = ""
- if(hddiantotal>0){
- hddianstr = "HD."+hddiantotal + "次"
- }
- var hd2str = ""
- hd2total = hd2Arr
- if(hd2total>0){
- hd2str = "HD2"+hd2total+"次"
- }
-
- var berfor = response.data.data.berfor
- this.berforList = []
- this.berforList = berfor
-
- var monitorList = response.data.data.monitorList
- this.monitorList = []
- this.monitorList = monitorList
-
- var dryweightList = response.data.data.dryweightList
-
- this.dryweightList = []
- this.dryweightList = dryweightList
-
- var inpectionList = response.data.data.inpectionList
-
- this.inpectionList = []
-
- this.inpectionList = inpectionList
-
- this.patient = {}
- var patient = response.data.data.patient
- console.log("patinet-=================",patient)
- if(patient.gender == 1){
- patient.gender_name = "男"
- }
- if(patient.gender == 2){
- patient.gender_name = "女"
- }
-
- this.patient2 = patient
- console.log('this.patient2',this.patient2);
- var dialysisOrderList =response.data.data.dialysisOrder
-
- var total_count = 0
- if(dialysisOrderList!=null&&dialysisOrderList.length>0){
- total_count = dialysisOrderList.length
- }
- total_count = this.dialysisOrderList.length
-
-
- let dialyzerPerfusionApparatusObj={}
- let dialyzerPerfusionApparatusStr = ""
-
- let dialyzerArrObj = {}
- let dialyzer_str = ""
-
- let dialysisStrainerObj = {}
- let dialysisStrainerStr = ""
-
- let dialysisIrrigationObj = {}
- let dialysisIrrigationStr = ""
-
- let kaliumObj = {}
- let kaliumStr =""
- let kalium =""
-
- if(kaliumArr!=null && kaliumArr.length>0){
- kaliumArr.forEach(item => {
- kaliumObj[item] = (kaliumObj[item] + 1) || 1
- })
- }
-
- if(kaliumObj!=""){
- kaliumStr = JSON.stringify(kaliumObj).replace(/^{|}$/g, '')
- }
-
- if(kaliumStr!=""){
- var str = kaliumStr.split(":")[0]
- kalium = "钾:" + str.replace(/^"(.*)"$/, '$1')+"."+"0"+"mmol/L" + "(" +kaliumStr.split(":")[1]+")"
- }
-
-
-
-
- let sodiumObj = {}
- let sodiumStr =""
-
- let sodium = ""
-
-
- if(sodiumArr!=null && sodiumArr.length>0){
- sodiumArr.forEach(item => {
- sodiumObj[item] = (sodiumObj[item] + 1) || 1
- })
- }
-
- if(sodiumObj!=""){
- sodiumStr = JSON.stringify(sodiumObj).replace(/^{|}$/g, '')
- }
-
- if(sodiumStr!=""){
- var str = sodiumStr.split(":")[0]
- sodium = "钠:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +sodiumStr.split(":")[1]+")"
- }
-
- let calciumObj = {}
- let calciumStr =""
- let calcium =""
-
- if(calciumArr!=null && calciumArr.length>0){
- calciumArr.forEach(item => {
- calciumObj[item] = (calciumObj[item] + 1) || 1
- })
- }
-
- if(calciumObj!=""){
- calciumStr = JSON.stringify(calciumObj).replace(/^{|}$/g, '')
- }
-
- if(calciumStr!=""){
- var str = calciumStr.split(":")[0]
- calcium = "钙:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +calciumStr.split(":")[1]+")"
- }
-
- let bicarbonateObj = {}
- let bicarbonateStr =""
- let bicarbonate = ""
-
- if(bicarbonateArr!=null && bicarbonateArr.length>0){
- bicarbonateArr.forEach(item => {
- bicarbonateObj[item] = (bicarbonateObj[item] + 1) || 1
- })
- }
-
- if(bicarbonateObj!=""){
-
- bicarbonateStr = JSON.stringify(bicarbonateObj).replace(/^{|}$/g, '')
- }
-
- if(bicarbonateStr!=""){
- var str = bicarbonateStr.split(":")[0]
- bicarbonate = "碳酸氢根:" + str.replace(/^"(.*)"$/, '$1')+"mmol/L" + "(" +bicarbonateStr.split(":")[1]+")"
-
- }
-
- if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
- dialyzerPerfusionApparatus.forEach(item => {
- dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
- })
- }
-
- if(dialyzerPerfusionApparatus!=null && dialyzerPerfusionApparatus.length>0){
- dialyzerPerfusionApparatus.forEach(item => {
- dialyzerPerfusionApparatusObj[item] = (dialyzerPerfusionApparatusObj[item] + 1) || 1
- })
- }
-
- if(dialyzerPerfusionApparatusObj!=""){
- dialyzerPerfusionApparatusStr = JSON.stringify(dialyzerPerfusionApparatusObj).replace(/^{|}$/g, '')
- }
-
- if(dialyzerArr!=null && dialyzerArr.length>0){
- dialyzerArr.forEach(item => {
- dialyzerArrObj[item] = (dialyzerArrObj[item] + 1) || 1
- })
- }
-
- dialyzer_str = JSON.stringify(dialyzerArrObj).replace(/^{|}$/g, '')
-
-
- if(dialysisStrainerArr!=null && dialysisStrainerArr.length>0){
- dialysisStrainerArr.forEach(item => {
- dialysisStrainerObj[item] = (dialysisStrainerObj[item] + 1) || 1
- })
- }
-
- dialysisStrainerStr = JSON.stringify(dialysisStrainerObj).replace(/^{|}$/g, '')
-
-
- if(dialysisIrrigationArr!=null && dialysisIrrigationArr.length>0){
- dialysisIrrigationArr.forEach(item => {
- dialysisIrrigationObj[item] = (dialysisIrrigationObj[item] + 1) || 1
- })
- }
-
- dialysisIrrigationStr = JSON.stringify(dialysisIrrigationObj).replace(/^{|}$/g, '')
-
-
- var longAdvice = response.data.data.longAdvice
-
-
- // const contents = `<table border="1" class="table" style="border-collapse: collapse;width: 100%;">
- // <tr>
- // <th colspan="2" style="padding: 5px;">透析阶段小结(${this.start_date } ~${this.end_date })</th>
- // </tr>
- // <tr>
- // <td width="130" style="padding: 5px;">基本信息</td>
- // <td style="padding: 5px;">
- // <span>姓名:${patient.name } </span> <span>性别:${ patient.gender_name }</span> <span>年龄:${ patient.age }</span> <span>透析号:${ patient.dialysis_no }</span>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">透析处方</td>
- // <td style='padding:5px'>
- // <p style='font-weight: bold;'>总次数:${ total_count } ;</p>
- // <p style='margin-bottom: 10px;' >其中${hd_str}${hdf_str}${hdhp_str}${hp_str}${hf_str}${scuf_str}${iuf_str}${hfhd_str}${hfhdhp_str}${phf_str}${hdfhp_str}${crrt_str}${iuf_str}${uf_str}${hdjia_str}${ihdf_str}${hdgaotong_str}${cvvh_str}${cvvhdf_str}${pe_str}${hpd_str}${hfd_str}${hdf100str}${hdf600str}${hdf1000str}${hdf80str}${hf16str}${hdwuganstr}${hdf17str}${hddianstr}${hd2str},平均${total_hour_str},使用${dialyzerPerfusionApparatusStr}${dialyzer_str}${dialysisIrrigationStr}${dialysisStrainerStr};</p>
- // <p style='margin-bottom: 10px;'>${kalium};${sodium};${bicarbonate}</p>
- // <p style='font-weight: bold;'>抗凝方式:</p>
- // <p >低分子肝素,剂量:3500.00~3500.00IU;</p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">透析情况</td>
- // <td style='padding:5px'>
- // <p>透析间期平均体重增加:2.90kg;</p>
- // <p>凝血:透析器-0度(1次);</p>
- // <p>平均血流量:250.00mL/min;最大血流量:250mL/min;</p>
- // <p>平均超滤量:2900.00ml/次;平均超滤率:9.84mL/kg/h;</p>
- // <p><span style='font-weight: bold;'>透前血压:</span> <span class="">收缩压:174~174mmHg;舒张压:69~69mmHg;</span></p>
- // <p><span style='font-weight: bold;'>透后血压:</span> <span class="">收缩压:155~155mmHg;舒张压:87~87mmHg;</span></p>
- // <p><span style='font-weight: bold;'>透中最低血压:</span> <span class="">收缩压:148~148mmHg;舒张压:56~56mmHg;</span></p>
- // <p><span style='font-weight: bold;'>透中最高血压:</span> <span class="">收缩压:175~175mmHg;舒张压:87~87mmHg;</span></p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">干体重</td>
- // <td style='padding: 5px;'>
- // <p>
- // <span style='font-weight: bold;'>当前干体重:</span> <span class="">73.7kg;</span>
- // </p>
- // <p>
- // <span style='font-weight: bold;'>调整记录:</span> <span class="">无</span>
- // </p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">血管通路</td>
- // <td style='padding: 5px;'>
- // <p>
- // <span style='font-weight: bold;'>使用的血管通路:</span> <span class="">${ this.ceshi } 建立时间:${ this.ceshi }</span>
- // </p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">合并症/并发症</td>
- // <td style='padding: 5px;'>
- // <p>
- // <span style='font-weight: bold;'>合并症:</span> <span class="">无</span>
- // </p>
- // <p>
- // <span style='font-weight: bold;'>透析并发症:</span> <span class="">无</span>
- // </p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">检验结果</td>
- // <td style='padding: 5px;'>
- // <span class="">无</span>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">检查结果</td>
- // <td style='padding: 5px;'>
- // <span class="">无</span>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">医嘱用药</td>
- // <td class='' style="padding: 0;">
- // <p style="display: flex;text-align: center;border-bottom: 1px solid black;">
- // <span style="width: 30%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">药物名称</span><span style="width:20% ;display: inline-block;padding: 5px 0;border-right: 1px solid black;">医嘱类型</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">开始时间</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">单次用量</span><span style="width: 20%;display: inline-block;padding: 5px 0;border-right: 1px solid black;">执行频率</span><span style="width: 10%;padding: 5px 0;display: inline-block;">状态</span></p>
- // </td>
- // </tr>
-
-
- // <tr>
- // <td style="align-items: center;padding: 5px;">透析总评价和建议</td>
- // <td style='padding: 5px;'>
- // <p class="">1、血压控制不良,随时监测血压,并加用口服降压药,将血压控制在正常范围;</p>
- // <p class="">2、透析间期体重增加稳定,继续保持;</p>
- // <p class="">3、血液透析时血流量达标,注意保护内瘘避免狭窄;</p>
- // </td>
- // </tr>
- // <tr>
- // <td style="align-items: center;padding: 5px;">医师签名</td>
- // <td style='padding: 5px;'>
- // <p class=""></p>
- // </td>
- // </tr>
- // </table>`
- // this.content = contents
-
- }
- })
-
- },
- didSelectTemplate: function(templateContent) {
- this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
-
- }, didEditSelectTemplate: function(templateContent) {
- this.edit_new_content = this.edit_new_content.length > 0 ? (this.edit_new_content + templateContent) : templateContent
- },
-
- didSelectionChange: function(selectRows) {
-
- var arr = []
- for(let i=0;i<selectRows.length;i++){
- arr.push(selectRows[i].id)
- }
- var newArr = arr.join(',')
- this.ids = newArr
- console.log("select23322332",this.ids)
- this.selectingRows = selectRows
- },
- deleteAction(){
- if(this.id == 0){
- this.$message.error("请选择要删除的信息!")
- return false
- }
- this.$confirm('确定要取消吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- deleteNewCouseOfDisease(this.id).then(response=>{
- if (response.data.state==1) {
- var msg = response.data.data.msg
- this.$message.success("删除成功!")
- this.getlist()
- }
- });
- }).catch(() => {
-
- });
-
-
- },
- showEdit() {
-
- this.add_index =1
- this.disabled = false
-
- }, tableRow({ row, rowIndex }) {
- // 把每一行的索引放进row
- row.index = rowIndex
- }, onRowClick(row, event, column) {
- this.table_current_index = row.index
- },
- print(){
- if(this.ids.length == 0){
- this.$message.error('请选择要打印的病程')
- return
- }
- this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
-
- },
- getModeId(mode_id){
- var mode_name = ""
- if(mode_id == 1){
- mode_name ="HD"
- }
- if(mode_id == 2){
- mode_name ="HDF"
- }
- if(mode_id == 3){
- mode_name ="HD+HP"
- }
- if(mode_id == 4){
- mode_name ="HP"
- }
- if(mode_id == 5){
- mode_name ="HF"
- }
- if(mode_id == 6){
- mode_name ="SCUF"
- }
- if(mode_id == 7){
- mode_name ="IUF"
- }
- if(mode_id == 8){
- mode_name ="HFHD"
- }
- if(mode_id == 9){
- mode_name ="HFHD+HP"
- }
- if(mode_id == 10){
- mode_name ="PHF"
- }
- if(mode_id == 11){
- mode_name ="HFR"
- }
- if(mode_id == 12){
- mode_name ="HDF+HP"
- }
- if(mode_id == 13){
- mode_name ="CRRT"
- }
- if(mode_id == 14){
- mode_name ="腹水回输"
- }
- if(mode_id == 19){
- mode_name ="IUF+HD"
- }
- if(mode_id == 20){
- mode_name ="UF"
- }
- if(mode_id == 21){
- mode_name ="HD+"
- }
- if(mode_id == 22){
- mode_name ="血浆胆红素吸附+HDF"
- }
- if(mode_id == 23){
- mode_name ="血浆胆红素吸附"
- }
- if(mode_id == 24){
- mode_name ="I-HDF"
- }
- if(mode_id == 25){
- mode_name ="HD高通"
- }
- if(mode_id == 26){
- mode_name ="CVVH"
- }
- if(mode_id == 27){
- mode_name ="CVVHD"
- }
- if(mode_id == 28){
- mode_name ="CVVHDF"
- }
- if(mode_id == 29){
- mode_name ="PE"
- }
- if(mode_id == 30){
- mode_name ="血浆胆红素吸附+HP"
- }
- if(mode_id == 31){
- mode_name ="HPD"
- }
- if(mode_id == 32){
- mode_name ="HDP"
- }
- return mode_name
- },
- GetAnticoagulant(id){
- var anticoagulant_name = ""
- if(id == 1){
- anticoagulant_name = "无肝素"
- }
- if(id == 2){
- anticoagulant_name = "普通肝素"
- }
- if(id == 3){
- anticoagulant_name = "低分子肝素"
- }
- if(id == 4){
- anticoagulant_name = "阿加曲班"
- }
-
- if(id == 5){
- anticoagulant_name = "枸橼酸钠"
- }
- if(id == 6){
- anticoagulant_name = "低分子肝素钙"
- }
- if(id == 7){
- anticoagulant_name = "低分子肝素钠"
- }
- if(id == 8){
- anticoagulant_name = "依诺肝素"
- }
-
- if(id == 9){
- anticoagulant_name = "达肝素"
- }
- if(id == 10){
- anticoagulant_name = "体外抗凝"
- }
-
- if(id == 11){
- anticoagulant_name = "那屈肝素"
- }
- if(id == 12){
- anticoagulant_name = "无抗凝剂"
- }
-
- if(id == 13){
- anticoagulant_name = "那屈肝素钙"
- }
- if(id == 14){
- anticoagulant_name = "肝素钙注射液"
- }
- if(id == 15){
- anticoagulant_name = "甲磺酸萘莫司他"
- }
-
- return anticoagulant_name
- },
- getTime (time) {
- return uParseTime(time, '{y}-{m}-{d}')
- },
- getTimeOne (time) {
- return uParseTime(time, '{y}-{m}-{d}')
- },
-
- newcontent(val){
- this.new_content =''
- this.new_content = val
- // console.log('1111112323',this.new_content);
- this.$refs.editor.contents = this.new_content
- }
- },
-
- }
- </script>
-
- <style rel="stylesheet/css" lang="scss" scoped>
- .container {
- margin-left: 180px;
- padding: 20px;
- background: #fff;
- min-height: calc(100vh - 173px);
- margin-bottom: 15px;
-
- .record {
- padding-top: 20px;
- }
-
- }
- .record_content_panel {
- border-width: 1px;
- border-style: solid;
- border-color: #ebeef5;
- min-height: 200px;
-
- .title {
- font-size: 14px;
- font-weight: 500;
- color: #909399;
- line-height: 44px;
- height: 44px;
- text-align: center;
- border-bottom-width: 1px;
- border-bottom-style: solid;
- border-bottom-color: #ebeef5;
- }
-
- .content {
- padding: 12px 15px;
- font-size: 15px;
- color: gray;
- line-height: 22px;
- }
-
- }
-
- .new_record_form {
-
- /*/ / padding: 10 px, 25 px;*/
-
- .textarea_panel {
- margin-top: 10px;
- }
-
- }
- .eldialog{
- .el-dialog{
- .el-dialog__body{
- max-height: calc(100vh - 80px) !important;
- padding: 0px 20px;
- }
- }
-
- }
- .Second_title{
- border-left: 5px solid #3891f1f5;
- text-align: left;
- padding-left: 5px;
- // margin-left: 10px;
- margin-bottom: 5px;
- font-size: 16px;
- }
-
- .text_margin{
- display: block;
- }
- </style>
- <style lang="scss">
- .el-table td,
- .el-table th.is-leaf,
- .el-table--border,
- .el-table--group {
- border-color: #d0d3da;
- }
- .el-table--border::after,
- .el-table--group::after,
- .el-table::before {
- background-color: #d0d3da;
- }
-
- .eldialog{
- .el-dialog{
- .el-dialog__body{
- max-height: calc(100vh - 80px) !important;
- padding: 0px 20px;
- }
- }
-
- }
- .lirary{
- .el-dialog__body{
- padding: 0px 20px !important;
- }
- .el-dialog__footer{
- text-align: center;
- }
- }
- .course{
- .el-dialog{
- height: 90%;
- // position: fixed !important;
- // top: 10% !important;
- }
- }
- </style>
|