浏览代码

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

+ 8 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive.vue 查看文件

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

+ 11 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

4181
                 this.dialysisPrescription.remark = response.data.data.dialysisPrescription.remark
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
           } else {
4189
           } else {
4185
             if (response.data.data.prescription != null) {
4190
             if (response.data.data.prescription != null) {
4186
               // 临时处方不为空
4191
               // 临时处方不为空
4237
                 this.dialysisPrescription.remark = this.last_prescription.remark
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
         if (
4252
         if (
4242
           this.dialysisPrescription.dialysis_duration_hour === '' ||
4253
           this.dialysisPrescription.dialysis_duration_hour === '' ||

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

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

+ 10 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyFive.vue 查看文件

1433
                         <td width="50">超滤率<br />(ml/h)</td>
1433
                         <td width="50">超滤率<br />(ml/h)</td>
1434
                         <td width="50">超滤量<br />(ml/h)</td>
1434
                         <td width="50">超滤量<br />(ml/h)</td>
1435
                         <td width="50">1:9肝素盐水剩余量<br />(ml/h)</td>
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
                         <td width="50">病情变化及处理</td>
1438
                         <td width="50">病情变化及处理</td>
1438
                         <td width="50">签名<br /></td>
1439
                         <td width="50">签名<br /></td>
1439
                      
1440
                      
1456
                         <td width="50">{{monitor.ultrafiltration_volume }}<br /></td>
1457
                         <td width="50">{{monitor.ultrafiltration_volume }}<br /></td>
1457
                         <td width="50">{{monitor.heparin }}<br /></td>
1458
                         <td width="50">{{monitor.heparin }}<br /></td>
1458
                         <td width="50">{{monitor.temperature }}<br /></td>
1459
                         <td width="50">{{monitor.temperature }}<br /></td>
1460
+                        <td width="50">{{monitor.dialysate_temperature }}<br /></td>
1459
                         <td width="50">{{ monitor.symptom }} &nbsp;{{
1461
                         <td width="50">{{ monitor.symptom }} &nbsp;{{
1460
                                 monitor.dispose
1462
                                 monitor.dispose
1461
                               }}</td>
1463
                               }}</td>
3815
         return "0.0";
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
   watch: {
3828
   watch: {
3820
     "patientInfo.gender": function () {
3829
     "patientInfo.gender": function () {

+ 11 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue 查看文件

1001
         let projects = [];
1001
         let projects = [];
1002
         response.data.data.projects.map((item) => {
1002
         response.data.data.projects.map((item) => {
1003
           if (item.type == 2 && item.project.is_print == 1) {
1003
           if (item.type == 2 && item.project.is_print == 1) {
1004
+          
1004
             projects.push(item);
1005
             projects.push(item);
1005
           }
1006
           }
1006
         });
1007
         });
1025
         console.log("this.projects", this.projects);
1026
         console.log("this.projects", this.projects);
1026
 
1027
 
1027
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1028
         // var objProject = {advice_name:"",start_time:"",single_dose:"",single_dose_unit:"",}
1028
-      
1029
+        
1030
+        
1029
         if(this.projects!=null && this.projects.length >0){
1031
         if(this.projects!=null && this.projects.length >0){
1030
            for(let i=0;i<this.projects.length;i++){
1032
            for(let i=0;i<this.projects.length;i++){
1033
+             this.projects.sort(this.compare('execution_time'))
1031
              if(this.projects[i].type== 2){
1034
              if(this.projects[i].type== 2){
1032
             
1035
             
1033
               this.projects[i].project_team_name = ""
1036
               this.projects[i].project_team_name = ""
1384
       // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1387
       // 通过Blob将Uint8Array数组转换成pdf类型的文件对象
1385
       return new Blob([uInt8Array], { type: 'application/pdf' });
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
   created() {
1398
   created() {
1389
     var bloodAccessParOpera = getDataConfig(
1399
     var bloodAccessParOpera = getDataConfig(

+ 1 - 1
src/xt_pages/management/index.vue 查看文件

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

+ 2 - 2
src/xt_pages/outpatientCharges/invoiceTemplate/printtwelve.vue 查看文件

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

+ 20 - 1
src/xt_pages/outpatientCharges/summary.vue 查看文件

66
             </el-option>
66
             </el-option>
67
           </el-select>
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
           <!-- <el-date-picker
79
           <!-- <el-date-picker
70
               size="small"
80
               size="small"
71
               v-model="start_time"
81
               v-model="start_time"
496
     return {
506
     return {
497
       orderObj: {},
507
       orderObj: {},
498
       batchOrderObj:{},
508
       batchOrderObj:{},
509
+      med_options:[
510
+        { id: 0, text: '全部' },
511
+        { id: 11, text: '普通门诊' },
512
+        { id: 14, text: '门诊特殊病' },
513
+      ],
499
       zone_options: [
514
       zone_options: [
500
         { id: 0, text: '全部分区' }
515
         { id: 0, text: '全部分区' }
501
       ],
516
       ],
515
       keywords: "",
530
       keywords: "",
516
       sch_type:"0",//班次
531
       sch_type:"0",//班次
517
       zoneVal:0,//分区
532
       zoneVal:0,//分区
533
+      medTypeVal:0,
518
       start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
534
       start_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
519
       end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
535
       end_time: moment(new Date()).add('year',0).format("YYYY-MM-DD"),
520
       total: "",
536
       total: "",
583
     handleSchType(val){
599
     handleSchType(val){
584
       this.sch_type = val
600
       this.sch_type = val
585
       this.getHisOrderList()
601
       this.getHisOrderList()
602
+    },handleMedChange(){
603
+      this.getHisOrderList()
586
     },
604
     },
587
     handleZoneChange(val){
605
     handleZoneChange(val){
588
       this.zoneVal = val
606
       this.zoneVal = val
3577
         p_type: 2,
3595
         p_type: 2,
3578
         sort_type: this.sort_type,
3596
         sort_type: this.sort_type,
3579
         sch_type: this.sch_type,
3597
         sch_type: this.sch_type,
3580
-        zone_type: this.zoneVal
3598
+        zone_type: this.zoneVal,
3599
+        med_type: this.medTypeVal
3581
       };
3600
       };
3582
       getHisOrderList(params).then((response) => {
3601
       getHisOrderList(params).then((response) => {
3583
         if (response.data.state == 0) {
3602
         if (response.data.state == 0) {

+ 43 - 36
src/xt_pages/stock/drugs/drugStockOutOrder.vue 查看文件

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

+ 2 - 1
src/xt_pages/user/components/PatientDetail.vue 查看文件

959
     <div style="display: none">
959
     <div style="display: none">
960
       <div id="print-info-box">
960
       <div id="print-info-box">
961
         <div class="print_main_content" >
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
           <div >
964
           <div >
964
             <table >
965
             <table >
965
               <!-- 用 thead 规定好宽度 -->
966
               <!-- 用 thead 规定好宽度 -->