瀏覽代碼

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

杨青 2 年之前
父節點
當前提交
deaabab701
共有 27 個文件被更改,包括 1522 次插入896 次删除
  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 查看文件

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

+ 19 - 1
src/api/device.js 查看文件

@@ -265,7 +265,7 @@ export function updateNewAirDisinfect(data){
265 265
   
266 266
   return request({
267 267
     url:"/api/manage/updatenewairdisinfect",
268
-    method:post,
268
+    method:"post",
269 269
     data:data,
270 270
   })
271 271
 }
@@ -322,4 +322,22 @@ export function deleteObjectTableDisinfect(id,params){
322 322
     method:"get",
323 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 查看文件

@@ -886,6 +886,36 @@ const global_config = {
886 886
         zongliang_unit: 'mg',
887 887
         gaimingcheng_unit: '',
888 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 921
     anticoagulants_set: {

+ 148 - 49
src/xt_pages/device/airDisinfectTwo.vue 查看文件

@@ -28,7 +28,7 @@
28 28
           </div>
29 29
           <div style="float:right;margin-bottom:10px;">
30 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 33
           </div>
34 34
           <div class="tab_air">
@@ -54,12 +54,7 @@
54 54
                 </el-table-column>
55 55
                 <el-table-column prop="date" label="责任人" align="center" min-width="50">
56 56
                     <template slot-scope="scope">
57
-                     <span v-if="setAdminUserES(scope.row.first_creator?scope.row.first_creator:scope.row.first_creator) == ''">
58 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 59
                     </template>
65 60
                 </el-table-column>
@@ -76,13 +71,8 @@
76 71
                 </el-table-column>
77 72
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
78 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 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 76
                    </template>
87 77
                 </el-table-column>
88 78
 
@@ -98,13 +88,8 @@
98 88
                 </el-table-column>
99 89
                 <el-table-column prop="city" label="负责人" align="center" min-width="50">
100 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 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 93
                     </template>
109 94
                 </el-table-column>
110 95
 
@@ -115,13 +100,8 @@
115 100
                 </el-table-column>
116 101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
117 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 105
                     </template>
126 106
                 </el-table-column>
127 107
                 <el-table-column prop="city" label="操作" align="center" min-width="150">
@@ -275,7 +255,7 @@
275 255
                   <el-form-item label="开始时间" label-width="110px">
276 256
                     <el-date-picker
277 257
                         type="datetime"
278
-                        format="yyyy-MM-dd HH:mm"
258
+                        format="yyyy-MM-dd HH:mm:ss"
279 259
                         value-format="yyyy-MM-dd HH:mm"
280 260
                         placeholder="选择时间"
281 261
                         v-model="form.sencond_start_time"
@@ -412,6 +392,7 @@
412 392
                         value-format="yyyy-MM-dd HH:mm"
413 393
                         placeholder="选择时间"
414 394
                         v-model="form.last_start_time"
395
+                        @change="laststarttime"
415 396
                         style="width:100%;"
416 397
                     ></el-date-picker>
417 398
                   </el-form-item>
@@ -422,6 +403,7 @@
422 403
                         value-format="yyyy-MM-dd HH:mm"
423 404
                         placeholder="选择时间"
424 405
                         v-model="form.last_end_time"
406
+                        @change="lastendtime"
425 407
                         style="width:100%;"
426 408
                     ></el-date-picker>
427 409
                   </el-form-item>
@@ -719,6 +701,7 @@
719 701
                         value-format="yyyy-MM-dd HH:mm"
720 702
                         placeholder="选择时间"
721 703
                         v-model="form.last_start_time"
704
+                        @change="laststarttime"
722 705
                         style="width:100%;"
723 706
                     ></el-date-picker>
724 707
                   </el-form-item>
@@ -729,6 +712,7 @@
729 712
                         value-format="yyyy-MM-dd HH:mm"
730 713
                         placeholder="选择时间"
731 714
                         v-model="form.last_end_time"
715
+                        @change="lastendtime"
732 716
                         style="width:100%;"
733 717
                     ></el-date-picker>
734 718
                   </el-form-item>
@@ -806,15 +790,43 @@
806 790
                                <td>{{getTimes(item.record_date) }}</td>
807 791
                                <td>{{ getTimeTwo(item.first_start_time)}} - {{ getTimeTwo(item.first_end_time) }}</td>
808 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 801
                                <td>{{ getTimeTwo(item.sencond_start_time)}} - {{ getTimeTwo(item.sencond_end_time) }}</td>
811 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 811
                                <td>{{getTimeTwo(item.last_start_time)}} - {{ getTimeTwo(item.last_end_time) }}</td>
814 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 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 830
                             </tr>
819 831
                         </table>
820 832
                     </div>
@@ -828,7 +840,7 @@
828 840
   <script>
829 841
     import print from "print-js";
830 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 844
     import { uParseTime } from '@/utils/tools'
833 845
     const moment = require('moment')
834 846
     export default {
@@ -853,8 +865,8 @@
853 865
             first_disinfection_water:"",// 消毒液
854 866
             first_disinfection_methods:"",//消毒方式
855 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 870
             first_total_time:"",//累计时间
859 871
             first_is_check:"1",//检验合格
860 872
             first_modifications:"",//修改标志
@@ -863,8 +875,8 @@
863 875
             sencond_disinfection_water:"",// 消毒液
864 876
             sencond_disinfection_methods:"",//消毒方式
865 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 880
             sencond_total_time:"",//累计时间
869 881
             sencond_is_check:"1",//检验合格
870 882
             sencond_modifications:"",//修改标志
@@ -873,15 +885,16 @@
873 885
             third_disinfection_water:"",// 消毒液
874 886
             third_disinfection_methods:"",//消毒方式
875 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 890
             third_total_time:"",//累计时间
879 891
             third_is_check:"1",//检验合格
880 892
             third_modifications:"",//修改标志
881 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 898
             last_total_time:"",//累计时间
886 899
             last_is_check:"1",//检验合格
887 900
             last_modifications:"",//修改标志
@@ -907,17 +920,26 @@
907 920
          { id: 2, name: "500mg/l含氯消毒剂" },
908 921
          { id: 3, name: "1000mg/l含氯消毒剂" },
909 922
          { id: 4, name: "1500mg/l含氯消毒剂" },
910
-         { id: 5, name: "消毒湿巾" }
923
+         { id: 5, name: "消毒湿巾" },
924
+         { id:6, name:"75%酒精"}
911 925
          ],
912 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 934
          operators: [],
918 935
          operatorMaps:{},
919 936
          firststart:'',
920 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 945
       created(){
@@ -955,9 +977,54 @@
955 977
             const time_interval = ((thirdend - thirdstart)/(60*60*1000)).toFixed(1)
956 978
             console.log('结束时间',time_interval);
957 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 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 1028
       handleSizeChange(val) {
962 1029
         this.limit = val;
963 1030
         this.getNewAirDisinfectList()
@@ -1041,6 +1108,11 @@
1041 1108
                 }else{
1042 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 1116
               console.log("this232322323",this.form)
1045 1117
               saveNewAirDisinfect(this.form).then(response=>{
1046 1118
                  if(response.data.state == 1 ){
@@ -1187,7 +1259,7 @@
1187 1259
                     this.form.last_modifications= 0
1188 1260
                 }
1189 1261
 
1190
-              updateAirDisinfect(this.form).then(response=>{
1262
+                updateNewAirDisinfect(this.form).then(response=>{
1191 1263
                 if(response.data.state == 1){
1192 1264
                   var disinfect =  response.data.data.disinfect
1193 1265
                   this.editDialogFormVisible = false
@@ -1228,26 +1300,37 @@
1228 1300
             }, 1);
1229 1301
          },
1230 1302
          setAdminUserES(id) {
1303
+           
1231 1304
             if (id === 0) {
1232 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 1324
         firststartime(val){
1245 1325
             this.form.first_start_time = val
1246 1326
             this.form.first_disinfection_time = this.firstdisinfection_time
1327
+           
1247 1328
         },
1248 1329
         firstendtime(val){
1249 1330
             this.form.first_disinfection_time = this.firstdisinfection_time
1250 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 1335
         sencondstarttime(val){
1253 1336
             this.form.sencond_start_time = val
@@ -1256,15 +1339,31 @@
1256 1339
          sencondendtime(val){
1257 1340
             this.form.sencond_end_time = val
1258 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 1345
         thirdstarttime(val){
1261 1346
             this.form.third_start_time = val
1262 1347
             this.form.third_disinfection_time = this.thirddisinfection_time
1348
+
1349
+          
1263 1350
         },
1264 1351
         thirdendtime(val){
1265 1352
             this.form.third_end_time = val
1266 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 查看文件

@@ -39,56 +39,70 @@
39 39
                 </el-table-column>
40 40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
41 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 44
                     </template>
44 45
                 </el-table-column>
45 46
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
46 47
                     <template slot-scope="scope">
47 48
                         {{getName(scope.row.first_creator)}}
49
+
50
+                     
48 51
                     </template>
49 52
                 </el-table-column>
50 53
 
51 54
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
52 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 58
                     </template>
55 59
                 </el-table-column>
56 60
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
57 61
                     <template slot-scope="scope">
58 62
                         {{getName(scope.row.sencond_creator)}}
63
+                       
59 64
                     </template>
60 65
                 </el-table-column>
61 66
 
62 67
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
63 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 71
                     </template>
66 72
                 </el-table-column>
67 73
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
68 74
                     <template slot-scope="scope">
69 75
                         {{getName(scope.row.third_creator)}}
76
+
77
+                   
70 78
                     </template>
71 79
                 </el-table-column>
72 80
 
73 81
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
74 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 85
                     </template>
77 86
                 </el-table-column>
78 87
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
79 88
                     <template slot-scope="scope">
80 89
                         {{getName(scope.row.fourth_creator)}}
90
+                    
91
+                  
81 92
                     </template>
82 93
                 </el-table-column>
83 94
 
84 95
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
85 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 99
                     </template>
88 100
                 </el-table-column>
89 101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
90 102
                     <template slot-scope="scope">
91 103
                         {{getName(scope.row.last_creator)}}
104
+
105
+                    
92 106
                     </template>
93 107
                 </el-table-column>
94 108
                 <el-table-column prop="city" label="操作" align="center" min-width="100">
@@ -136,10 +150,26 @@
136 150
                   </div>
137 151
                   <div class="form_title"><span >湿化瓶</span></div>
138 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 162
                   </el-form-item>
141 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 173
                   </el-form-item>
144 174
                   <el-form-item label="消毒时间(h)" label-width="110px">
145 175
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
@@ -166,9 +196,9 @@
166 196
                         style="width:100%;"
167 197
                     ></el-date-picker>
168 198
                   </el-form-item>
169
-                  <el-form-item label="累计时间(h)" label-width="110px">
199
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
170 200
                       <el-input v-model= "form.first_total_time"  ></el-input>
171
-                  </el-form-item>
201
+                  </el-form-item> -->
172 202
                   <el-form-item label="检测合格" label-width="110px">
173 203
                       <div>
174 204
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
@@ -198,10 +228,26 @@
198 228
 
199 229
                   <div class="form_title"><span >止血带</span></div>
200 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 240
                   </el-form-item>
203 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 251
                   </el-form-item>
206 252
                   <el-form-item label="消毒时间(h)" label-width="110px">
207 253
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
@@ -228,9 +274,9 @@
228 274
                         style="width:100%;"
229 275
                     ></el-date-picker>
230 276
                   </el-form-item>
231
-                  <el-form-item label="累计时间(h)" label-width="110px">
277
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
232 278
                       <el-input v-model= "form.sencond_total_time"></el-input>
233
-                  </el-form-item>
279
+                  </el-form-item> -->
234 280
                   <el-form-item label="检测合格" label-width="110px">
235 281
                       <div>
236 282
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
@@ -260,10 +306,26 @@
260 306
 
261 307
                   <div class="form_title"><span >医疗垃圾桶</span></div>
262 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 318
                   </el-form-item>
265 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 329
                   </el-form-item>
268 330
                   <el-form-item label="消毒时间(h)" label-width="110px">
269 331
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
@@ -290,9 +352,9 @@
290 352
                         style="width:100%;"
291 353
                     ></el-date-picker>
292 354
                   </el-form-item>
293
-                  <el-form-item label="累计时间(h)" label-width="110px">
355
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
294 356
                       <el-input v-model= "form.third_total_time"  ></el-input>
295
-                  </el-form-item>
357
+                  </el-form-item> -->
296 358
                   <el-form-item label="检测合格" label-width="110px" >
297 359
                       <div>
298 360
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
@@ -322,10 +384,26 @@
322 384
 
323 385
                   <div class="form_title"><span >体温计</span></div>
324 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 396
                   </el-form-item>
327 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 407
                   </el-form-item>
330 408
                   <el-form-item label="消毒时间(h)" label-width="110px">
331 409
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
@@ -352,9 +430,9 @@
352 430
                         style="width:100%;"
353 431
                     ></el-date-picker>
354 432
                   </el-form-item>
355
-                  <el-form-item label="累计时间(h)" label-width="110px">
433
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
356 434
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
357
-                  </el-form-item>
435
+                  </el-form-item> -->
358 436
                   <el-form-item label="检测合格" label-width="110px">
359 437
                       <div>
360 438
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
@@ -384,10 +462,26 @@
384 462
 
385 463
                   <div class="form_title"><span >体温枪</span></div>
386 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 474
                   </el-form-item>
389 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 485
                   </el-form-item>
392 486
                   <el-form-item label="消毒时间(h)" label-width="110px">
393 487
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
@@ -414,9 +508,9 @@
414 508
                         style="width:100%;"
415 509
                     ></el-date-picker>
416 510
                   </el-form-item>
417
-                  <el-form-item label="累计时间(h)" label-width="110px">
511
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
418 512
                       <el-input v-model= "form.last_total_time"  ></el-input>
419
-                  </el-form-item>
513
+                  </el-form-item> -->
420 514
                   <el-form-item label="检测合格" label-width="110px">
421 515
                       <div>
422 516
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
@@ -469,10 +563,26 @@
469 563
                   </div>
470 564
                   <div class="form_title"><span >湿化瓶</span></div>
471 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 575
                   </el-form-item>
474 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 586
                   </el-form-item>
477 587
                   <el-form-item label="消毒时间(h)" label-width="110px">
478 588
                       <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
@@ -499,9 +609,9 @@
499 609
                         style="width:100%;"
500 610
                     ></el-date-picker>
501 611
                   </el-form-item>
502
-                  <el-form-item label="累计时间(h)" label-width="110px">
612
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
503 613
                       <el-input v-model= "form.first_total_time"  ></el-input>
504
-                  </el-form-item>
614
+                  </el-form-item> -->
505 615
                   <el-form-item label="检测合格" label-width="110px">
506 616
                       <div>
507 617
                           <el-radio v-model="form.first_is_check" label="1">是</el-radio>
@@ -531,10 +641,26 @@
531 641
 
532 642
                   <div class="form_title"><span >止血带</span></div>
533 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 653
                   </el-form-item>
536 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 664
                   </el-form-item>
539 665
                   <el-form-item label="消毒时间(h)" label-width="110px">
540 666
                       <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
@@ -561,9 +687,9 @@
561 687
                         style="width:100%;"
562 688
                     ></el-date-picker>
563 689
                   </el-form-item>
564
-                  <el-form-item label="累计时间(h)" label-width="110px">
690
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
565 691
                       <el-input v-model= "form.sencond_total_time"></el-input>
566
-                  </el-form-item>
692
+                  </el-form-item> -->
567 693
                   <el-form-item label="检测合格" label-width="110px">
568 694
                       <div>
569 695
                           <el-radio v-model="form.sencond_is_check" label="1">是</el-radio>
@@ -593,10 +719,26 @@
593 719
 
594 720
                   <div class="form_title"><span >医疗垃圾桶</span></div>
595 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 731
                   </el-form-item>
598 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 742
                   </el-form-item>
601 743
                   <el-form-item label="消毒时间(h)" label-width="110px">
602 744
                       <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
@@ -623,9 +765,9 @@
623 765
                         style="width:100%;"
624 766
                     ></el-date-picker>
625 767
                   </el-form-item>
626
-                  <el-form-item label="累计时间(h)" label-width="110px">
768
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
627 769
                       <el-input v-model= "form.third_total_time"  ></el-input>
628
-                  </el-form-item>
770
+                  </el-form-item> -->
629 771
                   <el-form-item label="检测合格" label-width="110px" >
630 772
                       <div>
631 773
                           <el-radio v-model="form.third_is_check" label="1">是</el-radio>
@@ -655,10 +797,26 @@
655 797
 
656 798
                   <div class="form_title"><span >体温计</span></div>
657 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 809
                   </el-form-item>
660 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 820
                   </el-form-item>
663 821
                   <el-form-item label="消毒时间(h)" label-width="110px">
664 822
                       <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
@@ -685,9 +843,9 @@
685 843
                         style="width:100%;"
686 844
                     ></el-date-picker>
687 845
                   </el-form-item>
688
-                  <el-form-item label="累计时间(h)" label-width="110px">
846
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
689 847
                       <el-input v-model= "form.fourth_total_time"  ></el-input>
690
-                  </el-form-item>
848
+                  </el-form-item> -->
691 849
                   <el-form-item label="检测合格" label-width="110px">
692 850
                       <div>
693 851
                           <el-radio v-model="form.fourth_is_check" label="1">是</el-radio>
@@ -717,10 +875,26 @@
717 875
 
718 876
                   <div class="form_title"><span >体温枪</span></div>
719 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 887
                   </el-form-item>
722 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 898
                   </el-form-item>
725 899
                   <el-form-item label="消毒时间(h)" label-width="110px">
726 900
                       <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
@@ -747,9 +921,9 @@
747 921
                         style="width:100%;"
748 922
                     ></el-date-picker>
749 923
                   </el-form-item>
750
-                  <el-form-item label="累计时间(h)" label-width="110px">
924
+                  <!-- <el-form-item label="累计时间(h)" label-width="110px">
751 925
                       <el-input v-model= "form.last_total_time"  ></el-input>
752
-                  </el-form-item>
926
+                  </el-form-item> -->
753 927
                   <el-form-item label="检测合格" label-width="110px">
754 928
                       <div>
755 929
                           <el-radio v-model="form.last_is_check" label="1">是</el-radio>
@@ -820,16 +994,51 @@
820 994
 
821 995
                             <tr v-for="(item,index) in tableData" :key="index">
822 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 1043
                             </tr>
835 1044
                          </table>   
@@ -877,8 +1086,8 @@
877 1086
             first_disinfection_water:"",// 消毒液
878 1087
             first_disinfection_methods:"",//消毒方式
879 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 1091
             first_total_time:"",//累计时间
883 1092
             first_is_check:"1",//检验合格
884 1093
             first_modifications:"",//修改标志
@@ -887,8 +1096,8 @@
887 1096
             sencond_disinfection_water:"",// 消毒液
888 1097
             sencond_disinfection_methods:"",//消毒方式
889 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 1101
             sencond_total_time:"",//累计时间
893 1102
             sencond_is_check:"1",//检验合格
894 1103
             sencond_modifications:"",//修改标志
@@ -897,8 +1106,8 @@
897 1106
             third_disinfection_water:"",// 消毒液
898 1107
             third_disinfection_methods:"",//消毒方式
899 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 1111
             third_total_time:"",//累计时间
903 1112
             third_is_check:"1",//检验合格
904 1113
             third_modifications:"",//修改标志
@@ -907,8 +1116,8 @@
907 1116
             fourth_disinfection_water:"",// 消毒液
908 1117
             fourth_disinfection_methods:"",//消毒方式
909 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 1121
             fourth_total_time:"",//累计时间
913 1122
             fourth_is_check:"1",//检验合格
914 1123
             fourth_modifications:"",//修改标志
@@ -917,8 +1126,8 @@
917 1126
             last_disinfection_water:"",// 消毒液
918 1127
             last_disinfection_methods:"",//消毒方式
919 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 1131
             last_total_time:"",//累计时间
923 1132
             last_is_check:"1",//检验合格
924 1133
             last_modifications:"",//修改标志
@@ -941,6 +1150,22 @@
941 1150
          total:0,
942 1151
          tableData: [],
943 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 1171
       created(){
@@ -1024,6 +1249,7 @@
1024 1249
                var list = response.data.data.list
1025 1250
                console.log("list222222",list)
1026 1251
                this.docList = list
1252
+               this.operators = response.data.data.operators
1027 1253
             }
1028 1254
           })  
1029 1255
         },
@@ -1156,7 +1382,7 @@
1156 1382
 
1157 1383
               this.form.fourth_disinfection_water = list.third_disinfection_water?list.third_disinfection_water:""
1158 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 1386
               this.form.fourth_start_time  =this.getTimeThree(list.third_start_time)
1161 1387
               this.form.fourth_end_time = this.getTimeThree(list.third_end_time)
1162 1388
               this.form.fourth_total_time = list.third_total_time? list.third_total_time:""
@@ -1300,7 +1526,27 @@
1300 1526
         lastendtime(val){
1301 1527
             this.form.last_end_time = val
1302 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 查看文件

@@ -136,6 +136,8 @@
136 136
                 <span v-if="schedule.prescription.anticoagulant == 11">那屈肝素</span>
137 137
                 <span v-if="schedule.prescription.anticoagulant == 12">无抗凝剂</span>
138 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 141
              </span>
140 142
           </span>
141 143
         </p>

+ 26 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue 查看文件

@@ -2973,15 +2973,33 @@
2973 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 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 3004
       newAdviceGroupObject: function () {
2987 3005
         return Object.assign(

+ 27 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue 查看文件

@@ -1546,16 +1546,34 @@ export default {
1546 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 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 1577
     newAdviceGroupObject: function () {
1560 1578
       return Object.assign(
1561 1579
         {},

+ 93 - 9
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue 查看文件

@@ -27,7 +27,7 @@
27 27
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
28 28
     </div>
29 29
     <div class="cell clearfix" style="justify-content: space-between;">
30
-      <div style="display:flex;">
30
+      <!-- <div style="display:flex;">
31 31
         <label class="title"> <span class="name">分区</span> : </label>
32 32
         <div class="time">
33 33
           <ul class>
@@ -41,7 +41,16 @@
41 41
             </li>
42 42
           </ul>
43 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 54
       <div>
46 55
         <el-button size="small" icon="el-icon-printer" @click="toDialog" type="primary">设置</el-button>
47 56
         <el-button size="small" icon="el-icon-printer" @click="toSign" type="primary">标签打印</el-button>
@@ -81,6 +90,37 @@
81 90
             {{scope.row.patient.name}}
82 91
            </template>
83 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 124
         <el-table-column align="center" label="透析号" v-if="dialysisSett.dialysis_no==1">
85 125
            <template slot-scope="scope">
86 126
             {{scope.row.patient.dialysis_no}}
@@ -489,7 +529,7 @@
489 529
         partion_type:0,
490 530
         tableList:[],
491 531
         dialysisSett:{},
492
-
532
+        partitionArrOne:[],
493 533
         dialogVisibleOne: false,
494 534
         prescription_status: false,
495 535
         week: false,
@@ -526,6 +566,8 @@
526 566
             return v.getTime() < new Date().getTime() - 86400000;
527 567
           },
528 568
         },
569
+        partition_id:0,
570
+        zoneList:[],
529 571
       }
530 572
     },
531 573
     open(){
@@ -534,7 +576,7 @@
534 576
     created() {
535 577
        this.blood_access_option  = getDataConfig('hemodialysis', 'vascular_access_desc')
536 578
        this.displace_liqui_part_option = this.$store.getters.displace_liqui
537
-       console.log("志愿液",this.displace_liqui_part_option)
579
+    
538 580
        var filedList = store.getters.xt_user.fileds
539 581
        var newArr = [
540 582
         {value:999999,filed_name_cn:"姓名"},
@@ -550,8 +592,6 @@
550 592
         }
551 593
         this.predialysisConditionOptions = newArr
552 594
        }
553
-     
554
-      this.getAllZone()
555 595
       let date = uParseTime(new Date(), "{y}-{m}-{d}")
556 596
       var newDate = new Date();
557 597
       var y = newDate.getFullYear();
@@ -565,14 +605,40 @@
565 605
       this.query.schedule_type = 0
566 606
       this.query.partition_id = 0
567 607
       this.query.page = 1
568
-      this.getlist()
608
+      this.getAllZone()
609
+     
610
+     
569 611
      
570 612
     },
571 613
     methods: {
572 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 630
         getDialysisParameter(this.query).then(response=>{
574 631
             if(response.data.state == 1){
575 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 642
               this.list = list
577 643
               this.total = response.data.data.total
578 644
               this.dialysisSett = response.data.data.dialysisSett
@@ -580,6 +646,13 @@
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 656
       handleSizeChange(val) {
584 657
         this.query.limit = val;
585 658
         this.getlist();
@@ -636,7 +709,7 @@
636 709
 
637 710
       },
638 711
       selectPartitionType(partitionType) {
639
-        this.partitionType = partitionType
712
+        // this.partitionType = partitionType
640 713
         this.query.partition_id = partitionType
641 714
         this.query.page = 1
642 715
 
@@ -654,16 +727,27 @@
654 727
             this.$message.error(response.data.msg)
655 728
             return false
656 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 736
             this.partitionArr = response.data.data.zone
737
+           
738
+            console.log("全部中",this.partitionArrOne)
658 739
             this.partitionArr.unshift({ id: 0, name: '全部' })
740
+            this.getlist()
741
+            
659 742
           }
660 743
         })
661 744
       },
662 745
       statistics() {
663 746
          this.tableList = []
747
+       
664 748
          var params = {
665 749
           schedule_type:this.schedule_type,
666
-          partion_type:this.partion_type,
750
+          partion_type:this.partitionType,
667 751
           selected_date:this.query.schedule_date,
668 752
         }
669 753
         getDialysisParameterGoodList(params).then(response=>{

+ 48 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue 查看文件

@@ -28,6 +28,7 @@
28 28
                 <td width="50">序号</td>
29 29
                 <td width="100"  v-if="dialysisSett.device_number==1">透析机号</td>
30 30
                 <td width="100"  v-if="dialysisSett.name==1">姓名</td>
31
+                <td width="100"  v-if="dialysisSett.name==1">透析模式</td>
31 32
                 <td width="100" v-if="dialysisSett.dialysis_no==1">透析号</td>
32 33
                 <td width="100" v-if="dialysisSett.admission_number==1">住院(门诊)号</td>
33 34
                 <td width="100"  v-if="dialysisSett.weight_befor==1">透前体重</td>
@@ -61,6 +62,36 @@
61 62
                 <td width="100"  v-if="dialysisSett.name==1">
62 63
                    {{item.patient.name}}
63 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 95
                 <td width="100" v-if="dialysisSett.dialysis_no==1">
65 96
                    {{item.patient.dialysis_no}}
66 97
                 </td>
@@ -199,7 +230,7 @@
199 230
        var params = {
200 231
          schedule_date:this.$route.query.schedule_date,
201 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 234
          page:this.$route.query.page,
204 235
          limit:this.$route.query.limit,
205 236
          ids:this.$route.query.ids,
@@ -208,6 +239,14 @@
208 239
       getDialysisParameter(params).then(response=>{
209 240
           if(response.data.state == 1){
210 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 250
             this.list = list
212 251
             this.dialysisSett = response.data.data.dialysisSett
213 252
             console.log("设置",this.dialysisSett)
@@ -292,7 +331,14 @@
292 331
          }
293 332
        }
294 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 查看文件

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

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue 查看文件

@@ -28,7 +28,7 @@
28 28
                             规格:{{getSpecialName(it.drug_id)}} 
29 29
                             
30 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 32
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{it.execution_frequency}}</div>  
33 33
                             <div v-if="org_id!=10278">给药途径:{{it.delivery_way}}</div>  
34 34
                              
@@ -45,7 +45,7 @@
45 45
                             规格:{{getSpecialName(its.drug_id)}} 
46 46
                             
47 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 49
                             <div v-if="org_id!=0 && org_id!=10278 && org_id!=10138">执行频率:{{its.execution_frequency}}</div>  
50 50
                             <div>给药途径:{{its.delivery_way}}</div>  
51 51
                         </div>

+ 32 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue 查看文件

@@ -3582,20 +3582,39 @@ export default {
3582 3582
       }
3583 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 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 3618
     newAdviceGroupObject: function () {
3600 3619
       return Object.assign(
3601 3620
         {},

+ 47 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue 查看文件

@@ -1244,7 +1244,7 @@
1244 1244
                       <div>
1245 1245
                         性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
1246 1246
                       </div>
1247
-                      <div>年龄:{{ getoldAge() }}</div>
1247
+                      <div>年龄:{{ getAge(patientInfo) }}</div>
1248 1248
                       <div>透析机号:&nbsp;{{ getNumber() }}</div>
1249 1249
                     </div>
1250 1250
                   </td>
@@ -1621,33 +1621,53 @@ export default {
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 1671
     getAdminUser(id) {
1652 1672
       if (id == 0) {
1653 1673
         return "";

+ 15 - 8
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

@@ -1275,16 +1275,23 @@
1275 1275
                 var preTime = ''
1276 1276
 
1277 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 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 1297
                 let index = i + 1

+ 2 - 2
src/xt_pages/management/components/UserForm.vue 查看文件

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

+ 11 - 4
src/xt_pages/management/home.vue 查看文件

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

+ 3 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue 查看文件

@@ -63,8 +63,8 @@
63 63
         <div style="display:flex;justify-content: space-between;">
64 64
             <div style="position: absolute;top:190px;left:50px"></div>
65 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 68
             <div style="position: absolute;top:190px;left:340px">材料费</div>
69 69
             <div style="position: absolute;top:190px;left:420px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
70 70
             <div style="position: absolute;top:190px;left:480px"></div>
@@ -182,7 +182,7 @@ export default {
182 182
                 console.log('res',res)
183 183
                 this.list = res.data.data
184 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 186
                 if(this.totalPrice == 0){
187 187
 
188 188
                   this.totalPrice = this.list.medfee_sumamt

+ 8 - 9
src/xt_pages/outpatientCharges/summary.vue 查看文件

@@ -116,7 +116,7 @@
116 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 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 122
           <!--          <el-button size="small" type="primary" @click="export_detail_two"-->
@@ -124,13 +124,12 @@
124 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 135
         </div>
@@ -1215,7 +1214,7 @@ export default {
1215 1214
                 name: order.patient.name,
1216 1215
                 id_card_no: order.patient.id_card_no,
1217 1216
                 year: "2023",
1218
-                month: "03",
1217
+                month: "04",
1219 1218
                 code: data[b].code,
1220 1219
                 pric: data[b].total ,
1221 1220
                 item_name: data[b].name,

文件差異過大導致無法顯示
+ 554 - 557
src/xt_pages/outpatientTool/components/detail.vue


+ 10 - 4
src/xt_pages/stock/detail/print.vue 查看文件

@@ -51,10 +51,13 @@
51 51
               <td style="line-height: 50px">
52 52
                 <span v-if="type == 1"> {{ item.warehousing_count }}</span>
53 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 58
                    <span  v-if="org_id == 10265 || org_id == 10215">{{getMySelfCount(item.good_id) }}</span>
56 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 61
                 </span>
59 62
 
60 63
                 <span v-if="type == 4"> {{ item.count }}</span>
@@ -75,8 +78,10 @@
75 78
               <td style="line-height:50px">
76 79
                 <span v-if="type == 1">{{(item.warehousing_count * item.price).toFixed(2)}}</span>
77 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 85
                   </span>
81 86
                   <span v-if="org_id == 10265 || org_id == 10215  ">{{(getMySelfCount(item.good_id)*item.packing_price).toFixed(2)}}</span>
82 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,6 +385,7 @@
380 385
            var list = response.data.data.list
381 386
            console.log("新的",list)
382 387
            this.stockDatas = list
388
+           //自动出库数据
383 389
            var stockTotal = response.data.data.stockTotal
384 390
           this.stockTotal = stockTotal
385 391
 

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -834,7 +834,7 @@ export default {
834 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 839
          this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
840 840
         }
@@ -842,7 +842,7 @@ export default {
842 842
           this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
843 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 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 查看文件

@@ -124,7 +124,7 @@
124 124
                     <el-row   >
125 125
                       <el-col :span="5" style="margin-left: 10px;">
126 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 128
                             <el-option
129 129
                               v-for="item in pinxuerongmao_options"
130 130
                               :key="item.value"
@@ -137,7 +137,7 @@
137 137
                       </el-col>
138 138
                       <el-col :span="5" >
139 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 141
                             <el-option
142 142
                               v-for="item in tiwei_options"
143 143
                               :key="item.value"
@@ -149,7 +149,7 @@
149 149
                       </el-col>
150 150
                       <el-col :span="5" >
151 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 153
                             <el-option
154 154
                               v-for="item in fuzhong_options"
155 155
                               :key="item.value"
@@ -162,7 +162,7 @@
162 162
                       </el-col>
163 163
                       <el-col :span="7" >
164 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 166
                             <el-option
167 167
                               v-for="item in chuxuedian_options"
168 168
                               :key="item.value"
@@ -178,7 +178,7 @@
178 178
                     <el-row >
179 179
                       <el-col :span="6" style="margin-left: 10px;">
180 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 182
                             <el-option
183 183
                               v-for="item in fayu_options"
184 184
                               :key="item.value"
@@ -191,7 +191,7 @@
191 191
                       </el-col>
192 192
                       <el-col :span="6" >
193 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 195
                             <el-option
196 196
                               v-for="item in yinyang_options"
197 197
                               :key="item.value"
@@ -203,7 +203,7 @@
203 203
                       </el-col>
204 204
                       <el-col :span="6" >
205 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 207
                             <el-option
208 208
                               v-for="item in shenzhi_options"
209 209
                               :key="item.value"
@@ -226,7 +226,7 @@
226 226
                     <el-row >
227 227
                       <el-col :span="6" style="margin-left: 10px;">
228 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 230
                             <el-option
231 231
                               v-for="item in pifunianmo_options"
232 232
                               :key="item.value"
@@ -239,18 +239,18 @@
239 239
                       </el-col>
240 240
                       <el-col :span="5" >
241 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 243
                         </el-form-item>
244 244
                       </el-col>
245 245
                       <el-col :span="5" >
246 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 248
                         </el-form-item>
249 249
 
250 250
                       </el-col>
251 251
                       <el-col :span="7" >
252 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 254
                             <el-option
255 255
                               v-for="item in pixiachuxue_options"
256 256
                               :key="item.value"
@@ -265,7 +265,7 @@
265 265
                     <el-row >
266 266
                       <el-col :span="6" style="margin-left: 10px;">
267 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 269
                             <el-option
270 270
                               v-for="item in zidian_options"
271 271
                               :key="item.value"
@@ -278,7 +278,7 @@
278 278
                       </el-col>
279 279
                       <el-col :span="6" >
280 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 282
                             <el-option
283 283
                               v-for="item in pifuwendu_options"
284 284
                               :key="item.value"
@@ -306,7 +306,7 @@
306 306
                     <el-row >
307 307
                       <el-col :span="8"  style="margin-left: 10px;">
308 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 310
                             <el-option
311 311
                               v-for="item in linbazhongda_options"
312 312
                               :key="item.value"
@@ -334,7 +334,7 @@
334 334
                     <el-row >
335 335
                       <el-col :span="6" style="margin-left: 10px;">
336 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 338
                             <el-option
339 339
                               v-for="item in yanlian_options"
340 340
                               :key="item.value"
@@ -347,7 +347,7 @@
347 347
                       </el-col>
348 348
                       <el-col :span="6" >
349 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 351
                             <el-option
352 352
                               v-for="item in tongkong_options"
353 353
                               :key="item.value"
@@ -360,13 +360,13 @@
360 360
                       </el-col>
361 361
                       <el-col :span="5" >
362 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 364
                         </el-form-item>
365 365
 
366 366
                       </el-col>
367 367
                       <el-col :span="5" >
368 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 370
                         </el-form-item>
371 371
                       </el-col>
372 372
                     </el-row>
@@ -3087,7 +3087,7 @@
3087 3087
     }
3088 3088
 
3089 3089
     }
3090
-    
3090
+
3091 3091
   </style>
3092 3092
   <style>
3093 3093
   /* .el-input--medium .el-input__inner {

+ 3 - 2
src/xt_pages/user/courseOfDisease.vue 查看文件

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

+ 64 - 64
src/xt_pages/user/firstDisease.vue 查看文件

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

+ 1 - 1
src/xt_pages/user/inspectionCheck.vue 查看文件

@@ -112,7 +112,7 @@
112 112
                       <img  :src="item.value" alt="">
113 113
                     </el-row>
114 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 116
                     </el-row>
117 117
                   </div>
118 118
                 </el-col>

+ 38 - 29
src/xt_pages/user/ktv.vue 查看文件

@@ -162,6 +162,9 @@
162 162
               <el-form-item
163 163
                 :label="item.item_name"
164 164
                 :key="item.item_id"
165
+                :rules="item.item_name != 'URR(%)'?[
166
+                { required: true, message: '请输入数值', trigger: 'blur' }
167
+              ]:[]"
165 168
                 :prop="'formItem.' + index + '.value'"
166 169
               >
167 170
                 <el-input
@@ -614,39 +617,24 @@ export default {
614 617
     calURR(items, value){
615 618
       let valueOne = 0
616 619
       let valueTwo = 0
617
-      let valueThree = 0
618
-      let valueFour = 0
619
-      let valueSix = 0
620 620
 
621 621
       for(let i = 0; i < items.length; i++){
622 622
         if(items[i].item_name == "透析前尿素氮"){
623
-
624 623
           valueOne = items[i].value
625 624
         }
626 625
         if(items[i].item_name == "透析后尿素氮"){
627 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 638
       for(let i = 0; i < items.length; i++){
651 639
         if(items[i].item_name == "URR(%)"){
652 640
           items[i].value = value
@@ -658,7 +646,6 @@ export default {
658 646
       let valueTwo = 0
659 647
       let valueThree = 0
660 648
       let valueFour = 0
661
-      let valueFive = 0
662 649
       let valueSix = 0
663 650
       for(let i = 0; i < items.length; i++){
664 651
         if(items[i].item_name == "透析前尿素氮"){
@@ -676,18 +663,37 @@ export default {
676 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 668
         if(items[i].item_name == "透后体重"){
684 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 698
       for(let i = 0; i < items.length; i++){
693 699
         if(items[i].item_name == "KT/V"){
@@ -777,6 +783,9 @@ export default {
777 783
       })
778 784
     },
779 785
     submitNew(formName) {
786
+
787
+
788
+
780 789
       this.$refs[formName].validate(valid => {
781 790
         if (valid) {
782 791
           this.formLoading = true