|
@@ -1016,8 +1016,11 @@
|
1016
|
1016
|
type: 'success',
|
1017
|
1017
|
duration: 2000
|
1018
|
1018
|
})
|
|
1019
|
+ var date = new Date()
|
|
1020
|
+
|
|
1021
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1022
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
1019
|
1023
|
|
1020
|
|
- console.log(hour + ':' + minute)
|
1021
|
1024
|
const params = {
|
1022
|
1025
|
advices: results,
|
1023
|
1026
|
advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
@@ -1067,6 +1070,10 @@
|
1067
|
1070
|
duration: 2000
|
1068
|
1071
|
})
|
1069
|
1072
|
console.log(hour + ':' + minute)
|
|
1073
|
+ var date = new Date()
|
|
1074
|
+
|
|
1075
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1076
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
1070
|
1077
|
|
1071
|
1078
|
const params = {
|
1072
|
1079
|
advices: results,
|
|
@@ -1323,25 +1330,13 @@
|
1323
|
1330
|
})
|
1324
|
1331
|
}
|
1325
|
1332
|
} else if (this.is_open == 2) {
|
|
1333
|
+ var date = new Date()
|
|
1334
|
+
|
|
1335
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1336
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
|
1337
|
+
|
1326
|
1338
|
if (this.waitUploadAdvices.length > 0) {
|
1327
|
|
- const params = {
|
1328
|
|
- advices: this.waitUploadAdvices,
|
1329
|
|
- advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1330
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1331
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1332
|
|
- parent_id: this.patient_id,
|
1333
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1334
|
|
- remark: ''
|
1335
|
|
- }
|
1336
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1337
|
|
- var resp = rs.data
|
1338
|
|
- if (resp.state == 1) {
|
1339
|
|
- // this.doctorAdvices = resp.data.advices
|
1340
|
|
- this.$emit('advice')
|
1341
|
|
- } else {
|
1342
|
1339
|
|
1343
|
|
- }
|
1344
|
|
- })
|
1345
|
1340
|
|
1346
|
1341
|
if (this.patient.id <= 0) {
|
1347
|
1342
|
this.$message.error('没有选择患者')
|
|
@@ -1366,6 +1361,27 @@
|
1366
|
1361
|
duration: 2000
|
1367
|
1362
|
})
|
1368
|
1363
|
|
|
1364
|
+ const params = {
|
|
1365
|
+ advices: this.waitUploadAdvices,
|
|
1366
|
+ advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1367
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1368
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1369
|
+ parent_id: this.patient_id,
|
|
1370
|
+ // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1371
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
1372
|
+
|
|
1373
|
+ remark: ''
|
|
1374
|
+ }
|
|
1375
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1376
|
+ var resp = rs.data
|
|
1377
|
+ if (resp.state == 1) {
|
|
1378
|
+ // this.doctorAdvices = resp.data.advices
|
|
1379
|
+ this.$emit('advice')
|
|
1380
|
+ } else {
|
|
1381
|
+
|
|
1382
|
+ }
|
|
1383
|
+ })
|
|
1384
|
+
|
1369
|
1385
|
const prescription_resp = response.data.data.prescription
|
1370
|
1386
|
var prescription = this.prescription
|
1371
|
1387
|
for (var index in prescription_resp) {
|
|
@@ -1491,25 +1507,12 @@
|
1491
|
1507
|
})
|
1492
|
1508
|
}
|
1493
|
1509
|
} else if (this.is_open == 2) {
|
1494
|
|
- if (this.waitUploadAdvices.length > 0) {
|
1495
|
|
- const params = {
|
1496
|
|
- advices: this.waitUploadAdvices,
|
1497
|
|
- advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1498
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1499
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1500
|
|
- parent_id: this.patient_id,
|
1501
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1502
|
|
- remark: ''
|
1503
|
|
- }
|
1504
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1505
|
|
- var resp = rs.data
|
1506
|
|
- if (resp.state == 1) {
|
1507
|
|
- // this.doctorAdvices = resp.data.advices
|
1508
|
|
- this.$emit('advice')
|
1509
|
|
- } else {
|
|
1510
|
+ var date = new Date()
|
1510
|
1511
|
|
1511
|
|
- }
|
1512
|
|
- })
|
|
1512
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1513
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
|
1514
|
+
|
|
1515
|
+ if (this.waitUploadAdvices.length > 0) {
|
1513
|
1516
|
|
1514
|
1517
|
if (this.patient.id <= 0) {
|
1515
|
1518
|
this.$message.error('没有选择患者')
|
|
@@ -1534,6 +1537,28 @@
|
1534
|
1537
|
duration: 2000
|
1535
|
1538
|
})
|
1536
|
1539
|
|
|
1540
|
+ const params = {
|
|
1541
|
+ advices: this.waitUploadAdvices,
|
|
1542
|
+ advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1543
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1544
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1545
|
+ parent_id: this.patient_id,
|
|
1546
|
+ // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1547
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
1548
|
+
|
|
1549
|
+ remark: ''
|
|
1550
|
+ }
|
|
1551
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1552
|
+ var resp = rs.data
|
|
1553
|
+ if (resp.state == 1) {
|
|
1554
|
+ // this.doctorAdvices = resp.data.advices
|
|
1555
|
+ this.$emit('advice')
|
|
1556
|
+ } else {
|
|
1557
|
+
|
|
1558
|
+ }
|
|
1559
|
+ })
|
|
1560
|
+
|
|
1561
|
+
|
1537
|
1562
|
const prescription_resp = response.data.data.prescription
|
1538
|
1563
|
var prescription = this.prescription
|
1539
|
1564
|
for (var index in prescription_resp) {
|
|
@@ -1720,25 +1745,13 @@
|
1720
|
1745
|
})
|
1721
|
1746
|
}
|
1722
|
1747
|
} else if (this.is_open == 2) {
|
|
1748
|
+ var date = new Date()
|
|
1749
|
+
|
|
1750
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1751
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
|
1752
|
+
|
1723
|
1753
|
if (this.waitUploadAdvices.length > 0) {
|
1724
|
|
- const params = {
|
1725
|
|
- advices: this.waitUploadAdvices,
|
1726
|
|
- advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1727
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1728
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1729
|
|
- parent_id: this.patient_id,
|
1730
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1731
|
|
- remark: ''
|
1732
|
|
- }
|
1733
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1734
|
|
- var resp = rs.data
|
1735
|
|
- if (resp.state == 1) {
|
1736
|
|
- // this.doctorAdvices = resp.data.advices
|
1737
|
|
- this.$emit('advice')
|
1738
|
|
- } else {
|
1739
|
1754
|
|
1740
|
|
- }
|
1741
|
|
- })
|
1742
|
1755
|
|
1743
|
1756
|
if (this.patient.id <= 0) {
|
1744
|
1757
|
this.$message.error('没有选择患者')
|
|
@@ -1765,6 +1778,26 @@
|
1765
|
1778
|
type: 'success',
|
1766
|
1779
|
duration: 2000
|
1767
|
1780
|
})
|
|
1781
|
+ const params = {
|
|
1782
|
+ advices: this.waitUploadAdvices,
|
|
1783
|
+ advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1784
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1785
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1786
|
+ parent_id: this.patient_id,
|
|
1787
|
+ // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1788
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
1789
|
+
|
|
1790
|
+ remark: ''
|
|
1791
|
+ }
|
|
1792
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1793
|
+ var resp = rs.data
|
|
1794
|
+ if (resp.state == 1) {
|
|
1795
|
+ // this.doctorAdvices = resp.data.advices
|
|
1796
|
+ this.$emit('advice')
|
|
1797
|
+ } else {
|
|
1798
|
+
|
|
1799
|
+ }
|
|
1800
|
+ })
|
1768
|
1801
|
|
1769
|
1802
|
const prescription_resp = response.data.data.prescription
|
1770
|
1803
|
var prescription = this.prescription
|
|
@@ -1900,25 +1933,13 @@
|
1900
|
1933
|
})
|
1901
|
1934
|
}
|
1902
|
1935
|
} else if (this.is_open == 2) {
|
|
1936
|
+ var date = new Date()
|
|
1937
|
+
|
|
1938
|
+ var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
|
|
1939
|
+ var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
|
|
1940
|
+
|
1903
|
1941
|
if (this.waitUploadAdvices.length > 0) {
|
1904
|
|
- const params = {
|
1905
|
|
- advices: this.waitUploadAdvices,
|
1906
|
|
- advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
1907
|
|
- advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
1908
|
|
- advice_type: this.waitUploadAdvices[0].advice_type,
|
1909
|
|
- parent_id: this.patient_id,
|
1910
|
|
- start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
|
1911
|
|
- remark: ''
|
1912
|
|
- }
|
1913
|
|
- CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
1914
|
|
- var resp = rs.data
|
1915
|
|
- if (resp.state == 1) {
|
1916
|
|
- // this.doctorAdvices = resp.data.advices
|
1917
|
|
- this.$emit('advice')
|
1918
|
|
- } else {
|
1919
|
1942
|
|
1920
|
|
- }
|
1921
|
|
- })
|
1922
|
1943
|
|
1923
|
1944
|
if (this.patient.id <= 0) {
|
1924
|
1945
|
this.$message.error('没有选择患者')
|
|
@@ -1941,6 +1962,26 @@
|
1941
|
1962
|
type: 'success',
|
1942
|
1963
|
duration: 2000
|
1943
|
1964
|
})
|
|
1965
|
+ const params = {
|
|
1966
|
+ advices: this.waitUploadAdvices,
|
|
1967
|
+ advice_date: uParseTime(this.$route.query.date, '{y}-{m}-{d}'),
|
|
1968
|
+ advice_doctor: this.waitUploadAdvices[0].advice_doctor,
|
|
1969
|
+ advice_type: this.waitUploadAdvices[0].advice_type,
|
|
1970
|
+ parent_id: this.patient_id,
|
|
1971
|
+ // start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d} {h}{i}'),
|
|
1972
|
+ start_time: uParseTime(this.$route.query.date, '{y}-{m}-{d}') + ' ' + hour + ':' + minute,
|
|
1973
|
+
|
|
1974
|
+ remark: ''
|
|
1975
|
+ }
|
|
1976
|
+ CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(rs => {
|
|
1977
|
+ var resp = rs.data
|
|
1978
|
+ if (resp.state == 1) {
|
|
1979
|
+ // this.doctorAdvices = resp.data.advices
|
|
1980
|
+ this.$emit('advice')
|
|
1981
|
+ } else {
|
|
1982
|
+
|
|
1983
|
+ }
|
|
1984
|
+ })
|
1944
|
1985
|
const prescription_resp = response.data.data.prescription
|
1945
|
1986
|
const solution_resp = response.data.data.solution
|
1946
|
1987
|
var prescription = this.prescription
|