|
@@ -295,7 +295,7 @@
|
295
|
295
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
296
|
296
|
import deskPrescription from './components/deskPrescription'
|
297
|
297
|
import deskRecord from './components/deskRecord'
|
298
|
|
- import { createCaseHistory, getPatientInfo, getSchedulePatientList,getMonthHisPateintInfo } from '@/api/his/his'
|
|
298
|
+ import { createCaseHistory, getMonthHisPateintInfo, getPatientInfo, getSchedulePatientList } from '@/api/his/his'
|
299
|
299
|
import { getDictionaryDataConfig } from '@/utils/data'
|
300
|
300
|
import medicalRecord from './components/medicalRecord'
|
301
|
301
|
import saveRecordTemplate from './components/saveRecordTemplate'
|
|
@@ -918,11 +918,15 @@
|
918
|
918
|
obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
|
919
|
919
|
obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
|
920
|
920
|
obj['project_name'] = project_month_prescriptions.project[a].project.project_name
|
|
921
|
+ obj['project'] = project_month_prescriptions.project[a].project
|
|
922
|
+
|
921
|
923
|
|
922
|
924
|
} else if (project_month_prescriptions.project[a].type == 3) {
|
923
|
925
|
obj['statistical_classification'] = ''
|
924
|
926
|
obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
|
925
|
927
|
obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
|
|
928
|
+ obj['good_info'] = project_month_prescriptions.project[a].good_info
|
|
929
|
+
|
926
|
930
|
|
927
|
931
|
}
|
928
|
932
|
|
|
@@ -1354,7 +1358,7 @@
|
1354
|
1358
|
id: prescription.advices[b].drug_id,
|
1355
|
1359
|
drug: prescription.advices[b].drug,
|
1356
|
1360
|
groupno: prescription.advices[b].groupno,
|
1357
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
|
1361
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
1358
|
1362
|
|
1359
|
1363
|
}
|
1360
|
1364
|
tempAdvice.push(obj)
|
|
@@ -1376,7 +1380,7 @@
|
1376
|
1380
|
remark: prescription.project[b].remark,
|
1377
|
1381
|
medical_code: prescription.project[b].project.medical_code,
|
1378
|
1382
|
unit: prescription.project[b].project.unit,
|
1379
|
|
- type: prescription.project[b].type,
|
|
1383
|
+ type: prescription.project[b].type
|
1380
|
1384
|
|
1381
|
1385
|
}
|
1382
|
1386
|
|
|
@@ -1384,11 +1388,14 @@
|
1384
|
1388
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
1385
|
1389
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
1386
|
1390
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
1391
|
+ obj['project'] = prescription.project[b].project
|
1387
|
1392
|
|
1388
|
1393
|
} else if (prescription.project[b].type == 3) {
|
1389
|
1394
|
obj['statistical_classification'] = ''
|
1390
|
1395
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1391
|
1396
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
1397
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1398
|
+
|
1392
|
1399
|
}
|
1393
|
1400
|
tempProject.push(obj)
|
1394
|
1401
|
}
|
|
@@ -1437,29 +1444,26 @@
|
1437
|
1444
|
|
1438
|
1445
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
1439
|
1446
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1440
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
1447
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
1441
|
1448
|
for (let b = 0; b < prescription.advices.length; b++) {
|
1442
|
1449
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
1443
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
1444
|
|
- prescription.advices.splice(b--,1)
|
|
1450
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
1451
|
+ prescription.advices.splice(b--, 1)
|
1445
|
1452
|
}
|
1446
|
1453
|
}
|
1447
|
1454
|
for (let b = 0; b < prescription.project.length; b++) {
|
1448
|
|
- if(prescription.project[b].type == 2){
|
1449
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
1450
|
|
- prescription.project.splice(b--,1)
|
|
1455
|
+ if (prescription.project[b].type == 2) {
|
|
1456
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
1457
|
+ prescription.project.splice(b--, 1)
|
1451
|
1458
|
}
|
1452
|
|
- }else if(prescription.project[b].type == 3){
|
1453
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
1454
|
|
- prescription.project.splice(b--,1)
|
|
1459
|
+ } else if (prescription.project[b].type == 3) {
|
|
1460
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
1461
|
+ prescription.project.splice(b--, 1)
|
1455
|
1462
|
}
|
1456
|
1463
|
}
|
1457
|
1464
|
}
|
1458
|
1465
|
}
|
1459
|
1466
|
|
1460
|
|
-
|
1461
|
|
-
|
1462
|
|
-
|
1463
|
1467
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1464
|
1468
|
var prescription = response.data.data.sch_prescriptions[i]
|
1465
|
1469
|
let tempAdvice = []
|
|
@@ -1485,8 +1489,7 @@
|
1485
|
1489
|
id: prescription.advices[b].drug_id,
|
1486
|
1490
|
drug: prescription.advices[b].drug,
|
1487
|
1491
|
groupno: index,
|
1488
|
|
- hosp_appr_flag:"1",
|
1489
|
|
-
|
|
1492
|
+ hosp_appr_flag: '1'
|
1490
|
1493
|
|
1491
|
1494
|
}
|
1492
|
1495
|
|
|
@@ -1531,7 +1534,9 @@
|
1531
|
1534
|
remark: prescription.project[b].remark,
|
1532
|
1535
|
medical_code: prescription.project[b].project.medical_code,
|
1533
|
1536
|
unit: prescription.project[b].project.unit,
|
1534
|
|
- type: prescription.project[b].type
|
|
1537
|
+ type: prescription.project[b].type,
|
|
1538
|
+
|
|
1539
|
+
|
1535
|
1540
|
|
1536
|
1541
|
}
|
1537
|
1542
|
|
|
@@ -1540,13 +1545,14 @@
|
1540
|
1545
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
1541
|
1546
|
obj['project_name'] = prescription.project[b].project.project_name
|
1542
|
1547
|
obj['price'] = prescription.project[b].project.price
|
|
1548
|
+ obj['project'] = prescription.project[b].project
|
1543
|
1549
|
|
1544
|
1550
|
} else if (prescription.project[b].type == 3) {
|
1545
|
1551
|
obj['statistical_classification'] = ''
|
1546
|
1552
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1547
|
1553
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
1548
|
1554
|
obj['price'] = prescription.project[b].good_info.packing_price
|
1549
|
|
-
|
|
1555
|
+ obj['good_info'] = prescription.project[b].good_info
|
1550
|
1556
|
}
|
1551
|
1557
|
tempProject.push(obj)
|
1552
|
1558
|
}
|
|
@@ -1737,8 +1743,7 @@
|
1737
|
1743
|
id: prescription.advices[b].drug_id,
|
1738
|
1744
|
drug: prescription.advices[b].drug,
|
1739
|
1745
|
groupno: prescription.advices[b].groupno,
|
1740
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
1741
|
|
-
|
|
1746
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
1742
|
1747
|
|
1743
|
1748
|
}
|
1744
|
1749
|
tempAdvice.push(obj)
|
|
@@ -1767,11 +1772,14 @@
|
1767
|
1772
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
1768
|
1773
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
1769
|
1774
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
1775
|
+ obj['project'] = prescription.project[b].project
|
1770
|
1776
|
|
1771
|
1777
|
} else if (prescription.project[b].type == 3) {
|
1772
|
1778
|
obj['statistical_classification'] = ''
|
1773
|
1779
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1774
|
1780
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
1781
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1782
|
+
|
1775
|
1783
|
}
|
1776
|
1784
|
tempProject.push(obj)
|
1777
|
1785
|
}
|
|
@@ -1821,27 +1829,26 @@
|
1821
|
1829
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
1822
|
1830
|
|
1823
|
1831
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1824
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
1832
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
1825
|
1833
|
for (let b = 0; b < prescription.advices.length; b++) {
|
1826
|
1834
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
1827
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
1828
|
|
- prescription.advices.splice(b--,1)
|
|
1835
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
1836
|
+ prescription.advices.splice(b--, 1)
|
1829
|
1837
|
}
|
1830
|
1838
|
}
|
1831
|
1839
|
for (let b = 0; b < prescription.project.length; b++) {
|
1832
|
|
- if(prescription.project[b].type == 2){
|
1833
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
1834
|
|
- prescription.project.splice(b--,1)
|
|
1840
|
+ if (prescription.project[b].type == 2) {
|
|
1841
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
1842
|
+ prescription.project.splice(b--, 1)
|
1835
|
1843
|
}
|
1836
|
|
- }else if(prescription.project[b].type == 3){
|
1837
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
1838
|
|
- prescription.project.splice(b--,1)
|
|
1844
|
+ } else if (prescription.project[b].type == 3) {
|
|
1845
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
1846
|
+ prescription.project.splice(b--, 1)
|
1839
|
1847
|
}
|
1840
|
1848
|
}
|
1841
|
1849
|
}
|
1842
|
1850
|
}
|
1843
|
1851
|
|
1844
|
|
-
|
1845
|
1852
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
1846
|
1853
|
var prescription = response.data.data.sch_prescriptions[i]
|
1847
|
1854
|
let tempAdvice = []
|
|
@@ -1867,8 +1874,7 @@
|
1867
|
1874
|
id: prescription.advices[b].drug_id,
|
1868
|
1875
|
drug: prescription.advices[b].drug,
|
1869
|
1876
|
groupno: index,
|
1870
|
|
- hosp_appr_flag: "1",
|
1871
|
|
-
|
|
1877
|
+ hosp_appr_flag: '1'
|
1872
|
1878
|
|
1873
|
1879
|
}
|
1874
|
1880
|
console.log('看看数据1:')
|
|
@@ -1922,12 +1928,16 @@
|
1922
|
1928
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
1923
|
1929
|
obj['project_name'] = prescription.project[b].project.project_name
|
1924
|
1930
|
obj['price'] = prescription.project[b].project.price
|
|
1931
|
+ obj['project'] = prescription.project[b].project
|
|
1932
|
+
|
1925
|
1933
|
|
1926
|
1934
|
} else if (prescription.project[b].type == 3) {
|
1927
|
1935
|
obj['statistical_classification'] = ''
|
1928
|
1936
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
1929
|
1937
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
1930
|
1938
|
obj['price'] = prescription.project[b].good_info.packing_price
|
|
1939
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
1940
|
+
|
1931
|
1941
|
|
1932
|
1942
|
}
|
1933
|
1943
|
tempProject.push(obj)
|
|
@@ -2216,8 +2226,7 @@
|
2216
|
2226
|
id: prescription.advices[b].drug_id,
|
2217
|
2227
|
drug: prescription.advices[b].drug,
|
2218
|
2228
|
groupno: prescription.advices[b].groupno,
|
2219
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
2220
|
|
-
|
|
2229
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
2221
|
2230
|
|
2222
|
2231
|
}
|
2223
|
2232
|
tempAdvice.push(obj)
|
|
@@ -2246,11 +2255,15 @@
|
2246
|
2255
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
2247
|
2256
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
2248
|
2257
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
2258
|
+ obj['project'] = prescription.project[b].project
|
|
2259
|
+
|
2249
|
2260
|
|
2250
|
2261
|
} else if (prescription.project[b].type == 3) {
|
2251
|
2262
|
obj['statistical_classification'] = ''
|
2252
|
2263
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
2253
|
2264
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
2265
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
2266
|
+
|
2254
|
2267
|
}
|
2255
|
2268
|
tempProject.push(obj)
|
2256
|
2269
|
}
|
|
@@ -2292,27 +2305,26 @@
|
2292
|
2305
|
|
2293
|
2306
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
2294
|
2307
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2295
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
2308
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
2296
|
2309
|
for (let b = 0; b < prescription.advices.length; b++) {
|
2297
|
2310
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
2298
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
2299
|
|
- prescription.advices.splice(b--,1)
|
|
2311
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
2312
|
+ prescription.advices.splice(b--, 1)
|
2300
|
2313
|
}
|
2301
|
2314
|
}
|
2302
|
2315
|
for (let b = 0; b < prescription.project.length; b++) {
|
2303
|
|
- if(prescription.project[b].type == 2){
|
2304
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
2305
|
|
- prescription.project.splice(b--,1)
|
|
2316
|
+ if (prescription.project[b].type == 2) {
|
|
2317
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
2318
|
+ prescription.project.splice(b--, 1)
|
2306
|
2319
|
}
|
2307
|
|
- }else if(prescription.project[b].type == 3){
|
2308
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
2309
|
|
- prescription.project.splice(b--,1)
|
|
2320
|
+ } else if (prescription.project[b].type == 3) {
|
|
2321
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
2322
|
+ prescription.project.splice(b--, 1)
|
2310
|
2323
|
}
|
2311
|
2324
|
}
|
2312
|
2325
|
}
|
2313
|
2326
|
}
|
2314
|
2327
|
|
2315
|
|
-
|
2316
|
2328
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2317
|
2329
|
var prescription = response.data.data.sch_prescriptions[i]
|
2318
|
2330
|
let tempAdvice = []
|
|
@@ -2338,9 +2350,7 @@
|
2338
|
2350
|
id: prescription.advices[b].drug_id,
|
2339
|
2351
|
drug: prescription.advices[b].drug,
|
2340
|
2352
|
groupno: index,
|
2341
|
|
- hosp_appr_flag: "1",
|
2342
|
|
-
|
2343
|
|
-
|
|
2353
|
+ hosp_appr_flag: '1'
|
2344
|
2354
|
|
2345
|
2355
|
}
|
2346
|
2356
|
console.log('看看数据2:')
|
|
@@ -2391,12 +2401,16 @@
|
2391
|
2401
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
2392
|
2402
|
obj['project_name'] = prescription.project[b].project.project_name
|
2393
|
2403
|
obj['price'] = prescription.project[b].project.price
|
|
2404
|
+ obj['project'] = prescription.project[b].project
|
|
2405
|
+
|
2394
|
2406
|
|
2395
|
2407
|
} else if (prescription.project[b].type == 3) {
|
2396
|
2408
|
obj['statistical_classification'] = ''
|
2397
|
2409
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
2398
|
2410
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
2399
|
2411
|
obj['price'] = prescription.project[b].good_info.packing_price
|
|
2412
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
2413
|
+
|
2400
|
2414
|
|
2401
|
2415
|
}
|
2402
|
2416
|
tempProject.push(obj)
|
|
@@ -2675,8 +2689,7 @@
|
2675
|
2689
|
id: prescription.advices[b].drug_id,
|
2676
|
2690
|
drug: prescription.advices[b].drug,
|
2677
|
2691
|
groupno: prescription.advices[b].groupno,
|
2678
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
2679
|
|
-
|
|
2692
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
2680
|
2693
|
|
2681
|
2694
|
}
|
2682
|
2695
|
tempAdvice.push(obj)
|
|
@@ -2705,11 +2718,15 @@
|
2705
|
2718
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
2706
|
2719
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
2707
|
2720
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
2721
|
+ obj['project'] = prescription.project[b].project
|
|
2722
|
+
|
2708
|
2723
|
|
2709
|
2724
|
} else if (prescription.project[b].type == 3) {
|
2710
|
2725
|
obj['statistical_classification'] = ''
|
2711
|
2726
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
2712
|
2727
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
2728
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
2729
|
+
|
2713
|
2730
|
}
|
2714
|
2731
|
tempProject.push(obj)
|
2715
|
2732
|
}
|
|
@@ -2751,27 +2768,26 @@
|
2751
|
2768
|
|
2752
|
2769
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
2753
|
2770
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2754
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
2771
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
2755
|
2772
|
for (let b = 0; b < prescription.advices.length; b++) {
|
2756
|
2773
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
2757
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
2758
|
|
- prescription.advices.splice(b--,1)
|
|
2774
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
2775
|
+ prescription.advices.splice(b--, 1)
|
2759
|
2776
|
}
|
2760
|
2777
|
}
|
2761
|
2778
|
for (let b = 0; b < prescription.project.length; b++) {
|
2762
|
|
- if(prescription.project[b].type == 2){
|
2763
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
2764
|
|
- prescription.project.splice(b--,1)
|
|
2779
|
+ if (prescription.project[b].type == 2) {
|
|
2780
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
2781
|
+ prescription.project.splice(b--, 1)
|
2765
|
2782
|
}
|
2766
|
|
- }else if(prescription.project[b].type == 3){
|
2767
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
2768
|
|
- prescription.project.splice(b--,1)
|
|
2783
|
+ } else if (prescription.project[b].type == 3) {
|
|
2784
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
2785
|
+ prescription.project.splice(b--, 1)
|
2769
|
2786
|
}
|
2770
|
2787
|
}
|
2771
|
2788
|
}
|
2772
|
2789
|
}
|
2773
|
2790
|
|
2774
|
|
-
|
2775
|
2791
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
2776
|
2792
|
var prescription = response.data.data.sch_prescriptions[i]
|
2777
|
2793
|
let tempAdvice = []
|
|
@@ -2797,7 +2813,7 @@
|
2797
|
2813
|
id: prescription.advices[b].drug_id,
|
2798
|
2814
|
drug: prescription.advices[b].drug,
|
2799
|
2815
|
groupno: index,
|
2800
|
|
- hosp_appr_flag: "1",
|
|
2816
|
+ hosp_appr_flag: '1'
|
2801
|
2817
|
|
2802
|
2818
|
}
|
2803
|
2819
|
console.log('看看数据3:')
|
|
@@ -2848,12 +2864,16 @@
|
2848
|
2864
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
2849
|
2865
|
obj['project_name'] = prescription.project[b].project.project_name
|
2850
|
2866
|
obj['price'] = prescription.project[b].project.price
|
|
2867
|
+ obj['project'] = prescription.project[b].project
|
|
2868
|
+
|
2851
|
2869
|
|
2852
|
2870
|
} else if (prescription.project[b].type == 3) {
|
2853
|
2871
|
obj['statistical_classification'] = ''
|
2854
|
2872
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
2855
|
2873
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
2856
|
2874
|
obj['price'] = prescription.project[b].good_info.packing_price
|
|
2875
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
2876
|
+
|
2857
|
2877
|
|
2858
|
2878
|
}
|
2859
|
2879
|
tempProject.push(obj)
|
|
@@ -3030,7 +3050,6 @@
|
3030
|
3050
|
}
|
3031
|
3051
|
} else {
|
3032
|
3052
|
|
3033
|
|
-
|
3034
|
3053
|
var nowDate = new Date()
|
3035
|
3054
|
var nowYear = nowDate.getFullYear()
|
3036
|
3055
|
var nowMonth = nowDate.getMonth() + 1
|
|
@@ -3095,8 +3114,7 @@
|
3095
|
3114
|
'p_type': 2
|
3096
|
3115
|
}
|
3097
|
3116
|
|
3098
|
|
-
|
3099
|
|
- if(this.current_tab == "day"){
|
|
3117
|
+ if (this.current_tab == 'day') {
|
3100
|
3118
|
|
3101
|
3119
|
getPatientInfo(params).then(response => {
|
3102
|
3120
|
if (response.data.state == 0) {
|
|
@@ -3194,8 +3212,7 @@
|
3194
|
3212
|
id: prescription.advices[b].drug_id,
|
3195
|
3213
|
drug: prescription.advices[b].drug,
|
3196
|
3214
|
groupno: prescription.advices[b].groupno,
|
3197
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
3198
|
|
-
|
|
3215
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
3199
|
3216
|
|
3200
|
3217
|
}
|
3201
|
3218
|
tempAdvice.push(obj)
|
|
@@ -3224,11 +3241,15 @@
|
3224
|
3241
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
3225
|
3242
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
3226
|
3243
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
3244
|
+ obj['project'] = prescription.project[b].project
|
|
3245
|
+
|
3227
|
3246
|
|
3228
|
3247
|
} else if (prescription.project[b].type == 3) {
|
3229
|
3248
|
obj['statistical_classification'] = ''
|
3230
|
3249
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
3231
|
3250
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
3251
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
3252
|
+
|
3232
|
3253
|
}
|
3233
|
3254
|
tempProject.push(obj)
|
3234
|
3255
|
}
|
|
@@ -3277,27 +3298,26 @@
|
3277
|
3298
|
|
3278
|
3299
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
3279
|
3300
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3280
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
3301
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
3281
|
3302
|
for (let b = 0; b < prescription.advices.length; b++) {
|
3282
|
3303
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
3283
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
3284
|
|
- prescription.advices.splice(b--,1)
|
|
3304
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
3305
|
+ prescription.advices.splice(b--, 1)
|
3285
|
3306
|
}
|
3286
|
3307
|
}
|
3287
|
3308
|
for (let b = 0; b < prescription.project.length; b++) {
|
3288
|
|
- if(prescription.project[b].type == 2){
|
3289
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
3290
|
|
- prescription.project.splice(b--,1)
|
|
3309
|
+ if (prescription.project[b].type == 2) {
|
|
3310
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
3311
|
+ prescription.project.splice(b--, 1)
|
3291
|
3312
|
}
|
3292
|
|
- }else if(prescription.project[b].type == 3){
|
3293
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
3294
|
|
- prescription.project.splice(b--,1)
|
|
3313
|
+ } else if (prescription.project[b].type == 3) {
|
|
3314
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
3315
|
+ prescription.project.splice(b--, 1)
|
3295
|
3316
|
}
|
3296
|
3317
|
}
|
3297
|
3318
|
}
|
3298
|
3319
|
}
|
3299
|
3320
|
|
3300
|
|
-
|
3301
|
3321
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3302
|
3322
|
var prescription = response.data.data.sch_prescriptions[i]
|
3303
|
3323
|
let tempAdvice = []
|
|
@@ -3323,7 +3343,7 @@
|
3323
|
3343
|
id: prescription.advices[b].drug_id,
|
3324
|
3344
|
drug: prescription.advices[b].drug,
|
3325
|
3345
|
groupno: index,
|
3326
|
|
- hosp_appr_flag: "1",
|
|
3346
|
+ hosp_appr_flag: '1'
|
3327
|
3347
|
|
3328
|
3348
|
}
|
3329
|
3349
|
console.log('看看数据4:')
|
|
@@ -3374,12 +3394,16 @@
|
3374
|
3394
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
3375
|
3395
|
obj['project_name'] = prescription.project[b].project.project_name
|
3376
|
3396
|
obj['price'] = prescription.project[b].project.price
|
|
3397
|
+ obj['project'] = prescription.project[b].project
|
|
3398
|
+
|
3377
|
3399
|
|
3378
|
3400
|
} else if (prescription.project[b].type == 3) {
|
3379
|
3401
|
obj['statistical_classification'] = ''
|
3380
|
3402
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
3381
|
3403
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
3382
|
3404
|
obj['price'] = prescription.project[b].good_info.packing_price
|
|
3405
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
3406
|
+
|
3383
|
3407
|
|
3384
|
3408
|
}
|
3385
|
3409
|
tempProject.push(obj)
|
|
@@ -3562,7 +3586,7 @@
|
3562
|
3586
|
}
|
3563
|
3587
|
})
|
3564
|
3588
|
|
3565
|
|
- }else{
|
|
3589
|
+ } else {
|
3566
|
3590
|
|
3567
|
3591
|
getMonthHisPateintInfo(params).then(response => {
|
3568
|
3592
|
if (response.data.state == 0) {
|
|
@@ -3648,7 +3672,7 @@
|
3648
|
3672
|
'end_time': moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
|
3649
|
3673
|
'p_type': 2
|
3650
|
3674
|
}
|
3651
|
|
- if(this.current_tab == "day") {
|
|
3675
|
+ if (this.current_tab == 'day') {
|
3652
|
3676
|
|
3653
|
3677
|
getPatientInfo(params).then(response => {
|
3654
|
3678
|
if (response.data.state == 0) {
|
|
@@ -3741,8 +3765,7 @@
|
3741
|
3765
|
id: prescription.advices[b].drug_id,
|
3742
|
3766
|
drug: prescription.advices[b].drug,
|
3743
|
3767
|
groupno: prescription.advices[b].groupno,
|
3744
|
|
- hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
|
3745
|
|
-
|
|
3768
|
+ hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
|
3746
|
3769
|
|
3747
|
3770
|
}
|
3748
|
3771
|
tempAdvice.push(obj)
|
|
@@ -3771,11 +3794,15 @@
|
3771
|
3794
|
obj['statistical_classification'] = prescription.project[b].project.statistical_classification
|
3772
|
3795
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
3773
|
3796
|
obj['project_name'] = prescription.project[b].project.project_name
|
|
3797
|
+ obj['project'] = prescription.project[b].project
|
|
3798
|
+
|
3774
|
3799
|
|
3775
|
3800
|
} else if (prescription.project[b].type == 3) {
|
3776
|
3801
|
obj['statistical_classification'] = ''
|
3777
|
3802
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
3778
|
3803
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
|
3804
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
3805
|
+
|
3779
|
3806
|
}
|
3780
|
3807
|
tempProject.push(obj)
|
3781
|
3808
|
}
|
|
@@ -3824,27 +3851,26 @@
|
3824
|
3851
|
|
3825
|
3852
|
if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
|
3826
|
3853
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3827
|
|
- var prescription = response.data.data.sch_prescriptions[i];
|
|
3854
|
+ var prescription = response.data.data.sch_prescriptions[i]
|
3828
|
3855
|
for (let b = 0; b < prescription.advices.length; b++) {
|
3829
|
3856
|
console.log(prescription.advices[b].drug.is_special_diseases)
|
3830
|
|
- if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
|
3831
|
|
- prescription.advices.splice(b--,1)
|
|
3857
|
+ if (prescription.med_type == '14' && prescription.advices[b].drug.is_special_diseases != 1) {
|
|
3858
|
+ prescription.advices.splice(b--, 1)
|
3832
|
3859
|
}
|
3833
|
3860
|
}
|
3834
|
3861
|
for (let b = 0; b < prescription.project.length; b++) {
|
3835
|
|
- if(prescription.project[b].type == 2){
|
3836
|
|
- if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
|
3837
|
|
- prescription.project.splice(b--,1)
|
|
3862
|
+ if (prescription.project[b].type == 2) {
|
|
3863
|
+ if (prescription.med_type == '14' && prescription.project[b].project.disease_directory != 1) {
|
|
3864
|
+ prescription.project.splice(b--, 1)
|
3838
|
3865
|
}
|
3839
|
|
- }else if(prescription.project[b].type == 3){
|
3840
|
|
- if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
|
3841
|
|
- prescription.project.splice(b--,1)
|
|
3866
|
+ } else if (prescription.project[b].type == 3) {
|
|
3867
|
+ if (prescription.med_type == '14' && prescription.project[b].good_info.is_special_diseases != 1) {
|
|
3868
|
+ prescription.project.splice(b--, 1)
|
3842
|
3869
|
}
|
3843
|
3870
|
}
|
3844
|
3871
|
}
|
3845
|
3872
|
}
|
3846
|
3873
|
|
3847
|
|
-
|
3848
|
3874
|
for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
|
3849
|
3875
|
var prescription = response.data.data.sch_prescriptions[i]
|
3850
|
3876
|
let tempAdvice = []
|
|
@@ -3870,7 +3896,7 @@
|
3870
|
3896
|
id: prescription.advices[b].drug_id,
|
3871
|
3897
|
drug: prescription.advices[b].drug,
|
3872
|
3898
|
groupno: index,
|
3873
|
|
- hosp_appr_flag: "1",
|
|
3899
|
+ hosp_appr_flag: '1'
|
3874
|
3900
|
|
3875
|
3901
|
}
|
3876
|
3902
|
console.log('看看数据5:')
|
|
@@ -3921,12 +3947,16 @@
|
3921
|
3947
|
obj['medical_code'] = prescription.project[b].project.medical_code
|
3922
|
3948
|
obj['project_name'] = prescription.project[b].project.project_name
|
3923
|
3949
|
obj['price'] = prescription.project[b].project.price
|
|
3950
|
+ obj['project'] = prescription.project[b].project
|
|
3951
|
+
|
3924
|
3952
|
|
3925
|
3953
|
} else if (prescription.project[b].type == 3) {
|
3926
|
3954
|
obj['statistical_classification'] = ''
|
3927
|
3955
|
obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
|
3928
|
3956
|
obj['project_name'] = prescription.project[b].good_info.good_name
|
3929
|
3957
|
obj['price'] = prescription.project[b].good_info.packing_price
|
|
3958
|
+ obj['good_info'] = prescription.project[b].good_info
|
|
3959
|
+
|
3930
|
3960
|
|
3931
|
3961
|
}
|
3932
|
3962
|
tempProject.push(obj)
|
|
@@ -3991,7 +4021,7 @@
|
3991
|
4021
|
this.$refs.prescriptions.setData(this.prescriptions, this.info, this.admin_info, this.doctors, this.department, this.hisPatientInfo, this.month_prescriptions, this.last_info)
|
3992
|
4022
|
}
|
3993
|
4023
|
})
|
3994
|
|
- }else{
|
|
4024
|
+ } else {
|
3995
|
4025
|
|
3996
|
4026
|
getMonthHisPateintInfo(params).then(response => {
|
3997
|
4027
|
if (response.data.state == 0) {
|
|
@@ -4064,7 +4094,6 @@
|
4064
|
4094
|
}
|
4065
|
4095
|
})
|
4066
|
4096
|
|
4067
|
|
-
|
4068
|
4097
|
}
|
4069
|
4098
|
|
4070
|
4099
|
}
|