|
@@ -454,55 +454,55 @@
|
454
|
454
|
</el-form-item>
|
455
|
455
|
</el-col>
|
456
|
456
|
<el-col :span="7">
|
457
|
|
- <el-form-item label="备注:">
|
458
|
|
- <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
|
459
|
|
- </el-form-item>
|
|
457
|
+ <el-form-item label="消毒方式:">
|
|
458
|
+ <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
|
|
459
|
+ <el-option
|
|
460
|
+ v-for="item in this.DisinfectionMode"
|
|
461
|
+ :key="item.id"
|
|
462
|
+ :label="item.name"
|
|
463
|
+ :value="item.id"
|
|
464
|
+ ></el-option>
|
|
465
|
+ </el-select>
|
|
466
|
+ </el-form-item>
|
460
|
467
|
</el-col>
|
461
|
468
|
<el-col :span="7">
|
462
|
|
- <el-form-item label="报废日期:">
|
463
|
|
- <el-date-picker
|
464
|
|
- v-model="form.rubbish_date"
|
465
|
|
- prefix-icon="none"
|
466
|
|
- type="date"
|
467
|
|
- placeholder="请选择"
|
468
|
|
- format="yyyy-MM-dd"
|
469
|
|
- value-format="yyyy-MM-dd"
|
470
|
|
- style="width:135px"
|
471
|
|
- :disabled="disableFour">
|
472
|
|
- </el-date-picker>
|
473
|
|
- </el-form-item>
|
|
469
|
+ <el-form-item label="备注:">
|
|
470
|
+ <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
|
|
471
|
+ </el-form-item>
|
474
|
472
|
</el-col>
|
475
|
473
|
</el-row>
|
476
|
474
|
<el-row>
|
477
|
475
|
<el-col :span="7">
|
478
|
|
- <el-form-item label="报废原因:">
|
479
|
|
- <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
|
480
|
|
- <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
481
|
|
- </el-select>
|
|
476
|
+ <el-form-item label="报废日期:">
|
|
477
|
+ <el-date-picker
|
|
478
|
+ v-model="form.rubbish_date"
|
|
479
|
+ prefix-icon="none"
|
|
480
|
+ type="date"
|
|
481
|
+ placeholder="请选择"
|
|
482
|
+ format="yyyy-MM-dd"
|
|
483
|
+ value-format="yyyy-MM-dd"
|
|
484
|
+ style="width:135px"
|
|
485
|
+ :disabled="disableFour">
|
|
486
|
+ </el-date-picker>
|
482
|
487
|
</el-form-item>
|
483
|
488
|
</el-col>
|
484
|
489
|
<el-col :span="7">
|
485
|
|
- <el-form-item label="使用年限(年):">
|
486
|
|
- <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
|
487
|
|
- </el-form-item>
|
|
490
|
+ <el-form-item label="报废原因:">
|
|
491
|
+ <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
|
|
492
|
+ <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
|
|
493
|
+ </el-select>
|
|
494
|
+ </el-form-item>
|
488
|
495
|
</el-col>
|
489
|
|
- <el-col :span="7">
|
490
|
|
- <el-form-item label="工作时长(h):">
|
491
|
|
- <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
|
492
|
|
- </el-form-item>
|
|
496
|
+ <el-col :span="7">
|
|
497
|
+ <el-form-item label="使用年限(年):">
|
|
498
|
+ <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
|
|
499
|
+ </el-form-item>
|
493
|
500
|
</el-col>
|
494
|
501
|
</el-row>
|
495
|
502
|
<el-row>
|
496
|
|
- <el-col :span="8">
|
497
|
|
- <el-form-item label="消毒方式:">
|
498
|
|
- <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
|
499
|
|
- <el-option
|
500
|
|
- v-for="item in this.DisinfectionMode"
|
501
|
|
- :key="item.id"
|
502
|
|
- :label="item.name"
|
503
|
|
- :value="item.id"
|
504
|
|
- ></el-option>
|
505
|
|
- </el-select>
|
|
503
|
+ <el-col :span="8">
|
|
504
|
+ <el-form-item label="工作时长(h):">
|
|
505
|
+ <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
|
506
|
506
|
</el-form-item>
|
507
|
507
|
</el-col>
|
508
|
508
|
<el-col :span="8">
|
|
@@ -965,7 +965,7 @@
|
965
|
965
|
:key="item.id"
|
966
|
966
|
:label="item.name"
|
967
|
967
|
:value="item.id"
|
968
|
|
- style="width:80px">
|
|
968
|
+ style="width:90px">
|
969
|
969
|
</el-option>
|
970
|
970
|
</el-select>
|
971
|
971
|
</el-form-item>
|
|
@@ -1039,7 +1039,7 @@
|
1039
|
1039
|
value-format="yyyy-MM-dd HH:mm"
|
1040
|
1040
|
placeholder="选择时间"
|
1041
|
1041
|
v-model="userform.start_time"
|
1042
|
|
- style="width:150px"
|
|
1042
|
+ style="width:185px"
|
1043
|
1043
|
></el-date-picker>
|
1044
|
1044
|
</el-form-item>
|
1045
|
1045
|
</el-col>
|
|
@@ -1051,7 +1051,7 @@
|
1051
|
1051
|
value-format="yyyy-MM-dd HH:mm"
|
1052
|
1052
|
placeholder="选择时间"
|
1053
|
1053
|
v-model="userform.end_time"
|
1054
|
|
- style="width:150px"
|
|
1054
|
+ style="width:185px"
|
1055
|
1055
|
></el-date-picker>
|
1056
|
1056
|
</el-form-item>
|
1057
|
1057
|
</el-col>
|
|
@@ -1143,7 +1143,7 @@
|
1143
|
1143
|
:key="item.id"
|
1144
|
1144
|
:label="item.name"
|
1145
|
1145
|
:value="item.id"
|
1146
|
|
- style="width:150px">
|
|
1146
|
+ style="width:200px">
|
1147
|
1147
|
</el-option>
|
1148
|
1148
|
</el-select>
|
1149
|
1149
|
</el-form-item>
|
|
@@ -1161,7 +1161,7 @@
|
1161
|
1161
|
:key="item.id"
|
1162
|
1162
|
:label="item.name"
|
1163
|
1163
|
:value="item.id"
|
1164
|
|
- style="width:100px">
|
|
1164
|
+ style="width:200px">
|
1165
|
1165
|
</el-option>
|
1166
|
1166
|
</el-select>
|
1167
|
1167
|
</el-form-item>
|
|
@@ -1186,7 +1186,7 @@
|
1186
|
1186
|
:key="item.id"
|
1187
|
1187
|
:label="item.name"
|
1188
|
1188
|
:value="item.id"
|
1189
|
|
- style="width:135px">
|
|
1189
|
+ style="width:200px">
|
1190
|
1190
|
</el-option>
|
1191
|
1191
|
</el-select>
|
1192
|
1192
|
</el-form-item>
|
|
@@ -1199,7 +1199,7 @@
|
1199
|
1199
|
:key="item.id"
|
1200
|
1200
|
:label="item.name"
|
1201
|
1201
|
:value="item.id"
|
1202
|
|
- style="width:100px">
|
|
1202
|
+ style="width:260px">
|
1203
|
1203
|
</el-option>
|
1204
|
1204
|
</el-select>
|
1205
|
1205
|
</el-form-item>
|
|
@@ -1217,7 +1217,7 @@
|
1217
|
1217
|
:key="item.id"
|
1218
|
1218
|
:label="item.name"
|
1219
|
1219
|
:value="item.id"
|
1220
|
|
- style="width:100px">
|
|
1220
|
+ style="width:200px">
|
1221
|
1221
|
</el-option>
|
1222
|
1222
|
</el-select>
|
1223
|
1223
|
</el-form-item>
|
|
@@ -1244,7 +1244,7 @@
|
1244
|
1244
|
value-format="yyyy-MM-dd HH:mm"
|
1245
|
1245
|
placeholder="选择时间"
|
1246
|
1246
|
v-model="userform.starttime"
|
1247
|
|
- style="width:150px;"
|
|
1247
|
+ style="width:185px;"
|
1248
|
1248
|
></el-date-picker>
|
1249
|
1249
|
</el-form-item>
|
1250
|
1250
|
</el-col>
|
|
@@ -1256,7 +1256,7 @@
|
1256
|
1256
|
value-format="yyyy-MM-dd HH:mm"
|
1257
|
1257
|
placeholder="选择时间"
|
1258
|
1258
|
v-model="userform.endtime"
|
1259
|
|
- style="width:150px;"
|
|
1259
|
+ style="width:185px;"
|
1260
|
1260
|
></el-date-picker>
|
1261
|
1261
|
</el-form-item>
|
1262
|
1262
|
</el-col>
|
|
@@ -1306,8 +1306,8 @@
|
1306
|
1306
|
<el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
|
1307
|
1307
|
<span class="warn" v-show="warnShowTwo">您已一个月未更换,请注意检测</span>
|
1308
|
1308
|
</el-form-item>
|
1309
|
|
-
|
1310
|
|
- </el-col>
|
|
1309
|
+
|
|
1310
|
+ </el-col>
|
1311
|
1311
|
<el-col :span="8">
|
1312
|
1312
|
<el-form-item class="newname" label="名称:">
|
1313
|
1313
|
<el-select v-model="userform.germ_name" placeholder="请选择" style="width:150px">
|
|
@@ -1342,7 +1342,7 @@
|
1342
|
1342
|
:key="item.admin_user_id"
|
1343
|
1343
|
:label="item.user_name"
|
1344
|
1344
|
:value="item.admin_user_id"
|
1345
|
|
- style="width:100px">
|
|
1345
|
+ style="width:185px">
|
1346
|
1346
|
</el-option>
|
1347
|
1347
|
</el-select>
|
1348
|
1348
|
</el-form-item>
|
|
@@ -1574,7 +1574,7 @@
|
1574
|
1574
|
<el-button @click="cleanLincomycin">取消</el-button>
|
1575
|
1575
|
</el-col>
|
1576
|
1576
|
<el-col :span="4">
|
1577
|
|
- <el-button @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
|
|
1577
|
+ <el-button type="primary" @click="SaveLincomycin('qualityFormTwo')">保存</el-button>
|
1578
|
1578
|
</el-col>
|
1579
|
1579
|
</div>
|
1580
|
1580
|
</el-row>
|
|
@@ -1708,7 +1708,7 @@
|
1708
|
1708
|
<el-button @click="cleanQuality">取消</el-button>
|
1709
|
1709
|
</el-col>
|
1710
|
1710
|
<el-col :span="4">
|
1711
|
|
- <el-button @click="SaveQualityControl('qualityFormThree')">保存</el-button>
|
|
1711
|
+ <el-button type="primary" @click="SaveQualityControl('qualityFormThree')">保存</el-button>
|
1712
|
1712
|
</el-col>
|
1713
|
1713
|
</div>
|
1714
|
1714
|
</el-row>
|
|
@@ -1752,7 +1752,7 @@
|
1752
|
1752
|
value-format="yyyy-MM-dd HH:mm"
|
1753
|
1753
|
placeholder="选择时间"
|
1754
|
1754
|
v-model="guaForm.start_time"
|
1755
|
|
- style="width:150px;">
|
|
1755
|
+ style="width:185px;">
|
1756
|
1756
|
</el-date-picker>
|
1757
|
1757
|
</el-form-item>
|
1758
|
1758
|
</el-col>
|
|
@@ -1767,7 +1767,7 @@
|
1767
|
1767
|
placeholder="请选择"
|
1768
|
1768
|
format="yyyy-MM-dd"
|
1769
|
1769
|
value-format="yyyy-MM-dd"
|
1770
|
|
- style="width:150px">
|
|
1770
|
+ style="width:185px">
|
1771
|
1771
|
</el-date-picker> -->
|
1772
|
1772
|
<el-date-picker
|
1773
|
1773
|
type="datetime"
|
|
@@ -1775,7 +1775,7 @@
|
1775
|
1775
|
value-format="yyyy-MM-dd HH:mm"
|
1776
|
1776
|
placeholder="选择时间"
|
1777
|
1777
|
v-model="guaForm.arrive_time"
|
1778
|
|
- style="width:150px;">
|
|
1778
|
+ style="width:185px;">
|
1779
|
1779
|
</el-date-picker>
|
1780
|
1780
|
</el-form-item>
|
1781
|
1781
|
</el-col>
|
|
@@ -1787,7 +1787,7 @@
|
1787
|
1787
|
value-format="yyyy-MM-dd HH:mm"
|
1788
|
1788
|
placeholder="选择时间"
|
1789
|
1789
|
v-model="guaForm.finish_time"
|
1790
|
|
- style="width:150px;">
|
|
1790
|
+ style="width:185px;">
|
1791
|
1791
|
</el-date-picker>
|
1792
|
1792
|
</el-form-item>
|
1793
|
1793
|
</el-col>
|
|
@@ -1864,11 +1864,12 @@
|
1864
|
1864
|
:before-upload="beforeUploadFile"
|
1865
|
1865
|
:limit="1"
|
1866
|
1866
|
ref='upload'
|
|
1867
|
+ accept=".jpg,.png,.gif"
|
1867
|
1868
|
>
|
1868
|
1869
|
<el-button size="small" type="primary">上传图片</el-button>
|
1869
|
1870
|
</el-upload>
|
1870
|
|
- <a class="el-upload-list__item-name">
|
1871
|
|
- <i><a @click="toLink()">{{filename}}</a></i>
|
|
1871
|
+ <a class="el-upload-list__item-name" v-show="classShow">
|
|
1872
|
+ <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
|
1872
|
1873
|
</a>
|
1873
|
1874
|
</el-form-item>
|
1874
|
1875
|
</el-col>
|
|
@@ -1947,10 +1948,10 @@
|
1947
|
1948
|
<remander-form ref="remanderform"> </remander-form>
|
1948
|
1949
|
<!-- 编辑消毒计划 -->
|
1949
|
1950
|
<el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
|
1950
|
|
- <el-form :model="machineform" ref="machineform">
|
|
1951
|
+ <el-form :model="machineform" ref="machineform" :rules="planRules">
|
1951
|
1952
|
<el-row>
|
1952
|
1953
|
<el-col :span="10">
|
1953
|
|
- <el-form-item label="设备型号:">
|
|
1954
|
+ <el-form-item label="设备型号:" required prop = "device_type">
|
1954
|
1955
|
<el-select style="width:135px" v-model="machineform.device_type">
|
1955
|
1956
|
<el-option
|
1956
|
1957
|
v-for="item in this.DeviceType"
|
|
@@ -1962,7 +1963,7 @@
|
1962
|
1963
|
</el-form-item>
|
1963
|
1964
|
</el-col>
|
1964
|
1965
|
<el-col :span="10">
|
1965
|
|
- <el-form-item label="消毒时长:">
|
|
1966
|
+ <el-form-item label="消毒时长:" required prop="disinfec_time">
|
1966
|
1967
|
<el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
|
1967
|
1968
|
<span>分钟</span>
|
1968
|
1969
|
</el-form-item>
|
|
@@ -1970,7 +1971,7 @@
|
1970
|
1971
|
</el-row>
|
1971
|
1972
|
<el-row>
|
1972
|
1973
|
<el-col :span="10">
|
1973
|
|
- <el-form-item label="时间:">
|
|
1974
|
+ <el-form-item label="时间:" required prop="time">
|
1974
|
1975
|
<el-select
|
1975
|
1976
|
v-model="machineform.time"
|
1976
|
1977
|
placeholder="请选择时间"
|
|
@@ -1986,7 +1987,7 @@
|
1986
|
1987
|
</el-form-item>
|
1987
|
1988
|
</el-col>
|
1988
|
1989
|
<el-col :span="10">
|
1989
|
|
- <el-form-item label="班次:">
|
|
1990
|
+ <el-form-item label="班次:" required prop="class_time">
|
1990
|
1991
|
<el-select
|
1991
|
1992
|
v-model="machineform.class_time"
|
1992
|
1993
|
placeholder="请选择时间"
|
|
@@ -2074,7 +2075,7 @@
|
2074
|
2075
|
import { getAllSubregion, getAllMachine, getMachineDetailById,
|
2075
|
2076
|
UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
|
2076
|
2077
|
getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
|
2077
|
|
- ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode, selectChange, selectBed } from '@/api/manage'
|
|
2078
|
+ ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getTimeBeteen, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode, selectChange, selectBed } from '@/api/manage'
|
2078
|
2079
|
import { uParseTime } from '@/utils/tools'
|
2079
|
2080
|
import { getToken } from '@/api/qiniu'
|
2080
|
2081
|
import PlanForm from './components/PlanForm'
|
|
@@ -2247,7 +2248,14 @@ export default {
|
2247
|
2248
|
fluid_path: [{ required: true, message: '请填写消毒方式' }],
|
2248
|
2249
|
disinfectant: [{ required: true, message: '请填写消毒液' }],
|
2249
|
2250
|
disinfection_status: [{ required: true, message: '消毒状态' }],
|
2250
|
|
- sign_name: [{ required: true, message: '请填写签名' }]
|
|
2251
|
+ sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
|
|
2252
|
+ classtype: [{ required: true, message: '请填写班次' }]
|
|
2253
|
+ },
|
|
2254
|
+ planRules: {
|
|
2255
|
+ device_type: [{ required: true, message: '请输入设备型号' }],
|
|
2256
|
+ disinfec_time: [{ required: true, message: '请输入消毒时长' }],
|
|
2257
|
+ time: [{ required: true, message: '请输入时间' }],
|
|
2258
|
+ class_time: [{ required: true, message: '请输入班次' }]
|
2251
|
2259
|
},
|
2252
|
2260
|
runOption: [
|
2253
|
2261
|
{ id: 1, name: '正常' },
|
|
@@ -2540,9 +2548,9 @@ export default {
|
2540
|
2548
|
disableFour: true,
|
2541
|
2549
|
disableFive: true,
|
2542
|
2550
|
runDisable: true,
|
2543
|
|
- warnShow: true,
|
2544
|
|
- warnShowTwo: true,
|
2545
|
|
- warnShowThree: true,
|
|
2551
|
+ warnShow: false,
|
|
2552
|
+ warnShowTwo: false,
|
|
2553
|
+ warnShowThree: false,
|
2546
|
2554
|
bedZoneThree: [],
|
2547
|
2555
|
bedNumberTwo: [],
|
2548
|
2556
|
reverseMode: [
|
|
@@ -2554,7 +2562,8 @@ export default {
|
2554
|
2562
|
deviceMode: [],
|
2555
|
2563
|
zoneDisabled: false,
|
2556
|
2564
|
bedid: '',
|
2557
|
|
- unitType: ''
|
|
2565
|
+ unitType: '',
|
|
2566
|
+ classShow: false
|
2558
|
2567
|
}
|
2559
|
2568
|
},
|
2560
|
2569
|
methods: {
|
|
@@ -2656,10 +2665,29 @@ export default {
|
2656
|
2665
|
getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
|
2657
|
2666
|
if (response.data.state === 1) {
|
2658
|
2667
|
var addmahcer = response.data.data.addmahcer
|
2659
|
|
- console.log('addmacher是', addmahcer)
|
|
2668
|
+ console.log('查找的数据', addmahcer)
|
|
2669
|
+ for(let j=0;j<addmahcer.length;j++){
|
|
2670
|
+ if(addmahcer[j].device_type == 1){
|
|
2671
|
+ addmahcer[j].bed_number = addmahcer[j].number
|
|
2672
|
+ }
|
|
2673
|
+ if(addmahcer[j].device_type == 2){
|
|
2674
|
+ addmahcer[j].bed_number = addmahcer[j].bed_number
|
|
2675
|
+ }
|
|
2676
|
+ if(addmahcer[j].device_type == 3){
|
|
2677
|
+ addmahcer[j].bed_number = addmahcer[j].bed_number
|
|
2678
|
+ }
|
|
2679
|
+ }
|
2660
|
2680
|
this.tableDatatwo = addmahcer
|
2661
|
2681
|
this.tabIndex = this.$route.query.index
|
2662
|
|
- this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
|
|
2682
|
+ var id = this.$route.query.id
|
|
2683
|
+ for (let i = 0; i < this.tableDatatwo.length; i++) {
|
|
2684
|
+ if (this.tableDatatwo[i].id == id) {
|
|
2685
|
+ this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
|
|
2686
|
+ break
|
|
2687
|
+ }
|
|
2688
|
+
|
|
2689
|
+ }
|
|
2690
|
+ // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
|
2663
|
2691
|
}
|
2664
|
2692
|
})
|
2665
|
2693
|
},
|
|
@@ -2681,7 +2709,8 @@ export default {
|
2681
|
2709
|
// 病人下机后插入数据
|
2682
|
2710
|
this.getAutoData(val.id)
|
2683
|
2711
|
this.getTotalNumber(val.id)
|
2684
|
|
- this.getTimeWarning(val.id)
|
|
2712
|
+ // this.getTimeWarning(val.id)
|
|
2713
|
+ this.getTimeBeteen(val.id)
|
2685
|
2714
|
this.getData(val.bed_id)
|
2686
|
2715
|
},
|
2687
|
2716
|
getAutoData(id) {
|
|
@@ -2700,28 +2729,28 @@ export default {
|
2700
|
2729
|
// console.log('warning', warning)
|
2701
|
2730
|
var time = this.getTimestamp(this.userform.date) - warning.stime
|
2702
|
2731
|
// console.log('时间', time)
|
2703
|
|
- if (time < 2678400 && warning.dialysis_checked === 1) {
|
2704
|
|
- this.warnShow = false
|
2705
|
|
- } else {
|
2706
|
|
- this.warnShow = true
|
2707
|
|
- }
|
|
2732
|
+ // if (time < 2678400 && warning.dialysis_checked === 1) {
|
|
2733
|
+ // this.warnShow = false
|
|
2734
|
+ // } else {
|
|
2735
|
+ // this.warnShow = true
|
|
2736
|
+ // }
|
2708
|
2737
|
var germ = response.data.data.germ
|
2709
|
2738
|
// console.log('germ', germ)
|
2710
|
2739
|
var timetwo = this.getTimestamp(this.userform.date) - germ.stime
|
2711
|
2740
|
// console.log('时间', timetwo)
|
2712
|
|
- if (timetwo < 2678400 && germ.germ_checked === 1) {
|
2713
|
|
- this.warnShowTwo = false
|
2714
|
|
- } else {
|
2715
|
|
- this.warnShowTwo = true
|
2716
|
|
- }
|
|
2741
|
+ // if (timetwo < 2678400 && germ.germ_checked === 1) {
|
|
2742
|
+ // this.warnShowTwo = false
|
|
2743
|
+ // } else {
|
|
2744
|
+ // this.warnShowTwo = true
|
|
2745
|
+ // }
|
2717
|
2746
|
var clean = response.data.data.clean
|
2718
|
2747
|
var timethree = this.getTimestamp(this.userform.date) - clean.stime
|
2719
|
2748
|
// console.log('时间', timethree)
|
2720
|
|
- if (timethree < 2678400 && clean.clean === 1) {
|
2721
|
|
- this.warnShowThree = false
|
2722
|
|
- } else {
|
2723
|
|
- this.warnShowThree = true
|
2724
|
|
- }
|
|
2749
|
+ // if (timethree < 2678400 && clean.clean === 1) {
|
|
2750
|
+ // this.warnShowThree = false
|
|
2751
|
+ // } else {
|
|
2752
|
+ // this.warnShowThree = true
|
|
2753
|
+ // }
|
2725
|
2754
|
var number = response.data.data.number
|
2726
|
2755
|
// console.log('number', number)
|
2727
|
2756
|
this.Number = number
|
|
@@ -2833,7 +2862,7 @@ export default {
|
2833
|
2862
|
this.form.service_manufacturer = addmacher.service_manufacturer
|
2834
|
2863
|
|
2835
|
2864
|
// this.form.unit_type = addmacher.unit_type
|
2836
|
|
-
|
|
2865
|
+
|
2837
|
2866
|
this.form.unit_type = parseInt(addmacher.device_mode)
|
2838
|
2867
|
this.form.use_section = addmacher.use_section
|
2839
|
2868
|
this.form.section_number = addmacher.section_number
|
|
@@ -2853,7 +2882,7 @@ export default {
|
2853
|
2882
|
this.form.machine_status = addmacher.machine_status
|
2854
|
2883
|
this.form.user_total = addmacher.user_total
|
2855
|
2884
|
this.form.remarks = addmacher.remarks
|
2856
|
|
-
|
|
2885
|
+ // this.form.device_mode = addmacher.device_mode
|
2857
|
2886
|
if (addmacher.rubbish_date !== 0) {
|
2858
|
2887
|
this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
|
2859
|
2888
|
}
|
|
@@ -2964,11 +2993,25 @@ export default {
|
2964
|
2993
|
// console.log('form', this.form)
|
2965
|
2994
|
if (response.data.state === 1) {
|
2966
|
2995
|
var addmacher = response.data.data.addmacher
|
|
2996
|
+ // console.log('addmacher----', addmacher)
|
2967
|
2997
|
this.$message.success('修改成功')
|
2968
|
2998
|
// this.$router.push({ path: '/device/home?index=' + this.tabIndex })
|
2969
|
|
- this.getAllMachine()
|
2970
|
|
- this.getAllSubregion()
|
2971
|
|
- // this.$refs.singleTable.setCurrentRow(addmacher)
|
|
2999
|
+ for (let i = 0; i < this.tableDatatwo.length; i++) {
|
|
3000
|
+ if (this.tableDatatwo[i].id == addmacher.id) {
|
|
3001
|
+ for (let j = 0; j < this.deviceMode.length; j++) {
|
|
3002
|
+ if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
|
|
3003
|
+ addmacher.device_mode = this.deviceMode[j].device_mode
|
|
3004
|
+ // this.$forceUpdate()
|
|
3005
|
+ }
|
|
3006
|
+ }
|
|
3007
|
+
|
|
3008
|
+ this.tableDatatwo[i] = addmacher
|
|
3009
|
+ // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
|
|
3010
|
+ }
|
|
3011
|
+ }
|
|
3012
|
+ // this.getAllMachine()
|
|
3013
|
+ // this.getAllSubregion()
|
|
3014
|
+ this.$refs.singleTable.setCurrentRow(addmacher)
|
2972
|
3015
|
this.$forceUpdate()
|
2973
|
3016
|
}
|
2974
|
3017
|
})
|
|
@@ -3008,8 +3051,23 @@ export default {
|
3008
|
3051
|
// eslint-disable-next-line no-unused-vars
|
3009
|
3052
|
var addmacher = response.data.data.addmacher
|
3010
|
3053
|
this.$message.success('修改成功')
|
3011
|
|
- this.getAllMachine()
|
|
3054
|
+ for (let i = 0; i < this.tableDatatwo.length; i++) {
|
|
3055
|
+ if (this.tableDatatwo[i].id == addmacher.id) {
|
|
3056
|
+ for (let j = 0; j < this.deviceMode.length; j++) {
|
|
3057
|
+ if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
|
|
3058
|
+ addmacher.device_mode = this.deviceMode[j].device_mode
|
|
3059
|
+ // this.$forceUpdate()
|
|
3060
|
+ }
|
|
3061
|
+ }
|
|
3062
|
+
|
|
3063
|
+ this.tableDatatwo[i] = addmacher
|
|
3064
|
+ // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
|
|
3065
|
+ }
|
|
3066
|
+ }
|
|
3067
|
+ // this.getAllMachine()
|
3012
|
3068
|
this.getAllSubregion()
|
|
3069
|
+ this.$refs.singleTable.setCurrentRow(addmacher)
|
|
3070
|
+ this.$forceUpdate()
|
3013
|
3071
|
}
|
3014
|
3072
|
})
|
3015
|
3073
|
}
|
|
@@ -3035,10 +3093,25 @@ export default {
|
3035
|
3093
|
this.$refs[formName].validate(valid => {
|
3036
|
3094
|
UpdateMacheineTwo(this.form).then(response => {
|
3037
|
3095
|
if (response.data.state === 1) {
|
3038
|
|
- var add = response.data.data.addmacher
|
|
3096
|
+ var addmacher = response.data.data.addmacher
|
3039
|
3097
|
this.$message.success('修改成功')
|
3040
|
|
- this.getAllMachine()
|
|
3098
|
+ for (let i = 0; i < this.tableDatatwo.length; i++) {
|
|
3099
|
+ if (this.tableDatatwo[i].id == addmacher.id) {
|
|
3100
|
+ for (let j = 0; j < this.deviceMode.length; j++) {
|
|
3101
|
+ if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
|
|
3102
|
+ addmacher.device_mode = this.deviceMode[j].device_mode
|
|
3103
|
+ // this.$forceUpdate()
|
|
3104
|
+ }
|
|
3105
|
+ }
|
|
3106
|
+
|
|
3107
|
+ this.tableDatatwo[i] = addmacher
|
|
3108
|
+ // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
|
|
3109
|
+ }
|
|
3110
|
+ }
|
|
3111
|
+ // this.getAllMachine()
|
3041
|
3112
|
this.getAllSubregion()
|
|
3113
|
+ this.$refs.singleTable.setCurrentRow(addmacher)
|
|
3114
|
+ this.$forceUpdate()
|
3042
|
3115
|
}
|
3043
|
3116
|
})
|
3044
|
3117
|
})
|
|
@@ -3232,7 +3305,7 @@ export default {
|
3232
|
3305
|
getAllPlanDetail(unit_type).then(response => {
|
3233
|
3306
|
if (response.data.state === 1) {
|
3234
|
3307
|
var plandetail = response.data.data.plandetail
|
3235
|
|
- console.log('plandetail', plandetail)
|
|
3308
|
+ // console.log('plandetail', plandetail)
|
3236
|
3309
|
for (let index = 0; index < plandetail.length; index++) {
|
3237
|
3310
|
if (plandetail[index].time === 1) {
|
3238
|
3311
|
plandetail[index].time = '周一'
|
|
@@ -3384,11 +3457,16 @@ export default {
|
3384
|
3457
|
var devicetype = this.machineform.device_type
|
3385
|
3458
|
var devicetypes = parseInt(devicetype)
|
3386
|
3459
|
this.machineform.device_type = devicetypes
|
3387
|
|
-
|
3388
|
|
- var disinfectimes = this.machineform.disinfec_time
|
3389
|
|
- var disinfectime = parseInt(disinfectimes)
|
3390
|
|
- this.machineform.disinfec_time = disinfectime
|
3391
|
|
-
|
|
3460
|
+
|
|
3461
|
+ if (this.machineform.disinfec_time === '') {
|
|
3462
|
+ this.machineform.disinfec_time = ''
|
|
3463
|
+ }
|
|
3464
|
+ if (this.machineform.disinfec_time !== '') {
|
|
3465
|
+ var disinfectimes = this.machineform.disinfec_time
|
|
3466
|
+ var disinfectime = parseInt(disinfectimes)
|
|
3467
|
+ this.machineform.disinfec_time = disinfectime
|
|
3468
|
+ }
|
|
3469
|
+
|
3392
|
3470
|
var times = this.machineform.time
|
3393
|
3471
|
var time = parseInt(times)
|
3394
|
3472
|
this.machineform.time = time
|
|
@@ -3448,7 +3526,6 @@ export default {
|
3448
|
3526
|
}
|
3449
|
3527
|
|
3450
|
3528
|
DeletePlans({ ids: ids }).then(response => {
|
3451
|
|
- console.log('ids', ids)
|
3452
|
3529
|
// eslint-disable-next-line eqeqeq
|
3453
|
3530
|
if (response.data.state == 1) {
|
3454
|
3531
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -3744,6 +3821,15 @@ export default {
|
3744
|
3821
|
this.userform.end_time = ''
|
3745
|
3822
|
this.userform.starttime = ''
|
3746
|
3823
|
this.userform.endtime = ''
|
|
3824
|
+ this.userform.date = ''
|
|
3825
|
+ this.userform.classtype = ''
|
|
3826
|
+ this.userform.zone = ''
|
|
3827
|
+ this.userform.patient_name = ''
|
|
3828
|
+ this.userform.sign_name = ''
|
|
3829
|
+ this.userform.bed_number = ''
|
|
3830
|
+ this.userform.hyperfiltratio = ''
|
|
3831
|
+ this.userform.weight_loss = ''
|
|
3832
|
+ this.userform.dialysis_time = ''
|
3747
|
3833
|
this.$message.success('添加成功')
|
3748
|
3834
|
// this.$refs.child.getInformationData()
|
3749
|
3835
|
}
|
|
@@ -3788,7 +3874,7 @@ export default {
|
3788
|
3874
|
getUserRegister(id).then(response => {
|
3789
|
3875
|
if (response.data.state === 1) {
|
3790
|
3876
|
var information = response.data.data.information
|
3791
|
|
- console.log('使用登记', information)
|
|
3877
|
+ // console.log('产讯使用登记', information)
|
3792
|
3878
|
// eslint-disable-next-line no-unused-vars
|
3793
|
3879
|
var role = response.data.data.role
|
3794
|
3880
|
// console.log('role', role)
|
|
@@ -3816,9 +3902,25 @@ export default {
|
3816
|
3902
|
// this.userform.dialysis_time = information.dialysis_hour
|
3817
|
3903
|
// this.userform.hyperfiltratio = information.hyperfiltratio
|
3818
|
3904
|
// this.userform.weight_loss = information.weight_loss
|
3819
|
|
- this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
|
3820
|
|
- this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
|
3821
|
|
- this.userform.weight_loss = dislysis.weight_loss
|
|
3905
|
+ if (information.hyperfiltratio === '') {
|
|
3906
|
+ this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
|
|
3907
|
+ } else {
|
|
3908
|
+ this.userform.hyperfiltratio = information.hyperfiltratio
|
|
3909
|
+ }
|
|
3910
|
+ if (information.dialysis_hour === '') {
|
|
3911
|
+ this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
|
|
3912
|
+ } else {
|
|
3913
|
+ this.userform.dialysis_time = information.dialysis_hour
|
|
3914
|
+ }
|
|
3915
|
+ // this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
|
|
3916
|
+ // this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
|
|
3917
|
+ if (information.weight_loss === '') {
|
|
3918
|
+ this.userform.weight_loss = dislysis.weight_loss
|
|
3919
|
+ } else {
|
|
3920
|
+ this.userform.weight_loss = information.weight_loss
|
|
3921
|
+ }
|
|
3922
|
+
|
|
3923
|
+ // this.userform.weight_loss = dislysis.weight_loss
|
3822
|
3924
|
this.userform.warning_value = information.warning_value
|
3823
|
3925
|
this.userform.user_total = information.user_total
|
3824
|
3926
|
if (information.move === 0) {
|
|
@@ -3862,7 +3964,7 @@ export default {
|
3862
|
3964
|
this.userform.germ_checked = false
|
3863
|
3965
|
}
|
3864
|
3966
|
|
3865
|
|
- if (information.germs_checked === 2) {
|
|
3967
|
+ if (information.germ_checked === 2) {
|
3866
|
3968
|
this.userform.germ_checked = false
|
3867
|
3969
|
}
|
3868
|
3970
|
|
|
@@ -4060,7 +4162,19 @@ export default {
|
4060
|
4162
|
}
|
4061
|
4163
|
},
|
4062
|
4164
|
beforeUploadFile(file) {
|
|
4165
|
+ var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
|
|
4166
|
+ const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
|
|
4167
|
+ if (!extension) {
|
|
4168
|
+ // eslint-disable-next-line no-mixed-spaces-and-tabs
|
|
4169
|
+ this.$message({
|
|
4170
|
+ // eslint-disable-next-line no-mixed-spaces-and-tabs
|
|
4171
|
+ message: '上传文件只能是jpg或者png或者gif格式!',
|
|
4172
|
+ type: 'error'
|
|
4173
|
+ })
|
|
4174
|
+ return false// 必须加上return false; 才能阻止
|
|
4175
|
+ }
|
4063
|
4176
|
this.filename = file.name
|
|
4177
|
+ this.classShow = true
|
4064
|
4178
|
this.guaForm.imageName = file.name
|
4065
|
4179
|
const isLt2M = file.size / 1024 / 1024 <= 2048
|
4066
|
4180
|
var date = new Date()
|
|
@@ -4142,6 +4256,8 @@ export default {
|
4142
|
4256
|
this.guaForm.exclude = 0
|
4143
|
4257
|
this.guaForm.images = ''
|
4144
|
4258
|
this.guaForm.treatment_process = ''
|
|
4259
|
+ this.classShow = false
|
|
4260
|
+ this.guaForm.imageName = ''
|
4145
|
4261
|
}
|
4146
|
4262
|
})
|
4147
|
4263
|
}
|
|
@@ -4227,12 +4343,9 @@ export default {
|
4227
|
4343
|
getTimeWarning(id) {
|
4228
|
4344
|
getTimeWarning(id).then(response => {
|
4229
|
4345
|
if (response.data.state === 1) {
|
4230
|
|
- var information = response.data.data.informations
|
4231
|
|
- // console.log('码字', information)
|
4232
|
|
- // console.log('当前时间', this.getTimestamp(this.userform.date))
|
4233
|
|
- // console.log('存入时间', information.stime)
|
|
4346
|
+ var information = response.data.data.information
|
4234
|
4347
|
var time = this.getTimestamp(this.userform.date) - information.stime
|
4235
|
|
- console.log('时间', time)
|
|
4348
|
+ // console.log('时间', time)
|
4236
|
4349
|
// if (time < 2678400) {
|
4237
|
4350
|
// this.warnShow = false
|
4238
|
4351
|
// }
|
|
@@ -4251,6 +4364,38 @@ export default {
|
4251
|
4364
|
}
|
4252
|
4365
|
})
|
4253
|
4366
|
},
|
|
4367
|
+ getTimeBeteen(id) {
|
|
4368
|
+ var todayTime = moment(new Date()).format('YYYY-MM-DD')
|
|
4369
|
+ // console.log('todayTime', todayTime)
|
|
4370
|
+ getTimeBeteen(id, todayTime).then(response => {
|
|
4371
|
+ if (response.data.state === 1) {
|
|
4372
|
+ var timedata = response.data.data.timeData
|
|
4373
|
+ if (timedata.length === 0) {
|
|
4374
|
+ this.warnShow = true
|
|
4375
|
+ }
|
|
4376
|
+ if (timedata.length !== 0) {
|
|
4377
|
+ this.warnShow = false
|
|
4378
|
+ }
|
|
4379
|
+ var todayTimeTwo = response.data.data.timeDataTwo
|
|
4380
|
+ // console.log('todayTimeTwo', todayTimeTwo)
|
|
4381
|
+ if (todayTimeTwo.length === 0) {
|
|
4382
|
+ this.warnShowTwo = true
|
|
4383
|
+ }
|
|
4384
|
+ if (todayTimeTwo.length !== 0) {
|
|
4385
|
+ this.warnShowTwo = false
|
|
4386
|
+ }
|
|
4387
|
+
|
|
4388
|
+ var timeDataThree = response.data.data.timeDataThree
|
|
4389
|
+ console.log('timeDataThree', timeDataThree)
|
|
4390
|
+ if (timeDataThree.length === 0) {
|
|
4391
|
+ this.warnShowThree = true
|
|
4392
|
+ }
|
|
4393
|
+ if (timeDataThree.length !== 0) {
|
|
4394
|
+ this.warnShowThree = false
|
|
4395
|
+ }
|
|
4396
|
+ }
|
|
4397
|
+ })
|
|
4398
|
+ },
|
4254
|
4399
|
getTimestamp(time) { // 把时间日期转成时间戳
|
4255
|
4400
|
return (new Date(time)).getTime() / 1000
|
4256
|
4401
|
},
|
|
@@ -4292,8 +4437,25 @@ export default {
|
4292
|
4437
|
this.$forceUpdate()
|
4293
|
4438
|
this.userform.bed_number = zone.id
|
4294
|
4439
|
this.userform.zone = zone.zone_id
|
4295
|
|
- console.log('zone', zone)
|
|
4440
|
+ // console.log('zone', zone)
|
|
4441
|
+ }
|
|
4442
|
+ })
|
|
4443
|
+ },
|
|
4444
|
+ hiddenShow() {
|
|
4445
|
+ this.$confirm(
|
|
4446
|
+ '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
|
|
4447
|
+ '删除提示',
|
|
4448
|
+ {
|
|
4449
|
+ dangerouslyUseHTMLString: true,
|
|
4450
|
+ confirmButtonText: '确定',
|
|
4451
|
+ cancelButtonText: '取消',
|
|
4452
|
+ type: 'warning'
|
4296
|
4453
|
}
|
|
4454
|
+ ).then(() => {
|
|
4455
|
+ this.filename = ''
|
|
4456
|
+ this.guaForm.imageName = ''
|
|
4457
|
+ this.guaForm.images = ''
|
|
4458
|
+ this.classShow = false
|
4297
|
4459
|
})
|
4298
|
4460
|
}
|
4299
|
4461
|
},
|
|
@@ -4381,7 +4543,7 @@ export default {
|
4381
|
4543
|
.a{
|
4382
|
4544
|
margin-bottom: 10px;
|
4383
|
4545
|
margin-top: 6px;
|
4384
|
|
-
|
|
4546
|
+
|
4385
|
4547
|
}
|
4386
|
4548
|
|
4387
|
4549
|
.b{
|