Преглед изворни кода

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

28169 пре 22 часа
родитељ
комит
5a0ba4e0a6

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_eighty.vue Прегледај датотеку

@@ -380,7 +380,7 @@
380 380
                               : "/"
381 381
                           }}
382 382
                         </div>
383
-                        kg
383
+                        L
384 384
                       </div>
385 385
                     </div>
386 386
                     <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;">

+ 78 - 41
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyeight.vue Прегледај датотеку

@@ -193,7 +193,7 @@
193 193
                 v-for="(item, i) in way_arr"
194 194
                 class="under_line"
195 195
                 v-if="record.receive_assessment.way == item.id"
196
-                style="width: 180px; text-align: left"
196
+                style="width: 130px; text-align: left"
197 197
               >
198 198
                 {{ item.name }}
199 199
               </div>
@@ -1821,48 +1821,65 @@
1821 1821
                               </span>
1822 1822
                             </td>
1823 1823
 
1824
-                            <td
1825
-                              height="26px"
1824
+                            <td height="26px"
1826 1825
                               colspan="2"
1827 1826
                               class="advice-name"
1828 1827
                               style="padding-left: 7px"
1829
-                            >
1830
-                              <span v-if="advice[0].parent_id > 0">---></span>
1831
-                              <span>{{ advice[0].advice_name }}</span>
1832
-
1833
-                              <span
1834
-                                v-if="
1835
-                                  advice[0] &&
1836
-                                  advice[0].advice_desc != undefined
1837
-                                "
1838
-                              >
1839
-                                <!-- ({{ advice[0].advice_desc
1840
-                                }}{{ advice[0].drug_spec_unit }} ) -->
1841
-                              </span>
1842
-
1843
-                              <span v-if="advice[0].prescribing_number"
1844
-                                >&nbsp;&nbsp; {{ advice[0].prescribing_number
1845
-                                }}{{ advice[0].prescribing_number_unit }}</span
1846
-                              >
1847
-                              <span v-if="advice[0].single_dose != 0">
1828
+                            > 
1829
+                              <div v-if="org_id==10551 || org_id ==0">
1830
+                                <div :rowspan="advice[0].prescriptionChild.length"  v-for="(it,key)  in advice[0].prescriptionChild" style="border: none;">
1831
+                                  <div style="border: none;">
1832
+                                    <span>{{ it.advice_name }}</span>
1833
+                                          <span v-if="it && it.advice_desc"
1834
+                                            >({{ it.advice_desc
1835
+                                            }}{{ it.drug_spec_unit }})</span
1836
+                                          >
1837
+                                          <span v-if="it.prescribing_number"
1838
+                                            >&nbsp;&nbsp; {{ it.prescribing_number
1839
+                                            }}{{ it.prescribing_number_unit }}</span
1840
+                                          >
1841
+                                          <span v-if="it.single_dose != 0"
1842
+                                            >{{ it.single_dose
1843
+                                            }}{{ it.single_dose_unit }}</span
1844
+                                          >
1845
+                                          <span>{{ it.delivery_way}}</span>
1846
+                                          <span>{{
1847
+                                            it.execution_frequency
1848
+                                          }}</span>
1849
+                                          <span v-if="it.remark !=''"
1850
+                                            >({{ it.remark }})</span
1851
+                                          >
1852
+                                  </div>
1853
+                                </div>
1854
+                              </div>
1855
+                              <div v-else>
1856
+                                <span v-if="advice[0].parent_id > 0"></span>
1857
+                                <span>{{ advice[0].advice_name }}</span>
1858
+
1859
+                                <span v-if="advice[0].prescribing_number"
1860
+                                  >&nbsp;&nbsp; {{ advice[0].prescribing_number
1861
+                                  }}{{ advice[0].prescribing_number_unit }}</span
1862
+                                >
1863
+                                <span v-if="advice[0].single_dose != 0">
1848 1864
 
1849
-                                <span v-if="advice[0].advice_name!='血液透析滤过'&& advice[0].advice_name!='血液透析' && advice[0].advice_name!='电脑血糖监测'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
1850
-                                </span
1851
-                              >
1865
+                                  <span v-if="advice[0].advice_name!='血液透析滤过'&& advice[0].advice_name!='血液透析' && advice[0].advice_name!='电脑血糖监测'"> {{ advice[0].single_dose}}{{ advice[0].single_dose_unit }}</span>
1866
+                                  </span
1867
+                                >
1852 1868
 
1853
-                              <span v-if="advice[0].parent_id == 0">{{
1854
-                                advice[0].delivery_way
1855
-                              }}</span>
1856
-                              <span v-if="advice[0].parent_id == 0">{{
1857
-                                advice[0].execution_frequency
1858
-                              }}</span>
1859
-                              <span
1860
-                                v-if="
1861
-                                  advice[0].parent_id == 0 &&
1862
-                                  advice[0].remark.length > 0
1863
-                                "
1864
-                                >({{ advice[0].remark }})</span
1865
-                              >
1869
+                                <span v-if="advice[0].parent_id == 0">{{
1870
+                                  advice[0].delivery_way
1871
+                                }}</span>
1872
+                                <span v-if="advice[0].parent_id == 0">{{
1873
+                                  advice[0].execution_frequency
1874
+                                }}</span>
1875
+                                <!-- <span
1876
+                                  v-if="
1877
+                                    advice[0].parent_id == 0 &&
1878
+                                    advice[0].remark.length > 0
1879
+                                  "
1880
+                                  >({{ advice[0].remark }})</span
1881
+                                > -->
1882
+                              </div>
1866 1883
                             </td>
1867 1884
 
1868 1885
                             <td height="35px">
@@ -3264,6 +3281,8 @@ export default {
3264 3281
             } else {
3265 3282
               dlegh = 0;
3266 3283
             }
3284
+            
3285
+            
3267 3286
             if (dlegh > 0) {
3268 3287
               if (
3269 3288
                 typeof this.records[recordIndex].monitor_records ===
@@ -3276,7 +3295,6 @@ export default {
3276 3295
                 this.records[recordIndex].monitor_records.push([]);
3277 3296
               }
3278 3297
             }
3279
-
3280 3298
             this.records[recordIndex].isShowZero = false;
3281 3299
             if (this.records[recordIndex].patient.user_org_id == 9535) {
3282 3300
               this.records[recordIndex].isShowZero = true;
@@ -3300,9 +3318,12 @@ export default {
3300 3318
                 this.records[recordIndex].advices.push([]);
3301 3319
               }
3302 3320
             }
3303
-
3321
+            console.log('22222222',this.records[recordIndex].advices);
3322
+            
3304 3323
             var childMap = {};
3305 3324
             for (const index in this.records[recordIndex].advices) {
3325
+              
3326
+              this.records[recordIndex].advices[index].prescriptionChild = []
3306 3327
               if (this.records[recordIndex].advices[index].parent_id == 0) {
3307 3328
                 continue;
3308 3329
               }
@@ -3320,6 +3341,7 @@ export default {
3320 3341
             }
3321 3342
 
3322 3343
             var advices = [];
3344
+            // var advices2 = []
3323 3345
             for (const index in this.records[recordIndex].advices) {
3324 3346
               if (this.records[recordIndex].advices[index].parent_id > 0) {
3325 3347
                 continue;
@@ -3329,10 +3351,25 @@ export default {
3329 3351
                 item.children = childMap[item.id];
3330 3352
               } else {
3331 3353
                 item.children = [];
3354
+                this.records[recordIndex].advices[index].prescriptionChild.push(item) 
3332 3355
               }
3333 3356
               advices.push(item);
3357
+              
3334 3358
             }
3335
-
3359
+            var arr = []
3360
+            for(let i=0;i<advices.length;i++){
3361
+              for(let j=i+1;j<advices.length;j++){
3362
+                if(advices[i].id !=undefined){
3363
+                  if(advices[i].groupno == advices[j].groupno){
3364
+                    arr.push(advices[j])
3365
+                    advices[i].prescriptionChild.push(advices[j])
3366
+                    advices.splice(j,1)
3367
+                  }
3368
+                }
3369
+              }
3370
+            }
3371
+            console.log('3333333333',advices,arr);
3372
+            
3336 3373
             var leftAdvice = [];
3337 3374
             var rightAdvice = [];
3338 3375
             var adlen = advices.length;

+ 11 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Прегледај датотеку

@@ -1564,7 +1564,7 @@
1564 1564
                           colspan="2" class="advice-name"
1565 1565
                           style="padding-left: 7px"
1566 1566
                         >
1567
-                          <div v-if="org_id==10551 || org_id==0">
1567
+                          <div v-if="org_id==10551 || org_id ==0">
1568 1568
                             <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
1569 1569
                               <div style="border: none;">
1570 1570
                                 <span>{{ it.advice_name }}</span>
@@ -1584,7 +1584,7 @@
1584 1584
                                       <span>{{
1585 1585
                                         it.execution_frequency
1586 1586
                                       }}</span>
1587
-                                      <span v-if="it.remark.length > 0"
1587
+                                      <span v-if="it.remark !=''"
1588 1588
                                         >({{ it.remark }})</span
1589 1589
                                       >
1590 1590
                               </div>
@@ -3830,13 +3830,18 @@ export default {
3830 3830
             let newArr = Object.values(dataInfo)
3831 3831
 
3832 3832
             if(newArr!=null && newArr.length >0){
3833
-            for(let i=0;i<newArr.length;i++){
3834
-              for(let j=0;j<this.doctor_advices.length;j++){
3835
-                if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
3836
-                    newArr[i].prescriptionChild.push(this.doctor_advices[j])
3833
+              for(let i=0;i<newArr.length;i++){
3834
+                for(let j=0;j<this.doctor_advices.length;j++){
3835
+                  if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
3836
+                      newArr[i].prescriptionChild.push(this.doctor_advices[j])
3837
+                  }
3837 3838
                 }
3838 3839
               }
3839 3840
             }
3841
+            for(let i in newArr){
3842
+              if(newArr[i].parent_id == undefined){
3843
+                newArr.splice(i,1)
3844
+              }
3840 3845
             }
3841 3846
             console.log("newArr",newArr)
3842 3847
             this.doctor_advices = []

+ 1 - 791
src/xt_pages/dialysis/template/DialysisPrintOrdereighty.vue Прегледај датотеку

@@ -351,7 +351,7 @@
351 351
                             : "/"
352 352
                         }}
353 353
                       </div>
354
-                      kg
354
+                      L
355 355
                     </div>
356 356
                   </div>
357 357
 
@@ -1331,796 +1331,6 @@
1331 1331
       </div>
1332 1332
     </div>
1333 1333
 
1334
-    <div id="dialysis-print-box-1-2" class="dialysis-print-order print-template-two print_page_main_content" style="position: relative;">
1335
-      <div class="order-yy-name">{{ orgname }}</div>
1336
-      <div class="order_title" v-if="org_id!=0&&org_id!=10579">血液净化科医嘱及执行单</div>
1337
-      <div class="order_title" v-if=" org_id==10579">血液净化治疗记录单</div>
1338
-      <div class="row" style="margin-top: 15px">
1339
-        <div class="inline_block">
1340
-          科室:
1341
-          <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
1342
-          &nbsp;
1343
-          <check-box text="住院" :checked="patientInfo_source_2"></check-box>
1344
-        </div>
1345
-        <div class="inline_block" style="margin-left: 5px;">
1346
-          住院号:
1347
-          <div class="under_line" style="width: 70px;text-align: left" v-if="patientInfo.admission_number">
1348
-            {{ patientInfo.admission_number }}
1349
-          </div>
1350
-          <div class="under_line" style="width: 70px;text-align: left" v-else>
1351
-            {{ "/" }}
1352
-          </div>
1353
-        </div>
1354
-        <div class="inline_block" style="margin-left:10px;">
1355
-          姓名:
1356
-          <div class="under_line" style="width: 50px;text-align: left">
1357
-            {{ patientInfo.name }}
1358
-          </div>
1359
-        </div>
1360
-        <div class="inline_block" style="margin-left: 10px;">
1361
-          性别:
1362
-          <check-box text="男" :checked="patientInfo_gender_1"></check-box>
1363
-          &nbsp;
1364
-          <check-box text="女" :checked="patientInfo_gender_2"></check-box>
1365
-        </div>
1366
-        <div class="inline_block" style="margin-left: 10px;">
1367
-          年龄:
1368
-          <div class="under_line" style="width: 30px;text-align: left">
1369
-            <!-- {{ getAge(patientInfo) }} -->
1370
-            {{ calculateAge(patientInfo.id_card_no,schedule_date) }}
1371
-          </div>
1372
-          岁
1373
-        </div>
1374
-        <div class="inline_block" style="margin-left: 10px;">
1375
-          透析日期:
1376
-          <div class="under_line" style="width: 100px;text-align: left">
1377
-            {{ xtdate }}
1378
-          </div>
1379
-        </div>
1380
-      </div>
1381
-      <div class="row" style="margin-top: 15px">
1382
-        <div  style="">
1383
-          诊断:
1384
-          <div class="under_line" style="width: 95%;text-align: left;white-space: normal;">
1385
-            {{ patientInfo.diagnose }}
1386
-          </div>
1387
-        </div>
1388
-      </div>
1389
-
1390
-      <table class="print-table-no">
1391
-                    <tbody>
1392
-                      <tr style="line-height: 35px; padding: 8px 5px">
1393
-                        <td
1394
-                          colspan="7"
1395
-                          style="
1396
-                            letter-spacing: 5px;
1397
-                            text-align: center;
1398
-                            font-weight: 520;
1399
-                            font-size: 16px;
1400
-                            padding: 6px 8px;
1401
-                            line-height: 30px;
1402
-                          "
1403
-                        >
1404
-                          医嘱内容
1405
-                        </td>
1406
-                      </tr>
1407
-                      <tr style="line-height: 35px; padding: 8px 5px">
1408
-                        <td style="font-size: 16px" width="10%">时间</td>
1409
-                        <td style="font-size: 16px" colspan="2" width="45%">
1410
-                          医嘱内容
1411
-                        </td>
1412
-                        <td style="font-size: 16px" width="10%">医生签名</td>
1413
-
1414
-                        <td style="font-size: 16px" width="10%">执行人签名</td>
1415
-                        <td style="font-size: 16px" width="10%">时间</td>
1416
-                        <td
1417
-                          style="font-size: 16px"
1418
-                          width="10%"
1419
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1420
-                        >
1421
-                          核对护士
1422
-                        </td>
1423
-                      </tr>
1424
-
1425
-
1426
-                      <tr
1427
-                        v-for="(advice, advice_index) in doctor_advices"
1428
-                        :key="advice_index"
1429
-                      >
1430
-                        <td height="32px">
1431
-                          <span v-if="advice.start_time">
1432
-                            {{ getTime(advice.start_time, "{h}:{i}") }}
1433
-                          </span>
1434
-
1435
-                        </td>
1436
-                        <td
1437
-                          height="32px"
1438
-                          colspan="2"
1439
-                          class="advice-name"
1440
-                          style="padding-left: 7px"
1441
-                        >
1442
-                          <span v-if="advice.parent_id > 0">---></span>
1443
-                          <span>{{ advice.advice_name }}</span>
1444
-                          <span v-if="advice && advice.advice_desc"
1445
-                            >({{ advice.advice_desc
1446
-                            }}{{ advice.drug_spec_unit }})</span
1447
-                          >
1448
-                          <span v-if="advice.prescribing_number"
1449
-                            >&nbsp;&nbsp; {{ advice.prescribing_number
1450
-                            }}{{ advice.prescribing_number_unit }}</span
1451
-                          >
1452
-                          <span v-if="advice.single_dose != 0"
1453
-                            >{{ advice.single_dose
1454
-                            }}{{ advice.single_dose_unit }}</span
1455
-                          >
1456
-                          <span v-if="advice.parent_id == 0">{{
1457
-                            advice.delivery_way
1458
-                          }}</span>
1459
-                          <span v-if="advice.parent_id == 0">{{
1460
-                            advice.execution_frequency
1461
-                          }}</span>
1462
-                          <span
1463
-                            v-if="
1464
-                              advice.parent_id == 0 && advice.remark.length > 0
1465
-                            "
1466
-                            >({{ advice.remark }})</span
1467
-                          >
1468
-                        </td>
1469
-
1470
-                        <td height="32px">
1471
-                          <span
1472
-                            v-if="setAdminUserES(advice.advice_doctor) == ''"
1473
-                            >{{ getAdminUser(advice.advice_doctor) }}</span
1474
-                          >
1475
-                          <img
1476
-                            style="height: 30px"
1477
-                            :src="setAdminUserES(advice.advice_doctor)"
1478
-                            alt=""
1479
-                            srcset=""
1480
-                            v-else
1481
-                          />
1482
-                        </td>
1483
-
1484
-                        <td height="32px">
1485
-                          <span
1486
-                            v-if="setAdminUserES(advice.execution_staff) == ''"
1487
-                            >{{ getAdminUser(advice.execution_staff) }}</span
1488
-                          >
1489
-                          <img
1490
-                            style="height: 30px"
1491
-                            :src="setAdminUserES(advice.execution_staff)"
1492
-                            alt=""
1493
-                            srcset=""
1494
-                            v-else
1495
-                          />
1496
-                        </td>
1497
-                        <td height="32px">
1498
-                          <span v-if="advice.execution_time">{{
1499
-                            getTime(advice.execution_time, "{h}:{i}")
1500
-                          }}</span>
1501
-                        </td>
1502
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1503
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{
1504
-                            getAdminUser(advice.checker)
1505
-                          }}</span>
1506
-                          <img
1507
-                            style="height: 30px"
1508
-                            :src="setAdminUserES(advice.checker)"
1509
-                            alt=""
1510
-                            srcset=""
1511
-                            v-else
1512
-                          />
1513
-                        </td>
1514
-                      </tr>
1515
-
1516
-                      <tr v-if="org_id == 0 || org_id == 10579">
1517
-                  <td colspan="7">
1518
-                  <div
1519
-                    class="row"
1520
-                    style="padding: 2px 0; line-height: 23px; display: flex"
1521
-                  >
1522
-                   <div v-if="org_id == 0 || org_id == 10440">
1523
-
1524
-                    <div class="inline_block" style="flex: 1">
1525
-                      上机护士:
1526
-                      <div
1527
-                        class="under_line"
1528
-                        style="width: 90px; text-align: center"
1529
-                      >
1530
-                        <span
1531
-                          style="height: 30px; display: inline-block"
1532
-                          v-if="
1533
-                            setAdminUserES(
1534
-                              dialysisOrder == null
1535
-                                ? 0
1536
-                                : dialysisOrder.start_nurse
1537
-                            ) == ''
1538
-                          "
1539
-                        >
1540
-                          {{
1541
-                            getAdminUser(
1542
-                              dialysisOrder == null
1543
-                                ? 0
1544
-                                : dialysisOrder.start_nurse
1545
-                            )
1546
-                          }}</span
1547
-                        >
1548
-                        <img
1549
-                          style="height: 35px"
1550
-                          :src="
1551
-                            setAdminUserES(
1552
-                              dialysisOrder == null
1553
-                                ? 0
1554
-                                : dialysisOrder.start_nurse
1555
-                            )
1556
-                          "
1557
-                          alt=""
1558
-                          srcset=""
1559
-                          v-else
1560
-                        />
1561
-                      </div>
1562
-                    </div>
1563
-
1564
-
1565
-                  </div>
1566
-                  <div v-if="org_id ==10644">
1567
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
1568
-                      穿刺护士:
1569
-                      <div
1570
-                        class="under_line"
1571
-                        style="width: 90px; text-align: center"
1572
-                      >
1573
-                        <span
1574
-                          style="height: 30px; display: inline-block"
1575
-                          v-if="
1576
-                            setAdminUserES(
1577
-                              dialysisOrder == null
1578
-                                ? 0
1579
-                                : dialysisOrder.puncture_nurse
1580
-                            ) == ''
1581
-                          "
1582
-                        >
1583
-                          {{
1584
-                            getAdminUser(
1585
-                              dialysisOrder == null
1586
-                                ? 0
1587
-                                : dialysisOrder.puncture_nurse
1588
-                            )
1589
-                          }}</span
1590
-                        >
1591
-                        <img
1592
-                          style="height: 35px"
1593
-                          :src="
1594
-                            setAdminUserES(
1595
-                              dialysisOrder == null
1596
-                                ? 0
1597
-                                : dialysisOrder.puncture_nurse
1598
-                            )
1599
-                          "
1600
-                          alt=""
1601
-                          srcset=""
1602
-                          v-else
1603
-                        />
1604
-                      </div>
1605
-                    </div>
1606
-
1607
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
1608
-                      换药护士:
1609
-
1610
-                      <div
1611
-                        class="under_line"
1612
-                        style="width: 90px; text-align: center"
1613
-                        v-if="org_id==10644"
1614
-                      >
1615
-                        <span
1616
-                          style="height: 30px; display: inline-block"
1617
-                          v-if="
1618
-                            setAdminUserES(
1619
-                              dialysisOrder == null
1620
-                                ? 0
1621
-                                : dialysisOrder.change_nurse
1622
-                            ) == ''
1623
-                          "
1624
-                        >
1625
-                          {{
1626
-                            getAdminUser(
1627
-                              dialysisOrder == null
1628
-                                ? 0
1629
-                                : dialysisOrder.change_nurse
1630
-                            )
1631
-                          }}</span
1632
-                        >
1633
-                        <img
1634
-                          style="height: 35px"
1635
-                          :src="
1636
-                            setAdminUserES(
1637
-                              dialysisOrder == null
1638
-                                ? 0
1639
-                                : dialysisOrder.change_nurse
1640
-                            )
1641
-                          "
1642
-                          alt=""
1643
-                          srcset=""
1644
-                          v-else
1645
-                        />
1646
-                      </div>
1647
-
1648
-                      <div
1649
-                        class="under_line"
1650
-                        style="width: 90px; text-align: center"
1651
-                        v-if="org_id!=10644"
1652
-                      >
1653
-                        <span
1654
-                          style="height: 30px; display: inline-block"
1655
-                          v-if="
1656
-                            setAdminUserES(
1657
-                              dialysisOrder == null
1658
-                                ? 0
1659
-                                : dialysisOrder.puncture_nurse
1660
-                            ) == ''
1661
-                          "
1662
-                        >
1663
-                          {{
1664
-                            getAdminUser(
1665
-                              dialysisOrder == null
1666
-                                ? 0
1667
-                                : dialysisOrder.puncture_nurse
1668
-                            )
1669
-                          }}</span
1670
-                        >
1671
-                        <img
1672
-                          style="height: 35px"
1673
-                          :src="
1674
-                            setAdminUserES(
1675
-                              dialysisOrder == null
1676
-                                ? 0
1677
-                                : dialysisOrder.puncture_nurse
1678
-                            )
1679
-                          "
1680
-                          alt=""
1681
-                          srcset=""
1682
-                          v-else
1683
-                        />
1684
-                      </div>
1685
-                    </div>
1686
-                  </div>
1687
-
1688
-
1689
-                  <div v-if="org_id !=10644 && org_id!=10440">
1690
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter == ''">
1691
-                      穿刺护士:
1692
-                      <div
1693
-                        class="under_line"
1694
-                        style="width: 90px; text-align: center"
1695
-                      >
1696
-                        <span
1697
-                          style="height: 30px; display: inline-block"
1698
-                          v-if="
1699
-                            setAdminUserES(
1700
-                              dialysisOrder == null
1701
-                                ? 0
1702
-                                : dialysisOrder.puncture_nurse
1703
-                            ) == ''
1704
-                          "
1705
-                        >
1706
-                          {{
1707
-                            getAdminUser(
1708
-                              dialysisOrder == null
1709
-                                ? 0
1710
-                                : dialysisOrder.puncture_nurse
1711
-                            )
1712
-                          }}</span
1713
-                        >
1714
-                        <img
1715
-                          style="height: 35px"
1716
-                          :src="
1717
-                            setAdminUserES(
1718
-                              dialysisOrder == null
1719
-                                ? 0
1720
-                                : dialysisOrder.puncture_nurse
1721
-                            )
1722
-                          "
1723
-                          alt=""
1724
-                          srcset=""
1725
-                          v-else
1726
-                        />
1727
-                      </div>
1728
-                    </div>
1729
-
1730
-                    <div class="inline_block" style="flex: 1" v-if="predialysis.catheter != ''">
1731
-                      穿刺护士:
1732
-
1733
-                      <div
1734
-                        class="under_line"
1735
-                        style="width: 90px; text-align: center"
1736
-                        v-if="org_id==10644"
1737
-                      >
1738
-                        <span
1739
-                          style="height: 30px; display: inline-block"
1740
-                          v-if="
1741
-                            setAdminUserES(
1742
-                              dialysisOrder == null
1743
-                                ? 0
1744
-                                : dialysisOrder.puncture_nurse
1745
-                            ) == ''
1746
-                          "
1747
-                        >
1748
-                          {{
1749
-                            getAdminUser(
1750
-                              dialysisOrder == null
1751
-                                ? 0
1752
-                                : dialysisOrder.puncture_nurse
1753
-                            )
1754
-                          }}</span
1755
-                        >
1756
-                        <img
1757
-                          style="height: 35px"
1758
-                          :src="
1759
-                            setAdminUserES(
1760
-                              dialysisOrder == null
1761
-                                ? 0
1762
-                                : dialysisOrder.puncture_nurse
1763
-                            )
1764
-                          "
1765
-                          alt=""
1766
-                          srcset=""
1767
-                          v-else
1768
-                        />
1769
-                      </div>
1770
-
1771
-                      <div
1772
-                        class="under_line"
1773
-                        style="width: 90px; text-align: center"
1774
-                        v-if="org_id!=10644"
1775
-                      >
1776
-                        <span
1777
-                          style="height: 30px; display: inline-block"
1778
-                          v-if="
1779
-                            setAdminUserES(
1780
-                              dialysisOrder == null
1781
-                                ? 0
1782
-                                : dialysisOrder.puncture_nurse
1783
-                            ) == ''
1784
-                          "
1785
-                        >
1786
-                          {{
1787
-                            getAdminUser(
1788
-                              dialysisOrder == null
1789
-                                ? 0
1790
-                                : dialysisOrder.puncture_nurse
1791
-                            )
1792
-                          }}</span
1793
-                        >
1794
-                        <img
1795
-                          style="height: 35px"
1796
-                          :src="
1797
-                            setAdminUserES(
1798
-                              dialysisOrder == null
1799
-                                ? 0
1800
-                                : dialysisOrder.puncture_nurse
1801
-                            )
1802
-                          "
1803
-                          alt=""
1804
-                          srcset=""
1805
-                          v-else
1806
-                        />
1807
-                      </div>
1808
-                    </div>
1809
-                  </div>
1810
-
1811
-                  <div v-if="org_id==10440">
1812
-
1813
-                    <div class="inline_block" style="flex: 1">
1814
-                     <div>
1815
-                      <span>责任护士:</span>
1816
-                      <div
1817
-                        class="under_line"
1818
-                        style="width: 80px; text-align: center"
1819
-
1820
-                      >
1821
-
1822
-                        <span
1823
-                          style="height: 35px; display: inline-block"
1824
-                          v-if="
1825
-                            setAdminUserES(
1826
-                              dialysisOrder == null
1827
-                                ? 0
1828
-                                : dialysisOrder.start_nurse
1829
-                            ) == ''
1830
-                          "
1831
-                        >
1832
-                          {{
1833
-                            getAdminUser(
1834
-                              dialysisOrder == null
1835
-                                ? 0
1836
-                                : dialysisOrder.start_nurse
1837
-                            )
1838
-                          }}</span
1839
-                        >
1840
-                        <img
1841
-                          style="height: 30px"
1842
-                          :src="
1843
-                            setAdminUserES(
1844
-                              dialysisOrder == null
1845
-                                ? 0
1846
-                                : dialysisOrder.start_nurse
1847
-                            )
1848
-                          "
1849
-                          alt=""
1850
-                          srcset=""
1851
-                          v-else
1852
-                        />
1853
-                      </div>
1854
-                    </div>
1855
-
1856
-                    </div>
1857
-
1858
-                  </div>
1859
-
1860
-                  <div v-if="org_id!=0&&org_id!=10440&&org_id!= 10206">
1861
-                    <div class="inline_block" style="flex: 1">
1862
-                      <span v-if="org_id==10414">责任护士:</span>
1863
-                      <span v-else>治疗护士:</span>
1864
-
1865
-                      <div
1866
-                        class="under_line"
1867
-                        style="width: 80px; text-align: center"
1868
-                      >
1869
-                        <span
1870
-                          style="height: 30px; display: inline-block"
1871
-                          v-if="
1872
-                            setAdminUserES(
1873
-                              dialysisOrder == null
1874
-                                ? 0
1875
-                                : dialysisOrder.start_nurse
1876
-                            ) == ''
1877
-                          "
1878
-                        >
1879
-                          {{
1880
-                            getAdminUser(
1881
-                              dialysisOrder == null
1882
-                                ? 0
1883
-                                : dialysisOrder.start_nurse
1884
-                            )
1885
-                          }}</span
1886
-                        >
1887
-                        <img
1888
-                          style="height: 30px"
1889
-                          :src="
1890
-                            setAdminUserES(
1891
-                              dialysisOrder == null
1892
-                                ? 0
1893
-                                : dialysisOrder.start_nurse
1894
-                            )
1895
-                          "
1896
-                          alt=""
1897
-                          srcset=""
1898
-                          v-else
1899
-                        />
1900
-                      </div>
1901
-                    </div>
1902
-                  </div>
1903
-
1904
-
1905
-
1906
-                    <div class="inline_block" style="flex: 1">
1907
-                      <span v-if="org_id==10387 || org_id ==10206 || org_id == 0" >核对护士:</span>
1908
-                      <span v-else >核对人员:</span>
1909
-                      <div
1910
-                        class="under_line"
1911
-                        style="width: 80px; text-align: center"
1912
-                        v-if="dialysisOrder == null"
1913
-                      >
1914
-                        <span
1915
-                          style="height: 30px; display: inline-block"
1916
-                          v-if="
1917
-                            setAdminUserES(check == null ? 0 : check.creater) ==
1918
-                            ''
1919
-                          "
1920
-                        >
1921
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
1922
-                        </span>
1923
-                        <img
1924
-                          style="height: 30px"
1925
-                          :src="
1926
-                            setAdminUserES(check == null ? 0 : check.creater)
1927
-                          "
1928
-                          alt=""
1929
-                          srcset=""
1930
-                          v-else
1931
-                        />
1932
-                      </div>
1933
-                      <div
1934
-                        class="under_line"
1935
-                        style="width: 80px; text-align: center"
1936
-                        v-if="
1937
-                          dialysisOrder != null &&
1938
-                          dialysisOrder.start_nurse == check.modifier
1939
-                        "
1940
-                      >
1941
-                        <span
1942
-                          style="height: 30px; display: inline-block"
1943
-                          v-if="
1944
-                            setAdminUserES(check == null ? 0 : check.creater) ==
1945
-                            ''
1946
-                          "
1947
-                        >
1948
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
1949
-                        </span>
1950
-                        <img
1951
-                          style="height: 30px"
1952
-                          :src="
1953
-                            setAdminUserES(check == null ? 0 : check.creater)
1954
-                          "
1955
-                          alt=""
1956
-                          srcset=""
1957
-                          v-else
1958
-                        />
1959
-                      </div>
1960
-                      <div
1961
-                        class="under_line"
1962
-                        style="width: 80px; text-align: center"
1963
-                        v-if="
1964
-                          dialysisOrder != null &&
1965
-                          dialysisOrder.start_nurse == check.creater
1966
-                        "
1967
-                      >
1968
-                        <span
1969
-                          style="height: 30px; display: inline-block"
1970
-                          v-if="
1971
-                            setAdminUserES(
1972
-                              check == null ? 0 : check.modifier
1973
-                            ) == ''
1974
-                          "
1975
-                        >
1976
-                          {{ getAdminUser(check == null ? 0 : check.modifier) }}
1977
-                        </span>
1978
-                        <img
1979
-                          style="height: 30px"
1980
-                          :src="
1981
-                            setAdminUserES(check == null ? 0 : check.modifier)
1982
-                          "
1983
-                          alt=""
1984
-                          srcset=""
1985
-                          v-else
1986
-                        />
1987
-                      </div>
1988
-                      <div
1989
-                        class="under_line"
1990
-                        style="width: 80px; text-align: center"
1991
-                        v-if="
1992
-                          dialysisOrder != null &&
1993
-                          dialysisOrder.start_nurse != check.creater &&
1994
-                          dialysisOrder.start_nurse != check.modifier
1995
-                        "
1996
-                      >
1997
-                        <span
1998
-                          style="height: 30px; display: inline-block"
1999
-                          v-if="
2000
-                            setAdminUserES(check == null ? 0 : check.creater) ==
2001
-                            ''
2002
-                          "
2003
-                        >
2004
-                          {{ getAdminUser(check == null ? 0 : check.creater) }}
2005
-                        </span>
2006
-                        <img
2007
-                          style="height: 30px"
2008
-                          :src="
2009
-                            setAdminUserES(check == null ? 0 : check.creater)
2010
-                          "
2011
-                          alt=""
2012
-                          srcset=""
2013
-                          v-else
2014
-                        />
2015
-                      </div>
2016
-                    </div>
2017
-                    <div class="inline_block" style="flex: 1" v-if="org_id!=10579 && org_id!=0">
2018
-                       下机护士:
2019
-                      <div
2020
-                        class="under_line"
2021
-                        style="width: 80px; text-align: center"
2022
-                      >
2023
-                        <span
2024
-                          style="height: 30px; display: inline-block"
2025
-                          v-if="
2026
-                            setAdminUserES(
2027
-                              dialysisOrder == null
2028
-                                ? 0
2029
-                                : dialysisOrder.finish_nurse
2030
-                            ) == ''
2031
-                          "
2032
-                        >
2033
-                          {{
2034
-                            getAdminUser(
2035
-                              dialysisOrder == null
2036
-                                ? 0
2037
-                                : dialysisOrder.finish_nurse
2038
-                            )
2039
-                          }}
2040
-                        </span>
2041
-                        <img
2042
-                          style="height: 30px"
2043
-                          :src="
2044
-                            setAdminUserES(
2045
-                              dialysisOrder == null
2046
-                                ? 0
2047
-                                : dialysisOrder.finish_nurse
2048
-                            )
2049
-                          "
2050
-                          alt=""
2051
-                          srcset=""
2052
-                          v-else
2053
-                        />
2054
-                      </div>
2055
-                    </div>
2056
-                    <div class="inline_block" style="flex: 1" v-if="org_id==10579 || org_id == 0">
2057
-                       患者签名
2058
-                      <div
2059
-                        class="under_line"
2060
-                        style="width: 80px; text-align: center"
2061
-                      >
2062
-
2063
-
2064
-                      </div>
2065
-                    </div>
2066
-                    <div class="inline_block" style="flex: 1">
2067
-                      治疗医生:
2068
-                      <div
2069
-                        v-if="org_id ==10191"
2070
-                        class="under_line"
2071
-                        style="width: 80px; text-align: center"
2072
-                      >
2073
-                        <span
2074
-                          style="height: 30px; display: inline-block"
2075
-                          v-if="setAdminUserES(prescription.creater) == ''"
2076
-                        >
2077
-                          {{ getAdminUser(prescription.creater) }}
2078
-                        </span>
2079
-                        <img
2080
-                          style="height: 40px"
2081
-                          :src="setAdminUserES(prescription.creater)"
2082
-                          alt=""
2083
-                          srcset=""
2084
-                          v-else
2085
-                        />
2086
-                      </div>
2087
-                      <div
2088
-                        v-if="org_id!=10191"
2089
-                        class="under_line"
2090
-                        style="width: 80px; text-align: center"
2091
-                      >
2092
-                      <span v-if="doctor_advices[0]!=null && doctor_advices[0].advice_doctor>0">
2093
-                        <span
2094
-                            style="height: 30px; display: inline-block"
2095
-                            v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
2096
-                          >
2097
-                            {{ getAdminUser(doctor_advices[0].advice_doctor) }}
2098
-                          </span>
2099
-                          <img
2100
-                            style="height: 40px"
2101
-                            :src="setAdminUserES(doctor_advices[0].advice_doctor)"
2102
-                            alt=""
2103
-                            srcset=""
2104
-                            v-else
2105
-                          />
2106
-                      </span>
2107
-
2108
-                      </div>
2109
-                    </div>
2110
-                  </div>
2111
-                </td>
2112
-              </tr>
2113
-
2114
-
2115
-                    </tbody>
2116
-     </table>
2117
-
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-    </div>
2124 1334
   </div>
2125 1335
 </template>
2126 1336
 

+ 25 - 18
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue Прегледај датотеку

@@ -328,7 +328,7 @@
328 328
                 </tr>
329 329
             </table>
330 330
           </div>
331
-          <div style="margin-bottom: 10px;" v-if="org_id!=0&& org_id!=10375">
331
+          <div style="margin-bottom: 10px;" v-if="org_id!=10375">
332 332
             <table class="table" border="1"
333 333
               style="border-collapse: collapse;text-align: center;width: 100%;"
334 334
             >
@@ -352,7 +352,7 @@
352 352
                   height="32px"
353 353
                   class="advice-name"
354 354
                   style="padding-left: 7px"
355
-                 
355
+
356 356
                 >
357 357
                  <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
358 358
                    <div style="border: none;">
@@ -373,7 +373,8 @@
373 373
                           <span>{{
374 374
                             it.execution_frequency
375 375
                           }}</span>
376
-                          <span v-if="it.remark.length > 0"
376
+                          
377
+                          <span v-if="it.remark !=''"
377 378
                             >({{ it.remark }})</span
378 379
                           >
379 380
                    </div>
@@ -466,7 +467,7 @@
466 467
                 </td>
467 468
                 <td>
468 469
                   <span>透析器凝血:
469
-                   
470
+
470 471
                     {{
471 472
                      afterdialysis &&
472 473
                      afterdialysis
@@ -474,19 +475,19 @@
474 475
                         : "/"
475 476
                      }}
476 477
 
477
-                 
478
+
478 479
                   </span>
479 480
                 </td>
480 481
                 <td>
481 482
                   <span>实际置换量:
482
-                   
483
+
483 484
                     {{
484 485
                       afterdialysis.actual_displacement
485 486
                         ? afterdialysis.actual_displacement
486 487
                         : ""
487 488
                      }}L
488 489
 
489
-                 
490
+
490 491
                   </span>
491 492
                 </td>
492 493
               </tr>
@@ -526,7 +527,7 @@
526 527
                 <td width="5%">医生:</td>
527 528
                 <td width="10%">
528 529
                   <!-- <span>{{getAdminUser(prescription.creater)}}</span> -->
529
-                  <span v-if="doctor_advices[0]!=null&&doctor_advices[0].advice_doctor>0">{{ getAdminUser(doctor_advices[0].advice_doctor) }}</span> 
530
+                  <span v-if="doctor_advices[0]!=null&&doctor_advices[0].advice_doctor>0">{{ getAdminUser(doctor_advices[0].advice_doctor) }}</span>
530 531
                   <span v-if="doctor_advices[0]!=null&&doctor_advices[0].advice_doctor==0">{{getAdminUser(prescription.creater)}}</span>
531 532
                   <!-- <img style="height:65px;width: 90%;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else> -->
532 533
                 </td>
@@ -1302,6 +1303,8 @@ export default {
1302 1303
           this.advices.push(item);
1303 1304
         }
1304 1305
         this.loading = false;
1306
+
1307
+
1305 1308
         this.doctor_advices =
1306 1309
           response.data.data.advices == null ? [] : response.data.data.advices;
1307 1310
         for (let index = 0; index < this.doctor_advices.length; index++) {
@@ -1351,23 +1354,23 @@ export default {
1351 1354
              }
1352 1355
            }
1353 1356
         }
1354
-        this.doctor_advices = [] 
1357
+        this.doctor_advices = []
1355 1358
         this.doctor_advices = docArr
1356
-      
1357 1359
 
1358 1360
 
1359
-       
1360
-          
1361
+
1362
+
1363
+
1361 1364
         if(this.doctor_advices!=null && this.doctor_advices.length>0){
1362 1365
 
1363 1366
             for(let i=0;i<this.doctor_advices.length;i++){
1364
-              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno 
1367
+              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
1365 1368
             }
1366 1369
             console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
1367 1370
 
1368 1371
             let dataInfo = {}
1369 1372
             this.doctor_advices.forEach((item, index) => {
1370
-        
1373
+
1371 1374
             let { groupPrescriptionId } = item
1372 1375
             if (!dataInfo[groupPrescriptionId]) {
1373 1376
               dataInfo[groupPrescriptionId] = {
@@ -1392,7 +1395,7 @@ export default {
1392 1395
             }
1393 1396
           })
1394 1397
           let newArr = Object.values(dataInfo)
1395
-          
1398
+
1396 1399
           if(newArr!=null && newArr.length >0){
1397 1400
              for(let i=0;i<newArr.length;i++){
1398 1401
                for(let j=0;j<this.doctor_advices.length;j++){
@@ -1403,12 +1406,16 @@ export default {
1403 1406
              }
1404 1407
           }
1405 1408
           console.log("newArr",newArr)
1406
-            
1409
+          for(let i in newArr){
1410
+            if(newArr[i].parent_id == undefined){
1411
+              newArr.splice(i,1)
1412
+            }
1413
+          }
1407 1414
           this.doctor_advices = []
1408 1415
           this.doctor_advices = newArr
1409
-         
1416
+
1410 1417
         }
1411
-        
1418
+
1412 1419
 
1413 1420
       } else {
1414 1421
         this.loading = false;

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printSeventheen.vue Прегледај датотеку

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3
-     <div class="statementTitle">濉溪杏康血液透析中结算单</div>
3
+     <div class="statementTitle">濉溪杏康血液透析中结算单</div>
4 4
      <!-- <div style="text-align: center;font-size: 17px;">门 &nbsp;诊 &nbsp;结 &nbsp;帐 &nbsp;票 &nbsp;据</div> -->
5 5
       <div style="width: 100%;border-bottom: 1px dashed black;padding-bottom: 5px;">
6 6
         <div style="width: 100%;display: flex;padding: 5px;">

+ 111 - 34
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

@@ -559,6 +559,12 @@
559 559
                                v-on:cancel="cancel"></next-or-last-prescription>
560 560
     <!--<next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue" v-on:cancel="cancel"></next-or-last-prescription>-->
561 561
     <call-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-prescription>
562
+
563
+    <el-dialog title="提醒" :visible.sync="dialogTableVisible">
564
+      <el-table :data="err_msg">
565
+        <el-table-column label="提示" width="150"></el-table-column>
566
+      </el-table>
567
+    </el-dialog>
562 568
   </div>
563 569
 </template>
564 570
 
@@ -627,7 +633,9 @@ export default {
627 633
   },
628 634
   data() {
629 635
     return {
636
+      dialogTableVisible:false,
630 637
       drugs: [],
638
+      err_msg:[],
631 639
       zuobiao_drug: [],
632 640
       zuobiao_project: [],
633 641
       start_time: moment(new Date()).subtract(30, 'days').format('YYYY-MM-DD'),
@@ -3195,50 +3203,119 @@ export default {
3195 3203
                   data.prescriptions[i]["diagnoses"] = data.prescriptions[i].diagnose.join(",")
3196 3204
                 }
3197 3205
               }
3198
-              createHisPrescription(data, params).then(response => {
3199
-                if (response.data.state == 1) {
3200
-                  this.$emit('change', this.patientInfo.id)
3201
-                  this.$message.success('保存成功!')
3202
-                  this.$emit('editKeepLoad', false)
3203
-                  this.$parent.getInitData()
3204
-                  this.getlist()
3205 3206
 
3206
-                  if(this.org_id == 10653){ //将数据同步到费森系统
3207
-                    var that = this
3208
-                    axios.get('http://127.0.0.1:9531/api/yb/syncadvice', {
3209
-                      params: {patient_id: this.patientInfo.id}
3210
-                    })
3211
-                      .then(function(response) {
3212
-                        if (response.data.state == 0) {
3213
-                          that.$message.error(response.data.msg)
3214
-                          return false
3207
+              //针对广州从化意达对单位进行判断
3208
+              // 在保存处方的时候,在前端判断,所开的药品里的总量单位是否是最小单位
3209
+              // 如果不是,则弹窗提醒“******总量单位不是最小单位,是否继续保存”,
3210
+              // 取消 则不往后台提交,继续,则提交给后台
3211
+              console.log("this.prescriptions[i].advices[b]")
3212
+              // console.log(this.prescriptions[i].advices[b])
3213
+
3214
+              if(this.org_id == 10318){
3215
+                var err_msg = ""
3216
+                for(let i =0; i < this.prescriptions.length; i++){
3217
+                  for(let b= 0; b < this.prescriptions[i].advices.length;b++){
3218
+                    console.log(this.prescriptions[i].advices[b])
3219
+                    if(this.prescriptions[i].advices[b].prescribing_number_unit !=this.prescriptions[i].advices[b].drug.min_unit){
3220
+                      isLoading = false
3221
+                      if(err_msg.length == 0){
3222
+
3223
+                        err_msg = '<span>' + '<span style="color:red">' + this.prescriptions[i].advices[b].drug_name + '</span>' +"总量单位不是最小单位" + '</span>'
3224
+                      }else{
3225
+                        err_msg = err_msg + "</br>"+  '<span>' + '<span style="color:red">' + this.prescriptions[i].advices[b].drug_name + '</span>' +"总量单位不是最小单位" + '</span>'
3226
+                      }
3227
+                    }
3228
+                  }
3229
+                }
3230
+
3231
+                if (err_msg.length > 0){
3232
+                  err_msg = err_msg + "</br>" + '<span style="font-size: 20px">' + "是否继续保存" + '</span>'
3233
+                  this.$confirm(err_msg, '提示信息', {
3234
+                    distinguishCancelAndClose: true,
3235
+                    dangerouslyUseHTMLString: true,
3236
+                    confirmButtonText: '保存',
3237
+                    cancelButtonText: '取消'
3238
+                  })
3239
+                    .then(() => {
3240
+                      createHisPrescription(data, params).then(response => {
3241
+                        if (response.data.state == 1) {
3242
+                          this.$emit('change', this.patientInfo.id)
3243
+                          this.$message.success('保存成功!')
3244
+                          this.$emit('editKeepLoad', false)
3245
+                          this.$parent.getInitData()
3246
+                          this.getlist()
3247
+
3215 3248
                         } else {
3216
-                          if(response.data.data.status == -1){
3217
-                            that.$confirm(response.data.data.msg, '错误信息', {
3218
-                              confirmButtonText: '确 定',
3219
-                              type: 'warning'
3220
-                            }).then(() => {
3221
-                            }).catch(() => {
3222
-                            })
3223
-                          }else{
3224
-                            that.$message.success('同步费森系统成功!')
3225
-                          }
3249
+                          this.$message.error(response.data.msg)
3250
+                          this.$emit('editKeepLoad', false)
3251
+
3226 3252
                         }
3227 3253
                       })
3228
-                      .catch(function(error) {
3254
+                    })
3255
+                    .catch(action => {
3256
+                      // isLoading = false
3257
+                      this.$emit('editKeepLoad', false)
3229 3258
 
3230
-                      })
3231
-                  }
3259
+                    });
3232 3260
 
3261
+                }else{
3262
+                  createHisPrescription(data, params).then(response => {
3263
+                    if (response.data.state == 1) {
3264
+                      this.$emit('change', this.patientInfo.id)
3265
+                      this.$message.success('保存成功!')
3266
+                      this.$emit('editKeepLoad', false)
3267
+                      this.$parent.getInitData()
3268
+                      this.getlist()
3233 3269
 
3270
+                    } else {
3271
+                      this.$message.error(response.data.msg)
3272
+                      this.$emit('editKeepLoad', false)
3234 3273
 
3274
+                    }
3275
+                  })
3276
+                }
3277
+              }else{
3278
+                createHisPrescription(data, params).then(response => {
3279
+                  if (response.data.state == 1) {
3280
+                    this.$emit('change', this.patientInfo.id)
3281
+                    this.$message.success('保存成功!')
3282
+                    this.$emit('editKeepLoad', false)
3283
+                    this.$parent.getInitData()
3284
+                    this.getlist()
3285
+
3286
+                    if(this.org_id == 10653){ //将数据同步到费森系统
3287
+                      var that = this
3288
+                      axios.get('http://127.0.0.1:9531/api/yb/syncadvice', {
3289
+                        params: {patient_id: this.patientInfo.id}
3290
+                      })
3291
+                        .then(function(response) {
3292
+                          if (response.data.state == 0) {
3293
+                            that.$message.error(response.data.msg)
3294
+                            return false
3295
+                          } else {
3296
+                            if(response.data.data.status == -1){
3297
+                              that.$confirm(response.data.data.msg, '错误信息', {
3298
+                                confirmButtonText: '确 定',
3299
+                                type: 'warning'
3300
+                              }).then(() => {
3301
+                              }).catch(() => {
3302
+                              })
3303
+                            }else{
3304
+                              that.$message.success('同步费森系统成功!')
3305
+                            }
3306
+                          }
3307
+                        })
3308
+                        .catch(function(error) {
3309
+                        })
3310
+                    }
3311
+                  } else {
3312
+                    this.$message.error(response.data.msg)
3313
+                    this.$emit('editKeepLoad', false)
3235 3314
 
3236
-                } else {
3237
-                  this.$message.error(response.data.msg)
3238
-                  this.$emit('editKeepLoad', false)
3315
+                  }
3316
+                })
3239 3317
 
3240
-                }
3241
-              })
3318
+              }
3242 3319
             }
3243 3320
           }
3244 3321