Procházet zdrojové kódy

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

yq1 před 1 rokem
rodič
revize
812e94de4f

+ 5 - 3
src/xt_pages/dialysis/batch_print/batch_print_order.vue Zobrazit soubor

@@ -48,15 +48,17 @@
48 48
49 49
             </div>
50 50
             <div class="inline_block" style="margin-left: 25px">
51
-              科室22:
52
-              <check-box
51
+              科室:
52
+              <label-box showValue="门诊透析" :isChecked="record.receive_assessment.condition == 2 ? true : false"></label-box>
53
+              <label-box showValue="住院" :isChecked="record.receive_assessment.condition == 1 ? true : false"></label-box>
54
+              <!-- <check-box
53 55
                 text="门诊透析"
54 56
                 :checked="record.patient.source == 1"
55 57
               ></check-box>
56 58
               <check-box
57 59
                 text="住院"
58 60
                 :checked="record.patient.source == 2"
59
-              ></check-box>
61
+              ></check-box> -->
60 62
               <!-- TODO -->
61 63
             </div>
62 64
             <div class="inline_block" style="margin-left: 25px">

+ 1 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_fiftyThree.vue Zobrazit soubor

@@ -848,6 +848,7 @@
848 848
                         :src="setAdminUserES(advice[0]&&advice[0].execution_staff)"
849 849
                         alt=""
850 850
                         srcset=""
851
+                        v-else
851 852
                       />
852 853
                     </td>
853 854
                     <td style="line-height: 30px" width="90">

+ 15 - 15
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Zobrazit soubor

@@ -1410,49 +1410,49 @@
1410 1410
                             {{
1411 1411
                               monitor_record.breathing_rate
1412 1412
                                 ? monitor_record.breathing_rate
1413
-                                : ""
1413
+                                : "/"
1414 1414
                             }}
1415 1415
                           </td>
1416 1416
                           <td>
1417 1417
                             {{
1418 1418
                               monitor_record.blood_flow_volume
1419 1419
                                 ? monitor_record.blood_flow_volume
1420
-                                : ""
1420
+                                : "/"
1421 1421
                             }}
1422 1422
                           </td>
1423 1423
                           <td v-if="org_id == 10478">
1424 1424
                             {{
1425 1425
                               monitor_record.arterial_pressure
1426 1426
                                 ? monitor_record.arterial_pressure
1427
-                                : ""
1427
+                                : "/"
1428 1428
                             }}
1429 1429
                           </td>
1430 1430
                           <td>
1431 1431
                             {{
1432 1432
                               monitor_record.venous_pressure
1433 1433
                                 ? monitor_record.venous_pressure
1434
-                                : ""
1434
+                                : "/"
1435 1435
                             }}
1436 1436
                           </td>
1437 1437
                           <td>
1438 1438
                             {{
1439 1439
                               monitor_record.transmembrane_pressure
1440 1440
                                 ? monitor_record.transmembrane_pressure
1441
-                                : ""
1441
+                                : "/"
1442 1442
                             }}
1443 1443
                           </td>
1444 1444
                           <td v-if="org_id != 9836">
1445 1445
                             {{
1446 1446
                               monitor_record.dialysate_temperature
1447 1447
                                 ? monitor_record.dialysate_temperature
1448
-                                : ""
1448
+                                : "/"
1449 1449
                             }}
1450 1450
                           </td>
1451 1451
                           <td v-if="org_id == 9836">
1452 1452
                             {{
1453 1453
                               monitor_record.temperature
1454 1454
                                 ? monitor_record.temperature
1455
-                                : ""
1455
+                                : "/"
1456 1456
                             }}
1457 1457
                           </td>
1458 1458
 
@@ -1469,7 +1469,7 @@
1469 1469
                             {{
1470 1470
                               monitor_record.conductivity
1471 1471
                                 ? monitor_record.conductivity
1472
-                                : ""
1472
+                                : "/"
1473 1473
                             }}
1474 1474
                           </td>
1475 1475
 
@@ -1481,7 +1481,7 @@
1481 1481
                             {{
1482 1482
                               monitor_record.blood_oxygen_saturation
1483 1483
                                 ? monitor_record.blood_oxygen_saturation
1484
-                                : ""
1484
+                                : "/"
1485 1485
                             }}
1486 1486
                           </td>
1487 1487
 
@@ -1493,7 +1493,7 @@
1493 1493
                             {{
1494 1494
                               monitor_record.sodium_concentration
1495 1495
                                 ? monitor_record.sodium_concentration
1496
-                                : ""
1496
+                                : "/"
1497 1497
                             }}
1498 1498
                           </td>
1499 1499
 
@@ -1505,7 +1505,7 @@
1505 1505
                             {{
1506 1506
                               monitor_record.replacement_speed
1507 1507
                                 ? monitor_record.replacement_speed
1508
-                                : ""
1508
+                                : "/"
1509 1509
                             }}
1510 1510
                           </td>
1511 1511
 
@@ -1513,7 +1513,7 @@
1513 1513
                             {{
1514 1514
                               monitor_record.sodium_concentration
1515 1515
                                 ? monitor_record.sodium_concentration
1516
-                                : ""
1516
+                                : "/"
1517 1517
                             }}
1518 1518
                           </td>
1519 1519
                           <td width="50" v-if="org_id == 10375"><br />
@@ -1524,14 +1524,14 @@
1524 1524
                                 {{
1525 1525
                               monitor_record.ultrafiltration_volume
1526 1526
                                 ? monitor_record.ultrafiltration_volume
1527
-                                : "0"
1527
+                                : "/"
1528 1528
                             }}
1529 1529
                             </span>
1530 1530
                              <span v-if="org_id!=9671 && org_id!=10440 && org_id!=10471">
1531 1531
                                 {{
1532 1532
                               monitor_record.ultrafiltration_volume
1533 1533
                                 ? monitor_record.ultrafiltration_volume
1534
-                                : "0"
1534
+                                : "/"
1535 1535
                             }}
1536 1536
                             </span>
1537 1537
                           </td>
@@ -1555,7 +1555,7 @@
1555 1555
                             {{
1556 1556
                               monitor_record.filter_pressure
1557 1557
                                 ? monitor_record.filter_pressure
1558
-                                : ""
1558
+                                : "/"
1559 1559
                             }}
1560 1560
                           </td>
1561 1561
                           <td

+ 1 - 1
src/xt_pages/dialysis/details/index.vue Zobrazit soubor

@@ -489,7 +489,7 @@
489 489
               </div>
490 490
               <div style="display: flex;margin: 5px 0;">
491 491
                 <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
492
-                <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value}}L</div>
492
+                <div style="flex: 1;">置换液总量:<span v-if="main_collection.prescription.displace_liqui_value>0">{{main_collection.prescription.displace_liqui_value}}</span>L</div>
493 493
               </div>
494 494
               <div style="margin: 5px 0;">
495 495
                 <div>透析液类型:

+ 1 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

@@ -2032,7 +2032,7 @@ export default {
2032 2032
           style: style12,
2033 2033
           scanStyles: false,
2034 2034
         });
2035
-        console.log("printjswowoowowowwoow",style12)
2035
+       
2036 2036
 
2037 2037
       }else if (this.org_template_info.template_id == 65 || this.org_template_info.template_id == 6) {
2038 2038
         printJS({
@@ -2051,7 +2051,6 @@ export default {
2051 2051
         });
2052 2052
       }
2053 2053
       else if (this.org_template_info.template_id == 68 ) {
2054
-        console.log('6666',this.org_template_info.template_id);
2055 2054
         printJS({
2056 2055
           printable: "dialysis-print-box-1",
2057 2056
           type: "html",

+ 4 - 1
src/xt_pages/dialysis/schedualPatient.vue Zobrazit soubor

@@ -220,10 +220,13 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
220 220
             var filtedSchedules = []
221 221
             for (let s_i = 0; s_i < originSchedules.length; s_i++) {
222 222
               const schedule = originSchedules[s_i]
223
-              if (schedule.patient.name.indexOf(search_keyword) != -1) {
223
+              if(schedule.patient!=null){
224
+                if (schedule.patient.name.indexOf(search_keyword) != -1) {
224 225
                 filtedSchedules.push(schedule)
225 226
                 // break
227
+               }
226 228
               }
229
+              
227 230
             }
228 231
             if (filtedSchedules.length > 0) {
229 232
               schedules.push({ zone_id: scheduleInfo.zone_id, zone_name: scheduleInfo.zone_name, schedules: filtedSchedules })

+ 4 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Zobrazit soubor

@@ -31,8 +31,10 @@
31 31
               <td width="50">科 室:</td>
32 32
               <td width="200">
33 33
                 <div>
34
-                  <label-box :isChecked="patientInfo_source_1" showValue="门 诊 透 析"></label-box>
35
-                  <label-box :isChecked="patientInfo_source_2" showValue="住 院"></label-box>
34
+                  <!-- <label-box :isChecked="patientInfo_source_1" showValue="门 诊 透 析"></label-box>
35
+                  <label-box :isChecked="patientInfo_source_2" showValue="住 院"></label-box> -->
36
+                  <label-box showValue="门诊透析" :isChecked="receiverTreatmentAccess.condition == 2 ? true : false"></label-box>
37
+              <label-box showValue="住院" :isChecked="receiverTreatmentAccess.condition == 1 ? true : false"></label-box>
36 38
                 </div>
37 39
               </td>
38 40
 

+ 22 - 22
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Zobrazit soubor

@@ -1265,8 +1265,8 @@
1265 1265
                         <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
1266 1266
                           {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: "拒测"}}</td>
1267 1267
                         <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: "拒测"}}</td>
1268
-                        <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
1269
-                        <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
1268
+                        <td v-if="org_id!=10489">{{monitor.breathing_rate ? monitor.breathing_rate : "/"}}</td>
1269
+                        <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: "/"}}</td>
1270 1270
                         <td v-if="org_id ==10478">
1271 1271
                           {{
1272 1272
                             monitor.arterial_pressure
@@ -1278,7 +1278,7 @@
1278 1278
                           {{
1279 1279
                             monitor.venous_pressure
1280 1280
                               ? monitor.venous_pressure
1281
-                              : ""
1281
+                              : "/"
1282 1282
                           }}
1283 1283
                         </td>
1284 1284
                         <td>
@@ -1294,7 +1294,7 @@
1294 1294
                             {{
1295 1295
                               monitor.transmembrane_pressure
1296 1296
                                 ? monitor.transmembrane_pressure
1297
-                                : ""
1297
+                                : "/"
1298 1298
                             }}
1299 1299
                           </span>
1300 1300
                           <span
@@ -1308,48 +1308,48 @@
1308 1308
                             {{
1309 1309
                               monitor.transmembrane_pressure
1310 1310
                                 ? monitor.transmembrane_pressure
1311
-                                : ""
1311
+                                : "/"
1312 1312
                             }}
1313 1313
                           </span>
1314 1314
                         </td>
1315 1315
                         <td v-if="org_id == 9919">
1316
-                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1316
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: "/"}}
1317 1317
                         </td>
1318 1318
                         <td v-if="org_id == 9671">
1319
-                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1319
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: "/"}}
1320 1320
                         </td>
1321 1321
 
1322 1322
                         <td v-if="org_id == 9836">
1323
-                          {{ monitor.temperature ? monitor.temperature : "" }}
1323
+                          {{ monitor.temperature ? monitor.temperature : "/" }}
1324 1324
                         </td>
1325 1325
 
1326 1326
                          <td v-if="org_id!=9919 && org_id!=9671 && org_id!=9836">
1327
-                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}
1327
+                          {{monitor.dialysate_temperature? monitor.dialysate_temperature: "/"}}
1328 1328
                         </td>
1329 1329
 
1330 1330
 
1331 1331
                         <td v-if="org_id == 10121">
1332
-                          {{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: ""}}
1332
+                          {{monitor.blood_oxygen_saturation? monitor.blood_oxygen_saturation: "/"}}
1333 1333
                         </td>
1334 1334
 
1335 1335
                        <td v-if="org_id == 9538">
1336
-                          {{monitor.sodium_concentration? monitor.sodium_concentration: ""}}
1336
+                          {{monitor.sodium_concentration? monitor.sodium_concentration: "/"}}
1337 1337
                         </td>
1338 1338
 
1339 1339
 
1340 1340
                         <td v-if="org_id != 9538 &&org_id != 10121">
1341
-                          <span v-if="org_id!=0&&org_id!=10469 && org_id!=10490"> {{ monitor.conductivity ? monitor.conductivity : "" }}</span>
1342
-                          <span v-if="org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "" }}</span>
1343
-                          <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "" }}</span>
1341
+                          <span v-if="org_id!=0&&org_id!=10469 && org_id!=10490"> {{ monitor.conductivity ? monitor.conductivity : "/" }}</span>
1342
+                          <span v-if="org_id==10469"> {{ monitor.sodium_concentration ? monitor.sodium_concentration : "/" }}</span>
1343
+                          <span v-if="org_id==0||org_id==10490"> {{ monitor.replacement_speed ? monitor.replacement_speed : "/" }}</span>
1344 1344
                         </td>
1345 1345
 
1346 1346
                       
1347 1347
                         <td v-if="org_id == 10375 || org_id == 0"><br />
1348
-                          {{ monitor.replacement_rate? monitor.replacement_rate: ""}}
1348
+                          {{ monitor.replacement_rate? monitor.replacement_rate: "/"}}
1349 1349
                         </td>
1350 1350
                         <td>
1351
-                          <span v-if="org_id!=9671 && org_id!=10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1352
-                          <span v-if="org_id==9671 || org_id==10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "0"}}</span>
1351
+                          <span v-if="org_id!=9671 && org_id!=10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
1352
+                          <span v-if="org_id==9671 || org_id==10440"> {{ monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: "/"}}</span>
1353 1353
                         </td>
1354 1354
                         <!-- <td style="width:50px">
1355 1355
                           <span 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))">
@@ -1376,15 +1376,15 @@
1376 1376
                             }}
1377 1377
                           </span>
1378 1378
                         </td> -->
1379
-                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:""}}</td>
1379
+                        <td width="50" v-if="org_id == 3877 || org_id == 0 || org_id == 10449">{{ monitor.filter_pressure?monitor.filter_pressure:"/"}}</td>
1380 1380
                         <td width="50" v-if="org_id == 9919 || org_id == 9538 || org_id == 9671">
1381 1381
                           {{ monitor.ktv?monitor.ktv:"" }}
1382 1382
                         </td>
1383 1383
                         <td width="50" v-if="org_id == 9538 || org_id == 9919 || org_id == 9671">
1384
-                          {{ monitor.accumulated_blood_volume? monitor.accumulated_blood_volume:"" }}
1384
+                          {{ monitor.accumulated_blood_volume? monitor.accumulated_blood_volume:"/" }}
1385 1385
                         </td>
1386 1386
                         <td width="50" v-if="org_id ==10490 || org_id == 0">
1387
-                          {{ monitor.dicarbonate?monitor.dicarbonate:"" }}
1387
+                          {{ monitor.dicarbonate?monitor.dicarbonate:"/" }}
1388 1388
                         </td>
1389 1389
                         <td style="line-height: 16px; padding: 0px">
1390 1390
                           <div
@@ -2501,12 +2501,12 @@
2501 2501
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2502 2502
           患者签名:
2503 2503
           <div class="under_line" style="width: 120px;">
2504
-            <img
2504
+            <!-- <img
2505 2505
               style="height: 30px"
2506 2506
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2507 2507
               alt=""
2508 2508
               srcset=""
2509
-            />
2509
+            /> -->
2510 2510
           </div>
2511 2511
         </div>
2512 2512
       </div>

+ 3 - 3
src/xt_pages/hospitalStation/print.vue Zobrazit soubor

@@ -14,9 +14,9 @@
14 14
 
15 15
         <div class='dialysisPage'>
16 16
             <div v-if="org_id != 10138">
17
-                <printOne v-if="org_id != 10088 && org_id != 10215" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
-                <printFour v-if="org_id == 10088" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
-                <printFive v-if="org_id == 10215 || org_id == 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
17
+                <printOne v-if="org_id != 10088 && org_id != 10215 && org_id!=0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
18
+                <printFour v-if="org_id == 10088 || org_id == 0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFour>
19
+                <printFive v-if="org_id == 10215 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printFive>
20 20
             </div>
21 21
             <div v-else>
22 22
                 <printThree v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>

+ 42 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -80,7 +80,7 @@
80 80
 
81 81
         <div class="mainCell fixedCell" style="margin-bottom:10px;">
82 82
 
83
-          <div v-if="org_id == 10454">
83
+          <div v-if="org_id = 10206">
84 84
             <el-button  size="small"
85 85
                         @click="openZb(1)"
86 86
                         v-if=" this.order.id == 0"
@@ -1192,6 +1192,7 @@ export default {
1192 1192
       total: 0,
1193 1193
       state: '未收费',
1194 1194
       radio: 1,
1195
+      sch_type:0,
1195 1196
       radioStatus: 1,
1196 1197
       search_input: '',
1197 1198
       start_time: moment().locale('zh-cn').format('YYYY-MM-DD'),
@@ -1995,7 +1996,9 @@ export default {
1995 1996
     getDayPatientList() {
1996 1997
 
1997 1998
       let params = {
1998
-        'record_date': this.record_date
1999
+        'record_date': this.record_date,
2000
+        'sch_type':this.sch_type,
2001
+
1999 2002
       }
2000 2003
       getChargeHisPatientList(params).then(response => {
2001 2004
         if (response.data.state == 0) {
@@ -2216,7 +2219,9 @@ export default {
2216 2219
     },
2217 2220
     getMonthPatientList() {
2218 2221
       let params = {
2219
-        'record_date': this.record_date
2222
+        'record_date': this.record_date,
2223
+        'sch_type':this.sch_type,
2224
+
2220 2225
       }
2221 2226
       getChargeHisPatientList(params).then(response => {
2222 2227
         if (response.data.state == 0) {
@@ -2966,6 +2971,7 @@ export default {
2966 2971
           let obj3 = {
2967 2972
             order_id:this.order.id,
2968 2973
             admin_user_id: this.$store.getters.xt_user.user.id,
2974
+            record_date: this.record_date,
2969 2975
           }
2970 2976
           axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/settleAccount/cancel', {
2971 2977
             params: obj3
@@ -3696,7 +3702,9 @@ export default {
3696 3702
     changeRadioAndPatient(id) {
3697 3703
       this.radio = id
3698 3704
       let params = {
3699
-        'record_date': this.record_date
3705
+        'record_date': this.record_date,
3706
+        'sch_type':this.sch_type,
3707
+
3700 3708
       }
3701 3709
 
3702 3710
       getChargeHisPatientList(params).then(response => {
@@ -3945,13 +3953,16 @@ export default {
3945 3953
           }
3946 3954
         }
3947 3955
       })
3956
+    },changeSchtype(){
3957
+      this.getPatientList()
3948 3958
     },
3949 3959
     changeRadio(id) {
3950 3960
       if(this.activeName == 'first') {
3951 3961
         let temp_id = id
3952 3962
         this.radio = id
3953 3963
         let params = {
3954
-          'record_date': this.record_date
3964
+          'record_date': this.record_date,
3965
+          'sch_type':this.sch_type,
3955 3966
         }
3956 3967
         getChargeHisPatientList(params).then(response => {
3957 3968
           if (response.data.state == 0) {
@@ -4207,7 +4218,8 @@ export default {
4207 4218
     getPatientList() {
4208 4219
       let params = {
4209 4220
         'record_date': this.record_date,
4210
-        'type': this.radio
4221
+        'type': this.radio,
4222
+        'sch_type':this.sch_type,
4211 4223
       }
4212 4224
       getChargeHisPatientList(params).then(response => {
4213 4225
         if (response.data.state == 0) {
@@ -4231,7 +4243,9 @@ export default {
4231 4243
                   order_status: 0,
4232 4244
                   order_number: '',
4233 4245
                   his_patient_id: 0,
4234
-                  prescription: response.data.data.list[i].prescription
4246
+                  prescription: response.data.data.list[i].prescription,
4247
+                  schedle: response.data.data.list[i].schedule
4248
+
4235 4249
                 }
4236 4250
 
4237 4251
                 this.all_table_data.push(obj)
@@ -4249,7 +4263,9 @@ export default {
4249 4263
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4250 4264
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4251 4265
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4252
-                      prescription: response.data.data.list[i].prescription
4266
+                      prescription: response.data.data.list[i].prescription,
4267
+                      schedle: response.data.data.list[i].schedule
4268
+
4253 4269
 
4254 4270
                     }
4255 4271
                     this.all_table_data.push(obj)
@@ -4264,7 +4280,9 @@ export default {
4264 4280
                     his_patient_id: response.data.data.list[i].his_patient[0].id,
4265 4281
                     order_number: '',
4266 4282
                     order_id: 0,
4267
-                    prescription: response.data.data.list[i].prescription
4283
+                    prescription: response.data.data.list[i].prescription,
4284
+                    schedle: response.data.data.list[i].schedule
4285
+
4268 4286
 
4269 4287
                   }
4270 4288
                   this.all_table_data.push(obj)
@@ -4283,7 +4301,8 @@ export default {
4283 4301
                       his_patient_id: response.data.data.list[i].his_patient[b].id,
4284 4302
                       order_number: '',
4285 4303
                       order_id: 0,
4286
-                      prescription: response.data.data.list[i].prescription
4304
+                      prescription: response.data.data.list[i].prescription,
4305
+                      schedle: response.data.data.list[i].schedule
4287 4306
                     }
4288 4307
                     this.all_table_data.push(obj)
4289 4308
                   } else {
@@ -4297,7 +4316,9 @@ export default {
4297 4316
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4298 4317
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4299 4318
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4300
-                        prescription: response.data.data.list[i].prescription
4319
+                        prescription: response.data.data.list[i].prescription,
4320
+                        schedle: response.data.data.list[i].schedule
4321
+
4301 4322
 
4302 4323
                       }
4303 4324
                       this.all_table_data.push(obj)
@@ -4340,8 +4361,17 @@ export default {
4340 4361
             }
4341 4362
 
4342 4363
           }
4343
-
4344 4364
           unChargePatient = this.unique_four(unChargePatient)
4365
+          // for(let i = 0; i < unChargePatient.length; i++){
4366
+          //
4367
+          // }
4368
+          var cal_list = []
4369
+
4370
+          for(let i = 0;i < unChargePatient.length; i++){
4371
+
4372
+
4373
+          }
4374
+
4345 4375
 
4346 4376
           one_count = one_count + unChargePatient.length
4347 4377
 
@@ -4359,7 +4389,6 @@ export default {
4359 4389
             this.all_table_data = this.unique_four(this.all_table_data)
4360 4390
           }
4361 4391
 
4362
-          console.log(this.all_table_data)
4363 4392
 
4364 4393
           switch (this.radio) {
4365 4394
             case 1:

+ 151 - 48
src/xt_pages/outpatientCharges/statementTemplate/printtwelve.vue Zobrazit soubor

@@ -4,39 +4,73 @@
4 4
       阜阳市医疗保险费用结算单
5 5
     </div>
6 6
     <div style="display: flex;">
7
-      <div style="flex: 1;">结算ID:3412202310179024873</div>
8
-      <div style="flex: 1;">结算日期:2023-10-17 13:22:18</div>
9
-      <div style="flex: 1;">医疗类别:门诊慢病</div>
7
+      <div style="flex: 1;">结算ID:</div>
8
+      <div style="flex: 1;">结算日期:{{info.new_order.setl_time}}</div>
9
+      <div style="flex: 1;" v-if="info.new_order.med_type == 14">医疗类别:门诊慢病</div>
10
+      <div style="flex: 1;" v-if="info.new_order.med_type == 11">医疗类别:普通门诊</div>
11
+      <div style="flex: 1;" v-else>医疗类别:门诊慢病</div>
12
+
13
+
10 14
     </div>
11 15
     <div style="display: flex;margin: 10px 0 5px 0;">
12
-      <div style="flex: 1;">医院编号:H34122202353</div>
16
+      <div style="flex: 1;">医院编号:</div>
13 17
       <div style="flex: 2;">医院机构名称: 太和沃迪康血液透析中心</div>
14 18
     </div>
15 19
     <div class='statementTable'>
16 20
       <table border="1" style="border-collapse: collapse;width: 100%;">
17 21
         <tr>
18 22
           <td>姓名</td>
19
-          <td>王怀国</td>
23
+          <td>{{info.patient.name}}</td>
20 24
           <td>性别</td>
21
-          <td>男</td>
25
+          <td>{{info.patient.gender == '1' ? '' : '女'}}</td>
22 26
           <td>个人编号</td>
23
-          <td>34120000000017060193</td>
27
+          <td>{{info.patient.id_card_no}}</td>
24 28
           <td>人员类别</td>
25
-          <td>普通居民(成年)</td>
29
+          <td v-if="info.new_order.psn_type == '11'">在职</td>
30
+          <td v-if="info.new_order.psn_type == '1101'">职工在职</td>
31
+          <td  v-if="info.new_order.psn_type == '1102'">公务员在职</td>
32
+          <td  v-if="info.new_order.psn_type == '1103'">灵活就业人员在职</td>
33
+          <td  v-if="info.new_order.psn_type == '1160'">地方其他扩展人员</td>
34
+          <td v-if="info.new_order.psn_type == '12'">退休人员</td>
35
+          <td v-if="info.new_order.psn_type == '1201'">职工退休</td>
36
+          <td v-if="info.new_order.psn_type == '1202'">公务员退休</td>
37
+          <td v-if="info.new_order.psn_type == '1203'">灵活就业人员退休</td>
38
+          <td v-if="info.new_order.psn_type == '1260'">地方其他扩展人员</td>
39
+          <td v-if="info.new_order.psn_type == '13'">离休</td>
40
+          <td  v-if="info.new_order.psn_type == '1300'">离休人员</td>
41
+          <td  v-if="info.new_order.psn_type == '1360'">地方其他扩展人员</td>
42
+          <td  v-if="info.new_order.psn_type == '14'">居民(未成年)</td>
43
+          <td v-if="info.new_order.psn_type == '1401'">新生儿</td>
44
+          <td  v-if="info.new_order.psn_type == '1402'">学龄前儿童</td>
45
+          <td  v-if="info.new_order.psn_type == '1403'">中小学生</td>
46
+          <td  v-if="info.new_order.psn_type == '1404'">大学生</td>
47
+          <td  v-if="info.new_order.psn_type == '1405'">未成年(未入学)</td>
48
+          <td v-if="info.new_order.psn_type == '15'">居民(成年)</td>
49
+          <td  v-if="info.new_order.psn_type == '1501'">普通居民(成年)</td>
50
+          <td  v-if="info.new_order.psn_type == '1560'">地方其他扩展身份</td>
51
+          <td v-if="info.new_order.psn_type == '16'">居民(老年)</td>
52
+          <td v-else></td>
26 53
         </tr>
27 54
         <tr>
28 55
           <td colspan="2">身份证号</td>
29
-          <td colspan="2">341222198004156833</td>
56
+          <td colspan="2">{{info.new_order.id_card_no}}</td>
30 57
           <td colspan="2">险种</td>
31
-          <td colspan="2">城乡居民基本医疗保险</td>
58
+          <td colspan="2" v-if="info.new_order.insutype == '310'">职工基本医疗保险</td>
59
+          <td colspan="2" v-if="info.new_order.insutype == '320'">公务员医疗补助</td>
60
+          <td colspan="2" v-if="info.new_order.insutype == '330'">大额医疗费用补助</td>
61
+          <td colspan="2" v-if="info.new_order.insutype == '340'">离休人员医疗保障</td>
62
+          <td colspan="2" v-if="info.new_order.insutype == '390'">城乡居民基本医疗保险</td>
63
+          <td colspan="2" v-if="info.new_order.insutype == '392'">城乡居民大病医疗保险</td>
64
+          <td colspan="2" v-if="info.new_order.insutype == '510'">生育保险</td>
65
+          <td colspan="2" v-else></td>
32 66
         </tr>
33 67
         <tr>
34 68
           <td>入院日期</td>
35
-          <td>2023-10-17</td>
69
+          <td>{{info.new_order.setl_time.split(" ")[0]}}</td>
36 70
           <td>出院日期</td>
37
-          <td>2023-10-17</td>
71
+          <td>{{info.new_order.setl_time.split(" ")[0]}}</td>
38 72
           <td>治疗方式编码</td>
39
-          <td>ZLFS00373</td>
73
+          <td></td>
40 74
           <td>治疗方式名称</td>
41 75
           <td></td>
42 76
         </tr>
@@ -55,52 +89,52 @@
55 89
           <td colspan="1">超限价费用</td>
56 90
         </tr>
57 91
         <tr>
58
-          <td colspan="2">280</td>
59
-          <td colspan="2">196</td>
60
-          <td colspan="2">84</td>
61
-          <td colspan="1">0</td>
62
-          <td colspan="1">0</td>
92
+          <td colspan="2">{{info.new_order.medfee_sumamt}}</td>
93
+          <td colspan="2">{{info.new_order.inscp_scp_amt?info.new_order.inscp_scp_amt:''}}</td>
94
+          <td colspan="2">{{info.new_order.preselfpay_amt?info.new_order.preselfpay_amt:''}}</td>
95
+          <td colspan="1">{{info.new_order.fulamt_ownpay_amt?info.new_order.fulamt_ownpay_amt:''}}</td>
96
+          <td colspan="1">{{info.new_order.overlmt_self_pay?info.new_order.overlmt_self_pay:''}}</td>
63 97
         </tr>
64 98
 
65 99
         <tr>
66 100
           <td colspan="2">实际支付起付线</td>
67
-          <td colspan="2">0</td>
101
+          <td colspan="2">{{info.new_order.act_pay_dedc?info.new_order.act_pay_dedc:''}}</td>
68 102
           <td colspan="2">基本医疗保险统筹基金支出</td>
69
-          <td colspan="2">166.6</td>
103
+          <td colspan="2">{{info.new_order.hifp_pay?info.new_order.hifp_pay:''}}</td>
70 104
         </tr>
71 105
         <tr>
72 106
           <td colspan="2">公务员医疗补助基金支出</td>
73
-          <td colspan="2">0</td>
107
+          <td colspan="2">{{info.new_order.cvlserv_pay?info.new_order.cvlserv_pay:''}}</td>
74 108
           <td colspan="2">职工大额医疗费用补助基金支出</td>
75
-          <td colspan="2">0</td>
109
+          <td colspan="2">{{info.new_order.hifob_pay?info.new_order.hifob_pay:''}}</td>
76 110
         </tr>
77 111
         <tr>
78 112
           <td colspan="2">居民大病保险基金支出</td>
79
-          <td colspan="2">0</td>
113
+          <td colspan="2">{{info.new_order.hifmi_pay?info.new_order.hifmi_pay:''}}</td>
80 114
           <td colspan="2">医疗救助基金支出</td>
81
-          <td colspan="2">166.6</td>
115
+          <td colspan="2">{{info.new_order.maf_pay?info.new_order.maf_pay:''}}</td>
82 116
         </tr>
83 117
         <tr>
84 118
           <td colspan="2">其他基金支出</td>
85
-          <td colspan="2">0</td>
119
+          <td colspan="2">{{info.new_order.oth_pay?info.new_order.oth_pay:''}}</td>
86 120
           <td colspan="2">基金支付总额</td>
87
-          <td colspan="2">166.6</td>
121
+          <td colspan="2">{{info.new_order.fund_pay_sumamt?info.new_order.fund_pay_sumamt:''}}</td>
88 122
         </tr>
89 123
         <tr>
90 124
           <td colspan="2">个人账户支出</td>
91
-          <td colspan="2">0</td>
125
+          <td colspan="2">{{info.new_order.acct_pay?info.new_order.acct_pay:''}}</td>
92 126
           <td colspan="2">个人现金支出</td>
93
-          <td colspan="2">166.6</td>
127
+          <td colspan="2">{{info.new_order.psn_cash_pay?info.new_order.psn_cash_pay:''}}</td>
94 128
         </tr>
95 129
         <tr>
96 130
           <td colspan="2">余额</td>
97
-          <td colspan="2">0</td>
131
+          <td colspan="2">{{info.new_order.balc?info.new_order.balc:''}}</td>
98 132
           <td colspan="2">个人负担总金额</td>
99
-          <td colspan="2">166.6</td>
133
+          <td colspan="2">{{info.new_order.psn_part_amt?info.new_order.psn_part_amt:''}}</td>
100 134
         </tr>
101 135
         <tr>
102 136
           <td colspan="2">个人账户共济支付金额</td>
103
-          <td colspan="2">0</td>
137
+          <td colspan="2">{{info.new_order.acct_mulaid_pay?info.new_order.acct_mulaid_pay:''}}</td>
104 138
           <td colspan="2"></td>
105 139
           <td colspan="2"></td>
106 140
         </tr>
@@ -113,37 +147,106 @@
113 147
           <td colspan="1">符合政策范围金额</td>
114 148
         </tr>
115 149
         <tr>
116
-          <td colspan="1">1</td>
117
-          <td colspan="2">城乡居民基本医疗保险基金</td>
118
-          <td colspan="2">166.6</td>
119
-          <td colspan="2">0</td>
120
-          <td colspan="1">196</td>
150
+          <td colspan="1"></td>
151
+          <td colspan="2"></td>
152
+          <td colspan="2"></td>
153
+          <td colspan="2"></td>
154
+          <td colspan="1"></td>
121 155
         </tr>
122 156
         <tr>
123
-          <td colspan="1">2</td>
124
-          <td colspan="2">城乡居民大病医疗保险基金</td>
125
-          <td colspan="2">73</td>
126
-          <td colspan="2">0</td>
127
-          <td colspan="1">196</td>
157
+          <td colspan="1"></td>
158
+          <td colspan="2"></td>
159
+          <td colspan="2"></td>
160
+          <td colspan="2"></td>
161
+          <td colspan="1"></td>
128 162
         </tr>
129 163
         <tr>
130
-          <td colspan="1">3</td>
131
-          <td colspan="2">医疗救助基金</td>
132
-          <td colspan="2">29.77</td>
133
-          <td colspan="2">0</td>
134
-          <td colspan="1">196</td>
164
+          <td colspan="1"></td>
165
+          <td colspan="2"></td>
166
+          <td colspan="2"></td>
167
+          <td colspan="2"></td>
168
+          <td colspan="1"></td>
135 169
         </tr>
136 170
       </table>
137 171
     </div>
138 172
     <div style="display: flex;">
139 173
       <div style="flex: 1;">制表人:太和沃迪康血液诱析中心</div>
140
-      <div style="flex: 1;">打印日期: 2023-10-17 15:39</div>
174
+      <div style="flex: 1;">打印日期: {{getTime(new Date(),'{y}-{m}-{d}')?getTime(new Date(),'{y}-{m}-{d}'):''}}</div>
141 175
       <div style="flex: 1;">医院(盖章):</div>
142 176
     </div>
143 177
   </div>
144 178
 </template>
179
+<script>
180
+import { uParseTime } from '@/utils/tools'
181
+
182
+export default {
183
+  data() {
184
+    return {
185
+      list: {},
186
+      prescription: [],
187
+      patient: {},
188
+      orgname: '',
189
+
190
+      result: {},
191
+      org_code: '',
192
+      patient_name: '',
193
+      doctor_code: '',
194
+      doctor_name: '',
195
+
196
+      name_arr: [],
197
+      spec_arr: [],
198
+      count_arr: [],
199
+      price_arr: [],
200
+      total_arr: []
201
+
202
+    }
203
+  },
204
+  props: {
205
+    paramsObj: Object,
206
+    info: {
207
+      type: Object,
208
+      default: function() {
209
+        return {}
210
+      }
211
+    },
212
+    balanceAccounts: Object
213
+  },
214
+  methods: {
215
+    getDay(dateString1,dateString2){
216
+      var  startDate = Date.parse(dateString1);
217
+      var  endDate = Date.parse(dateString2);
218
+      if (startDate>endDate){
219
+        return 0;
220
+      }
221
+      if (startDate==endDate){
222
+        return 1;
223
+      }
224
+      var days=(endDate - startDate)/(1*24*60*60*1000);
225
+      return  days;
226
+    },
227
+    getTime(value, temp) {
228
+      if (value != undefined) {
229
+        return uParseTime(value, temp)
230
+      }
231
+      return ''
232
+    }
233
+  },
234
+  mounted() {
145 235
 
146 236
 
237
+  },
238
+  watch: {
239
+    paramsObj: {//深度监听,可监听到对象、数组的变化
240
+      handler(val, oldVal) {
241
+
242
+
243
+      },
244
+      deep: true
245
+    }
246
+  }
247
+}
248
+</script>
249
+
147 250
 <style lang="scss" scoped>
148 251
 .statement-print {
149 252
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
@@ -169,4 +272,4 @@
169 272
   }
170 273
 }
171 274
 
172
-</style>
275
+</style>

+ 100 - 41
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -143,7 +143,7 @@
143 143
                               </el-date-picker>
144 144
 
145 145
 
146
-                              <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
146
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
147 147
                                          @change="changevalue">
148 148
                                   <el-option
149 149
                                           v-for="(item,index) in register"
@@ -152,6 +152,16 @@
152 152
                                           :value="item.value">
153 153
                                   </el-option>
154 154
                               </el-select>
155
+<!--                            //针对海拉尔普爱肾病医院-->
156
+                            <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
157
+                                       @change="changevalue">
158
+                              <el-option
159
+                                v-for="(item,index) in register10206"
160
+                                :key="index"
161
+                                :label="item.label"
162
+                                :value="item.value">
163
+                              </el-option>
164
+                            </el-select>
155 165
 
156 166
                               <div style="float: right;margin-bottom:5px;margin-right:1%;">
157 167
                                   <el-button
@@ -303,7 +313,8 @@
303 313
                                               <span v-if="scope.row.min_unit != scope.row.dose_unit">{{scope.row.dose}}{{scope.row.dose_unit}}&nbsp;* &nbsp;</span>{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
304 314
                                           </template>
305 315
                                       </el-table-column>
306
-                                      <el-table-column label="库存" width="60">
316
+
317
+                                      <el-table-column label="库存" width="60" v-if="org_id != 10206">
307 318
                                           <template slot-scope="scope">
308 319
                                              <!-- <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245 || org_id == 9919 || org_id == 10106 || org_id == 9504 || org_id ==10215 || org_id == 10188 || org_id == 10265 || org_id == 10164 || org_id ==9956 || org_id == 10188 || org_id == 10191 || org_id == 10278 || org_id == 10217 || org_id ==10210 || org_id ==record_date ||org_id ==10340">
309 320
                                              <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
@@ -315,6 +326,13 @@
315 326
                                              <span v-if="scope.row.sum_count >0 && scope.row.max_unit == scope.row.min_unit">{{scope.row.sum_count}}{{scope.row.max_unit}}</span>
316 327
                                           </template>
317 328
                                       </el-table-column>
329
+
330
+<!--                                    //针对对接坐标系统的,使用坐标的库存数据-->
331
+                                    <el-table-column label="库存" width="60" v-else>
332
+                                      <template slot-scope="scope">
333
+                                        <span>{{scope.row.zuobiao_stock_num}}</span>
334
+                                      </template>
335
+                                    </el-table-column>
318 336
                                       <el-table-column label="单价" width="40">
319 337
                                           <template slot-scope="scope">{{ scope.row.min_price }}</template>
320 338
                                       </el-table-column>
@@ -408,7 +426,10 @@
408 426
                                                  {{scope.row.stock_count}}
409 427
                                             </span>
410 428
                                             <span v-else> {{ scope.row.total }}</span> -->
411
-                                            <span v-if="scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
429
+                                            <span v-if="org_id != 10206 && scope.row.type == 3 && scope.row.good_info.sum_count > 0">{{scope.row.good_info.sum_count}}</span>
430
+<!--                                            //针对坐标系统的库存数据-->
431
+                                            <span v-if="org_id == 10206 && scope.row.type == 3">{{scope.row.good_info.zuobiao_stock_num}}</span>
432
+
412 433
                                           </template>
413 434
                                       </el-table-column>
414 435
                                       <el-table-column label="单价" width="40">
@@ -488,10 +509,7 @@ import {
488 509
   editHisPrescription,
489 510
   getCallHisPrescription,
490 511
   getDayOrMonthHisPrescription,
491
-  getInitData,
492 512
   getNextOrLastHisPrescription,
493
-  getPatientInfo,
494
-  getSchedulePatientList
495 513
 } from '@/api/his/his'
496 514
 import { getDictionaryDataConfig } from '@/utils/data'
497 515
 import prescriptionTable from './prescriptionTable'
@@ -499,7 +517,6 @@ import selectTemplate from './selectTemplate'
499 517
 import saveTemplate from './saveTemplate'
500 518
 import additionalCharges from './additionalCharges'
501 519
 import {
502
-  addProjectTeam,
503 520
   getAllProjectList,
504 521
   getAllProjectTeam,
505 522
   getHisProject,
@@ -514,6 +531,8 @@ const moment = require('moment')
514 531
 
515 532
 export default {
516 533
   props: {
534
+    zuobiao_drug:Array,
535
+    zuobiao_project:Array,
517 536
     drugs:Array,
518 537
     allDrugs:Array,
519 538
     advices_template:Array,
@@ -553,6 +572,18 @@ export default {
553 572
     return {
554 573
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
555 574
       end_time: moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
575
+      register10206: [
576
+        { value: 1, label: '普通' },
577
+        { value: 2, label: '急诊' },
578
+        { value: 5, label: '第一类精神药品' },
579
+        { value: 6, label: '第二类精神药品' },
580
+        { value: 7, label: '放射药品' },
581
+        { value: 8, label: '毒性药品' },
582
+        { value: 9, label: '检查' },
583
+        { value: 10, label: '检验' },
584
+        { value: 12, label: '治疗' },
585
+        { value: 99, label: '其他' },
586
+      ],
556 587
       register: [
557 588
 
558 589
         { value: 11, label: '普通门诊' },
@@ -693,9 +724,6 @@ export default {
693 724
   methods: {
694 725
 
695 726
     changeClass(id) {
696
-      console.log("asdaff,id",id)
697
-      console.log("asdaff,this.value",this.value)
698
-      console.log("asdaff,this.allProject",this.allProject)
699 727
       this.tabProject = []
700 728
       if (id == 0) {
701 729
         this.tabProject = this.allProject
@@ -1597,12 +1625,13 @@ export default {
1597 1625
       } else {
1598 1626
         let arr = []
1599 1627
         for (let i = 0; i < this.allProject.length; i++) {
1600
-        
1628
+
1601 1629
             // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1630
+
1602 1631
             if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1603 1632
               arr = arr.concat(this.allProject[i])
1604 1633
             }
1605
-          
1634
+
1606 1635
         }
1607 1636
         this.tabProject = arr
1608 1637
         console.log('kkkk',this.tabProject);
@@ -1631,7 +1660,8 @@ export default {
1631 1660
         for (let i = 0; i < this.drugs.length; i++) {
1632 1661
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1633 1662
            this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1634
-           this.drugs[i].pinyin.indexOf(this.search_keyword) != -1
1663
+           this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1664
+           this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1635 1665
            ) {
1636 1666
             arr = arr.concat(this.drugs[i])
1637 1667
           }
@@ -2361,22 +2391,24 @@ export default {
2361 2391
           if (index == 1) {
2362 2392
             console.log(this.prescriptions)
2363 2393
 
2364
-            for (let i = 0; i < this.prescriptions.length; i++) {
2365
-              for(let b = 0; b < this.prescriptions[i].advices.length; b++){
2366
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2367
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,不能开非特病类型的药")
2368
-                  return
2369
-                }
2370
-              }
2371
-              for(let c = 0; c < this.prescriptions[i].project.length; c++){
2372
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2  && this.prescriptions[i].project[c].project.disease_directory != 1) {
2373
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的项目")
2374
-                  return
2394
+            if (this.org_id != 10206) {
2395
+              for (let i = 0; i < this.prescriptions.length; i++) {
2396
+                for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2397
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
2398
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,不能开非特病类型的药")
2399
+                    return
2400
+                  }
2375 2401
                 }
2402
+                for (let c = 0; c < this.prescriptions[i].project.length; c++) {
2403
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
2404
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的项目")
2405
+                    return
2406
+                  }
2376 2407
 
2377
-                if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3  && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2378
-                  this.$message.error(this.prescriptions[i].name.toString() +"属于特病类型处方,请开特病类型的耗材")
2379
-                  return
2408
+                  if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
2409
+                    this.$message.error(this.prescriptions[i].name.toString() + "属于特病类型处方,请开特病类型的耗材")
2410
+                    return
2411
+                  }
2380 2412
                 }
2381 2413
               }
2382 2414
             }
@@ -3218,20 +3250,24 @@ export default {
3218 3250
 
3219 3251
       if (this.curDrugs.length > 0) {
3220 3252
         for (let i = 0; i < this.curDrugs.length; i++) {
3221
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3222
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3223
-            return
3253
+          if(this.org_id != 10206) {
3254
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3255
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3256
+              return
3257
+            }
3224 3258
           }
3225 3259
 
3226 3260
         }
3227 3261
       }
3228 3262
       if (this.teamList.length > 0) {
3229
-        for (let i = 0; i < this.teamList.length; i++) {
3230
-          if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3231
-            this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3232
-            // return
3233
-          }
3263
+        if(this.org_id != 10206) {
3264
+          for (let i = 0; i < this.teamList.length; i++) {
3265
+            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
3266
+              this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
3267
+              // return
3268
+            }
3234 3269
 
3270
+          }
3235 3271
         }
3236 3272
 
3237 3273
         let arr = this.teamList
@@ -3247,11 +3283,16 @@ export default {
3247 3283
         this.teamList = newArr
3248 3284
       }
3249 3285
 
3286
+
3287
+
3288
+
3250 3289
       if (this.curDrugs.length == 0) {
3251 3290
         for (let i = 0; i < this.curDrugs.length; i++) {
3252
-          if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3253
-            this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3254
-            return
3291
+          if(this.org_id != 10206) {
3292
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
3293
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
3294
+              return
3295
+            }
3255 3296
           }
3256 3297
         }
3257 3298
       }
@@ -3537,7 +3578,10 @@ export default {
3537 3578
               is_special_diseases: project[i].disease_directory,
3538 3579
               project: project[i],
3539 3580
               stock_count:0,
3540
-              first_letter:project[i].first_letter
3581
+              first_letter:project[i].first_letter,
3582
+              bbx01:project[i].bbx01,
3583
+              zuobiao_stock_num:0,
3584
+
3541 3585
             }
3542 3586
             // console.log('hhhhh',obj);
3543 3587
             this.tabProject.push(obj)
@@ -3545,6 +3589,7 @@ export default {
3545 3589
 
3546 3590
           var good_info = response.data.data.good_info
3547 3591
 
3592
+
3548 3593
           for (let i = 0; i < good_info.length; i++) {
3549 3594
              good_info[i].stock_count = 0
3550 3595
             if(good_info[i].good_stock_in&&good_info[i].good_stock_in.length >0 ){
@@ -3552,6 +3597,7 @@ export default {
3552 3597
                  good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3553 3598
               }
3554 3599
             }
3600
+
3555 3601
             let obj = {
3556 3602
               id: good_info[i].id,
3557 3603
               project_name: good_info[i].good_name,
@@ -3569,12 +3615,25 @@ export default {
3569 3615
               is_special_diseases: good_info[i].is_special_diseases,
3570 3616
               good_info: good_info[i],
3571 3617
               stock_count:good_info[i].stock_count,
3572
-              first_letter:good_info[i].first_letter
3618
+              first_letter:good_info[i].first_letter,
3619
+              bbx01:good_info[i].bbx01,
3620
+              zuobiao_stock_num:0,
3621
+
3573 3622
             }
3574 3623
             this.tabProject.push(obj)
3575 3624
           }
3576
-          console.log('3333', this.tabProject);
3625
+          //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
3626
+          if(this.org_id == 10206) {
3627
+            for (let i = 0; i < this.zuobiao_project.length; i++) {
3628
+              for (let b = 0; b < this.tabProject.length; b++) {
3629
+                if (this.zuobiao_project[i].bbx01 == this.tabProject[b].bbx01){
3630
+                  this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3631
+                }
3632
+              }
3633
+            }
3634
+          }
3577 3635
           this.allProject = this.tabProject
3636
+
3578 3637
           // console.log('cccc',this.allProject);
3579 3638
         }
3580 3639
       })

+ 55 - 8
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -161,6 +161,8 @@
161 161
                            v-on:change="changeOther"
162 162
                            v-on:month="changeMonth"
163 163
                            v-on:day="changeDay"
164
+                           :zuobiao_drug="zuobiao_drug"
165
+                           :zuobiao_project="zuobiao_project"
164 166
                            :month_prescriptions="month_prescriptions"
165 167
                            :org_id="org_id"
166 168
                            ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
@@ -506,6 +508,7 @@ import recordPrint from './recordPrint'
506 508
 import checkPrint from './checkPrint'
507 509
 import dialysisIndex from './components/dialysisIndex'
508 510
 import {getInitPrintDataOne} from '@/api/dialysis_record'
511
+import axios from 'axios'
509 512
 const moment = require('moment')
510 513
 
511 514
 export default {
@@ -607,7 +610,9 @@ export default {
607 610
       printList:[],
608 611
       printDate:'',
609 612
       anticoagulants_confit:null,
610
-      patient_diagnoses:[]
613
+      patient_diagnoses:[],
614
+      zuobiao_drug:[],
615
+      zuobiao_project:[],
611 616
     }
612 617
   },
613 618
 
@@ -830,7 +835,7 @@ export default {
830 835
     },
831 836
 
832 837
     searchAction() {
833
-      
838
+
834 839
       if (this.search_input.length == 0) {
835 840
         switch (this.radio) {
836 841
           case 0:
@@ -857,24 +862,24 @@ export default {
857 862
                   console.log(arr)
858 863
                 }
859 864
               }
860
-              
865
+
861 866
             }
862 867
             this.all_data = arr
863 868
 
864 869
             break
865 870
           case 2:
866 871
             let arr2 = []
867
-           
872
+
868 873
             for (let i = 0; i < this.cure_data.length; i++) {
869 874
               if(this.cure_data[i].first_letter != undefined){
870
-                if (this.cure_data[i].name.indexOf(this.search_input) != -1 || 
875
+                if (this.cure_data[i].name.indexOf(this.search_input) != -1 ||
871 876
                   this.cure_data[i].number.indexOf(this.search_input) != -1 ||
872 877
                   this.cure_data[i].first_letter.indexOf(this.search_input) != -1) {
873 878
                     console.log('2222',this.cure_data);
874 879
                     arr2 = arr2.concat(this.cure_data[i])
875 880
                 }
876 881
               }
877
-             
882
+
878 883
             }
879 884
             this.cure_data = arr2
880 885
 
@@ -885,13 +890,13 @@ export default {
885 890
             console.log('3333',this.un_cure_data);
886 891
             for (let i = 0; i < this.un_cure_data.length; i++) {
887 892
               if(this.un_cure_data[i].first_letter!=undefined){
888
-                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 || 
893
+                if (this.un_cure_data[i].name.indexOf(this.search_input) != -1 ||
889 894
                 this.un_cure_data[i].number.indexOf(this.search_input) != -1 ||
890 895
                 this.un_cure_data[i].first_letter.indexOf(this.search_input) != -1) {
891 896
                   arr3 = arr3.concat(this.un_cure_data[i])
892 897
                 }
893 898
               }
894
-              
899
+
895 900
             }
896 901
             this.un_cure_data = arr3
897 902
             break
@@ -1492,6 +1497,48 @@ export default {
1492 1497
 
1493 1498
           this.additions = response.data.data.additions
1494 1499
 
1500
+          //针对普爱医院获取药品和耗材相关库存数据
1501
+          if(this.org_id == 10206){
1502
+            var that = this
1503
+            axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystock', {
1504
+
1505
+            })
1506
+              .then(function(response) {
1507
+                if (response.data.state == 0) {
1508
+                  that.$message.error(response.data.msg)
1509
+                  that.loadingtwo = false
1510
+                  return false
1511
+                } else {
1512
+                  if (response.data.data.failed_code == -10) {
1513
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1514
+                      confirmButtonText: '确 定',
1515
+                      type: 'warning'
1516
+                    }).then(() => {
1517
+
1518
+                    }).catch(() => {
1519
+                    })
1520
+
1521
+                  } else {
1522
+                    that.zuobiao_drug  = response.data.data.drug
1523
+                    that.zuobiao_project  = response.data.data.project
1524
+
1525
+                    //跟坐标数据进行匹配,如果bbx01相等的话则,替换库存数量
1526
+                    if(that.org_id == 10206) {
1527
+                      for (let i = 0; i < that.zuobiao_drug.length; i++) {
1528
+                        for (let b = 0; b < that.drugs.length; b++) {
1529
+                          if (that.zuobiao_project[i].ggid == that.drugs[b].bby01){
1530
+                            that.drugs[b]["zuobiao_stock_num"] = that.zuobiao_project[i].sysl
1531
+                          }
1532
+                        }
1533
+                      }
1534
+
1535
+                    }
1536
+                  }
1537
+                }
1538
+              })
1539
+              .catch(function(error) {
1540
+              })
1541
+          }
1495 1542
         }
1496 1543
       })
1497 1544
 

+ 68 - 37
src/xt_pages/outpatientDoctorStation/modeTemplateDetail.vue Zobrazit soubor

@@ -37,15 +37,25 @@
37 37
                                     :label="item.name"
38 38
                                     :name="item.name"
39 39
                             >
40
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
-                                           @change="changevalue">
42
-                                    <el-option
43
-                                            v-for="(item,index) in register"
44
-                                            :key="index"
45
-                                            :label="item.label"
46
-                                            :value="item.value">
47
-                                    </el-option>
48
-                                </el-select>
40
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
41
+                                         @change="changevalue">
42
+                                <el-option
43
+                                  v-for="(item,index) in register"
44
+                                  :key="index"
45
+                                  :label="item.label"
46
+                                  :value="item.value">
47
+                                </el-option>
48
+                              </el-select>
49
+                              <!--                            //针对海拉尔普爱肾病医院-->
50
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
51
+                                         @change="changevalue">
52
+                                <el-option
53
+                                  v-for="(item,index) in register10206"
54
+                                  :key="index"
55
+                                  :label="item.label"
56
+                                  :value="item.value">
57
+                                </el-option>
58
+                              </el-select>
49 59
                             </el-tab-pane>
50 60
 
51 61
                             <el-tab-pane name="more" closable><span slot="label"><i
@@ -236,6 +246,7 @@
236 246
       month_prescriptions: Array,
237 247
       isloading: false,
238 248
       loading: false,
249
+      org_id:this.$store.getters.xt_user.org_id,
239 250
       other_sick: {
240 251
         type: Array,
241 252
         default: function() {
@@ -250,6 +261,18 @@
250 261
     },
251 262
     data() {
252 263
       return {
264
+        register10206: [
265
+          { value: 1, label: '普通' },
266
+          { value: 2, label: '急诊' },
267
+          { value: 5, label: '第一类精神药品' },
268
+          { value: 6, label: '第二类精神药品' },
269
+          { value: 7, label: '放射药品' },
270
+          { value: 8, label: '毒性药品' },
271
+          { value: 9, label: '检查' },
272
+          { value: 10, label: '检验' },
273
+          { value: 12, label: '治疗' },
274
+          { value: 99, label: '其他' },
275
+        ],
253 276
         medical_care: [
254 277
           { value: 11, label: '普通门诊' },
255 278
           { value: 12, label: '家庭通道' },
@@ -385,27 +408,27 @@
385 408
             return
386 409
           }
387 410
         }
411
+        if(this.$store.getters.xt_user.org_id != 10206) {
412
+          for (let i = 0; i < this.prescriptions.length; i++) {
413
+            for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
414
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
415
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
388 416
 
389
-        for (let i = 0; i < this.prescriptions.length; i++) {
390
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
391
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
392
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
393
-
417
+                return
418
+              }
394 419
 
395
-              return
396 420
             }
397 421
 
398
-          }
399
-
400
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
401
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
402
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
403
-              return
404
-            }
422
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
423
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
424
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
425
+                return
426
+              }
405 427
 
406
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
407
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
408
-              return
428
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
429
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
430
+                return
431
+              }
409 432
             }
410 433
           }
411 434
         }
@@ -1331,22 +1354,28 @@
1331 1354
         //       }
1332 1355
         //     }
1333 1356
         //   }
1334
-        if (this.curDrugs.length > 0) {
1357
+        if (this.curDrugs.length > 0 ) {
1358
+
1335 1359
           for (let i = 0; i < this.curDrugs.length; i++) {
1336
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1337
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1338
-              return
1360
+            if(this.$store.getters.xt_user.org.id != 10206) {
1361
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1362
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1363
+                return
1364
+              }
1339 1365
             }
1340 1366
 
1341 1367
           }
1342 1368
         }
1343 1369
         if (this.teamList.length > 0) {
1344 1370
           for (let i = 0; i < this.teamList.length; i++) {
1345
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1346
-              setTimeout(() => {
1347
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1348
-              }, 100)
1349
-              // return
1371
+            if(this.$store.getters.xt_user.org.id != 10206) {
1372
+
1373
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1374
+                setTimeout(() => {
1375
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1376
+                }, 100)
1377
+                // return
1378
+              }
1350 1379
             }
1351 1380
 
1352 1381
           }
@@ -1366,9 +1395,11 @@
1366 1395
 
1367 1396
         if (this.curDrugs.length == 0) {
1368 1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1369
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1370
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1371
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1400
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1401
+                return
1402
+              }
1372 1403
             }
1373 1404
 
1374 1405
           }

+ 66 - 35
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Zobrazit soubor

@@ -58,15 +58,25 @@
58 58
                                 <!--:value="item.value">-->
59 59
                                 <!--</el-option>-->
60 60
                                 <!--</el-select>-->
61
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
-                                           @change="changevalue">
63
-                                    <el-option
64
-                                            v-for="(item,index) in register"
65
-                                            :key="index"
66
-                                            :label="item.label"
67
-                                            :value="item.value">
68
-                                    </el-option>
69
-                                </el-select>
61
+                              <el-select v-if="org_id != 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
62
+                                         @change="changevalue">
63
+                                <el-option
64
+                                  v-for="(item,index) in register"
65
+                                  :key="index"
66
+                                  :label="item.label"
67
+                                  :value="item.value">
68
+                                </el-option>
69
+                              </el-select>
70
+                              <!--                            //针对海拉尔普爱肾病医院-->
71
+                              <el-select v-if="org_id == 10206" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
72
+                                         @change="changevalue">
73
+                                <el-option
74
+                                  v-for="(item,index) in register10206"
75
+                                  :key="index"
76
+                                  :label="item.label"
77
+                                  :value="item.value">
78
+                                </el-option>
79
+                              </el-select>
70 80
                             </el-tab-pane>
71 81
 
72 82
                             <el-tab-pane name="more" closable><span slot="label"><i
@@ -283,6 +293,19 @@
283 293
     },
284 294
     data() {
285 295
       return {
296
+        org_id:this.$store.getters.xt_user.org_id,
297
+        register10206: [
298
+          { value: 1, label: '普通' },
299
+          { value: 2, label: '急诊' },
300
+          { value: 5, label: '第一类精神药品' },
301
+          { value: 6, label: '第二类精神药品' },
302
+          { value: 7, label: '放射药品' },
303
+          { value: 8, label: '毒性药品' },
304
+          { value: 9, label: '检查' },
305
+          { value: 10, label: '检验' },
306
+          { value: 12, label: '治疗' },
307
+          { value: 99, label: '其他' },
308
+        ],
286 309
         medical_care: [
287 310
           { value: 11, label: '普通门诊' },
288 311
           { value: 12, label: '家庭通道' },
@@ -424,26 +447,27 @@
424 447
           }
425 448
         }
426 449
 
427
-        for (let i = 0; i < this.prescriptions.length; i++) {
428
-          for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
429
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
430
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
450
+        if(this.org_id != 10206){
451
+          for (let i = 0; i < this.prescriptions.length; i++) {
452
+            for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
453
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].advices[b].drug.is_special_diseases != 1) {
454
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,不能开非特病类型的药')
431 455
 
456
+                return
457
+              }
432 458
 
433
-              return
434 459
             }
435 460
 
436
-          }
437
-
438
-          for (let c = 0; c < this.prescriptions[i].project.length; c++) {
439
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
440
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
441
-              return
442
-            }
461
+            for (let c = 0; c < this.prescriptions[i].project.length; c++) {
462
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 2 && this.prescriptions[i].project[c].project.disease_directory != 1) {
463
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的项目')
464
+                return
465
+              }
443 466
 
444
-            if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
445
-              this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
446
-              return
467
+              if (this.prescriptions[i].med_type == 14 && this.prescriptions[i].project[c].type == 3 && this.prescriptions[i].project[c].good_info.is_special_diseases != 1) {
468
+                this.$message.error('处方' + (i + 1).toString() + '属于特病类型处方,请开特病类型的耗材')
469
+                return
470
+              }
447 471
             }
448 472
           }
449 473
         }
@@ -1371,20 +1395,25 @@
1371 1395
         //   }
1372 1396
         if (this.curDrugs.length > 0) {
1373 1397
           for (let i = 0; i < this.curDrugs.length; i++) {
1374
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1375
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1376
-              return
1398
+            if(this.$store.getters.xt_user.org.id != 10206) {
1399
+
1400
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1401
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1402
+                return
1403
+              }
1377 1404
             }
1378 1405
 
1379 1406
           }
1380 1407
         }
1381 1408
         if (this.teamList.length > 0) {
1382 1409
           for (let i = 0; i < this.teamList.length; i++) {
1383
-            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1384
-              setTimeout(() => {
1385
-                this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1386
-              }, 100)
1387
-              // return
1410
+            if(this.$store.getters.xt_user.org.id != 10206) {
1411
+              if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1412
+                setTimeout(() => {
1413
+                  this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1414
+                }, 100)
1415
+                // return
1416
+              }
1388 1417
             }
1389 1418
 
1390 1419
           }
@@ -1404,9 +1433,11 @@
1404 1433
 
1405 1434
         if (this.curDrugs.length == 0) {
1406 1435
           for (let i = 0; i < this.curDrugs.length; i++) {
1407
-            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1408
-              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1409
-              return
1436
+            if(this.$store.getters.xt_user.org.id != 10206) {
1437
+              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1438
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1439
+                return
1440
+              }
1410 1441
             }
1411 1442
 
1412 1443
           }

+ 35 - 3
src/xt_pages/outpatientDoctorStation/template/printFour.vue Zobrazit soubor

@@ -55,13 +55,13 @@
55 55
             <p>
56 56
             医师:
57 57
             <span
58
-              style="width: 100px; display: inline-block"
58
+              style="display: inline-block"
59 59
               v-if="item.creator == ''"
60 60
             >
61 61
                 {{ item.doctor }}
62 62
               </span>
63 63
             <span
64
-              style="width: 100px; display: inline-block"
64
+              style="display: inline-block"
65 65
               v-else-if="doc_name != ''"
66 66
             >
67 67
                 {{ doc_name }}
@@ -71,7 +71,7 @@
71 71
               :src="setAdminUserES(item.creator,item.doctor)"
72 72
               alt=""
73 73
               srcset=""
74
-              v-else
74
+
75 75
             />
76 76
           </p>
77 77
               <p>日期:{{getTime(item.ctime)?getTime(item.ctime):""}}</p>
@@ -125,9 +125,29 @@ export default {
125 125
         projectList:[],
126 126
         orgname:"",
127 127
         diagnoses:[],
128
+        operatorMaps: {},
129
+        operators: [],
130
+        doctorList_1: [],
128 131
       }
129 132
     },
130 133
    methods:{
134
+   // 电子签名
135
+   setAdminUserES(id,name) {
136
+      console.log(id)
137
+      console.log(name)
138
+      console.log(this.operatorMaps)
139
+
140
+
141
+      if (id == 0) {
142
+        return "";
143
+      }
144
+      if (id in this.operatorMaps) {
145
+        return this.operatorMaps[id].url;
146
+      } else {
147
+        this.doc_name = name
148
+        return "";
149
+      }
150
+    },
131 151
      getAge(patient){
132 152
        var thisLen = patient.id_card_no.length
133 153
        var birth = ''
@@ -191,6 +211,18 @@ export default {
191 211
             this.advicePrint = advicePrint
192 212
             this.prescriptions = advicePrint
193 213
             console.log("处方222222",this.prescriptions)
214
+            this.doctorList_1 = response.data.data.eles;
215
+            console.log(this.doctorList_1, "医生列表");
216
+            if (this.doctorList_1.length > 0) {
217
+              var operatorsLen = this.doctorList_1.length;
218
+              for (var index = 0; index < operatorsLen; index++) {
219
+                this.$set(
220
+                  this.operatorMaps,
221
+                  this.doctorList_1[index].creator,
222
+                  this.doctorList_1[index]
223
+                );
224
+              }
225
+            }
194 226
             var hisPatient = response.data.data.hisPatient
195 227
             console.log("hisPatient",hisPatient)
196 228
             this.hisPatient = hisPatient

+ 7 - 1
src/xt_pages/outpatientDoctorStation/template/printOne.vue Zobrazit soubor

@@ -39,7 +39,7 @@
39 39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40 40
             </div>
41 41
             <div style="margin-bottom: 10px" v-if="org_id == 10537">
42
-              身份证号:{{item.patient.id_card_no}}
42
+              身份证号:{{newHisPatient.id_card_no | testfile}}
43 43
             </div>
44 44
             <div style="margin-bottom: 10px" v-else>
45 45
               医保卡号:
@@ -436,6 +436,12 @@ export default{
436 436
       operators: [],
437 437
       doctorList_1: [],
438 438
     };
439
+  },filters: {
440
+    testfile (value) {
441
+      const start = value.slice(0, 6)
442
+      const end = value.slice(-4)
443
+      return `${start}******${end}`
444
+    }
439 445
   },
440 446
   methods: {
441 447
     // 电子签名

+ 4 - 6
src/xt_pages/workforce/remind_print_setting_two.vue Zobrazit soubor

@@ -26,8 +26,6 @@
26 26
                     <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
27 27
                     <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
28 28
                   </span>&nbsp;&nbsp;
29
-                  <!-- <span style="font-weight: bolder;">
30
-                    {{main_collection.patient.name}} </span>&nbsp;&nbsp;  -->
31 29
                   <span>
32 30
                     <span v-if="main_collection.patient.gender==1">男</span>
33 31
                     <span v-if="main_collection.patient.gender==2">女</span>
@@ -68,8 +66,8 @@
68 66
 
69 67
                 </div>
70 68
                 <div style="display: flex;margin: 5px 5px;">
71
-                  <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume}}ml/min</div>
72
-                  <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value}}L</div>
69
+                  <div style="flex: 1;">血流量:{{main_collection.prescription.blood_flow_volume?main_collection.dialysissolution.blood_flow_volume:""}}ml/min</div>
70
+                  <div style="flex: 1;">置换液总量:{{main_collection.prescription.displace_liqui_value?main_collection.dialysissolution.displace_liqui_value:""}}L</div>
73 71
                 </div>
74 72
                 <div style="margin: 5px 5px;">
75 73
                   <div>透析液类型:
@@ -78,7 +76,7 @@
78 76
                     <span>Ca:{{main_collection.prescription.calcium }}</span>
79 77
                     <span>
80 78
                       <span v-if="main_collection.prescription.chaptalization==0"> 不含 </span>
81
-                      <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization}} </span>
79
+                      <span v-if="main_collection.prescription.chaptalization>0"> 含糖:{{main_collection.prescription.chaptalization?main_collection.dialysissolution.chaptalization:""}} </span>
82 80
                       HCO3:</span>
83 81
                   </div>
84 82
                 </div>
@@ -198,7 +196,7 @@
198 196
                   </span>
199 197
                 </div>
200 198
                 <div style="margin: 5px 5px;">
201
-                  血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id)}}
199
+                  血管通路:{{getBloodAccess(main_collection.assessmentbefor.blood_access_part_opera_id)?getBloodAccess(main_collection.dialysissolution.blood_access):""}}
202 200
                 </div>
203 201
               </div>
204 202
               <div style="border: 1px solid black;width: 90%;">