|
@@ -815,7 +815,7 @@
|
815
|
815
|
</el-form-item>
|
816
|
816
|
</el-col>
|
817
|
817
|
|
818
|
|
- <el-col :span="8" v-if="isShows('透析器')">
|
|
818
|
+ <el-col :span="8" v-if="isShows('透析器') && this.$store.getters.xt_user.template_info.org_id != 10727">
|
819
|
819
|
<el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
|
820
|
820
|
<el-input v-model="dialysisPrescription.dialysis_dialyszers"
|
821
|
821
|
@focus="showInnerDialog('7')"></el-input>
|
|
@@ -823,13 +823,30 @@
|
823
|
823
|
</el-col>
|
824
|
824
|
|
825
|
825
|
|
826
|
|
- <el-col :span="8" v-if="isShows('灌流器')">
|
|
826
|
+ <el-col :span="8" v-if="isShows('透析器') && this.$store.getters.xt_user.template_info.org_id == 10727" >
|
|
827
|
+ <el-form-item label="透析器:" prop="dialysis_dialyszers" :rules="isCheckmust('透析器')">
|
|
828
|
+ <el-input v-model="dialysisPrescription.dialysis_dialyszers"
|
|
829
|
+ @focus="showInnerDialog('20')"></el-input>
|
|
830
|
+ </el-form-item>
|
|
831
|
+ </el-col>
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+ <el-col :span="8" v-if="isShows('灌流器')" && this.$store.getters.xt_user.template_info.org_id != 10727>
|
827
|
837
|
<el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
|
828
|
838
|
<el-input v-model="dialysisPrescription.dialysis_irrigation"
|
829
|
839
|
@focus="showInnerDialog('8')"></el-input>
|
830
|
840
|
</el-form-item>
|
831
|
841
|
</el-col>
|
832
|
842
|
|
|
843
|
+ <el-col :span="8">
|
|
844
|
+ <el-form-item label="灌流器:" prop="dialysis_irrigation" :rules="isCheckmust('灌流器')">
|
|
845
|
+ <el-input v-model="dialysisPrescription.dialysis_irrigation"
|
|
846
|
+ @focus="showInnerDialog('21')"></el-input>
|
|
847
|
+ </el-form-item>
|
|
848
|
+ </el-col>
|
|
849
|
+
|
833
|
850
|
<el-col :span="8" v-if="isShows('滤过器')">
|
834
|
851
|
<el-form-item label="滤过器:" prop="dialysis_strainer" :rules="isCheckmust('滤过器')">
|
835
|
852
|
<el-input v-model="dialysisPrescription.dialysis_strainer"
|
|
@@ -1437,6 +1454,13 @@
|
1437
|
1454
|
v-on:dialog-cancle="innerDialogCancle"
|
1438
|
1455
|
></multi-select-box>
|
1439
|
1456
|
|
|
1457
|
+ <radio-select-box
|
|
1458
|
+ :propsForm="InnerDialogPropsOne"
|
|
1459
|
+ v-on:dialog-comfirm="innerDialogComfirmOne"
|
|
1460
|
+ v-on:dialog-cancle="innerDialogCancleOne">
|
|
1461
|
+
|
|
1462
|
+ </radio-select-box>
|
|
1463
|
+
|
1440
|
1464
|
|
1441
|
1465
|
<el-dialog
|
1442
|
1466
|
title="提示"
|
|
@@ -1482,10 +1506,11 @@
|
1482
|
1506
|
import MsgTip from './MsgTip'
|
1483
|
1507
|
import request from '@/utils/request'
|
1484
|
1508
|
import multiSelectBox from './MultiSelectBox'
|
|
1509
|
+ import radioSelectBox from './RadioSelectBox'
|
1485
|
1510
|
const moment = require('moment')
|
1486
|
1511
|
export default {
|
1487
|
1512
|
name: 'dialysisPrescriptionDialog',
|
1488
|
|
- components: { MsgTip, multiSelectBox },
|
|
1513
|
+ components: { MsgTip, multiSelectBox,radioSelectBox },
|
1489
|
1514
|
props: {
|
1490
|
1515
|
mode_id: {
|
1491
|
1516
|
type: Number
|
|
@@ -1720,6 +1745,14 @@
|
1720
|
1745
|
titles: '',
|
1721
|
1746
|
type: '' // 不同弹框类型,用来匹配数据
|
1722
|
1747
|
},
|
|
1748
|
+ InnerDialogPropsOne:{
|
|
1749
|
+ values: [],
|
|
1750
|
+ visibility: false,
|
|
1751
|
+ isShowTextArea: true,
|
|
1752
|
+ customContent: '',
|
|
1753
|
+ titles: '',
|
|
1754
|
+ type: '' // 不同弹框类型,用来匹配数据
|
|
1755
|
+ },
|
1723
|
1756
|
advice_start_time: '',
|
1724
|
1757
|
showTxt: '',
|
1725
|
1758
|
start_time: '',
|
|
@@ -1949,8 +1982,14 @@
|
1949
|
1982
|
|
1950
|
1983
|
},
|
1951
|
1984
|
showInnerDialog: function(val) {
|
|
1985
|
+ console.log("处方=======================",val)
|
|
1986
|
+
|
|
1987
|
+ if(val == 20 || val == 21){
|
|
1988
|
+ this.InnerDialogPropsOne.visibility = true
|
|
1989
|
+ }else{
|
|
1990
|
+ this.InnerDialogProps.visibility = true
|
|
1991
|
+ }
|
1952
|
1992
|
|
1953
|
|
- this.InnerDialogProps.visibility = true
|
1954
|
1993
|
switch (val) {
|
1955
|
1994
|
case '5': // 透析器/灌流器
|
1956
|
1995
|
|
|
@@ -1975,12 +2014,14 @@
|
1975
|
2014
|
for (let i = 0; i < this.dialyzers.length; i++) {
|
1976
|
2015
|
this.dialyzers[i].name = this.dialyzers[i].specification_name
|
1977
|
2016
|
}
|
|
2017
|
+
|
1978
|
2018
|
this.InnerDialogProps.values = this.dialyzers
|
1979
|
2019
|
this.InnerDialogProps.titles = '透析器'
|
1980
|
2020
|
this.InnerDialogProps.type = 'dialyzers'
|
1981
|
2021
|
this.InnerDialogProps.selected = this.dialysisPrescription.dialysis_dialyszers
|
1982
|
2022
|
this.InnerDialogProps.isShowTextArea = false
|
1983
|
2023
|
break
|
|
2024
|
+
|
1984
|
2025
|
case '8':
|
1985
|
2026
|
for (let i = 0; i < this.irrigations.length; i++) {
|
1986
|
2027
|
this.irrigations[i].name = this.irrigations[i].specification_name
|
|
@@ -2035,10 +2076,32 @@ mu
|
2035
|
2076
|
this.InnerDialogProps.isShowTextArea = false
|
2036
|
2077
|
|
2037
|
2078
|
break
|
|
2079
|
+ case '20': // 透析器
|
|
2080
|
+
|
|
2081
|
+ for (let i = 0; i < this.dialyzers.length; i++) {
|
|
2082
|
+ this.dialyzers[i].name = this.dialyzers[i].specification_name
|
|
2083
|
+ }
|
|
2084
|
+ this.InnerDialogPropsOne.values = this.dialyzers
|
|
2085
|
+ this.InnerDialogPropsOne.titles = '透析器'
|
|
2086
|
+ this.InnerDialogPropsOne.type = 'dialyzers'
|
|
2087
|
+ this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_dialyszers
|
|
2088
|
+ this.InnerDialogPropsOne.isShowTextArea = false
|
|
2089
|
+ break
|
|
2090
|
+ case '21':
|
|
2091
|
+ for (let i = 0; i < this.irrigations.length; i++) {
|
|
2092
|
+ this.irrigations[i].name = this.irrigations[i].specification_name
|
|
2093
|
+ }
|
|
2094
|
+ this.InnerDialogPropsOne.values = this.irrigations
|
|
2095
|
+ this.InnerDialogPropsOne.titles = '灌流器'
|
|
2096
|
+ this.InnerDialogPropsOne.type = 'irrigations'
|
|
2097
|
+ this.InnerDialogPropsOne.selected = this.dialysisPrescription.dialysis_irrigation
|
|
2098
|
+ this.InnerDialogPropsOne.isShowTextArea = false
|
|
2099
|
+ break
|
2038
|
2100
|
}
|
2039
|
2101
|
},
|
2040
|
2102
|
innerDialogComfirm: function(val) {
|
2041
|
|
-
|
|
2103
|
+
|
|
2104
|
+
|
2042
|
2105
|
|
2043
|
2106
|
this.InnerDialogProps.visibility = false
|
2044
|
2107
|
switch (val.type) {
|
|
@@ -2124,6 +2187,49 @@ mu
|
2124
|
2187
|
this.InnerDialogProps.visibility = false
|
2125
|
2188
|
},
|
2126
|
2189
|
|
|
2190
|
+
|
|
2191
|
+ innerDialogComfirmOne: function(val) {
|
|
2192
|
+
|
|
2193
|
+ this.InnerDialogPropsOne.visibility = false
|
|
2194
|
+ switch (val.type) {
|
|
2195
|
+ case 'dialyzers':
|
|
2196
|
+ var newArr = []
|
|
2197
|
+ if(this.dialyzers!=null && this.dialyzers.length >0){
|
|
2198
|
+ for(let i=0;i<this.dialyzers.length;i++){
|
|
2199
|
+ if(this.dialyzers[i].specification_name == val.value){
|
|
2200
|
+ newArr.push(val.value)
|
|
2201
|
+ }
|
|
2202
|
+ }
|
|
2203
|
+ }
|
|
2204
|
+ if(newArr!=null && newArr.length >0){
|
|
2205
|
+ this.dialysisPrescription.dialysis_dialyszers = newArr.join(',')
|
|
2206
|
+ }else{
|
|
2207
|
+ this.dialysisPrescription.dialysis_dialyszers = ""
|
|
2208
|
+ }
|
|
2209
|
+
|
|
2210
|
+ break
|
|
2211
|
+ case 'irrigations':
|
|
2212
|
+ var newArr = []
|
|
2213
|
+ console.log("irrigations0000000000000000",this.irrigations)
|
|
2214
|
+ if(this.irrigations!=null && this.irrigations.length >0){
|
|
2215
|
+ for(let i=0;i<this.irrigations.length;i++){
|
|
2216
|
+ if(this.irrigations[i].specification_name == val.value){
|
|
2217
|
+ newArr.push(val.value)
|
|
2218
|
+ }
|
|
2219
|
+ }
|
|
2220
|
+ }
|
|
2221
|
+ if(newArr!=null && newArr.length>0){
|
|
2222
|
+ this.dialysisPrescription.dialysis_irrigation = newArr.join(',')
|
|
2223
|
+ }else{
|
|
2224
|
+ this.dialysisPrescription.dialysis_irrigation = ""
|
|
2225
|
+ }
|
|
2226
|
+ break
|
|
2227
|
+
|
|
2228
|
+ }
|
|
2229
|
+ },
|
|
2230
|
+ innerDialogCancleOne: function() {
|
|
2231
|
+ this.InnerDialogPropsOne.visibility = false
|
|
2232
|
+ },
|
2127
|
2233
|
getDryWeight() {
|
2128
|
2234
|
if (this.dry_weight != null && this.dry_weight.id > 0) {
|
2129
|
2235
|
return this.dry_weight.dry_weight
|