|
@@ -23,11 +23,13 @@
|
23
|
23
|
<el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
|
24
|
24
|
</div>
|
25
|
25
|
<div style="float:right;margin-bottom:10px;">
|
26
|
|
- <el-button type="primary" @click="printCard">打印</el-button>
|
27
|
|
- <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
|
28
|
|
-
|
|
26
|
+ <el-button type="primary" @click="toSetting">设置</el-button>
|
|
27
|
+ <el-button type="primary" @click="printCard" v-if="art_way_one==0 || art_way_one ==1">打印</el-button>
|
|
28
|
+ <el-button type="primary" @click="printCardOne" v-if=" art_way_one ==2">打印</el-button>
|
|
29
|
+ <el-button type="primary" @click="dialogFormVisible = true" v-if="art_way_one == 0 || art_way_one == 1">新增</el-button>
|
|
30
|
+ <el-button type="primary" @click="newdialogFormVisible = true" v-if="art_way_one == 2">新增</el-button>
|
29
|
31
|
</div>
|
30
|
|
- <div class="tab_air">
|
|
32
|
+ <div class="tab_air" v-if="art_way_one == 0 || art_way_one ==1">
|
31
|
33
|
<el-table :data="tableData" :fit="true" stripe>
|
32
|
34
|
<el-table-column prop="year" label="名称" width="150" align="center">
|
33
|
35
|
<el-table-column prop="year" label="消毒时间" align="center" width="150">
|
|
@@ -138,7 +140,72 @@
|
138
|
140
|
</el-pagination>
|
139
|
141
|
</div>
|
140
|
142
|
|
141
|
|
- <!-- 新增 -->
|
|
143
|
+ <div v-if="art_way_one == 2">
|
|
144
|
+ <el-table :data="tableDataOne" :fit="true" stripe style="width: 100%"
|
|
145
|
+ row-key="id"
|
|
146
|
+ border
|
|
147
|
+ lazy
|
|
148
|
+ :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
|
|
149
|
+
|
|
150
|
+ <el-table-column prop="year" label="消毒日期" align="center" width="150">
|
|
151
|
+ <template slot-scope="scope">
|
|
152
|
+ {{getTimes(scope.row.record_date) }}
|
|
153
|
+ </template>
|
|
154
|
+
|
|
155
|
+ </el-table-column>
|
|
156
|
+
|
|
157
|
+ <el-table-column prop="year" label="消毒物品" align="center" width="150">
|
|
158
|
+ <template slot-scope="scope">
|
|
159
|
+ {{scope.row.department }}
|
|
160
|
+ </template>
|
|
161
|
+
|
|
162
|
+ </el-table-column>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+ <el-table-column prop="fenopda" :label="'500mg/l含氯制剂'" align="center" min-width="60">
|
|
166
|
+ <template slot-scope="scope">
|
|
167
|
+ {{ getTimeTwo(scope.row.first_start_time) }} - {{ getTimeTwo(scope.row.first_end_time) }}
|
|
168
|
+
|
|
169
|
+ </template>
|
|
170
|
+ </el-table-column>
|
|
171
|
+ <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
|
|
172
|
+ <template slot-scope="scope">
|
|
173
|
+ {{getName(scope.row.first_creator)}}
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+ </template>
|
|
177
|
+ </el-table-column>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+ <el-table-column prop="city" label="操作" align="center" min-width="100">
|
|
182
|
+ <template slot-scope="scope">
|
|
183
|
+ <el-button
|
|
184
|
+ size="mini"
|
|
185
|
+ type="primary"
|
|
186
|
+ @click="handleEditOne(scope.row.id)">编辑</el-button>
|
|
187
|
+ <el-button
|
|
188
|
+ size="mini"
|
|
189
|
+ type="danger"
|
|
190
|
+ @click="handleDeleteOne(scope.row.id)">删除</el-button>
|
|
191
|
+ </template>
|
|
192
|
+ </el-table-column>
|
|
193
|
+ </el-table>
|
|
194
|
+ <el-pagination
|
|
195
|
+ :page-sizes="[10, 20, 50, 100]"
|
|
196
|
+ :page-size="10"
|
|
197
|
+ background
|
|
198
|
+ style="margin-top:20px;float: right"
|
|
199
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
200
|
+ :total="total"
|
|
201
|
+ @size-change="handleSizeChangeOne"
|
|
202
|
+ @current-change="handleCurrentChangeOne"
|
|
203
|
+ >
|
|
204
|
+
|
|
205
|
+ </el-pagination>
|
|
206
|
+ </div>
|
|
207
|
+
|
|
208
|
+ <!-- 新增 -->
|
142
|
209
|
<el-dialog
|
143
|
210
|
class="centerDialog"
|
144
|
211
|
width="1000px"
|
|
@@ -1054,7 +1121,284 @@
|
1054
|
1121
|
</div>
|
1055
|
1122
|
</div>
|
1056
|
1123
|
</div>
|
1057
|
|
-
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+ <div hidden="hiddenShowOne">
|
|
1127
|
+ <div id="print-card-info_one" v-show="hiddenShowOne">
|
|
1128
|
+ <div>
|
|
1129
|
+ <h1 style="text-align: center;">物表消毒登记</h1>
|
|
1130
|
+ <div>
|
|
1131
|
+ <table border="1" style="text-align: center;margin: auto;border-collapse: collapse;">
|
|
1132
|
+ <tr>
|
|
1133
|
+ <td>消毒时间</td>
|
|
1134
|
+ <td>消毒物品</td>
|
|
1135
|
+ <td>500mg/l含氯制剂</td>
|
|
1136
|
+ <td>负责人</td>
|
|
1137
|
+ </tr>
|
|
1138
|
+
|
|
1139
|
+ <tr v-for="(item,index) in tableDataOne" :key="index">
|
|
1140
|
+ <td>{{getTimes(item.record_date) }}</td>
|
|
1141
|
+ <td>{{item.department}}</td>
|
|
1142
|
+ <td>{{getTimeTwo( item.first_start_time)}}- {{getTimeTwo(item.first_end_time) }}</td>
|
|
1143
|
+ <td>
|
|
1144
|
+ <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
|
|
1145
|
+ {{getName(item.first_creator)}}
|
|
1146
|
+ </span>
|
|
1147
|
+ <span v-else>
|
|
1148
|
+ <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
|
|
1149
|
+ </span>
|
|
1150
|
+ </td>
|
|
1151
|
+ </tr>
|
|
1152
|
+ </table>
|
|
1153
|
+
|
|
1154
|
+ </div>
|
|
1155
|
+ </div>
|
|
1156
|
+ </div>
|
|
1157
|
+ </div>
|
|
1158
|
+
|
|
1159
|
+ <el-dialog
|
|
1160
|
+ title="请选择版本"
|
|
1161
|
+ :visible.sync="setEditDialog"
|
|
1162
|
+ width="60%">
|
|
1163
|
+ <span>
|
|
1164
|
+ <el-radio v-model="air_way" label="1">版本一</el-radio>
|
|
1165
|
+ <el-radio v-model="air_way" label="2">版本二</el-radio>
|
|
1166
|
+ </span>
|
|
1167
|
+ <span slot="footer" class="dialog-footer">
|
|
1168
|
+ <el-button @click="setEditDialog = false">取 消</el-button>
|
|
1169
|
+ <el-button type="primary" @click="saveSetObjectTable()">保 存</el-button>
|
|
1170
|
+ </span>
|
|
1171
|
+ </el-dialog>
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+ <el-dialog
|
|
1175
|
+ class="centerDialog"
|
|
1176
|
+ width="1000px"
|
|
1177
|
+ title="新增物表消毒表"
|
|
1178
|
+ :visible.sync="newdialogFormVisible">
|
|
1179
|
+ <el-form :model="form" ref="form" class="airForm" :rules="airRules">
|
|
1180
|
+ <div style="width: 100%;">
|
|
1181
|
+ <el-form-item label="创建日期" label-width="110px" required prop="record_date">
|
|
1182
|
+ <el-date-picker
|
|
1183
|
+ value-format="yyyy-MM-dd"
|
|
1184
|
+ v-model="form.record_date"
|
|
1185
|
+ type="date"
|
|
1186
|
+ placeholder="选择日期时间">
|
|
1187
|
+ </el-date-picker>
|
|
1188
|
+ </el-form-item>
|
|
1189
|
+
|
|
1190
|
+ <el-form-item label="消毒物品" label-width="110px" required prop="department">
|
|
1191
|
+ <el-select v-model="form.department" placeholder="请选择">
|
|
1192
|
+ <el-option
|
|
1193
|
+ v-for="(item,index) in disinfectionOfficeList"
|
|
1194
|
+ :key="index"
|
|
1195
|
+ :label="item.name"
|
|
1196
|
+ :value="item.name">
|
|
1197
|
+ </el-option>
|
|
1198
|
+ </el-select>
|
|
1199
|
+ </el-form-item>
|
|
1200
|
+ </div>
|
|
1201
|
+ <div class="form_title">
|
|
1202
|
+ <span >
|
|
1203
|
+ {{ form.department }}
|
|
1204
|
+ </span>
|
|
1205
|
+ </div>
|
|
1206
|
+ <el-form-item label="消毒方式" label-width="110px">
|
|
1207
|
+ <!-- <el-input v-model="form.first_disinfection_methods"></el-input> -->
|
|
1208
|
+ <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
|
|
1209
|
+ <el-option
|
|
1210
|
+ v-for="(item,index) in DisinfectionMode"
|
|
1211
|
+ :key="index"
|
|
1212
|
+ :label="item.name"
|
|
1213
|
+ :value="item.name">
|
|
1214
|
+ </el-option>
|
|
1215
|
+ </el-select>
|
|
1216
|
+ </el-form-item>
|
|
1217
|
+ <el-form-item label="消毒液" label-width="110px">
|
|
1218
|
+ <!-- <el-input v-model="form.first_disinfection_water"></el-input> -->
|
|
1219
|
+ <el-select v-model="form.first_disinfection_water" placeholder="请选择">
|
|
1220
|
+ <el-option
|
|
1221
|
+ v-for="(item,index) in disInfectionWaterList"
|
|
1222
|
+ :key="index"
|
|
1223
|
+ :label="item.name"
|
|
1224
|
+ :value="item.name">
|
|
1225
|
+ </el-option>
|
|
1226
|
+ </el-select>
|
|
1227
|
+ </el-form-item>
|
|
1228
|
+ <el-form-item label="消毒时间(h)" label-width="110px">
|
|
1229
|
+ <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
|
|
1230
|
+ </el-form-item>
|
|
1231
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1232
|
+ <el-date-picker
|
|
1233
|
+ type="datetime"
|
|
1234
|
+ format="yyyy-MM-dd HH:mm"
|
|
1235
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1236
|
+ placeholder="选择时间"
|
|
1237
|
+ v-model="form.first_start_time"
|
|
1238
|
+ @change="firststartime"
|
|
1239
|
+ style="width:100%;"
|
|
1240
|
+ ></el-date-picker>
|
|
1241
|
+ </el-form-item>
|
|
1242
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1243
|
+ <el-date-picker
|
|
1244
|
+ type="datetime"
|
|
1245
|
+ format="yyyy-MM-dd HH:mm"
|
|
1246
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1247
|
+ placeholder="选择时间"
|
|
1248
|
+ v-model="form.first_end_time"
|
|
1249
|
+ @change="firstendtime"
|
|
1250
|
+ style="width:100%;"
|
|
1251
|
+ ></el-date-picker>
|
|
1252
|
+ </el-form-item>
|
|
1253
|
+
|
|
1254
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1255
|
+ <div>
|
|
1256
|
+ <el-radio v-model="form.first_is_check" label="1">是</el-radio>
|
|
1257
|
+ <el-radio v-model="form.first_is_check" label="2">否</el-radio>
|
|
1258
|
+ </div>
|
|
1259
|
+ </el-form-item>
|
|
1260
|
+ <el-form-item label="修改标志" label-width="110px" >
|
|
1261
|
+ <el-select v-model="form.first_modifications" placeholder="请选择">
|
|
1262
|
+ <el-option
|
|
1263
|
+ v-for="(item,index) in options"
|
|
1264
|
+ :key="index"
|
|
1265
|
+ :label="item.name"
|
|
1266
|
+ :value="item.id">
|
|
1267
|
+ </el-option>
|
|
1268
|
+ </el-select>
|
|
1269
|
+ </el-form-item>
|
|
1270
|
+ <el-form-item label="责任人" label-width="110px">
|
|
1271
|
+ <el-select v-model="form.first_creator" placeholder="请选择">
|
|
1272
|
+ <el-option
|
|
1273
|
+ v-for="(item,index) in docList"
|
|
1274
|
+ :key="index"
|
|
1275
|
+ :label="item.user_name"
|
|
1276
|
+ :value="item.admin_user_id">
|
|
1277
|
+ </el-option>
|
|
1278
|
+ </el-select>
|
|
1279
|
+ </el-form-item>
|
|
1280
|
+
|
|
1281
|
+ </el-form>
|
|
1282
|
+ <div slot="footer" class="dialog-footer">
|
|
1283
|
+ <el-button @click="newdialogFormVisible = false">取 消</el-button>
|
|
1284
|
+ <el-button type="primary" @click="saveObjectWayTableDisinfect('form')">保 存</el-button>
|
|
1285
|
+ </div>
|
|
1286
|
+ </el-dialog>
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+ <el-dialog
|
|
1290
|
+ class="centerDialog"
|
|
1291
|
+ width="1000px"
|
|
1292
|
+ title="编辑物表消毒表"
|
|
1293
|
+ :visible.sync="editnewdialogFormVisible">
|
|
1294
|
+ <el-form :model="form" ref="form" class="airForm" :rules="airRules">
|
|
1295
|
+ <div style="width: 100%;">
|
|
1296
|
+ <el-form-item label="创建日期" label-width="110px" required prop="record_date">
|
|
1297
|
+ <el-date-picker
|
|
1298
|
+ value-format="yyyy-MM-dd"
|
|
1299
|
+ v-model="form.record_date"
|
|
1300
|
+ type="date"
|
|
1301
|
+ placeholder="选择日期时间">
|
|
1302
|
+ </el-date-picker>
|
|
1303
|
+ </el-form-item>
|
|
1304
|
+
|
|
1305
|
+ <el-form-item label="消毒物品" label-width="110px" required prop="department">
|
|
1306
|
+ <el-select v-model="form.department" placeholder="请选择">
|
|
1307
|
+ <el-option
|
|
1308
|
+ v-for="(item,index) in disinfectionOfficeList"
|
|
1309
|
+ :key="index"
|
|
1310
|
+ :label="item.name"
|
|
1311
|
+ :value="item.name">
|
|
1312
|
+ </el-option>
|
|
1313
|
+ </el-select>
|
|
1314
|
+ </el-form-item>
|
|
1315
|
+ </div>
|
|
1316
|
+ <div class="form_title">
|
|
1317
|
+ <span >
|
|
1318
|
+ {{ form.department }}
|
|
1319
|
+ </span>
|
|
1320
|
+ </div>
|
|
1321
|
+ <el-form-item label="消毒方式" label-width="110px">
|
|
1322
|
+ <!-- <el-input v-model="form.first_disinfection_methods"></el-input> -->
|
|
1323
|
+ <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
|
|
1324
|
+ <el-option
|
|
1325
|
+ v-for="(item,index) in DisinfectionMode"
|
|
1326
|
+ :key="index"
|
|
1327
|
+ :label="item.name"
|
|
1328
|
+ :value="item.name">
|
|
1329
|
+ </el-option>
|
|
1330
|
+ </el-select>
|
|
1331
|
+ </el-form-item>
|
|
1332
|
+ <el-form-item label="消毒液" label-width="110px">
|
|
1333
|
+ <!-- <el-input v-model="form.first_disinfection_water"></el-input> -->
|
|
1334
|
+ <el-select v-model="form.first_disinfection_water" placeholder="请选择">
|
|
1335
|
+ <el-option
|
|
1336
|
+ v-for="(item,index) in disInfectionWaterList"
|
|
1337
|
+ :key="index"
|
|
1338
|
+ :label="item.name"
|
|
1339
|
+ :value="item.name">
|
|
1340
|
+ </el-option>
|
|
1341
|
+ </el-select>
|
|
1342
|
+ </el-form-item>
|
|
1343
|
+ <el-form-item label="消毒时间(h)" label-width="110px">
|
|
1344
|
+ <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
|
|
1345
|
+ </el-form-item>
|
|
1346
|
+ <el-form-item label="开始时间" label-width="110px">
|
|
1347
|
+ <el-date-picker
|
|
1348
|
+ type="datetime"
|
|
1349
|
+ format="yyyy-MM-dd HH:mm"
|
|
1350
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1351
|
+ placeholder="选择时间"
|
|
1352
|
+ v-model="form.first_start_time"
|
|
1353
|
+ @change="firststartime"
|
|
1354
|
+ style="width:100%;"
|
|
1355
|
+ ></el-date-picker>
|
|
1356
|
+ </el-form-item>
|
|
1357
|
+ <el-form-item label="结束时间" label-width="110px">
|
|
1358
|
+ <el-date-picker
|
|
1359
|
+ type="datetime"
|
|
1360
|
+ format="yyyy-MM-dd HH:mm"
|
|
1361
|
+ value-format="yyyy-MM-dd HH:mm"
|
|
1362
|
+ placeholder="选择时间"
|
|
1363
|
+ v-model="form.first_end_time"
|
|
1364
|
+ @change="firstendtime"
|
|
1365
|
+ style="width:100%;"
|
|
1366
|
+ ></el-date-picker>
|
|
1367
|
+ </el-form-item>
|
|
1368
|
+
|
|
1369
|
+ <el-form-item label="检测合格" label-width="110px">
|
|
1370
|
+ <div>
|
|
1371
|
+ <el-radio v-model="form.first_is_check" label="1">是</el-radio>
|
|
1372
|
+ <el-radio v-model="form.first_is_check" label="2">否</el-radio>
|
|
1373
|
+ </div>
|
|
1374
|
+ </el-form-item>
|
|
1375
|
+ <el-form-item label="修改标志" label-width="110px" >
|
|
1376
|
+ <el-select v-model="form.first_modifications" placeholder="请选择">
|
|
1377
|
+ <el-option
|
|
1378
|
+ v-for="(item,index) in options"
|
|
1379
|
+ :key="index"
|
|
1380
|
+ :label="item.name"
|
|
1381
|
+ :value="item.id">
|
|
1382
|
+ </el-option>
|
|
1383
|
+ </el-select>
|
|
1384
|
+ </el-form-item>
|
|
1385
|
+ <el-form-item label="责任人" label-width="110px">
|
|
1386
|
+ <el-select v-model="form.first_creator" placeholder="请选择">
|
|
1387
|
+ <el-option
|
|
1388
|
+ v-for="(item,index) in docList"
|
|
1389
|
+ :key="index"
|
|
1390
|
+ :label="item.user_name"
|
|
1391
|
+ :value="item.admin_user_id">
|
|
1392
|
+ </el-option>
|
|
1393
|
+ </el-select>
|
|
1394
|
+ </el-form-item>
|
|
1395
|
+
|
|
1396
|
+ </el-form>
|
|
1397
|
+ <div slot="footer" class="dialog-footer">
|
|
1398
|
+ <el-button @click="editnewdialogFormVisible = false">取 消</el-button>
|
|
1399
|
+ <el-button type="primary" @click="updateObjectWayTableDisinfect('form')">保 存</el-button>
|
|
1400
|
+ </div>
|
|
1401
|
+ </el-dialog>
|
1058
|
1402
|
</div>
|
1059
|
1403
|
</div>
|
1060
|
1404
|
</template>
|
|
@@ -1067,7 +1411,14 @@
|
1067
|
1411
|
getObjectTableDisInfectList,
|
1068
|
1412
|
getObjectTableDisInfectByIdList,
|
1069
|
1413
|
updateObjectTableDisinfect,
|
1070
|
|
- deleteObjectTableDisinfect
|
|
1414
|
+ deleteObjectTableDisinfect,
|
|
1415
|
+ setObjectDisinfect,
|
|
1416
|
+ getObjectWayDisinfect,
|
|
1417
|
+ saveObjectWayTableDisinfect,
|
|
1418
|
+ getObjectTableDisInfectWayList,
|
|
1419
|
+ getObjectTableDisInfectWayByIdList,
|
|
1420
|
+ updateObjectWayTableDisinfect,
|
|
1421
|
+ deleteObjectTableWayDisinfect
|
1071
|
1422
|
} from "@/api/device"
|
1072
|
1423
|
import { getManageMentDataConfig } from '@/utils/data'
|
1073
|
1424
|
import { uParseTime } from '@/utils/tools'
|
|
@@ -1081,11 +1432,14 @@
|
1081
|
1432
|
return {
|
1082
|
1433
|
crumbs: [
|
1083
|
1434
|
{ path: false, name: '院感管理' },
|
1084
|
|
- { path: false, name: '透析室空气消毒记录表' }
|
|
1435
|
+ { path: false, name: '透析室物表消毒记录表' }
|
1085
|
1436
|
],
|
1086
|
1437
|
|
1087
|
1438
|
dialogFormVisible:false,
|
1088
|
1439
|
editDialogFormVisible:false,
|
|
1440
|
+ newdialogFormVisible:false,
|
|
1441
|
+ editnewdialogFormVisible:false,
|
|
1442
|
+ setEditDialog:false,
|
1089
|
1443
|
startvalue:'',
|
1090
|
1444
|
endvalue:'',
|
1091
|
1445
|
form: {
|
|
@@ -1140,7 +1494,7 @@
|
1140
|
1494
|
last_is_check:"1",//检验合格
|
1141
|
1495
|
last_modifications:"",//修改标志
|
1142
|
1496
|
last_creator:this.$store.getters.xt_user.user.id,//第一责任人
|
1143
|
|
-
|
|
1497
|
+ department:"",
|
1144
|
1498
|
},
|
1145
|
1499
|
// value1:'',
|
1146
|
1500
|
docList:[],
|
|
@@ -1173,23 +1527,36 @@
|
1173
|
1527
|
],
|
1174
|
1528
|
operators: [],
|
1175
|
1529
|
operatorMaps:{},
|
1176
|
|
-
|
|
1530
|
+ setEditDialog:false,
|
|
1531
|
+ air_way:"2",
|
|
1532
|
+ disinfectionOfficeList:[],
|
|
1533
|
+ tableDataOne:[],
|
|
1534
|
+ hiddenShowOne:false,
|
|
1535
|
+ art_way_one:0,
|
1177
|
1536
|
}
|
|
1537
|
+
|
1178
|
1538
|
},
|
1179
|
1539
|
created(){
|
1180
|
1540
|
var disinfection_fluid = getManageMentDataConfig('management', 'disinfection_fluid')
|
1181
|
|
- console.log("disinfection_fluid",disinfection_fluid)
|
|
1541
|
+
|
1182
|
1542
|
for(let i=0;i<disinfection_fluid.length;i++){
|
1183
|
1543
|
this.disInfectionWaterList.push(disinfection_fluid[i])
|
1184
|
1544
|
}
|
1185
|
1545
|
|
1186
|
1546
|
var disinfection_methods = getManageMentDataConfig('management', 'disinfection_methods')
|
1187
|
|
- console.log("disinfection_methods",disinfection_methods)
|
|
1547
|
+
|
1188
|
1548
|
for(let i=0;i<disinfection_methods.length;i++){
|
1189
|
1549
|
this.DisinfectionMode.push(disinfection_methods[i])
|
1190
|
1550
|
}
|
|
1551
|
+ var disinfection_offices = getManageMentDataConfig('management', 'disinfection_object')
|
|
1552
|
+
|
|
1553
|
+ for(let i=0;i<disinfection_offices.length;i++){
|
|
1554
|
+ this.disinfectionOfficeList.push(disinfection_offices[i])
|
|
1555
|
+ }
|
1191
|
1556
|
this.getAllDoctorList()
|
1192
|
1557
|
this.getObjectTableDisInfectList()
|
|
1558
|
+ this.getObjectTableDisInfectWayList()
|
|
1559
|
+ this.getObjectWayDisinfect()
|
1193
|
1560
|
},
|
1194
|
1561
|
computed:{
|
1195
|
1562
|
firstdisinfection_time (){
|
|
@@ -1244,6 +1611,23 @@
|
1244
|
1611
|
});
|
1245
|
1612
|
}, 1);
|
1246
|
1613
|
},
|
|
1614
|
+ printCardOne(){
|
|
1615
|
+ this.hiddenShowOne = true;
|
|
1616
|
+ var ptime = Math.round(new Date().getTime() / 1000);
|
|
1617
|
+ this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
|
|
1618
|
+
|
|
1619
|
+ const style =
|
|
1620
|
+ "@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}";
|
|
1621
|
+
|
|
1622
|
+ setTimeout(() => {
|
|
1623
|
+ printJS({
|
|
1624
|
+ printable: "print-card-info_one",
|
|
1625
|
+ type: "html",
|
|
1626
|
+ style: style,
|
|
1627
|
+ scanStyles: false
|
|
1628
|
+ });
|
|
1629
|
+ }, 1);
|
|
1630
|
+ },
|
1247
|
1631
|
getTimes(time) {
|
1248
|
1632
|
return uParseTime(time, '{y}-{m}-{d}')
|
1249
|
1633
|
},
|
|
@@ -1461,6 +1845,35 @@
|
1461
|
1845
|
}
|
1462
|
1846
|
})
|
1463
|
1847
|
},
|
|
1848
|
+ handleEditOne(id){
|
|
1849
|
+ getObjectTableDisInfectWayByIdList(id).then(response=>{
|
|
1850
|
+ var list = response.data.data.list
|
|
1851
|
+ console.log("list",list)
|
|
1852
|
+ this.form.id = list.id
|
|
1853
|
+ this.form.record_date = this.getTimes(list.record_date)
|
|
1854
|
+ this.form.first_disinfection_water = list.first_disinfection_water? list.first_disinfection_water:""
|
|
1855
|
+ this.form.first_disinfection_methods = list.first_disinfection_methods? list.first_disinfection_methods:""
|
|
1856
|
+ this.form.first_disinfection_time = list.first_disinfection_time?list.first_disinfection_time:""
|
|
1857
|
+ this.form.first_start_time = this.getTimeThree(list.first_start_time)
|
|
1858
|
+ this.form.first_end_time = this.getTimeThree(list.first_end_time)
|
|
1859
|
+ this.form.first_total_time = list.first_total_time?list.first_total_time:""
|
|
1860
|
+ this.form.first_is_check = list.first_is_check.toString()
|
|
1861
|
+ this.form.first_modifications = list.first_modifications?list.first_modifications:""
|
|
1862
|
+ this.form.first_creator = list.first_creator
|
|
1863
|
+
|
|
1864
|
+ this.form.last_start_time = this.getTimeThree(list.last_start_time)
|
|
1865
|
+ this.form.last_end_time = this.getTimeThree(list.last_end_time)
|
|
1866
|
+ this.form.last_total_time = list.last_total_time?list.last_total_time:""
|
|
1867
|
+ this.form.last_is_check = list.last_is_check.toString()
|
|
1868
|
+ this.form.last_modifications = list.last_modifications?list.last_modifications:""
|
|
1869
|
+ this.form.last_creator = list.last_creator
|
|
1870
|
+ this.form.last_disinfection_water = list.last_disinfection_water?list.last_disinfection_water:""
|
|
1871
|
+ this.form.last_disinfection_methods = list.last_disinfection_methods?list.last_disinfection_methods:""
|
|
1872
|
+ this.form.last_disinfection_time = list.last_disinfection_time?list.last_disinfection_time:""
|
|
1873
|
+ this.form.department = list.department
|
|
1874
|
+ this.editnewdialogFormVisible = true
|
|
1875
|
+ })
|
|
1876
|
+ },
|
1464
|
1877
|
updateObjectTableDisinfect(formName){
|
1465
|
1878
|
this.$refs[formName].validate((valid=>{
|
1466
|
1879
|
if(valid){
|
|
@@ -1536,6 +1949,47 @@
|
1536
|
1949
|
}
|
1537
|
1950
|
}))
|
1538
|
1951
|
},
|
|
1952
|
+ updateObjectWayTableDisinfect(formName){
|
|
1953
|
+ this.$refs[formName].validate((valid=>{
|
|
1954
|
+ if(valid){
|
|
1955
|
+ if(this.form.first_is_check!=""){
|
|
1956
|
+ this.form.first_is_check = parseInt(this.form.first_is_check)
|
|
1957
|
+ }else{
|
|
1958
|
+ this.form.first_is_check=0
|
|
1959
|
+ }
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+ if(this.form.last_is_check!=""){
|
|
1963
|
+ this.form.last_is_check = parseInt(this.form.last_is_check)
|
|
1964
|
+ }else{
|
|
1965
|
+ this.form.last_is_check = 0
|
|
1966
|
+ }
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+ if(this.form.first_modifications!=""){
|
|
1970
|
+ this.form.first_modifications = parseInt(this.form.first_modifications)
|
|
1971
|
+ }else{
|
|
1972
|
+ this.form.first_modifications=0
|
|
1973
|
+ }
|
|
1974
|
+
|
|
1975
|
+
|
|
1976
|
+ if(this.form.last_modifications!=""){
|
|
1977
|
+ this.form.last_modifications = parseInt(this.form.last_modifications)
|
|
1978
|
+ }else{
|
|
1979
|
+ this.form.last_modifications = 0
|
|
1980
|
+ }
|
|
1981
|
+ console.log("hhahdhfhahdf",this.form)
|
|
1982
|
+ updateObjectWayTableDisinfect(this.form).then(response=>{
|
|
1983
|
+ if(response.data.state == 1){
|
|
1984
|
+ var objectDisinfect = response.data.data.objectDisinfect
|
|
1985
|
+ this.$message.success("保存成功!")
|
|
1986
|
+ this.editnewdialogFormVisible = false
|
|
1987
|
+ this.getObjectTableDisInfectWayList()
|
|
1988
|
+ }
|
|
1989
|
+ })
|
|
1990
|
+ }
|
|
1991
|
+ }))
|
|
1992
|
+ },
|
1539
|
1993
|
handleDelete(id){
|
1540
|
1994
|
deleteObjectTableDisinfect(id).then(response=>{
|
1541
|
1995
|
if(response.data.state ==1){
|
|
@@ -1545,6 +1999,15 @@
|
1545
|
1999
|
}
|
1546
|
2000
|
})
|
1547
|
2001
|
},
|
|
2002
|
+ handleDeleteOne(id){
|
|
2003
|
+ deleteObjectTableWayDisinfect(id).then(response=>{
|
|
2004
|
+ if(response.data.state ==1){
|
|
2005
|
+ var msg = response.data.data.msg
|
|
2006
|
+ this.$message.success("删除成功!")
|
|
2007
|
+ this.getObjectTableDisInfectWayList()
|
|
2008
|
+ }
|
|
2009
|
+ })
|
|
2010
|
+ },
|
1548
|
2011
|
firststartime(val){
|
1549
|
2012
|
this.form.first_start_time = val
|
1550
|
2013
|
this.form.first_disinfection_time = this.firstdisinfection_time
|
|
@@ -1597,13 +2060,6 @@
|
1597
|
2060
|
}
|
1598
|
2061
|
}
|
1599
|
2062
|
return user_name
|
1600
|
|
- // if (id in this.operatorMaps) {
|
1601
|
|
-
|
1602
|
|
- // return this.operatorMaps[id].url
|
1603
|
|
-
|
1604
|
|
- // } else {
|
1605
|
|
- // return ''
|
1606
|
|
- // }
|
1607
|
2063
|
},
|
1608
|
2064
|
|
1609
|
2065
|
handleSizeChange(val) {
|
|
@@ -1614,9 +2070,118 @@
|
1614
|
2070
|
this.page = val;
|
1615
|
2071
|
this.getObjectTableDisInfectList()
|
1616
|
2072
|
},
|
|
2073
|
+ handleSizeChangeOne(val){
|
|
2074
|
+ this.limit = val;
|
|
2075
|
+ this.getObjectTableDisInfectWayList()
|
|
2076
|
+ },
|
|
2077
|
+ handleCurrentChangeOne(val){
|
|
2078
|
+ this.page = val;
|
|
2079
|
+ this.getObjectTableDisInfectWayList()
|
|
2080
|
+ },
|
1617
|
2081
|
toSeach(){
|
1618
|
2082
|
this.getObjectTableDisInfectList()
|
1619
|
|
- }
|
|
2083
|
+ this.getObjectTableDisInfectWayList()
|
|
2084
|
+ },
|
|
2085
|
+ toSetting(){
|
|
2086
|
+ getObjectWayDisinfect().then(response=>{
|
|
2087
|
+ if(response.data.state==1){
|
|
2088
|
+ var objctSet = response.data.data.disinfect
|
|
2089
|
+ if(objctSet!=undefined){
|
|
2090
|
+ this.art_way_one = objctSet.air_way.toString()
|
|
2091
|
+ }
|
|
2092
|
+ this.setEditDialog = true
|
|
2093
|
+
|
|
2094
|
+ }
|
|
2095
|
+ })
|
|
2096
|
+ },
|
|
2097
|
+ getObjectWayDisinfect(){
|
|
2098
|
+ getObjectWayDisinfect().then(response=>{
|
|
2099
|
+ if(response.data.state==1){
|
|
2100
|
+ var objctSet = response.data.data.disinfect
|
|
2101
|
+ if(objctSet!=undefined){
|
|
2102
|
+ this.art_way_one = objctSet.air_way
|
|
2103
|
+ }
|
|
2104
|
+ console.log("art_way_one23232322323",this.art_way_one)
|
|
2105
|
+
|
|
2106
|
+ }
|
|
2107
|
+ })
|
|
2108
|
+ },
|
|
2109
|
+ saveSetObjectTable(){
|
|
2110
|
+ var params = {
|
|
2111
|
+ air_way:parseInt(this.air_way)
|
|
2112
|
+ }
|
|
2113
|
+ setObjectDisinfect(params).then(response=>{
|
|
2114
|
+ if(response.data.state==1){
|
|
2115
|
+ var objctSet = response.data.data.objctSet
|
|
2116
|
+ this.setEditDialog = false
|
|
2117
|
+ this.getObjectWayDisinfect()
|
|
2118
|
+ }
|
|
2119
|
+ })
|
|
2120
|
+ },
|
|
2121
|
+ saveObjectWayTableDisinfect(formName){
|
|
2122
|
+ this.$refs[formName].validate((valid)=>{
|
|
2123
|
+ if(valid){
|
|
2124
|
+ if(this.form.first_is_check!=""){
|
|
2125
|
+ this.form.first_is_check = parseInt(this.form.first_is_check)
|
|
2126
|
+ }else{
|
|
2127
|
+ this.form.first_is_check=0
|
|
2128
|
+ }
|
|
2129
|
+
|
|
2130
|
+ if(this.form.first_modifications!=""){
|
|
2131
|
+ this.form.first_modifications = parseInt(this.form.first_modifications)
|
|
2132
|
+ }else{
|
|
2133
|
+ this.form.first_modifications=0
|
|
2134
|
+ }
|
|
2135
|
+
|
|
2136
|
+
|
|
2137
|
+ if(this.form.last_is_check!=""){
|
|
2138
|
+ this.form.last_is_check = parseInt(this.form.last_is_check)
|
|
2139
|
+ }else{
|
|
2140
|
+ this.form.last_is_check = 0
|
|
2141
|
+ }
|
|
2142
|
+
|
|
2143
|
+
|
|
2144
|
+
|
|
2145
|
+ if(this.form.last_modifications!=""){
|
|
2146
|
+ this.form.last_modifications = parseInt(this.form.last_modifications)
|
|
2147
|
+ }else{
|
|
2148
|
+ this.form.last_modifications = 0
|
|
2149
|
+ }
|
|
2150
|
+
|
|
2151
|
+ if(this.form.last_start_time == null){
|
|
2152
|
+ this.form.last_start_time = ""
|
|
2153
|
+ }
|
|
2154
|
+
|
|
2155
|
+ if(this.form.last_end_time == null){
|
|
2156
|
+ this.form.last_end_time = ""
|
|
2157
|
+ }
|
|
2158
|
+
|
|
2159
|
+ saveObjectWayTableDisinfect(this.form).then(response=>{
|
|
2160
|
+ if(response.data.state ==1){
|
|
2161
|
+ var objectDisinfect = response.data.data.objectDisinfect
|
|
2162
|
+ this.$message.success("保存成功!")
|
|
2163
|
+ this.newdialogFormVisible = false
|
|
2164
|
+ this.getObjectTableDisInfectWayList()
|
|
2165
|
+ }
|
|
2166
|
+ })
|
|
2167
|
+ }
|
|
2168
|
+ })
|
|
2169
|
+ },
|
|
2170
|
+ getObjectTableDisInfectWayList(){
|
|
2171
|
+ var params = {
|
|
2172
|
+ start_time:this.startvalue,
|
|
2173
|
+ end_time:this.endvalue,
|
|
2174
|
+ limit:this.limit,
|
|
2175
|
+ page:this.page,
|
|
2176
|
+ }
|
|
2177
|
+ getObjectTableDisInfectWayList(params).then(response=>{
|
|
2178
|
+ if(response.data.state == 1){
|
|
2179
|
+ var list = response.data.data.list
|
|
2180
|
+ this.tableDataOne = list
|
|
2181
|
+ this.total = response.data.data.total
|
|
2182
|
+ }
|
|
2183
|
+ })
|
|
2184
|
+ }
|
1620
|
2185
|
|
1621
|
2186
|
}
|
1622
|
2187
|
}
|