|
@@ -562,6 +562,9 @@
|
562
|
562
|
return new Array()
|
563
|
563
|
}
|
564
|
564
|
},
|
|
565
|
+ system_prescription:{
|
|
566
|
+ type: Object
|
|
567
|
+ },
|
565
|
568
|
predialysis: {
|
566
|
569
|
type: Object
|
567
|
570
|
},
|
|
@@ -1074,7 +1077,10 @@
|
1074
|
1077
|
|
1075
|
1078
|
this.finish()
|
1076
|
1079
|
}
|
1077
|
|
- })
|
|
1080
|
+ }).catch(error => {
|
|
1081
|
+ Toast.fail("请求失败")
|
|
1082
|
+
|
|
1083
|
+ });
|
1078
|
1084
|
|
1079
|
1085
|
} else if (this.is_pre == 2) {
|
1080
|
1086
|
Toast.loading({forbidClick: true, duration: 0})
|
|
@@ -1130,7 +1136,9 @@
|
1130
|
1136
|
})
|
1131
|
1137
|
this.finish()
|
1132
|
1138
|
}
|
1133
|
|
- })
|
|
1139
|
+ }).catch(error => {
|
|
1140
|
+ Toast.fail("请求失败")
|
|
1141
|
+ });
|
1134
|
1142
|
}
|
1135
|
1143
|
} else {
|
1136
|
1144
|
if (this.is_pre == 1) {
|
|
@@ -1165,7 +1173,9 @@
|
1165
|
1173
|
this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
|
1166
|
1174
|
this.finish()
|
1167
|
1175
|
}
|
1168
|
|
- })
|
|
1176
|
+ }).catch(error => {
|
|
1177
|
+ Toast.fail("请求失败")
|
|
1178
|
+ });
|
1169
|
1179
|
}
|
1170
|
1180
|
|
1171
|
1181
|
}
|
|
@@ -1205,6 +1215,14 @@
|
1205
|
1215
|
this.dialysisPrescription[key] = response.data.data.prescription[key]
|
1206
|
1216
|
}
|
1207
|
1217
|
}
|
|
1218
|
+ } else if(response.data.data.system_prescription != null){
|
|
1219
|
+
|
|
1220
|
+ for (const key in response.data.data.system_prescription) {
|
|
1221
|
+ if (key != 'target_ultrafiltration') {
|
|
1222
|
+ this.dialysisPrescription[key] = response.data.data.system_prescription[key]
|
|
1223
|
+ }
|
|
1224
|
+ }
|
|
1225
|
+
|
1208
|
1226
|
} else {
|
1209
|
1227
|
for (const key in this.dialysisPrescription) { //临时处方为空
|
1210
|
1228
|
if (key != 'target_ultrafiltration') {
|
|
@@ -1228,7 +1246,9 @@
|
1228
|
1246
|
this.timeValue = this.dialysisPrescription.dialysis_duration_hour + '小时' + this.dialysisPrescription.dialysis_duration_minute + '分钟'
|
1229
|
1247
|
this.time = (this.dialysisPrescription.dialysis_duration_hour > 10 ? this.dialysisPrescription.dialysis_duration_hour : '0' + this.dialysisPrescription.dialysis_duration_hour) + ':' + (this.dialysisPrescription.dialysis_duration_minute > 10 ? this.dialysisPrescription.dialysis_duration_minute : '0' + this.dialysisPrescription.dialysis_duration_minute)
|
1230
|
1248
|
}
|
1231
|
|
- })
|
|
1249
|
+ }).catch(error => {
|
|
1250
|
+ Toast.fail("请求失败")
|
|
1251
|
+ });
|
1232
|
1252
|
break
|
1233
|
1253
|
case 2:
|
1234
|
1254
|
this.dialysisPrescription.dialyzer = val.selectId
|
|
@@ -1384,7 +1404,9 @@
|
1384
|
1404
|
this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
|
1385
|
1405
|
this.finish()
|
1386
|
1406
|
}
|
1387
|
|
- })
|
|
1407
|
+ }).catch(error => {
|
|
1408
|
+ Toast.fail("请求失败")
|
|
1409
|
+ });
|
1388
|
1410
|
} else if (this.is_open == 1) {
|
1389
|
1411
|
|
1390
|
1412
|
if (this.targetAdvices.length > 0) {
|
|
@@ -1413,7 +1435,9 @@
|
1413
|
1435
|
this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
|
1414
|
1436
|
this.finish()
|
1415
|
1437
|
}
|
1416
|
|
- })
|
|
1438
|
+ }).catch(error => {
|
|
1439
|
+ Toast.fail("请求失败")
|
|
1440
|
+ });
|
1417
|
1441
|
}
|
1418
|
1442
|
|
1419
|
1443
|
} else if (this.is_open == 2) {
|
|
@@ -1471,7 +1495,9 @@
|
1471
|
1495
|
|
1472
|
1496
|
this.finish()
|
1473
|
1497
|
}
|
1474
|
|
- })
|
|
1498
|
+ }).catch(error => {
|
|
1499
|
+ Toast.fail("请求失败")
|
|
1500
|
+ });
|
1475
|
1501
|
} else {
|
1476
|
1502
|
Toast.loading({forbidClick: true, duration: 0})
|
1477
|
1503
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -1488,7 +1514,9 @@
|
1488
|
1514
|
this.$emit('prescription', response.data.data.prescription, this.doctorAdvices)
|
1489
|
1515
|
this.finish()
|
1490
|
1516
|
}
|
1491
|
|
- })
|
|
1517
|
+ }).catch(error => {
|
|
1518
|
+ Toast.fail("请求失败")
|
|
1519
|
+ });
|
1492
|
1520
|
}
|
1493
|
1521
|
|
1494
|
1522
|
}
|
|
@@ -1512,7 +1540,9 @@
|
1512
|
1540
|
this.finish()
|
1513
|
1541
|
|
1514
|
1542
|
}
|
1515
|
|
- })
|
|
1543
|
+ }).catch(error => {
|
|
1544
|
+ Toast.fail("请求失败")
|
|
1545
|
+ });
|
1516
|
1546
|
|
1517
|
1547
|
} else if (this.is_open == 1) {
|
1518
|
1548
|
if (this.targetAdvices.length > 0) {
|
|
@@ -1544,7 +1574,9 @@
|
1544
|
1574
|
this.finish()
|
1545
|
1575
|
|
1546
|
1576
|
}
|
1547
|
|
- })
|
|
1577
|
+ }).catch(error => {
|
|
1578
|
+ Toast.fail("请求失败")
|
|
1579
|
+ });
|
1548
|
1580
|
|
1549
|
1581
|
}
|
1550
|
1582
|
|
|
@@ -1609,7 +1641,9 @@
|
1609
|
1641
|
this.finish()
|
1610
|
1642
|
|
1611
|
1643
|
}
|
1612
|
|
- })
|
|
1644
|
+ }).catch(error => {
|
|
1645
|
+ Toast.fail("请求失败")
|
|
1646
|
+ });
|
1613
|
1647
|
} else {
|
1614
|
1648
|
Toast.loading({forbidClick: true, duration: 0})
|
1615
|
1649
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -1626,7 +1660,9 @@
|
1626
|
1660
|
this.finish()
|
1627
|
1661
|
|
1628
|
1662
|
}
|
1629
|
|
- })
|
|
1663
|
+ }).catch(error => {
|
|
1664
|
+ Toast.fail("请求失败")
|
|
1665
|
+ });
|
1630
|
1666
|
|
1631
|
1667
|
}
|
1632
|
1668
|
}
|
|
@@ -1646,7 +1682,9 @@
|
1646
|
1682
|
this.finish()
|
1647
|
1683
|
|
1648
|
1684
|
}
|
1649
|
|
- })
|
|
1685
|
+ }).catch(error => {
|
|
1686
|
+ Toast.fail("请求失败")
|
|
1687
|
+ });
|
1650
|
1688
|
|
1651
|
1689
|
}
|
1652
|
1690
|
|
|
@@ -1715,7 +1753,9 @@
|
1715
|
1753
|
this.finish()
|
1716
|
1754
|
|
1717
|
1755
|
}
|
1718
|
|
- })
|
|
1756
|
+ }).catch(error => {
|
|
1757
|
+ Toast.fail("请求失败")
|
|
1758
|
+ });
|
1719
|
1759
|
|
1720
|
1760
|
}
|
1721
|
1761
|
|
|
@@ -1780,7 +1820,9 @@
|
1780
|
1820
|
this.finish()
|
1781
|
1821
|
|
1782
|
1822
|
}
|
1783
|
|
- })
|
|
1823
|
+ }).catch(error => {
|
|
1824
|
+ Toast.fail("请求失败")
|
|
1825
|
+ });
|
1784
|
1826
|
} else {
|
1785
|
1827
|
Toast.loading({forbidClick: true, duration: 0})
|
1786
|
1828
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -1799,7 +1841,9 @@
|
1799
|
1841
|
this.finish()
|
1800
|
1842
|
|
1801
|
1843
|
}
|
1802
|
|
- })
|
|
1844
|
+ }).catch(error => {
|
|
1845
|
+ Toast.fail("请求失败")
|
|
1846
|
+ });
|
1803
|
1847
|
}
|
1804
|
1848
|
|
1805
|
1849
|
}
|
|
@@ -1823,7 +1867,9 @@
|
1823
|
1867
|
this.finish()
|
1824
|
1868
|
|
1825
|
1869
|
}
|
1826
|
|
- })
|
|
1870
|
+ }).catch(error => {
|
|
1871
|
+ Toast.fail("请求失败")
|
|
1872
|
+ });
|
1827
|
1873
|
|
1828
|
1874
|
} else if (this.is_open == 1) {
|
1829
|
1875
|
if (this.targetAdvices.length > 0) {
|
|
@@ -1857,7 +1903,9 @@
|
1857
|
1903
|
this.finish()
|
1858
|
1904
|
|
1859
|
1905
|
}
|
1860
|
|
- })
|
|
1906
|
+ }).catch(error => {
|
|
1907
|
+ Toast.fail("请求失败")
|
|
1908
|
+ });
|
1861
|
1909
|
|
1862
|
1910
|
}
|
1863
|
1911
|
|
|
@@ -1921,7 +1969,9 @@
|
1921
|
1969
|
this.finish()
|
1922
|
1970
|
|
1923
|
1971
|
}
|
1924
|
|
- })
|
|
1972
|
+ }).catch(error => {
|
|
1973
|
+ Toast.fail("请求失败")
|
|
1974
|
+ });
|
1925
|
1975
|
} else {
|
1926
|
1976
|
Toast.loading({forbidClick: true, duration: 0})
|
1927
|
1977
|
let ParamsQuery = this.dialysisPrescription
|
|
@@ -1938,7 +1988,9 @@
|
1938
|
1988
|
this.$emit('prescription', response.data.data.prescription)
|
1939
|
1989
|
this.finish()
|
1940
|
1990
|
}
|
1941
|
|
- })
|
|
1991
|
+ }).catch(error => {
|
|
1992
|
+ Toast.fail("请求失败")
|
|
1993
|
+ });
|
1942
|
1994
|
}
|
1943
|
1995
|
}
|
1944
|
1996
|
} else {
|
|
@@ -1958,7 +2010,9 @@
|
1958
|
2010
|
this.finish()
|
1959
|
2011
|
|
1960
|
2012
|
}
|
1961
|
|
- })
|
|
2013
|
+ }).catch(error => {
|
|
2014
|
+ Toast.fail("请求失败")
|
|
2015
|
+ });
|
1962
|
2016
|
|
1963
|
2017
|
}
|
1964
|
2018
|
|
|
@@ -1999,7 +2053,9 @@
|
1999
|
2053
|
}
|
2000
|
2054
|
Toast.success('签名成功')
|
2001
|
2055
|
}
|
2002
|
|
- })
|
|
2056
|
+ }).catch(error => {
|
|
2057
|
+ Toast.fail("请求失败")
|
|
2058
|
+ });
|
2003
|
2059
|
}, getBodyFluid: function (val) {
|
2004
|
2060
|
let body_fluid_name = ''
|
2005
|
2061
|
let body_fluid = this.bodyFluidOptions
|
|
@@ -2154,9 +2210,17 @@
|
2154
|
2210
|
this.dialysisPrescription[key] = this.last_prescription[key]
|
2155
|
2211
|
}
|
2156
|
2212
|
}
|
2157
|
|
- } else {
|
|
2213
|
+ } else if(this.system_prescription != null && typeof this.system_prescription.id != 'undefined' && this.system_prescription.id){
|
|
2214
|
+ for (const key in this.system_prescription) {
|
|
2215
|
+ if (key != "target_ultrafiltration") {
|
|
2216
|
+ this.dialysisPrescription[key] = this.system_prescription[key]
|
|
2217
|
+ }
|
|
2218
|
+ }
|
|
2219
|
+ }else{
|
|
2220
|
+
|
2158
|
2221
|
this.dialysisPrescription.mode_id = this.schedual.mode_id
|
2159
|
2222
|
|
|
2223
|
+
|
2160
|
2224
|
}
|
2161
|
2225
|
|
2162
|
2226
|
if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
|