|
@@ -27,11 +27,14 @@
|
27
|
27
|
<el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
|
28
|
28
|
</div>
|
29
|
29
|
<div style="float:right;margin-bottom:10px;">
|
30
|
|
- <el-button type="primary" @click="printCard">打印</el-button>
|
31
|
|
- <el-button type="primary" @click="AddCard">新增</el-button>
|
|
30
|
+ <el-button type="primary" @click="setAirDisInfect">设置</el-button>
|
|
31
|
+ <el-button type="primary" @click="printCard" v-if="air_way==0||air_way == 1">打印</el-button>
|
|
32
|
+ <el-button type="primary" @click="printCardOne" v-if="air_way == 2">打印</el-button>
|
|
33
|
+ <el-button type="primary" @click="AddCard" v-if="air_way==0||air_way == 1">新增</el-button>
|
|
34
|
+ <el-button type="primary" @click="AddCardOne" v-if="air_way == 2">新增</el-button>
|
32
|
35
|
|
33
|
36
|
</div>
|
34
|
|
- <div class="tab_air">
|
|
37
|
+ <div class="tab_air" v-if="air_way ==0 ||air_way == 1">
|
35
|
38
|
<el-table :data="tableData" :fit="true" stripe>
|
36
|
39
|
<el-table-column prop="year" label="名称" width="150" align="center">
|
37
|
40
|
<el-table-column prop="year" label="消毒时间" align="center" width="150">
|
|
@@ -129,7 +132,74 @@
|
129
|
132
|
>
|
130
|
133
|
|
131
|
134
|
</el-pagination>
|
132
|
|
- </div>
|
|
135
|
+ </div>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+ <div v-if="air_way == 2">
|
|
139
|
+ <el-table
|
|
140
|
+ :data="tableDataOne"
|
|
141
|
+ style="width: 100%"
|
|
142
|
+ row-key="id"
|
|
143
|
+ border
|
|
144
|
+ lazy
|
|
145
|
+ :load="load"
|
|
146
|
+ :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
147
|
+ <el-table-column prop="date" label="消毒时间" width="100">
|
|
148
|
+ <template slot-scope="scope">
|
|
149
|
+ {{getTimes(scope.row.record_date) }}
|
|
150
|
+ </template>
|
|
151
|
+ </el-table-column>
|
|
152
|
+ <el-table-column prop="date" label="消毒科室" width="100">
|
|
153
|
+ <template slot-scope="scope">
|
|
154
|
+ {{ scope.row.department }}
|
|
155
|
+ </template>
|
|
156
|
+ </el-table-column>
|
|
157
|
+ <el-table-column prop="name" label="累计时间" width="100">
|
|
158
|
+ <template slot-scope="scope">
|
|
159
|
+ {{scope.row.first_total_time?scope.row.first_total_time:"" }}
|
|
160
|
+ </template>
|
|
161
|
+ </el-table-column>
|
|
162
|
+ <el-table-column prop="address" label="责任人" width="100">
|
|
163
|
+ <template slot-scope="scope">
|
|
164
|
+ {{getName(scope.row.first_creator)}}
|
|
165
|
+ </template>
|
|
166
|
+ </el-table-column>
|
|
167
|
+ <el-table-column prop="name" label="通风" align="center" min-width="80">
|
|
168
|
+ <template slot-scope="scope">
|
|
169
|
+ {{ getTimeTwo(scope.row.last_start_time)}} - {{ getTimeTwo(scope.row.last_end_time) }}
|
|
170
|
+ </template>
|
|
171
|
+ </el-table-column>
|
|
172
|
+ <el-table-column prop="province" label="负责人" align="center" min-width="60">
|
|
173
|
+ <template slot-scope="scope">
|
|
174
|
+ {{getName(scope.row.last_creator)}}
|
|
175
|
+
|
|
176
|
+ </template>
|
|
177
|
+ </el-table-column>
|
|
178
|
+ <el-table-column prop="city" label="操作" align="center" min-width="150">
|
|
179
|
+ <template slot-scope="scope">
|
|
180
|
+ <el-button
|
|
181
|
+ size="mini"
|
|
182
|
+ type="primary"
|
|
183
|
+ @click="handleEditOne(scope.row.id)">编辑</el-button>
|
|
184
|
+ <el-button
|
|
185
|
+ size="mini"
|
|
186
|
+ type="danger"
|
|
187
|
+ @click="handleDeleteOne(scope.row.id)">删除</el-button>
|
|
188
|
+ </template>
|
|
189
|
+ </el-table-column>
|
|
190
|
+ </el-table>
|
|
191
|
+ <el-pagination
|
|
192
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
193
|
+ :page-size="10"
|
|
194
|
+ background
|
|
195
|
+ style="margin-top:20px;float: right"
|
|
196
|
+ :total="total"
|
|
197
|
+ @size-change="handleSizeChangeOne"
|
|
198
|
+ @current-change="handleCurrentChangeOne"
|
|
199
|
+ >
|
|
200
|
+ </el-pagination>
|
|
201
|
+ </div>
|
|
202
|
+
|
133
|
203
|
|
134
|
204
|
<!-- 新增 -->
|
135
|
205
|
<el-dialog
|
|
@@ -833,89 +903,497 @@
|
833
|
903
|
</div>
|
834
|
904
|
</div>
|
835
|
905
|
</div>
|
836
|
|
- </div>
|
837
|
|
- </div>
|
838
|
|
- </template>
|
839
|
906
|
|
840
|
|
- <script>
|
841
|
|
- import print from "print-js";
|
842
|
|
- import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
843
|
|
- import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateNewAirDisinfect,deleteNewAirDisInfect,getAirDisinfectLongTime} from "@/api/device"
|
844
|
|
- import { uParseTime } from '@/utils/tools'
|
845
|
|
- const moment = require('moment')
|
846
|
|
- import { getManageMentDataConfig } from '@/utils/data'
|
847
|
|
- export default {
|
848
|
|
- name: 'airDisinfect',
|
849
|
|
- components: {
|
850
|
|
- BreadCrumb
|
851
|
|
- },
|
852
|
|
- data() {
|
853
|
|
- return {
|
854
|
|
- crumbs: [
|
855
|
|
- { path: false, name: '院感管理' },
|
856
|
|
- { path: false, name: '透析室空气消毒记录表' }
|
857
|
|
- ],
|
858
|
907
|
|
859
|
|
- dialogFormVisible:false,
|
860
|
|
- editDialogFormVisible:false,
|
861
|
|
- startvalue:'',
|
862
|
|
- endvalue:'',
|
863
|
|
- form: {
|
864
|
|
- id:0,
|
865
|
|
- record_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"), //创建日期
|
866
|
|
- first_disinfection_water:"",// 消毒液
|
867
|
|
- first_disinfection_methods:"",//消毒方式
|
868
|
|
- first_disinfection_time:'',//消毒时长
|
869
|
|
- first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
870
|
|
- first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
871
|
|
- first_total_time:"",//累计时间
|
872
|
|
- first_is_check:"1",//检验合格
|
873
|
|
- first_modifications:"",//修改标志
|
874
|
|
- first_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
908
|
+ <div hidden="hiddenShowOne">
|
|
909
|
+ <div id="print-card-info_one" v-show="hiddenShowOne">
|
|
910
|
+ <div>
|
|
911
|
+ <h1 style="text-align: center;">空气消毒登记</h1>
|
|
912
|
+ <div>
|
|
913
|
+ <table border="1" style="text-align: center;margin: auto;border-collapse: collapse;">
|
|
914
|
+ <tr>
|
|
915
|
+ <td>消毒时间</td>
|
|
916
|
+ <td>透析室</td>
|
|
917
|
+ <td>累计时间</td>
|
|
918
|
+ <td>责任人</td>
|
|
919
|
+
|
|
920
|
+ <td>通风</td>
|
|
921
|
+ <td>负责人</td>
|
|
922
|
+ </tr>
|
|
923
|
+ <tr v-for="(item,index) in tableDataOne" :key="index">
|
|
924
|
+ <td>{{getTimes(item.record_date) }}</td>
|
|
925
|
+ <td>{{item.department }}</td>
|
|
926
|
+ <td>{{ getTimeTwo(item.first_start_time)}} - {{ getTimeTwo(item.first_end_time) }}</td>
|
|
927
|
+ <td>
|
|
928
|
+ <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
|
|
929
|
+ {{getName(item.first_creator)}}
|
|
930
|
+ </span>
|
|
931
|
+ <span v-else>
|
|
932
|
+ <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
|
|
933
|
+ </span>
|
|
934
|
+ </td>
|
|
935
|
+
|
|
936
|
+ </td>
|
|
937
|
+ <td> {{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
|
|
938
|
+ <td>
|
|
939
|
+ <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
|
|
940
|
+ {{getName(item.last_creator)}}
|
|
941
|
+ </span>
|
|
942
|
+ <span v-else>
|
|
943
|
+ <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
|
|
944
|
+ </span>
|
|
945
|
+ </td>
|
|
946
|
+ </tr>
|
|
947
|
+ </table>
|
|
948
|
+ </div>
|
|
949
|
+ </div>
|
|
950
|
+ </div>
|
|
951
|
+ </div>
|
875
|
952
|
|
876
|
|
- sencond_disinfection_water:"",// 消毒液
|
877
|
|
- sencond_disinfection_methods:"",//消毒方式
|
878
|
|
- sencond_disinfection_time:"",//消毒时长
|
879
|
|
- sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
880
|
|
- sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
881
|
|
- sencond_total_time:"",//累计时间
|
882
|
|
- sencond_is_check:"1",//检验合格
|
883
|
|
- sencond_modifications:"",//修改标志
|
884
|
|
- sencond_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
953
|
+<!-- 设置 -->
|
|
954
|
+ <el-dialog
|
|
955
|
+ title="请选择版本"
|
|
956
|
+ :visible.sync="setEditDialog"
|
|
957
|
+ width="60%">
|
|
958
|
+ <span>
|
|
959
|
+ <el-radio v-model="air_way" label="1">版本一</el-radio>
|
|
960
|
+ <el-radio v-model="air_way" label="2">版本二</el-radio>
|
|
961
|
+ </span>
|
|
962
|
+ <span slot="footer" class="dialog-footer">
|
|
963
|
+ <el-button @click="setEditDialog = false">取 消</el-button>
|
|
964
|
+ <el-button type="primary" @click="saveSetAirDisInfect()">保 存</el-button>
|
|
965
|
+ </span>
|
|
966
|
+ </el-dialog>
|
|
967
|
+
|
|
968
|
+ <!--版本2新增 -->
|
|
969
|
+ <el-dialog
|
|
970
|
+ class="centerDialog"
|
|
971
|
+ width="1000px"
|
|
972
|
+ title="新增空气消毒表"
|
|
973
|
+ :visible.sync="newDialogFormVisible">
|
|
974
|
+ <el-form :model="form" ref="form" class="airForm" :rules="airRules">
|
|
975
|
+ <div style="width: 100%;">
|
|
976
|
+ <el-form-item label="创建日期" label-width="110px" required prop="record_date">
|
|
977
|
+ <el-date-picker
|
|
978
|
+ value-format="yyyy-MM-dd"
|
|
979
|
+ v-model="form.record_date"
|
|
980
|
+ type="date"
|
|
981
|
+ placeholder="选择日期时间">
|
|
982
|
+ </el-date-picker>
|
|
983
|
+ </el-form-item>
|
885
|
984
|
|
886
|
|
- third_disinfection_water:"",// 消毒液
|
887
|
|
- third_disinfection_methods:"",//消毒方式
|
888
|
|
- third_disinfection_time:'',//消毒时长
|
889
|
|
- third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
890
|
|
- third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
891
|
|
- third_total_time:"",//累计时间
|
892
|
|
- third_is_check:"1",//检验合格
|
893
|
|
- third_modifications:"",//修改标志
|
894
|
|
- third_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
985
|
+ <el-form-item label="消毒科室" label-width="110px" required prop="department">
|
|
986
|
+ <el-select v-model="form.department" placeholder="请选择">
|
|
987
|
+ <el-option
|
|
988
|
+ v-for="(item,index) in disinfectionOfficeList"
|
|
989
|
+ :key="index"
|
|
990
|
+ :label="item.name"
|
|
991
|
+ :value="item.name">
|
|
992
|
+ </el-option>
|
|
993
|
+ </el-select>
|
|
994
|
+ </el-form-item>
|
|
995
|
+ </div>
|
|
996
|
+ <div class="form_title">
|
|
997
|
+ <span>
|
|
998
|
+ {{ form.department }}
|
|
999
|
+ </span>
|
|
1000
|
+ </div>
|
|
1001
|
+ <el-form-item label="消毒液" label-width="110px">
|
|
1002
|
+ <!-- <el-input v-model="form.first_disinfection_water"></el-input> -->
|
|
1003
|
+ <el-select v-model="form.first_disinfection_water" placeholder="请选择">
|
|
1004
|
+ <el-option
|
|
1005
|
+ v-for="(item,index) in disInfectionWaterList"
|
|
1006
|
+ :key="index"
|
|
1007
|
+ :label="item.name"
|
|
1008
|
+ :value="item.name">
|
|
1009
|
+ </el-option>
|
|
1010
|
+ </el-select>
|
|
1011
|
+ </el-form-item>
|
|
1012
|
+ <el-form-item label="消毒方式" label-width="110px">
|
|
1013
|
+ <!-- <el-input v-model="form.first_disinfection_methods"></el-input> -->
|
|
1014
|
+ <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
|
|
1015
|
+ <el-option
|
|
1016
|
+ v-for="(item,index) in DisinfectionMode"
|
|
1017
|
+ :key="index"
|
|
1018
|
+ :label="item.name"
|
|
1019
|
+ :value="item.name">
|
|
1020
|
+ </el-option>
|
|
1021
|
+ </el-select>
|
|
1022
|
+ </el-form-item>
|
|
1023
|
+ <el-form-item label="消毒时间(h)" label-width="110px">
|
|
1024
|
+ <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
|
|
1025
|
+ </el-form-item>
|
|
1026
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1027
|
+ <el-date-picker
|
|
1028
|
+ type="datetime"
|
|
1029
|
+ format="yyyy-MM-dd HH:mm"
|
|
1030
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1031
|
+ placeholder="选择时间"
|
|
1032
|
+ v-model="form.first_start_time"
|
|
1033
|
+ @change="firststartime"
|
|
1034
|
+ style="width:100%;"
|
|
1035
|
+ ></el-date-picker>
|
|
1036
|
+ </el-form-item>
|
|
1037
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1038
|
+ <el-date-picker
|
|
1039
|
+ type="datetime"
|
|
1040
|
+ format="yyyy-MM-dd HH:mm"
|
|
1041
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1042
|
+ placeholder="选择时间"
|
|
1043
|
+ v-model="form.first_end_time"
|
|
1044
|
+ @change="firstendtime"
|
|
1045
|
+ style="width:100%;"
|
|
1046
|
+ ></el-date-picker>
|
|
1047
|
+ </el-form-item>
|
|
1048
|
+ <el-form-item label="累计时间(h)" label-width="110px">
|
|
1049
|
+ <el-input v-model= "form.first_total_time" ></el-input>
|
|
1050
|
+ </el-form-item>
|
|
1051
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1052
|
+ <div>
|
|
1053
|
+ <el-radio v-model="form.first_is_check" label="1">是</el-radio>
|
|
1054
|
+ <el-radio v-model="form.first_is_check" label="2">否</el-radio>
|
|
1055
|
+ </div>
|
|
1056
|
+ </el-form-item>
|
|
1057
|
+ <el-form-item label="修改标志" label-width="110px">
|
|
1058
|
+ <el-select v-model="form.first_modifications" placeholder="请选择">
|
|
1059
|
+ <el-option
|
|
1060
|
+ v-for="(item,index) in options"
|
|
1061
|
+ :key="index"
|
|
1062
|
+ :label="item.name"
|
|
1063
|
+ :value="item.id">
|
|
1064
|
+ </el-option>
|
|
1065
|
+ </el-select>
|
|
1066
|
+ </el-form-item>
|
|
1067
|
+ <el-form-item label="责任人" label-width="110px">
|
|
1068
|
+ <el-select v-model="form.first_creator" placeholder="请选择">
|
|
1069
|
+ <el-option
|
|
1070
|
+ v-for="(item,index) in docList"
|
|
1071
|
+ :key="index"
|
|
1072
|
+ :label="item.user_name"
|
|
1073
|
+ :value="item.admin_user_id">
|
|
1074
|
+ </el-option>
|
|
1075
|
+ </el-select>
|
|
1076
|
+ </el-form-item>
|
895
|
1077
|
|
896
|
|
- last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
897
|
|
- last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
898
|
|
- last_disinfection_time:"",//消毒时长
|
899
|
|
- last_total_time:"",//累计时间
|
900
|
|
- last_is_check:"1",//检验合格
|
901
|
|
- last_modifications:"",//修改标志
|
902
|
|
- last_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
903
|
|
- },
|
904
|
|
- docList:[],
|
905
|
|
- options:[
|
906
|
|
- {id:1,name:"正常"},
|
907
|
|
- {id:2,name:"撤销"}
|
908
|
|
- ],
|
909
|
|
- airRules: {
|
910
|
|
- created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
|
911
|
|
- start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
|
912
|
|
- end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}]
|
913
|
|
- },
|
914
|
|
- limit:10,
|
915
|
|
- page:1,
|
916
|
|
- total:0,
|
|
1078
|
+ <div class="form_title"><span >通风</span></div>
|
|
1079
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1080
|
+ <el-date-picker
|
|
1081
|
+ type="datetime"
|
|
1082
|
+ format="yyyy-MM-dd HH:mm"
|
|
1083
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1084
|
+ placeholder="选择时间"
|
|
1085
|
+ v-model="form.last_start_time"
|
|
1086
|
+ @change="laststarttime"
|
|
1087
|
+ style="width:100%;"
|
|
1088
|
+ ></el-date-picker>
|
|
1089
|
+ </el-form-item>
|
|
1090
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1091
|
+ <el-date-picker
|
|
1092
|
+ type="datetime"
|
|
1093
|
+ format="yyyy-MM-dd HH:mm"
|
|
1094
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1095
|
+ placeholder="选择时间"
|
|
1096
|
+ v-model="form.last_end_time"
|
|
1097
|
+ @change="lastendtime"
|
|
1098
|
+ style="width:100%;"
|
|
1099
|
+ ></el-date-picker>
|
|
1100
|
+ </el-form-item>
|
|
1101
|
+ <el-form-item label="累计时间(h)" label-width="110px">
|
|
1102
|
+ <el-input v-model= "form.last_total_time" ></el-input>
|
|
1103
|
+ </el-form-item>
|
|
1104
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1105
|
+ <div>
|
|
1106
|
+ <el-radio v-model="form.last_is_check" label="1">是</el-radio>
|
|
1107
|
+ <el-radio v-model="form.last_is_check" label="2">否</el-radio>
|
|
1108
|
+ </div>
|
|
1109
|
+ </el-form-item>
|
|
1110
|
+ <el-form-item label="修改标志" label-width="110px" prop="last_modifications">
|
|
1111
|
+ <el-select v-model="form.last_modifications" placeholder="请选择">
|
|
1112
|
+ <el-option
|
|
1113
|
+ v-for="(item,index) in options"
|
|
1114
|
+ :key="index"
|
|
1115
|
+ :label="item.name"
|
|
1116
|
+ :value="item.id">
|
|
1117
|
+ </el-option>
|
|
1118
|
+ </el-select>
|
|
1119
|
+ </el-form-item>
|
|
1120
|
+ <el-form-item label="责任人" label-width="110px" prop="creator">
|
|
1121
|
+ <el-select v-model="form.last_creator" placeholder="请选择">
|
|
1122
|
+ <el-option
|
|
1123
|
+ v-for="(item,index) in docList"
|
|
1124
|
+ :key="index"
|
|
1125
|
+ :label="item.user_name"
|
|
1126
|
+ :value="item.admin_user_id">
|
|
1127
|
+ </el-option>
|
|
1128
|
+ </el-select>
|
|
1129
|
+ </el-form-item>
|
|
1130
|
+
|
|
1131
|
+ </el-form>
|
|
1132
|
+ <div slot="footer" class="dialog-footer">
|
|
1133
|
+ <el-button @click="newDialogFormVisible = false">取 消</el-button>
|
|
1134
|
+ <el-button type="primary" @click="saveNewAirWayDisinfect('form')">保 存</el-button>
|
|
1135
|
+ </div>
|
|
1136
|
+ </el-dialog>
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+ <el-dialog
|
|
1140
|
+ class="centerDialog"
|
|
1141
|
+ width="1000px"
|
|
1142
|
+ title="编辑空气消毒表"
|
|
1143
|
+ :visible.sync="newEditDialogFormVisible">
|
|
1144
|
+ <el-form :model="form" ref="form" class="airForm" :rules="airRules">
|
|
1145
|
+ <div style="width: 100%;">
|
|
1146
|
+ <el-form-item label="创建日期" label-width="110px" required prop="record_date">
|
|
1147
|
+ <el-date-picker
|
|
1148
|
+ value-format="yyyy-MM-dd"
|
|
1149
|
+ v-model="form.record_date"
|
|
1150
|
+ type="date"
|
|
1151
|
+ placeholder="选择日期时间">
|
|
1152
|
+ </el-date-picker>
|
|
1153
|
+ </el-form-item>
|
|
1154
|
+
|
|
1155
|
+ <el-form-item label="消毒科室" label-width="110px" required prop="department">
|
|
1156
|
+ <el-select v-model="form.department" placeholder="请选择">
|
|
1157
|
+ <el-option
|
|
1158
|
+ v-for="(item,index) in disinfectionOfficeList"
|
|
1159
|
+ :key="index"
|
|
1160
|
+ :label="item.name"
|
|
1161
|
+ :value="item.name">
|
|
1162
|
+ </el-option>
|
|
1163
|
+ </el-select>
|
|
1164
|
+ </el-form-item>
|
|
1165
|
+ </div>
|
|
1166
|
+ <div class="form_title">
|
|
1167
|
+ <span>
|
|
1168
|
+ {{ form.department }}
|
|
1169
|
+ </span>
|
|
1170
|
+ </div>
|
|
1171
|
+ <el-form-item label="消毒液" label-width="110px">
|
|
1172
|
+
|
|
1173
|
+ <el-select v-model="form.first_disinfection_water" placeholder="请选择">
|
|
1174
|
+ <el-option
|
|
1175
|
+ v-for="(item,index) in disInfectionWaterList"
|
|
1176
|
+ :key="index"
|
|
1177
|
+ :label="item.name"
|
|
1178
|
+ :value="item.name">
|
|
1179
|
+ </el-option>
|
|
1180
|
+ </el-select>
|
|
1181
|
+ </el-form-item>
|
|
1182
|
+ <el-form-item label="消毒方式" label-width="110px">
|
|
1183
|
+
|
|
1184
|
+ <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
|
|
1185
|
+ <el-option
|
|
1186
|
+ v-for="(item,index) in DisinfectionMode"
|
|
1187
|
+ :key="index"
|
|
1188
|
+ :label="item.name"
|
|
1189
|
+ :value="item.name">
|
|
1190
|
+ </el-option>
|
|
1191
|
+ </el-select>
|
|
1192
|
+ </el-form-item>
|
|
1193
|
+ <el-form-item label="消毒时间(h)" label-width="110px">
|
|
1194
|
+ <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
|
|
1195
|
+ </el-form-item>
|
|
1196
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1197
|
+ <el-date-picker
|
|
1198
|
+ type="datetime"
|
|
1199
|
+ format="yyyy-MM-dd HH:mm"
|
|
1200
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1201
|
+ placeholder="选择时间"
|
|
1202
|
+ v-model="form.first_start_time"
|
|
1203
|
+ @change="firststartime"
|
|
1204
|
+ style="width:100%;"
|
|
1205
|
+ ></el-date-picker>
|
|
1206
|
+ </el-form-item>
|
|
1207
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1208
|
+ <el-date-picker
|
|
1209
|
+ type="datetime"
|
|
1210
|
+ format="yyyy-MM-dd HH:mm"
|
|
1211
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1212
|
+ placeholder="选择时间"
|
|
1213
|
+ v-model="form.first_end_time"
|
|
1214
|
+ @change="firstendtime"
|
|
1215
|
+ style="width:100%;"
|
|
1216
|
+ ></el-date-picker>
|
|
1217
|
+ </el-form-item>
|
|
1218
|
+ <el-form-item label="累计时间(h)" label-width="110px">
|
|
1219
|
+ <el-input v-model= "form.first_total_time" ></el-input>
|
|
1220
|
+ </el-form-item>
|
|
1221
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1222
|
+ <div>
|
|
1223
|
+ <el-radio v-model="form.first_is_check" label="1">是</el-radio>
|
|
1224
|
+ <el-radio v-model="form.first_is_check" label="2">否</el-radio>
|
|
1225
|
+ </div>
|
|
1226
|
+ </el-form-item>
|
|
1227
|
+ <el-form-item label="修改标志" label-width="110px">
|
|
1228
|
+ <el-select v-model="form.first_modifications" placeholder="请选择">
|
|
1229
|
+ <el-option
|
|
1230
|
+ v-for="(item,index) in options"
|
|
1231
|
+ :key="index"
|
|
1232
|
+ :label="item.name"
|
|
1233
|
+ :value="item.id">
|
|
1234
|
+ </el-option>
|
|
1235
|
+ </el-select>
|
|
1236
|
+ </el-form-item>
|
|
1237
|
+ <el-form-item label="责任人" label-width="110px">
|
|
1238
|
+ <el-select v-model="form.first_creator" placeholder="请选择">
|
|
1239
|
+ <el-option
|
|
1240
|
+ v-for="(item,index) in docList"
|
|
1241
|
+ :key="index"
|
|
1242
|
+ :label="item.user_name"
|
|
1243
|
+ :value="item.admin_user_id">
|
|
1244
|
+ </el-option>
|
|
1245
|
+ </el-select>
|
|
1246
|
+ </el-form-item>
|
|
1247
|
+
|
|
1248
|
+ <div class="form_title"><span >通风</span></div>
|
|
1249
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1250
|
+ <el-date-picker
|
|
1251
|
+ type="datetime"
|
|
1252
|
+ format="yyyy-MM-dd HH:mm"
|
|
1253
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1254
|
+ placeholder="选择时间"
|
|
1255
|
+ v-model="form.last_start_time"
|
|
1256
|
+ @change="laststarttime"
|
|
1257
|
+ style="width:100%;"
|
|
1258
|
+ ></el-date-picker>
|
|
1259
|
+ </el-form-item>
|
|
1260
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1261
|
+ <el-date-picker
|
|
1262
|
+ type="datetime"
|
|
1263
|
+ format="yyyy-MM-dd HH:mm"
|
|
1264
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1265
|
+ placeholder="选择时间"
|
|
1266
|
+ v-model="form.last_end_time"
|
|
1267
|
+ @change="lastendtime"
|
|
1268
|
+ style="width:100%;"
|
|
1269
|
+ ></el-date-picker>
|
|
1270
|
+ </el-form-item>
|
|
1271
|
+ <el-form-item label="累计时间(h)" label-width="110px">
|
|
1272
|
+ <el-input v-model= "form.last_total_time" ></el-input>
|
|
1273
|
+ </el-form-item>
|
|
1274
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1275
|
+ <div>
|
|
1276
|
+ <el-radio v-model="form.last_is_check" label="1">是</el-radio>
|
|
1277
|
+ <el-radio v-model="form.last_is_check" label="2">否</el-radio>
|
|
1278
|
+ </div>
|
|
1279
|
+ </el-form-item>
|
|
1280
|
+ <el-form-item label="修改标志" label-width="110px" prop="last_modifications">
|
|
1281
|
+ <el-select v-model="form.last_modifications" placeholder="请选择">
|
|
1282
|
+ <el-option
|
|
1283
|
+ v-for="(item,index) in options"
|
|
1284
|
+ :key="index"
|
|
1285
|
+ :label="item.name"
|
|
1286
|
+ :value="item.id">
|
|
1287
|
+ </el-option>
|
|
1288
|
+ </el-select>
|
|
1289
|
+ </el-form-item>
|
|
1290
|
+ <el-form-item label="责任人" label-width="110px" prop="creator">
|
|
1291
|
+ <el-select v-model="form.last_creator" placeholder="请选择">
|
|
1292
|
+ <el-option
|
|
1293
|
+ v-for="(item,index) in docList"
|
|
1294
|
+ :key="index"
|
|
1295
|
+ :label="item.user_name"
|
|
1296
|
+ :value="item.admin_user_id">
|
|
1297
|
+ </el-option>
|
|
1298
|
+ </el-select>
|
|
1299
|
+ </el-form-item>
|
|
1300
|
+
|
|
1301
|
+ </el-form>
|
|
1302
|
+ <div slot="footer" class="dialog-footer">
|
|
1303
|
+ <el-button @click="newEditDialogFormVisible = false">取 消</el-button>
|
|
1304
|
+ <el-button type="primary" @click="updateNewAirWayDisinfect('form')">保 存</el-button>
|
|
1305
|
+ </div>
|
|
1306
|
+ </el-dialog>
|
|
1307
|
+
|
|
1308
|
+ </div>
|
|
1309
|
+ </div>
|
|
1310
|
+ </template>
|
|
1311
|
+
|
|
1312
|
+ <script>
|
|
1313
|
+ import print from "print-js";
|
|
1314
|
+ import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
|
1315
|
+ import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateNewAirDisinfect,deleteNewAirDisInfect,getAirDisinfectLongTime,saveSetAirDisInfect,getSetAirDisInfectById,saveNewAirWayDisinfect,getNewAirWayDisinfectList,getAirDisinfectWayLongTime,getNewAirWayDisinfectByIdList,updateNewAirWayDisinfect,deleteNewAirWayDisInfect} from "@/api/device"
|
|
1316
|
+ import { uParseTime } from '@/utils/tools'
|
|
1317
|
+ const moment = require('moment')
|
|
1318
|
+ import { getManageMentDataConfig } from '@/utils/data'
|
|
1319
|
+ export default {
|
|
1320
|
+ name: 'airDisinfect',
|
|
1321
|
+ components: {
|
|
1322
|
+ BreadCrumb
|
|
1323
|
+ },
|
|
1324
|
+ data() {
|
|
1325
|
+ return {
|
|
1326
|
+ crumbs: [
|
|
1327
|
+ { path: false, name: '院感管理' },
|
|
1328
|
+ { path: false, name: '透析室空气消毒记录表' }
|
|
1329
|
+ ],
|
|
1330
|
+
|
|
1331
|
+ dialogFormVisible:false,
|
|
1332
|
+ editDialogFormVisible:false,
|
|
1333
|
+ newDialogFormVisible:false,
|
|
1334
|
+ newEditDialogFormVisible:false,
|
|
1335
|
+ setEditDialog:false,
|
|
1336
|
+ startvalue:'',
|
|
1337
|
+ endvalue:'',
|
|
1338
|
+ form: {
|
|
1339
|
+ id:0,
|
|
1340
|
+ record_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"), //创建日期
|
|
1341
|
+ first_disinfection_water:"",// 消毒液
|
|
1342
|
+ first_disinfection_methods:"",//消毒方式
|
|
1343
|
+ first_disinfection_time:'',//消毒时长
|
|
1344
|
+ first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
|
1345
|
+ first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
|
1346
|
+ first_total_time:"",//累计时间
|
|
1347
|
+ first_is_check:"1",//检验合格
|
|
1348
|
+ first_modifications:"",//修改标志
|
|
1349
|
+ first_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
1350
|
+
|
|
1351
|
+ sencond_disinfection_water:"",// 消毒液
|
|
1352
|
+ sencond_disinfection_methods:"",//消毒方式
|
|
1353
|
+ sencond_disinfection_time:"",//消毒时长
|
|
1354
|
+ sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
|
1355
|
+ sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
|
1356
|
+ sencond_total_time:"",//累计时间
|
|
1357
|
+ sencond_is_check:"1",//检验合格
|
|
1358
|
+ sencond_modifications:"",//修改标志
|
|
1359
|
+ sencond_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
1360
|
+
|
|
1361
|
+ third_disinfection_water:"",// 消毒液
|
|
1362
|
+ third_disinfection_methods:"",//消毒方式
|
|
1363
|
+ third_disinfection_time:'',//消毒时长
|
|
1364
|
+ third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
|
1365
|
+ third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
|
1366
|
+ third_total_time:"",//累计时间
|
|
1367
|
+ third_is_check:"1",//检验合格
|
|
1368
|
+ third_modifications:"",//修改标志
|
|
1369
|
+ third_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
1370
|
+
|
|
1371
|
+ last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
|
|
1372
|
+ last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
|
|
1373
|
+ last_disinfection_time:"",//消毒时长
|
|
1374
|
+ last_total_time:"",//累计时间
|
|
1375
|
+ last_is_check:"1",//检验合格
|
|
1376
|
+ last_modifications:"",//修改标志
|
|
1377
|
+ last_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
|
1378
|
+ department:"",
|
|
1379
|
+ },
|
|
1380
|
+ docList:[],
|
|
1381
|
+ options:[
|
|
1382
|
+ {id:1,name:"正常"},
|
|
1383
|
+ {id:2,name:"撤销"}
|
|
1384
|
+ ],
|
|
1385
|
+ airRules: {
|
|
1386
|
+ created_time:[{required:true,message:"请选择创建时间",trigger:"blur"}],
|
|
1387
|
+ start_time:[{required:true,message:"请选择开始时间",trigger:"blur"}],
|
|
1388
|
+ end_time:[{required:true,message:"请选择结束时间",trigger:"blur"}],
|
|
1389
|
+ department:[{required:true,message:"请选择消毒科室",trigger:'blur'}],
|
|
1390
|
+ },
|
|
1391
|
+ limit:10,
|
|
1392
|
+ page:1,
|
|
1393
|
+ total:0,
|
917
|
1394
|
tableData: [],
|
918
|
1395
|
hiddenShow:false,
|
|
1396
|
+ hiddenShowOne:false,
|
919
|
1397
|
// disInfectionWaterList:[
|
920
|
1398
|
// { id: 1, name: "0.22%季铵盐" },
|
921
|
1399
|
// { id: 2, name: "500mg/l含氯消毒剂" },
|
|
@@ -943,6 +1421,9 @@
|
943
|
1421
|
sencond_total_time:0,
|
944
|
1422
|
third_total_time:0,
|
945
|
1423
|
last_total_time:0,
|
|
1424
|
+ air_way:"2",
|
|
1425
|
+ disinfectionOfficeList:[],
|
|
1426
|
+ tableDataOne:[]
|
946
|
1427
|
}
|
947
|
1428
|
},
|
948
|
1429
|
created(){
|
|
@@ -957,8 +1438,14 @@
|
957
|
1438
|
for(let i=0;i<disinfection_methods.length;i++){
|
958
|
1439
|
this.DisinfectionMode.push(disinfection_methods[i])
|
959
|
1440
|
}
|
|
1441
|
+ var disinfection_offices = getManageMentDataConfig('management', 'disinfection_office')
|
|
1442
|
+ console.log("disinfection_offices",disinfection_offices)
|
|
1443
|
+ for(let i=0;i<disinfection_offices.length;i++){
|
|
1444
|
+ this.disinfectionOfficeList.push(disinfection_offices[i])
|
|
1445
|
+ }
|
960
|
1446
|
this.getAllDoctorList()
|
961
|
1447
|
this.getNewAirDisinfectList()
|
|
1448
|
+ this.getNewAirWayDisinfectList()
|
962
|
1449
|
var time=moment(this.form.first_start_time).format("HH:mm");
|
963
|
1450
|
|
964
|
1451
|
|
|
@@ -1019,7 +1506,6 @@
|
1019
|
1506
|
last_total_time +=parseFloat(list[i].last_total_time)
|
1020
|
1507
|
}
|
1021
|
1508
|
|
1022
|
|
-
|
1023
|
1509
|
this.form.first_total_time = ""
|
1024
|
1510
|
this.form.first_total_time = first_total_time
|
1025
|
1511
|
this.first_total_time = first_total_time
|
|
@@ -1035,9 +1521,36 @@
|
1035
|
1521
|
|
1036
|
1522
|
}
|
1037
|
1523
|
this.dialogFormVisible = true
|
|
1524
|
+
|
|
1525
|
+
|
1038
|
1526
|
}
|
1039
|
1527
|
})
|
1040
|
1528
|
},
|
|
1529
|
+ AddCardOne(){
|
|
1530
|
+ getAirDisinfectWayLongTime(this.form.department).then(response=>{
|
|
1531
|
+ if(response.data.state == 1){
|
|
1532
|
+ var list = response.data.data.list
|
|
1533
|
+
|
|
1534
|
+ var first_total_time = 0
|
|
1535
|
+
|
|
1536
|
+ var last_total_time = 0
|
|
1537
|
+ if(list!=null && list.length>0){
|
|
1538
|
+ for(let i=0;i<list.length;i++){
|
|
1539
|
+ first_total_time += parseFloat(list[i].first_total_time)
|
|
1540
|
+ last_total_time +=parseFloat(list[i].last_total_time)
|
|
1541
|
+ }
|
|
1542
|
+
|
|
1543
|
+ this.form.first_total_time = ""
|
|
1544
|
+ this.form.first_total_time = first_total_time
|
|
1545
|
+ this.first_total_time = first_total_time
|
|
1546
|
+ this.form.last_total_time =""
|
|
1547
|
+ this.form.last_total_time = last_total_time
|
|
1548
|
+ this.last_total_time = last_total_time
|
|
1549
|
+ }
|
|
1550
|
+ this.newDialogFormVisible = true
|
|
1551
|
+ }
|
|
1552
|
+ })
|
|
1553
|
+ },
|
1041
|
1554
|
handleSizeChange(val) {
|
1042
|
1555
|
this.limit = val;
|
1043
|
1556
|
this.getNewAirDisinfectList()
|
|
@@ -1046,12 +1559,22 @@
|
1046
|
1559
|
this.page = val;
|
1047
|
1560
|
this.getNewAirDisinfectList()
|
1048
|
1561
|
},
|
1049
|
|
- changeStartime(val){
|
1050
|
|
- this.getNewAirDisinfectList()
|
1051
|
|
- },
|
1052
|
|
- changeEndtime(){
|
1053
|
|
- this.getNewAirDisinfectList()
|
1054
|
|
- },
|
|
1562
|
+ handleSizeChangeOne(val) {
|
|
1563
|
+ this.limit = val;
|
|
1564
|
+ this.getNewAirWayDisinfectList()
|
|
1565
|
+ },
|
|
1566
|
+ handleCurrentChangeOne(val) {
|
|
1567
|
+ this.page = val;
|
|
1568
|
+ this.getNewAirWayDisinfectList()
|
|
1569
|
+ },
|
|
1570
|
+ changeStartime(val){
|
|
1571
|
+ this.getNewAirDisinfectList()
|
|
1572
|
+ this.getNewAirWayDisinfectList()
|
|
1573
|
+ },
|
|
1574
|
+ changeEndtime(){
|
|
1575
|
+ this.getNewAirDisinfectList()
|
|
1576
|
+ this.getNewAirWayDisinfectList()
|
|
1577
|
+ },
|
1055
|
1578
|
getAllDoctorList(){
|
1056
|
1579
|
getAllDoctorList().then(response=>{
|
1057
|
1580
|
if(response.data.state == 1){
|
|
@@ -1158,6 +1681,22 @@
|
1158
|
1681
|
}
|
1159
|
1682
|
})
|
1160
|
1683
|
},
|
|
1684
|
+ getNewAirWayDisinfectList(){
|
|
1685
|
+ var params = {
|
|
1686
|
+ start_time:this.startvalue,
|
|
1687
|
+ end_time:this.endvalue,
|
|
1688
|
+ limit:this.limit,
|
|
1689
|
+ page:this.page,
|
|
1690
|
+ }
|
|
1691
|
+ getNewAirWayDisinfectList(params).then(response=>{
|
|
1692
|
+ if(response.data.state == 1){
|
|
1693
|
+ var list = response.data.data.list
|
|
1694
|
+ this.tableDataOne = list
|
|
1695
|
+ var total = response.data.data.total
|
|
1696
|
+ this.total =total
|
|
1697
|
+ }
|
|
1698
|
+ })
|
|
1699
|
+ },
|
1161
|
1700
|
getTimes(time) {
|
1162
|
1701
|
return uParseTime(time, '{y}-{m}-{d}')
|
1163
|
1702
|
},
|
|
@@ -1221,6 +1760,34 @@
|
1221
|
1760
|
}
|
1222
|
1761
|
})
|
1223
|
1762
|
},
|
|
1763
|
+ handleEditOne(id){
|
|
1764
|
+ getNewAirWayDisinfectByIdList(id).then(response=>{
|
|
1765
|
+ if(response.data.state == 1){
|
|
1766
|
+ var list = response.data.data.list
|
|
1767
|
+ console.log("list",list)
|
|
1768
|
+ this.form.id = list.id
|
|
1769
|
+ this.form.record_date = this.getTimes(list.record_date)
|
|
1770
|
+ this.form.first_disinfection_water = list.first_disinfection_water?list.first_disinfection_water:""
|
|
1771
|
+ this.form.first_disinfection_methods = list.first_disinfection_methods?list.first_disinfection_methods:""
|
|
1772
|
+ this.form.first_disinfection_time = list.first_disinfection_time?list.first_disinfection_time:""
|
|
1773
|
+ this.form.first_start_time = this.getTimeThree(list.first_start_time)
|
|
1774
|
+ this.form.first_end_time = this.getTimeThree(list.first_end_time)
|
|
1775
|
+ this.form.first_total_time = list.first_total_time?list.first_total_time:""
|
|
1776
|
+ this.form.first_is_check = list.first_is_check.toString()
|
|
1777
|
+ this.form.first_modifications = list.first_modifications?list.first_modifications:""
|
|
1778
|
+ this.form.first_creator = list.first_creator
|
|
1779
|
+ this.form.last_start_time = this.getTimeThree(list.last_start_time)
|
|
1780
|
+ this.form.last_end_time = this.getTimeThree(list.last_end_time)
|
|
1781
|
+ this.form.last_total_time = list.last_total_time?list.last_total_time:""
|
|
1782
|
+ this.form.last_is_check = list.last_is_check.toString()
|
|
1783
|
+ this.form.last_modifications = list.last_modifications?list.last_modifications:""
|
|
1784
|
+ this.form.last_creator = list.last_creator
|
|
1785
|
+ this.form.department = list.department
|
|
1786
|
+ this.newEditDialogFormVisible = true
|
|
1787
|
+
|
|
1788
|
+ }
|
|
1789
|
+ })
|
|
1790
|
+ },
|
1224
|
1791
|
updateAirDisinfect(formName){
|
1225
|
1792
|
|
1226
|
1793
|
this.$refs[formName].validate((valid)=>{
|
|
@@ -1310,6 +1877,13 @@
|
1310
|
1877
|
}
|
1311
|
1878
|
})
|
1312
|
1879
|
},
|
|
1880
|
+ handleDeleteOne(id){
|
|
1881
|
+ deleteNewAirWayDisInfect(id).then(response=>{
|
|
1882
|
+ var msg = response.data.data.msg
|
|
1883
|
+ this.$message.success("删除成功!")
|
|
1884
|
+ this.getNewAirWayDisinfectList()
|
|
1885
|
+ })
|
|
1886
|
+ },
|
1313
|
1887
|
|
1314
|
1888
|
printCard() {
|
1315
|
1889
|
this.hiddenShow = true;
|
|
@@ -1328,6 +1902,25 @@
|
1328
|
1902
|
});
|
1329
|
1903
|
}, 1);
|
1330
|
1904
|
},
|
|
1905
|
+ printCardOne() {
|
|
1906
|
+
|
|
1907
|
+ this.hiddenShowOne = true;
|
|
1908
|
+ console.log("hiddenShowOne",this.hiddenShowOne)
|
|
1909
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
1910
|
+ this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
|
|
1911
|
+
|
|
1912
|
+ const style =
|
|
1913
|
+ "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
|
|
1914
|
+
|
|
1915
|
+ setTimeout(() => {
|
|
1916
|
+ printJS({
|
|
1917
|
+ printable: "print-card-info_one",
|
|
1918
|
+ type: "html",
|
|
1919
|
+ style: style,
|
|
1920
|
+ scanStyles: false
|
|
1921
|
+ });
|
|
1922
|
+ }, 1);
|
|
1923
|
+ },
|
1331
|
1924
|
setAdminUserES(id) {
|
1332
|
1925
|
|
1333
|
1926
|
if (id === 0) {
|
|
@@ -1394,6 +1987,122 @@
|
1394
|
1987
|
},
|
1395
|
1988
|
toSeach(){
|
1396
|
1989
|
this.getNewAirDisinfectList()
|
|
1990
|
+ this,getNewAirWayDisinfectList()
|
|
1991
|
+ },
|
|
1992
|
+ setAirDisInfect(){
|
|
1993
|
+ getSetAirDisInfectById().then(response=>{
|
|
1994
|
+ if(response.data.state == 1){
|
|
1995
|
+ var airset = response.data.data.airset
|
|
1996
|
+ if(airset!=undefined){
|
|
1997
|
+ this.air_way = airset.air_way.toString()
|
|
1998
|
+ this.setEditDialog = true
|
|
1999
|
+ }
|
|
2000
|
+
|
|
2001
|
+ }
|
|
2002
|
+ })
|
|
2003
|
+
|
|
2004
|
+ },
|
|
2005
|
+ saveSetAirDisInfect(){
|
|
2006
|
+ var params = {
|
|
2007
|
+ air_way:parseInt(this.air_way)
|
|
2008
|
+ }
|
|
2009
|
+ saveSetAirDisInfect(params).then(response=>{
|
|
2010
|
+ if(response.data.state == 1){
|
|
2011
|
+ var airSetting = response.data.data.airSetting
|
|
2012
|
+ this.$message.success("保存成功")
|
|
2013
|
+ this.setEditDialog = false
|
|
2014
|
+ }
|
|
2015
|
+ })
|
|
2016
|
+ },
|
|
2017
|
+
|
|
2018
|
+ saveNewAirWayDisinfect(formName){
|
|
2019
|
+ this.$refs[formName].validate((valid)=>{
|
|
2020
|
+ if(valid){
|
|
2021
|
+ if(this.form.first_is_check!=""){
|
|
2022
|
+ this.form.first_is_check = parseInt(this.form.first_is_check)
|
|
2023
|
+ }else{
|
|
2024
|
+ this.form.first_is_check = 0
|
|
2025
|
+ }
|
|
2026
|
+
|
|
2027
|
+ if(this.form.last_is_check!=""){
|
|
2028
|
+ this.form.last_is_check = parseInt(this.form.last_is_check)
|
|
2029
|
+ }else{
|
|
2030
|
+ this.form.last_is_check = 0
|
|
2031
|
+ }
|
|
2032
|
+
|
|
2033
|
+ if(this.form.first_modifications!=""){
|
|
2034
|
+ this.form.first_modifications = parseInt(this.form.first_modifications)
|
|
2035
|
+ }else{
|
|
2036
|
+ this.form.first_modifications =0
|
|
2037
|
+ }
|
|
2038
|
+
|
|
2039
|
+ if(this.form.last_modifications!=""){
|
|
2040
|
+ this.form.last_modifications = parseInt(this.form.last_modifications)
|
|
2041
|
+ }else{
|
|
2042
|
+ this.form.last_modifications= 0
|
|
2043
|
+ }
|
|
2044
|
+ this.form.first_total_time = this.form.first_total_time.toString()
|
|
2045
|
+ this.form.last_total_time = this.form.last_total_time.toString()
|
|
2046
|
+ console.log("this232322323",this.form)
|
|
2047
|
+ saveNewAirWayDisinfect(this.form).then(response=>{
|
|
2048
|
+ var disinfect = response.data.data.disinfect
|
|
2049
|
+ this.$message.success("保存成功!")
|
|
2050
|
+ this.newDialogFormVisible = false
|
|
2051
|
+ this.getNewAirWayDisinfectList()
|
|
2052
|
+ this.$refs[formName].resetFields();
|
|
2053
|
+ })
|
|
2054
|
+ }
|
|
2055
|
+ })
|
|
2056
|
+
|
|
2057
|
+ },
|
|
2058
|
+ updateNewAirWayDisinfect(formName){
|
|
2059
|
+ this.$refs[formName].validate((valid)=>{
|
|
2060
|
+ if(valid){
|
|
2061
|
+ if(this.form.first_is_check!=""){
|
|
2062
|
+ this.form.first_is_check = parseInt(this.form.first_is_check)
|
|
2063
|
+ }else{
|
|
2064
|
+ this.form.first_is_check = 0
|
|
2065
|
+ }
|
|
2066
|
+
|
|
2067
|
+ if(this.form.last_is_check!=""){
|
|
2068
|
+ this.form.last_is_check = parseInt(this.form.last_is_check)
|
|
2069
|
+ }else{
|
|
2070
|
+ this.form.last_is_check = 0
|
|
2071
|
+ }
|
|
2072
|
+
|
|
2073
|
+ if(this.form.first_modifications!=""){
|
|
2074
|
+ this.form.first_modifications = parseInt(this.form.first_modifications)
|
|
2075
|
+ }else{
|
|
2076
|
+ this.form.first_modifications =0
|
|
2077
|
+ }
|
|
2078
|
+
|
|
2079
|
+ if(this.form.last_modifications!=""){
|
|
2080
|
+ this.form.last_modifications = parseInt(this.form.last_modifications)
|
|
2081
|
+ }else{
|
|
2082
|
+ this.form.last_modifications= 0
|
|
2083
|
+ }
|
|
2084
|
+
|
|
2085
|
+ if( this.form.first_total_time > 0){
|
|
2086
|
+ this.form.first_total_time = this.form.first_total_time.toString()
|
|
2087
|
+ }
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+ if(this.form.last_total_time >0){
|
|
2091
|
+ this.form.last_total_time = this.form.last_total_time.toString()
|
|
2092
|
+ }
|
|
2093
|
+
|
|
2094
|
+ console.log("form23333333333333333wo",this.form)
|
|
2095
|
+ updateNewAirWayDisinfect(this.form).then(response=>{
|
|
2096
|
+ if(response.data.state == 1){
|
|
2097
|
+ var disinfect = response.data.data.disinfect
|
|
2098
|
+ this.newEditDialogFormVisible = false
|
|
2099
|
+ this.getNewAirWayDisinfectList()
|
|
2100
|
+ this.$refs[formName].resetFields()
|
|
2101
|
+ }
|
|
2102
|
+ })
|
|
2103
|
+ }
|
|
2104
|
+
|
|
2105
|
+ })
|
1397
|
2106
|
}
|
1398
|
2107
|
|
1399
|
2108
|
},
|