|
@@ -1360,7 +1360,22 @@ export default {
|
1360
|
1360
|
return;
|
1361
|
1361
|
}
|
1362
|
1362
|
|
1363
|
|
- const ParamsQuery = this.dialysisPrescription;
|
|
1363
|
+ var arr = this.dialysisPrescription;
|
|
1364
|
+ console.log("arr", arr);
|
|
1365
|
+ for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
|
1366
|
+ if (
|
|
1367
|
+ parseInt(arr.dialyzer_perfusion_apparatus) ==
|
|
1368
|
+ this.dialyzerPerfusionApparatus[i].id
|
|
1369
|
+ ) {
|
|
1370
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
|
1371
|
+ i
|
|
1372
|
+ ].name;
|
|
1373
|
+ }
|
|
1374
|
+ }
|
|
1375
|
+
|
|
1376
|
+ const ParamsQuery = arr;
|
|
1377
|
+ console.log("医嘱推送2", ParamsQuery);
|
|
1378
|
+
|
1364
|
1379
|
ParamsQuery["patient"] = this.patient.id;
|
1365
|
1380
|
ParamsQuery["record_date"] = this.record_date;
|
1366
|
1381
|
|
|
@@ -1435,7 +1450,22 @@ export default {
|
1435
|
1450
|
this.loading = false;
|
1436
|
1451
|
return;
|
1437
|
1452
|
}
|
1438
|
|
- const ParamsQuery = this.dialysisPrescription;
|
|
1453
|
+ var arr = this.dialysisPrescription;
|
|
1454
|
+ console.log("arr", arr);
|
|
1455
|
+ for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
|
1456
|
+ if (
|
|
1457
|
+ parseInt(arr.dialyzer_perfusion_apparatus) ==
|
|
1458
|
+ this.dialyzerPerfusionApparatus[i].id
|
|
1459
|
+ ) {
|
|
1460
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
|
1461
|
+ i
|
|
1462
|
+ ].name;
|
|
1463
|
+ }
|
|
1464
|
+ }
|
|
1465
|
+
|
|
1466
|
+ const ParamsQuery = arr;
|
|
1467
|
+ console.log("医嘱推送3", ParamsQuery);
|
|
1468
|
+
|
1439
|
1469
|
|
1440
|
1470
|
ParamsQuery["patient"] = this.patient.id;
|
1441
|
1471
|
ParamsQuery["record_date"] = this.record_date;
|
|
@@ -1511,7 +1541,23 @@ export default {
|
1511
|
1541
|
return;
|
1512
|
1542
|
}
|
1513
|
1543
|
|
1514
|
|
- const ParamsQuery = this.dialysisPrescription;
|
|
1544
|
+ var arr = this.dialysisPrescription;
|
|
1545
|
+ console.log("arr", arr);
|
|
1546
|
+ for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
|
1547
|
+ if (
|
|
1548
|
+ parseInt(arr.dialyzer_perfusion_apparatus) ==
|
|
1549
|
+ this.dialyzerPerfusionApparatus[i].id
|
|
1550
|
+ ) {
|
|
1551
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
|
1552
|
+ i
|
|
1553
|
+ ].name;
|
|
1554
|
+ }
|
|
1555
|
+ }
|
|
1556
|
+
|
|
1557
|
+ const ParamsQuery = arr;
|
|
1558
|
+ console.log("医嘱推送4", ParamsQuery);
|
|
1559
|
+
|
|
1560
|
+
|
1515
|
1561
|
ParamsQuery["patient"] = this.patient.id;
|
1516
|
1562
|
ParamsQuery["record_date"] = this.record_date;
|
1517
|
1563
|
console.log(this.prescription);
|
|
@@ -1550,7 +1596,22 @@ export default {
|
1550
|
1596
|
this.loading = false;
|
1551
|
1597
|
return;
|
1552
|
1598
|
}
|
1553
|
|
- const ParamsQuery = this.dialysisPrescription;
|
|
1599
|
+ var arr = this.dialysisPrescription;
|
|
1600
|
+ console.log("arr", arr);
|
|
1601
|
+ for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
|
1602
|
+ if (
|
|
1603
|
+ parseInt(arr.dialyzer_perfusion_apparatus) ==
|
|
1604
|
+ this.dialyzerPerfusionApparatus[i].id
|
|
1605
|
+ ) {
|
|
1606
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
|
1607
|
+ i
|
|
1608
|
+ ].name;
|
|
1609
|
+ }
|
|
1610
|
+ }
|
|
1611
|
+
|
|
1612
|
+ const ParamsQuery = arr;
|
|
1613
|
+ console.log("医嘱推送5", ParamsQuery);
|
|
1614
|
+
|
1554
|
1615
|
ParamsQuery["patient"] = this.patient.id;
|
1555
|
1616
|
ParamsQuery["record_date"] = this.record_date;
|
1556
|
1617
|
ParamsQuery["mode"] = 1;
|
|
@@ -1721,12 +1782,8 @@ export default {
|
1721
|
1782
|
console.log("arr", arr);
|
1722
|
1783
|
for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
1723
|
1784
|
if (
|
1724
|
|
- parseInt(arr.dialyzer_perfusion_apparatus) ==
|
1725
|
|
- this.dialyzerPerfusionApparatus[i].id
|
1726
|
|
- ) {
|
1727
|
|
- arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
1728
|
|
- i
|
1729
|
|
- ].name;
|
|
1785
|
+ parseInt(arr.dialyzer_perfusion_apparatus) == this.dialyzerPerfusionApparatus[i].id) {
|
|
1786
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[i].name;
|
1730
|
1787
|
}
|
1731
|
1788
|
}
|
1732
|
1789
|
|
|
@@ -1735,7 +1792,7 @@ export default {
|
1735
|
1792
|
ParamsQuery["patient"] = this.patient.id;
|
1736
|
1793
|
ParamsQuery["record_date"] = this.record_date;
|
1737
|
1794
|
ParamsQuery["mode"] = "1";
|
1738
|
|
-
|
|
1795
|
+
|
1739
|
1796
|
postPrescription(ParamsQuery).then(response => {
|
1740
|
1797
|
if (response.data.state == 0) {
|
1741
|
1798
|
this.$message.error(response.data.msg);
|
|
@@ -1907,23 +1964,18 @@ export default {
|
1907
|
1964
|
var arr = this.dialysisPrescription;
|
1908
|
1965
|
console.log("arr", arr);
|
1909
|
1966
|
for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
|
1910
|
|
- if (
|
1911
|
|
- parseInt(arr.dialyzer_perfusion_apparatus) ==
|
1912
|
|
- this.dialyzerPerfusionApparatus[i].id
|
1913
|
|
- ) {
|
1914
|
|
- arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
|
1915
|
|
- i
|
1916
|
|
- ].name;
|
|
1967
|
+ if ( parseInt(arr.dialyzer_perfusion_apparatus) == this.dialyzerPerfusionApparatus[i].id) {
|
|
1968
|
+ arr.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[i].name;
|
1917
|
1969
|
}
|
1918
|
1970
|
}
|
1919
|
|
-
|
1920
|
1971
|
const ParamsQuery = arr;
|
1921
|
1972
|
console.log("paramsqueryfour", ParamsQuery);
|
1922
|
|
- if (this.prescription.creater <= 0) {
|
1923
|
|
- mode = 1;
|
1924
|
|
- } else {
|
1925
|
|
- mode = 2;
|
1926
|
|
- }
|
|
1973
|
+ console.log("创建者",this.prescription.creater)
|
|
1974
|
+ //if (this.prescription.creater <= 0) {
|
|
1975
|
+ // mode = 1;
|
|
1976
|
+ //} else {
|
|
1977
|
+ // mode = 2;
|
|
1978
|
+ //}
|
1927
|
1979
|
ParamsQuery["patient"] = this.patient.id;
|
1928
|
1980
|
ParamsQuery["record_date"] = this.record_date;
|
1929
|
1981
|
// console.log(this.prescription);
|