123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959 |
- <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;
- }
- });
- },
- },
-
- 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);
- }
- },
-
- 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
- }
- })
- }
- },
- 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>
-
|