Browse Source

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

陈少旭 2 weeks ago
parent
commit
b228a4be48

+ 9 - 0
src/api/patient.js View File

@@ -1615,4 +1615,13 @@ export function savePatientOrderSetting(params){
1615 1615
     method:"get",
1616 1616
     params:params
1617 1617
   })
1618
+}
1619
+
1620
+export function getPatientCountFlowList(params){
1621
+
1622
+  return request({
1623
+    url:"/api/patient/getpatientcountflowlist",
1624
+    method:"get",
1625
+    params:params
1626
+  })
1618 1627
 }

+ 5 - 0
src/xt_pages/Pharmacy/PatientDispensing.vue View File

@@ -540,9 +540,13 @@ export default {
540 540
       console.log("this.currentRow", this.currentRow);
541 541
     
542 542
       if (this.state == 1) {
543
+        this.tableData = []
544
+        this.patients = {}
543 545
         this.getpatientdetails(0);
544 546
       }
545 547
       if (this.state == 2) {
548
+        this.patients = {}
549
+        this.tableData = []
546 550
         this.getpatientdetails(1);
547 551
       }
548 552
     },
@@ -868,6 +872,7 @@ export default {
868 872
             diagnose:res.data.data.patients.diagnose,
869 873
             zhixing:res.data.data.patients.created_time
870 874
           }
875
+          this.patients = {}
871 876
           this.patients =obj
872 877
           if(this.$store.getters.xt_user.org.id == 10188 || this.$store.getters.xt_user.org.id == 10217 || this.$store.getters.xt_user.org.id == 10387 ||  this.$store.getters.xt_user.org.id == 0  ||  this.$store.getters.xt_user.org.id == 10480  ){
873 878
             this.tableData = []

+ 1 - 1
src/xt_pages/charging/chargin_kf.vue View File

@@ -6,7 +6,7 @@
6 6
     <div class="app-container">
7 7
       <div style="display: flex;">
8 8
         <div style="flex: 2;display: flex;justify-content: space-around;">
9
-          <!-- <div > <el-input v-model="input" placeholder="请输入内容"></el-input></div> -->
9
+         
10 10
           <el-autocomplete
11 11
               class="inline-input"
12 12
                v-model.trim="smart_keyword"

+ 80 - 3
src/xt_pages/charging/charging_collect.vue View File

@@ -3,10 +3,25 @@
3 3
     <div class="position"></div>
4 4
     <div class="app-container">
5 5
       <div style="display: flex;justify-content: space-around;">
6
-        <div > <el-input v-model="input" placeholder="请输入内容"></el-input></div>
6
+        <div> 
7
+          <el-autocomplete
8
+              class="inline-input"
9
+               v-model.trim="smart_keyword"
10
+              :fetch-suggestions="querySearch"
11
+              placeholder="请输入内容"
12
+              @select="handleSelect"
13
+              
14
+            >
15
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
16
+          <template slot-scope="{ item }">
17
+            <div class="name">{{ item.name }}</div>
18
+          </template>
19
+          </el-autocomplete>
20
+        </div>
7 21
         <div>
8 22
           日期查询:
9 23
           <el-date-picker
24
+           @change="changeTime"
10 25
             v-model="value1"
11 26
             type="daterange"
12 27
             range-separator="至"
@@ -16,7 +31,7 @@
16 31
         </div>
17 32
         <div>
18 33
           费用类型:
19
-          <el-select v-model="value" placeholder="请选择">
34
+          <el-select v-model="is_type" placeholder="请选择">
20 35
             <el-option
21 36
               v-for="item in options"
22 37
               :key="item.value"
@@ -135,6 +150,7 @@
135 150
   </div>
136 151
 </template>
137 152
 <script>
153
+import {getPatientMapList,getPatientCountFlowList} from "@/api/patient"
138 154
   export default{
139 155
     data(){
140 156
       return{
@@ -145,10 +161,47 @@
145 161
         state1:'',
146 162
         collect_show:false,
147 163
         options:[{value:0,label:'全部'},{value:1,label:'充值'},{value:2,label:'扣费'}],
148
-        tableData: [{ index: 1, name: '小米', HD: 1, HDF: 1, 'HD+HP': 1, 'qita': 1 ,examine:false}],
164
+        tableData: [],
165
+        start_time:"",
166
+        end_time:"",
167
+        smart_keyword:"",
168
+        patient_id:0,
169
+        limit:10,
170
+        page:1,
171
+        is_type:0,
172
+        total:0,
149 173
       }
150 174
     },
151 175
     methods:{
176
+      handleSelect(val){
177
+        this.smart_keyword = val.name;
178
+        this.patient_id = val.id
179
+      },
180
+      querySearch(queryString, cb){
181
+        let key = ''
182
+        if (queryString != undefined) {
183
+          key = queryString
184
+        }
185
+        let searchArray = []
186
+         var  params = {
187
+          keyword:key
188
+         }
189
+        getPatientMapList(params).then(response => {
190
+          if (response.data.state == 1) {
191
+            searchArray = response.data.data.patient
192
+            cb(searchArray)
193
+          } else {
194
+            this.$message.error(response.data.msg)
195
+            cb([])
196
+          }
197
+        })
198
+        return searchArray
199
+      },
200
+      changeTime(val){
201
+       this.start_time = val[0]
202
+       this.end_time = val[1]
203
+       this.getlist()
204
+     },
152 205
       mingx_click(){
153 206
         this.collect_show = true
154 207
       },
@@ -164,6 +217,30 @@
164 217
       handleCurrentChange(){
165 218
 
166 219
       },
220
+      getlist(){
221
+        var params = {
222
+          start_time:this.start_time,
223
+          end_time:this.end_time,
224
+          patient_id:this.patient_id,
225
+          limit:this.limit,
226
+          page:this.page,
227
+          is_type:this.is_type,
228
+        }
229
+        getPatientCountFlowList(params).then(response=>{
230
+          if(response.data.state == 1){
231
+             var list = response.data.data.list
232
+             this.tableData =[]
233
+             this.tableData = list
234
+             var total = response.data.data.total
235
+
236
+             this.total = total
237
+          }
238
+        })
239
+      }
240
+    },
241
+    created(){
242
+      this.getlist()
167 243
     }
244
+    
168 245
   }
169 246
 </script>

+ 4 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue View File

@@ -1400,6 +1400,7 @@
1400 1400
                     <td width="60" style="line-height: 20px">
1401 1401
                       电导度<br />mS/cm
1402 1402
                     </td>
1403
+                    <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />L/h</td>
1403 1404
                     <td width="" style="line-height: 20px">病情变化及处理</td>
1404 1405
                   </tr>
1405 1406
 
@@ -1490,7 +1491,9 @@
1490 1491
                         monitor.conductivity ? monitor.conductivity : ""
1491 1492
                       }}
1492 1493
                     </td>
1493
-
1494
+                    <td>
1495
+                     &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
1496
+                    </td>
1494 1497
                     <td>
1495 1498
                       &nbsp;{{ monitor.symptom }} &nbsp;{{
1496 1499
                         monitor.dispose

+ 5 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue View File

@@ -878,6 +878,8 @@
878 878
               <td width="40" style="line-height:20px">机温<br />℃</td>
879 879
               <td width="60" style="line-height:20px">血流量<br />ml/min</td>
880 880
               <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
881
+
882
+              <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />L/h</td>
881 883
               <!-- <td width="60">钠浓度<br/>mmol/L</td>
882 884
           <td width="80">透析液温度<br/>℃</td>
883 885
           <td width="60">置换率<br/>ml/min</td> -->
@@ -934,6 +936,9 @@
934 936
               <td>
935 937
                 &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
936 938
               </td>
939
+              <td>
940
+                &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
941
+              </td>
937 942
               <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
938 943
           <td>&nbsp;{{monitor.dialysate_temperature}}</td>
939 944
           <td>&nbsp;{{monitor.replacement_rate}}</td> -->

+ 18 - 17
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

@@ -1694,27 +1694,27 @@ export default {
1694 1694
         for (let i in this.monitors) {
1695 1695
           if (this.monitors[i].operate_time != null) {
1696 1696
             if (this.monitors[i].blood_flow_volume == 0 ||
1697
-              this.prescription.blood_flow_volume < 180 ||
1698
-              this.prescription.blood_flow_volume > 300
1697
+              this.monitors[i].blood_flow_volume < 180 ||
1698
+              this.monitors[i].blood_flow_volume > 300
1699 1699
             ) {
1700 1700
               const obj55 = '监测第' + ((i * 1) + 1) + '行血流量'
1701
-              monearr.push(obj55)
1701
+              checkDate.push(obj55)
1702 1702
             } if (this.monitors[i].venous_pressure == 0 ||
1703 1703
               this.monitors[i].venous_pressure < 20 ||
1704 1704
               this.monitors[i].venous_pressure > 150
1705 1705
             ) {
1706 1706
               const obj56 = '监测第' + ((i * 1) + 1) + '行静脉压'
1707
-              monearr.push(obj56)
1707
+              checkDate.push(obj56)
1708 1708
             } if (this.monitors[i].ultrafiltration_rate == 0) {
1709 1709
               const obj57 = '监测第' + ((i * 1) + 1) + '行超滤率'
1710
-              monearr.push(obj57)
1710
+              checkDate.push(obj57)
1711 1711
             } if (this.monitors[i].ultrafiltration_volume == 0 && i != 0) {
1712 1712
               const obj53 = '监测第' + ((i * 1) + 1) + '行超滤量'
1713
-              monearr.push(obj53)
1713
+              checkDate.push(obj53)
1714 1714
             } if (this.monitors[i].replacement_rate == 0 && this.prescription.mode == 'HDF'
1715 1715
             ) {
1716 1716
               const obj58 = '监测第' + ((i * 1) + 1) + '行置换率'
1717
-              monearr.push(obj58)
1717
+              checkDate.push(obj58)
1718 1718
             }
1719 1719
             // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1720 1720
             //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
@@ -1725,19 +1725,19 @@ export default {
1725 1725
             ) {
1726 1726
               // this.monitors[i].temperature == 0
1727 1727
               const obj59 = '监测第' + ((i * 1) + 1) + '行钠浓度'
1728
-              monearr.push(obj59)
1728
+              checkDate.push(obj59)
1729 1729
             } if (this.monitors[i].pulse_frequency == 0 ||
1730 1730
               this.monitors[i].pulse_frequency < 60 ||
1731 1731
               this.monitors[i].pulse_frequency > 100
1732 1732
             ) {
1733 1733
               const obj60 = '监测第' + ((i * 1) + 1) + '行脉搏'
1734
-              monearr.push(obj60)
1734
+              checkDate.push(obj60)
1735 1735
             } if (this.monitors[i].breathing_rate == 0 ||
1736 1736
               this.monitors[i].breathing_rate < 12 ||
1737 1737
               this.monitors[i].breathing_rate > 20
1738 1738
             ) {
1739 1739
               const obj61 = '监测第' + ((i * 1) + 1) + '行呼吸'
1740
-              monearr.push(obj61)
1740
+              checkDate.push(obj61)
1741 1741
             } if (this.monitors[i].systolic_blood_pressure == 0 ||
1742 1742
               this.monitors[i].systolic_blood_pressure < 90 ||
1743 1743
               this.monitors[i].systolic_blood_pressure > 180 ||
@@ -1746,27 +1746,28 @@ export default {
1746 1746
               this.monitors[i].diastolic_blood_pressure > 120
1747 1747
             ) {
1748 1748
               const obj62 = '监测第' + ((i * 1) + 1) + '行血压'
1749
-              monearr.push(obj62)
1750
-            } if (this.monitors[i].temperature == 0||
1751
-                  this.monitors[i].temperature < 36 ||
1752
-                  this.monitors[i].temperature > 37
1749
+              checkDate.push(obj62)
1750
+            } if (this.monitors[i].temperature == 0 ||
1751
+              this.monitors[i].temperature < 36 ||
1752
+              this.monitors[i].temperature > 37
1753 1753
             ) {
1754 1754
               const obj51 = '监测第' + ((i * 1) + 1) + '行温度'
1755
-              monearr.push(obj51)
1755
+              checkDate.push(obj51)
1756 1756
             } if (this.monitors[i].transmembrane_pressure == 0 ||
1757 1757
               this.monitors[i].transmembrane_pressure < 20 ||
1758 1758
               this.monitors[i].transmembrane_pressure > 300
1759 1759
             ) {
1760 1760
               const obj52 = '监测第' + ((i * 1) + 1) + '行跨膜压'
1761
-              monearr.push(obj52)
1761
+              checkDate.push(obj52)
1762 1762
             }
1763 1763
           }
1764 1764
         }
1765 1765
       }
1766 1766
       if (monearr.length > 0) {
1767 1767
         checkDate = checkDate.concat(monearr)
1768
-        console.log('1111', checkDate.concat(monearr));
1768
+        
1769 1769
       }
1770
+      console.log('1111', checkDate);
1770 1771
       this.getcheckData(checkDate)
1771 1772
     },
1772 1773
     getDisplaceLiquiPart: function (val) {

+ 5 - 0
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

@@ -1172,6 +1172,11 @@ export default {
1172 1172
               tableAdvice.push(doctorAdevieInfo[i]) 
1173 1173
             }
1174 1174
            }
1175
+          }else{
1176
+            for(let i in doctorAdevieInfo){
1177
+              tableAdvice.push(doctorAdevieInfo[i])
1178
+            }
1179
+           
1175 1180
           }
1176 1181
        
1177 1182
           

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

@@ -541,7 +541,9 @@
541 541
             if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
542 542
               console.log('123',scope.row.drug.dose,scope.row.execution_frequency,scope.row.drug.min_unit)
543 543
               // 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
544
-              scope.row.prescribing_number = Math.ceil((parseInt(scope.row.single_dose) * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
544
+              scope.row.prescribing_number = Math.ceil((parseFloat(scope.row.single_dose) * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseFloat(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
545
+              console.log("prescribing_number=====",scope.row.prescribing_number)
546
+             
545 547
             } else {
546 548
               console.log(1234,scope.row.drug.dose)
547 549
               scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / (scope.row.drug.dose*1) / (scope.row.drug.min_number*1))//

+ 3 - 4
src/xt_pages/outpatientDoctorStation/template/printTwoteen.vue View File

@@ -12,8 +12,7 @@
12 12
         <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13 13
           {{ orgname }}第二类精神处方笺
14 14
         </div> -->
15
-        <div
16
-          class="printTitle"
15
+        <div class="printTitle"
17 16
           v-if="
18 17
             prescriptions[index].med_type != '1111' &&
19 18
             prescriptions[index].med_type != '1112'
@@ -61,7 +60,7 @@
61 60
             </div>
62 61
             <div style="display: flex;width: 100%;">
63 62
               <div style="flex: 1;">
64
-                临床诊断:{{ item.info ? getDepart(item.info.departments) : "" }}
63
+                临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
65 64
               </div>
66 65
               <div style="flex: 1;">
67 66
                 开具日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
@@ -115,7 +114,7 @@
115 114
                   </div>
116 115
                   <div style="display: flex;width: 100%;">
117 116
                     <div style="flex: 1;">
118
-                      临床诊断:{{ item.info ? getDepart(item.info.departments) : "" }}
117
+                      临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
119 118
                     </div>
120 119
                     <div style="flex: 1;">
121 120
                       开具日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}