Browse Source

新分支

28169 1 year ago
parent
commit
a14487fccd

+ 30 - 0
src/store/modules/globalConfig.js View File

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

+ 4 - 2
src/xt_pages/device/airDisinfectTwo.vue View File

920
          { id: 2, name: "500mg/l含氯消毒剂" },
920
          { id: 2, name: "500mg/l含氯消毒剂" },
921
          { id: 3, name: "1000mg/l含氯消毒剂" },
921
          { id: 3, name: "1000mg/l含氯消毒剂" },
922
          { id: 4, name: "1500mg/l含氯消毒剂" },
922
          { id: 4, name: "1500mg/l含氯消毒剂" },
923
-         { id: 5, name: "消毒湿巾" }
923
+         { id: 5, name: "消毒湿巾" },
924
+         { id:6, name:"75%酒精"}
924
          ],
925
          ],
925
          DisinfectionMode: [
926
          DisinfectionMode: [
926
             { id: 1, name: "紫外线" },
927
             { id: 1, name: "紫外线" },
1018
             this.form.last_total_time =""
1019
             this.form.last_total_time =""
1019
             this.form.last_total_time = last_total_time
1020
             this.form.last_total_time = last_total_time
1020
             this.last_total_time = last_total_time
1021
             this.last_total_time = last_total_time
1021
-            this.dialogFormVisible =  true
1022
+           
1022
           }
1023
           }
1024
+          this.dialogFormVisible =  true
1023
          }
1025
          }
1024
         })
1026
         })
1025
       },
1027
       },

+ 20 - 26
src/xt_pages/device/objectTableDisinfectTwo.vue View File

22
           </div>
22
           </div>
23
           <div style="float:right;margin-bottom:10px;">
23
           <div style="float:right;margin-bottom:10px;">
24
             <el-button type="primary" @click="printCard">打印</el-button>
24
             <el-button type="primary" @click="printCard">打印</el-button>
25
-            <el-button type="primary" @click="Add">新增</el-button>
25
+            <el-button type="primary" @click="dialogFormVisible = true">新增</el-button>
26
 
26
 
27
           </div>
27
           </div>
28
           <div class="tab_air">
28
           <div class="tab_air">
39
                 </el-table-column>
39
                 </el-table-column>
40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
40
                 <el-table-column prop="fenopda" :label="'湿化瓶'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
41
                     <template slot-scope="scope">
41
                     <template slot-scope="scope">
42
-                        {{scope.row.first_total_time?scope.row.first_total_time:""}}
42
+                        <!-- {{scope.row.first_total_time?scope.row.first_total_time:""}} -->
43
+                        {{ scope.row.first_disinfection_time }}
43
                     </template>
44
                     </template>
44
                 </el-table-column>
45
                 </el-table-column>
45
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
46
                 <el-table-column prop="dwaiod" label="责任人" align="center" min-width="60">
52
 
53
 
53
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
54
                 <el-table-column prop="date" :label="'止血带'+'\n'+'500mg/l含氯制剂'" align="center" min-width="60">
54
                     <template slot-scope="scope">
55
                     <template slot-scope="scope">
55
-                        {{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 }}
56
                     </template>
58
                     </template>
57
                 </el-table-column>
59
                 </el-table-column>
58
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
60
                 <el-table-column prop="name" label="责任人" align="center" min-width="60">
64
 
66
 
65
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
67
                 <el-table-column prop="province" :label="'医疗垃圾桶'+'\n'+'1000mg/l含氯制剂'" align="center" min-width="60">
66
                     <template slot-scope="scope">
68
                     <template slot-scope="scope">
67
-                        {{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 }}
68
                     </template>
71
                     </template>
69
                 </el-table-column>
72
                 </el-table-column>
70
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
73
                 <el-table-column prop="city" label="负责人" align="center" min-width="60">
77
 
80
 
78
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
81
                 <el-table-column prop="name" :label="'体温计'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
79
                     <template slot-scope="scope">
82
                     <template slot-scope="scope">
80
-                        {{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 }}
81
                     </template>
85
                     </template>
82
                 </el-table-column>
86
                 </el-table-column>
83
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
87
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
90
 
94
 
91
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
95
                 <el-table-column prop="city" :label="'体温枪'+'\n'+'75%酒精擦拭'" align="center" min-width="60">
92
                     <template slot-scope="scope">
96
                     <template slot-scope="scope">
93
-                        {{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 }}
94
                     </template>
99
                     </template>
95
                 </el-table-column>
100
                 </el-table-column>
96
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
101
                 <el-table-column prop="province" label="负责人" align="center" min-width="60">
989
 
994
 
990
                             <tr v-for="(item,index) in tableData" :key="index">
995
                             <tr v-for="(item,index) in tableData" :key="index">
991
                                 <td>{{getTimes(item.record_date) }}</td>
996
                                 <td>{{getTimes(item.record_date) }}</td>
992
-                                <td>{{item.first_total_time}}</td>
997
+                                <td>{{item.first_disinfection_time}}</td>
993
                                 <td>
998
                                 <td>
994
                                 <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
999
                                 <span v-if="setAdminUserES(item.first_creator?item.last_creator:item.first_creator) == ''">
995
                                    {{getName(item.first_creator)}}
1000
                                    {{getName(item.first_creator)}}
998
                                     <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
1003
                                     <img style="height:30px;" :src="setAdminUserES(item.last_creator?item.last_creator:item.last_creator)" alt="" srcset="">
999
                                 </span>   
1004
                                 </span>   
1000
                                 </td>
1005
                                 </td>
1001
-                                <td>{{item.sencond_total_time}}</td>
1006
+                                <td>{{item.sencond_disinfection_time}}</td>
1002
                                 <td>
1007
                                 <td>
1003
                                  <span v-if="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator) == ''">
1008
                                  <span v-if="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator) == ''">
1004
                                    {{getName(item.sencond_creator)}}
1009
                                    {{getName(item.sencond_creator)}}
1007
                                     <img style="height:30px;" :src="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator)" alt="" srcset="">
1012
                                     <img style="height:30px;" :src="setAdminUserES(item.sencond_creator?item.sencond_creator:item.sencond_creator)" alt="" srcset="">
1008
                                 </span>   
1013
                                 </span>   
1009
                                 </td>
1014
                                 </td>
1010
-                                <td>{{getTimes(item.third_total_time) }}</td>
1015
+                                <td>{{item.third_disinfection_time }}</td>
1011
                                 <td>
1016
                                 <td>
1012
                                     <span v-if="setAdminUserES(item.third_creator?item.third_creator:item.third_creator) == ''">
1017
                                     <span v-if="setAdminUserES(item.third_creator?item.third_creator:item.third_creator) == ''">
1013
                                    {{getName(item.third_creator)}}
1018
                                    {{getName(item.third_creator)}}
1016
                                     <img style="height:30px;" :src="setAdminUserES(item.third_creator?item.third_creator:item.third_creator)" alt="" srcset="">
1021
                                     <img style="height:30px;" :src="setAdminUserES(item.third_creator?item.third_creator:item.third_creator)" alt="" srcset="">
1017
                                 </span>   
1022
                                 </span>   
1018
                                 </td>
1023
                                 </td>
1019
-                                <td>{{ getTimes(item.fourth_total_time) }}</td>
1024
+                                <td>{{ item.fourth_disinfection_time }}</td>
1020
                                 <td>
1025
                                 <td>
1021
                                     <span v-if="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator) == ''">
1026
                                     <span v-if="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator) == ''">
1022
                                    {{getName(item.fourth_creator)}}
1027
                                    {{getName(item.fourth_creator)}}
1025
                                     <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1030
                                     <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1026
                                 </span>   
1031
                                 </span>   
1027
                                 </td>
1032
                                 </td>
1028
-                                <td>{{ getTimes(item.last_total_time) }}</td>
1033
+                                <td>{{ item.last_disinfection_time}}</td>
1029
                                 <td>
1034
                                 <td>
1030
                                     <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
1035
                                     <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
1031
                                    {{getName(item.last_creator)}}
1036
                                    {{getName(item.last_creator)}}
1055
         getObjectTableDisInfectList,
1060
         getObjectTableDisInfectList,
1056
         getObjectTableDisInfectByIdList,
1061
         getObjectTableDisInfectByIdList,
1057
         updateObjectTableDisinfect, 
1062
         updateObjectTableDisinfect, 
1058
-        deleteObjectTableDisinfect,
1059
-        getObjectTableDisinfectLongTime
1063
+        deleteObjectTableDisinfect
1060
     } from "@/api/device"
1064
     } from "@/api/device"
1061
     import { uParseTime } from '@/utils/tools'
1065
     import { uParseTime } from '@/utils/tools'
1062
     const moment = require('moment')
1066
     const moment = require('moment')
1151
          { id: 2, name: "500mg/l含氯消毒剂" },
1155
          { id: 2, name: "500mg/l含氯消毒剂" },
1152
          { id: 3, name: "1000mg/l含氯消毒剂" },
1156
          { id: 3, name: "1000mg/l含氯消毒剂" },
1153
          { id: 4, name: "1500mg/l含氯消毒剂" },
1157
          { id: 4, name: "1500mg/l含氯消毒剂" },
1154
-         { id: 5, name: "消毒湿巾" }
1158
+         { id: 5, name: "消毒湿巾" },
1159
+         {  id:6, name:"75%酒精"}
1155
          ],
1160
          ],
1156
          DisinfectionMode: [
1161
          DisinfectionMode: [
1157
             { id: 1, name: "擦拭" },
1162
             { id: 1, name: "擦拭" },
1160
          ],
1165
          ],
1161
          operators: [],
1166
          operators: [],
1162
          operatorMaps:{},
1167
          operatorMaps:{},
1163
-         first_total_time:0,
1164
-         sencond_total_time:0,
1165
-         third_total_time:0,
1166
-         fourth_total_time:0,
1167
-         last_total_time:0,
1168
          
1168
          
1169
         }
1169
         }
1170
       },
1170
       },
1547
            // return ''
1547
            // return ''
1548
            // }
1548
            // }
1549
        },
1549
        },
1550
-       Add(){
1551
-        getObjectTableDisinfectLongTime().then(response=>{
1552
-           if(response.data.state == 1){
1553
-              this.dialogFormVisible = true
1554
-           }
1555
-        })
1556
-       }  
1550
+        
1557
       }
1551
       }
1558
     }
1552
     }
1559
   </script>
1553
   </script>

+ 2 - 0
src/xt_pages/dialysis/PatientBox.vue View File

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

+ 26 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyOne.vue View File

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

+ 27 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue View File

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

+ 93 - 9
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

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

+ 48 - 2
src/xt_pages/dialysis/details/consumable/dialysisParameterPrint.vue View File

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

+ 4 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

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

+ 2 - 2
src/xt_pages/dialysis/signPrint.vue View File

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

+ 32 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

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

+ 47 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

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

+ 7 - 0
src/xt_pages/management/home.vue View File

4529
         if (this.userform.user_total == ""){
4529
         if (this.userform.user_total == ""){
4530
           this.userform.user_total = 0
4530
           this.userform.user_total = 0
4531
         }
4531
         }
4532
+
4533
+        if(this.userform.disinfection == ""){
4534
+          this.userform.disinfection  = 0
4535
+        }
4536
+        if(this.userform.disinfection_status == ""){
4537
+           this.userform.disinfection_status = 0
4538
+        }
4532
         this.userform.user_total = parseInt(this.userform.user_total)
4539
         this.userform.user_total = parseInt(this.userform.user_total)
4533
 
4540
 
4534
         console.log("user_form",this.userform)
4541
         console.log("user_form",this.userform)

+ 3 - 3
src/xt_pages/outpatientCharges/invoiceTemplate/printFour.vue View File

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

+ 8 - 9
src/xt_pages/outpatientCharges/summary.vue View File

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

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


+ 10 - 4
src/xt_pages/stock/detail/print.vue View File

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

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue View File

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