|
@@ -8,8 +8,8 @@
|
8
|
8
|
<div style="width:24%">
|
9
|
9
|
<el-row>
|
10
|
10
|
<el-col :span="24">
|
11
|
|
- <span class="zone">分区:</span>
|
12
|
|
- <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber">
|
|
11
|
+ <span class="zone">分 区:</span>
|
|
12
|
+ <el-select v-model="forms.zone_id" placeholder="请选择" class="a" @change="changeBedNumber" style="width:125px">
|
13
|
13
|
<el-option
|
14
|
14
|
v-for="item in bedZone"
|
15
|
15
|
:key="item.id"
|
|
@@ -22,8 +22,8 @@
|
22
|
22
|
</el-row>
|
23
|
23
|
<el-row>
|
24
|
24
|
<el-col>
|
25
|
|
- <span class="zone">班次:</span>
|
26
|
|
- <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId">
|
|
25
|
+ <span class="zone">班 次:</span>
|
|
26
|
+ <el-select v-model="forms.class_id" placeholder="请选择" class="a" @change="changeClassId" style="width:125px">
|
27
|
27
|
<el-option
|
28
|
28
|
v-for="item in Classes"
|
29
|
29
|
:key="item.id"
|
|
@@ -36,7 +36,7 @@
|
36
|
36
|
<el-row>
|
37
|
37
|
<el-col>
|
38
|
38
|
<span>设备类型:</span>
|
39
|
|
- <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId">
|
|
39
|
+ <el-select v-model="forms.device_type" placeholder="请选择" class="a" @change="changeDeviceId" style="width:110px">
|
40
|
40
|
<el-option
|
41
|
41
|
v-for="item in DeviceTypeType"
|
42
|
42
|
:key="item.id"
|
|
@@ -116,15 +116,15 @@
|
116
|
116
|
</el-col>
|
117
|
117
|
<el-col :span="7">
|
118
|
118
|
<el-form-item label="设备类型:" required prop="devicetype">
|
119
|
|
- <el-select style="width:150px" v-model="form.devicetype">
|
|
119
|
+ <el-select style="width:150px" v-model="form.devicetype" :disabled="true">
|
120
|
120
|
<el-option v-for="item in this.DeviceTypes" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
121
|
121
|
</el-select>
|
122
|
122
|
</el-form-item>
|
123
|
123
|
</el-col>
|
124
|
124
|
<el-col :span="7">
|
125
|
125
|
<el-form-item label="机位号:">
|
126
|
|
- <el-select style="width:150px" v-model="form.bed_number">
|
127
|
|
- <el-option v-for="item in this.Number" :key="item.id" :label="item.zone_name + item.number" :value="item.id"></el-option>
|
|
126
|
+ <el-select style="width:150px" v-model="form.bed_number" :disabled="true">
|
|
127
|
+ <el-option v-for="item in this.Number" :key="item.id" :label="item.number" :value="item.id"></el-option>
|
128
|
128
|
</el-select>
|
129
|
129
|
</el-form-item>
|
130
|
130
|
</el-col>
|
|
@@ -287,7 +287,7 @@
|
287
|
287
|
<el-row>
|
288
|
288
|
<div class="but">
|
289
|
289
|
<el-col :span="12">
|
290
|
|
- <el-button size="medium" v-show="cancelShow">取消</el-button>
|
|
290
|
+ <el-button size="medium" v-show="cancelShow" @click="cleanMainchine">取消</el-button>
|
291
|
291
|
</el-col>
|
292
|
292
|
<el-col :span="8">
|
293
|
293
|
<el-button type="primary" size="medium" v-show="confirmShow" @click="UpdateMachineInfo('form')">保存</el-button>
|
|
@@ -486,7 +486,7 @@
|
486
|
486
|
<el-tab-pane label="使用登记" name="third">
|
487
|
487
|
<el-tabs v-model="activeNameThree" @tab-click="handleClick">
|
488
|
488
|
<el-tab-pane label="新增使用登记" name="first">
|
489
|
|
- <el-form :model="userform" ref="userform">
|
|
489
|
+ <el-form :model="userform" ref="userform" :rules="userRules">
|
490
|
490
|
<el-row>
|
491
|
491
|
<el-col :span="8">
|
492
|
492
|
<el-form-item label="日期:">
|
|
@@ -502,7 +502,7 @@
|
502
|
502
|
</el-form-item>
|
503
|
503
|
</el-col>
|
504
|
504
|
<el-col :span="8">
|
505
|
|
- <el-form-item label="班次:">
|
|
505
|
+ <el-form-item label="班次:" required prop="classtype">
|
506
|
506
|
<el-select v-model="userform.classtype" placeholder="请选择" class="a" @change="ChangeClass">
|
507
|
507
|
<el-option
|
508
|
508
|
v-for="item in classType"
|
|
@@ -515,7 +515,7 @@
|
515
|
515
|
</el-form-item>
|
516
|
516
|
</el-col>
|
517
|
517
|
<el-col :span="8">
|
518
|
|
- <el-form-item label="分区:">
|
|
518
|
+ <el-form-item label="分区:" required prop="zone">
|
519
|
519
|
<el-select v-model="userform.zone" placeholder="请选择" class="a">
|
520
|
520
|
<el-option
|
521
|
521
|
v-for="item in bedNumber"
|
|
@@ -529,15 +529,15 @@
|
529
|
529
|
</el-row>
|
530
|
530
|
<el-row>
|
531
|
531
|
<el-col :span="8">
|
532
|
|
- <el-form-item label="床位号:">
|
|
532
|
+ <el-form-item label="床位号:" required prop="bed_number">
|
533
|
533
|
<el-select style="width:150px" v-model="userform.bed_number">
|
534
|
534
|
<el-option v-for="item in this.bedNumber" :key="item.id" :label="item.number" :value="item.id"></el-option>
|
535
|
535
|
</el-select>
|
536
|
536
|
</el-form-item>
|
537
|
537
|
</el-col>
|
538
|
538
|
<el-col :span="8">
|
539
|
|
- <el-form-item label="患者:">
|
540
|
|
- <el-select style="width:150px" v-model="userform.patient_name">
|
|
539
|
+ <el-form-item label="患者:" required prop ="patient_name">
|
|
540
|
+ <el-select style="width:150px" v-model="userform.patient_name" >
|
541
|
541
|
<el-option v-for="item in this.patientName" :key="item.patient_id" :label="item.name" :value="item.patient_id"></el-option>
|
542
|
542
|
</el-select>
|
543
|
543
|
</el-form-item>
|
|
@@ -656,7 +656,7 @@
|
656
|
656
|
<el-form-item label="①机表"></el-form-item>
|
657
|
657
|
</el-col>
|
658
|
658
|
<el-col :span="8">
|
659
|
|
- <el-form-item label="消毒方式:">
|
|
659
|
+ <el-form-item label="消毒方式:" required prop="disinfect_type">
|
660
|
660
|
<el-select v-model="userform.disinfect_type" placeholder="请选择" >
|
661
|
661
|
<el-option
|
662
|
662
|
v-for="item in disinfectType"
|
|
@@ -669,7 +669,7 @@
|
669
|
669
|
</el-form-item>
|
670
|
670
|
</el-col>
|
671
|
671
|
<el-col :span="8">
|
672
|
|
- <el-form-item label="消毒液:">
|
|
672
|
+ <el-form-item label="消毒液:" required prop="disinfectant_type">
|
673
|
673
|
<el-select v-model="userform.disinfectant_type" placeholder="请选择" >
|
674
|
674
|
<el-option
|
675
|
675
|
v-for="item in disinfectantType"
|
|
@@ -684,7 +684,7 @@
|
684
|
684
|
</el-row>
|
685
|
685
|
<el-row>
|
686
|
686
|
<el-col :span="8">
|
687
|
|
- <el-form-item label="消毒状态:">
|
|
687
|
+ <el-form-item label="消毒状态:" required prop="disinfection">
|
688
|
688
|
<el-select v-model="userform.disinfection" placeholder="请选择" >
|
689
|
689
|
<el-option
|
690
|
690
|
v-for="item in disinfection"
|
|
@@ -709,7 +709,7 @@
|
709
|
709
|
<el-form-item label="②液路"></el-form-item>
|
710
|
710
|
</el-col>
|
711
|
711
|
<el-col :span="8">
|
712
|
|
- <el-form-item label="消毒方式:">
|
|
712
|
+ <el-form-item label="消毒方式:" required prop="fluid_path">
|
713
|
713
|
<el-select v-model="userform.fluid_path" placeholder="请选择" >
|
714
|
714
|
<el-option
|
715
|
715
|
v-for="item in sterilizeType"
|
|
@@ -722,7 +722,7 @@
|
722
|
722
|
</el-form-item>
|
723
|
723
|
</el-col>
|
724
|
724
|
<el-col :span="8">
|
725
|
|
- <el-form-item label="消毒液:">
|
|
725
|
+ <el-form-item label="消毒液:" required prop="disinfectant">
|
726
|
726
|
<el-select v-model="userform.disinfectant" placeholder="请选择" >
|
727
|
727
|
<el-option
|
728
|
728
|
v-for="item in fluidPathType"
|
|
@@ -737,7 +737,7 @@
|
737
|
737
|
</el-row>
|
738
|
738
|
<el-row>
|
739
|
739
|
<el-col :span="8">
|
740
|
|
- <el-form-item label="消毒状态:">
|
|
740
|
+ <el-form-item label="消毒状态:" required prop="disinfection_status">
|
741
|
741
|
<el-select v-model="userform.disinfection_status" placeholder="请选择" >
|
742
|
742
|
<el-option
|
743
|
743
|
v-for="item in disinfection"
|
|
@@ -771,10 +771,9 @@
|
771
|
771
|
value-format="yyyy-MM-dd HH:mm"
|
772
|
772
|
placeholder="选择时间"
|
773
|
773
|
v-model="userform.starttime"
|
774
|
|
- style="width:200px;"
|
775
|
|
- @change="changStartTime"
|
|
774
|
+ style="width:200px;"
|
776
|
775
|
></el-date-picker>
|
777
|
|
- </el-form-item>
|
|
776
|
+ </el-form-item>
|
778
|
777
|
</el-col>
|
779
|
778
|
<el-col :span="8">
|
780
|
779
|
<el-form-item label="结束消毒时间:">
|
|
@@ -784,8 +783,7 @@
|
784
|
783
|
value-format="yyyy-MM-dd HH:mm"
|
785
|
784
|
placeholder="选择时间"
|
786
|
785
|
v-model="userform.endtime"
|
787
|
|
- style="width:200px;"
|
788
|
|
- @change="changeEndTime"
|
|
786
|
+ style="width:200px;"
|
789
|
787
|
></el-date-picker>
|
790
|
788
|
</el-form-item>
|
791
|
789
|
</el-col>
|
|
@@ -822,7 +820,7 @@
|
822
|
820
|
<el-radio-group v-model="userform.dialysis_concentration">
|
823
|
821
|
<el-radio :label="gender.id" :value="gender.id" v-for="(gender, index) in potency" :key="index">{{gender.name}}</el-radio>
|
824
|
822
|
</el-radio-group>
|
825
|
|
- <span style="color:red">您已一个月未更换,请注意检测</span>
|
|
823
|
+ <!-- <span style="color:red">您已一个月未更换,请注意检测</span> -->
|
826
|
824
|
</el-form-item>
|
827
|
825
|
</el-col>
|
828
|
826
|
</el-row>
|
|
@@ -858,10 +856,10 @@
|
858
|
856
|
</el-col>
|
859
|
857
|
<el-col :span="10">
|
860
|
858
|
<el-checkbox v-model="userform.clean">清洁:</el-checkbox>
|
861
|
|
- <span style="color:red">您已一个月未清洁,请检查</span>
|
|
859
|
+ <!-- <span style="color:red">您已一个月未清洁,请检查</span> -->
|
862
|
860
|
</el-col>
|
863
|
861
|
<el-col :span="10">
|
864
|
|
- <el-form-item label="签名:">
|
|
862
|
+ <el-form-item label="签名:" required prop="sign_name">
|
865
|
863
|
<el-select v-model="userform.sign_name" placeholder="请选择" >
|
866
|
864
|
<el-option
|
867
|
865
|
v-for="item in autograph"
|
|
@@ -947,7 +945,7 @@
|
947
|
945
|
<el-col :span="8">
|
948
|
946
|
<el-form-item label="取样者:" required prop="sampler">
|
949
|
947
|
<el-select style="width:130px" v-model="qualityForm.sampler">
|
950
|
|
- <el-option v-for="item in sampling" :key="item.id" :label="item.user_name" :value="item.id"></el-option>
|
|
948
|
+ <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
|
951
|
949
|
</el-select>
|
952
|
950
|
</el-form-item>
|
953
|
951
|
</el-col>
|
|
@@ -1051,7 +1049,7 @@
|
1051
|
1049
|
<el-col :span="8">
|
1052
|
1050
|
<el-form-item label="取样者:" required prop="samplerb">
|
1053
|
1051
|
<el-select style="width:130px" v-model="qualityFormTwo.samplerb">
|
1054
|
|
- <el-option v-for="item in sampling" :key="item.id" :label="item.user_name" :value="item.id"></el-option>
|
|
1052
|
+ <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
|
1055
|
1053
|
</el-select>
|
1056
|
1054
|
</el-form-item>
|
1057
|
1055
|
</el-col>
|
|
@@ -1122,7 +1120,7 @@
|
1122
|
1120
|
<el-col :span="8">
|
1123
|
1121
|
<el-form-item label="取样者:" required prop="samplerc">
|
1124
|
1122
|
<el-select style="width:130px" v-model="qualityFormThree.samplerc">
|
1125
|
|
- <el-option v-for="item in sampling" :key="item.id" :label="item.user_name" :value="item.id"></el-option>
|
|
1123
|
+ <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
|
1126
|
1124
|
</el-select>
|
1127
|
1125
|
</el-form-item>
|
1128
|
1126
|
</el-col>
|
|
@@ -1446,7 +1444,7 @@
|
1446
|
1444
|
<!-- 综合查询 -->
|
1447
|
1445
|
<multiple-form ref="multipleform"></multiple-form>
|
1448
|
1446
|
<!-- 编辑消毒计划 -->
|
1449
|
|
- <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="44%" center>
|
|
1447
|
+ <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
|
1450
|
1448
|
<el-form :model="machineform" ref="machineform">
|
1451
|
1449
|
<el-row>
|
1452
|
1450
|
<el-col :span="10">
|
|
@@ -1474,6 +1472,7 @@
|
1474
|
1472
|
<el-select
|
1475
|
1473
|
v-model="machineform.time"
|
1476
|
1474
|
placeholder="请选择时间"
|
|
1475
|
+ style="width: 140px;"
|
1477
|
1476
|
>
|
1478
|
1477
|
<el-option
|
1479
|
1478
|
v-for="item in this.timeType"
|
|
@@ -1489,6 +1488,7 @@
|
1489
|
1488
|
<el-select
|
1490
|
1489
|
v-model="machineform.class_time"
|
1491
|
1490
|
placeholder="请选择时间"
|
|
1491
|
+ style="width: 140px;"
|
1492
|
1492
|
>
|
1493
|
1493
|
<el-option
|
1494
|
1494
|
v-for="item in this.classType"
|
|
@@ -1572,7 +1572,7 @@
|
1572
|
1572
|
import { getAllSubregion, getAllMachine, getMachineDetailById,
|
1573
|
1573
|
UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
|
1574
|
1574
|
getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
|
1575
|
|
- ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin } from '@/api/manage'
|
|
1575
|
+ ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin,getAutoData } from '@/api/manage'
|
1576
|
1576
|
import { uParseTime } from '@/utils/tools'
|
1577
|
1577
|
import { getToken } from '@/api/qiniu'
|
1578
|
1578
|
import PlanForm from './components/PlanForm'
|
|
@@ -1583,7 +1583,7 @@
|
1583
|
1583
|
import RepairForm from './components/RepairForm'
|
1584
|
1584
|
import { parseTime } from '@/utils'
|
1585
|
1585
|
import { getFileExtension } from '@/utils/tools'
|
1586
|
|
-const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF', 'HFHD+HP', 'HFR', 'HDF+HP', 'GRRT', '腹水回收']
|
|
1586
|
+const cityOptions = ['HD', 'HDF', 'HD+HP', 'HP', 'HF', 'SCUF', 'IUF','HFHD', 'HFHD+HP', 'PHF', 'HFR', 'HDF+HP', 'CRRT', '腹水回收']
|
1587
|
1587
|
const moment = require('moment')
|
1588
|
1588
|
export default {
|
1589
|
1589
|
name: 'home',
|
|
@@ -1651,6 +1651,7 @@ export default {
|
1651
|
1651
|
{ id: 4, name: '报废机' }
|
1652
|
1652
|
],
|
1653
|
1653
|
DisCardResion: [
|
|
1654
|
+ { id: 0, name: "请选择" },
|
1654
|
1655
|
{ id: 1, name: '超期限报废' },
|
1655
|
1656
|
{ id: 2, name: '故障报废' },
|
1656
|
1657
|
{ id: 3, name: '核定报废' }
|
|
@@ -1661,6 +1662,7 @@ export default {
|
1661
|
1662
|
{ id: 3, name: '其他' }
|
1662
|
1663
|
],
|
1663
|
1664
|
Classes: [
|
|
1665
|
+ { id: 0, name: '全部' },
|
1664
|
1666
|
{ id: 1, name: '上午' },
|
1665
|
1667
|
{ id: 2, name: '下午' },
|
1666
|
1668
|
{ id: 3, name: '晚上' }
|
|
@@ -1672,6 +1674,7 @@ export default {
|
1672
|
1674
|
{ id: 3, name: '次氯酸钠' }
|
1673
|
1675
|
],
|
1674
|
1676
|
germs: [
|
|
1677
|
+ { id: 0, name:"请选择" },
|
1675
|
1678
|
{ id: 1, name: '费森细菌过滤器' },
|
1676
|
1679
|
{ id: 2, name: '日机装细菌过滤器' },
|
1677
|
1680
|
{ id: 3, name: '贝朗机细菌过滤器' },
|
|
@@ -1714,6 +1717,18 @@ export default {
|
1714
|
1717
|
detection_unit: [{ required: true, message: '请填写检测单位' }],
|
1715
|
1718
|
samplerc: [{ required: true, message: '请填写取样者' }]
|
1716
|
1719
|
},
|
|
1720
|
+ userRules:{
|
|
1721
|
+ zone: [{required:true,message:"请填写分区"}],
|
|
1722
|
+ bed_number: [{required:true,message:"请填写床位号"}],
|
|
1723
|
+ patient_name: [{required:true,message:"请填写患者"}],
|
|
1724
|
+ disinfect_type: [{required:true,message:"请填写消毒方式"}],
|
|
1725
|
+ disinfectant_type: [{required:true,message:"请填写消毒液"}],
|
|
1726
|
+ disinfection:[{required:true,message:"请填写消毒状态"}],
|
|
1727
|
+ fluid_path:[{required:true,message:"请填写消毒方式"}],
|
|
1728
|
+ disinfectant:[{required:true,message:"请填写消毒液"}],
|
|
1729
|
+ disinfection_status:[{required:true,message:"消毒状态"}],
|
|
1730
|
+ sign_name:[{required:true,message:"请填写签名"}]
|
|
1731
|
+ },
|
1717
|
1732
|
runOption: [
|
1718
|
1733
|
{ id: 1, name: '正常' },
|
1719
|
1734
|
{ id: 2, name: '故障' }
|
|
@@ -1774,9 +1789,15 @@ export default {
|
1774
|
1789
|
{ id: 3, name: '晚上' }
|
1775
|
1790
|
],
|
1776
|
1791
|
// 基表消毒方式
|
1777
|
|
- disinfectType: [{ id: 1, name: '擦拭' }, { id: 2, name: '化学消毒' }],
|
|
1792
|
+ disinfectType:
|
|
1793
|
+ [
|
|
1794
|
+ { id: 0, name: '/' },
|
|
1795
|
+ { id: 1, name: '擦拭' },
|
|
1796
|
+ { id: 2, name: '化学消毒' }
|
|
1797
|
+ ],
|
1778
|
1798
|
// 基表消毒液
|
1779
|
1799
|
disinfectantType: [
|
|
1800
|
+ { id: 0, name: '/' },
|
1780
|
1801
|
{ id: 1, name: '0.22%季铵盐' },
|
1781
|
1802
|
{ id: 2, name: '500mg/l含氯消毒剂' },
|
1782
|
1803
|
{ id: 3, name: '1000mg/l含氯消毒剂' },
|
|
@@ -1784,6 +1805,7 @@ export default {
|
1784
|
1805
|
],
|
1785
|
1806
|
// 夜路消毒方式
|
1786
|
1807
|
sterilizeType: [
|
|
1808
|
+ { id: 0, name: '/' },
|
1787
|
1809
|
{ id: 1, name: '热化学消毒' },
|
1788
|
1810
|
{ id: 2, name: '化学消毒 + 除钙' },
|
1789
|
1811
|
{ id: 3, name: '热化学消毒 + 除钙' },
|
|
@@ -1794,6 +1816,7 @@ export default {
|
1794
|
1816
|
],
|
1795
|
1817
|
// 夜路消毒液
|
1796
|
1818
|
fluidPathType: [
|
|
1819
|
+ { id: 0, name: '/' },
|
1797
|
1820
|
{ id: 1, name: '20%柠檬酸' },
|
1798
|
1821
|
{ id: 2, name: '25%柠檬酸' },
|
1799
|
1822
|
{ id: 3, name: '50%柠檬酸' },
|
|
@@ -2007,9 +2030,15 @@ export default {
|
2007
|
2030
|
this.deviceType = zones
|
2008
|
2031
|
var numbers = response.data.data.numbers
|
2009
|
2032
|
console.log('分区号是设么', zones)
|
2010
|
|
- this.bedZone = zones
|
|
2033
|
+ var zone = [{ id: 0, name: "全部" }];
|
|
2034
|
+ for (let i = 0; i < zones.length; i++) {
|
|
2035
|
+ const item = zones[i];
|
|
2036
|
+ zone.push({ id: item.id, name: item.name });
|
|
2037
|
+ }
|
|
2038
|
+ var devicenumber = response.data.data.devicenumber;
|
|
2039
|
+ this.bedZone = zone
|
2011
|
2040
|
this.bedNumber = numbers
|
2012
|
|
- this.Number = numbers
|
|
2041
|
+ this.Number = devicenumber
|
2013
|
2042
|
})
|
2014
|
2043
|
},
|
2015
|
2044
|
|
|
@@ -2037,6 +2066,7 @@ export default {
|
2037
|
2066
|
})
|
2038
|
2067
|
},
|
2039
|
2068
|
handleCurrentChange(val) {
|
|
2069
|
+
|
2040
|
2070
|
this.currentRow = val
|
2041
|
2071
|
this.$forceUpdate()
|
2042
|
2072
|
this.getMachineDetailById(val.id)
|
|
@@ -2045,6 +2075,16 @@ export default {
|
2045
|
2075
|
this.getPatientInfo(val.id)
|
2046
|
2076
|
// 获取基本信息
|
2047
|
2077
|
this.getUserRegister(val.id)
|
|
2078
|
+ //病人下机后插入数据
|
|
2079
|
+ this.getAutoData(val.id)
|
|
2080
|
+ },
|
|
2081
|
+ getAutoData(id){
|
|
2082
|
+ getAutoData(id).then(response=>{
|
|
2083
|
+ if(response.data.state === 1){
|
|
2084
|
+ var dialysis = response.data.data.dialysis
|
|
2085
|
+ console.log("dialysis",dialysis)
|
|
2086
|
+ }
|
|
2087
|
+ })
|
2048
|
2088
|
},
|
2049
|
2089
|
getMachineDetailById(id) {
|
2050
|
2090
|
getMachineDetailById(id).then(response => {
|
|
@@ -2085,23 +2125,30 @@ export default {
|
2085
|
2125
|
if (mode[index].treate_mode === 7) {
|
2086
|
2126
|
mode[index] = 'IUF'
|
2087
|
2127
|
}
|
2088
|
|
-
|
|
2128
|
+
|
2089
|
2129
|
if (mode[index].treate_mode === 8) {
|
|
2130
|
+ mode[index] = 'HFHD'
|
|
2131
|
+ }
|
|
2132
|
+
|
|
2133
|
+ if (mode[index].treate_mode === 9) {
|
2090
|
2134
|
mode[index] = 'HFHD+HP'
|
2091
|
2135
|
}
|
|
2136
|
+ if (mode[index].treate_mode === 10) {
|
|
2137
|
+ mode[index] = 'PHF'
|
|
2138
|
+ }
|
2092
|
2139
|
|
2093
|
|
- if (mode[index].treate_mode === 9) {
|
|
2140
|
+ if (mode[index].treate_mode === 11) {
|
2094
|
2141
|
mode[index] = 'HFR'
|
2095
|
2142
|
}
|
2096
|
|
- if (mode[index].treate_mode === 10) {
|
|
2143
|
+ if (mode[index].treate_mode === 12) {
|
2097
|
2144
|
mode[index] = 'HDF+HP'
|
2098
|
2145
|
}
|
2099
|
2146
|
|
2100
|
|
- if (mode[index].treate_mode === 11) {
|
2101
|
|
- mode[index] = 'GRRT'
|
|
2147
|
+ if (mode[index].treate_mode === 13) {
|
|
2148
|
+ mode[index] = 'CRRT'
|
2102
|
2149
|
}
|
2103
|
2150
|
|
2104
|
|
- if (mode[index].treate_mode === 12) {
|
|
2151
|
+ if (mode[index].treate_mode === 14) {
|
2105
|
2152
|
mode[index] = '腹水回收'
|
2106
|
2153
|
}
|
2107
|
2154
|
arr1.push(mode[index])
|
|
@@ -2110,7 +2157,7 @@ export default {
|
2110
|
2157
|
this.form.id = addmacher.id
|
2111
|
2158
|
this.form.serial_number = addmacher.serial_number
|
2112
|
2159
|
this.form.devicetype = addmacher.device_type
|
2113
|
|
- this.form.bed_number = zone.name + addmacher.bed_number
|
|
2160
|
+ this.form.bed_number = addmacher.bed_number
|
2114
|
2161
|
this.form.device_name = addmacher.device_name
|
2115
|
2162
|
this.form.manufacture_factory = addmacher.manufacture_factory
|
2116
|
2163
|
this.form.service_manufacturer = addmacher.service_manufacturer
|
|
@@ -2153,15 +2200,11 @@ export default {
|
2153
|
2200
|
this.form.treat_mode.map((item, index) => {
|
2154
|
2201
|
const obj = {}
|
2155
|
2202
|
obj.id = index + 1
|
2156
|
|
- // obj.name = item
|
2157
|
2203
|
arr2.push(obj.id)
|
2158
|
2204
|
})
|
|
2205
|
+ console.log("arr2是什么",arr2)
|
2159
|
2206
|
this.form.treat_type = arr2
|
2160
|
2207
|
|
2161
|
|
- var serial_number = this.form.serial_number
|
2162
|
|
- var serial_numbers = parseInt(serial_number)
|
2163
|
|
- this.form.serial_number = serial_numbers
|
2164
|
|
-
|
2165
|
2208
|
var device_type = this.form.devicetype
|
2166
|
2209
|
var device_types = parseInt(device_type)
|
2167
|
2210
|
this.form.devicetype = device_types
|
|
@@ -2197,6 +2240,22 @@ export default {
|
2197
|
2240
|
})
|
2198
|
2241
|
})
|
2199
|
2242
|
},
|
|
2243
|
+ cleanMainchine(){
|
|
2244
|
+ this.form.manufacture_factory = ""
|
|
2245
|
+ this.form.service_manufacturer= ""
|
|
2246
|
+ this.form.use_section= ""
|
|
2247
|
+ this.form.buy_date= ""
|
|
2248
|
+ this.form.install_date= ""
|
|
2249
|
+ this.form.start_date= ""
|
|
2250
|
+ this.form.maintenance_engineer= ""
|
|
2251
|
+ this.form.telephone= ""
|
|
2252
|
+ this.form.guarantee_date= ""
|
|
2253
|
+ this.form.user_total= ""
|
|
2254
|
+ this.form.rubbish_date= ""
|
|
2255
|
+ this.form.user_year = ""
|
|
2256
|
+ this.form.work_time = ""
|
|
2257
|
+ this.form.treat_mode = ""
|
|
2258
|
+ },
|
2200
|
2259
|
addPlan() {
|
2201
|
2260
|
this.$refs.planForm.open()
|
2202
|
2261
|
},
|
|
@@ -2261,6 +2320,10 @@ export default {
|
2261
|
2320
|
if (plan[index].classtime === 3) {
|
2262
|
2321
|
plan[index].classtime = '晚上'
|
2263
|
2322
|
}
|
|
2323
|
+
|
|
2324
|
+ if(plan[index].way === 0){
|
|
2325
|
+ plan[index].way = "/"
|
|
2326
|
+ }
|
2264
|
2327
|
|
2265
|
2328
|
if (plan[index].way === 1) {
|
2266
|
2329
|
plan[index].way = '擦拭'
|
|
@@ -2268,7 +2331,11 @@ export default {
|
2268
|
2331
|
if (plan[index].way === 2) {
|
2269
|
2332
|
plan[index].way = '化学消毒'
|
2270
|
2333
|
}
|
2271
|
|
-
|
|
2334
|
+
|
|
2335
|
+ if (plan[index].machine_disinfectant === 0) {
|
|
2336
|
+ plan[index].machine_disinfectant = '/'
|
|
2337
|
+ }
|
|
2338
|
+
|
2272
|
2339
|
if (plan[index].machine_disinfectant === 1) {
|
2273
|
2340
|
plan[index].machine_disinfectant = '0.22%季铵盐'
|
2274
|
2341
|
}
|
|
@@ -2282,7 +2349,11 @@ export default {
|
2282
|
2349
|
if (plan[index].machine_disinfectant === 4) {
|
2283
|
2350
|
plan[index].machine_disinfectant = '1500mg/l含氯消毒剂'
|
2284
|
2351
|
}
|
2285
|
|
-
|
|
2352
|
+
|
|
2353
|
+ if (plan[index].disinfectan_way === 0) {
|
|
2354
|
+ plan[index].disinfectan_way = '/'
|
|
2355
|
+ }
|
|
2356
|
+
|
2286
|
2357
|
if (plan[index].disinfectan_way === 1) {
|
2287
|
2358
|
plan[index].disinfectan_way = '热化学消毒'
|
2288
|
2359
|
}
|
|
@@ -2306,6 +2377,11 @@ export default {
|
2306
|
2377
|
if (plan[index].disinfectan_way === 7) {
|
2307
|
2378
|
plan[index].disinfectan_way = '清洗'
|
2308
|
2379
|
}
|
|
2380
|
+
|
|
2381
|
+ if (plan[index].disinfectant === 0) {
|
|
2382
|
+ plan[index].disinfectant = '/'
|
|
2383
|
+ }
|
|
2384
|
+
|
2309
|
2385
|
if (plan[index].disinfectant === 1) {
|
2310
|
2386
|
plan[index].disinfectant = '20%柠檬酸'
|
2311
|
2387
|
}
|
|
@@ -2378,6 +2454,11 @@ export default {
|
2378
|
2454
|
if (plandetail[index].classtime === 3) {
|
2379
|
2455
|
plandetail[index].classtime = '晚上'
|
2380
|
2456
|
}
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+ if (plandetail[index].way === 0) {
|
|
2460
|
+ plandetail[index].way = '/'
|
|
2461
|
+ }
|
2381
|
2462
|
|
2382
|
2463
|
if (plandetail[index].way === 1) {
|
2383
|
2464
|
plandetail[index].way = '擦拭'
|
|
@@ -2385,6 +2466,10 @@ export default {
|
2385
|
2466
|
if (plandetail[index].way === 2) {
|
2386
|
2467
|
plandetail[index].way = '化学消毒'
|
2387
|
2468
|
}
|
|
2469
|
+
|
|
2470
|
+ if (plandetail[index].machine_disinfectant === 0) {
|
|
2471
|
+ plandetail[index].machine_disinfectant = '/'
|
|
2472
|
+ }
|
2388
|
2473
|
|
2389
|
2474
|
if (plandetail[index].machine_disinfectant === 1) {
|
2390
|
2475
|
plandetail[index].machine_disinfectant = '0.22%季铵盐'
|
|
@@ -2399,6 +2484,10 @@ export default {
|
2399
|
2484
|
if (plandetail[index].machine_disinfectant === 4) {
|
2400
|
2485
|
plandetail[index].machine_disinfectant = '1500mg/l含氯消毒剂'
|
2401
|
2486
|
}
|
|
2487
|
+
|
|
2488
|
+ if (plandetail[index].disinfectan_way === 0) {
|
|
2489
|
+ plandetail[index].disinfectan_way = '/'
|
|
2490
|
+ }
|
2402
|
2491
|
|
2403
|
2492
|
if (plandetail[index].disinfectan_way === 1) {
|
2404
|
2493
|
plandetail[index].disinfectan_way = '热化学消毒'
|
|
@@ -2423,6 +2512,11 @@ export default {
|
2423
|
2512
|
if (plandetail[index].disinfectan_way === 7) {
|
2424
|
2513
|
plandetail[index].disinfectan_way = '清洗'
|
2425
|
2514
|
}
|
|
2515
|
+
|
|
2516
|
+ if (plandetail[index].disinfectant === 0) {
|
|
2517
|
+ plandetail[index].disinfectant = '/'
|
|
2518
|
+ }
|
|
2519
|
+
|
2426
|
2520
|
if (plandetail[index].disinfectant === 1) {
|
2427
|
2521
|
plandetail[index].disinfectant = '20%柠檬酸'
|
2428
|
2522
|
}
|
|
@@ -2522,7 +2616,7 @@ export default {
|
2522
|
2616
|
return false
|
2523
|
2617
|
}
|
2524
|
2618
|
this.$confirm(
|
2525
|
|
- '确认要删除所选的信息吗? <br>删除后,信息将无法恢复',
|
|
2619
|
+ '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
|
2526
|
2620
|
'删除提示',
|
2527
|
2621
|
{
|
2528
|
2622
|
dangerouslyUseHTMLString: true,
|
|
@@ -2575,7 +2669,7 @@ export default {
|
2575
|
2669
|
return false
|
2576
|
2670
|
}
|
2577
|
2671
|
this.$confirm(
|
2578
|
|
- '确认要删除所选的吗? <br>删除后,信息将无法恢复',
|
|
2672
|
+ '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
|
2579
|
2673
|
'删除提示',
|
2580
|
2674
|
{
|
2581
|
2675
|
dangerouslyUseHTMLString: true,
|
|
@@ -2657,10 +2751,10 @@ export default {
|
2657
|
2751
|
if (patients.is_infectious === 2) {
|
2658
|
2752
|
this.userform.contagion = '有'
|
2659
|
2753
|
}
|
2660
|
|
- this.userform.patient_name = patients.name
|
|
2754
|
+ this.userform.patient_name = patients.patient_id
|
2661
|
2755
|
var zone = response.data.data.zone
|
2662
|
|
- console.log('zone', zone)
|
2663
|
|
- this.userform.zone = zone.name
|
|
2756
|
+ console.log('zone==========', zone)
|
|
2757
|
+ this.userform.zone = zone.id
|
2664
|
2758
|
var number = response.data.data.number
|
2665
|
2759
|
console.log('nubmer', number)
|
2666
|
2760
|
this.userform.bed_number = number.number
|
|
@@ -2670,60 +2764,7 @@ export default {
|
2670
|
2764
|
this.userform.end_time = uParseTime(order.end_time, '{y}-{m}-{d} {h}:{i}')
|
2671
|
2765
|
var prescription = response.data.data.prescription
|
2672
|
2766
|
console.log('prescription', prescription)
|
2673
|
|
- if (prescription.mode_id === 1) {
|
2674
|
|
- this.userform.dialysis_mode = 'HD'
|
2675
|
|
- }
|
2676
|
|
- if (prescription.mode_id === 2) {
|
2677
|
|
- this.userform.dialysis_mode = 'HDF'
|
2678
|
|
- }
|
2679
|
|
- if (prescription.mode_id === 3) {
|
2680
|
|
- this.userform.dialysis_mode = 'HD+HP'
|
2681
|
|
- }
|
2682
|
|
- if (prescription.mode_id === 4) {
|
2683
|
|
- this.userform.dialysis_mode = 'HP'
|
2684
|
|
- }
|
2685
|
|
- if (prescription.mode_id === 5) {
|
2686
|
|
- this.userform.dialysis_mode = 'HF'
|
2687
|
|
- }
|
2688
|
|
- if (prescription.mode_id === 6) {
|
2689
|
|
- this.userform.dialysis_mode = 'SCUF'
|
2690
|
|
- }
|
2691
|
|
- if (prescription.mode_id === 7) {
|
2692
|
|
- this.userform.dialysis_mode = 'IUF'
|
2693
|
|
- }
|
2694
|
|
- if (prescription.mode_id === 8) {
|
2695
|
|
- this.userform.dialysis_mode = 'HFHD'
|
2696
|
|
- }
|
2697
|
|
- if (prescription.mode_id === 9) {
|
2698
|
|
- this.userform.dialysis_mode = 'HFHD+HP'
|
2699
|
|
- }
|
2700
|
|
- if (prescription.mode_id === 10) {
|
2701
|
|
- this.userform.dialysis_mode = 'PHF'
|
2702
|
|
- }
|
2703
|
|
- if (prescription.mode_id === 11) {
|
2704
|
|
- this.userform.dialysis_mode = 'HFR'
|
2705
|
|
- }
|
2706
|
|
- if (prescription.mode_id === 12) {
|
2707
|
|
- this.userform.dialysis_mode = 'HDF+HP'
|
2708
|
|
- }
|
2709
|
|
- if (prescription.mode_id === 13) {
|
2710
|
|
- this.userform.dialysis_mode = 'CRRT'
|
2711
|
|
- }
|
2712
|
|
- if (prescription.mode_id === 14) {
|
2713
|
|
- this.userform.dialysis_mode = '腹水回输'
|
2714
|
|
- }
|
2715
|
|
- if (prescription.mode_id === 15) {
|
2716
|
|
- this.userform.dialysis_mode = 'HD前置换'
|
2717
|
|
- }
|
2718
|
|
- if (prescription.mode_id === 16) {
|
2719
|
|
- this.userform.dialysis_mode = 'HD后置换'
|
2720
|
|
- }
|
2721
|
|
- if (prescription.mode_id === 17) {
|
2722
|
|
- this.userform.dialysis_mode = 'HDF前置换'
|
2723
|
|
- }
|
2724
|
|
- if (prescription.mode_id === 18) {
|
2725
|
|
- this.userform.dialysis_mode = 'HDF后置换'
|
2726
|
|
- }
|
|
2767
|
+ this.userform.dialysis_mode = prescription.mode_id
|
2727
|
2768
|
var dislysis = response.data.data.dislysis
|
2728
|
2769
|
console.log('dislysis', dislysis)
|
2729
|
2770
|
this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
|
|
@@ -2732,10 +2773,13 @@ export default {
|
2732
|
2773
|
}
|
2733
|
2774
|
})
|
2734
|
2775
|
},
|
|
2776
|
+
|
|
2777
|
+ getTimes(time) {
|
|
2778
|
+ return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
|
|
2779
|
+ },
|
|
2780
|
+
|
2735
|
2781
|
SaveInformation(formName) {
|
2736
|
|
- if (this.userform.classtype === '') {
|
2737
|
|
- this.userform.classtype = 0
|
2738
|
|
- }
|
|
2782
|
+
|
2739
|
2783
|
var classtypes = this.userform.classtype
|
2740
|
2784
|
var classtype = parseInt(classtypes)
|
2741
|
2785
|
this.userform.classtype = classtype
|
|
@@ -2752,17 +2796,20 @@ export default {
|
2752
|
2796
|
var patient_name = parseInt(patientName)
|
2753
|
2797
|
this.userform.patient_name = patient_name
|
2754
|
2798
|
|
2755
|
|
- if (this.userform.dialysis_mode === '') {
|
2756
|
|
- this.userform.dialysis_mode = 0
|
2757
|
|
- }
|
|
2799
|
+
|
2758
|
2800
|
var dialysismode = this.userform.dialysis_mode
|
2759
|
2801
|
var dialysis_mode = parseInt(dialysismode)
|
2760
|
2802
|
this.userform.dialysis_mode = dialysis_mode
|
|
2803
|
+
|
2761
|
2804
|
|
2762
|
2805
|
if (this.userform.failure_stage === '') {
|
2763
|
2806
|
this.userform.failure_stage = 0
|
2764
|
2807
|
}
|
2765
|
|
-
|
|
2808
|
+
|
|
2809
|
+ if(this.userform.dialysis_checked === ''){
|
|
2810
|
+ this.userform.dialysis_checked = 0
|
|
2811
|
+ }
|
|
2812
|
+
|
2766
|
2813
|
if (this.userform.dialysis_checked === true) {
|
2767
|
2814
|
this.userform.dialysis_checked = 1
|
2768
|
2815
|
}
|
|
@@ -2771,6 +2818,10 @@ export default {
|
2771
|
2818
|
this.userform.dialysis_checked = 0
|
2772
|
2819
|
}
|
2773
|
2820
|
|
|
2821
|
+ if(this.userform.germ_checked === ""){
|
|
2822
|
+ this.userform.germ_checked = 0
|
|
2823
|
+ }
|
|
2824
|
+
|
2774
|
2825
|
if (this.userform.germ_checked === true) {
|
2775
|
2826
|
this.userform.germ_checked = 1
|
2776
|
2827
|
}
|
|
@@ -2784,15 +2835,18 @@ export default {
|
2784
|
2835
|
var dialysis_name = this.userform.dialysis_name
|
2785
|
2836
|
var dialysis = parseInt(dialysis_name)
|
2786
|
2837
|
this.userform.dialysis_name = dialysis
|
2787
|
|
-
|
2788
|
|
- // var signame = this.userform.sign_name
|
2789
|
|
- // var signames = parseInt(signame)
|
2790
|
|
- // this.userform.sign_name = signames
|
|
2838
|
+
|
|
2839
|
+ if (this.userform.germ_name === ''){
|
|
2840
|
+ this.userform.germ_name = 0
|
|
2841
|
+ }
|
|
2842
|
+ var germname = this.userform.germ_name
|
|
2843
|
+ var germames = parseInt(germname)
|
|
2844
|
+ this.userform.germ_name = germames
|
|
2845
|
+
|
|
2846
|
+ if(this.userform.clean === ""){
|
|
2847
|
+ this.userform.clean = 0
|
|
2848
|
+ }
|
2791
|
2849
|
|
2792
|
|
- // var germ_number = this.userform.germ_number
|
2793
|
|
- // var germnumber = parseInt(germ_number)
|
2794
|
|
- // this.userform.germ_number = germnumber
|
2795
|
|
-
|
2796
|
2850
|
if (this.userform.clean === true) {
|
2797
|
2851
|
this.userform.clean = 1
|
2798
|
2852
|
}
|
|
@@ -2800,6 +2854,11 @@ export default {
|
2800
|
2854
|
if (this.userform.clean === false) {
|
2801
|
2855
|
this.userform.clean = 0
|
2802
|
2856
|
}
|
|
2857
|
+
|
|
2858
|
+ this.userform.starttime = this.getTimes(this.userform.starttime)
|
|
2859
|
+ this.userform.endtime = this.getTimes(this.userform.endtime)
|
|
2860
|
+
|
|
2861
|
+
|
2803
|
2862
|
this.$refs[formName].validate((valid) => {
|
2804
|
2863
|
if (valid) {
|
2805
|
2864
|
SaveInformation(this.equimentid, this.userform).then(response => {
|
|
@@ -2807,30 +2866,31 @@ export default {
|
2807
|
2866
|
var information = response.data.data.information
|
2808
|
2867
|
console.log('information', information)
|
2809
|
2868
|
this.$message.success('添加成功')
|
|
2869
|
+ // this.$refs.child.getInformationData()
|
2810
|
2870
|
}
|
2811
|
2871
|
})
|
2812
|
2872
|
}
|
2813
|
2873
|
})
|
2814
|
2874
|
},
|
2815
|
|
- changStartTime(val) {
|
2816
|
|
- this.userform.starttime = val
|
2817
|
|
- },
|
2818
|
|
- changeEndTime(val) {
|
2819
|
|
- this.userform.endtime = val
|
2820
|
|
- console.log('val', val)
|
2821
|
|
- console.log('开始时间', this.userform.starttime)
|
2822
|
|
- console.log('呵呵', this.formatDuring(val))
|
2823
|
|
- },
|
2824
|
|
- formatDuring(mss) {
|
2825
|
|
- const days = parseInt(mss / (1000 * 60 * 60 * 24)) // 得到天数
|
2826
|
|
- const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)) // 得到小时
|
2827
|
|
- const minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60)) // 得到分钟数
|
2828
|
|
- const seconds = (mss % (1000 * 60)) / 1000 // 得到秒数
|
2829
|
|
- const str1 = hours < 10 ? ('0' + hours) : hours
|
2830
|
|
- console.log('str1', str1)
|
2831
|
|
- const str2 = minutes < 10 ? ('0' + minutes) : minutes
|
2832
|
|
- return str1 + ':' + str2
|
2833
|
|
- },
|
|
2875
|
+ // changStartTime(val) {
|
|
2876
|
+ // this.userform.starttime = val
|
|
2877
|
+ // },
|
|
2878
|
+ // changeEndTime(val) {
|
|
2879
|
+ // this.userform.endtime = val
|
|
2880
|
+ // console.log('val', val)
|
|
2881
|
+ // console.log('开始时间', this.userform.starttime)
|
|
2882
|
+ // console.log('呵呵', this.formatDuring(val))
|
|
2883
|
+ // },
|
|
2884
|
+ // formatDuring(mss) {
|
|
2885
|
+ // const days = parseInt(mss / (1000 * 60 * 60 * 24)) // 得到天数
|
|
2886
|
+ // const hours = parseInt((mss % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)) // 得到小时
|
|
2887
|
+ // const minutes = parseInt((mss % (1000 * 60 * 60)) / (1000 * 60)) // 得到分钟数
|
|
2888
|
+ // const seconds = (mss % (1000 * 60)) / 1000 // 得到秒数
|
|
2889
|
+ // const str1 = hours < 10 ? ('0' + hours) : hours
|
|
2890
|
+ // console.log('str1', str1)
|
|
2891
|
+ // const str2 = minutes < 10 ? ('0' + minutes) : minutes
|
|
2892
|
+ // return str1 + ':' + str2
|
|
2893
|
+ // },
|
2834
|
2894
|
// 获取签名
|
2835
|
2895
|
getAllOrganization() {
|
2836
|
2896
|
getAllOrganization().then(response => {
|
|
@@ -3236,7 +3296,8 @@ export default {
|
3236
|
3296
|
</script>
|
3237
|
3297
|
<style lang="scss" scoped>
|
3238
|
3298
|
.zone{
|
3239
|
|
- margin-left: 30px
|
|
3299
|
+ // margin-left: 30px;
|
|
3300
|
+ text-align: left;
|
3240
|
3301
|
}
|
3241
|
3302
|
.disinfect{
|
3242
|
3303
|
position: relative;
|