|
@@ -691,9 +691,7 @@
|
691
|
691
|
<span slot="footer" class="dialog-footer">
|
692
|
692
|
<el-button @click="handleCancle">取 消</el-button>
|
693
|
693
|
<!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
|
694
|
|
- <el-button type="primary" @click="handleCommit"
|
695
|
|
- >保 存</el-button
|
696
|
|
- >
|
|
694
|
+ <el-button type="primary" @click="handleCommit">保 存</el-button>
|
697
|
695
|
<el-button type="primary" @click="handleSolution"
|
698
|
696
|
>保存为长期处方</el-button
|
699
|
697
|
>
|
|
@@ -1220,7 +1218,7 @@ export default {
|
1220
|
1218
|
}
|
1221
|
1219
|
});
|
1222
|
1220
|
});
|
1223
|
|
- console.log("arrFour", arrFour);
|
|
1221
|
+ // console.log("arrFour", arrFour);
|
1224
|
1222
|
this.anticoagulantsConfit = arrFour;
|
1225
|
1223
|
this.dialysisList = this.devices;
|
1226
|
1224
|
|
|
@@ -1232,7 +1230,7 @@ export default {
|
1232
|
1230
|
"hemodialysis",
|
1233
|
1231
|
"vascular_access_desc"
|
1234
|
1232
|
);
|
1235
|
|
- console.log("血管通路", this.blood_access_option);
|
|
1233
|
+ // console.log("血管通路", this.blood_access_option);
|
1236
|
1234
|
var date = this.$route.query && this.$route.query.date;
|
1237
|
1235
|
this.record_date = uParseTime(date, "{y}-{m}-{d}");
|
1238
|
1236
|
|
|
@@ -1397,6 +1395,7 @@ export default {
|
1397
|
1395
|
return;
|
1398
|
1396
|
}
|
1399
|
1397
|
const ParamsQuery = this.dialysisPrescription;
|
|
1398
|
+
|
1400
|
1399
|
ParamsQuery["patient"] = this.patient.id;
|
1401
|
1400
|
ParamsQuery["record_date"] = this.record_date;
|
1402
|
1401
|
ParamsQuery["mode"] = 1;
|
|
@@ -1559,10 +1558,21 @@ export default {
|
1559
|
1558
|
if (pre.anticoagulant == 3) {
|
1560
|
1559
|
this.dialysisPrescription.anticoagulant = "低分子肝素";
|
1561
|
1560
|
}
|
|
1561
|
+ //入口
|
|
1562
|
+ var pre = pre;
|
|
1563
|
+ if (pre.mode_id == 2 || pre.mode_id == 5 || pre.mode_id == 12) {
|
|
1564
|
+ this.zhiShow = true;
|
|
1565
|
+ this.huShow = true;
|
|
1566
|
+ this.totalShow = true;
|
|
1567
|
+ } else {
|
|
1568
|
+ this.zhiShow = false;
|
|
1569
|
+ this.huShow = false;
|
|
1570
|
+ this.totalShow = false;
|
|
1571
|
+ }
|
1562
|
1572
|
this.pre = pre;
|
1563
|
1573
|
console.log("pre1", pre);
|
1564
|
1574
|
this.getPermission();
|
1565
|
|
-
|
|
1575
|
+
|
1566
|
1576
|
let last_weight_after = 0;
|
1567
|
1577
|
let weight_before = 0;
|
1568
|
1578
|
|
|
@@ -1621,7 +1631,6 @@ export default {
|
1621
|
1631
|
//console.log("fffff", this.anticoagulant);
|
1622
|
1632
|
},
|
1623
|
1633
|
handleCommit: function() {
|
1624
|
|
- console.log("aaaa----", this.dialysisPrescription.anticoagulant);
|
1625
|
1634
|
if (this.dialysisPrescription.anticoagulant == "低分子肝素") {
|
1626
|
1635
|
this.dialysisPrescription.anticoagulant = 3;
|
1627
|
1636
|
}
|
|
@@ -2830,12 +2839,22 @@ export default {
|
2830
|
2839
|
this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
2831
|
2840
|
1,
|
2832
|
2841
|
this.dialysisPrescription.anticoagulant_shouji,
|
2833
|
|
- duration,
|
|
2842
|
+ this.dialysisPrescription.dialysis_duration,
|
2834
|
2843
|
this.dialysisPrescription.anticoagulant_weichi
|
2835
|
2844
|
);
|
2836
|
2845
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2837
|
2846
|
this.dialysisPrescription.anticoagulant_zongliang = "";
|
2838
|
2847
|
}
|
|
2848
|
+
|
|
2849
|
+ //this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
2850
|
+ // 1,
|
|
2851
|
+ // this.dialysisPrescription.anticoagulant_shouji,
|
|
2852
|
+ // duration,
|
|
2853
|
+ // this.dialysisPrescription.anticoagulant_weichi
|
|
2854
|
+ // );
|
|
2855
|
+ // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
|
2856
|
+ // this.dialysisPrescription.anticoagulant_zongliang = "";
|
|
2857
|
+ // }
|
2839
|
2858
|
},
|
2840
|
2859
|
"dialysisPrescription.anticoagulant_shouji": function() {
|
2841
|
2860
|
let dialysis_duration_minute = 0;
|
|
@@ -2856,15 +2875,26 @@ export default {
|
2856
|
2875
|
duration =
|
2857
|
2876
|
parseFloat(dialysis_duration_hour) +
|
2858
|
2877
|
parseFloat(dialysis_duration_minute) / 60;
|
|
2878
|
+
|
2859
|
2879
|
this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
2860
|
2880
|
1,
|
2861
|
2881
|
this.dialysisPrescription.anticoagulant_shouji,
|
2862
|
|
- duration,
|
|
2882
|
+ this.dialysisPrescription.dialysis_duration,
|
2863
|
2883
|
this.dialysisPrescription.anticoagulant_weichi
|
2864
|
2884
|
);
|
2865
|
2885
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2866
|
2886
|
this.dialysisPrescription.anticoagulant_zongliang = "";
|
2867
|
2887
|
}
|
|
2888
|
+
|
|
2889
|
+ // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
2890
|
+ // 1,
|
|
2891
|
+ // this.dialysisPrescription.anticoagulant_shouji,
|
|
2892
|
+ // duration,
|
|
2893
|
+ // this.dialysisPrescription.anticoagulant_weichi
|
|
2894
|
+ // );
|
|
2895
|
+ // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
|
2896
|
+ // this.dialysisPrescription.anticoagulant_zongliang = "";
|
|
2897
|
+ // }
|
2868
|
2898
|
},
|
2869
|
2899
|
"dialysisPrescription.anticoagulant_weichi": function() {
|
2870
|
2900
|
let dialysis_duration_minute = 0;
|
|
@@ -2891,12 +2921,22 @@ export default {
|
2891
|
2921
|
this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
2892
|
2922
|
1,
|
2893
|
2923
|
this.dialysisPrescription.anticoagulant_shouji,
|
2894
|
|
- duration,
|
|
2924
|
+ this.dialysisPrescription.dialysis_duration,
|
2895
|
2925
|
this.dialysisPrescription.anticoagulant_weichi
|
2896
|
2926
|
);
|
2897
|
2927
|
if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
2898
|
2928
|
this.dialysisPrescription.anticoagulant_zongliang = "";
|
2899
|
2929
|
}
|
|
2930
|
+
|
|
2931
|
+ // this.dialysisPrescription.anticoagulant_zongliang = calculateAnticoagulantZL(
|
|
2932
|
+ // 1,
|
|
2933
|
+ // this.dialysisPrescription.anticoagulant_shouji,
|
|
2934
|
+ // duration,
|
|
2935
|
+ // this.dialysisPrescription.anticoagulant_weichi
|
|
2936
|
+ // );
|
|
2937
|
+ // if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
|
|
2938
|
+ // this.dialysisPrescription.anticoagulant_zongliang = "";
|
|
2939
|
+ // }
|
2900
|
2940
|
},
|
2901
|
2941
|
"prescription.id": function() {
|
2902
|
2942
|
if (this.prescription.id > 0) {
|