1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960 |
- <template>
- <div>
- <el-dialog
- title="双人核对"
- :visible.sync="isVisibility"
- :modal-append-to-body="false"
- width="854px"
- >
- <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
-
- <el-form-item label="透析物品核查 : " :prop="isName('透析物品核查')"
- :rules="isCheckmust('透析物品核查')">
- <el-radio v-model="doubleReview.dialysis_item_check" label="1" @change="changeRadio">正确</el-radio>
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.dialysis_item_desc"></el-input>
- </el-form-item>
- </el-form> -->
-
- <!-- <el-form :inline="true" class="demo-form-inline newCheckBox" ref="doubleReview" :model="doubleReview" label-width="110px">
- <el-checkbox-group v-model="checkList" @change="changeBox">
- <el-checkbox :label="diazes"></el-checkbox>
- <el-checkbox :label="puncture_needle"></el-checkbox>
- <el-checkbox :label="dialysate_formulation"></el-checkbox>
- <el-checkbox :label="kalium"></el-checkbox>
- <el-checkbox :label="calcium"></el-checkbox>
- </el-checkbox-group>
- </el-form> -->
- <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
- <el-form-item label="透析参数核查 : " :prop="isName('透析参数核查')"
- :rules="isCheckmust('透析参数核查')">
- <el-radio v-model="doubleReview.dialysis_parameter_check" label="1" @change="changeRadioTwo">正确</el-radio>
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
- </el-form-item>
- </el-form> -->
- <!-- <el-form class="newCheckBox">
- <el-checkbox-group v-model="checkListOne" @change="changeBoxOne" >
- <el-checkbox :label="dialys_mode"></el-checkbox>
- <el-checkbox :label="long_time"></el-checkbox>
- <el-checkbox :label="target_ultrafiltration"></el-checkbox>
- <el-checkbox :label="anticoagulant" ></el-checkbox>
- <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
- <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
- <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
- <el-checkbox :label="displace_liqui_part"></el-checkbox>
- <el-checkbox :label="replacement_total"></el-checkbox>
- <el-checkbox :label="blood_flow_volume"></el-checkbox>
- <el-checkbox :label="dialysate_flow"></el-checkbox>
- <el-checkbox :label="displace_liqui_value"></el-checkbox>
- </el-checkbox-group>
- </el-form>
- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
-
- </el-form> -->
- <!-- <el-form class="newCheckBox"></el-form> -->
-
- <!-- <el-form :inline="true" class="demo-form-inline newInline" ref="doubleReview" :model="doubleReview" label-width="105px">
-
-
- </el-form> -->
- <!-- <el-form class="newCheckBox"></el-form> -->
-
- <el-form
- :inline="true"
- class="demo-form-inline"
- ref="doubleReview"
- :model="doubleReview"
- label-width="120px"
- >
- <div class="demo-form-inline newInline">
- <el-form-item
- label="透析物品核查 : "
- :prop="isName('透析物品核查')"
- :rules="isCheckmust('透析物品核查')"
- >
- <el-radio
- v-model="doubleReview.dialysis_item_check"
- label="1"
- @change="changeRadio"
- >正确</el-radio
- >
- <!-- <el-radio v-model="doubleReview.dialysis_item_check" label="2">错误</el-radio> -->
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.dialysis_item_desc"> </el-input>
- </el-form-item>
- </div>
-
- <el-form-item style="padding-left: 17px;">
- <el-checkbox-group v-model="checkList" @change="changeBox">
- <el-checkbox :label="diazes"></el-checkbox>
- <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.dialyzer_batch_number"></el-input></span>
- </el-checkbox-group>
- <el-checkbox-group v-model="checkList" @change="changeBox">
- <el-checkbox :label="puncture_needle"></el-checkbox>
- <span v-if="org_id == 0 || org_id == 9671 || org_id == 10440 || org_id == 9675"><el-input style="width:200px" v-model="doubleReview.needle_batch_number"></el-input></span>
- </el-checkbox-group>
- <el-checkbox-group v-model="checkList" @change="changeBox">
- <!-- <el-checkbox :label="diazes"></el-checkbox>
- <el-checkbox :label="puncture_needle"></el-checkbox> -->
- <el-checkbox :label="dialysate_formulation"></el-checkbox>
- <el-checkbox :label="kalium"></el-checkbox>
- <el-checkbox :label="calcium"></el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- <div class="demo-form-inline newInline">
- <el-form-item
- label="透析参数核查 : "
- :prop="isName('透析参数核查')"
- :rules="isCheckmust('透析参数核查')"
- >
- <el-radio
- v-model="doubleReview.dialysis_parameter_check"
- label="1"
- @change="changeRadioTwo"
- >正确</el-radio
- >
- <!-- <el-radio v-model="doubleReview.dialysis_parameter_check" label="2">错误</el-radio> -->
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.dialysis_parameter_desc"></el-input>
- </el-form-item>
- </div>
-
-
- <el-form-item class="newCheckBox" style="padding-left: 17px;">
- <el-checkbox-group v-model="checkListOne" @change="changeBoxOne">
- <el-checkbox :label="dialys_mode"></el-checkbox>
- <el-checkbox :label="long_time"></el-checkbox>
- <el-checkbox :label="target_ultrafiltration"></el-checkbox>
- <el-checkbox :label="prescription_water" v-if="org_id == 10469"></el-checkbox>
- <el-checkbox :label="anticoagulant"></el-checkbox>
- <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
- <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
- <el-checkbox :label="anticoagulant_zongliang"></el-checkbox>
- <el-checkbox :label="displace_liqui_part"></el-checkbox>
- <el-checkbox :label="replacement_total"></el-checkbox>
- <el-checkbox :label="blood_flow_volume"></el-checkbox>
- <el-checkbox :label="dialysate_flow"></el-checkbox>
- <el-checkbox :label="displace_liqui_value"></el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- <div class="demo-form-inline newInline">
- <el-form-item
- label="血管通路核查 : "
- :prop="isName('血管通路核查')"
- :rules="isCheckmust('血管通路核查')"
- >
- <el-radio
- v-model="doubleReview.vascular_access_verification"
- label="1"
- @change="changeRadioThree"
- >正确</el-radio
- >
-
- <!-- <el-radio v-model="doubleReview.vascular_access_verification" label="2">错误</el-radio> -->
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.vascular_access_desc"></el-input>
- </el-form-item>
- </div>
-
-
- <div class="newCheckBox" style="padding-left: 17px;">
- <el-checkbox-group v-model="checkListTwo" @change="changeBoxTwo">
- <el-checkbox :label="blood_access_part_opera_id"> </el-checkbox>
- <el-checkbox label="动静脉接错"></el-checkbox>
- <el-checkbox label="渗血"></el-checkbox>
- <el-checkbox label="压迫"></el-checkbox>
- <el-checkbox label="折叠"></el-checkbox>
- <el-checkbox label="滑脱"></el-checkbox>
- </el-checkbox-group>
- </div>
- <div class="demo-form-inline newInline">
- <el-form-item
- label="管道连接核查 : "
- :prop="isName('管道连接核查')"
- :rules="isCheckmust('管道连接核查')"
- >
- <el-radio
- v-model="doubleReview.pipeline_connection_check"
- label="1"
- @change="changeRadioFour"
- >正确</el-radio
- >
- <!-- <el-radio v-model="doubleReview.pipeline_connection_check" label="2">错误</el-radio> -->
- </el-form-item>
- <el-form-item class="newItem" label="差错描述 : " label-width="90px">
- <el-input v-model="doubleReview.pipeline_connection_desc"></el-input>
- </el-form-item>
- </div>
-
- <el-form-item style="padding-left: 17px;">
- <el-checkbox-group v-model="checkListThree" @change="changeBoxThree">
- <el-checkbox label="泵前补液测管未夹"></el-checkbox>
- <el-checkbox label="肝素管夹未开启"></el-checkbox>
- <el-checkbox label="透析器连接错误"></el-checkbox>
- <el-checkbox label="动静脉壶页面不标准"></el-checkbox>
- <el-checkbox label="静脉管路未卡入保护夹"></el-checkbox>
- <el-checkbox label="压力传感器夹未打开"></el-checkbox>
- <el-checkbox label="接口连接松动"></el-checkbox>
- <el-checkbox label="管路打折"></el-checkbox>
- </el-checkbox-group>
- </el-form-item>
- <el-form-item
- label="第一核对时间:"
- :prop="isName('第一核对时间')"
- :rules="isCheckmust('第一核对时间')"
- >
- <el-time-picker
- v-model="first_check_time"
- format="HH:mm"
- value-format="HH:mm"
- placeholder="请输入核对时间"
- >
- </el-time-picker>
- </el-form-item>
- <el-form-item
- label="第一核对人员"
- :prop="isName('第一核对人员')"
- :rules="isCheckmust('第一核对人员')"
- >
- <el-select v-model="doubleReview.creater" placeholder="请选择核对人">
- <el-option
- v-for="(admin, index) in admin_users"
- :key="index"
- :value="admin.id"
- :label="admin.name"
- ></el-option>
- </el-select>
- </el-form-item>
- <el-form-item
- label="第二核对时间:"
- :prop="isName('第二核对时间')"
- :rules="isCheckmust('第二核对时间')"
- >
- <el-time-picker
- v-model="check_time"
- format="HH:mm"
- value-format="HH:mm"
- placeholder="请输入核对时间"
- >
- </el-time-picker>
- </el-form-item>
- <el-form-item
- label="第二核对人员"
- :prop="isName('第二核对人员')"
- :rules="isCheckmust('第二核对人员')"
- >
- <el-select v-model="doubleReview.modifier" placeholder="请选择核对人">
- <el-option
- v-for="(admin, index) in admin_users"
- :key="index"
- :value="admin.id"
- :label="admin.name"
- ></el-option>
- </el-select>
- </el-form-item>
- <!-- v-if="isShowFiled('第二核对人员工号')" -->
- <el-form-item
- label="第二核对人员工号:"
- v-if="isShowFiled('第二核对人员工号')"
- :prop="isName('第二核对人员工号')"
- :rules="isCheckmust('第二核对人员工号')"
- label-width="150px"
- >
- <el-input
- style="width: 200px"
- v-model="doubleReview.employee_number"
- ></el-input>
- </el-form-item>
- <p
- style="margin-left: 13px; margin-top: 10px"
- v-if="doubleReview.creater != 0"
- >
- {{ getFirstCheckDesc() }}
- </p>
- <p
- style="margin-left: 13px; margin-top: 10px"
- v-if="doubleReview.modifier != 0"
- >
- {{ getScondCheckDesc() }}
- </p>
- </el-form>
-
- <div slot="footer" class="dialog-footer">
- <el-button @click="handleCancle">取 消</el-button>
- <el-button type="primary" @click="handleComfirm('doubleReview')"
- >保 存</el-button
- >
- </div>
- </el-dialog>
-
-
-
- <el-dialog
- title="提示"
- :visible.sync="infoDialogVisible"
- width="30%">
- <span>
- <el-form>
- <el-row>
- <span>申请日期:</span>
- <span>
- <el-date-picker
- type="datetime"
- format="yyyy-MM-dd HH:mm"
- value-format="yyyy-MM-dd HH:mm"
- placeholder="选择时间"
- v-model="selected_date"
- ></el-date-picker>
- </span>
- </el-row>
- <el-row>
- <span>备注:</span>
- <span>
- <el-input v-model="remark" style="width:200px"></el-input>
- </span>
- </el-row>
- </el-form>
-
- </span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="infoDialogVisible = false">取 消</el-button>
- <el-button type="primary" @click="saveInformation">确 定</el-button>
- </span>
- </el-dialog>
- </div>
-
-
-
-
- </template>
-
- <script>
- import { postDoubleCheck, changeRole,saveInformation } from "@/api/dialysis";
- import { uParseTime } from "@/utils/tools";
- import { parseTime } from "@/utils";
- import { getDataConfig } from "@/utils/data";
- import store from "@/store";
- export default {
- name: "doubleCheckDialog",
- data() {
- return {
- isVisibility: false,
- time: "",
- isClose: false,
- check_time: 0,
- first_check_time: 0,
-
- doubleReview: {
- dialysis_item_check: "1",
- dialysis_parameter_check: "1",
- vascular_access_verification: "1",
- pipeline_connection_check: "1",
- dialysis_item_desc: "",
- dialysis_parameter_desc: "",
- vascular_access_desc: "",
- pipeline_connection_desc: "",
- collator: "",
-
- creater: this.$store.getters.xt_user.user.id,
- modifier: "",
- created_time: 0,
- updated_time: 0,
- check_time: 0,
- first_check_time: 0,
- employee_number: "",
- dialyzer_batch_number:"",
- needle_batch_number:""
- },
- dialysate_formulation_options: [],
- record_date: "",
- checkList: [],
- checkListOne: [],
- checkListTwo: [],
- checkListThree: [],
- diazes: "透析器/灌流器:",
- puncture_needle: "穿刺针:",
- dialysate_formulation: "透析液配方:",
- kalium: "钾:",
- calcium: "钙:",
- dialys_mode: "透析模式:",
- long_time: "透析时长:",
- target_ultrafiltration: "目标超滤量:",
- prescription_water:"处方脱水量:",
- anticoagulant: "抗凝剂:",
- anticoagulant_shouji: "首剂:",
- anticoagulant_weichi: "维持:",
- anticoagulant_zongliang: "总量:",
- displace_liqui_part: "置换液:",
- replacement_total: "置换量:",
- blood_flow_volume: "处方血流量:",
- dialysate_flow: "透析液流量:",
- blood_access_part_opera_id: "通路类型:",
- displace_liqui_value: "置换液总量:",
- job_number: "",
- org_id: 0,
- infoDialogVisible:false,
- selected_date:"",
- remark:""
- };
- },
- methods: {
- isName(name) {
- let filedList = this.$store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (filedList[i].module == 8 && filedList[i].filed_name_cn == name) {
- return filedList[i].filed_name;
- }
- }
- },
-
- isCheckmust(name) {
- let filedList = this.$store.getters.xt_user.fileds;
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 8 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_write == 1
- ) {
- // console.log(filedList[i].is_write,'false')
- return [
- {
- required: true,
- message: `请输入${name}`,
- trigger: ["blur", "change"],
- },
- ];
- }
- }
- },
- isShowFiled(name) {
- var filedList = this.$store.getters.xt_user.fileds;
-
- for (let i = 0; i < filedList.length; i++) {
- if (
- filedList[i].module == 8 &&
- filedList[i].filed_name_cn == name &&
- filedList[i].is_show == 1
- ) {
- return true;
- }
- }
- return false;
- },
- show() {
-
- if(this.admin_users!=null && this.admin_users.length >0){
- var arr = []
- for(let i=0;i<this.admin_users.length;i++){
- if(this.admin_users[i].status == 1){
- arr.push(this.admin_users[i])
- }
- }
-
- this.admin_users = []
- this.admin_users.push(...arr)
-
- }
-
- this.isVisibility = true;
- if (this.double_check.id > 0) {
- this.first_check_time = uParseTime(
- this.double_check.first_check_time,
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
-
- if (
- this.$store.getters.xt_user.user.id == this.double_check.creater ||
- this.double_check.modifier > 0
- ) {
- if (this.double_check.modifier > 0) {
- this.check_time = uParseTime(
- this.doubleReview.check_time,
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
- }
- } else if (
- this.$store.getters.xt_user.user.id != this.double_check.creater &&
- this.double_check.modifier == 0
- ) {
- this.check_time = uParseTime(new Date(), "{y}-{m}-{d} {h}:{i}").split(
- " "
- )[1];
- this.doubleReview.modifier = this.$store.getters.xt_user.user.id;
- }
- if (this.doubleReview.modifier == 0) {
- this.doubleReview.modifier = "";
- }
- } else {
- var nowDate = new Date();
- var nowHours = nowDate.getHours();
- var nowMinutes = nowDate.getMinutes();
- // if(this.$store.getters.xt_user.user.id != this.double_check.creater && this.double_check.modifier == 0){
- // this.check_time = (nowHours < 10 ? '0' + nowHours : nowHours) + ':' + (nowMinutes < 10 ? '0' + nowMinutes : nowMinutes)
- // }
- this.first_check_time =
- (nowHours < 10 ? "0" + nowHours : nowHours) +
- ":" +
- (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
- }
- },
- hide() {
- this.isVisibility = false;
- },
- handleCancle: function () {
- this.isVisibility = false;
- },
- handleComfirm(formName) {
- console.log(this.doubleReview, "提交参数");
- this.$refs[formName].validate((valid) => {
- if (valid) {
- if (this.patient.id <= 0) {
- this.$message.error("没有选择患者");
- return;
- }
- var first_check_time = this.record_date + " " + this.first_check_time;
- var check_time = this.record_date + " " + this.check_time;
-
- var first_time = new Date(first_check_time).getTime();
- var second_time = new Date(check_time).getTime();
-
- if (first_time >= second_time) {
- this.$message.error("第一次核对时间不能大于或者等于第二次核对时间");
- return;
- }
-
- if (this.doubleReview.creater == this.doubleReview.modifier) {
- this.$message.error("第一次核对人不能与第二次核对人相同");
- return;
- }
-
- let ParamsQuery = this.doubleReview;
- ParamsQuery["patient"] = this.patient.id;
- ParamsQuery["record_date"] = this.record_date;
- if (this.check_time) {
- ParamsQuery["check_time"] =
- this.record_date + " " + this.check_time;
- }
-
- if (this.first_check_time) {
- ParamsQuery["first_check_time"] =
- this.record_date + " " + this.first_check_time;
- }
-
- ParamsQuery["creater"] = this.doubleReview.creater;
- ParamsQuery["modifier"] = this.doubleReview.modifier;
- ParamsQuery['employee_number'] = this.doubleReview.employee_number
- ParamsQuery['dialyzer_batch_number'] = this.doubleReview.dialyzer_batch_number
- ParamsQuery['needle_batch_number'] = this.doubleReview.needle_batch_number
- console.log(ParamsQuery, "提交参数");
- postDoubleCheck(ParamsQuery).then((response) => {
- if (response.data.state == 0) {
- if(response.data.code == 600000008){
- this.infoDialogVisible = true
- }
- this.$message.error(response.data.msg);
- return false;
- } else {
- this.$notify({
- title: "成功",
- message: "提交成功",
- type: "success",
- duration: 2000,
- });
-
- this.doubleReview.creater =
- response.data.data.doubleCheck.creater;
- this.doubleReview.check_time =
- response.data.data.doubleCheck.check_time;
- this.doubleReview.first_check_time =
- response.data.data.doubleCheck.first_check_time;
- this.doubleReview.modifier =
- response.data.data.doubleCheck.modifier;
-
- this.first_check_time = uParseTime(
- this.doubleReview.first_check_time,
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
-
- let doublecheck_resp = response.data.data.doubleCheck;
- var doubleCheck = this.double_check;
- for (var index in doublecheck_resp) {
- this.$set(doubleCheck, index, doublecheck_resp[index]);
- }
- this.hide();
- }
- });
- } else {
- console.log("error submit!!");
- return false;
- }
- });
- },
- getFirstCheckDesc: function () {
- if (this.double_check.creater > 0) {
- if (
- this.doubleReview.first_check_time > 0 &&
- this.doubleReview.check_time > 0
- ) {
- if (
- this.doubleReview.first_check_time < this.doubleReview.check_time
- ) {
- let time = uParseTime(
- this.doubleReview.first_check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.creater <= 0) {
- return "";
- }
-
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return "";
- }
-
- var leng = this.admin_users.length;
- if (leng == 0) {
- return "";
- }
-
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.creater) {
- let name = this.admin_users[index].name;
- desc = "第一核对人员:" + name + " 第一核对时间:" + time;
-
- break;
- }
- }
- return desc;
- } else {
- let time = uParseTime(
- this.doubleReview.check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.modifier <= 0) {
- return "";
- }
-
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return "";
- }
-
- var leng = this.admin_users.length;
- if (leng == 0) {
- return "";
- }
-
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.modifier) {
- let name = this.admin_users[index].name;
- desc = "第一核对人员:" + name + " 第一核对时间:" + time;
-
- break;
- }
- }
- return desc;
- }
- } else {
- let time = uParseTime(
- this.doubleReview.first_check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.creater <= 0) {
- return "";
- }
-
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return "";
- }
-
- var leng = this.admin_users.length;
- if (leng == 0) {
- return "";
- }
-
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.creater) {
- let name = this.admin_users[index].name;
- desc = "第一核对人员:" + name + " 第一核对时间:" + time;
-
- break;
- }
- }
- return desc;
- }
- }
- },
- getScondCheckDesc: function () {
- if (this.double_check.modifier > 0) {
- if (
- this.doubleReview.first_check_time > 0 &&
- this.doubleReview.check_time > 0
- ) {
- if (
- this.doubleReview.first_check_time < this.doubleReview.check_time
- ) {
- let time = uParseTime(
- this.doubleReview.check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.modifier <= 0) {
- return "";
- }
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return desc;
- }
- var leng = this.admin_users.length;
- if (leng == 0) {
- return desc;
- }
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.modifier) {
- let name = this.admin_users[index].name;
- desc = "第二核对人员:" + name + " 第二核对时间:" + time;
- break;
- }
- }
- return desc;
- } else {
- let time = uParseTime(
- this.doubleReview.first_check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.creater <= 0) {
- return "";
- }
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return desc;
- }
- var leng = this.admin_users.length;
- if (leng == 0) {
- return desc;
- }
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.creater) {
- let name = this.admin_users[index].name;
- desc = "第二核对人员:" + name + " 第二核对时间:" + time;
- break;
- }
- }
- return desc;
- }
- } else {
- let time = uParseTime(
- this.doubleReview.check_time,
- "{y}-{m}-{d} {h}:{i}:{s}"
- );
- if (this.doubleReview.modifier <= 0) {
- return "";
- }
- var desc = "";
- if (
- this.admin_users == null ||
- typeof this.admin_users.length == "undefined"
- ) {
- return desc;
- }
- var leng = this.admin_users.length;
- if (leng == 0) {
- return desc;
- }
- for (let index = 0; index < leng; index++) {
- if (this.admin_users[index].id == this.doubleReview.modifier) {
- let name = this.admin_users[index].name;
- desc = "第二核对人员:" + name + " 第二核对时间:" + time;
- break;
- }
- }
- return desc;
- }
- }
- },
- changeBox(val) {
- var arr = [];
- var str = val.join(";");
- if (str.indexOf("透析器/灌流器") != -1 && this.prescription != null) {
- arr.push(
- "透析器/灌流器:" +
- (this.prescription.dialyzer_perfusion_apparatus
- ? this.prescription.dialyzer_perfusion_apparatus
- : "")
- );
- }
-
- if (str.indexOf("透析器/灌流器") != -1 && this.prescription == null) {
- arr.push("透析器/灌流器:");
- }
-
- if (str.indexOf("穿刺针") != -1 && this.predialysis_evaluation.id != 0) {
- arr.push("穿刺针:" + this.predialysis_evaluation.puncture_needle);
- }
-
- if (str.indexOf("穿刺针") != -1 && this.predialysis_evaluation.id == 0) {
- arr.push("穿刺针:");
- }
-
- if (str.indexOf("透析液配方") != -1 && this.prescription != null) {
- arr.push(
- "透析液配方:" +
- this.GetDialysateFormulationById(
- this.prescription.dialysate_formulation
- )
- );
- }
-
- if (str.indexOf("透析液配方") != -1 && this.prescription == null) {
- arr.push("透析液配方:");
- }
- if (str.indexOf("钾") != -1 && this.prescription != null) {
- arr.push(
- "钾:" + (this.prescription.kalium ? this.prescription.kalium : "")
- );
- }
- if (str.indexOf("钾") != -1 && this.prescription == null) {
- arr.push("钾:");
- }
- if (str.indexOf("钙") != -1 && this.prescription != null) {
- arr.push(
- "钙:" + (this.prescription.calcium ? this.prescription.calcium : "")
- );
- }
- if (str.indexOf("钙") != -1 && this.prescription == null) {
- arr.push("钙:");
- }
-
- this.doubleReview.dialysis_item_desc = arr.join(";");
- if (val.length > 0) {
- this.doubleReview.dialysis_item_check = 2;
- } else {
- this.doubleReview.dialysis_item_check = "1";
- }
- },
- changeBoxOne(val) {
- var arr = [];
- var str = val.join(";");
-
- if (str.indexOf("透析模式") != -1 && this.prescription != null) {
- arr.push(
- "透析模式:" +
- (this.getMode(this.prescription.mode_id)
- ? this.getMode(this.prescription.mode_id)
- : "")
- );
- }
- if (str.indexOf("透析模式") != -1 && this.prescription == null) {
- arr.push("透析模式:");
- }
-
- if (str.indexOf("透析时长") != -1 && this.prescription != null) {
- arr.push(
- "透析时长:" +
- (this.prescription.dialysis_duration_hour
- ? this.prescription.dialysis_duration_hour
- : "") +
- "小时" +
- this.prescription.dialysis_duration_minute +
- "分"
- );
- }
-
- if (str.indexOf("透析时长") != -1 && this.prescription == null) {
- arr.push("透析时长:");
- }
-
- if (str.indexOf("目标超滤量") != -1 && this.prescription != null) {
- arr.push(
- "目标超滤量:" +
- (this.prescription.target_ultrafiltration
- ? this.prescription.target_ultrafiltration
- : "")
- );
- }
- if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
- arr.push("目标超滤量:");
- }
- if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
- arr.push("处方脱水量:");
- }
-
- if (str.indexOf("处方脱水量") != -1 && this.prescription != null) {
- arr.push(
- "处方脱水量:" +
- (this.prescription.prescription_water
- ? this.prescription.prescription_water
- : "")
- );
- }
-
- if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
- arr.push("处方脱水量:");
- }
-
-
- if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
- arr.push(
- "抗凝剂:" +
- (this.prescription.anticoagulant
- ? this.prescription.anticoagulant
- : "")
- );
- }
- if (str.indexOf("抗凝剂") != -1 && this.prescription == null) {
- arr.push("抗凝剂:");
- }
- if (str.indexOf("首剂") != -1 && this.prescription != null) {
- arr.push(
- "首剂:" +
- (this.prescription.anticoagulant_shouji
- ? this.prescription.anticoagulant_shouji
- : "")
- );
- }
- if (str.indexOf("首剂") != -1 && this.prescription == null) {
- arr.push("首剂:");
- }
- if (str.indexOf("维持") != -1 && this.prescription != null) {
- arr.push(
- "维持:" +
- (this.prescription.anticoagulant_weichi
- ? this.prescription.anticoagulant_weichi
- : "")
- );
- }
-
- if (str.indexOf("维持") != -1 && this.prescription == null) {
- arr.push("维持:");
- }
-
- if (str.indexOf("总量") != -1 && this.prescription != null) {
- arr.push(
- "总量:" +
- (this.prescription.anticoagulant_zongliang
- ? this.prescription.anticoagulant_zongliang
- : "")
- );
- }
-
- if (str.indexOf("总量") != -1 && this.prescription == null) {
- arr.push("总量:");
- }
-
- if (str.indexOf("置换液") != -1 && this.prescription != null) {
- arr.push(
- "置换液:" +
- (this.getDisplace(this.prescription.displace_liqui_part)
- ? this.getDisplace(this.prescription.displace_liqui_part)
- : "")
- );
- }
-
- if (str.indexOf("置换液") != -1 && this.prescription == null) {
- arr.push("置换液:");
- }
-
- if (str.indexOf("置换量") != -1 && this.prescription != null) {
- arr.push(
- "置换量:" +
- (this.prescription.replacement_total
- ? this.prescription.replacement_total
- : "")
- );
- }
-
- if (str.indexOf("置换量") != -1 && this.prescription == null) {
- arr.push("置换量:");
- }
-
- if (str.indexOf("处方血流量") != -1 && this.prescription != null) {
- arr.push(
- "处方血流量:" +
- (this.prescription.blood_flow_volume
- ? this.prescription.blood_flow_volume
- : "")
- );
- }
-
- if (str.indexOf("处方血流量") != -1 && this.prescription == null) {
- arr.push("处方血流量:");
- }
-
- if (str.indexOf("透析液流量") != -1 && this.prescription != null) {
- arr.push(
- "透析液流量:" +
- (this.prescription.dialysate_flow
- ? this.prescription.dialysate_flow
- : "")
- );
- }
-
- if (str.indexOf("透析液流量") != -1 && this.prescription == null) {
- arr.push("透析液流量:");
- }
- if (str.indexOf("置换液总量") != -1 && this.prescription != null) {
- arr.push(
- "置换液总量:" +
- (this.prescription.displace_liqui_value
- ? this.prescription.displace_liqui_value
- : "")
- );
- }
- if (str.indexOf("置换液总量") != -1 && this.prescription == null) {
- arr.push("置换液总量:");
- }
- this.doubleReview.dialysis_parameter_desc = arr.join(";");
- if (val.length > 0) {
- this.doubleReview.dialysis_parameter_check = 2;
- } else {
- this.doubleReview.dialysis_parameter_check = "1";
- }
- },
- changeBoxTwo(val) {
- var arr = [];
- var str = val.join(";");
-
- if (
- str.indexOf("通路类型") != -1 &&
- this.predialysis_evaluation.id != 0
- ) {
- arr.push(
- "通路类型:" +
- this.getBloodAccess(
- this.predialysis_evaluation.blood_access_part_opera_id
- )
- );
- }
-
- if (
- str.indexOf("通路类型") != -1 &&
- this.predialysis_evaluation.id == 0
- ) {
- arr.push("通路类型:");
- }
- if (str.indexOf("动静脉接错") != -1) {
- arr.push("动静脉接错:");
- }
- if (str.indexOf("渗血") != -1) {
- arr.push("渗血:");
- }
- if (str.indexOf("压迫") != -1) {
- arr.push("压迫:");
- }
- if (str.indexOf("折叠") != -1) {
- arr.push("折叠:");
- }
- if (str.indexOf("滑脱") != -1) {
- arr.push("滑脱:");
- }
- this.doubleReview.vascular_access_desc = arr.join(";");
- if (val.length > 0) {
- this.doubleReview.vascular_access_verification = 2;
- } else {
- this.doubleReview.vascular_access_verification = "1";
- }
- },
- changeBoxThree(val) {
- var arr = [];
- var str = val.join(";");
-
- if (str.indexOf("泵前补液测管未夹") != -1) {
- arr.push("泵前补液测管未夹:");
- }
- if (str.indexOf("肝素管夹未开启") != -1) {
- arr.push("肝素管夹未开启:");
- }
- if (str.indexOf("透析器连接错误") != -1) {
- arr.push("透析器连接错误:");
- }
- if (str.indexOf("动静脉壶页面不标准") != -1) {
- arr.push("动静脉壶页面不标准:");
- }
- if (str.indexOf("静脉管路未卡入保护夹") != -1) {
- arr.push("静脉管路未卡入保护夹:");
- }
- if (str.indexOf("压力传感器夹未打开") != -1) {
- arr.push("压力传感器夹未打开");
- }
- if (str.indexOf("接口连接松动") != -1) {
- arr.push("接口连接松动");
- }
- if (str.indexOf("管路打折") != -1) {
- arr.push("管路打折");
- }
- this.doubleReview.pipeline_connection_desc = arr.join(";");
- if (val.length > 0) {
- this.doubleReview.pipeline_connection_check = 2;
- } else {
- this.doubleReview.pipeline_connection_check = "1";
- }
- },
-
- changeRadio(val) {
- if (val == 1) {
- this.doubleReview.dialysis_item_desc = "";
- this.checkList = [];
- }
- },
- changeRadioTwo(val) {
- if (val == 1) {
- this.doubleReview.dialysis_parameter_desc = "";
- this.checkListOne = [];
- }
- },
- changeRadioThree(val) {
- if (val == 1) {
- this.doubleReview.vascular_access_desc = "";
- this.checkListTwo = [];
- }
- },
- changeRadioFour(val) {
- if (val == 1) {
- this.doubleReview.pipeline_connection_desc = "";
- this.checkListThree = [];
- }
- },
-
- GetDialysateFormulationById(val) {
- this.dialysate_formulation_options = getDataConfig(
- "hemodialysis",
- "dialysate_formulation"
- );
-
- let name = "";
- let dfl = this.dialysate_formulation_options.length;
- for (let index = 0; index < dfl; index++) {
- if (this.dialysate_formulation_options[index].id == val) {
- name = this.dialysate_formulation_options[index].name;
- break;
- }
- }
- return name;
- },
- getMode(id) {
- var name = "";
- if (id == 1) {
- name = "HD";
- }
- if (id == 2) {
- name = "HDF";
- }
-
- if (id == 3) {
- name = "HD+HP";
- }
-
- if (id == 4) {
- name = "HP";
- }
- if (id == 5) {
- name = "HF";
- }
- if (id == 6) {
- name = "SCUF";
- }
- if (id == 7) {
- name = "IUF";
- }
- if (id == 8) {
- name = "HFHD";
- }
-
- if (id == 9) {
- name = "HFHD+HP";
- }
- if (id == 10) {
- name = "PHF";
- }
-
- if (id == 11) {
- name = "HFR";
- }
-
- if (id == 12) {
- name = "HDF+HP";
- }
-
- if (id == 13) {
- name = "CRRT";
- }
-
- if (id == 14) {
- name = "腹水回输";
- }
- if (id == 19) {
- name = "IUF+HD";
- }
- if (id == 20) {
- name = "UF";
- }
- if (id == 21) {
- name = "HD+";
- }
- if (id == 22) {
- name = "血浆胆红素吸附+HDF";
- }
- if (id == 23) {
- name = "血浆胆红素吸附";
- }
- if (id == 24) {
- name = "I-HDF";
- }
- if (id == 25) {
- name = "HD高通";
- }
- if (id == 26) {
- name = "CVVH";
- }
- if (id == 27) {
- name = "CVVHD";
- }
- if (id == 28) {
- name = "CVVHDF";
- }
- if (id == 29) {
- name = "PE";
- }
- return name;
- },
-
- getAnticoagulant(id) {
- var name = "";
- if (id == 1) {
- name = "无肝素";
- }
- if (id == 2) {
- name = "普通肝素";
- }
- if (id == 3) {
- name = "低分子肝素";
- }
- if (id == 4) {
- name = "阿加曲班";
- }
- if (id == 5) {
- name = "枸橼酸钠";
- }
- if (id == 6) {
- name = "低分子肝素钙";
- }
- if (id == 7) {
- name = "低分子肝素钠";
- }
- return name;
- },
-
- getBloodAccess(id) {
- let vascular_access_desc = getDataConfig(
- "hemodialysis",
- "vascular_access_desc"
- );
- var name = "";
- for (let i = 0; i < vascular_access_desc.length; i++) {
- if (vascular_access_desc[i].id == id) {
- name = vascular_access_desc[i].name;
- }
- }
- return name;
- },
- getDisplace(id) {
- var name = "";
- var arr = this.$store.getters.displace_liqui;
- for (let i = 0; i < arr.length; i++) {
- if (id == arr[i].id) {
- name = arr[i].name;
- }
- }
- return name;
- },
- changeRole(admin_user_id) {
- var params = {
- admin_user_id: admin_user_id,
- };
- changeRole(params).then((response) => {
- if (response.data.state == 1) {
- var role = response.data.data.adminRole;
- this.job_number = role.job_number;
- }
- });
- },
- saveInformation(){
- var params = {
- selected_date:this.selected_date,
- patient_id:this.$route.query.patient_id,
- record_date:this.$route.query.date,
- module:5,
- remark:this.remark,
- }
- saveInformation(params).then(response=>{
- if(response.data.state == 1){
- var information = response.data.data.information
- this.$message.success("提交成功!")
- this.infoDialogVisible = false
- }
- })
- }
- },
-
- props: {
- admin_users: {
- //系统用户列表
- type: Array,
- default: () => {
- return [];
- },
- },
-
- double_check: {
- // 双人核对
- type: Object,
- default: () => {
- return { id: 0 };
- },
- },
- patient: {
- // 患者信息
- type: Object,
- default: () => {
- return { id: 0 };
- },
- },
- predialysis_evaluation: {
- // 透前评估
- type: Object,
- default: () => {
- return { id: 0 };
- },
- },
- prescription: {
- // 透析处方
- type: Object,
- default: () => {
- return { id: 0 };
- },
- },
- },
- watch: {
- isVisibility(val) {
- console.log("presciption23233223322323",this.prescription)
- if(this.prescription != null && this.prescription.id == 0){
- if(this.org_id == 10440 || this.org_id == 0){
- this.diazes = "透析器/灌流器:" + " " + "批号:";
- }
- }
- if (this.prescription != null && this.prescription.id != 0) {
- if (this.prescription.dialyzer_perfusion_apparatus != "" ||this.prescription.dialysis_dialyszers != "" || this.prescription.dialysis_irrigation != "") {
-
- if(this.org_id == 10440 || this.org_id == 0){
- this.diazes = "透析器/灌流器:";
- this.diazes = this.diazes + this.prescription.dialyzer_perfusion_apparatus;
- this.diazes = this.diazes + this.prescription.dialysis_dialyszers + this.prescription.dialysis_irrigation + " " +"批号:"+ " ";
-
- console.log("hhahahahhahahahawowoowowowowo--------",this.diazes)
- }
-
- if(this.org_id!=0 && this.org_id!=10440){
-
- this.diazes = "透析器/灌流器:";
- this.diazes =
- this.diazes + this.prescription.dialyzer_perfusion_apparatus;
- this.diazes =
- this.diazes +
- this.prescription.dialysis_dialyszers +
- this.prescription.dialysis_irrigation
- }
-
- } else {
-
- if(this.org_id == 10440 || this.org_id == 0){
- this.diazes = "";
- this.diazes = this.diazes + " " +"批号:"+ " ";
- }
-
- if(this.org_id!=0 && this.org_id!=10440){
- this.diazes = "";
- this.diazes = this.diazes;
- }
-
- }
-
- if (this.prescription.dialysate_formulation != "") {
- this.dialysate_formulation = "透析液配方:";
- this.dialysate_formulation =
- this.dialysate_formulation +
- this.GetDialysateFormulationById(
- this.prescription.dialysate_formulation
- );
- } else {
- this.dialysate_formulation = this.dialysate_formulation;
- }
-
- if (this.prescription.kalium != "") {
- this.kalium = "钾:";
- this.kalium =
- this.kalium +
- (this.prescription.kalium ? this.prescription.kalium : "");
- } else {
- this.kalium = this.kalium;
- }
-
- if (this.prescription.calcium != "") {
- this.calcium = "钙:";
- this.calcium =
- this.calcium +
- (this.prescription.calcium ? this.prescription.calcium : "");
- } else {
- this.calcium = this.calcium;
- }
-
- if (this.prescription.mode_id > 0) {
- this.dialys_mode = "透析模式:";
- this.dialys_mode =
- this.dialys_mode + this.getMode(this.prescription.mode_id);
- } else {
- this.dialys_mode = this.dialys_mode;
- }
-
- if (
- this.prescription.dialysis_duration_hour != "" ||
- this.prescription.dialysis_duration_minute != ""
- ) {
- this.long_time = "透析时长:";
- this.long_time =
- this.long_time +
- (this.prescription.dialysis_duration_hour
- ? this.prescription.dialysis_duration_hour
- : "") +
- "小时" +
- (this.prescription.dialysis_duration_minute
- ? this.prescription.dialysis_duration_minute
- : "") +
- "分";
- } else {
- this.long_time = this.long_time;
- }
-
- if (this.prescription.target_ultrafiltration != "") {
- this.target_ultrafiltration = "目标超滤量:";
- this.target_ultrafiltration =
- this.target_ultrafiltration +
- (this.prescription.target_ultrafiltration
- ? this.prescription.target_ultrafiltration
- : "");
- } else {
- this.target_ultrafiltration = this.target_ultrafiltration;
- }
-
- if (this.prescription.prescription_water != "") {
- this.prescription_water = "处方脱水量:";
- this.prescription_water =
- this.prescription_water +
- (this.prescription.prescription_water
- ? this.prescription.prescription_water
- : "");
- } else {
- this.prescription_water = this.prescription_water;
- }
-
- if (this.prescription.anticoagulant != "") {
- this.anticoagulant = "抗凝剂:";
- this.anticoagulant =
- this.anticoagulant +
- (this.getAnticoagulant(this.prescription.anticoagulant)
- ? this.getAnticoagulant(this.prescription.anticoagulant)
- : "");
- } else {
- this.anticoagulant = this.anticoagulant;
- }
-
- if (this.prescription.anticoagulant_shouji != "") {
- this.anticoagulant_shouji = "首剂:";
- this.anticoagulant_shouji =
- this.anticoagulant_shouji +
- (this.prescription.anticoagulant_shouji
- ? this.prescription.anticoagulant_shouji
- : "");
- } else {
- this.anticoagulant_shouji = this.anticoagulant_shouji;
- }
-
- if (this.prescription.anticoagulant_weichi != "") {
- this.anticoagulant_weichi = "维持:";
- this.anticoagulant_weichi =
- this.anticoagulant_weichi +
- (this.prescription.anticoagulant_weichi
- ? this.prescription.anticoagulant_weichi
- : "");
- } else {
- this.anticoagulant_weichi = this.anticoagulant_weichi;
- }
-
- if (this.prescription.anticoagulant_zongliang != "") {
- this.anticoagulant_zongliang = "总量:";
- this.anticoagulant_zongliang =
- this.anticoagulant_zongliang +
- (this.prescription.anticoagulant_zongliang
- ? this.prescription.anticoagulant_zongliang
- : "");
- } else {
- this.anticoagulant_zongliang = this.anticoagulant_zongliang;
- }
-
- if (this.prescription.displace_liqui_part != "") {
- this.displace_liqui_part = "置换液:";
- this.displace_liqui_part =
- this.displace_liqui_part +
- (this.getDisplace(this.prescription.displace_liqui_part)
- ? this.getDisplace(this.prescription.displace_liqui_part)
- : "");
- } else {
- this.displace_liqui_part = this.getDisplace(this.displace_liqui_part);
- }
-
- if (this.prescription.replacement_total != "") {
- this.replacement_total = "置换量:";
- this.replacement_total =
- this.replacement_total +
- (this.prescription.replacement_total
- ? this.prescription.replacement_total
- : "");
- } else {
- this.replacement_total = this.replacement_total;
- }
-
- if (this.prescription.dialysate_flow != "") {
- this.dialysate_flow = "透析液流量:";
- this.dialysate_flow =
- this.dialysate_flow +
- (this.prescription.dialysate_flow
- ? this.prescription.dialysate_flow
- : "");
- } else {
- this.dialysate_flow = this.dialysate_flow;
- }
-
- if (this.prescription.displace_liqui_value != "") {
- this.displace_liqui_value = "置换液总量:";
- this.displace_liqui_value =
- this.displace_liqui_value + this.prescription.displace_liqui_value;
- }
- }
- if (this.predialysis_evaluation != null &&this.predialysis_evaluation.id != 0) {
- if(this.org_id == 0 || this.org_id == 10440){
- this.puncture_needle = "穿刺针:";
- this.puncture_needle =this.puncture_needle + this.predialysis_evaluation.puncture_needle+ " " + "批号:" + " ";
- this.blood_access_part_opera_id =
- this.blood_access_part_opera_id +
- this.getBloodAccess(
- this.predialysis_evaluation.blood_access_part_opera_id
- );
- }
-
- if(this.org_id !=0 && this.org_id!=10440){
-
- this.puncture_needle = "穿刺针:";
- this.puncture_needle =
- this.puncture_needle + this.predialysis_evaluation.puncture_needle
- this.blood_access_part_opera_id =
- this.blood_access_part_opera_id +
- this.getBloodAccess(
- this.predialysis_evaluation.blood_access_part_opera_id
- );
- }
-
- }
- if(this.predialysis_evaluation != null &&this.predialysis_evaluation.id == 0){
- this.puncture_needle = "穿刺针:" + " "+ "批号:"
- }
- if (this.double_check != null && this.double_check.id != 0) {
- if (
- this.double_check.dialysis_item_desc.indexOf("透析器/灌流器") != -1
- ) {
- this.checkList.push(
- "透析器/灌流器:" + this.prescription.dialyzer_perfusion_apparatus
- );
- }
- if (this.double_check.dialysis_item_desc.indexOf("穿刺针") != -1) {
- this.checkList.push(
- "穿刺针:" +
- (this.predialysis_evaluation.puncture_needle
- ? this.predialysis_evaluation.puncture_needle
- : "")
- );
- }
- if (this.double_check.dialysis_item_desc.indexOf("透析液配方:") != -1) {
- this.checkList.push(
- "透析液配方:" +
- this.GetDialysateFormulationById(
- this.prescription.dialysate_formulation
- )
- );
- }
- if (this.double_check.dialysis_item_desc.indexOf("钾:") != -1) {
- this.checkList.push(
- "钾:" + (this.prescription.kalium ? this.prescription.kalium : "")
- );
- }
- if (this.double_check.dialysis_item_desc.indexOf("钙:") != -1) {
- this.checkList.push(
- "钙:" + (this.prescription.calcium ? this.prescription.calcium : "")
- );
- }
- if (
- this.double_check.dialysis_parameter_desc.indexOf("透析模式:") != -1
- ) {
- this.checkListOne.push(
- "透析模式:" + this.getMode(this.prescription.mode_id)
- );
- }
- if (
- this.double_check.dialysis_parameter_desc.indexOf("透析时长") != -1
- ) {
- this.checkListOne.push(
- "透析时长:" +
- (this.prescription.dialysis_duration_hour
- ? this.prescription.dialysis_duration_hour
- : "")
- );
- }
- if (
- this.double_check.dialysis_parameter_desc.indexOf("目标超滤量") != -1
- ) {
- this.checkListOne.push(
- "目标超滤量:" +
- (this.prescription.target_ultrafiltration
- ? this.prescription.target_ultrafiltration
- : "")
- );
- }
-
- if (
- this.double_check.dialysis_parameter_desc.indexOf("处方脱水量") != -1
- ) {
- this.checkListOne.push(
- "处方脱水量:" +
- (this.prescription.prescription_water
- ? this.prescription.prescription_water
- : "")
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
- this.checkListOne.push(
- "抗凝剂:" +
- this.getAnticoagulant(
- this.prescription.anticoagulant
- ? this.prescription.anticoagulant
- : ""
- )
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("首剂") != -1) {
- this.checkListOne.push(
- "首剂:" +
- (this.prescription.anticoagulant_shouji
- ? this.prescription.anticoagulant_shouji
- : "")
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("维持") != -1) {
- this.checkListOne.push(
- "维持:" +
- (this.prescription.anticoagulant_weichi
- ? this.prescription.anticoagulant_weichi
- : "")
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("总量") != -1) {
- this.checkListOne.push(
- "总量:" +
- (this.prescription.anticoagulant_zongliang
- ? this.prescription.anticoagulant_zongliang
- : "")
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("置换液") != -1) {
- this.checkListOne.push(
- "置换液:" +
- (this.getDisplace(this.prescription.displace_liqui_part)
- ? this.getDisplace(this.prescription.displace_liqui_part)
- : "")
- );
- }
- if (this.double_check.dialysis_parameter_desc.indexOf("置换量") != -1) {
- this.checkListOne.push(
- "置换量:" +
- (this.prescription.replacement_total
- ? this.prescription.replacement_total
- : "")
- );
- }
- if (
- this.double_check.dialysis_parameter_desc.indexOf("处方血流量") != -1
- ) {
- this.checkListOne.push(
- "处方血流量:" +
- (this.prescription.blood_flow_volume
- ? this.prescription.blood_flow_volume
- : "")
- );
- }
- if (
- this.double_check.dialysis_parameter_desc.indexOf("透析液流量") != -1
- ) {
- this.checkListOne.push(
- "透析液流量:" +
- (this.prescription.dialysate_flow
- ? this.prescription.dialysate_flow
- : "")
- );
- }
-
- if (
- this.double_check.dialysis_parameter_desc.indexOf("置换液总量") != -1
- ) {
- this.checkListOne.push(
- "置换液总量:" +
- (this.prescription.displace_liqui_value
- ? this.prescription.displace_liqui_value
- : "")
- );
- }
- if (this.double_check.vascular_access_desc.indexOf("通路类型") != -1) {
- this.checkListTwo.push(
- "通路类型:" +
- this.getBloodAccess(
- this.predialysis_evaluation.blood_access_part_opera_id
- )
- );
- }
-
- if (
- this.double_check.vascular_access_desc.indexOf("动静脉接错") != -1
- ) {
- this.checkListTwo.push("动静脉接错");
- }
- if (this.double_check.vascular_access_desc.indexOf("渗血") != -1) {
- this.checkListTwo.push("渗血");
- }
- if (this.double_check.vascular_access_desc.indexOf("压迫") != -1) {
- this.checkListTwo.push("压迫");
- }
- if (this.double_check.vascular_access_desc.indexOf("折叠") != -1) {
- this.checkListTwo.push("折叠");
- }
- if (this.double_check.vascular_access_desc.indexOf("滑脱") != -1) {
- this.checkListTwo.push("滑脱");
- }
-
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "泵前补液测管未夹"
- ) != -1
- ) {
- this.checkListThree.push("泵前补液测管未夹");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "肝素管夹未开启"
- ) != -1
- ) {
- this.checkListThree.push("肝素管夹未开启");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "透析器连接错误"
- ) != -1
- ) {
- this.checkListThree.push("透析器连接错误");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "动静脉壶页面不标准"
- ) != -1
- ) {
- this.checkListThree.push("动静脉壶页面不标准");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "静脉管路未卡入保护夹"
- ) != -1
- ) {
- this.checkListThree.push("静脉管路未卡入保护夹");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf(
- "压力传感器夹未打开"
- ) != -1
- ) {
- this.checkListThree.push("压力传感器夹未打开");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf("接口连接松动") !=
- -1
- ) {
- this.checkListThree.push("接口连接松动");
- }
- if (
- this.double_check.pipeline_connection_desc.indexOf("管路打折") != -1
- ) {
- this.checkListThree.push("管路打折");
- }
- }
- },
- "double_check.id": function () {
- if (this.double_check.id > 0) {
- for (var index in this.doubleReview) {
- this.doubleReview[index] = this.double_check[index] + "";
- }
- this.doubleReview.created_time = this.double_check["created_time"];
- this.doubleReview.creater = this.double_check["creater"];
- this.doubleReview.updated_time = this.double_check["updated_time"];
- this.doubleReview.modifier = this.double_check["modifier"];
-
- this.doubleReview.dialysis_item_desc =
- this.double_check["dialysis_item_desc"];
- this.doubleReview.dialysis_parameter_desc =
- this.double_check["dialysis_parameter_desc"];
- this.doubleReview.vascular_access_desc =
- this.double_check["vascular_access_desc"];
- this.doubleReview.pipeline_connection_desc =
- this.double_check["pipeline_connection_desc"];
-
- this.doubleReview.created_time = this.double_check["created_time"];
- this.doubleReview.creater = this.double_check["creater"];
- this.doubleReview.updated_time = this.double_check["updated_time"];
- this.doubleReview.modifier = this.double_check["modifier"];
- this.doubleReview.check_time = this.double_check["check_time"];
- this.doubleReview.first_check_time =
- this.double_check["first_check_time"];
-
- this.first_check_time = uParseTime(
- this.doubleReview.first_check_time,
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
-
- if (
- this.$store.getters.xt_user.user.id == this.double_check.creater ||
- this.double_check.modifier > 0
- ) {
- this.check_time = uParseTime(
- this.doubleReview.check_time,
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
- } else if (
- this.$store.getters.xt_user.user.id != this.double_check.creater &&
- this.double_check.modifier == 0
- ) {
- this.check_time = uParseTime(
- new Date(),
- "{y}-{m}-{d} {h}:{i}"
- ).split(" ")[1];
- this.doubleReview.modifier = this.$store.getters.xt_user.user.id;
- }
- } else {
- this.dialysis_item_check = "1";
- this.dialysis_parameter_check = "1";
- this.vascular_access_verification = "1";
- this.pipeline_connection_check = "1";
-
- this.doubleReview.dialysis_item_desc = "";
- this.doubleReview.dialysis_parameter_desc = "";
- this.doubleReview.vascular_access_desc = "";
- this.doubleReview.pipeline_connection_desc = "";
-
- var nowDate = new Date();
- var nowYear = nowDate.getFullYear();
- var nowMonth = nowDate.getMonth() + 1;
- var nowDay = nowDate.getDate();
- var nowHours = nowDate.getHours();
- var nowMinutes = nowDate.getMinutes();
- if (
- this.$store.getters.xt_user.user.id != this.double_check.creater &&
- this.double_check.modifier == 0
- ) {
- this.check_time =
- (nowHours < 10 ? "0" + nowHours : nowHours) +
- ":" +
- (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
- }
- this.first_check_time =
- (nowHours < 10 ? "0" + nowHours : nowHours) +
- ":" +
- (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
- }
- },
-
-
- },
- created() {
- var date = this.$route.query && this.$route.query.date;
-
- this.record_date = date
- ? uParseTime(date, "{y}-{m}-{d}")
- : parseTime(new Date(), "{y}-{m}-{d}");
- this.org_id = this.$store.getters.xt_user.org.id;
-
- var nowDate = new Date();
- var nowYear = nowDate.getFullYear();
- var nowMonth = nowDate.getMonth() + 1;
- var nowDay = nowDate.getDate();
- var nowHours = nowDate.getHours();
- var nowMinutes = nowDate.getMinutes();
- if (
- this.$store.getters.xt_user.user.id != this.double_check.creater &&
- this.double_check.modifier == 0
- ) {
- this.check_time =
- (nowHours < 10 ? "0" + nowHours : nowHours) +
- ":" +
- (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
- }
- this.first_check_time =
- (nowHours < 10 ? "0" + nowHours : nowHours) +
- ":" +
- (nowMinutes < 10 ? "0" + nowMinutes : nowMinutes);
- },
- };
- </script>
-
- <style lang="scss">
- .newInline {
- display: flex;
- }
- .newItem {
- flex: 1;
- display: flex !important;
- .el-form-item__content {
- width: 100%;
- }
- }
- .newCheckBox {
- margin-bottom: 10px;
- .el-checkbox {
- margin-bottom: 10px;
- }
- }
- </style>
-
|