XMLWAN před 4 roky
rodič
revize
1087e440f2

+ 16 - 2
src/store/modules/globalConfig.js Zobrazit soubor

@@ -490,12 +490,26 @@ const global_config = {
490 490
         sodium: 1,
491 491
         calcium: 1,
492 492
         bicarbonate: 1
493
-      }
493
+      },
494 494
       // 15: { id: 15, name: 'HD前置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
495 495
       // 16: { id: 16, name: 'HD后置换', dialysis_duration: 1, replacement_way: 2, hemodialysis_machine: 1, blood_filter: 2, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
496 496
       // 17: { id: 17, name: 'HDF前置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 },
497 497
       // 18: { id: 18, name: 'HDF后置换', dialysis_duration: 1, replacement_way: 1, hemodialysis_machine: 2, blood_filter: 1, perfusion_apparatus: 2, blood_flow_volume: 1, dialysate_flow: 1, kalium: 1, sodium: 1, calcium: 1, bicarbonate: 1 }
498
-
498
+      19: {
499
+        id: 19,
500
+        name: 'UF',
501
+        dialysis_duration: 1,
502
+        replacement_way: 1,
503
+        hemodialysis_machine: 2,
504
+        blood_filter: 1,
505
+        perfusion_apparatus: 2,
506
+        blood_flow_volume: 1,
507
+        dialysate_flow: 1,
508
+        kalium: 1,
509
+        sodium: 1,
510
+        calcium: 1,
511
+        bicarbonate: 1
512
+      }
499 513
     },
500 514
     anticoagulants_confit: { // 抗凝剂
501 515
       1: {

+ 74 - 25
src/xt_pages/dialysis/components/consumables.vue Zobrazit soubor

@@ -42,7 +42,7 @@
42 42
         </div>
43 43
       </div>
44 44
       <div>
45
-        <!-- <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button> -->
45
+        <el-button size="small" icon="el-icon-printer" @click="exportList" type="primary">导出</el-button>
46 46
         <el-button size="small" type="primary" @click="statistics">统计表</el-button>
47 47
       </div>
48 48
     </div>
@@ -64,7 +64,7 @@
64 64
         <el-table-column
65 65
           align="center"
66 66
           prop="name"
67
-          v-for="item,index in good_types"
67
+          v-for="(item,index) in good_types"
68 68
           :key="index"
69 69
           :label="item"
70 70
         >
@@ -139,6 +139,7 @@
139 139
 
140 140
         good_types: [],
141 141
         arrKey:[],
142
+        arrList:[],
142 143
 
143 144
       }
144 145
     },
@@ -189,7 +190,6 @@
189 190
           arrlist.push(desc)
190 191
           return desc
191 192
         }
192
-       console.log("arrlist---------",arrlist)
193 193
         return ""
194 194
        
195 195
         // else if (good_user != null && good_user.length <= 0) {
@@ -213,7 +213,7 @@
213 213
             this.$message.error(response.data.msg)
214 214
             return false
215 215
           } else {
216
-
216
+           
217 217
             this.list = []
218 218
             this.good_types = []
219 219
             this.allGoodInfo = []
@@ -226,11 +226,12 @@
226 226
             for (let a = 0; a <  res.data.good_type.length; a++){
227 227
               Object.keys(res.data.good_type[a]).map(item => {
228 228
                 if(item == 'type_name'){
229
-                  arr.push(item)
229
+                  arr.push('name')
230 230
                 }
231 231
               })
232 232
               this.good_types.push(res.data.good_type[a].type_name)
233 233
             }
234
+
234 235
             this.arrKey.push(...arr)
235 236
           
236 237
             this.allGoodInfo = res.data.dialysis_goods
@@ -250,8 +251,6 @@
250 251
 
251 252
                 }
252 253
                 arr.push(obj)
253
-
254
-
255 254
               }
256 255
 
257 256
 
@@ -268,7 +267,7 @@
268 267
             }
269 268
 
270 269
 
271
-            for (let a = 0; a <  this.list.length; a++){
270
+           for (let a = 0; a <  this.list.length; a++){
272 271
               for (let b = 0; b <  this.list[a].good_type.length; b++){
273 272
 
274 273
                 if(this.list[a].good_type[b].id > 0){
@@ -277,20 +276,56 @@
277 276
 
278 277
               }
279 278
             }
280
-
279
+           
280
+          //  console.log("99999999",this.list)
281
+           let a = [] 
282
+          this.list.map(item => {
283
+            a.push(item.good_type)
284
+          })
285
+          // console.log('aaaaaaaaa',a)
286
+          let b = []
287
+       
288
+          a.map(item => {
289
+            let obj = []
290
+            item.map((it,index) => {
291
+              let i = 0
292
+              let c = {}
293
+              let str = 'name' + index
294
+              c[str] = it.name
295
+              obj.push(c)
296
+              
297
+            })
298
+            
299
+            b.push(obj)
300
+          })
301
+          var temp = []
302
+          // console.log('bbbbbbbbbb',b)
303
+          for(let i=0;i<b.length;i++){
304
+            var objC = {...b[i]}
305
+            temp.push(objC)
281 306
           }
282
-
283
-         console.log("list222222",this.list)
284
-
285
-        })
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
307
+       
308
+          // console.log("temp--------",temp)
309
+          var tempTwo = []
310
+          temp.map(item => {
311
+            let obj = []
312
+            Object.values(item).map(it => {
313
+              obj.push(it)
314
+            })
315
+            let obj2 = {}
316
+            obj.map((i,ind) => {
317
+            
318
+              let str = 'name' + ind
319
+              obj2[str] = i[str]
320
+            })
321
+            tempTwo.push(obj2)
322
+            console.log(325556574342354234234,tempTwo)
323
+          })
324
+          
325
+          this.arrList.push(...tempTwo)
326
+          console.log("cccccccc",this.arrList)
327
+          }
328
+        })  
294 329
       },
295 330
       selectSchedulType(scheduleType) {
296 331
         this.schedulType = scheduleType
@@ -333,10 +368,24 @@
333 368
 
334 369
        exportList(){
335 370
          import('@/vendor/Export2Excel').then(excel => {
336
-         const tHeader = this.good_types
337
-         const filterVal = this.arrKey
371
+         
338 372
         
339
-         const data = this.formatJson(filterVal, this.list)
373
+       
374
+         var arrTwo = []
375
+         for(let i=0;i<this.arrKey.length;i++){
376
+            arrTwo.push('name'+i)
377
+         }
378
+         console.log("arrKey88888",arrTwo)
379
+
380
+        //  console.log("9999999",this.list)
381
+         const tHeader = this.good_types
382
+         const filterVal = arrTwo
383
+         console.log("thedad",tHeader)
384
+         console.log("filterval",filterVal)
385
+         console.log("33333",this.arrList)
386
+         const data = this.formatJson(filterVal,this.arrList)
387
+         console.log("data",data)
388
+      
340 389
          excel.export_json_to_excel({
341 390
            header: tHeader,
342 391
            data,
@@ -345,7 +394,7 @@
345 394
           this.downloadLoading = false
346 395
         })
347 396
        },
348
-       formatJson(filterVal, jsonData) {
397
+      formatJson(filterVal, jsonData) {
349 398
         return jsonData.map(v => filterVal.map(j => v[j]));
350 399
       },
351 400
 

+ 9 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

@@ -174,12 +174,14 @@
174 174
           </el-col>
175 175
 
176 176
           <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
177
+
177 178
             <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23' :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
178 179
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
179 180
                         v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
180 181
               <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
181 182
                         v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
182 183
             </el-form-item>
184
+
183 185
             <el-form-item v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23' :label="'首剂(mg) : '">
184 186
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
185 187
                         v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
@@ -1933,6 +1935,7 @@
1933 1935
         this.isVisibility = false
1934 1936
       },
1935 1937
       changeThisAnticoagulant: function(val) {
1938
+        console.log("val-----",val)
1936 1939
         var thismode = val
1937 1940
         if (isNaN(thismode) || thismode <= 0) {
1938 1941
           return false
@@ -1948,6 +1951,12 @@
1948 1951
           this.anticoagulant.weichi_unit = 'mg/h'
1949 1952
           this.anticoagulant.zongliang_unit = 'mg'
1950 1953
         }
1954
+
1955
+       if (this.$store.getters.xt_user.template_info.template_id == 27 && val == 4) {
1956
+          this.anticoagulant.shouji_unit = 'ml'
1957
+          this.anticoagulant.weichi_unit = 'ml'
1958
+          this.anticoagulant.zongliang_unit = 'ml'
1959
+        }
1951 1960
       },
1952 1961
       handleCommit: function() {
1953 1962
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {

+ 8 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Zobrazit soubor

@@ -507,8 +507,9 @@
507 507
                       <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50">
508 508
                         置换量<br />(ml)
509 509
                       </td>
510
+                      <td width="200" v-if="org_id == 9919">ktv</td>
510 511
                       <td width="200">病情变化及处理</td>
511
-
512
+                     
512 513
                       <!-- <td width="100">时间</td>
513 514
                   <td width="30">T<br>C°</td>
514 515
                   <td width="30">P<br/>次/分</td>
@@ -555,6 +556,7 @@
555 556
                       <td v-if="(prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12) && ((dialysisOrder && monitor.operate_time > dialysisOrder.end_time) || (dialysisOrder && monitor.operate_time < dialysisOrder.start_time))" style="width:50px">
556 557
                         {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}
557 558
                       </td>
559
+                      <td width="200" v-if="org_id == 9919">{{monitor.ktv}}</td>
558 560
                       <td style="line-height:16px;padding:0px;">
559 561
                         <div style="min-height:35px;line-height:35px; overflow:hidden;">
560 562
                           <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
@@ -576,6 +578,7 @@
576 578
                       <td></td>
577 579
                       <td></td>
578 580
                       <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5 || prescription.mode_id == 12" width="50"></td>
581
+                      <td v-if="org_id == 9919"></td>
579 582
                       <td style="line-height:16px;padding:0px;">
580 583
                         <div style="height:40px;line-height:20px; overflow:hidden;">
581 584
                           <span style="word-break: break-all;margin:0;line-height:16px;-webkit-line-clamp:3;overflow:visible;display:inline-block;vertical-align:middle;height:auto;">
@@ -1162,7 +1165,8 @@ export default {
1162 1165
         zongliang_unit: 'mg',
1163 1166
         gaimingcheng_unit: '',
1164 1167
         gaijiliang_unit: ''
1165
-      }
1168
+      },
1169
+      org_id:0,
1166 1170
     }
1167 1171
   },
1168 1172
   methods: {
@@ -1780,7 +1784,8 @@ export default {
1780 1784
       'hemodialysis',
1781 1785
       'vascular_access_desc'
1782 1786
     )
1783
-
1787
+     this.org_id = this.$store.getters.xt_user.org.id
1788
+     console.log("=====",this.org_id)
1784 1789
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1785 1790
 
1786 1791
     var bloodAccessParOpera = getDataConfig(

+ 13 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Zobrazit soubor

@@ -22,7 +22,7 @@
22 22
             </td>
23 23
             <td width="30">岁</td>
24 24
 
25
-            
25
+
26 26
             <td width="50">门诊号:</td>
27 27
             <td width="150">
28 28
               <div class="under-line">
@@ -352,7 +352,7 @@
352 352
                       </div>
353 353
                     </td>
354 354
 
355
-                    
355
+
356 356
                     <td></td>
357 357
                   </tr>
358 358
                 </tbody>
@@ -574,12 +574,12 @@
574 574
                     <td width="60">
575 575
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_shouji ? prescription.anticoagulant_shouji : "" }}</div>
576 576
                     </td>
577
-                    <td width="10">mg,</td>
577
+                    <td width="10">ml,</td>
578 578
                     <td width="60">追加量</td>
579 579
                     <td width="60">
580 580
                         <div class="under-line">&nbsp;{{ (prescription.anticoagulant == '阿加曲班' || prescription.anticoagulant == '普通肝素') && prescription.anticoagulant_weichi ? prescription.anticoagulant_weichi : "" }}</div>
581 581
                     </td>
582
-                    <td width="10">mg/h</td>
582
+                    <td width="10">ml</td>
583 583
                     <td width="10">)</td>
584 584
                     <td width="100">
585 585
                         <label-box :isChecked="prescription.anticoagulant == '无肝素' ? true : false" showValue="无肝素"></label-box>
@@ -770,6 +770,7 @@
770 770
             <td width="60" style="height:20px;line-height:20px">电导度<br />mS/cm</td>
771 771
             <td width="60" style="height:20px;line-height:20px">血流量<br />ml/分</td>
772 772
             <td width="40" style="height:20px;line-height:20px">液温<br />℃</td>
773
+            <td width="60" style="height:20px;line-height:20px">置换量<br />L</td>
773 774
             <td width="">特殊记录</td>
774 775
           </tr>
775 776
 
@@ -792,6 +793,7 @@
792 793
             <td>&nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}</td>
793 794
             <td>&nbsp;{{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}</td>
794 795
             <td>&nbsp;{{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}</td>
796
+            <td>{{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }}</td>
795 797
             <td style="text-align:left;padding-left:10px;">
796 798
               <div style="line-height:20px;text-align: left;display: inline-block;">
797 799
                 &nbsp;{{ monitor.symptom }}{{ monitor.dispose }}{{ monitor.result }}
@@ -962,10 +964,10 @@
962 964
         </tbody>
963 965
       </table>
964 966
       <div style="page-break-after: always;"></div>
965
-      
966
-      
967 967
 
968
-      
968
+
969
+
970
+
969 971
     </div>
970 972
     <div id='new-dialysis-2' class="dialysis-print-order">
971 973
       <!-- <div class="order-yy-name"></div> -->
@@ -1001,7 +1003,7 @@
1001 1003
             </td>
1002 1004
             <td width="20"></td>
1003 1005
 
1004
-            
1006
+
1005 1007
             <td></td>
1006 1008
           </tr>
1007 1009
         </tbody>
@@ -1036,7 +1038,7 @@
1036 1038
             <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
1037 1039
             <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
1038 1040
           </td>
1039
-          
1041
+
1040 1042
           <td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
1041 1043
           <td>
1042 1044
             <span v-if="setAdminUserES(advice.execution_staff) == ''">
@@ -1322,7 +1324,7 @@ export default {
1322 1324
             this.dialysisOrder.DeviceNumber.number
1323 1325
           );
1324 1326
         }
1325
-        
1327
+
1326 1328
       } else {
1327 1329
         if(this.patientInfo.DialysisSchedule.device_zone.name.indexOf("区") > -1){
1328 1330
           return (
@@ -1335,7 +1337,7 @@ export default {
1335 1337
             this.patientInfo.DialysisSchedule.device_number.number
1336 1338
           );
1337 1339
         }
1338
-        
1340
+
1339 1341
       }
1340 1342
     },
1341 1343
 

+ 3 - 0
src/xt_pages/stock/selfPreparedMedicine/query.vue Zobrazit soubor

@@ -142,7 +142,10 @@ export default {
142 142
          for(let i=0;i<this.tableData.length;i++){
143 143
             this.tableData[i].margin = (this.tableData[i].Total?this.tableData[i].Total:0) - this.tableData[i].Count
144 144
          }
145
+         console.log("表哥------",this.tableData)
145 146
          const data = this.formatJson(filterVal, this.tableData)
147
+         console.log("data",data)
148
+         return
146 149
          excel.export_json_to_excel({
147 150
            header: tHeader,
148 151
            data,