소스 검색

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 년 전
부모
커밋
1eb690c1d6

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 파일 보기

@@ -1492,14 +1492,14 @@
1492 1492
                             {{
1493 1493
                               monitor_record.venous_pressure
1494 1494
                                 ? monitor_record.venous_pressure
1495
-                                : ""
1495
+                                : "/"
1496 1496
                             }}
1497 1497
                           </td>
1498 1498
                           <td>
1499 1499
                             {{
1500 1500
                               monitor_record.transmembrane_pressure
1501 1501
                                 ? monitor_record.transmembrane_pressure
1502
-                                : ""
1502
+                                : "/"
1503 1503
                             }}
1504 1504
                           </td>
1505 1505
                           <td v-if="org_id != 9836">

+ 8 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue 파일 보기

@@ -1356,6 +1356,7 @@
1356 1356
                             <td width="50" >1:9肝素盐水剩余量<br />(ml)</td>
1357 1357
                             
1358 1358
                             <td width="60">体温(°C)</td>
1359
+                            <td width="60">透析液温度(°C)</td>
1359 1360
                             <td width="60">病情变化及处理</td>
1360 1361
                             <td width="60">签名</td>
1361 1362
                             
@@ -1470,6 +1471,13 @@
1470 1471
                                 : ""
1471 1472
                             }}
1472 1473
                             </td>
1474
+                            <td >
1475
+                               {{
1476
+                              monitor_record.dialysate_temperature
1477
+                                ? monitor_record.dialysate_temperature
1478
+                                : ""
1479
+                            }}
1480
+                            </td>
1473 1481
                             <td width="60">
1474 1482
                               {{ monitor_record.symptom }} &nbsp;{{
1475 1483
                                 monitor_record.dispose

+ 11 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

@@ -4181,6 +4181,11 @@ mu
4181 4181
                 this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
4182 4182
               }
4183 4183
             }
4184
+            if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
4185
+              if (this.last_prescription != null && response.data.data.dialysisPrescription != null) {
4186
+                this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
4187
+              }
4188
+            }
4184 4189
           } else {
4185 4190
             if (response.data.data.prescription != null) {
4186 4191
               // 临时处方不为空
@@ -4237,6 +4242,12 @@ mu
4237 4242
                 this.dialysisPrescription.remark = this.last_prescription.remark
4238 4243
               }
4239 4244
             }
4245
+            if(this.$store.getters.xt_user.template_info.org_id== 10013 || this.$store.getters.xt_user.template_info.org_id== 10014){
4246
+              if (this.last_prescription != null) {
4247
+                this.dialysisPrescription.remark = this.last_prescription.remark
4248
+              }
4249
+            }
4250
+
4240 4251
           }
4241 4252
         if (
4242 4253
           this.dialysisPrescription.dialysis_duration_hour === '' ||

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 파일 보기

@@ -92,7 +92,7 @@
92 92
           <div class="inline_block" v-if="org_id!=10460">
93 93
             床号:
94 94
             <div class="under_line" style="width: 50px; text-align: center">
95
-              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460">{{
95
+              <span v-if="org_id == 10121||org_id == 10414 || org_id == 10447 || org_id == 9675 || org_id == 0 || org_id ==10460 || org_id ==10515">{{
96 96
                 dialysisOrder &&
97 97
                 dialysisOrder.DeviceNumber &&
98 98
                 dialysisOrder.DeviceNumber.number.length > 0
@@ -1501,7 +1501,7 @@
1501 1501
                           {{
1502 1502
                             monitor.venous_pressure
1503 1503
                               ? monitor.venous_pressure
1504
-                              : ""
1504
+                              : "/"
1505 1505
                           }}
1506 1506
                         </td>
1507 1507
                         <td>
@@ -1517,7 +1517,7 @@
1517 1517
                             {{
1518 1518
                               monitor.transmembrane_pressure
1519 1519
                                 ? monitor.transmembrane_pressure
1520
-                                : ""
1520
+                                : "/"
1521 1521
                             }}
1522 1522
                           </span>
1523 1523
                           <span

+ 10 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue 파일 보기

@@ -1433,7 +1433,8 @@
1433 1433
                         <td width="50">超滤率<br />(ml/h)</td>
1434 1434
                         <td width="50">超滤量<br />(ml/h)</td>
1435 1435
                         <td width="50">1:9肝素盐水剩余量<br />(ml/h)</td>
1436
-                        <td width="50">体温<br />(ml/h)</td>
1436
+                        <td width="50">体温<br />(℃)</td>
1437
+                        <td width="50">透析液温度<br />(℃)</td>
1437 1438
                         <td width="50">病情变化及处理</td>
1438 1439
                         <td width="50">签名<br /></td>
1439 1440
                      
@@ -1456,6 +1457,7 @@
1456 1457
                         <td width="50">{{monitor.ultrafiltration_volume }}<br /></td>
1457 1458
                         <td width="50">{{monitor.heparin }}<br /></td>
1458 1459
                         <td width="50">{{monitor.temperature }}<br /></td>
1460
+                        <td width="50">{{monitor.dialysate_temperature }}<br /></td>
1459 1461
                         <td width="50">{{ monitor.symptom }} &nbsp;{{
1460 1462
                                 monitor.dispose
1461 1463
                               }}</td>
@@ -3815,6 +3817,13 @@ export default {
3815 3817
         return "0.0";
3816 3818
       }
3817 3819
     },
3820
+    compare (property) {
3821
+      return function (a, b) {
3822
+          var value1 = a[property]
3823
+          var value2 = b[property]
3824
+          return value1 - value2
3825
+      }
3826
+    },
3818 3827
   },
3819 3828
   watch: {
3820 3829
     "patientInfo.gender": function () {

+ 11 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 파일 보기

@@ -1001,6 +1001,7 @@ export default {
1001 1001
         let projects = [];
1002 1002
         response.data.data.projects.map((item) => {
1003 1003
           if (item.type == 2 && item.project.is_print == 1) {
1004
+          
1004 1005
             projects.push(item);
1005 1006
           }
1006 1007
         });
@@ -1025,9 +1026,11 @@ export default {
1025 1026
         console.log("this.projects", this.projects);
1026 1027
 
1027 1028
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1028
-      
1029
+        
1030
+        
1029 1031
         if(this.projects!=null && this.projects.length >0){
1030 1032
            for(let i=0;i<this.projects.length;i++){
1033
+             this.projects.sort(this.compare('execution_time'))
1031 1034
              if(this.projects[i].type== 2){
1032 1035
             
1033 1036
               this.projects[i].project_team_name = ""
@@ -1384,6 +1387,13 @@ export default {
1384 1387
       // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1385 1388
       return new Blob([uInt8Array], { type: 'application/pdf' });
1386 1389
     },
1390
+    compare (property) {
1391
+      return function (a, b) {
1392
+          var value1 = a[property]
1393
+          var value2 = b[property]
1394
+          return value1 - value2
1395
+      }
1396
+    },
1387 1397
   },
1388 1398
   created() {
1389 1399
     var bloodAccessParOpera = getDataConfig(

+ 1 - 1
src/xt_pages/management/index.vue 파일 보기

@@ -37,7 +37,7 @@
37 37
           icon="el-icon-search"
38 38
           size="small"
39 39
           @click="Auto()"
40
-          >自动生成</el-button
40
+          >脚本</el-button
41 41
         > -->
42 42
       </div>
43 43
 

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue 파일 보기

@@ -81,7 +81,7 @@
81 81
           {{paramsObj.name}}
82 82
         </div>
83 83
         <div :style="{position: 'absolute',top:(80 + (index * 450))  + 'px',left:'200px'}">
84
-
84
+          {{list.order.fa_piao_number}}
85 85
         </div>
86 86
       </div>
87 87
 
@@ -321,7 +321,7 @@ export default {
321 321
           }
322 322
           this.pageArr.push(obj)
323 323
         }
324
-       
324
+
325 325
           // var num=''
326 326
           // if(this.pageArr.length<=3){
327 327
           //   num=1

+ 20 - 1
src/xt_pages/outpatientCharges/summary.vue 파일 보기

@@ -66,6 +66,16 @@
66 66
             </el-option>
67 67
           </el-select>
68 68
 
69
+
70
+          <el-select v-model="medTypeVal" placeholder="请选择医疗类别" style="margin-right:20px;" @change="handleMedChange">
71
+            <el-option
72
+              v-for="item in med_options"
73
+              :key="item.id"
74
+              :label="item.text"
75
+              :value="item.id">
76
+            </el-option>
77
+          </el-select>
78
+
69 79
           <!-- <el-date-picker
70 80
               size="small"
71 81
               v-model="start_time"
@@ -496,6 +506,11 @@ export default {
496 506
     return {
497 507
       orderObj: {},
498 508
       batchOrderObj:{},
509
+      med_options:[
510
+        { id: 0, text: '全部' },
511
+        { id: 11, text: '普通门诊' },
512
+        { id: 14, text: '门诊特殊病' },
513
+      ],
499 514
       zone_options: [
500 515
         { id: 0, text: '全部分区' }
501 516
       ],
@@ -515,6 +530,7 @@ export default {
515 530
       keywords: "",
516 531
       sch_type:"0",//班次
517 532
       zoneVal:0,//分区
533
+      medTypeVal:0,
518 534
       start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
519 535
       end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
520 536
       total: "",
@@ -583,6 +599,8 @@ export default {
583 599
     handleSchType(val){
584 600
       this.sch_type = val
585 601
       this.getHisOrderList()
602
+    },handleMedChange(){
603
+      this.getHisOrderList()
586 604
     },
587 605
     handleZoneChange(val){
588 606
       this.zoneVal = val
@@ -3577,7 +3595,8 @@ export default {
3577 3595
         p_type: 2,
3578 3596
         sort_type: this.sort_type,
3579 3597
         sch_type: this.sch_type,
3580
-        zone_type: this.zoneVal
3598
+        zone_type: this.zoneVal,
3599
+        med_type: this.medTypeVal
3581 3600
       };
3582 3601
       getHisOrderList(params).then((response) => {
3583 3602
         if (response.data.state == 0) {

+ 43 - 36
src/xt_pages/stock/drugs/drugStockOutOrder.vue 파일 보기

@@ -961,7 +961,7 @@ export default {
961 961
       this.getExportOutOrderDrugList();
962 962
     },
963 963
     batchDelete() {
964
-      console.log("232322323", this.selectedTableData);
964
+     
965 965
 
966 966
       if (this.selectedTableData.length <= 0) {
967 967
         this.$message.error("请选择要删除的记录");
@@ -1215,32 +1215,44 @@ export default {
1215 1215
         if (response.data.state == 1) {
1216 1216
           this.tableShow = true;
1217 1217
           this.tableList = [];
1218
+          //流水详情
1218 1219
           var list = response.data.data.list;
1219
-          console.log("listwowowowoow",list)
1220
+      
1220 1221
           this.warehouseOutList = list
1221 1222
           this.manufacturerList = response.data.data.manufacturerList;
1222 1223
           this.dealerList = response.data.data.dealerList;
1224
+          //详情(xt_drug_automatic_reduce_detail)
1223 1225
           var drugFlowList = response.data.data.drugFlowList;
1226
+          //流水详情
1224 1227
           var drugList = response.data.data.drugList
1225 1228
          
1226 1229
           this.tabList = drugList
1230
+          //按批号分组
1227 1231
           var drugListOne = response.data.data.drugListFlow
1228
-          console.log("drugListOne----------",drugListOne)
1232
+        
1229 1233
           //按批号分组
1230 1234
           var drugListTwo=  response.data.data.drugListOne
1231
-          console.log("drugListTwo9922wo",drugListTwo)
1235
+       
1236
+
1237
+          //出库详情
1232 1238
           var drugoutlist = response.data.data.drugoutlist
1239
+       
1233 1240
           this.outList = drugoutlist
1234 1241
           this.drugOutInfo = drugoutlist
1235 1242
           if (is_sys == 1) {
1243
+             console.log("数据1",drugFlowList)
1244
+             console.log("数据2",drugListOne)
1236 1245
             if (drugFlowList.length > 0) {
1237 1246
               for (let i = 0; i < drugFlowList.length; i++) {
1238 1247
                  drugFlowList[i].childOne = []
1239 1248
                  drugFlowList[i].child = []
1240
-                if (drugFlowList[i].count_unit ==drugFlowList[i].XtBaseDrug.max_unit) {
1249
+                if ((drugFlowList[i].count_unit ==drugFlowList[i].XtBaseDrug.max_unit) && (drugFlowList[i].XtBaseDrug.max_unit!=drugFlowList[i].XtBaseDrug.min_unit)) {
1241 1250
                    drugFlowList[i].count =drugFlowList[i].count * drugFlowList[i].XtBaseDrug.min_number;
1242 1251
                 }
1243
-                if (drugFlowList[i].count_unit ==drugFlowList[i].XtBaseDrug.min_unit) {
1252
+                if ((drugFlowList[i].count_unit ==drugFlowList[i].XtBaseDrug.min_unit)&& (drugFlowList[i].XtBaseDrug.max_unit!=drugFlowList[i].XtBaseDrug.min_unit) ) {
1253
+                    drugFlowList[i].count = drugFlowList[i].count;
1254
+                }
1255
+                if ((drugFlowList[i].count_unit ==drugFlowList[i].XtBaseDrug.min_unit)&& (drugFlowList[i].XtBaseDrug.max_unit==drugFlowList[i].XtBaseDrug.min_unit) ) {
1244 1256
                     drugFlowList[i].count = drugFlowList[i].count;
1245 1257
                 }
1246 1258
                 for(let j=0;j<drugListOne.length;j++){
@@ -1248,16 +1260,15 @@ export default {
1248 1260
                        drugFlowList[i].childOne.push(drugListOne[j])
1249 1261
                    }
1250 1262
                 }
1251
-                if(drugFlowList[i].drug_id == 1154){
1252
-                    console.log("drugflowlist------",drugFlowList[i].count)
1253
-                }
1263
+               
1254 1264
               }
1255 1265
             }
1256
-          
1266
+            console.log("以色列",drugFlowList)
1257 1267
             this.drugFlowList = drugFlowList;
1258 1268
           }
1259 1269
 
1260 1270
           if (is_sys == 0 || is_sys == 12 || is_sys == 5) {
1271
+            //出库详情
1261 1272
             var flowlist = response.data.data.flowlist;
1262 1273
             this.drugFlowList = [];
1263 1274
             for (let i = 0; i < flowlist.length; i++) {
@@ -1291,6 +1302,8 @@ export default {
1291 1302
                 }
1292 1303
              }
1293 1304
             }
1305
+
1306
+
1294 1307
             if(list[i].is_sys == 0 || list[i].is_sys == 5  || list[i].is_sys == 12){
1295 1308
               for(let j=0;j<drugListTwo.length;j++){
1296 1309
                 if(list[i].drug_id == drugListTwo[j].drug_id){
@@ -1300,13 +1313,16 @@ export default {
1300 1313
             }
1301 1314
           }
1302 1315
 
1303
-     
1316
+        
1317
+        console.log("中故宫人我奶奶万年万年",list)
1304 1318
         if(is_sys == 1 || is_sys == 5){
1305 1319
           for(let i=0;i<list.length;i++){
1306 1320
             for(let j=0;j<list[i].childOne.length;j++){
1307 1321
                list[i].childOne[j].over_count_total = this.getOutCountSix(list[i].childOne[j].warehousing_detail_id,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id)
1308 1322
             }
1309 1323
           }
1324
+         
1325
+          console.log("中部listowowowoowowow",list)
1310 1326
 
1311 1327
          for(let i=0;i<list.length;i++){
1312 1328
             for(let j=0;j<list[i].childOne.length;j++){
@@ -1334,17 +1350,7 @@ export default {
1334 1350
             }
1335 1351
           }
1336 1352
          
1337
-          // for(let i=0;i<list.length;i++){
1338
-          //  for(let j=0;j<list[i].child.length;j++){
1339
-          //   list[i].child[j].outInfo = []
1340
-          //    for(let z=0;z<this.drugOutInfo.length;z++){
1341
-          //      if(list[i].child[j].warehousing_detail_id == this.drugOutInfo[z].warehouse_info_id&&list[i].child[j].drug_id == this.drugOutInfo[z].drug_id){
1342
-          //        list[i].child[j].outInfo.push(this.drugOutInfo[z])
1343
-          //      }
1344
-          //    }
1345
-          //  }
1346
-          // }
1347
-          // console.log("list23322332233wo",list)
1353
+          console.log("listowowowowo",list)
1348 1354
           this.tableList = list;
1349 1355
         }
1350 1356
 
@@ -1379,11 +1385,11 @@ export default {
1379 1385
         drug_id: val.drug_id,
1380 1386
         record_time: val.sys_record_time,
1381 1387
       };
1382
-      //  console.log("使用明细",params)
1388
+
1383 1389
       getAutoDrugDetail(params).then((response) => {
1384 1390
         if (response.data.state == 1) {
1385 1391
           this.userList = response.data.data.list;
1386
-          // console.log("自动出库数据", this.userList);
1392
+         
1387 1393
           if (val.is_sys == 1) {
1388 1394
             this.drugDialogVisible = true;
1389 1395
           }
@@ -1391,10 +1397,10 @@ export default {
1391 1397
             this.drugDialogVisibleTwo = true;
1392 1398
           }
1393 1399
           var userListOne = response.data.data.outList;
1394
-          //  console.log("手动出库2232332",userListOne)
1400
+        
1395 1401
           this.userListOne = userListOne;
1396 1402
           var batchNumber = response.data.data.batchNumber;
1397
-          //  console.log("出库详情",batchNumber)
1403
+        
1398 1404
           this.batchNumberList = batchNumber;
1399 1405
         }
1400 1406
       });
@@ -1419,16 +1425,16 @@ export default {
1419 1425
       getDrugCountList(params).then((response) => {
1420 1426
         if (response.data.state == 1) {
1421 1427
           var countlist = response.data.data.countList;
1422
-          // console.log("入库数据",countlist)
1428
+        
1423 1429
           this.countList = countlist;
1424 1430
           var outcountlist = response.data.data.outCountList;
1425
-          // console.log("出库数据",outcountlist)
1431
+        
1426 1432
           this.outCountList = outcountlist;
1427 1433
           var aucountlist = response.data.data.auCountList;
1428
-          // console.log("自动数据",aucountlist)
1434
+         
1429 1435
           this.autoCountList = aucountlist;
1430 1436
           var minCount = response.data.data.minCount;
1431
-          // console.log("minCount",minCount)
1437
+          
1432 1438
           this.minCount = minCount;
1433 1439
           var info = response.data.data.info;
1434 1440
           for (let i = 0; i < info.length; i++) {
@@ -1436,7 +1442,7 @@ export default {
1436 1442
               info[i].count = info[i].count * info[i].min_number;
1437 1443
             }
1438 1444
           }
1439
-          // console.log("info2222222",info)
1445
+          
1440 1446
           this.drugOutList = info;
1441 1447
         }
1442 1448
       });
@@ -1664,7 +1670,7 @@ export default {
1664 1670
           "remark",
1665 1671
         ];
1666 1672
 
1667
-        // console.log("table",this.exportList)
1673
+      
1668 1674
 
1669 1675
         const data = this.formatJson(filterVal, this.exportList);
1670 1676
         excel.export_json_to_excel({
@@ -1731,6 +1737,7 @@ export default {
1731 1737
       var total = 0
1732 1738
       var max_str = ""
1733 1739
       var min_str = ""
1740
+
1734 1741
       for(let j=0;j<this.outList.length;j++){
1735 1742
         if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1736 1743
            arr.push(this.outList[j])
@@ -1830,12 +1837,12 @@ export default {
1830 1837
       return max_str + min_str;
1831 1838
     },
1832 1839
     getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
1833
-      console.log("drug_id-----",drug_id)
1840
+    
1834 1841
       var arr = []
1835 1842
       var total = 0
1836 1843
       var max_str = ""
1837 1844
       var min_str = ""
1838
-      console.log("tablelost----",this.tabList)
1845
+    
1839 1846
       for(let j=0;j<this.tabList.length;j++){
1840 1847
       
1841 1848
         if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
@@ -1962,7 +1969,7 @@ export default {
1962 1969
       if(max_unit == min_unit){
1963 1970
          all_price = max_str * price + min_str * price
1964 1971
       }
1965
-      console.log("all_pricewowo",all_price)
1972
+     
1966 1973
       if(all_price > 0){
1967 1974
         return all_price.toFixed(2)
1968 1975
       }else{
@@ -2213,7 +2220,7 @@ export default {
2213 2220
       var max_str = ""
2214 2221
       var min_str = ""
2215 2222
   
2216
-     console.log("total",total)
2223
+  
2217 2224
       if (total < min_number) {
2218 2225
         min_str = total + min_unit;
2219 2226
       }

+ 2 - 1
src/xt_pages/user/components/PatientDetail.vue 파일 보기

@@ -959,7 +959,8 @@
959 959
     <div style="display: none">
960 960
       <div id="print-info-box">
961 961
         <div class="print_main_content" >
962
-          <div class="order_title">{{ orgname }} 血液透析门诊病历</div>
962
+          <div class="order_title" v-if="org_id!=10210">{{ orgname }} 血液透析门诊病历</div>
963
+          <div class="order_title" v-if="org_id==10210">{{ orgname }} 血液透析住院病历</div>
963 964
           <div >
964 965
             <table >
965 966
               <!-- 用 thead 规定好宽度 -->