Selaa lähdekoodia

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

杨青 2 vuotta sitten
vanhempi
commit
deaabab701
27 muutettua tiedostoa jossa 1522 lisäystä ja 896 poistoa
  1. 1 1
      build/cdn.json
  2. 19 1
      src/api/device.js
  3. 30 0
      src/store/modules/globalConfig.js
  4. 148 49
      src/xt_pages/device/airDisinfectTwo.vue
  5. 313 67
      src/xt_pages/device/objectTableDisinfectTwo.vue
  6. 2 0
      src/xt_pages/dialysis/PatientBox.vue
  7. 26 8
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue
  8. 27 9
      src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue
  9. 93 9
      src/xt_pages/dialysis/details/consumable/dialysisParameter.vue
  10. 48 2
      src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue
  11. 4 4
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  12. 2 2
      src/xt_pages/dialysis/signPrint.vue
  13. 32 13
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  14. 47 27
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue
  15. 15 8
      src/xt_pages/hospitalStation/doctorDesk.vue
  16. 2 2
      src/xt_pages/management/components/UserForm.vue
  17. 11 4
      src/xt_pages/management/home.vue
  18. 3 3
      src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue
  19. 8 9
      src/xt_pages/outpatientCharges/summary.vue
  20. 554 557
      src/xt_pages/outpatientTool/components/detail.vue
  21. 10 4
      src/xt_pages/stock/detail/print.vue
  22. 2 2
      src/xt_pages/stock/detail/stockOutDetail.vue
  23. 19 19
      src/xt_pages/user/Physicalexamination.vue
  24. 3 2
      src/xt_pages/user/courseOfDisease.vue
  25. 64 64
      src/xt_pages/user/firstDisease.vue
  26. 1 1
      src/xt_pages/user/inspectionCheck.vue
  27. 38 29
      src/xt_pages/user/ktv.vue

+ 1 - 1
build/cdn.json Näytä tiedosto

1
 {
1
 {
2
-  "version": "1.0.5"
2
+  "version": "1.0.6"
3
 }
3
 }

+ 19 - 1
src/api/device.js Näytä tiedosto

265
   
265
   
266
   return request({
266
   return request({
267
     url:"/api/manage/updatenewairdisinfect",
267
     url:"/api/manage/updatenewairdisinfect",
268
-    method:post,
268
+    method:"post",
269
     data:data,
269
     data:data,
270
   })
270
   })
271
 }
271
 }
322
     method:"get",
322
     method:"get",
323
     params:params
323
     params:params
324
   })
324
   })
325
+}
326
+
327
+export function getAirDisinfectLongTime(params){
328
+  
329
+  return request({
330
+    url:"/api/manage/getairdisinfectionlongtime",
331
+    method:"get",
332
+    params:params
333
+  })
334
+}
335
+
336
+export function getObjectTableDisinfectLongTime(params){
337
+  
338
+  return request({
339
+    url:"/api/manage/getobjcttabledisinfectlongtime",
340
+    method:"get",
341
+    params:params,
342
+  })
325
 }
343
 }

+ 30 - 0
src/store/modules/globalConfig.js Näytä tiedosto

886
         zongliang_unit: 'mg',
886
         zongliang_unit: 'mg',
887
         gaimingcheng_unit: '',
887
         gaimingcheng_unit: '',
888
         gaijiliang_unit: ''
888
         gaijiliang_unit: ''
889
+      },
890
+      14: {
891
+        id: 14,
892
+        name: '肝素钙注射液',
893
+        type: 1,
894
+        shouji: 1,
895
+        weichi: 1,
896
+        zongliang: 1,
897
+        gaimingcheng: -1,
898
+        gaijiliang: -1,
899
+        shouji_unit: 'mg',
900
+        weichi_unit: 'mg/h',
901
+        zongliang_unit: 'mg',
902
+        gaimingcheng_unit: '',
903
+        gaijiliang_unit: ''
904
+      },
905
+      15: {
906
+        id: 15,
907
+        name: '甲磺酸萘莫司他',
908
+        type: 1,
909
+        shouji: 1,
910
+        weichi: 1,
911
+        zongliang: 1,
912
+        gaimingcheng: -1,
913
+        gaijiliang: -1,
914
+        shouji_unit: 'mg',
915
+        weichi_unit: 'mg/h',
916
+        zongliang_unit: 'mg',
917
+        gaimingcheng_unit: '',
918
+        gaijiliang_unit: ''
889
       }
919
       }
890
     },
920
     },
891
     anticoagulants_set: {
921
     anticoagulants_set: {

+ 148 - 49
src/xt_pages/device/airDisinfectTwo.vue Näytä tiedosto

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>
30
             <el-button type="primary" @click="printCard">打印</el-button>
31
-            <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
31
+            <el-button type="primary" @click="AddCard">新增</el-button>
32
 
32
 
33
           </div>
33
           </div>
34
           <div class="tab_air">
34
           <div class="tab_air">
54
                 </el-table-column>
54
                 </el-table-column>
55
                 <el-table-column prop="date" label="责任人" align="center" min-width="50">
55
                 <el-table-column prop="date" label="责任人" align="center" min-width="50">
56
                     <template slot-scope="scope">
56
                     <template slot-scope="scope">
57
-                     <span v-if="setAdminUserES(scope.row.first_creator?scope.row.first_creator:scope.row.first_creator) == ''">
58
                         {{getName(scope.row.first_creator)}}
57
                         {{getName(scope.row.first_creator)}}
59
-                     </span>
60
-                    <span v-else>
61
-                        <img style="height:30px;" :src="setAdminUserES(scope.row.first_creator?scope.row.first_creator:scope.row.first_creator)" alt="" srcset="">
62
-                    </span>
63
 
58
 
64
                     </template>
59
                     </template>
65
                 </el-table-column>
60
                 </el-table-column>
76
                 </el-table-column>
71
                 </el-table-column>
77
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
72
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
78
                     <template slot-scope="scope">
73
                     <template slot-scope="scope">
79
-                        <!-- {{getName(scope.row.first_creator)}} -->
80
-                        <span v-if="setAdminUserES(scope.row.sencond_creator?scope.row.sencond_creator:scope.row.sencond_creator) == ''">
81
                         {{getName(scope.row.sencond_creator)}}
74
                         {{getName(scope.row.sencond_creator)}}
82
-                     </span>
83
-                    <span v-else>
84
-                        <img style="height:30px;" :src="setAdminUserES(scope.row.sencond_creator?scope.row.sencond_creator:scope.row.sencond_creator)" alt="" srcset="">
85
-                    </span>
75
+                   
86
                    </template>
76
                    </template>
87
                 </el-table-column>
77
                 </el-table-column>
88
 
78
 
98
                 </el-table-column>
88
                 </el-table-column>
99
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
89
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
100
                     <template slot-scope="scope">
90
                     <template slot-scope="scope">
101
-                        <!-- {{getName(scope.row.sencond_creator)}} -->
102
-                    <span v-if="setAdminUserES(scope.row.third_creator?scope.row.third_creator:scope.row.third_creator) == ''">
103
                         {{getName(scope.row.third_creator)}}
91
                         {{getName(scope.row.third_creator)}}
104
-                     </span>
105
-                    <span v-else>
106
-                        <img style="height:30px;" :src="setAdminUserES(scope.row.third_creator?scope.row.third_creator:scope.row.third_creator)" alt="" srcset="">
107
-                    </span>
92
+                    
108
                     </template>
93
                     </template>
109
                 </el-table-column>
94
                 </el-table-column>
110
 
95
 
115
                 </el-table-column>
100
                 </el-table-column>
116
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
117
                     <template slot-scope="scope">
102
                     <template slot-scope="scope">
118
-                        <!-- {{getName(scope.row.third_creator)}} -->
119
-                        <span v-if="setAdminUserES(scope.row.last_creator?scope.row.last_creator:scope.row.last_creator) == ''">
120
-                            {{getName(scope.row.third_creator)}}
121
-                        </span>
122
-                        <span v-else>
123
-                            <img style="height:30px;" :src="setAdminUserES(scope.row.last_creator?scope.row.last_creator:scope.row.last_creator)" alt="" srcset="">
124
-                        </span>
103
+                        {{getName(scope.row.last_creator)}}
104
+                        
125
                     </template>
105
                     </template>
126
                 </el-table-column>
106
                 </el-table-column>
127
                 <el-table-column prop="city" label="操作" align="center" min-width="150">
107
                 <el-table-column prop="city" label="操作" align="center" min-width="150">
275
                   <el-form-item label="开始时间" label-width="110px">
255
                   <el-form-item label="开始时间" label-width="110px">
276
                     <el-date-picker
256
                     <el-date-picker
277
                         type="datetime"
257
                         type="datetime"
278
-                        format="yyyy-MM-dd HH:mm"
258
+                        format="yyyy-MM-dd HH:mm:ss"
279
                         value-format="yyyy-MM-dd HH:mm"
259
                         value-format="yyyy-MM-dd HH:mm"
280
                         placeholder="选择时间"
260
                         placeholder="选择时间"
281
                         v-model="form.sencond_start_time"
261
                         v-model="form.sencond_start_time"
412
                         value-format="yyyy-MM-dd HH:mm"
392
                         value-format="yyyy-MM-dd HH:mm"
413
                         placeholder="选择时间"
393
                         placeholder="选择时间"
414
                         v-model="form.last_start_time"
394
                         v-model="form.last_start_time"
395
+                        @change="laststarttime"
415
                         style="width:100%;"
396
                         style="width:100%;"
416
                     ></el-date-picker>
397
                     ></el-date-picker>
417
                   </el-form-item>
398
                   </el-form-item>
422
                         value-format="yyyy-MM-dd HH:mm"
403
                         value-format="yyyy-MM-dd HH:mm"
423
                         placeholder="选择时间"
404
                         placeholder="选择时间"
424
                         v-model="form.last_end_time"
405
                         v-model="form.last_end_time"
406
+                        @change="lastendtime"
425
                         style="width:100%;"
407
                         style="width:100%;"
426
                     ></el-date-picker>
408
                     ></el-date-picker>
427
                   </el-form-item>
409
                   </el-form-item>
719
                         value-format="yyyy-MM-dd HH:mm"
701
                         value-format="yyyy-MM-dd HH:mm"
720
                         placeholder="选择时间"
702
                         placeholder="选择时间"
721
                         v-model="form.last_start_time"
703
                         v-model="form.last_start_time"
704
+                        @change="laststarttime"
722
                         style="width:100%;"
705
                         style="width:100%;"
723
                     ></el-date-picker>
706
                     ></el-date-picker>
724
                   </el-form-item>
707
                   </el-form-item>
729
                         value-format="yyyy-MM-dd HH:mm"
712
                         value-format="yyyy-MM-dd HH:mm"
730
                         placeholder="选择时间"
713
                         placeholder="选择时间"
731
                         v-model="form.last_end_time"
714
                         v-model="form.last_end_time"
715
+                        @change="lastendtime"
732
                         style="width:100%;"
716
                         style="width:100%;"
733
                     ></el-date-picker>
717
                     ></el-date-picker>
734
                   </el-form-item>
718
                   </el-form-item>
806
                                <td>{{getTimes(item.record_date) }}</td>
790
                                <td>{{getTimes(item.record_date) }}</td>
807
                                <td>{{ getTimeTwo(item.first_start_time)}} - {{ getTimeTwo(item.first_end_time) }}</td>
791
                                <td>{{ getTimeTwo(item.first_start_time)}} - {{ getTimeTwo(item.first_end_time) }}</td>
808
                                <td>{{item.first_total_time }}</td>
792
                                <td>{{item.first_total_time }}</td>
809
-                               <td>{{getName(item.first_creator)}}</td>
793
+                               <td>
794
+                                <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
795
+                                   {{getName(item.first_creator)}}
796
+                                  </span>
797
+                                <span v-else>
798
+                                    <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
799
+                                </span>
800
+                               </td>
810
                                <td>{{ getTimeTwo(item.sencond_start_time)}} - {{ getTimeTwo(item.sencond_end_time) }}</td>
801
                                <td>{{ getTimeTwo(item.sencond_start_time)}} - {{ getTimeTwo(item.sencond_end_time) }}</td>
811
                                <td>{{item.sencond_total_time }}</td>
802
                                <td>{{item.sencond_total_time }}</td>
812
-                               <td>{{getName(item.sencond_creator)}}</td>
803
+                               <td>
804
+                                <span v-if="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator) == ''">
805
+                                   {{getName(item.sencond_creator)}}
806
+                                  </span>
807
+                                <span v-else>
808
+                                    <img style="height:30px;" :src="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator)" alt="" srcset="">
809
+                                </span>
810
+                               </td>
813
                                <td>{{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
811
                                <td>{{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
814
                                <td>{{item.third_total_time }}</td>
812
                                <td>{{item.third_total_time }}</td>
815
-                               <td>{{getName(item.third_creator)}}</td>
813
+                               <td>
814
+                                <span v-if="setAdminUserES(item.third_creator?item.third_creator:item.third_creator) == ''">
815
+                                   {{getName(item.third_creator)}}
816
+                                  </span>
817
+                                <span v-else>
818
+                                    <img style="height:30px;" :src="setAdminUserES(item.third_creator?item.third_creator:item.third_creator)" alt="" srcset="">
819
+                                </span>
820
+                              </td>
816
                                <td> {{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
821
                                <td> {{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
817
-                               <td>{{getName(item.last_creator)}}</td>
822
+                               <td>
823
+                                <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
824
+                                   {{getName(item.last_creator)}}
825
+                                  </span>
826
+                                <span v-else>
827
+                                    <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
828
+                                </span>
829
+                               </td>
818
                             </tr>
830
                             </tr>
819
                         </table>
831
                         </table>
820
                     </div>
832
                     </div>
828
   <script>
840
   <script>
829
     import print from "print-js";
841
     import print from "print-js";
830
     import BreadCrumb from '@/xt_pages/components/bread-crumb'
842
     import BreadCrumb from '@/xt_pages/components/bread-crumb'
831
-    import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateAirDisinfect,deleteNewAirDisInfect} from "@/api/device"
843
+    import { getAllDoctorList,saveNewAirDisinfect,getNewAirDisinfectList,getNewAirDisinfectByIdList,updateNewAirDisinfect,deleteNewAirDisInfect,getAirDisinfectLongTime} from "@/api/device"
832
     import { uParseTime } from '@/utils/tools'
844
     import { uParseTime } from '@/utils/tools'
833
     const moment = require('moment')
845
     const moment = require('moment')
834
     export default {
846
     export default {
853
             first_disinfection_water:"",// 消毒液
865
             first_disinfection_water:"",// 消毒液
854
             first_disinfection_methods:"",//消毒方式
866
             first_disinfection_methods:"",//消毒方式
855
             first_disinfection_time:'',//消毒时长
867
             first_disinfection_time:'',//消毒时长
856
-            first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
857
-            first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
868
+            first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
869
+            first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
858
             first_total_time:"",//累计时间
870
             first_total_time:"",//累计时间
859
             first_is_check:"1",//检验合格
871
             first_is_check:"1",//检验合格
860
             first_modifications:"",//修改标志
872
             first_modifications:"",//修改标志
863
             sencond_disinfection_water:"",// 消毒液
875
             sencond_disinfection_water:"",// 消毒液
864
             sencond_disinfection_methods:"",//消毒方式
876
             sencond_disinfection_methods:"",//消毒方式
865
             sencond_disinfection_time:"",//消毒时长
877
             sencond_disinfection_time:"",//消毒时长
866
-            sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
867
-            sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
878
+            sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
879
+            sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
868
             sencond_total_time:"",//累计时间
880
             sencond_total_time:"",//累计时间
869
             sencond_is_check:"1",//检验合格
881
             sencond_is_check:"1",//检验合格
870
             sencond_modifications:"",//修改标志
882
             sencond_modifications:"",//修改标志
873
             third_disinfection_water:"",// 消毒液
885
             third_disinfection_water:"",// 消毒液
874
             third_disinfection_methods:"",//消毒方式
886
             third_disinfection_methods:"",//消毒方式
875
             third_disinfection_time:'',//消毒时长
887
             third_disinfection_time:'',//消毒时长
876
-            third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
877
-            third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
888
+            third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
889
+            third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
878
             third_total_time:"",//累计时间
890
             third_total_time:"",//累计时间
879
             third_is_check:"1",//检验合格
891
             third_is_check:"1",//检验合格
880
             third_modifications:"",//修改标志
892
             third_modifications:"",//修改标志
881
             third_creator:this.$store.getters.xt_user.user.id,//第一责任人
893
             third_creator:this.$store.getters.xt_user.user.id,//第一责任人
882
 
894
 
883
-            last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
884
-            last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
895
+            last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
896
+            last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
897
+            last_disinfection_time:"",//消毒时长
885
             last_total_time:"",//累计时间
898
             last_total_time:"",//累计时间
886
             last_is_check:"1",//检验合格
899
             last_is_check:"1",//检验合格
887
             last_modifications:"",//修改标志
900
             last_modifications:"",//修改标志
907
          { id: 2, name: "500mg/l含氯消毒剂" },
920
          { id: 2, name: "500mg/l含氯消毒剂" },
908
          { id: 3, name: "1000mg/l含氯消毒剂" },
921
          { id: 3, name: "1000mg/l含氯消毒剂" },
909
          { id: 4, name: "1500mg/l含氯消毒剂" },
922
          { id: 4, name: "1500mg/l含氯消毒剂" },
910
-         { id: 5, name: "消毒湿巾" }
923
+         { id: 5, name: "消毒湿巾" },
924
+         { id:6, name:"75%酒精"}
911
          ],
925
          ],
912
          DisinfectionMode: [
926
          DisinfectionMode: [
913
-            { id: 1, name: "化学消毒" },
914
-            { id: 2, name: "热消毒" },
915
-            { id: 3, name: "化学消毒+热消毒" }
927
+            { id: 1, name: "紫外线" },
928
+            { id: 2, name: "等离子" },
929
+            { id: 3, name: "臭氧" },
930
+            {id:4,name:"含氯剂喷洒500mg/L"},
931
+            {id:5,name:"含氯剂喷洒1000mg/L"},
932
+            {id:6,name:"通风"}
916
          ],
933
          ],
917
          operators: [],
934
          operators: [],
918
          operatorMaps:{},
935
          operatorMaps:{},
919
          firststart:'',
936
          firststart:'',
920
          firstend:'',
937
          firstend:'',
938
+
939
+         first_total_time:0,
940
+         sencond_total_time:0,
941
+         third_total_time:0,
942
+         last_total_time:0,
921
         }
943
         }
922
       },
944
       },
923
       created(){
945
       created(){
955
             const time_interval = ((thirdend - thirdstart)/(60*60*1000)).toFixed(1)
977
             const time_interval = ((thirdend - thirdstart)/(60*60*1000)).toFixed(1)
956
             console.log('结束时间',time_interval);
978
             console.log('结束时间',time_interval);
957
             return time_interval
979
             return time_interval
980
+        },
981
+        lastdisinfection_time(){
982
+            const lasttart= Date.parse(new Date(this.form.last_start_time))
983
+            console.log('开始时间',lasttart);
984
+            const lastend= Date.parse(new Date(this.form.last_end_time))
985
+            console.log('结束时间',lastend);
986
+            const time_interval = ((lastend - lasttart)/(60*60*1000)).toFixed(1)
987
+            console.log('结束时间',time_interval);
988
+            return time_interval    
958
         }
989
         }
959
       },
990
       },
960
       methods:{
991
       methods:{
992
+      AddCard(){
993
+        getAirDisinfectLongTime().then(response=>{
994
+          if(response.data.state == 1){
995
+            var list = response.data.data.list
996
+            console.log("累计2323322323我",list)
997
+            var first_total_time = 0
998
+            var sencond_total_time = 0
999
+            var third_total_time = 0
1000
+            var last_total_time = 0
1001
+            if(list!=null && list.length>0){
1002
+               for(let i=0;i<list.length;i++){
1003
+                 first_total_time += parseFloat(list[i].first_total_time)
1004
+                 sencond_total_time +=parseFloat(list[i].sencond_total_time)
1005
+                 third_total_time +=parseFloat(list[i].third_total_time)
1006
+                 last_total_time +=parseFloat(list[i].last_total_time)
1007
+               }
1008
+            
1009
+           
1010
+            this.form.first_total_time = ""
1011
+            this.form.first_total_time = first_total_time
1012
+            this.first_total_time = first_total_time
1013
+            this.form.sencond_total_time = ""
1014
+            this.form.sencond_total_time = sencond_total_time
1015
+            this.sencond_total_time = sencond_total_time
1016
+            this.form.third_total_time =""
1017
+            this.form.third_total_time = third_total_time
1018
+            this.third_total_time = third_total_time
1019
+            this.form.last_total_time =""
1020
+            this.form.last_total_time = last_total_time
1021
+            this.last_total_time = last_total_time
1022
+           
1023
+          }
1024
+          this.dialogFormVisible =  true
1025
+         }
1026
+        })
1027
+      },
961
       handleSizeChange(val) {
1028
       handleSizeChange(val) {
962
         this.limit = val;
1029
         this.limit = val;
963
         this.getNewAirDisinfectList()
1030
         this.getNewAirDisinfectList()
1041
                 }else{
1108
                 }else{
1042
                     this.form.last_modifications= 0
1109
                     this.form.last_modifications= 0
1043
                 }
1110
                 }
1111
+
1112
+                this.form.first_total_time = this.form.first_total_time.toString()
1113
+                this.form.sencond_total_time =this.form.sencond_total_time.toString()
1114
+                this.form.third_total_time = this.form.third_total_time.toString()
1115
+                this.form.last_total_time = this.form.last_total_time.toString()
1044
               console.log("this232322323",this.form)
1116
               console.log("this232322323",this.form)
1045
               saveNewAirDisinfect(this.form).then(response=>{
1117
               saveNewAirDisinfect(this.form).then(response=>{
1046
                  if(response.data.state == 1 ){
1118
                  if(response.data.state == 1 ){
1187
                     this.form.last_modifications= 0
1259
                     this.form.last_modifications= 0
1188
                 }
1260
                 }
1189
 
1261
 
1190
-              updateAirDisinfect(this.form).then(response=>{
1262
+                updateNewAirDisinfect(this.form).then(response=>{
1191
                 if(response.data.state == 1){
1263
                 if(response.data.state == 1){
1192
                   var disinfect =  response.data.data.disinfect
1264
                   var disinfect =  response.data.data.disinfect
1193
                   this.editDialogFormVisible = false
1265
                   this.editDialogFormVisible = false
1228
             }, 1);
1300
             }, 1);
1229
          },
1301
          },
1230
          setAdminUserES(id) {
1302
          setAdminUserES(id) {
1303
+           
1231
             if (id === 0) {
1304
             if (id === 0) {
1232
             return ''
1305
             return ''
1233
             }
1306
             }
1234
-            if (id in this.operatorMaps) {
1307
+            var user_name = ""
1308
+            for(let i=0;i<this.operators.length;i++){
1309
+               if(id == this.operators[i].admin_user_id){
1310
+                  user_name = this.operators[i].url
1311
+               }
1312
+            }
1313
+            return user_name
1314
+            // if (id in this.operatorMaps) {
1235
 
1315
 
1236
-            return this.operatorMaps[id].url
1316
+            // return this.operatorMaps[id].url
1237
 
1317
 
1238
-            } else {
1239
-            return ''
1240
-            }
1318
+            // } else {
1319
+            // return ''
1320
+            // }
1241
         },
1321
         },
1242
       
1322
       
1243
         
1323
         
1244
         firststartime(val){
1324
         firststartime(val){
1245
             this.form.first_start_time = val
1325
             this.form.first_start_time = val
1246
             this.form.first_disinfection_time = this.firstdisinfection_time
1326
             this.form.first_disinfection_time = this.firstdisinfection_time
1327
+           
1247
         },
1328
         },
1248
         firstendtime(val){
1329
         firstendtime(val){
1249
             this.form.first_disinfection_time = this.firstdisinfection_time
1330
             this.form.first_disinfection_time = this.firstdisinfection_time
1250
             this.form.first_end_time = val
1331
             this.form.first_end_time = val
1332
+           
1333
+            this.form.first_total_time = parseFloat(this.first_total_time ) + parseFloat(this.form.first_disinfection_time)
1251
         },
1334
         },
1252
         sencondstarttime(val){
1335
         sencondstarttime(val){
1253
             this.form.sencond_start_time = val
1336
             this.form.sencond_start_time = val
1256
          sencondendtime(val){
1339
          sencondendtime(val){
1257
             this.form.sencond_end_time = val
1340
             this.form.sencond_end_time = val
1258
             this.form.sencond_disinfection_time = this.senconddisinfection_time
1341
             this.form.sencond_disinfection_time = this.senconddisinfection_time
1342
+
1343
+            this.form.sencond_total_time = parseFloat(this.sencond_total_time ) + parseFloat(this.form.sencond_disinfection_time)
1259
         },
1344
         },
1260
         thirdstarttime(val){
1345
         thirdstarttime(val){
1261
             this.form.third_start_time = val
1346
             this.form.third_start_time = val
1262
             this.form.third_disinfection_time = this.thirddisinfection_time
1347
             this.form.third_disinfection_time = this.thirddisinfection_time
1348
+
1349
+          
1263
         },
1350
         },
1264
         thirdendtime(val){
1351
         thirdendtime(val){
1265
             this.form.third_end_time = val
1352
             this.form.third_end_time = val
1266
             this.form.third_disinfection_time = this.thirddisinfection_time
1353
             this.form.third_disinfection_time = this.thirddisinfection_time
1354
+            this.form.third_total_time = parseFloat(this.third_total_time ) + parseFloat(this.form.third_disinfection_time)
1267
         },
1355
         },
1356
+        laststarttime(val){
1357
+          this.form.last_start_time = val
1358
+          this.form.last_disinfection_time = this.lastdisinfection_time
1359
+        },
1360
+        lastendtime(val){
1361
+          this.form.last_end_time = val
1362
+          this.form.last_disinfection_time = this.lastdisinfection_time   
1363
+
1364
+          this.form.last_total_time = parseFloat(this.last_total_time ) + parseFloat(this.form.last_disinfection_time)
1365
+        }
1366
+
1268
       },
1367
       },
1269
 
1368
 
1270
     }
1369
     }

+ 313 - 67
src/xt_pages/device/objectTableDisinfectTwo.vue Näytä tiedosto

39
                 </el-table-column>
39
                 </el-table-column>
40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
41
                     <template slot-scope="scope">
41
                     <template slot-scope="scope">
42
-                        {{scope.row.first_total_time?scope.row.first_total_time:""}}
42
+                        <!-- {{scope.row.first_total_time?scope.row.first_total_time:""}} -->
43
+                        {{ scope.row.first_disinfection_time }}
43
                     </template>
44
                     </template>
44
                 </el-table-column>
45
                 </el-table-column>
45
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
46
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
46
                     <template slot-scope="scope">
47
                     <template slot-scope="scope">
47
                         {{getName(scope.row.first_creator)}}
48
                         {{getName(scope.row.first_creator)}}
49
+
50
+                     
48
                     </template>
51
                     </template>
49
                 </el-table-column>
52
                 </el-table-column>
50
 
53
 
51
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
54
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
52
                     <template slot-scope="scope">
55
                     <template slot-scope="scope">
53
-                        {{scope.row.sencond_total_time?scope.row.sencond_total_time:""}}
56
+                        <!-- {{scope.row.sencond_total_time?scope.row.sencond_total_time:""}} -->
57
+                        {{ scope.row.sencond_disinfection_time }}
54
                     </template>
58
                     </template>
55
                 </el-table-column>
59
                 </el-table-column>
56
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
60
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
57
                     <template slot-scope="scope">
61
                     <template slot-scope="scope">
58
                         {{getName(scope.row.sencond_creator)}}
62
                         {{getName(scope.row.sencond_creator)}}
63
+                       
59
                     </template>
64
                     </template>
60
                 </el-table-column>
65
                 </el-table-column>
61
 
66
 
62
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
67
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
63
                     <template slot-scope="scope">
68
                     <template slot-scope="scope">
64
-                        {{scope.row.third_total_time?scope.row.third_total_time:""}}
69
+                        <!-- {{scope.row.third_total_time?scope.row.third_total_time:""}} -->
70
+                        {{ scope.row.third_disinfection_time }}
65
                     </template>
71
                     </template>
66
                 </el-table-column>
72
                 </el-table-column>
67
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
73
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
68
                     <template slot-scope="scope">
74
                     <template slot-scope="scope">
69
                         {{getName(scope.row.third_creator)}}
75
                         {{getName(scope.row.third_creator)}}
76
+
77
+                   
70
                     </template>
78
                     </template>
71
                 </el-table-column>
79
                 </el-table-column>
72
 
80
 
73
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
81
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
74
                     <template slot-scope="scope">
82
                     <template slot-scope="scope">
75
-                        {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}}
83
+                        <!-- {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}} -->
84
+                        {{ scope.row.fourth_disinfection_time }}
76
                     </template>
85
                     </template>
77
                 </el-table-column>
86
                 </el-table-column>
78
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
87
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
79
                     <template slot-scope="scope">
88
                     <template slot-scope="scope">
80
                         {{getName(scope.row.fourth_creator)}}
89
                         {{getName(scope.row.fourth_creator)}}
90
+                    
91
+                  
81
                     </template>
92
                     </template>
82
                 </el-table-column>
93
                 </el-table-column>
83
 
94
 
84
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
95
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
85
                     <template slot-scope="scope">
96
                     <template slot-scope="scope">
86
-                        {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}}
97
+                        <!-- {{scope.row.fourth_total_time?scope.row.fourth_total_time:""}} -->
98
+                        {{ scope.row.last_disinfection_time }}
87
                     </template>
99
                     </template>
88
                 </el-table-column>
100
                 </el-table-column>
89
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
90
                     <template slot-scope="scope">
102
                     <template slot-scope="scope">
91
                         {{getName(scope.row.last_creator)}}
103
                         {{getName(scope.row.last_creator)}}
104
+
105
+                    
92
                     </template>
106
                     </template>
93
                 </el-table-column>
107
                 </el-table-column>
94
                 <el-table-column prop="city" label="操作" align="center" min-width="100">
108
                 <el-table-column prop="city" label="操作" align="center" min-width="100">
136
                   </div>
150
                   </div>
137
                   <div class="form_title"><span >湿化瓶</span></div>
151
                   <div class="form_title"><span >湿化瓶</span></div>
138
                   <el-form-item label="消毒方式" label-width="110px">
152
                   <el-form-item label="消毒方式" label-width="110px">
139
-                      <el-input v-model="form.first_disinfection_methods"></el-input>
153
+                      <!-- <el-input v-model="form.first_disinfection_methods"></el-input> -->
154
+                      <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
155
+                          <el-option
156
+                          v-for="(item,index) in DisinfectionMode"
157
+                          :key="index"
158
+                          :label="item.name"
159
+                          :value="item.name">
160
+                          </el-option>
161
+                      </el-select>
140
                   </el-form-item>
162
                   </el-form-item>
141
                   <el-form-item label="消毒液" label-width="110px">
163
                   <el-form-item label="消毒液" label-width="110px">
142
-                      <el-input v-model="form.first_disinfection_water"></el-input>
164
+                      <!-- <el-input v-model="form.first_disinfection_water"></el-input> -->
165
+                      <el-select v-model="form.first_disinfection_water" placeholder="请选择">
166
+                          <el-option
167
+                          v-for="(item,index) in disInfectionWaterList"
168
+                          :key="index"
169
+                          :label="item.name"
170
+                          :value="item.name">
171
+                          </el-option>
172
+                      </el-select>
143
                   </el-form-item>
173
                   </el-form-item>
144
                   <el-form-item label="消毒时间(h)" label-width="110px">
174
                   <el-form-item label="消毒时间(h)" label-width="110px">
145
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
175
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
166
                         style="width:100%;"
196
                         style="width:100%;"
167
                     ></el-date-picker>
197
                     ></el-date-picker>
168
                   </el-form-item>
198
                   </el-form-item>
169
-                  <el-form-item label="累计时间(h)" label-width="110px">
199
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
170
                       <el-input v-model= "form.first_total_time"  ></el-input>
200
                       <el-input v-model= "form.first_total_time"  ></el-input>
171
-                  </el-form-item>
201
+                  </el-form-item> -->
172
                   <el-form-item label="检测合格" label-width="110px">
202
                   <el-form-item label="检测合格" label-width="110px">
173
                       <div>
203
                       <div>
174
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
204
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
198
 
228
 
199
                   <div class="form_title"><span >止血带</span></div>
229
                   <div class="form_title"><span >止血带</span></div>
200
                   <el-form-item label="消毒方式" label-width="110px">
230
                   <el-form-item label="消毒方式" label-width="110px">
201
-                      <el-input v-model="form.sencond_disinfection_methods"></el-input>
231
+                      <!-- <el-input v-model="form.sencond_disinfection_methods"></el-input> -->
232
+                      <el-select v-model="form.sencond_disinfection_methods" placeholder="请选择">
233
+                          <el-option
234
+                          v-for="(item,index) in DisinfectionMode"
235
+                          :key="index"
236
+                          :label="item.name"
237
+                          :value="item.name">
238
+                          </el-option>
239
+                      </el-select>
202
                   </el-form-item>
240
                   </el-form-item>
203
                   <el-form-item label="消毒液" label-width="110px">
241
                   <el-form-item label="消毒液" label-width="110px">
204
-                      <el-input v-model="form.sencond_disinfection_water"></el-input>
242
+                      <!-- <el-input v-model="form.sencond_disinfection_water"></el-input> -->
243
+                      <el-select v-model="form.sencond_disinfection_water" placeholder="请选择">
244
+                          <el-option
245
+                          v-for="(item,index) in disInfectionWaterList"
246
+                          :key="index"
247
+                          :label="item.name"
248
+                          :value="item.name">
249
+                          </el-option>
250
+                      </el-select>
205
                   </el-form-item>
251
                   </el-form-item>
206
                   <el-form-item label="消毒时间(h)" label-width="110px">
252
                   <el-form-item label="消毒时间(h)" label-width="110px">
207
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
253
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
228
                         style="width:100%;"
274
                         style="width:100%;"
229
                     ></el-date-picker>
275
                     ></el-date-picker>
230
                   </el-form-item>
276
                   </el-form-item>
231
-                  <el-form-item label="累计时间(h)" label-width="110px">
277
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
232
                       <el-input v-model= "form.sencond_total_time"></el-input>
278
                       <el-input v-model= "form.sencond_total_time"></el-input>
233
-                  </el-form-item>
279
+                  </el-form-item> -->
234
                   <el-form-item label="检测合格" label-width="110px">
280
                   <el-form-item label="检测合格" label-width="110px">
235
                       <div>
281
                       <div>
236
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
282
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
260
 
306
 
261
                   <div class="form_title"><span >医疗垃圾桶</span></div>
307
                   <div class="form_title"><span >医疗垃圾桶</span></div>
262
                   <el-form-item label="消毒方式" label-width="110px">
308
                   <el-form-item label="消毒方式" label-width="110px">
263
-                      <el-input v-model="form.third_disinfection_methods"></el-input>
309
+                      <!-- <el-input v-model="form.third_disinfection_methods"></el-input> -->
310
+                      <el-select v-model="form.third_disinfection_methods" placeholder="请选择">
311
+                          <el-option
312
+                          v-for="(item,index) in DisinfectionMode"
313
+                          :key="index"
314
+                          :label="item.name"
315
+                          :value="item.name">
316
+                          </el-option>
317
+                      </el-select>
264
                   </el-form-item>
318
                   </el-form-item>
265
                   <el-form-item label="消毒液" label-width="110px">
319
                   <el-form-item label="消毒液" label-width="110px">
266
-                      <el-input v-model="form.third_disinfection_water"></el-input>
320
+                      <!-- <el-input v-model="form.third_disinfection_water"></el-input> -->
321
+                      <el-select v-model="form.third_disinfection_water" placeholder="请选择">
322
+                          <el-option
323
+                          v-for="(item,index) in disInfectionWaterList"
324
+                          :key="index"
325
+                          :label="item.name"
326
+                          :value="item.name">
327
+                          </el-option>
328
+                      </el-select>
267
                   </el-form-item>
329
                   </el-form-item>
268
                   <el-form-item label="消毒时间(h)" label-width="110px">
330
                   <el-form-item label="消毒时间(h)" label-width="110px">
269
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
331
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
290
                         style="width:100%;"
352
                         style="width:100%;"
291
                     ></el-date-picker>
353
                     ></el-date-picker>
292
                   </el-form-item>
354
                   </el-form-item>
293
-                  <el-form-item label="累计时间(h)" label-width="110px">
355
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
294
                       <el-input v-model= "form.third_total_time"  ></el-input>
356
                       <el-input v-model= "form.third_total_time"  ></el-input>
295
-                  </el-form-item>
357
+                  </el-form-item> -->
296
                   <el-form-item label="检测合格" label-width="110px" >
358
                   <el-form-item label="检测合格" label-width="110px" >
297
                       <div>
359
                       <div>
298
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
360
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
322
 
384
 
323
                   <div class="form_title"><span >体温计</span></div>
385
                   <div class="form_title"><span >体温计</span></div>
324
                   <el-form-item label="消毒方式" label-width="110px">
386
                   <el-form-item label="消毒方式" label-width="110px">
325
-                      <el-input v-model="form.fourth_disinfection_methods"></el-input>
387
+                      <!-- <el-input v-model="form.fourth_disinfection_methods"></el-input> -->
388
+                      <el-select v-model="form.fourth_disinfection_methods" placeholder="请选择">
389
+                          <el-option
390
+                          v-for="(item,index) in DisinfectionMode"
391
+                          :key="index"
392
+                          :label="item.name"
393
+                          :value="item.name">
394
+                          </el-option>
395
+                      </el-select>
326
                   </el-form-item>
396
                   </el-form-item>
327
                   <el-form-item label="消毒液" label-width="110px">
397
                   <el-form-item label="消毒液" label-width="110px">
328
-                      <el-input v-model="form.fourth_disinfection_water"></el-input>
398
+                      <!-- <el-input v-model="form.fourth_disinfection_water"></el-input> -->
399
+                      <el-select v-model="form.fourth_disinfection_water" placeholder="请选择">
400
+                          <el-option
401
+                          v-for="(item,index) in disInfectionWaterList"
402
+                          :key="index"
403
+                          :label="item.name"
404
+                          :value="item.name">
405
+                          </el-option>
406
+                      </el-select>
329
                   </el-form-item>
407
                   </el-form-item>
330
                   <el-form-item label="消毒时间(h)" label-width="110px">
408
                   <el-form-item label="消毒时间(h)" label-width="110px">
331
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
409
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
352
                         style="width:100%;"
430
                         style="width:100%;"
353
                     ></el-date-picker>
431
                     ></el-date-picker>
354
                   </el-form-item>
432
                   </el-form-item>
355
-                  <el-form-item label="累计时间(h)" label-width="110px">
433
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
356
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
434
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
357
-                  </el-form-item>
435
+                  </el-form-item> -->
358
                   <el-form-item label="检测合格" label-width="110px">
436
                   <el-form-item label="检测合格" label-width="110px">
359
                       <div>
437
                       <div>
360
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
438
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
384
 
462
 
385
                   <div class="form_title"><span >体温枪</span></div>
463
                   <div class="form_title"><span >体温枪</span></div>
386
                   <el-form-item label="消毒方式" label-width="110px">
464
                   <el-form-item label="消毒方式" label-width="110px">
387
-                      <el-input v-model="form.last_disinfection_methods"></el-input>
465
+                      <!-- <el-input v-model="form.last_disinfection_methods"></el-input> -->
466
+                      <el-select v-model="form.last_disinfection_methods" placeholder="请选择">
467
+                          <el-option
468
+                          v-for="(item,index) in DisinfectionMode"
469
+                          :key="index"
470
+                          :label="item.name"
471
+                          :value="item.name">
472
+                          </el-option>
473
+                      </el-select>
388
                   </el-form-item>
474
                   </el-form-item>
389
                   <el-form-item label="消毒液" label-width="110px">
475
                   <el-form-item label="消毒液" label-width="110px">
390
-                      <el-input v-model="form.last_disinfection_water"></el-input>
476
+                      <!-- <el-input v-model="form.last_disinfection_water"></el-input> -->
477
+                      <el-select v-model="form.last_disinfection_water" placeholder="请选择">
478
+                          <el-option
479
+                          v-for="(item,index) in disInfectionWaterList"
480
+                          :key="index"
481
+                          :label="item.name"
482
+                          :value="item.name">
483
+                          </el-option>
484
+                      </el-select>
391
                   </el-form-item>
485
                   </el-form-item>
392
                   <el-form-item label="消毒时间(h)" label-width="110px">
486
                   <el-form-item label="消毒时间(h)" label-width="110px">
393
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
487
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
414
                         style="width:100%;"
508
                         style="width:100%;"
415
                     ></el-date-picker>
509
                     ></el-date-picker>
416
                   </el-form-item>
510
                   </el-form-item>
417
-                  <el-form-item label="累计时间(h)" label-width="110px">
511
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
418
                       <el-input v-model= "form.last_total_time"  ></el-input>
512
                       <el-input v-model= "form.last_total_time"  ></el-input>
419
-                  </el-form-item>
513
+                  </el-form-item> -->
420
                   <el-form-item label="检测合格" label-width="110px">
514
                   <el-form-item label="检测合格" label-width="110px">
421
                       <div>
515
                       <div>
422
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
516
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
469
                   </div>
563
                   </div>
470
                   <div class="form_title"><span >湿化瓶</span></div>
564
                   <div class="form_title"><span >湿化瓶</span></div>
471
                   <el-form-item label="消毒方式" label-width="110px">
565
                   <el-form-item label="消毒方式" label-width="110px">
472
-                      <el-input v-model="form.first_disinfection_methods"></el-input>
566
+                      <!-- <el-input v-model="form.first_disinfection_methods"></el-input> -->
567
+                      <el-select v-model="form.first_disinfection_methods" placeholder="请选择">
568
+                          <el-option
569
+                          v-for="(item,index) in DisinfectionMode"
570
+                          :key="index"
571
+                          :label="item.name"
572
+                          :value="item.name">
573
+                          </el-option>
574
+                      </el-select>
473
                   </el-form-item>
575
                   </el-form-item>
474
                   <el-form-item label="消毒液" label-width="110px">
576
                   <el-form-item label="消毒液" label-width="110px">
475
-                      <el-input v-model="form.first_disinfection_water"></el-input>
577
+                      <!-- <el-input v-model="form.first_disinfection_water"></el-input> -->
578
+                      <el-select v-model="form.first_disinfection_water" placeholder="请选择">
579
+                          <el-option
580
+                          v-for="(item,index) in disInfectionWaterList"
581
+                          :key="index"
582
+                          :label="item.name"
583
+                          :value="item.name">
584
+                          </el-option>
585
+                      </el-select>
476
                   </el-form-item>
586
                   </el-form-item>
477
                   <el-form-item label="消毒时间(h)" label-width="110px">
587
                   <el-form-item label="消毒时间(h)" label-width="110px">
478
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
588
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
499
                         style="width:100%;"
609
                         style="width:100%;"
500
                     ></el-date-picker>
610
                     ></el-date-picker>
501
                   </el-form-item>
611
                   </el-form-item>
502
-                  <el-form-item label="累计时间(h)" label-width="110px">
612
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
503
                       <el-input v-model= "form.first_total_time"  ></el-input>
613
                       <el-input v-model= "form.first_total_time"  ></el-input>
504
-                  </el-form-item>
614
+                  </el-form-item> -->
505
                   <el-form-item label="检测合格" label-width="110px">
615
                   <el-form-item label="检测合格" label-width="110px">
506
                       <div>
616
                       <div>
507
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
617
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
531
 
641
 
532
                   <div class="form_title"><span >止血带</span></div>
642
                   <div class="form_title"><span >止血带</span></div>
533
                   <el-form-item label="消毒方式" label-width="110px">
643
                   <el-form-item label="消毒方式" label-width="110px">
534
-                      <el-input v-model="form.sencond_disinfection_methods"></el-input>
644
+                      <!-- <el-input v-model="form.sencond_disinfection_methods"></el-input> -->
645
+                      <el-select v-model="form.sencond_disinfection_methods" placeholder="请选择">
646
+                          <el-option
647
+                          v-for="(item,index) in DisinfectionMode"
648
+                          :key="index"
649
+                          :label="item.name"
650
+                          :value="item.name">
651
+                          </el-option>
652
+                      </el-select>
535
                   </el-form-item>
653
                   </el-form-item>
536
                   <el-form-item label="消毒液" label-width="110px">
654
                   <el-form-item label="消毒液" label-width="110px">
537
-                      <el-input v-model="form.sencond_disinfection_water"></el-input>
655
+                      <!-- <el-input v-model="form.sencond_disinfection_water"></el-input> -->
656
+                      <el-select v-model="form.sencond_disinfection_water" placeholder="请选择">
657
+                          <el-option
658
+                          v-for="(item,index) in disInfectionWaterList"
659
+                          :key="index"
660
+                          :label="item.name"
661
+                          :value="item.name">
662
+                          </el-option>
663
+                      </el-select>
538
                   </el-form-item>
664
                   </el-form-item>
539
                   <el-form-item label="消毒时间(h)" label-width="110px">
665
                   <el-form-item label="消毒时间(h)" label-width="110px">
540
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
666
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
561
                         style="width:100%;"
687
                         style="width:100%;"
562
                     ></el-date-picker>
688
                     ></el-date-picker>
563
                   </el-form-item>
689
                   </el-form-item>
564
-                  <el-form-item label="累计时间(h)" label-width="110px">
690
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
565
                       <el-input v-model= "form.sencond_total_time"></el-input>
691
                       <el-input v-model= "form.sencond_total_time"></el-input>
566
-                  </el-form-item>
692
+                  </el-form-item> -->
567
                   <el-form-item label="检测合格" label-width="110px">
693
                   <el-form-item label="检测合格" label-width="110px">
568
                       <div>
694
                       <div>
569
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
695
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
593
 
719
 
594
                   <div class="form_title"><span >医疗垃圾桶</span></div>
720
                   <div class="form_title"><span >医疗垃圾桶</span></div>
595
                   <el-form-item label="消毒方式" label-width="110px">
721
                   <el-form-item label="消毒方式" label-width="110px">
596
-                      <el-input v-model="form.third_disinfection_methods"></el-input>
722
+                      <!-- <el-input v-model="form.third_disinfection_methods"></el-input> -->
723
+                      <el-select v-model="form.third_disinfection_methods" placeholder="请选择">
724
+                          <el-option
725
+                          v-for="(item,index) in DisinfectionMode"
726
+                          :key="index"
727
+                          :label="item.name"
728
+                          :value="item.name">
729
+                          </el-option>
730
+                      </el-select>
597
                   </el-form-item>
731
                   </el-form-item>
598
                   <el-form-item label="消毒液" label-width="110px">
732
                   <el-form-item label="消毒液" label-width="110px">
599
-                      <el-input v-model="form.third_disinfection_water"></el-input>
733
+                      <!-- <el-input v-model="form.third_disinfection_water"></el-input> -->
734
+                      <el-select v-model="form.third_disinfection_water" placeholder="请选择">
735
+                          <el-option
736
+                          v-for="(item,index) in disInfectionWaterList"
737
+                          :key="index"
738
+                          :label="item.name"
739
+                          :value="item.name">
740
+                          </el-option>
741
+                      </el-select>
600
                   </el-form-item>
742
                   </el-form-item>
601
                   <el-form-item label="消毒时间(h)" label-width="110px">
743
                   <el-form-item label="消毒时间(h)" label-width="110px">
602
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
744
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
623
                         style="width:100%;"
765
                         style="width:100%;"
624
                     ></el-date-picker>
766
                     ></el-date-picker>
625
                   </el-form-item>
767
                   </el-form-item>
626
-                  <el-form-item label="累计时间(h)" label-width="110px">
768
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
627
                       <el-input v-model= "form.third_total_time"  ></el-input>
769
                       <el-input v-model= "form.third_total_time"  ></el-input>
628
-                  </el-form-item>
770
+                  </el-form-item> -->
629
                   <el-form-item label="检测合格" label-width="110px" >
771
                   <el-form-item label="检测合格" label-width="110px" >
630
                       <div>
772
                       <div>
631
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
773
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
655
 
797
 
656
                   <div class="form_title"><span >体温计</span></div>
798
                   <div class="form_title"><span >体温计</span></div>
657
                   <el-form-item label="消毒方式" label-width="110px">
799
                   <el-form-item label="消毒方式" label-width="110px">
658
-                      <el-input v-model="form.fourth_disinfection_methods"></el-input>
800
+                      <!-- <el-input v-model="form.fourth_disinfection_methods"></el-input> -->
801
+                      <el-select v-model="form.fourth_disinfection_methods" placeholder="请选择">
802
+                          <el-option
803
+                          v-for="(item,index) in DisinfectionMode"
804
+                          :key="index"
805
+                          :label="item.name"
806
+                          :value="item.name">
807
+                          </el-option>
808
+                      </el-select>
659
                   </el-form-item>
809
                   </el-form-item>
660
                   <el-form-item label="消毒液" label-width="110px">
810
                   <el-form-item label="消毒液" label-width="110px">
661
-                      <el-input v-model="form.fourth_disinfection_water"></el-input>
811
+                      <!-- <el-input v-model="form.fourth_disinfection_water"></el-input> -->
812
+                      <el-select v-model="form.fourth_disinfection_water" placeholder="请选择">
813
+                          <el-option
814
+                          v-for="(item,index) in disInfectionWaterList"
815
+                          :key="index"
816
+                          :label="item.name"
817
+                          :value="item.name">
818
+                          </el-option>
819
+                      </el-select>
662
                   </el-form-item>
820
                   </el-form-item>
663
                   <el-form-item label="消毒时间(h)" label-width="110px">
821
                   <el-form-item label="消毒时间(h)" label-width="110px">
664
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
822
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
685
                         style="width:100%;"
843
                         style="width:100%;"
686
                     ></el-date-picker>
844
                     ></el-date-picker>
687
                   </el-form-item>
845
                   </el-form-item>
688
-                  <el-form-item label="累计时间(h)" label-width="110px">
846
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
689
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
847
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
690
-                  </el-form-item>
848
+                  </el-form-item> -->
691
                   <el-form-item label="检测合格" label-width="110px">
849
                   <el-form-item label="检测合格" label-width="110px">
692
                       <div>
850
                       <div>
693
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
851
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
717
 
875
 
718
                   <div class="form_title"><span >体温枪</span></div>
876
                   <div class="form_title"><span >体温枪</span></div>
719
                   <el-form-item label="消毒方式" label-width="110px">
877
                   <el-form-item label="消毒方式" label-width="110px">
720
-                      <el-input v-model="form.last_disinfection_methods"></el-input>
878
+                      <!-- <el-input v-model="form.last_disinfection_methods"></el-input> -->
879
+                      <el-select v-model="form.last_disinfection_methods" placeholder="请选择">
880
+                          <el-option
881
+                          v-for="(item,index) in DisinfectionMode"
882
+                          :key="index"
883
+                          :label="item.name"
884
+                          :value="item.name">
885
+                          </el-option>
886
+                      </el-select>
721
                   </el-form-item>
887
                   </el-form-item>
722
                   <el-form-item label="消毒液" label-width="110px">
888
                   <el-form-item label="消毒液" label-width="110px">
723
-                      <el-input v-model="form.last_disinfection_water"></el-input>
889
+                      <!-- <el-input v-model="form.last_disinfection_water"></el-input> -->
890
+                      <el-select v-model="form.last_disinfection_water" placeholder="请选择">
891
+                          <el-option
892
+                          v-for="(item,index) in disInfectionWaterList"
893
+                          :key="index"
894
+                          :label="item.name"
895
+                          :value="item.name">
896
+                          </el-option>
897
+                      </el-select>
724
                   </el-form-item>
898
                   </el-form-item>
725
                   <el-form-item label="消毒时间(h)" label-width="110px">
899
                   <el-form-item label="消毒时间(h)" label-width="110px">
726
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
900
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
747
                         style="width:100%;"
921
                         style="width:100%;"
748
                     ></el-date-picker>
922
                     ></el-date-picker>
749
                   </el-form-item>
923
                   </el-form-item>
750
-                  <el-form-item label="累计时间(h)" label-width="110px">
924
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
751
                       <el-input v-model= "form.last_total_time"  ></el-input>
925
                       <el-input v-model= "form.last_total_time"  ></el-input>
752
-                  </el-form-item>
926
+                  </el-form-item> -->
753
                   <el-form-item label="检测合格" label-width="110px">
927
                   <el-form-item label="检测合格" label-width="110px">
754
                       <div>
928
                       <div>
755
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
929
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
820
 
994
 
821
                             <tr v-for="(item,index) in tableData" :key="index">
995
                             <tr v-for="(item,index) in tableData" :key="index">
822
                                 <td>{{getTimes(item.record_date) }}</td>
996
                                 <td>{{getTimes(item.record_date) }}</td>
823
-                                <td>{{item.first_total_time}}</td>
824
-                                <td>{{getName(item.first_creator)}}</td>
825
-                                <td>{{item.sencond_total_time}}</td>
826
-                                <td>{{getName(item.sencond_creator)}}</td>
827
-                                <td>{{getTimes(item.third_total_time) }}</td>
828
-                                <td>{{getName(item.third_creator) }}</td>
829
-                                <td>{{ getTimes(item.fourth_total_time) }}</td>
830
-                                <td>{{getName(item.fourth_creator) }}</td>
831
-                                <td>{{ getTimes(item.last_total_time) }}</td>
832
-                                <td>{{ getName(item.last_creator) }}</td>
997
+                                <td>{{item.first_disinfection_time}}</td>
998
+                                <td>
999
+                                <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
1000
+                                   {{getName(item.first_creator)}}
1001
+                                  </span>
1002
+                                <span v-else>
1003
+                                    <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
1004
+                                </span>   
1005
+                                </td>
1006
+                                <td>{{item.sencond_disinfection_time}}</td>
1007
+                                <td>
1008
+                                 <span v-if="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator) == ''">
1009
+                                   {{getName(item.sencond_creator)}}
1010
+                                  </span>
1011
+                                <span v-else>
1012
+                                    <img style="height:30px;" :src="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator)" alt="" srcset="">
1013
+                                </span>   
1014
+                                </td>
1015
+                                <td>{{item.third_disinfection_time }}</td>
1016
+                                <td>
1017
+                                    <span v-if="setAdminUserES(item.third_creator?item.third_creator:item.third_creator) == ''">
1018
+                                   {{getName(item.third_creator)}}
1019
+                                  </span>
1020
+                                <span v-else>
1021
+                                    <img style="height:30px;" :src="setAdminUserES(item.third_creator?item.third_creator:item.third_creator)" alt="" srcset="">
1022
+                                </span>   
1023
+                                </td>
1024
+                                <td>{{ item.fourth_disinfection_time }}</td>
1025
+                                <td>
1026
+                                    <span v-if="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator) == ''">
1027
+                                   {{getName(item.fourth_creator)}}
1028
+                                  </span>
1029
+                                <span v-else>
1030
+                                    <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1031
+                                </span>   
1032
+                                </td>
1033
+                                <td>{{ item.last_disinfection_time}}</td>
1034
+                                <td>
1035
+                                    <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
1036
+                                   {{getName(item.last_creator)}}
1037
+                                  </span>
1038
+                                <span v-else>
1039
+                                    <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
1040
+                                </span>   
1041
+                                </td>
833
                               
1042
                               
834
                             </tr>
1043
                             </tr>
835
                          </table>   
1044
                          </table>   
877
             first_disinfection_water:"",// 消毒液
1086
             first_disinfection_water:"",// 消毒液
878
             first_disinfection_methods:"",//消毒方式
1087
             first_disinfection_methods:"",//消毒方式
879
             first_disinfection_time:"",//消毒时长
1088
             first_disinfection_time:"",//消毒时长
880
-            first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
881
-            first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
1089
+            first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
1090
+            first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
882
             first_total_time:"",//累计时间
1091
             first_total_time:"",//累计时间
883
             first_is_check:"1",//检验合格
1092
             first_is_check:"1",//检验合格
884
             first_modifications:"",//修改标志
1093
             first_modifications:"",//修改标志
887
             sencond_disinfection_water:"",// 消毒液
1096
             sencond_disinfection_water:"",// 消毒液
888
             sencond_disinfection_methods:"",//消毒方式
1097
             sencond_disinfection_methods:"",//消毒方式
889
             sencond_disinfection_time:"",//消毒时长
1098
             sencond_disinfection_time:"",//消毒时长
890
-            sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
891
-            sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
1099
+            sencond_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
1100
+            sencond_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
892
             sencond_total_time:"",//累计时间
1101
             sencond_total_time:"",//累计时间
893
             sencond_is_check:"1",//检验合格
1102
             sencond_is_check:"1",//检验合格
894
             sencond_modifications:"",//修改标志
1103
             sencond_modifications:"",//修改标志
897
             third_disinfection_water:"",// 消毒液
1106
             third_disinfection_water:"",// 消毒液
898
             third_disinfection_methods:"",//消毒方式
1107
             third_disinfection_methods:"",//消毒方式
899
             third_disinfection_time:"",//消毒时长
1108
             third_disinfection_time:"",//消毒时长
900
-            third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
901
-            third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
1109
+            third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
1110
+            third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
902
             third_total_time:"",//累计时间
1111
             third_total_time:"",//累计时间
903
             third_is_check:"1",//检验合格
1112
             third_is_check:"1",//检验合格
904
             third_modifications:"",//修改标志
1113
             third_modifications:"",//修改标志
907
             fourth_disinfection_water:"",// 消毒液
1116
             fourth_disinfection_water:"",// 消毒液
908
             fourth_disinfection_methods:"",//消毒方式
1117
             fourth_disinfection_methods:"",//消毒方式
909
             fourth_disinfection_time:"",//消毒时长
1118
             fourth_disinfection_time:"",//消毒时长
910
-            fourth_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
911
-            fourth_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
1119
+            fourth_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
1120
+            fourth_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
912
             fourth_total_time:"",//累计时间
1121
             fourth_total_time:"",//累计时间
913
             fourth_is_check:"1",//检验合格
1122
             fourth_is_check:"1",//检验合格
914
             fourth_modifications:"",//修改标志
1123
             fourth_modifications:"",//修改标志
917
             last_disinfection_water:"",// 消毒液
1126
             last_disinfection_water:"",// 消毒液
918
             last_disinfection_methods:"",//消毒方式
1127
             last_disinfection_methods:"",//消毒方式
919
             last_disinfection_time:"",//消毒时长
1128
             last_disinfection_time:"",//消毒时长
920
-            last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
921
-            last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
1129
+            last_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//开始时间
1130
+            last_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm'),//结束时间
922
             last_total_time:"",//累计时间
1131
             last_total_time:"",//累计时间
923
             last_is_check:"1",//检验合格
1132
             last_is_check:"1",//检验合格
924
             last_modifications:"",//修改标志
1133
             last_modifications:"",//修改标志
941
          total:0,
1150
          total:0,
942
          tableData: [],
1151
          tableData: [],
943
          hiddenShow:false,
1152
          hiddenShow:false,
1153
+         disInfectionWaterList:[
1154
+         { id: 1, name: "0.22%季铵盐" },
1155
+         { id: 2, name: "500mg/l含氯消毒剂" },
1156
+         { id: 3, name: "1000mg/l含氯消毒剂" },
1157
+         { id: 4, name: "1500mg/l含氯消毒剂" },
1158
+         { id: 5, name: "消毒湿巾" },
1159
+         {  id:6, name:"75%酒精"}
1160
+         ],
1161
+         DisinfectionMode: [
1162
+            { id: 1, name: "擦拭" },
1163
+            { id: 2, name: "浸泡" },
1164
+            { id: 3, name: "喷洒" }
1165
+         ],
1166
+         operators: [],
1167
+         operatorMaps:{},
1168
+         
944
         }
1169
         }
945
       },
1170
       },
946
       created(){
1171
       created(){
1024
                var list = response.data.data.list
1249
                var list = response.data.data.list
1025
                console.log("list222222",list)
1250
                console.log("list222222",list)
1026
                this.docList = list
1251
                this.docList = list
1252
+               this.operators = response.data.data.operators
1027
             }
1253
             }
1028
           })  
1254
           })  
1029
         },
1255
         },
1156
 
1382
 
1157
               this.form.fourth_disinfection_water = list.third_disinfection_water?list.third_disinfection_water:""
1383
               this.form.fourth_disinfection_water = list.third_disinfection_water?list.third_disinfection_water:""
1158
               this.form.fourth_disinfection_methods = list.third_disinfection_methods?list.third_disinfection_methods:""
1384
               this.form.fourth_disinfection_methods = list.third_disinfection_methods?list.third_disinfection_methods:""
1159
-              this.form.fourth_disinfection_time = list.third_disinfection_time?list.third_disinfection_time:""
1385
+              this.form.fourth_disinfection_time = list.fourth_disinfection_time?list.fourth_disinfection_time:""
1160
               this.form.fourth_start_time  =this.getTimeThree(list.third_start_time)
1386
               this.form.fourth_start_time  =this.getTimeThree(list.third_start_time)
1161
               this.form.fourth_end_time = this.getTimeThree(list.third_end_time)
1387
               this.form.fourth_end_time = this.getTimeThree(list.third_end_time)
1162
               this.form.fourth_total_time = list.third_total_time? list.third_total_time:""
1388
               this.form.fourth_total_time = list.third_total_time? list.third_total_time:""
1300
         lastendtime(val){
1526
         lastendtime(val){
1301
             this.form.last_end_time = val
1527
             this.form.last_end_time = val
1302
             this.form.last_disinfection_time = this.lastdisinfection_time
1528
             this.form.last_disinfection_time = this.lastdisinfection_time
1303
-        }
1529
+        },
1530
+        setAdminUserES(id) {
1531
+           
1532
+           if (id === 0) {
1533
+           return ''
1534
+           }
1535
+           var user_name = ""
1536
+           for(let i=0;i<this.operators.length;i++){
1537
+              if(id == this.operators[i].admin_user_id){
1538
+                 user_name = this.operators[i].url
1539
+              }
1540
+           }
1541
+           return user_name
1542
+           // if (id in this.operatorMaps) {
1543
+
1544
+           // return this.operatorMaps[id].url
1545
+
1546
+           // } else {
1547
+           // return ''
1548
+           // }
1549
+       },
1304
         
1550
         
1305
       }
1551
       }
1306
     }
1552
     }

+ 2 - 0
src/xt_pages/dialysis/PatientBox.vue Näytä tiedosto

136
                 <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
136
                 <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
137
                 <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
137
                 <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
138
                 <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
138
                 <span v-if="schedule.prescription.anticoagulant == 13">那屈肝素钙</span>
139
+                <span v-if="schedule.prescription.anticoagulant == 14">肝素钙注射液</span>
140
+                <span v-if="schedule.prescription.anticoagulant == 15">甲磺酸萘莫司他</span>
139
              </span>
141
              </span>
140
           </span>
142
           </span>
141
         </p>
143
         </p>

+ 26 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue Näytä tiedosto

2973
           return record[key] == target_value;
2973
           return record[key] == target_value;
2974
         }
2974
         }
2975
       },
2975
       },
2976
+      // getAge: function (val) {
2977
+      //   if (val.age == 0) {
2978
+      //     if (val.birthday == 0) {
2979
+      //       return "";
2980
+      //     }
2981
+      //     return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2982
+      //   } else {
2983
+      //     return val.age;
2984
+      //   }
2985
+      // },
2976
       getAge: function (val) {
2986
       getAge: function (val) {
2977
-        if (val.age == 0) {
2978
-          if (val.birthday == 0) {
2979
-            return "";
2980
-          }
2981
-          return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
2982
-        } else {
2983
-          return val.age;
2984
-        }
2987
+            var thisLen = val.id_card_no.length;
2988
+            var birth = "";
2989
+            if (thisLen == 15) {
2990
+                birth = "19" + val.id_card_no.substr(6, 6);
2991
+            } else {
2992
+                birth = val.id_card_no.substr(6, 8);
2993
+            }
2994
+            var birthtwo =
2995
+                birth.substr(0, 4) +
2996
+                "-" +
2997
+                birth.substr(4, 2) +
2998
+                "-" +
2999
+                birth.substr(6, 2);
3000
+
3001
+            var age = jsGetAge(birthtwo, "-");
3002
+            return age;
2985
       },
3003
       },
2986
       newAdviceGroupObject: function () {
3004
       newAdviceGroupObject: function () {
2987
         return Object.assign(
3005
         return Object.assign(

+ 27 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue Näytä tiedosto

1546
         return record[key] == target_value;
1546
         return record[key] == target_value;
1547
       }
1547
       }
1548
     },
1548
     },
1549
+    // getAge: function (val) {
1550
+    //   if (val.age == 0) {
1551
+    //     if (val.birthday == 0) {
1552
+    //       return "";
1553
+    //     }
1554
+    //     return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
1555
+    //   } else {
1556
+    //     return val.age;
1557
+    //   }
1558
+    // },
1549
     getAge: function (val) {
1559
     getAge: function (val) {
1550
-      if (val.age == 0) {
1551
-        if (val.birthday == 0) {
1552
-          return "";
1553
-        }
1554
-        return jsGetAge(uParseTime(val.birthday, "{y}-{m}-{d}"), "-");
1555
-      } else {
1556
-        return val.age;
1557
-      }
1558
-    },
1560
+            var thisLen = val.id_card_no.length;
1561
+            var birth = "";
1562
+            if (thisLen == 15) {
1563
+                birth = "19" + val.id_card_no.substr(6, 6);
1564
+            } else {
1565
+                birth = val.id_card_no.substr(6, 8);
1566
+            }
1567
+            var birthtwo =
1568
+                birth.substr(0, 4) +
1569
+                "-" +
1570
+                birth.substr(4, 2) +
1571
+                "-" +
1572
+                birth.substr(6, 2);
1573
+
1574
+            var age = jsGetAge(birthtwo, "-");
1575
+            return age;
1576
+      },
1559
     newAdviceGroupObject: function () {
1577
     newAdviceGroupObject: function () {
1560
       return Object.assign(
1578
       return Object.assign(
1561
         {},
1579
         {},

+ 93 - 9
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Näytä tiedosto

27
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
27
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
28
     </div>
28
     </div>
29
     <div class="cell clearfix" style="justify-content: space-between;">
29
     <div class="cell clearfix" style="justify-content: space-between;">
30
-      <div style="display:flex;">
30
+      <!-- <div style="display:flex;">
31
         <label class="title"> <span class="name">分区</span> : </label>
31
         <label class="title"> <span class="name">分区</span> : </label>
32
         <div class="time">
32
         <div class="time">
33
           <ul class>
33
           <ul class>
41
             </li>
41
             </li>
42
           </ul>
42
           </ul>
43
         </div>
43
         </div>
44
-      </div>
44
+      </div> -->
45
+      <label class="title"><span class="name">分区</span> : </label>
46
+      <el-select v-model="partition_id" multiple  placeholder="请选择分区" style="margin-left:-400px"  @change="selectPartitionType">
47
+        <el-option
48
+          v-for="item in partitionArrOne"
49
+          :key="item.id"
50
+          :label="item.name"
51
+          :value="item.id">
52
+        </el-option>
53
+      </el-select>
45
       <div>
54
       <div>
46
         <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
55
         <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
47
         <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
56
         <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
81
             {{scope.row.patient.name}}
90
             {{scope.row.patient.name}}
82
            </template>
91
            </template>
83
         </el-table-column>
92
         </el-table-column>
93
+        <el-table-column align="center" label="透析模式" v-if="dialysisSett.name==1">
94
+           <template slot-scope="scope">
95
+            <span v-if="scope.row.mode_id == 1">HD</span>
96
+            <span v-if="scope.row.mode_id == 2">HDF</span>
97
+            <span v-if="scope.row.mode_id == 3">HD+HP</span>
98
+            <span v-if="scope.row.mode_id == 4">HP</span>
99
+            <span v-if="scope.row.mode_id == 5">HF</span>
100
+            <span v-if="scope.row.mode_id == 6">SCUF</span>
101
+            <span v-if="scope.row.mode_id == 7">IUF</span>
102
+            <span v-if="scope.row.mode_id == 8">HFHD</span>
103
+            <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
104
+            <span v-if="scope.row.mode_id == 10">PHF</span>
105
+            <span v-if="scope.row.mode_id == 11">HFR</span>
106
+            <span v-if="scope.row.mode_id == 12">HDF+HP</span>
107
+            <span v-if="scope.row.mode_id == 13">CRRT</span>
108
+            <span v-if="scope.row.mode_id == 19">IUF+HD</span>
109
+            <span v-if="scope.row.mode_id == 20">UF</span>
110
+            <span v-if="scope.row.mode_id == 21">HD+</span>
111
+            <span v-if="scope.row.mode_id == 22">血浆胆红素吸附+HDF</span>
112
+            <span v-if="scope.row.mode_id == 23">血浆胆红素吸附</span>
113
+            <span v-if="scope.row.mode_id == 24">I-HDF</span>
114
+            <span v-if="scope.row.mode_id == 25">HD高通F</span>
115
+            <span v-if="scope.row.mode_id == 26">CVVH</span>
116
+            <span v-if="scope.row.mode_id == 27">CVVHD</span>
117
+            <span v-if="scope.row.mode_id == 28">CVVHDF</span>
118
+            <span v-if="scope.row.mode_id == 29">PE</span>
119
+            <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
120
+            <span v-if="scope.row.mode_id == 31">HPD</span>
121
+            <span v-if="scope.row.mode_id == 32">HDP</span>
122
+           </template>
123
+        </el-table-column>
84
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
124
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
85
            <template slot-scope="scope">
125
            <template slot-scope="scope">
86
             {{scope.row.patient.dialysis_no}}
126
             {{scope.row.patient.dialysis_no}}
489
         partion_type:0,
529
         partion_type:0,
490
         tableList:[],
530
         tableList:[],
491
         dialysisSett:{},
531
         dialysisSett:{},
492
-
532
+        partitionArrOne:[],
493
         dialogVisibleOne: false,
533
         dialogVisibleOne: false,
494
         prescription_status: false,
534
         prescription_status: false,
495
         week: false,
535
         week: false,
526
             return v.getTime() < new Date().getTime() - 86400000;
566
             return v.getTime() < new Date().getTime() - 86400000;
527
           },
567
           },
528
         },
568
         },
569
+        partition_id:0,
570
+        zoneList:[],
529
       }
571
       }
530
     },
572
     },
531
     open(){
573
     open(){
534
     created() {
576
     created() {
535
        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
577
        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
536
        this.displace_liqui_part_option = this.$store.getters.displace_liqui
578
        this.displace_liqui_part_option = this.$store.getters.displace_liqui
537
-       console.log("志愿液",this.displace_liqui_part_option)
579
+    
538
        var filedList = store.getters.xt_user.fileds
580
        var filedList = store.getters.xt_user.fileds
539
        var newArr = [
581
        var newArr = [
540
         {value:999999,filed_name_cn:"姓名"},
582
         {value:999999,filed_name_cn:"姓名"},
550
         }
592
         }
551
         this.predialysisConditionOptions = newArr
593
         this.predialysisConditionOptions = newArr
552
        }
594
        }
553
-     
554
-      this.getAllZone()
555
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
595
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
556
       var newDate = new Date();
596
       var newDate = new Date();
557
       var y = newDate.getFullYear();
597
       var y = newDate.getFullYear();
565
       this.query.schedule_type = 0
605
       this.query.schedule_type = 0
566
       this.query.partition_id = 0
606
       this.query.partition_id = 0
567
       this.query.page = 1
607
       this.query.page = 1
568
-      this.getlist()
608
+      this.getAllZone()
609
+     
610
+     
569
      
611
      
570
     },
612
     },
571
     methods: {
613
     methods: {
572
       getlist(){
614
       getlist(){
615
+      
616
+        
617
+        var str = ""
618
+         if(this.partition_id==0){
619
+            console.log("进阿里232332")
620
+            console.log("wowoowowow",this.zoneList.join(","))
621
+            str = this.zoneList.join(",")
622
+         }
623
+
624
+         if(this.partition_id!=0){
625
+           str = this.partition_id.join(",")
626
+         }
627
+         this.query.partition_id = ""
628
+         this.query.partition_id = str 
629
+      
573
         getDialysisParameter(this.query).then(response=>{
630
         getDialysisParameter(this.query).then(response=>{
574
             if(response.data.state == 1){
631
             if(response.data.state == 1){
575
               var list = response.data.data.list
632
               var list = response.data.data.list
633
+              
634
+              if(list!=null &&list.length>0){
635
+                for(let i=0;i<list.length;i++){
636
+                  list[i].sort = 0
637
+                  list[i].sort = list[i].device_number.sort
638
+                }
639
+      
640
+              }
641
+              list.sort(this.compare('sort'))
576
               this.list = list
642
               this.list = list
577
               this.total = response.data.data.total
643
               this.total = response.data.data.total
578
               this.dialysisSett = response.data.data.dialysisSett
644
               this.dialysisSett = response.data.data.dialysisSett
580
             }
646
             }
581
         }) 
647
         }) 
582
       },
648
       },
649
+      compare(p) { //这是比较函数
650
+        return function (m, n) {
651
+          var a = m[p];
652
+          var b = n[p];
653
+          return a - b; //升序
654
+        }
655
+      },
583
       handleSizeChange(val) {
656
       handleSizeChange(val) {
584
         this.query.limit = val;
657
         this.query.limit = val;
585
         this.getlist();
658
         this.getlist();
636
 
709
 
637
       },
710
       },
638
       selectPartitionType(partitionType) {
711
       selectPartitionType(partitionType) {
639
-        this.partitionType = partitionType
712
+        // this.partitionType = partitionType
640
         this.query.partition_id = partitionType
713
         this.query.partition_id = partitionType
641
         this.query.page = 1
714
         this.query.page = 1
642
 
715
 
654
             this.$message.error(response.data.msg)
727
             this.$message.error(response.data.msg)
655
             return false
728
             return false
656
           } else {
729
           } else {
730
+           
731
+
732
+            for(let i=0;i<response.data.data.zone.length;i++){
733
+               this.partitionArrOne.push(response.data.data.zone[i])
734
+               this.zoneList.push(response.data.data.zone[i].id)
735
+            }
657
             this.partitionArr = response.data.data.zone
736
             this.partitionArr = response.data.data.zone
737
+           
738
+            console.log("全部中",this.partitionArrOne)
658
             this.partitionArr.unshift({ id: 0, name: '全部' })
739
             this.partitionArr.unshift({ id: 0, name: '全部' })
740
+            this.getlist()
741
+            
659
           }
742
           }
660
         })
743
         })
661
       },
744
       },
662
       statistics() {
745
       statistics() {
663
          this.tableList = []
746
          this.tableList = []
747
+       
664
          var params = {
748
          var params = {
665
           schedule_type:this.schedule_type,
749
           schedule_type:this.schedule_type,
666
-          partion_type:this.partion_type,
750
+          partion_type:this.partitionType,
667
           selected_date:this.query.schedule_date,
751
           selected_date:this.query.schedule_date,
668
         }
752
         }
669
         getDialysisParameterGoodList(params).then(response=>{
753
         getDialysisParameterGoodList(params).then(response=>{

+ 48 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue Näytä tiedosto

28
                 <td width="50">序号</td>
28
                 <td width="50">序号</td>
29
                 <td width="100"  v-if="dialysisSett.device_number==1">透析机号</td>
29
                 <td width="100"  v-if="dialysisSett.device_number==1">透析机号</td>
30
                 <td width="100"  v-if="dialysisSett.name==1">姓名</td>
30
                 <td width="100"  v-if="dialysisSett.name==1">姓名</td>
31
+                <td width="100"  v-if="dialysisSett.name==1">透析模式</td>
31
                 <td width="100" v-if="dialysisSett.dialysis_no==1">透析号</td>
32
                 <td width="100" v-if="dialysisSett.dialysis_no==1">透析号</td>
32
                 <td width="100" v-if="dialysisSett.admission_number==1">住院(门诊)号</td>
33
                 <td width="100" v-if="dialysisSett.admission_number==1">住院(门诊)号</td>
33
                 <td width="100"  v-if="dialysisSett.weight_befor==1">透前体重</td>
34
                 <td width="100"  v-if="dialysisSett.weight_befor==1">透前体重</td>
61
                 <td width="100"  v-if="dialysisSett.name==1">
62
                 <td width="100"  v-if="dialysisSett.name==1">
62
                    {{item.patient.name}}
63
                    {{item.patient.name}}
63
                 </td>
64
                 </td>
65
+                <td width="100">
66
+                  <span v-if="item.mode_id == 1">HD</span>
67
+                  <span v-if="item.mode_id == 2">HDF</span>
68
+                  <span v-if="item.mode_id == 3">HD+HP</span>
69
+                  <span v-if="item.mode_id == 4">HP</span>
70
+                  <span v-if="item.mode_id == 5">HF</span>
71
+                  <span v-if="item.mode_id == 6">SCUF</span>
72
+                  <span v-if="item.mode_id == 7">IUF</span>
73
+                  <span v-if="item.mode_id == 8">HFHD</span>
74
+                  <span v-if="item.mode_id == 9">HFHD+HP</span>
75
+                  <span v-if="item.mode_id == 10">PHF</span>
76
+                  <span v-if="item.mode_id == 11">HFR</span>
77
+                  <span v-if="item.mode_id == 12">HDF+HP</span>
78
+                  <span v-if="item.mode_id == 13">CRRT</span>
79
+                  <span v-if="item.mode_id == 19">IUF+HD</span>
80
+                  <span v-if="item.mode_id == 20">UF</span>
81
+                  <span v-if="item.mode_id == 21">HD+</span>
82
+                  <span v-if="item.mode_id == 22">血浆胆红素吸附+HDF</span>
83
+                  <span v-if="item.mode_id == 23">血浆胆红素吸附</span>
84
+                  <span v-if="item.mode_id == 24">I-HDF</span>
85
+                  <span v-if="item.mode_id == 25">HD高通F</span>
86
+                  <span v-if="item.mode_id == 26">CVVH</span>
87
+                  <span v-if="item.mode_id == 27">CVVHD</span>
88
+                  <span v-if="item.mode_id == 28">CVVHDF</span>
89
+                  <span v-if="item.mode_id == 29">PE</span>
90
+                  <span v-if="item.mode_id == 30">血浆胆红素吸附+HP</span>
91
+                  <span v-if="item.mode_id == 31">HPD</span>
92
+                  <span v-if="item.mode_id == 32">HDP</span>
93
+                 
94
+                </td>
64
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
95
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
65
                    {{item.patient.dialysis_no}}
96
                    {{item.patient.dialysis_no}}
66
                 </td>
97
                 </td>
199
        var params = {
230
        var params = {
200
          schedule_date:this.$route.query.schedule_date,
231
          schedule_date:this.$route.query.schedule_date,
201
          schedule_type:this.$route.query.schedule_type,
232
          schedule_type:this.$route.query.schedule_type,
202
-         partion_id:this.$route.query.partion_id,
233
+         partition_id:this.$route.query.partion_id,
203
          page:this.$route.query.page,
234
          page:this.$route.query.page,
204
          limit:this.$route.query.limit,
235
          limit:this.$route.query.limit,
205
          ids:this.$route.query.ids,
236
          ids:this.$route.query.ids,
208
       getDialysisParameter(params).then(response=>{
239
       getDialysisParameter(params).then(response=>{
209
           if(response.data.state == 1){
240
           if(response.data.state == 1){
210
             var list = response.data.data.list
241
             var list = response.data.data.list
242
+            if(list!=null &&list.length>0){
243
+                for(let i=0;i<list.length;i++){
244
+                  list[i].sort = 0
245
+                  list[i].sort = list[i].device_number.sort
246
+                }
247
+      
248
+              }
249
+              list.sort(this.compare('sort'))
211
             this.list = list
250
             this.list = list
212
             this.dialysisSett = response.data.data.dialysisSett
251
             this.dialysisSett = response.data.data.dialysisSett
213
             console.log("设置",this.dialysisSett)
252
             console.log("设置",this.dialysisSett)
292
          }
331
          }
293
        }
332
        }
294
        return name
333
        return name
295
-     }
334
+     },
335
+     compare(p) { //这是比较函数
336
+        return function (m, n) {
337
+          var a = m[p];
338
+          var b = n[p];
339
+          return a - b; //升序
340
+        }
341
+      },
296
     
342
     
297
     }
343
     }
298
   }
344
   }

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

9
                 class="newDialog"
9
                 class="newDialog"
10
         >
10
         >
11
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
11
             <el-button style="position: absolute;left: 12%;top: 2%" @click="handlePatientInfo">{{ patient.name }}</el-button>
12
-            <span style="position: absolute;left: 22%;top: 3%">
12
+            <!-- <span style="position: absolute;left: 22%;top: 3%">
13
               透前体重: --kg
13
               透前体重: --kg
14
             </span>
14
             </span>
15
             <span style="position: absolute;left: 35%;top: 3%">
15
             <span style="position: absolute;left: 35%;top: 3%">
17
             </span>
17
             </span>
18
             <span style="position: absolute;left: 48%;top: 3%">
18
             <span style="position: absolute;left: 48%;top: 3%">
19
               衣物重:--kg
19
               衣物重:--kg
20
-            </span>
20
+            </span> -->
21
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
21
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
22
             <el-form
22
             <el-form
23
                     ref="dialysisPrescription"
23
                     ref="dialysisPrescription"
50
                         </el-form-item>
50
                         </el-form-item>
51
                     </el-col>
51
                     </el-col>
52
                     <el-col :span="8" v-if="isShows('透析时长')">
52
                     <el-col :span="8" v-if="isShows('透析时长')">
53
-                        <el-form-item label="透析时长(min): " prop="dialysis_duration_minute" :rules="isCheckmust('透析时长')">
53
+                        <el-form-item label="透析时长(min): " prop="dialysis_duration_minute">
54
                             <el-input
54
                             <el-input
55
                                     type="number"
55
                                     type="number"
56
                                     v-model="dialysisPrescription.dialysis_duration_minute"
56
                                     v-model="dialysisPrescription.dialysis_duration_minute"
2626
         if(moment().weekday() == 6){
2626
         if(moment().weekday() == 6){
2627
            total_day ="周六"
2627
            total_day ="周六"
2628
         }
2628
         }
2629
-        if(moment().weekday() == 7){
2629
+        if(moment().weekday() == 0){
2630
            total_day ="周日"
2630
            total_day ="周日"
2631
         }
2631
         }
2632
         console.log("---------",this.targetAdvices)
2632
         console.log("---------",this.targetAdvices)

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue Näytä tiedosto

28
                             规格:{{getSpecialName(it.drug_id)}} 
28
                             规格:{{getSpecialName(it.drug_id)}} 
29
                             
29
                             
30
                             </div>  
30
                             </div>  
31
-                            <div v-if="(org_id ==0 || org_id==10440) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
31
+                            <div v-if="(org_id ==0 || org_id==10440 || org_id == 10478) && org_id!=10278">单次用量:{{it.single_dose}}{{it.single_dose_unit }}</div>  
32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34
                              
34
                              
45
                             规格:{{getSpecialName(its.drug_id)}} 
45
                             规格:{{getSpecialName(its.drug_id)}} 
46
                             
46
                             
47
                             </div>  
47
                             </div>  
48
-                            <div v-if=" org_id ==0 || org_id==10440">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
48
+                            <div v-if=" org_id ==0 || org_id==10440 || org_id == 10478">单次用量:{{its.single_dose}}{{its.single_dose_unit }}</div>  
49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50
                             <div>给药途径:{{its.delivery_way}}</div>  
50
                             <div>给药途径:{{its.delivery_way}}</div>  
51
                         </div>
51
                         </div>

+ 32 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue Näytä tiedosto

3582
       }
3582
       }
3583
       return "";
3583
       return "";
3584
     },
3584
     },
3585
+    // getAge: function (val) {
3586
+    //   if (
3587
+    //     this.org_template_info.template_id == 2 ||
3588
+    //     this.org_template_info.template_id == 0
3589
+    //   ) {
3590
+    //     if (val.age == 0) {
3591
+    //       return jsGetAge(val.birth, "-");
3592
+    //     } else {
3593
+    //       return val.age;
3594
+    //     }
3595
+    //   } else {
3596
+    //     return jsGetAge(val.birth, "-");
3597
+    //   }
3598
+    // },
3585
     getAge: function (val) {
3599
     getAge: function (val) {
3586
-      if (
3587
-        this.org_template_info.template_id == 2 ||
3588
-        this.org_template_info.template_id == 0
3589
-      ) {
3590
-        if (val.age == 0) {
3591
-          return jsGetAge(val.birth, "-");
3592
-        } else {
3593
-          return val.age;
3594
-        }
3595
-      } else {
3596
-        return jsGetAge(val.birth, "-");
3597
-      }
3598
-    },
3600
+            var thisLen = val.id_card_no.length;
3601
+            var birth = "";
3602
+            if (thisLen == 15) {
3603
+                birth = "19" + val.id_card_no.substr(6, 6);
3604
+            } else {
3605
+                birth = val.id_card_no.substr(6, 8);
3606
+            }
3607
+            var birthtwo =
3608
+                birth.substr(0, 4) +
3609
+                "-" +
3610
+                birth.substr(4, 2) +
3611
+                "-" +
3612
+                birth.substr(6, 2);
3613
+
3614
+            var age = jsGetAge(birthtwo, "-");
3615
+            return age;
3616
+      },
3617
+  
3599
     newAdviceGroupObject: function () {
3618
     newAdviceGroupObject: function () {
3600
       return Object.assign(
3619
       return Object.assign(
3601
         {},
3620
         {},

+ 47 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue Näytä tiedosto

1244
                       <div>
1244
                       <div>
1245
                         性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1245
                         性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1246
                       </div>
1246
                       </div>
1247
-                      <div>年龄:{{ getoldAge() }}</div>
1247
+                      <div>年龄:{{ getAge(patientInfo) }}</div>
1248
                       <div>透析机号:&nbsp;{{ getNumber() }}</div>
1248
                       <div>透析机号:&nbsp;{{ getNumber() }}</div>
1249
                     </div>
1249
                     </div>
1250
                   </td>
1250
                   </td>
1621
       },
1621
       },
1622
     };
1622
     };
1623
   },
1623
   },
1624
-  methods: {
1624
+  methods: {   
1625
+    getAge: function (val) {
1626
+            var thisLen = val.id_card_no.length;
1627
+            var birth = "";
1628
+            if (thisLen == 15) {
1629
+                birth = "19" + val.id_card_no.substr(6, 6);
1630
+            } else {
1631
+                birth = val.id_card_no.substr(6, 8);
1632
+            }
1633
+            var birthtwo =
1634
+                birth.substr(0, 4) +
1635
+                "-" +
1636
+                birth.substr(4, 2) +
1637
+                "-" +
1638
+                birth.substr(6, 2);
1639
+
1640
+            var age = jsGetAge(birthtwo, "-");
1641
+            return age;
1642
+      },
1643
+
1644
+
1625
     // 获取当前年份,用于年龄计算
1645
     // 获取当前年份,用于年龄计算
1626
-    getoldAge() {
1627
-      let date = new Date();
1628
-      let year = date.getFullYear();
1629
-      let year_d =
1630
-        this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
1631
-      let year_m = this.xtdate.split("-")[1];
1632
-      let birth_m = this.patientInfo.birth.split("-")[1];
1633
-      let year_date = this.xtdate.split("-")[2];
1634
-      let birth_date = this.patientInfo.birth.split("-")[2];
1635
-      // console.log(year,'今年年月')
1636
-      // console.log(this.xtdate.split('-'),'病人就诊年月')
1637
-      console.log(this.patientInfo.birth, "病人生日");
1638
-      // console.log(year_d,'year_d')
1639
-      if (year_m < birth_m) {
1640
-        return year_d - 1;
1641
-      } else if (year_m == birth_m) {
1642
-        if (year_date < birth_date) {
1643
-          return year_d - 1;
1644
-        } else {
1645
-          return year_d;
1646
-        }
1647
-      } else {
1648
-        return year_d;
1649
-      }
1650
-    },
1646
+    // getoldAge() {
1647
+      // let date = new Date();
1648
+      // let year = date.getFullYear();
1649
+      // let year_d =
1650
+      //   this.xtdate.split("-")[0] - this.patientInfo.birth.split("-")[0];
1651
+      // let year_m = this.xtdate.split("-")[1];
1652
+      // let birth_m = this.patientInfo.birth.split("-")[1];
1653
+      // let year_date = this.xtdate.split("-")[2];
1654
+      // let birth_date = this.patientInfo.birth.split("-")[2];
1655
+      // // console.log(year,'今年年月')
1656
+      // // console.log(this.xtdate.split('-'),'病人就诊年月')
1657
+      // console.log(this.patientInfo.birth, "病人生日");
1658
+      // // console.log(year_d,'year_d')
1659
+      // if (year_m < birth_m) {
1660
+      //   return year_d - 1;
1661
+      // } else if (year_m == birth_m) {
1662
+      //   if (year_date < birth_date) {
1663
+      //     return year_d - 1;
1664
+      //   } else {
1665
+      //     return year_d;
1666
+      //   }
1667
+      // } else {
1668
+      //   return year_d;
1669
+      // }
1670
+    // },
1651
     getAdminUser(id) {
1671
     getAdminUser(id) {
1652
       if (id == 0) {
1672
       if (id == 0) {
1653
         return "";
1673
         return "";

+ 15 - 8
src/xt_pages/hospitalStation/doctorDesk.vue Näytä tiedosto

1275
                 var preTime = ''
1275
                 var preTime = ''
1276
 
1276
 
1277
                 if (prescription.pre_time == 0) {
1277
                 if (prescription.pre_time == 0) {
1278
-                  if (this.schedule.schedule_type == 1) {
1279
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1280
-                  } else if (this.schedule.schedule_type == 2) {
1281
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1282
-                  } else if (this.schedule.schedule_type == 3) {
1283
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1278
+                  if (this.$store.getters.xt_user.org.id != 10210 || this.$store.getters.xt_user.org.id != 0){
1279
+                    if (this.schedule.schedule_type == 1) {
1280
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
1281
+                    } else if (this.schedule.schedule_type == 2) {
1282
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
1283
+                    } else if (this.schedule.schedule_type == 3) {
1284
+                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
1285
+                    }
1286
+                  }else{
1287
+                    preTime = ""
1284
                   }
1288
                   }
1285
-                  // preTime = nowTime
1286
                 } else {
1289
                 } else {
1287
-                  preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1290
+                  if (this.$store.getters.xt_user.org.id != 10210  || this.$store.getters.xt_user.org.id != 0){
1291
+                    preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
1292
+                  }else{
1293
+                    preTime = ""
1294
+                  }
1288
                 }
1295
                 }
1289
 
1296
 
1290
                 let index = i + 1
1297
                 let index = i + 1

+ 2 - 2
src/xt_pages/management/components/UserForm.vue Näytä tiedosto

684
               >桶
684
               >桶
685
             </el-form-item>
685
             </el-form-item>
686
             <span style="color:red" v-show="showone"
686
             <span style="color:red" v-show="showone"
687
-              >您已个月未更换,请注意检测</span
687
+              >您已个月未更换,请注意检测</span
688
             >
688
             >
689
           </el-col>
689
           </el-col>
690
         </el-row>
690
         </el-row>
750
             >
750
             >
751
               <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
751
               <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
752
               <span style="color:red" v-show="showone"
752
               <span style="color:red" v-show="showone"
753
-                >您已个月未清洁,请检查</span
753
+                >您已个月未清洁,请检查</span
754
               >
754
               >
755
             </el-form-item>
755
             </el-form-item>
756
           </el-col>
756
           </el-col>

+ 11 - 4
src/xt_pages/management/home.vue Näytä tiedosto

1157
                                     <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
1157
                                     <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
1158
                                   </el-col>
1158
                                   </el-col>
1159
                                   <el-col :span="10">
1159
                                   <el-col :span="10">
1160
-                                     <el-form-item label="消毒状态:" required prop="disinfection">
1160
+                                     <el-form-item label="消毒状态:">
1161
                                         <el-select v-model="userform.disinfection" placeholder="请选择" >
1161
                                         <el-select v-model="userform.disinfection" placeholder="请选择" >
1162
                                            <el-option
1162
                                            <el-option
1163
                                             v-for="item in disinfection"
1163
                                             v-for="item in disinfection"
1213
                                     <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
1213
                                     <el-form-item style="visibility: hidden;" label="①机表"></el-form-item>
1214
                                   </el-col>
1214
                                   </el-col>
1215
                                    <el-col :span="10">
1215
                                    <el-col :span="10">
1216
-                                     <el-form-item label="消毒状态:" required prop="disinfection_status">
1216
+                                     <el-form-item label="消毒状态:">
1217
                                         <el-select v-model="userform.disinfection_status" placeholder="请选择" >
1217
                                         <el-select v-model="userform.disinfection_status" placeholder="请选择" >
1218
                                            <el-option
1218
                                            <el-option
1219
                                             v-for="item in disinfection"
1219
                                             v-for="item in disinfection"
1290
                                       <el-form-item label="规格:">
1290
                                       <el-form-item label="规格:">
1291
                                           <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
1291
                                           <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
1292
                                       </el-form-item>
1292
                                       </el-form-item>
1293
-                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1293
+                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1294
                                    </el-col>
1294
                                    </el-col>
1295
                                 </el-row>
1295
                                 </el-row>
1296
                                 <el-row>
1296
                                 <el-row>
1334
                                    <el-col :span="8">
1334
                                    <el-col :span="8">
1335
                                       <el-form-item label="空气滤网清洁:">
1335
                                       <el-form-item label="空气滤网清洁:">
1336
                                         <el-checkbox v-model="userform.clean">清洁</el-checkbox>
1336
                                         <el-checkbox v-model="userform.clean">清洁</el-checkbox>
1337
-                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1337
+                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1338
                                       </el-form-item>
1338
                                       </el-form-item>
1339
                                      </el-col>
1339
                                      </el-col>
1340
                                    <el-col :span="8">
1340
                                    <el-col :span="8">
4529
         if (this.userform.user_total == ""){
4529
         if (this.userform.user_total == ""){
4530
           this.userform.user_total = 0
4530
           this.userform.user_total = 0
4531
         }
4531
         }
4532
+
4533
+        if(this.userform.disinfection == ""){
4534
+          this.userform.disinfection  = 0
4535
+        }
4536
+        if(this.userform.disinfection_status == ""){
4537
+           this.userform.disinfection_status = 0
4538
+        }
4532
         this.userform.user_total = parseInt(this.userform.user_total)
4539
         this.userform.user_total = parseInt(this.userform.user_total)
4533
 
4540
 
4534
         console.log("user_form",this.userform)
4541
         console.log("user_form",this.userform)

+ 3 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue Näytä tiedosto

63
         <div style="display:flex;justify-content: space-between;">
63
         <div style="display:flex;justify-content: space-between;">
64
             <div style="position: absolute;top:190px;left:50px"></div>
64
             <div style="position: absolute;top:190px;left:50px"></div>
65
             <div style="position: absolute;top:190px;left:130px"></div>
65
             <div style="position: absolute;top:190px;left:130px"></div>
66
-            <div style="position: absolute;top:190px;left:180px"></div>
67
-            <div style="position: absolute;top:190px;left:260px"></div>
66
+            <div style="position: absolute;top:190px;left:180px">诊察费</div>
67
+            <div style="position: absolute;top:190px;left:260px">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
68
             <div style="position: absolute;top:190px;left:340px">材料费</div>
68
             <div style="position: absolute;top:190px;left:340px">材料费</div>
69
             <div style="position: absolute;top:190px;left:420px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
69
             <div style="position: absolute;top:190px;left:420px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
70
             <div style="position: absolute;top:190px;left:480px"></div>
70
             <div style="position: absolute;top:190px;left:480px"></div>
182
                 console.log('res',res)
182
                 console.log('res',res)
183
                 this.list = res.data.data
183
                 this.list = res.data.data
184
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
184
                 this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
185
-                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal
185
+                                    this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
186
                 if(this.totalPrice == 0){
186
                 if(this.totalPrice == 0){
187
 
187
 
188
                   this.totalPrice = this.list.medfee_sumamt
188
                   this.totalPrice = this.list.medfee_sumamt

+ 8 - 9
src/xt_pages/outpatientCharges/summary.vue Näytä tiedosto

116
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
116
           <el-button v-if="$store.getters.xt_user.org_id == 10106 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten">报表下载2</el-button>
117
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
117
           <el-button v-if="$store.getters.xt_user.org_id == 10318 || $store.getters.xt_user.org_id == 0" size="small" type="primary" @click="export_detail_ten_two">报表下载3</el-button>
118
 
118
 
119
-          <!--          <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
119
+<!--                    <el-button  size="small" type="primary" @click="export_detail_ten_three">报表下载4</el-button>-->
120
 
120
 
121
 
121
 
122
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
122
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
124
           <!--          </el-button-->
124
           <!--          </el-button-->
125
           <!--          >-->
125
           <!--          >-->
126
 
126
 
127
-                              <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>
128
-          <!--          <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
129
-          <!--          <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
130
-<!--                    <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
131
-<!--          <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
132
-
133
-          <!--          <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
127
+<!--           <el-button size="small" type="primary" @click="export_detail_three">报表下载12</el-button>-->
128
+          <!-- <el-button size="small" type="primary" @click="export_detail_four">报表下载3</el-button>-->
129
+          <!-- <el-button size="small" type="primary" @click="export_detail_five">报表下载3</el-button>-->
130
+          <!-- <el-button size="small" type="primary" @click="export_detail_six">报表下载9</el-button>-->
131
+          <!-- <el-button size="small" type="primary" @click="export_detail_tenone">报表下载10</el-button>-->
132
+          <!--  <el-button size="small" type="primary" @click="export_detail_seven">报表下载4</el-button>-->
134
 
133
 
135
 
134
 
136
         </div>
135
         </div>
1215
                 name: order.patient.name,
1214
                 name: order.patient.name,
1216
                 id_card_no: order.patient.id_card_no,
1215
                 id_card_no: order.patient.id_card_no,
1217
                 year: "2023",
1216
                 year: "2023",
1218
-                month: "03",
1217
+                month: "04",
1219
                 code: data[b].code,
1218
                 code: data[b].code,
1220
                 pric: data[b].total ,
1219
                 pric: data[b].total ,
1221
                 item_name: data[b].name,
1220
                 item_name: data[b].name,

File diff suppressed because it is too large
+ 554 - 557
src/xt_pages/outpatientTool/components/detail.vue


+ 10 - 4
src/xt_pages/stock/detail/print.vue Näytä tiedosto

51
               <td style="line-height: 50px">
51
               <td style="line-height: 50px">
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53
                 <span v-if="type == 2">
53
                 <span v-if="type == 2">
54
-                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583">{{getStockCount(item.good_id) }}</span>
54
+                  <span  v-if="org_id == 3907 || org_id == 9919 || org_id == 9583 || org_id == 0">
55
+                    <!-- {{getStockCount(item.good_id) }} -->
56
+                    {{getMySelfCount(item.good_id) }}
57
+                  </span>
55
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
56
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
59
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{getWarehouseOut(item.good_id)}}</span>
57
-                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191">{{getStockCount(item.good_id) }}</span>
60
+                  <span v-if="org_id!=3907&&org_id!=10265 &&org_id!=9919&&org_id!=10285&&org_id!=9583&&org_id!=10215&&org_id!=10210&&org_id!=9671 &&org_id!=9679 &&org_id!=9675 && org_id!=10188&& org_id!=10217&& org_id!=9956&& org_id!=10191 && org_id!=0">{{getStockCount(item.good_id) }}</span>
58
                 </span>
61
                 </span>
59
 
62
 
60
                 <span v-if="type == 4"> {{ item.count }}</span>
63
                 <span v-if="type == 4"> {{ item.count }}</span>
75
               <td style="line-height:50px">
78
               <td style="line-height:50px">
76
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
77
                 <span v-if="type == 2">
80
                 <span v-if="type == 2">
78
-                  <span v-if="org_id == 3907 || org_id ==9919">
79
-                     {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}}
81
+                  <span v-if="org_id == 3907 || org_id ==9919 || org_id == 0">
82
+                    <!-- {{(getStockCount(item.good_id) * item.buy_price).toFixed(2)}} -->
83
+                     {{(getMySelfCount(item.good_id) * item.buy_price).toFixed(2)}}
84
+                     
80
                   </span>
85
                   </span>
81
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
82
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
87
                    <span v-if="org_id == 10210 || org_id == 9671 || org_id == 9675 || org_id == 9679 || org_id == 10188 || org_id == 10217 || org_id == 9956 || org_id == 10191">{{(getWarehouseOut(item.good_id)*item.packing_price).toFixed(2)}}</span>
380
            var list = response.data.data.list
385
            var list = response.data.data.list
381
            console.log("新的",list)
386
            console.log("新的",list)
382
            this.stockDatas = list
387
            this.stockDatas = list
388
+           //自动出库数据
383
            var stockTotal = response.data.data.stockTotal
389
            var stockTotal = response.data.data.stockTotal
384
           this.stockTotal = stockTotal
390
           this.stockTotal = stockTotal
385
 
391
 

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Näytä tiedosto

834
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
834
           this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
835
         }
835
         }
836
 
836
 
837
-        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671){
837
+        if(this.orgId  == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 0){
838
 
838
 
839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
840
         }
840
         }
842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
843
           console.log("out_count232233232332",this.tableOut[i].out_count)
843
           console.log("out_count232233232332",this.tableOut[i].out_count)
844
         }
844
         }
845
-        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919){
845
+        if(this.orgId!=10265 && this.orgId !=10215  && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0){
846
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
846
           this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
847
         }
847
         }
848
        }
848
        }

+ 19 - 19
src/xt_pages/user/Physicalexamination.vue Näytä tiedosto

124
                     <el-row   >
124
                     <el-row   >
125
                       <el-col :span="5" style="margin-left: 10px;">
125
                       <el-col :span="5" style="margin-left: 10px;">
126
                         <el-form-item label="贫血容貌:">
126
                         <el-form-item label="贫血容貌:">
127
-                          <el-select disabled v-model="form.pinxuerongmao" placeholder="请选择" style="width: 40%;">
127
+                          <el-select disabled v-model="form.pinxuerongmao" placeholder="请选择" style="width: 50%;">
128
                             <el-option
128
                             <el-option
129
                               v-for="item in pinxuerongmao_options"
129
                               v-for="item in pinxuerongmao_options"
130
                               :key="item.value"
130
                               :key="item.value"
137
                       </el-col>
137
                       </el-col>
138
                       <el-col :span="5" >
138
                       <el-col :span="5" >
139
                         <el-form-item label="体位:">
139
                         <el-form-item label="体位:">
140
-                          <el-select disabled v-model="form.tiwei" placeholder="请选择" style="width: 40%;">
140
+                          <el-select disabled v-model="form.tiwei" placeholder="请选择" style="width: 50%;">
141
                             <el-option
141
                             <el-option
142
                               v-for="item in tiwei_options"
142
                               v-for="item in tiwei_options"
143
                               :key="item.value"
143
                               :key="item.value"
149
                       </el-col>
149
                       </el-col>
150
                       <el-col :span="5" >
150
                       <el-col :span="5" >
151
                         <el-form-item label="浮肿:">
151
                         <el-form-item label="浮肿:">
152
-                          <el-select disabled v-model="form.fuzhong" placeholder="请选择" style="width: 40%;">
152
+                          <el-select disabled v-model="form.fuzhong" placeholder="请选择" style="width: 50%;">
153
                             <el-option
153
                             <el-option
154
                               v-for="item in fuzhong_options"
154
                               v-for="item in fuzhong_options"
155
                               :key="item.value"
155
                               :key="item.value"
162
                       </el-col>
162
                       </el-col>
163
                       <el-col :span="7" >
163
                       <el-col :span="7" >
164
                         <el-form-item label="出血点/瘀斑/血肿:">
164
                         <el-form-item label="出血点/瘀斑/血肿:">
165
-                          <el-select disabled v-model="form.chuxuedian" placeholder="请选择" style="width: 40%;">
165
+                          <el-select disabled v-model="form.chuxuedian" placeholder="请选择" style="width: 50%;">
166
                             <el-option
166
                             <el-option
167
                               v-for="item in chuxuedian_options"
167
                               v-for="item in chuxuedian_options"
168
                               :key="item.value"
168
                               :key="item.value"
178
                     <el-row >
178
                     <el-row >
179
                       <el-col :span="6" style="margin-left: 10px;">
179
                       <el-col :span="6" style="margin-left: 10px;">
180
                         <el-form-item label="发育:">
180
                         <el-form-item label="发育:">
181
-                          <el-select disabled v-model="form.fayu" placeholder="请选择" style="width: 40%;">
181
+                          <el-select disabled v-model="form.fayu" placeholder="请选择" style="width: 50%;">
182
                             <el-option
182
                             <el-option
183
                               v-for="item in fayu_options"
183
                               v-for="item in fayu_options"
184
                               :key="item.value"
184
                               :key="item.value"
191
                       </el-col>
191
                       </el-col>
192
                       <el-col :span="6" >
192
                       <el-col :span="6" >
193
                         <el-form-item label="营养:">
193
                         <el-form-item label="营养:">
194
-                          <el-select disabled v-model="form.yinyang" placeholder="请选择" style="width: 40%;">
194
+                          <el-select disabled v-model="form.yinyang" placeholder="请选择" style="width: 50%;">
195
                             <el-option
195
                             <el-option
196
                               v-for="item in yinyang_options"
196
                               v-for="item in yinyang_options"
197
                               :key="item.value"
197
                               :key="item.value"
203
                       </el-col>
203
                       </el-col>
204
                       <el-col :span="6" >
204
                       <el-col :span="6" >
205
                         <el-form-item label="神志:">
205
                         <el-form-item label="神志:">
206
-                          <el-select disabled v-model="form.shenzhi" placeholder="请选择" style="width: 40%;">
206
+                          <el-select disabled v-model="form.shenzhi" placeholder="请选择" style="width: 50%;">
207
                             <el-option
207
                             <el-option
208
                               v-for="item in shenzhi_options"
208
                               v-for="item in shenzhi_options"
209
                               :key="item.value"
209
                               :key="item.value"
226
                     <el-row >
226
                     <el-row >
227
                       <el-col :span="6" style="margin-left: 10px;">
227
                       <el-col :span="6" style="margin-left: 10px;">
228
                         <el-form-item label="皮肤黏膜:">
228
                         <el-form-item label="皮肤黏膜:">
229
-                          <el-select disabled v-model="form.pifunianmo" placeholder="请选择" style="width: 45%;">
229
+                          <el-select disabled v-model="form.pifunianmo" placeholder="请选择" style="width: 50%;">
230
                             <el-option
230
                             <el-option
231
                               v-for="item in pifunianmo_options"
231
                               v-for="item in pifunianmo_options"
232
                               :key="item.value"
232
                               :key="item.value"
239
                       </el-col>
239
                       </el-col>
240
                       <el-col :span="5" >
240
                       <el-col :span="5" >
241
                         <el-form-item label="部位:">
241
                         <el-form-item label="部位:">
242
-                          <el-input disabled v-model="form.buwei" placeholder="请输入内容" style="width: 45%;"></el-input>
242
+                          <el-input disabled v-model="form.buwei" placeholder="请输入内容" style="width: 50%;"></el-input>
243
                         </el-form-item>
243
                         </el-form-item>
244
                       </el-col>
244
                       </el-col>
245
                       <el-col :span="5" >
245
                       <el-col :span="5" >
246
                         <el-form-item label="程度:">
246
                         <el-form-item label="程度:">
247
-                          <el-input disabled v-model="form.chengdu" placeholder="请输入内容" style="width: 45%;"></el-input>
247
+                          <el-input disabled v-model="form.chengdu" placeholder="请输入内容" style="width: 50%;"></el-input>
248
                         </el-form-item>
248
                         </el-form-item>
249
 
249
 
250
                       </el-col>
250
                       </el-col>
251
                       <el-col :span="7" >
251
                       <el-col :span="7" >
252
                         <el-form-item label="皮下出血:">
252
                         <el-form-item label="皮下出血:">
253
-                          <el-select disabled v-model="form.pixiachuxue" placeholder="请选择" style="width: 45%;">
253
+                          <el-select disabled v-model="form.pixiachuxue" placeholder="请选择" style="width: 50%;">
254
                             <el-option
254
                             <el-option
255
                               v-for="item in pixiachuxue_options"
255
                               v-for="item in pixiachuxue_options"
256
                               :key="item.value"
256
                               :key="item.value"
265
                     <el-row >
265
                     <el-row >
266
                       <el-col :span="6" style="margin-left: 10px;">
266
                       <el-col :span="6" style="margin-left: 10px;">
267
                         <el-form-item label="紫癜:">
267
                         <el-form-item label="紫癜:">
268
-                          <el-select disabled v-model="form.zidian" placeholder="请选择" style="width: 45%;">
268
+                          <el-select disabled v-model="form.zidian" placeholder="请选择" style="width: 50%;">
269
                             <el-option
269
                             <el-option
270
                               v-for="item in zidian_options"
270
                               v-for="item in zidian_options"
271
                               :key="item.value"
271
                               :key="item.value"
278
                       </el-col>
278
                       </el-col>
279
                       <el-col :span="6" >
279
                       <el-col :span="6" >
280
                         <el-form-item label="皮肤温度:">
280
                         <el-form-item label="皮肤温度:">
281
-                          <el-select disabled v-model="form.pifuwendu" placeholder="请选择" style="width: 45%;">
281
+                          <el-select disabled v-model="form.pifuwendu" placeholder="请选择" style="width: 50%;">
282
                             <el-option
282
                             <el-option
283
                               v-for="item in pifuwendu_options"
283
                               v-for="item in pifuwendu_options"
284
                               :key="item.value"
284
                               :key="item.value"
306
                     <el-row >
306
                     <el-row >
307
                       <el-col :span="8"  style="margin-left: 10px;">
307
                       <el-col :span="8"  style="margin-left: 10px;">
308
                         <el-form-item label="浅表淋巴肿大:">
308
                         <el-form-item label="浅表淋巴肿大:">
309
-                          <el-select disabled v-model="form.linbazhongda" placeholder="请选择" style="width: 45%;">
309
+                          <el-select disabled v-model="form.linbazhongda" placeholder="请选择" style="width: 50%;">
310
                             <el-option
310
                             <el-option
311
                               v-for="item in linbazhongda_options"
311
                               v-for="item in linbazhongda_options"
312
                               :key="item.value"
312
                               :key="item.value"
334
                     <el-row >
334
                     <el-row >
335
                       <el-col :span="6" style="margin-left: 10px;">
335
                       <el-col :span="6" style="margin-left: 10px;">
336
                         <el-form-item label="眼睑:">
336
                         <el-form-item label="眼睑:">
337
-                          <el-select disabled v-model="form.yanlian" placeholder="请选择" style="width: 45%;">
337
+                          <el-select disabled v-model="form.yanlian" placeholder="请选择" style="width: 50%;">
338
                             <el-option
338
                             <el-option
339
                               v-for="item in yanlian_options"
339
                               v-for="item in yanlian_options"
340
                               :key="item.value"
340
                               :key="item.value"
347
                       </el-col>
347
                       </el-col>
348
                       <el-col :span="6" >
348
                       <el-col :span="6" >
349
                         <el-form-item label="瞳孔(等大等圆):">
349
                         <el-form-item label="瞳孔(等大等圆):">
350
-                          <el-select disabled v-model="form.tongkong" placeholder="请选择" style="width: 45%;">
350
+                          <el-select disabled v-model="form.tongkong" placeholder="请选择" style="width: 50%;">
351
                             <el-option
351
                             <el-option
352
                               v-for="item in tongkong_options"
352
                               v-for="item in tongkong_options"
353
                               :key="item.value"
353
                               :key="item.value"
360
                       </el-col>
360
                       </el-col>
361
                       <el-col :span="5" >
361
                       <el-col :span="5" >
362
                         <el-form-item label="左(mm):">
362
                         <el-form-item label="左(mm):">
363
-                          <el-input disabled v-model="form.zuo" placeholder="请输入内容" style="width: 45%;"></el-input>
363
+                          <el-input disabled v-model="form.zuo" placeholder="请输入内容" style="width: 50%;"></el-input>
364
                         </el-form-item>
364
                         </el-form-item>
365
 
365
 
366
                       </el-col>
366
                       </el-col>
367
                       <el-col :span="5" >
367
                       <el-col :span="5" >
368
                         <el-form-item label="右(mm):">
368
                         <el-form-item label="右(mm):">
369
-                          <el-input disabled v-model="form.you" placeholder="请输入内容" style="width: 45%;"></el-input>
369
+                          <el-input disabled v-model="form.you" placeholder="请输入内容" style="width: 50%;"></el-input>
370
                         </el-form-item>
370
                         </el-form-item>
371
                       </el-col>
371
                       </el-col>
372
                     </el-row>
372
                     </el-row>
3087
     }
3087
     }
3088
 
3088
 
3089
     }
3089
     }
3090
-    
3090
+
3091
   </style>
3091
   </style>
3092
   <style>
3092
   <style>
3093
   /* .el-input--medium .el-input__inner {
3093
   /* .el-input--medium .el-input__inner {

+ 3 - 2
src/xt_pages/user/courseOfDisease.vue Näytä tiedosto

72
             <el-col :span="15">
72
             <el-col :span="15">
73
               <div class="record_content_panel">
73
               <div class="record_content_panel">
74
                 <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
74
                 <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
75
-                
75
+
76
                 <div class="content" style='word-break: break-all;word-wrap: break-word'>
76
                 <div class="content" style='word-break: break-all;word-wrap: break-word'>
77
                   <span v-if="current_select_record" v-html="current_select_record.content"></span>
77
                   <span v-if="current_select_record" v-html="current_select_record.content"></span>
78
                   <span v-else></span>
78
                   <span v-else></span>
776
 <script>
776
 <script>
777
   import PatientSidebar from './components/PatientSidebar'
777
   import PatientSidebar from './components/PatientSidebar'
778
   import Editor from '@/components/Editor'
778
   import Editor from '@/components/Editor'
779
+  const moment = require('moment')
779
 
780
 
780
   import {
781
   import {
781
     createCourseOfDiseaseRecord,
782
     createCourseOfDiseaseRecord,
802
         date: [],
803
         date: [],
803
         start_time: '',
804
         start_time: '',
804
         end_time: '',
805
         end_time: '',
805
-        course_of_disease_time: '',
806
+        course_of_disease_time: moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),
806
         records: [],
807
         records: [],
807
         doctors: [],
808
         doctors: [],
808
         current_select_record: null,
809
         current_select_record: null,

+ 64 - 64
src/xt_pages/user/firstDisease.vue Näytä tiedosto

16
                       <el-button size="small"  type="danger" @click="deleteAction">删除</el-button>
16
                       <el-button size="small"  type="danger" @click="deleteAction">删除</el-button>
17
                     </span>
17
                     </span>
18
         </div>
18
         </div>
19
-      
19
+
20
         <div class="cell clearfix">
20
         <div class="cell clearfix">
21
           <label class="title"><span class="name">日期查询</span> : </label>
21
           <label class="title"><span class="name">日期查询</span> : </label>
22
           <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
22
           <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
59
             </el-col>
59
             </el-col>
60
             <el-col :span="14">
60
             <el-col :span="14">
61
               <div class="record_content_panel">
61
               <div class="record_content_panel">
62
-                <div style="background-color:rgb(245, 247, 250)" class="title">出院小结内容</div>
62
+                <div style="background-color:rgb(245, 247, 250)" class="title">首次病程内容</div>
63
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;word-break: break-all;word-wrap: break-word">标题:
63
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;word-break: break-all;word-wrap: break-word">标题:
64
                    {{hosDetail.title}}
64
                    {{hosDetail.title}}
65
                 </div>
65
                 </div>
66
-            
67
-                
68
-                <div 
66
+
67
+
68
+                <div
69
                 style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;
69
                 style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;
70
                 word-break: break-all;word-wrap: break-word">
70
                 word-break: break-all;word-wrap: break-word">
71
                 记录医师:
71
                 记录医师:
72
                    {{getDoctor(hosDetail.doctor)}}
72
                    {{getDoctor(hosDetail.doctor)}}
73
                 </div>
73
                 </div>
74
-                
75
-                 
76
-                
74
+
75
+
76
+
77
                  <div style="padding:10px;
77
                  <div style="padding:10px;
78
                  border-bottom:1px solid #DCDFE6;line-height:20px;
78
                  border-bottom:1px solid #DCDFE6;line-height:20px;
79
                  word-break: break-all;word-wrap: break-word">主诉内容:
79
                  word-break: break-all;word-wrap: break-word">主诉内容:
80
-                   <span v-html="hosDetail.main_content"></span> 
80
+                   <span v-html="hosDetail.main_content"></span>
81
                  </div>
81
                  </div>
82
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;
82
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;
83
                  word-break: break-all;word-wrap: break-word">病例特点:
83
                  word-break: break-all;word-wrap: break-word">病例特点:
84
-                   <span v-html="hosDetail.patient_case"></span> 
84
+                   <span v-html="hosDetail.patient_case"></span>
85
                    <div>
85
                    <div>
86
                     <div v-for="item in hosDetail.template_inspection_content">
86
                     <div v-for="item in hosDetail.template_inspection_content">
87
                     <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
87
                     <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
116
                  word-break: break-all;word-wrap: break-word">诊疗计划:
116
                  word-break: break-all;word-wrap: break-word">诊疗计划:
117
                     <span v-html="hosDetail.treatment_plan"></span>
117
                     <span v-html="hosDetail.treatment_plan"></span>
118
                  </div>
118
                  </div>
119
-               
119
+
120
               </div>
120
               </div>
121
             </el-col>
121
             </el-col>
122
           </el-row>
122
           </el-row>
123
         </div>
123
         </div>
124
       </div>
124
       </div>
125
 
125
 
126
-  
127
-     
126
+
127
+
128
       <el-dialog title="新增首次病程记录" width="60%" top="5vh" :visible.sync="show_dialog">
128
       <el-dialog title="新增首次病程记录" width="60%" top="5vh" :visible.sync="show_dialog">
129
         <div>
129
         <div>
130
           <div class="new_record_form">
130
           <div class="new_record_form">
141
                   :value="item.admin_user_id">
141
                   :value="item.admin_user_id">
142
                   </el-option>
142
                   </el-option>
143
               </el-select>
143
               </el-select>
144
-            
144
+
145
               <label class="title"><span class="name">记录日期</span> : </label>
145
               <label class="title"><span class="name">记录日期</span> : </label>
146
               <el-date-picker v-model="form.record_date"
146
               <el-date-picker v-model="form.record_date"
147
-                    prefix-icon="el-icon-date" 
147
+                    prefix-icon="el-icon-date"
148
                     style="width: 200px;"
148
                     style="width: 200px;"
149
                     type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
149
                     type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
150
                     value-format="yyyy-MM-dd HH:mm">
150
                     value-format="yyyy-MM-dd HH:mm">
151
-              </el-date-picker>   
151
+              </el-date-picker>
152
             </div>
152
             </div>
153
-           
154
-        
155
-      
153
+
154
+
155
+
156
             <div class="cell clearfix" style="margin-top:10px">
156
             <div class="cell clearfix" style="margin-top:10px">
157
               <label class="title"><span class="name">主诉内容</span> : </label>
157
               <label class="title"><span class="name">主诉内容</span> : </label>
158
                 <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
158
                 <el-select v-model="form.main_content_id" placeholder="可选择病程模板" @change="changeMainContent">
159
                   <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
159
                   <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
160
                             :value="option.content"></el-option>
160
                             :value="option.content"></el-option>
161
                 </el-select>
161
                 </el-select>
162
-                
162
+
163
                  <div class="textarea_panel">
163
                  <div class="textarea_panel">
164
                     <keep-alive>
164
                     <keep-alive>
165
                       <editor ref="editor"
165
                       <editor ref="editor"
177
                 </el-select>
177
                 </el-select>
178
 
178
 
179
                 <el-button type="primary" @click="toInspection">选择检验检查</el-button>
179
                 <el-button type="primary" @click="toInspection">选择检验检查</el-button>
180
-               
180
+
181
                  <div class="textarea_panel">
181
                  <div class="textarea_panel">
182
                     <keep-alive>
182
                     <keep-alive>
183
                       <editor ref="editorOne"
183
                       <editor ref="editorOne"
211
                   <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
211
                   <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
212
                             :value="option.content"></el-option>
212
                             :value="option.content"></el-option>
213
                 </el-select>
213
                 </el-select>
214
-                
214
+
215
                  <div class="textarea_panel">
215
                  <div class="textarea_panel">
216
                     <keep-alive>
216
                     <keep-alive>
217
                       <editor ref="editorTwo"
217
                       <editor ref="editorTwo"
227
                   <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
227
                   <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
228
                             :value="option.content"></el-option>
228
                             :value="option.content"></el-option>
229
                 </el-select>
229
                 </el-select>
230
-                
230
+
231
                  <div class="textarea_panel">
231
                  <div class="textarea_panel">
232
                     <keep-alive>
232
                     <keep-alive>
233
                       <editor ref="editorThree"
233
                       <editor ref="editorThree"
243
                   <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
243
                   <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
244
                             :value="option.content"></el-option>
244
                             :value="option.content"></el-option>
245
                 </el-select>
245
                 </el-select>
246
-                
246
+
247
                  <div class="textarea_panel">
247
                  <div class="textarea_panel">
248
                     <keep-alive>
248
                     <keep-alive>
249
                       <editor ref="editorFour"
249
                       <editor ref="editorFour"
259
                   <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
259
                   <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
260
                             :value="option.content"></el-option>
260
                             :value="option.content"></el-option>
261
                 </el-select>
261
                 </el-select>
262
-                
262
+
263
                  <div class="textarea_panel">
263
                  <div class="textarea_panel">
264
                     <keep-alive>
264
                     <keep-alive>
265
                       <editor ref="editorFive"
265
                       <editor ref="editorFive"
271
                 </div>
271
                 </div>
272
             </div>
272
             </div>
273
 
273
 
274
-    
274
+
275
             <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
275
             <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
276
               <el-button @click="show_dialog = false">取消</el-button>
276
               <el-button @click="show_dialog = false">取消</el-button>
277
               <el-button type="primary"
277
               <el-button type="primary"
281
           </div>
281
           </div>
282
         </div>
282
         </div>
283
       </el-dialog>
283
       </el-dialog>
284
-      
284
+
285
       <el-dialog title="编辑首次病程记录" width="60%" top="5vh" :visible.sync="edit_show_dialog">
285
       <el-dialog title="编辑首次病程记录" width="60%" top="5vh" :visible.sync="edit_show_dialog">
286
         <div>
286
         <div>
287
           <div class="new_record_form">
287
           <div class="new_record_form">
298
                   :value="item.admin_user_id">
298
                   :value="item.admin_user_id">
299
                   </el-option>
299
                   </el-option>
300
               </el-select>
300
               </el-select>
301
-            
301
+
302
               <label class="title"><span class="name">记录日期</span> : </label>
302
               <label class="title"><span class="name">记录日期</span> : </label>
303
               <el-date-picker v-model="form.record_date"
303
               <el-date-picker v-model="form.record_date"
304
-                    prefix-icon="el-icon-date" 
304
+                    prefix-icon="el-icon-date"
305
                     style="width: 200px;"
305
                     style="width: 200px;"
306
                     type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
306
                     type="datetime" placeholder="选择日期时间" align="right" format="yyyy-MM-dd HH:mm"
307
                     value-format="yyyy-MM-dd HH:mm">
307
                     value-format="yyyy-MM-dd HH:mm">
308
-              </el-date-picker>   
308
+              </el-date-picker>
309
+
309
 
310
 
310
-              
311
             </div>
311
             </div>
312
 
312
 
313
              <div class="cell clearfix" style="margin-top:10px">
313
              <div class="cell clearfix" style="margin-top:10px">
316
                   <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
316
                   <el-option v-for="(option, index) in mainContentList" :key="index" :label="option.title"
317
                             :value="option.content"></el-option>
317
                             :value="option.content"></el-option>
318
                 </el-select>
318
                 </el-select>
319
-                
319
+
320
                  <div class="textarea_panel">
320
                  <div class="textarea_panel">
321
                     <keep-alive>
321
                     <keep-alive>
322
                       <editor ref="editorTen"
322
                       <editor ref="editorTen"
366
                   <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
366
                   <el-option v-for="(option, index) in tentativeDiagnosisList" :key="index" :label="option.title"
367
                             :value="option.content"></el-option>
367
                             :value="option.content"></el-option>
368
                 </el-select>
368
                 </el-select>
369
-                
369
+
370
                  <div class="textarea_panel">
370
                  <div class="textarea_panel">
371
                     <keep-alive>
371
                     <keep-alive>
372
                       <editor ref="editorTenTwo"
372
                       <editor ref="editorTenTwo"
382
                   <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
382
                   <el-option v-for="(option, index) in diagnosticBasisList" :key="index" :label="option.title"
383
                             :value="option.content"></el-option>
383
                             :value="option.content"></el-option>
384
                 </el-select>
384
                 </el-select>
385
-                
385
+
386
                  <div class="textarea_panel">
386
                  <div class="textarea_panel">
387
                     <keep-alive>
387
                     <keep-alive>
388
                       <editor ref="editorTenThree"
388
                       <editor ref="editorTenThree"
398
                   <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
398
                   <el-option v-for="(option, index) in differentialDiagnosisList" :key="index" :label="option.title"
399
                             :value="option.content"></el-option>
399
                             :value="option.content"></el-option>
400
                 </el-select>
400
                 </el-select>
401
-                
401
+
402
                  <div class="textarea_panel">
402
                  <div class="textarea_panel">
403
                     <keep-alive>
403
                     <keep-alive>
404
                       <editor ref="editorTenFour"
404
                       <editor ref="editorTenFour"
414
                   <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
414
                   <el-option v-for="(option, index) in treateMentList" :key="index" :label="option.title"
415
                             :value="option.content"></el-option>
415
                             :value="option.content"></el-option>
416
                 </el-select>
416
                 </el-select>
417
-                
417
+
418
                  <div class="textarea_panel">
418
                  <div class="textarea_panel">
419
                     <keep-alive>
419
                     <keep-alive>
420
                       <editor ref="editorTenFive"
420
                       <editor ref="editorTenFive"
477
                       value-format="yyyy-MM">
477
                       value-format="yyyy-MM">
478
                     </el-date-picker>
478
                     </el-date-picker>
479
                  </el-form-item>
479
                  </el-form-item>
480
-              
480
+
481
                 </div>
481
                 </div>
482
               </el-form-item>
482
               </el-form-item>
483
             </el-row>
483
             </el-row>
497
                         @current-change="changeCurrentRecord"
497
                         @current-change="changeCurrentRecord"
498
                         @selection-change="selectionChangeOne"
498
                         @selection-change="selectionChangeOne"
499
                         :row-class-name="tableRow"
499
                         :row-class-name="tableRow"
500
-                       
500
+
501
                       >
501
                       >
502
                         <el-table-column type="selection" width="60" align="center"></el-table-column>
502
                         <el-table-column type="selection" width="60" align="center"></el-table-column>
503
                         <el-table-column label="检验项目" align="center">
503
                         <el-table-column label="检验项目" align="center">
514
                           color: '#606266'
514
                           color: '#606266'
515
                         }"
515
                         }"
516
                         :row-style="{ color: '#303133' }" :data="tableData"
516
                         :row-style="{ color: '#303133' }" :data="tableData"
517
-                                border highlight-current-row 
517
+                                border highlight-current-row
518
                                 :row-class-name="tableRow"
518
                                 :row-class-name="tableRow"
519
 
519
 
520
                       >
520
                       >
677
       }
677
       }
678
     },
678
     },
679
     created() {
679
     created() {
680
-     
680
+
681
       this.patient_id = this.$route.params && this.$route.params.id
681
       this.patient_id = this.$route.params && this.$route.params.id
682
-     
683
-     
682
+
683
+
684
       var now = new Date()
684
       var now = new Date()
685
       this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
685
       this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
686
 
686
 
706
         '-' +
706
         '-' +
707
         (nowDay < 10 ? '0' + nowDay : nowDay)
707
         (nowDay < 10 ? '0' + nowDay : nowDay)
708
       this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
708
       this.other_start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' + (nowDay < 10 ? '0' + nowDay : nowDay)
709
-      
709
+
710
      this.getAllDoctorList()
710
      this.getAllDoctorList()
711
      this.getlist()
711
      this.getlist()
712
      this.getInspectionMajor()
712
      this.getInspectionMajor()
730
       },
730
       },
731
 
731
 
732
       startTimeChange(val){
732
       startTimeChange(val){
733
-       
733
+
734
        this.start_time = val
734
        this.start_time = val
735
        this.getlist()
735
        this.getlist()
736
       },
736
       },
745
 
745
 
746
        },
746
        },
747
       changeCurrentRecordTwo(row){
747
       changeCurrentRecordTwo(row){
748
-       
748
+
749
         this.form.id = 0
749
         this.form.id = 0
750
         if(row!=null){
750
         if(row!=null){
751
-          this.form.id = row.id 
751
+          this.form.id = row.id
752
           this.getFirstDetail(row.id)
752
           this.getFirstDetail(row.id)
753
         }
753
         }
754
       },
754
       },
776
        var ids = arr.join(",")
776
        var ids = arr.join(",")
777
        this.ids = ids
777
        this.ids = ids
778
       },
778
       },
779
-     
779
+
780
       changeMainContent(content){
780
       changeMainContent(content){
781
        this.form.main_content = content
781
        this.form.main_content = content
782
       },
782
       },
795
       changeTreateMentContent(content){
795
       changeTreateMentContent(content){
796
         this.form.treatment_plan = content
796
         this.form.treatment_plan = content
797
       },
797
       },
798
-      
798
+
799
       createAction(){
799
       createAction(){
800
-       
800
+
801
          if(this.form.doctor == ""){
801
          if(this.form.doctor == ""){
802
             this.form.doctor = 0
802
             this.form.doctor = 0
803
          }
803
          }
820
           doctor:this.form.doctor,
820
           doctor:this.form.doctor,
821
           project_id:this.projectStr,
821
           project_id:this.projectStr,
822
           inspect_date:this.projectIndate,
822
           inspect_date:this.projectIndate,
823
-         
823
+
824
          }
824
          }
825
          if(params.project_id == undefined){
825
          if(params.project_id == undefined){
826
             params.project_id = ""
826
             params.project_id = ""
827
          }
827
          }
828
          console.log("params",params)
828
          console.log("params",params)
829
-        
829
+
830
          createFirstDisease(params).then(response=>{
830
          createFirstDisease(params).then(response=>{
831
             if(response.data.state == 1){
831
             if(response.data.state == 1){
832
               var list = response.data.data.firstDisease
832
               var list = response.data.data.firstDisease
833
-             
833
+
834
               this.$message.success("保存成功!")
834
               this.$message.success("保存成功!")
835
               this.show_dialog = false
835
               this.show_dialog = false
836
               this.getlist()
836
               this.getlist()
884
              var inspectlist = response.data.data.inspectlist
884
              var inspectlist = response.data.data.inspectlist
885
              let arr = this.unique(inspectlist,'project_name')
885
              let arr = this.unique(inspectlist,'project_name')
886
              this.hosDetail.template_inspection_content = arr
886
              this.hosDetail.template_inspection_content = arr
887
-            
887
+
888
              console.log("内容233323232323223",this.hosDetail)
888
              console.log("内容233323232323223",this.hosDetail)
889
            }
889
            }
890
         })
890
         })
921
         this.getHospitalSummaryDetailOne(this.form.id)
921
         this.getHospitalSummaryDetailOne(this.form.id)
922
       },
922
       },
923
       updateAction(){
923
       updateAction(){
924
-    
924
+
925
         if(this.form.doctor == ""){
925
         if(this.form.doctor == ""){
926
             this.form.doctor = 0
926
             this.form.doctor = 0
927
          }
927
          }
957
          if(this.$refs.editorTenTwo.content == ""){
957
          if(this.$refs.editorTenTwo.content == ""){
958
             tentative_diagnosis = this.hosDetail.tentative_diagnosis
958
             tentative_diagnosis = this.hosDetail.tentative_diagnosis
959
          }else{
959
          }else{
960
-            tentative_diagnosis = this.$refs.editorTenTwo.content 
960
+            tentative_diagnosis = this.$refs.editorTenTwo.content
961
          }
961
          }
962
 
962
 
963
          if(this.$refs.editorTenThree.content == ""){
963
          if(this.$refs.editorTenThree.content == ""){
977
          }else{
977
          }else{
978
              treatment_plan = this.$refs.editorTenFive.content
978
              treatment_plan = this.$refs.editorTenFive.content
979
          }
979
          }
980
-      
980
+
981
          var params = {
981
          var params = {
982
           id:this.form.detai_id,
982
           id:this.form.detai_id,
983
           patient_id:parseInt(this.patient_id),
983
           patient_id:parseInt(this.patient_id),
1004
             // this.$refs.monthlyPlanTable.setCurrentRow(detail)
1004
             // this.$refs.monthlyPlanTable.setCurrentRow(detail)
1005
             this.getlist()
1005
             this.getlist()
1006
           }
1006
           }
1007
-        }) 
1007
+        })
1008
       },
1008
       },
1009
       deleteAction(){
1009
       deleteAction(){
1010
           if(this.ids.length == 0){
1010
           if(this.ids.length == 0){
1029
               }
1029
               }
1030
             })
1030
             })
1031
           }).catch(() => {
1031
           }).catch(() => {
1032
-          }) 
1032
+          })
1033
       },
1033
       },
1034
       addAction(){
1034
       addAction(){
1035
         this.form.title = ""
1035
         this.form.title = ""
1039
         this.form.diagnostic_basis = ""
1039
         this.form.diagnostic_basis = ""
1040
         this.form.differential_diagnosis = ""
1040
         this.form.differential_diagnosis = ""
1041
         this.form.treatment_plan = ""
1041
         this.form.treatment_plan = ""
1042
-        
1042
+
1043
         this.show_dialog = true
1043
         this.show_dialog = true
1044
       },
1044
       },
1045
       toInspection(){
1045
       toInspection(){
1135
         }
1135
         }
1136
         getInitDataList(params).then(response=>{
1136
         getInitDataList(params).then(response=>{
1137
           if(response.data.state == 1){
1137
           if(response.data.state == 1){
1138
-           
1138
+
1139
              var modelist = response.data.data.modelist
1139
              var modelist = response.data.data.modelist
1140
              console.log("modelist",modelist)
1140
              console.log("modelist",modelist)
1141
              var docList = response.data.data.docList
1141
              var docList = response.data.data.docList
1191
           if(response.data.state == 1){
1191
           if(response.data.state == 1){
1192
             var list = response.data.data.list
1192
             var list = response.data.data.list
1193
            let arr = this.unique(list,'project_name')
1193
            let arr = this.unique(list,'project_name')
1194
-         
1194
+
1195
            this.form.patient_case_one = arr
1195
            this.form.patient_case_one = arr
1196
            this.dialogVisibleInspection = false
1196
            this.dialogVisibleInspection = false
1197
-          
1197
+
1198
            console.log("2323232owowowowowow",this.form.id)
1198
            console.log("2323232owowowowowow",this.form.id)
1199
           }
1199
           }
1200
         })
1200
         })
1232
         })
1232
         })
1233
       }
1233
       }
1234
     },
1234
     },
1235
-  
1236
-    
1235
+
1236
+
1237
   }
1237
   }
1238
 </script>
1238
 </script>
1239
 
1239
 

+ 1 - 1
src/xt_pages/user/inspectionCheck.vue Näytä tiedosto

112
                       <img  :src="item.value" alt="">
112
                       <img  :src="item.value" alt="">
113
                     </el-row>
113
                     </el-row>
114
                     <el-row>
114
                     <el-row>
115
-                      <div>{{item.item_name}}</div>
115
+                      <div style="word-break: break-all;word-wrap: break-word">{{item.item_name}}</div>
116
                     </el-row>
116
                     </el-row>
117
                   </div>
117
                   </div>
118
                 </el-col>
118
                 </el-col>

+ 38 - 29
src/xt_pages/user/ktv.vue Näytä tiedosto

162
               <el-form-item
162
               <el-form-item
163
                 :label="item.item_name"
163
                 :label="item.item_name"
164
                 :key="item.item_id"
164
                 :key="item.item_id"
165
+                :rules="item.item_name != 'URR(%)'?[
166
+                { required: true, message: '请输入数值', trigger: 'blur' }
167
+              ]:[]"
165
                 :prop="'formItem.' + index + '.value'"
168
                 :prop="'formItem.' + index + '.value'"
166
               >
169
               >
167
                 <el-input
170
                 <el-input
614
     calURR(items, value){
617
     calURR(items, value){
615
       let valueOne = 0
618
       let valueOne = 0
616
       let valueTwo = 0
619
       let valueTwo = 0
617
-      let valueThree = 0
618
-      let valueFour = 0
619
-      let valueSix = 0
620
 
620
 
621
       for(let i = 0; i < items.length; i++){
621
       for(let i = 0; i < items.length; i++){
622
         if(items[i].item_name == "透析前尿素氮"){
622
         if(items[i].item_name == "透析前尿素氮"){
623
-
624
           valueOne = items[i].value
623
           valueOne = items[i].value
625
         }
624
         }
626
         if(items[i].item_name == "透析后尿素氮"){
625
         if(items[i].item_name == "透析后尿素氮"){
627
           valueTwo = items[i].value
626
           valueTwo = items[i].value
628
         }
627
         }
629
-        if(items[i].item_name == "透析时间"){
630
-
631
-          valueThree = items[i].value
632
-
633
-        }
634
-        if(items[i].item_name == "实际超滤量"){
635
-          valueFour = items[i].value
636
-
637
-        }
638
-        if(items[i].item_name == "透后体重"){
639
-          valueSix = items[i].value
640
-        }
641
-
642
       }
628
       }
643
-      console.log(valueOne)
644
-      console.log(valueTwo)
645
-      console.log(valueThree)
646
-      console.log(valueFour)
647
-      console.log(valueSix)
648
-
649
-      value = ((valueOne - valueTwo) / valueOne) * 100
629
+      if(valueOne.length == 0){
630
+        this.$message.error("透析前尿素氮不能为空")
631
+        return
632
+      }
633
+      if(valueTwo.length == 0){
634
+        this.$message.error("透析后尿素氮不能为空")
635
+        return
636
+      }
637
+      value = (((valueOne - valueTwo) / valueOne) * 100).toFixed(2)
650
       for(let i = 0; i < items.length; i++){
638
       for(let i = 0; i < items.length; i++){
651
         if(items[i].item_name == "URR(%)"){
639
         if(items[i].item_name == "URR(%)"){
652
           items[i].value = value
640
           items[i].value = value
658
       let valueTwo = 0
646
       let valueTwo = 0
659
       let valueThree = 0
647
       let valueThree = 0
660
       let valueFour = 0
648
       let valueFour = 0
661
-      let valueFive = 0
662
       let valueSix = 0
649
       let valueSix = 0
663
       for(let i = 0; i < items.length; i++){
650
       for(let i = 0; i < items.length; i++){
664
         if(items[i].item_name == "透析前尿素氮"){
651
         if(items[i].item_name == "透析前尿素氮"){
676
           valueFour = items[i].value
663
           valueFour = items[i].value
677
 
664
 
678
         }
665
         }
679
-        if(items[i].item_name == "透前体重"){
680
-          valueFive = items[i].value
681
-        }
666
+
682
 
667
 
683
         if(items[i].item_name == "透后体重"){
668
         if(items[i].item_name == "透后体重"){
684
           valueSix = items[i].value
669
           valueSix = items[i].value
685
         }
670
         }
686
 
671
 
687
       }
672
       }
688
-      value = ((valueTwo/valueOne - (0.008 * valueThree)) + (4 - (3.5 * (valueTwo / valueOne)))  * ((valueSix - valueFive) / valueSix)).toFixed(2)
689
 
673
 
690
 
674
 
675
+      if(valueOne.length == 0){
676
+        this.$message.error("透析前尿素氮不能为空")
677
+        return
678
+      }
679
+      if(valueTwo.length == 0){
680
+        this.$message.error("透析后尿素氮不能为空")
681
+        return
682
+      }
683
+      if(valueThree.length == 0){
684
+        this.$message.error("透析时间不能为空")
685
+        return
686
+      }
687
+      if(valueFour.length == 0){
688
+        this.$message.error("实际超滤量不能为空")
689
+        return
690
+      }
691
+
692
+      if(valueSix.length == 0){
693
+        this.$message.error("透后体重不能为空")
694
+        return
695
+      }
696
+      value = ((-Math.log((valueTwo /valueOne - (0.008 * valueThree)))) +  (4-3.5*(valueTwo/valueOne)) * valueFour/valueSix).toFixed(5)
691
 
697
 
692
       for(let i = 0; i < items.length; i++){
698
       for(let i = 0; i < items.length; i++){
693
         if(items[i].item_name == "KT/V"){
699
         if(items[i].item_name == "KT/V"){
777
       })
783
       })
778
     },
784
     },
779
     submitNew(formName) {
785
     submitNew(formName) {
786
+
787
+
788
+
780
       this.$refs[formName].validate(valid => {
789
       this.$refs[formName].validate(valid => {
781
         if (valid) {
790
         if (valid) {
782
           this.formLoading = true
791
           this.formLoading = true