Преглед изворни кода

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 пре 1 година
родитељ
комит
def6325fd3

+ 135 - 0
src/api/device.js Прегледај датотеку

399
     method:"Get",
399
     method:"Get",
400
     params:params,
400
     params:params,
401
   })
401
   })
402
+}
403
+
404
+export function saveSetAirDisInfect(params){
405
+ 
406
+  return request({
407
+    url:"/api/manage/savesetairdisinfect",
408
+    method:"Get",
409
+    params:params,
410
+  })
411
+}
412
+
413
+export function getSetAirDisInfectById(params){
414
+
415
+   return request({
416
+    url:"/api/manage/getsetairinfectbyid",
417
+    method:"get",
418
+    params:params
419
+   })
420
+}
421
+
422
+export function saveNewAirWayDisinfect(data){
423
+
424
+  return request({
425
+    url:"/api/manage/savenewairwaydisinfect",
426
+    method:"post",
427
+    data:data,
428
+  })
429
+}
430
+
431
+export function getNewAirWayDisinfectList(params){
432
+  
433
+  return request({
434
+    url:"/api/manage/getnewairwaydisinfectlist",
435
+    method:"get",
436
+    params:params,
437
+  })
438
+}
439
+
440
+export function getAirDisinfectWayLongTime(department,params){
441
+ 
442
+  return request({
443
+    url:"/api/manage/getairdisinfectwaylongtime?department="+department,
444
+    method:"Get",
445
+    params:params
446
+  })
447
+}
448
+
449
+export function getNewAirWayDisinfectByIdList(id,params){
450
+
451
+  return request({
452
+    url:"/api/manage/getnewairwaydisinfectbyidlist?id="+id,
453
+    method:"get",
454
+    params:params
455
+  })
456
+}
457
+
458
+export function updateNewAirWayDisinfect(data){
459
+ 
460
+  return request({
461
+    url:"/api/manage/updatenewairwaydisinfect",
462
+    method:"post",
463
+    data:data,
464
+  })
465
+}
466
+
467
+export function deleteNewAirWayDisInfect(id,params){
468
+ 
469
+  return request({
470
+    url:"/api/manage/deletenewairwaydisinfect?id="+id,
471
+    method:"get",
472
+    params:params,
473
+  })
474
+}
475
+
476
+export function setObjectDisinfect(params){
477
+ 
478
+  return request({
479
+    url:"/api/manage/setobjectdisinfect",
480
+    method:"get",
481
+    params:params,
482
+  })
483
+}
484
+
485
+export function getObjectWayDisinfect(params){
486
+ 
487
+  return request({
488
+    url:"/api/manage/getobjectwaydisinfect",
489
+    method:"get",
490
+    params:params,
491
+  })
492
+}
493
+
494
+export function saveObjectWayTableDisinfect(data){
495
+ 
496
+  return request({
497
+    url:"/api/manage/saveobjectwaytabledisinfect",
498
+    method:"post",
499
+    data:data,
500
+  })
501
+}
502
+
503
+export function getObjectTableDisInfectWayList(params){
504
+  
505
+  return request({
506
+    url:"/api/manage/getobjcettabledisinfectwaylist",
507
+    method:"get",
508
+    params:params,
509
+  })
510
+}
511
+
512
+export function getObjectTableDisInfectWayByIdList(id,params){
513
+
514
+   return request({
515
+    url:"/api/manage/getobjecttabledisinfectwaybylist?id="+id,
516
+    method:"get",
517
+    params:params,
518
+   })
519
+}
520
+
521
+export function updateObjectWayTableDisinfect(data){
522
+ 
523
+  return request({
524
+    url:"/api/manage/updateobjectwaytabledisinfect",
525
+    method:"post",
526
+    data:data,
527
+  })
528
+}
529
+
530
+export function deleteObjectTableWayDisinfect(id,params){
531
+
532
+  return request({
533
+    url:"/api/manage/deleteobjecttablewaydisinfect?id="+id,
534
+    method:"get",
535
+    params:params,
536
+  })
402
 }
537
 }

+ 796 - 87
src/xt_pages/device/airDisinfectTwo.vue Прегледај датотеку

27
             <el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
27
             <el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
28
           </div>
28
           </div>
29
           <div style="float:right;margin-bottom:10px;">
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
           </div>
36
           </div>
34
-          <div class="tab_air">
37
+          <div class="tab_air" v-if="air_way ==0 ||air_way == 1">
35
             <el-table  :data="tableData" :fit="true" stripe>
38
             <el-table  :data="tableData" :fit="true" stripe>
36
                 <el-table-column prop="year" label="名称" width="150" align="center">
39
                 <el-table-column prop="year" label="名称" width="150" align="center">
37
                     <el-table-column prop="year" label="消毒时间" align="center" width="150">
40
                     <el-table-column prop="year" label="消毒时间" align="center" width="150">
129
           >
132
           >
130
 
133
 
131
           </el-pagination>
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
           <el-dialog
205
           <el-dialog
833
                 </div>
903
                 </div>
834
             </div>
904
             </div>
835
          </div>
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
          tableData: [],
1394
          tableData: [],
918
          hiddenShow:false,
1395
          hiddenShow:false,
1396
+         hiddenShowOne:false,
919
         //  disInfectionWaterList:[
1397
         //  disInfectionWaterList:[
920
         //  { id: 1, name: "0.22%季铵盐" },
1398
         //  { id: 1, name: "0.22%季铵盐" },
921
         //  { id: 2, name: "500mg/l含氯消毒剂" },
1399
         //  { id: 2, name: "500mg/l含氯消毒剂" },
943
          sencond_total_time:0,
1421
          sencond_total_time:0,
944
          third_total_time:0,
1422
          third_total_time:0,
945
          last_total_time:0,
1423
          last_total_time:0,
1424
+         air_way:"2",
1425
+         disinfectionOfficeList:[],
1426
+         tableDataOne:[]
946
         }
1427
         }
947
       },
1428
       },
948
       created(){
1429
       created(){
957
         for(let i=0;i<disinfection_methods.length;i++){
1438
         for(let i=0;i<disinfection_methods.length;i++){
958
           this.DisinfectionMode.push(disinfection_methods[i])
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
         this.getAllDoctorList()
1446
         this.getAllDoctorList()
961
         this.getNewAirDisinfectList()
1447
         this.getNewAirDisinfectList()
1448
+        this.getNewAirWayDisinfectList()
962
         var time=moment(this.form.first_start_time).format("HH:mm");
1449
         var time=moment(this.form.first_start_time).format("HH:mm");
963
         
1450
         
964
 
1451
 
1019
                  last_total_time +=parseFloat(list[i].last_total_time)
1506
                  last_total_time +=parseFloat(list[i].last_total_time)
1020
                }
1507
                }
1021
             
1508
             
1022
-           
1023
             this.form.first_total_time = ""
1509
             this.form.first_total_time = ""
1024
             this.form.first_total_time = first_total_time
1510
             this.form.first_total_time = first_total_time
1025
             this.first_total_time = first_total_time
1511
             this.first_total_time = first_total_time
1035
            
1521
            
1036
           }
1522
           }
1037
           this.dialogFormVisible =  true
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
       handleSizeChange(val) {
1554
       handleSizeChange(val) {
1042
         this.limit = val;
1555
         this.limit = val;
1043
         this.getNewAirDisinfectList()
1556
         this.getNewAirDisinfectList()
1046
         this.page = val;
1559
         this.page = val;
1047
         this.getNewAirDisinfectList()
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
         getAllDoctorList(){
1578
         getAllDoctorList(){
1056
           getAllDoctorList().then(response=>{
1579
           getAllDoctorList().then(response=>{
1057
             if(response.data.state == 1){
1580
             if(response.data.state == 1){
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
         getTimes(time) {
1700
         getTimes(time) {
1162
          return uParseTime(time, '{y}-{m}-{d}')
1701
          return uParseTime(time, '{y}-{m}-{d}')
1163
        },
1702
        },
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
        updateAirDisinfect(formName){
1791
        updateAirDisinfect(formName){
1225
 
1792
 
1226
          this.$refs[formName].validate((valid)=>{
1793
          this.$refs[formName].validate((valid)=>{
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
        printCard() {
1888
        printCard() {
1315
             this.hiddenShow = true;
1889
             this.hiddenShow = true;
1328
               });
1902
               });
1329
             }, 1);
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
          setAdminUserES(id) {
1924
          setAdminUserES(id) {
1332
            
1925
            
1333
             if (id === 0) {
1926
             if (id === 0) {
1394
         },
1987
         },
1395
         toSeach(){
1988
         toSeach(){
1396
           this.getNewAirDisinfectList()   
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
       },

+ 566 - 18
src/xt_pages/device/objectTableDisinfectTwo.vue Прегледај датотеку

23
             <el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
23
             <el-button type="primary" style="margin-left: 10px;" @click="toSeach">搜索</el-button>
24
           </div>
24
           </div>
25
           <div style="float:right;margin-bottom:10px;">
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="air_way==0 || air_way ==1">打印</el-button>
28
+            <el-button type="primary" @click="printCardOne" v-if=" air_way ==2">打印</el-button>
29
+            <el-button type="primary" @click="dialogFormVisible = true" v-if="air_way == 0 || air_way == 1">新增</el-button>
30
+            <el-button type="primary" @click="newdialogFormVisible = true" v-if="air_way == 2">新增</el-button>
29
           </div>
31
           </div>
30
-          <div class="tab_air">
32
+          <div class="tab_air" v-if="air_way == 0 || air_way ==1">
31
             <el-table  :data="tableData" :fit="true" stripe>
33
             <el-table  :data="tableData" :fit="true" stripe>
32
                 <el-table-column prop="year" label="名称" width="150" align="center">
34
                 <el-table-column prop="year" label="名称" width="150" align="center">
33
                     <el-table-column prop="year" label="消毒时间" align="center" width="150">
35
                     <el-table-column prop="year" label="消毒时间" align="center" width="150">
138
           </el-pagination>
140
           </el-pagination>
139
          </div>
141
          </div>
140
 
142
 
141
-            <!-- 新增 -->
143
+         <div  v-if="air_way == 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
           <el-dialog
209
           <el-dialog
143
           class="centerDialog"
210
           class="centerDialog"
144
           width="1000px"
211
           width="1000px"
1054
                 </div>
1121
                 </div>
1055
             </div>
1122
             </div>
1056
          </div>
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
       </div>
1402
       </div>
1059
     </div>
1403
     </div>
1060
   </template>
1404
   </template>
1067
         getObjectTableDisInfectList,
1411
         getObjectTableDisInfectList,
1068
         getObjectTableDisInfectByIdList,
1412
         getObjectTableDisInfectByIdList,
1069
         updateObjectTableDisinfect, 
1413
         updateObjectTableDisinfect, 
1070
-        deleteObjectTableDisinfect
1414
+        deleteObjectTableDisinfect,
1415
+        setObjectDisinfect,
1416
+        getObjectWayDisinfect,
1417
+        saveObjectWayTableDisinfect,
1418
+        getObjectTableDisInfectWayList,
1419
+        getObjectTableDisInfectWayByIdList,
1420
+        updateObjectWayTableDisinfect,
1421
+        deleteObjectTableWayDisinfect
1071
     } from "@/api/device"
1422
     } from "@/api/device"
1072
     import { getManageMentDataConfig } from '@/utils/data'
1423
     import { getManageMentDataConfig } from '@/utils/data'
1073
     import { uParseTime } from '@/utils/tools'
1424
     import { uParseTime } from '@/utils/tools'
1081
         return {
1432
         return {
1082
           crumbs: [
1433
           crumbs: [
1083
             { path: false, name: '院感管理' },
1434
             { path: false, name: '院感管理' },
1084
-            { path: false, name: '透析室空气消毒记录表' }
1435
+            { path: false, name: '透析室物表消毒记录表' }
1085
           ],
1436
           ],
1086
 
1437
 
1087
           dialogFormVisible:false,
1438
           dialogFormVisible:false,
1088
           editDialogFormVisible:false,
1439
           editDialogFormVisible:false,
1440
+          newdialogFormVisible:false,
1441
+          editnewdialogFormVisible:false,
1442
+          setEditDialog:false,
1089
           startvalue:'',
1443
           startvalue:'',
1090
           endvalue:'',
1444
           endvalue:'',
1091
           form: {
1445
           form: {
1140
             last_is_check:"1",//检验合格
1494
             last_is_check:"1",//检验合格
1141
             last_modifications:"",//修改标志
1495
             last_modifications:"",//修改标志
1142
             last_creator:this.$store.getters.xt_user.user.id,//第一责任人
1496
             last_creator:this.$store.getters.xt_user.user.id,//第一责任人
1143
-          
1497
+            department:"",
1144
           },
1498
           },
1145
         //   value1:'',
1499
         //   value1:'',
1146
           docList:[],
1500
           docList:[],
1173
          ],
1527
          ],
1174
          operators: [],
1528
          operators: [],
1175
          operatorMaps:{},
1529
          operatorMaps:{},
1176
-         
1530
+         setEditDialog:false,
1531
+         air_way:"2",
1532
+         disinfectionOfficeList:[],
1533
+         tableDataOne:[],
1534
+         hiddenShowOne:false,
1177
         }
1535
         }
1178
       },
1536
       },
1179
       created(){
1537
       created(){
1188
         for(let i=0;i<disinfection_methods.length;i++){
1546
         for(let i=0;i<disinfection_methods.length;i++){
1189
           this.DisinfectionMode.push(disinfection_methods[i])
1547
           this.DisinfectionMode.push(disinfection_methods[i])
1190
         }
1548
         }
1549
+        var  disinfection_offices = getManageMentDataConfig('management', 'disinfection_object')
1550
+        console.log("disinfection_offices",disinfection_offices)
1551
+        for(let i=0;i<disinfection_offices.length;i++){
1552
+          this.disinfectionOfficeList.push(disinfection_offices[i])
1553
+        }
1191
         this.getAllDoctorList()
1554
         this.getAllDoctorList()
1192
         this.getObjectTableDisInfectList()
1555
         this.getObjectTableDisInfectList()
1556
+        this.getObjectTableDisInfectWayList()
1193
       },
1557
       },
1194
       computed:{
1558
       computed:{
1195
         firstdisinfection_time (){
1559
         firstdisinfection_time (){
1244
             });
1608
             });
1245
         }, 1);
1609
         }, 1);
1246
        },
1610
        },
1611
+       printCardOne(){
1612
+        this.hiddenShowOne = true;
1613
+        var ptime = Math.round(new Date().getTime() / 1000);
1614
+        this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1615
+
1616
+        const style =
1617
+            "@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}";
1618
+
1619
+        setTimeout(() => {
1620
+            printJS({
1621
+            printable: "print-card-info_one",
1622
+            type: "html",
1623
+            style: style,
1624
+            scanStyles: false
1625
+            });
1626
+        }, 1);
1627
+       },
1247
        getTimes(time) {
1628
        getTimes(time) {
1248
          return uParseTime(time, '{y}-{m}-{d}')
1629
          return uParseTime(time, '{y}-{m}-{d}')
1249
        },
1630
        },
1461
             }
1842
             }
1462
           })
1843
           })
1463
         },
1844
         },
1845
+        handleEditOne(id){
1846
+            getObjectTableDisInfectWayByIdList(id).then(response=>{
1847
+                var list = response.data.data.list
1848
+              console.log("list",list)
1849
+              this.form.id = list.id
1850
+              this.form.record_date = this.getTimes(list.record_date)
1851
+              this.form.first_disinfection_water = list.first_disinfection_water? list.first_disinfection_water:""
1852
+              this.form.first_disinfection_methods = list.first_disinfection_methods? list.first_disinfection_methods:""
1853
+              this.form.first_disinfection_time = list.first_disinfection_time?list.first_disinfection_time:""
1854
+              this.form.first_start_time = this.getTimeThree(list.first_start_time)
1855
+              this.form.first_end_time = this.getTimeThree(list.first_end_time)
1856
+              this.form.first_total_time = list.first_total_time?list.first_total_time:""
1857
+              this.form.first_is_check = list.first_is_check.toString()
1858
+              this.form.first_modifications = list.first_modifications?list.first_modifications:""
1859
+              this.form.first_creator = list.first_creator
1860
+
1861
+              this.form.last_start_time = this.getTimeThree(list.last_start_time)
1862
+              this.form.last_end_time = this.getTimeThree(list.last_end_time)
1863
+              this.form.last_total_time = list.last_total_time?list.last_total_time:""
1864
+              this.form.last_is_check = list.last_is_check.toString()
1865
+              this.form.last_modifications = list.last_modifications?list.last_modifications:""
1866
+              this.form.last_creator = list.last_creator
1867
+              this.form.last_disinfection_water = list.last_disinfection_water?list.last_disinfection_water:""
1868
+              this.form.last_disinfection_methods = list.last_disinfection_methods?list.last_disinfection_methods:""
1869
+              this.form.last_disinfection_time = list.last_disinfection_time?list.last_disinfection_time:""
1870
+              this.form.department = list.department
1871
+              this.editnewdialogFormVisible = true
1872
+            })
1873
+        },
1464
         updateObjectTableDisinfect(formName){
1874
         updateObjectTableDisinfect(formName){
1465
           this.$refs[formName].validate((valid=>{
1875
           this.$refs[formName].validate((valid=>{
1466
             if(valid){
1876
             if(valid){
1536
             }
1946
             }
1537
           }))
1947
           }))
1538
         },
1948
         },
1949
+        updateObjectWayTableDisinfect(formName){
1950
+          this.$refs[formName].validate((valid=>{
1951
+            if(valid){
1952
+                if(this.form.first_is_check!=""){
1953
+                  this.form.first_is_check = parseInt(this.form.first_is_check) 
1954
+                }else{
1955
+                    this.form.first_is_check=0
1956
+                }
1957
+
1958
+              
1959
+                if(this.form.last_is_check!=""){
1960
+                    this.form.last_is_check = parseInt(this.form.last_is_check)
1961
+                }else{
1962
+                    this.form.last_is_check = 0
1963
+                }
1964
+
1965
+
1966
+                if(this.form.first_modifications!=""){
1967
+                  this.form.first_modifications = parseInt(this.form.first_modifications) 
1968
+                }else{
1969
+                    this.form.first_modifications=0
1970
+                }
1971
+
1972
+               
1973
+                if(this.form.last_modifications!=""){
1974
+                    this.form.last_modifications = parseInt(this.form.last_modifications)
1975
+                }else{
1976
+                    this.form.last_modifications = 0
1977
+                }
1978
+                console.log("hhahdhfhahdf",this.form)
1979
+                updateObjectWayTableDisinfect(this.form).then(response=>{
1980
+                 if(response.data.state == 1){
1981
+                   var objectDisinfect =  response.data.data.objectDisinfect
1982
+                   this.$message.success("保存成功!")
1983
+                   this.editnewdialogFormVisible = false
1984
+                   this.getObjectTableDisInfectWayList()
1985
+                 }
1986
+              })
1987
+            }
1988
+          }))
1989
+        },
1539
         handleDelete(id){
1990
         handleDelete(id){
1540
           deleteObjectTableDisinfect(id).then(response=>{
1991
           deleteObjectTableDisinfect(id).then(response=>{
1541
             if(response.data.state ==1){
1992
             if(response.data.state ==1){
1545
             }
1996
             }
1546
           })
1997
           })
1547
         },
1998
         },
1999
+        handleDeleteOne(id){
2000
+          deleteObjectTableWayDisinfect(id).then(response=>{
2001
+            if(response.data.state ==1){
2002
+              var msg = response.data.data.msg
2003
+              this.$message.success("删除成功!")
2004
+              this.getObjectTableDisInfectWayList()
2005
+            }
2006
+          })
2007
+        },
1548
         firststartime(val){
2008
         firststartime(val){
1549
             this.form.first_start_time = val
2009
             this.form.first_start_time = val
1550
             this.form.first_disinfection_time = this.firstdisinfection_time
2010
             this.form.first_disinfection_time = this.firstdisinfection_time
1597
               }
2057
               }
1598
            }
2058
            }
1599
            return user_name
2059
            return user_name
1600
-           // if (id in this.operatorMaps) {
1601
-
1602
-           // return this.operatorMaps[id].url
1603
-
1604
-           // } else {
1605
-           // return ''
1606
-           // }
1607
        },
2060
        },
1608
 
2061
 
1609
        handleSizeChange(val) {
2062
        handleSizeChange(val) {
1614
         this.page = val;
2067
         this.page = val;
1615
         this.getObjectTableDisInfectList()
2068
         this.getObjectTableDisInfectList()
1616
       },
2069
       },
2070
+      handleSizeChangeOne(val){
2071
+        this.limit = val;
2072
+        this.getObjectTableDisInfectWayList()
2073
+      },
2074
+      handleCurrentChangeOne(val){
2075
+        this.page = val;
2076
+        this.getObjectTableDisInfectWayList()
2077
+      },
1617
       toSeach(){
2078
       toSeach(){
1618
         this.getObjectTableDisInfectList()
2079
         this.getObjectTableDisInfectList()
1619
-      }
2080
+        this.getObjectTableDisInfectWayList()
2081
+      },
2082
+      toSetting(){
2083
+        getObjectWayDisinfect().then(response=>{
2084
+           if(response.data.state==1){
2085
+             var objctSet = response.data.data.objctSet
2086
+             if(objctSet!=undefined){
2087
+                this.air_way = objctSet.air_way.toString()
2088
+             }
2089
+             this.setEditDialog = true
2090
+           }
2091
+        })
2092
+      },
2093
+      saveSetObjectTable(){
2094
+         var params = {
2095
+            air_way:parseInt(this.air_way)
2096
+         }
2097
+        setObjectDisinfect(params).then(response=>{
2098
+           if(response.data.state==1){
2099
+             var objctSet = response.data.data.objctSet
2100
+             this.setEditDialog = false
2101
+           }
2102
+        })
2103
+      },
2104
+      saveObjectWayTableDisinfect(formName){
2105
+        this.$refs[formName].validate((valid)=>{
2106
+            if(valid){
2107
+                if(this.form.first_is_check!=""){
2108
+                  this.form.first_is_check = parseInt(this.form.first_is_check) 
2109
+                }else{
2110
+                    this.form.first_is_check=0
2111
+                }
2112
+
2113
+                if(this.form.first_modifications!=""){
2114
+                  this.form.first_modifications = parseInt(this.form.first_modifications) 
2115
+                }else{
2116
+                    this.form.first_modifications=0
2117
+                }
2118
+
2119
+
2120
+                if(this.form.last_is_check!=""){
2121
+                    this.form.last_is_check = parseInt(this.form.last_is_check)
2122
+                }else{
2123
+                    this.form.last_is_check = 0
2124
+                }
2125
+
2126
+              
2127
+
2128
+                if(this.form.last_modifications!=""){
2129
+                    this.form.last_modifications = parseInt(this.form.last_modifications)
2130
+                }else{
2131
+                    this.form.last_modifications = 0
2132
+                }
2133
+
2134
+                if(this.form.last_start_time == null){
2135
+                   this.form.last_start_time = ""
2136
+                }
2137
+
2138
+                if(this.form.last_end_time == null){
2139
+                   this.form.last_end_time = ""
2140
+                }
2141
+              
2142
+              saveObjectWayTableDisinfect(this.form).then(response=>{
2143
+                if(response.data.state ==1){
2144
+                    var objectDisinfect =  response.data.data.objectDisinfect
2145
+                   this.$message.success("保存成功!")
2146
+                   this.newdialogFormVisible = false
2147
+                   this.getObjectTableDisInfectWayList()
2148
+                }
2149
+              })
2150
+            }
2151
+        })
2152
+      },
2153
+      getObjectTableDisInfectWayList(){
2154
+        var params = {
2155
+                start_time:this.startvalue,
2156
+                end_time:this.endvalue,
2157
+                limit:this.limit,
2158
+                page:this.page,
2159
+             }
2160
+             getObjectTableDisInfectWayList(params).then(response=>{
2161
+              if(response.data.state == 1){
2162
+                var list = response.data.data.list
2163
+                this.tableDataOne = list
2164
+                this.total = response.data.data.total
2165
+              }
2166
+            })  
2167
+       }
1620
         
2168
         
1621
       }
2169
       }
1622
     }
2170
     }

+ 14 - 14
src/xt_pages/hospitalStation/statementTemplate/printOne.vue Прегледај датотеку

145
       <tr>
145
       <tr>
146
         <td>床位费</td>
146
         <td>床位费</td>
147
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
147
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
148
-        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
148
+        <td style="text-align:right;padding-right:10px;">{{(info.bed_cost_self_total + info.bedSelfTotal).toFixed(2)}}</td>
149
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
149
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
150
         <td>西成药</td>
150
         <td>西成药</td>
151
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
151
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
152
-        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
152
+        <td style="text-align:right;padding-right:10px;">{{(info.western_medicine_cost_self_total + info.westernMedicineSelfTotal).toFixed(2)}}</td>
153
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
153
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
154
       </tr>
154
       </tr>
155
       <tr>
155
       <tr>
160
         <td>中成药</td>
160
         <td>中成药</td>
161
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
161
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
162
         </td>
162
         </td>
163
-        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
163
+        <td style="text-align:right;padding-right:10px;">{{(info.chinese_traditional_medicine_cost_self_total + info.chineseTraditionalSelfTotal).toFixed(2)}}</td>
164
         <td colspan="2" style="text-align:right;padding-right:10px;">
164
         <td colspan="2" style="text-align:right;padding-right:10px;">
165
           {{info.chinese_traditional_medicine_cost_part_self_total}}
165
           {{info.chinese_traditional_medicine_cost_part_self_total}}
166
         </td>
166
         </td>
172
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
172
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
173
         <td>检查费</td>
173
         <td>检查费</td>
174
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
174
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
175
-        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
175
+        <td style="text-align:right;padding-right:10px;">{{(info.check_cost_self_total + info.checkSelfTotal).toFixed(2)}}</td>
176
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
176
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
177
       </tr>
177
       </tr>
178
       <tr>
178
       <tr>
179
         <td>治疗费</td>
179
         <td>治疗费</td>
180
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
180
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
181
-        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
181
+        <td style="text-align:right;padding-right:10px;">{{(info.treat_cost_self_total + info.treatSelfTotal).toFixed(2)}}</td>
182
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
182
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
183
         <td>放射费</td>
183
         <td>放射费</td>
184
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
184
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
188
       <tr>
188
       <tr>
189
         <td>手术费</td>
189
         <td>手术费</td>
190
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
190
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
191
-        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
191
+        <td style="text-align:right;padding-right:10px;">{{(info.operation_cost_self_total + info.operationSelfTotal).toFixed(2)}}</td>
192
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
192
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
193
         <td>化验费</td>
193
         <td>化验费</td>
194
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
194
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
195
-        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
195
+        <td style="text-align:right;padding-right:10px;">{{(info.laboratory_cost_self_total + info.laboratorySelfTotal).toFixed(2)}}</td>
196
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
196
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
197
       </tr>
197
       </tr>
198
       <tr>
198
       <tr>
208
       <tr>
208
       <tr>
209
         <td>其他</td>
209
         <td>其他</td>
210
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
210
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
211
-        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
211
+        <td style="text-align:right;padding-right:10px;">{{(info.other_cost_self_total + info.otherSelfTotal).toFixed(2)}}</td>
212
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
212
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
213
         <td>麻醉费</td>
213
         <td>麻醉费</td>
214
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
214
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
218
       <tr>
218
       <tr>
219
         <td>材料费</td>
219
         <td>材料费</td>
220
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
220
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
221
-        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
221
+        <td style="text-align:right;padding-right:10px;">{{(info.material_cost_self_total + info.materialSelfTotal).toFixed(2)}}</td>
222
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
222
         <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
223
         <td>特殊检查费</td>
223
         <td>特殊检查费</td>
224
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
224
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
243
           parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
243
           parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
244
           parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
244
           parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
245
         </td>
245
         </td>
246
-        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
247
-          parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
248
-          parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
249
-          parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
250
-          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
246
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+parseFloat(info.bedSelfTotal)+
247
+          parseFloat(info.operation_cost_self_total)+parseFloat(info.operationSelfTotal) + parseFloat(info.other_cost_self_total) +parseFloat(info.otherSelfTotal)+
248
+          parseFloat(info.material_cost_self_total) + parseFloat(info.materialSelfTotal)  + parseFloat(info.western_medicine_cost_self_total) + parseFloat(info.westernMedicineSelfTotal) +
249
+          parseFloat(info.chinese_traditional_medicine_cost_self_total)  +  parseFloat(info.chineseTraditionalSelfTotal)  + parseFloat(info.check_cost_self_total) + parseFloat(info.checkSelfTotal) +
250
+          parseFloat(info.laboratory_cost_self_total) + parseFloat(info.laboratorySelfTotal)  + parseFloat(info.treat_cost_self_total) +parseFloat(info.treatSelfTotal) ).toFixed(2)}}
251
         </td>
251
         </td>
252
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
252
         <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
253
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
253
           parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +

+ 5 - 5
src/xt_pages/outpatientCharges/invoicePrint.vue Прегледај датотеку

10
         type="primary"
10
         type="primary"
11
       >打印</el-button>
11
       >打印</el-button>
12
     </template>
12
     </template>
13
-    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 0 && org_id != 10485 && org_id != 10375"><!---->
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 10485 && org_id != 10375"><!---->
14
         <div class='dialysisPage'>
14
         <div class='dialysisPage'>
15
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
-            <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
17
-            <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
15
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
16
+            <printOne v-if="org_id != 10088 &&  org_id != 0 " :paramsObj="invoiceParams"></printOne>
17
+            <printThree v-if="org_id == 10088 || org_id == 0" :paramsObj="invoiceParams"></printThree>
18
           </div>
18
           </div>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
27
         </div>
27
         </div>
28
     </div>
28
     </div>
29
 
29
 
30
-    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485  || org_id == 0">
30
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485">
31
       <div class='dialysisPage'>
31
       <div class='dialysisPage'>
32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
32
         <print-eleven :paramsObj="invoiceParams"></print-eleven>
33
       </div>
33
       </div>

+ 3 - 4
src/xt_pages/outpatientCharges/listTemplate/printOne.vue Прегледај датотеку

38
             </tr>
38
             </tr>
39
         </table>
39
         </table>
40
         <div class="tableBottom">
40
         <div class="tableBottom">
41
-            <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
-            <div class="tableBottomOne">制表日期:{{ getNowTime()}}</div>
43
-            <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
41
+          <div class="tableBottomOne">制表人:{{admin.user_name}}</div>
42
+          <div class="tableBottomOne" v-if="$store.getters.xt_user.org.id != 10318">制表日期:{{ getNowTime()}}</div>
43
+          <div class="tableBottomOne">总费用:{{order.medfee_sumamt}}元</div>
44
           <div class="tableBottomOne">基金总额:{{order.fund_pay_sumamt}}元</div>
44
           <div class="tableBottomOne">基金总额:{{order.fund_pay_sumamt}}元</div>
45
           <div class="tableBottomOne">统筹支付:{{order.hifp_pay}}元</div>
45
           <div class="tableBottomOne">统筹支付:{{order.hifp_pay}}元</div>
46
           <div class="tableBottomOne">医疗救助:{{order.maf_pay}}元</div>
46
           <div class="tableBottomOne">医疗救助:{{order.maf_pay}}元</div>
47
           <div class="tableBottomOne">医保报销:{{order.fund_pay_sumamt}}元</div>
47
           <div class="tableBottomOne">医保报销:{{order.fund_pay_sumamt}}元</div>
48
           <div class="tableBottomOne">个人支付:{{order.psn_cash_pay}}元</div>
48
           <div class="tableBottomOne">个人支付:{{order.psn_cash_pay}}元</div>
49
-
50
         </div>
49
         </div>
51
         </div>
50
         </div>
52
     </div>
51
     </div>

+ 2 - 2
src/xt_pages/outpatientCharges/statementTemplate/printeEleven.vue Прегледај датотеку

86
                 <div style="width: 6.7%;padding: 5px;text-align: center;">{{subItem.count}}</div>
86
                 <div style="width: 6.7%;padding: 5px;text-align: center;">{{subItem.count}}</div>
87
                 <div style="width: 8.1%;padding: 5px;text-align: center;">{{subItem.price}}</div>
87
                 <div style="width: 8.1%;padding: 5px;text-align: center;">{{subItem.price}}</div>
88
                 <div style="width: 8.1%;padding: 5px;text-align: center;">{{subItem.total_price}}</div>
88
                 <div style="width: 8.1%;padding: 5px;text-align: center;">{{subItem.total_price}}</div>
89
-                <!-- <div style="width: 10.1%;padding: 5px;"></div> -->
90
-                <div style="width: 10.1%;padding: 5px;text-align: center;">{{subItem.psn_pay}}</div>
89
+                 <div style="width: 10.1%;padding: 5px;"></div>
90
+<!--/*                <div style="width: 10.1%;padding: 5px;text-align: center;">{{subItem.psn_pay}}</div>*/-->
91
               </div>
91
               </div>
92
             </div>
92
             </div>
93
           </td>
93
           </td>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue Прегледај датотеку

15
           :prescription_id="prescription_id"
15
           :prescription_id="prescription_id"
16
         ></print-ten-one>
16
         ></print-ten-one>
17
 
17
 
18
-        <prinSeven v-if="org_id == 10375 || org_id == 0"
18
+        <prinSeven v-if="org_id == 10375 "
19
           v-bind:childResponse="childResponse"
19
           v-bind:childResponse="childResponse"
20
           :advicePrint="advicePrint"
20
           :advicePrint="advicePrint"
21
           :ids="ids"
21
           :ids="ids"

+ 2 - 2
src/xt_pages/outpatientDoctorStation/template/printOne.vue Прегледај датотеку

352
 
352
 
353
             />
353
             />
354
           </p>
354
           </p>
355
-          <p v-if="org_id == 10510 ||org_id == 0">
355
+          <p v-if="org_id == 10510">
356
             医师:
356
             医师:
357
             <span
357
             <span
358
               style="width: 100px; display: inline-block"
358
               style="width: 100px; display: inline-block"
374
 
374
 
375
             />
375
             />
376
           </p>
376
           </p>
377
-          <p v-else>
377
+          <p v-if="org_id!=10217 && org_id!=10510">
378
             医师: {{ item.doctor ? item.doctor : "" }}
378
             医师: {{ item.doctor ? item.doctor : "" }}
379
           </p>
379
           </p>
380
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
380
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>

+ 36 - 31
src/xt_pages/outpatientTool/garherinvoice_lingshang.vue Прегледај датотеку

31
         </div>
31
         </div>
32
         <div style=" width: 608px;min-height: 200px;">
32
         <div style=" width: 608px;min-height: 200px;">
33
           <div style="display:flex;justify-content: space-around;">
33
           <div style="display:flex;justify-content: space-around;">
34
-            
34
+
35
             <div style="">西药费</div>
35
             <div style="">西药费</div>
36
             <div style="">{{getWesternMedicineCostTotal()}}</div>
36
             <div style="">{{getWesternMedicineCostTotal()}}</div>
37
             <div style="">检查费</div>
37
             <div style="">检查费</div>
41
           </div>
41
           </div>
42
 
42
 
43
           <div style="display:flex;justify-content: space-around;">
43
           <div style="display:flex;justify-content: space-around;">
44
-           
44
+
45
             <div style="">床位费</div>
45
             <div style="">床位费</div>
46
             <div style="">{{getBedCostTotal()}}</div>
46
             <div style="">{{getBedCostTotal()}}</div>
47
             <div style="position:  relative;left: -15px;">中成药</div>
47
             <div style="position:  relative;left: -15px;">中成药</div>
67
           </div>
67
           </div>
68
         </div>
68
         </div>
69
         <div style="border-top:1px solid black;width: 608px;">
69
         <div style="border-top:1px solid black;width: 608px;">
70
-          
70
+
71
           <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
71
           <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
72
             <span>合计(大写):{{smalltoBIG(getAllPice())}}</span>
72
             <span>合计(大写):{{smalltoBIG(getAllPice())}}</span>
73
             <!-- <span>
73
             <!-- <span>
124
           <div style="width:140px">兜底支付:</div>
124
           <div style="width:140px">兜底支付:</div>
125
         </div>
125
         </div>
126
         <div style="display:flex;margin-bottom: 3px;">
126
         <div style="display:flex;margin-bottom: 3px;">
127
-          <div style="width:140px">个人自付:</div>
127
+          <div style="width:140px">个人自付:{{getAllPice()}}</div>
128
           <div style="width:140px">个账支付:</div>
128
           <div style="width:140px">个账支付:</div>
129
           <div style="width:140px">个账余额:</div>
129
           <div style="width:140px">个账余额:</div>
130
         </div>
130
         </div>
131
       </div>
131
       </div>
132
       <div style="width:608px;font-Size:12px">
132
       <div style="width:608px;font-Size:12px">
133
         <div style="display:flex;margin: 3px 0px;">
133
         <div style="display:flex;margin: 3px 0px;">
134
-          <div style="width:140px">现金支付:</div>
134
+          <div style="width:140px">现金支付:{{getAllPice()}}</div>
135
           <div style="width:140px">预存扣减:</div>
135
           <div style="width:140px">预存扣减:</div>
136
           <div style="width:140px">预存余额:</div>
136
           <div style="width:140px">预存余额:</div>
137
         </div>
137
         </div>
140
           <div style="width:140px">收款人:{{getAdminRole(admin_user_id)}}</div>
140
           <div style="width:140px">收款人:{{getAdminRole(admin_user_id)}}</div>
141
         </div>
141
         </div>
142
       </div>
142
       </div>
143
-      
143
+
144
   </div>
144
   </div>
145
       <!-- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用发票</div>
145
       <!-- <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用发票</div>
146
       <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
146
       <div class="listTitle_1">{{$store.getters.xt_user.org.org_name}}发票联<span>收</span></div>
147
        <div class="listInfo">
147
        <div class="listInfo">
148
           <div>收费日期:{{this.$route.query.end_time}}</div>
148
           <div>收费日期:{{this.$route.query.end_time}}</div>
149
           <div style="width:400px">发票代码:
149
           <div style="width:400px">发票代码:
150
-           <span>{{orderInfo.fa_piao_code}}</span> 
150
+           <span>{{orderInfo.fa_piao_code}}</span>
151
           </div>
151
           </div>
152
       </div>
152
       </div>
153
       <table class="listTable" table border rules=none cellspacing=0 align=center>
153
       <table class="listTable" table border rules=none cellspacing=0 align=center>
249
         doctorlist:[],
249
         doctorlist:[],
250
         orderInfo:{},
250
         orderInfo:{},
251
         his_record_patient:{},
251
         his_record_patient:{},
252
+
253
+        dabing_cost:0,
254
+        dabing_cost:0,
255
+
256
+
252
       }
257
       }
253
   },
258
   },
254
   methods:{
259
   methods:{
297
           return false
302
           return false
298
         } else {
303
         } else {
299
         this.drugTypeList =response.data.data.drugTypeList
304
         this.drugTypeList =response.data.data.drugTypeList
300
-        this.costClassifyList = response.data.data.costClassifyList 
305
+        this.costClassifyList = response.data.data.costClassifyList
301
         this.doctorlist = response.data.data.doctorlist
306
         this.doctorlist = response.data.data.doctorlist
302
         var list = response.data.data.list
307
         var list = response.data.data.list
303
         console.log("listw3232323223",list)
308
         console.log("listw3232323223",list)
332
           }
337
           }
333
         }
338
         }
334
         console.log("order_info222222222222",order_info)
339
         console.log("order_info222222222222",order_info)
335
-        
340
+
336
         //合并,相同的合并在一起
341
         //合并,相同的合并在一起
337
 
342
 
338
         let dataInfo = {}
343
         let dataInfo = {}
360
           }
365
           }
361
           dataInfo[item_id].child.push(item)
366
           dataInfo[item_id].child.push(item)
362
         })
367
         })
363
-        let arr = Object.values(dataInfo) 
364
-        
368
+        let arr = Object.values(dataInfo)
369
+
365
         for(let i=0;i<arr.length;i++){
370
         for(let i=0;i<arr.length;i++){
366
           for(let j=0;j<arr[i].child.length;j++){
371
           for(let j=0;j<arr[i].child.length;j++){
367
              if(arr[i].advice_id >0){
372
              if(arr[i].advice_id >0){
372
                 arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
377
                 arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
373
                 arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
378
                 arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
374
                 arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
379
                 arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
375
-               
376
-               
380
+
381
+
377
              }
382
              }
378
              if(arr[i].project_id > 0){
383
              if(arr[i].project_id > 0){
379
                 arr[i].record_date = arr[i].child[0].project.record_date
384
                 arr[i].record_date = arr[i].child[0].project.record_date
417
         this.hisDepatment =  response.data.data.hisDepatment
422
         this.hisDepatment =  response.data.data.hisDepatment
418
         this.order =  response.data.data.order
423
         this.order =  response.data.data.order
419
         this.his_record_patient = response.data.data.his_record_patient
424
         this.his_record_patient = response.data.data.his_record_patient
420
-        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
425
+        this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
421
         this.orderInfo = response.data.data.orderInfo
426
         this.orderInfo = response.data.data.orderInfo
422
         if(this.$route.query.id == 1){
427
         if(this.$route.query.id == 1){
423
            var new_arr = []
428
            var new_arr = []
424
            for(let i=0;i<this.tableList.length;i++){
429
            for(let i=0;i<this.tableList.length;i++){
425
               if(this.tableList[i].type == 1){
430
               if(this.tableList[i].type == 1){
426
                 new_arr.push(this.tableList[i])
431
                 new_arr.push(this.tableList[i])
427
-              }  
432
+              }
428
            }
433
            }
429
            this.tableList = []
434
            this.tableList = []
430
            this.tableList = new_arr
435
            this.tableList = new_arr
434
            for(let i=0;i<this.tableList.length;i++){
439
            for(let i=0;i<this.tableList.length;i++){
435
               if(this.tableList[i].type == 2){
440
               if(this.tableList[i].type == 2){
436
                 new_arr.push(this.tableList[i])
441
                 new_arr.push(this.tableList[i])
437
-              }  
442
+              }
438
            }
443
            }
439
            this.tableList = []
444
            this.tableList = []
440
            this.tableList = new_arr
445
            this.tableList = new_arr
444
            for(let i=0;i<this.tableList.length;i++){
449
            for(let i=0;i<this.tableList.length;i++){
445
               if(this.tableList[i].type == 3){
450
               if(this.tableList[i].type == 3){
446
                 new_arr.push(this.tableList[i])
451
                 new_arr.push(this.tableList[i])
447
-              }  
452
+              }
448
            }
453
            }
449
            this.tableList = []
454
            this.tableList = []
450
            this.tableList = new_arr
455
            this.tableList = new_arr
493
         }
498
         }
494
 
499
 
495
       }
500
       }
496
-    
501
+
497
       let new_drug_ids = this.unique(drug_ids)
502
       let new_drug_ids = this.unique(drug_ids)
498
       let new_project_ids = this.unique(project_ids)
503
       let new_project_ids = this.unique(project_ids)
499
-     
504
+
500
       let list = []
505
       let list = []
501
       if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
506
       if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
502
         for (let i = 0; i < new_drug_ids.length; i++) {
507
         for (let i = 0; i < new_drug_ids.length; i++) {
531
                obj['name'] = details[a].project.project.project_name
536
                obj['name'] = details[a].project.project.project_name
532
                obj['spec'] = ''
537
                obj['spec'] = ''
533
                obj['unit'] = details[a].project.project.unit
538
                obj['unit'] = details[a].project.project.unit
534
-              
539
+
535
 
540
 
536
              }else if(details[a].project.type == 3){
541
              }else if(details[a].project.type == 3){
537
                obj['name'] = details[a].project.good_info.good_name
542
                obj['name'] = details[a].project.good_info.good_name
538
                obj['spec'] = ''
543
                obj['spec'] = ''
539
                obj['unit'] = details[a].project.good_info.packing_unit
544
                obj['unit'] = details[a].project.good_info.packing_unit
540
-             
545
+
541
 
546
 
542
              }
547
              }
543
               obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
548
               obj['medicine_insurance_kind'] = this.getMedicineInsuranceType(details[a].chrgitm_lv)
551
           }
556
           }
552
           obj['count'] = count
557
           obj['count'] = count
553
           list.push(obj)
558
           list.push(obj)
554
-        
559
+
555
         }
560
         }
556
       }
561
       }
557
 
562
 
577
           list.push(obj)
582
           list.push(obj)
578
 
583
 
579
         }
584
         }
580
-       
585
+
581
         for (let i = 0; i < new_project_ids.length; i++) {
586
         for (let i = 0; i < new_project_ids.length; i++) {
582
           let obj = {}
587
           let obj = {}
583
           let count = 0
588
           let count = 0
604
           }
609
           }
605
           obj['count'] = count
610
           obj['count'] = count
606
           list.push(obj)
611
           list.push(obj)
607
-        
612
+
608
         }
613
         }
609
        }
614
        }
610
        console.log("list232332322323332233223232323",list)
615
        console.log("list232332322323332233223232323",list)
611
       return list
616
       return list
612
-    }, 
613
-  
617
+    },
618
+
614
     getMedicineInsuranceType(type) {
619
     getMedicineInsuranceType(type) {
615
       switch (type) {
620
       switch (type) {
616
         case "01":
621
         case "01":
726
     return name
731
     return name
727
   },
732
   },
728
    smalltoBIG(n) {
733
    smalltoBIG(n) {
729
-         
734
+
730
       if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
735
       if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
731
           return "数据非法";  //判断数据是否大于0
736
           return "数据非法";  //判断数据是否大于0
732
       }
737
       }
809
           total_price += this.tableList[i].count_number * this.tableList[i].pric
814
           total_price += this.tableList[i].count_number * this.tableList[i].pric
810
        }
815
        }
811
     }
816
     }
812
-    
817
+
813
     return total_price.toFixed(2)
818
     return total_price.toFixed(2)
814
   },
819
   },
815
   getChineseTraditionalMedicineCostTotal(){
820
   getChineseTraditionalMedicineCostTotal(){
989
     }else{
994
     }else{
990
       return total_price
995
       return total_price
991
     }
996
     }
992
-   
997
+
993
   },
998
   },
994
   getAllPiceTwo(arr){
999
   getAllPiceTwo(arr){
995
 
1000
 
1004
     }else{
1009
     }else{
1005
       return total_price
1010
       return total_price
1006
     }
1011
     }
1007
-   
1012
+
1008
   },
1013
   },
1009
   getAdminRole(id){
1014
   getAdminRole(id){
1010
     var user_name = ""
1015
     var user_name = ""
1019
   created(){
1024
   created(){
1020
     this.admin_user_id = this.$store.getters.xt_user.user.id
1025
     this.admin_user_id = this.$store.getters.xt_user.user.id
1021
     console.log("admin_user_id23323232323",this.admin_user_id)
1026
     console.log("admin_user_id23323232323",this.admin_user_id)
1022
-    this.getGatherDetailList()   
1027
+    this.getGatherDetailList()
1023
     var data = new Date();
1028
     var data = new Date();
1024
     var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1029
     var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
1025
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
1030
     var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();

+ 4 - 4
src/xt_pages/role/admin.vue Прегледај датотеку

179
            
179
            
180
 
180
 
181
         
181
         
182
-         <el-button
182
+         <!-- <el-button
183
           type="primary"
183
           type="primary"
184
           size="small"
184
           size="small"
185
           icon="el-icon-circle-plus-outline"
185
           icon="el-icon-circle-plus-outline"
186
           style="float:left"
186
           style="float:left"
187
-          @click="toSendInformaton">发送短信验证码</el-button> 
187
+          @click="toSendInformaton">发送短信验证码</el-button>  -->
188
        
188
        
189
           
189
           
190
      </div>
190
      </div>
271
               </el-button>
271
               </el-button>
272
             </span> -->
272
             </span> -->
273
 
273
 
274
-            <span>
274
+            <!-- <span>
275
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
275
               <el-button type="primary" size="small" @click="toQianShu(scope.row.user_id,scope.row.user_name)">
276
                     <span>创建签署人用户</span>
276
                     <span>创建签署人用户</span>
277
               </el-button>
277
               </el-button>
287
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
287
               <el-button type="primary" size="small" @click="toShouQuan(scope.row.user_id,scope.row.user_name)">
288
                     <span>创建企业印章</span>
288
                     <span>创建企业印章</span>
289
               </el-button>
289
               </el-button>
290
-            </span>
290
+            </span> -->
291
             <el-tooltip
291
             <el-tooltip
292
               class="item"
292
               class="item"
293
               effect="dark"
293
               effect="dark"