|
@@ -1,5 +1,5 @@
|
1
|
1
|
<template>
|
2
|
|
- <div style="height: calc(100% - 36px);display: flex;flex-direction: column;margin-top: 36px;">
|
|
2
|
+ <div style="height: calc(100% - 54px);display: flex;flex-direction: column;margin-top: 54px;">
|
3
|
3
|
<!-- <div style="border-top:1px solid #e5e5e5;margin-top:5px;">
|
4
|
4
|
<div class="mainCell" style="margin-bottom:10px;float:right">
|
5
|
5
|
<el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
|
|
@@ -8,10 +8,10 @@
|
8
|
8
|
<el-button size="small" @click="open(5)" type="primary">存模板</el-button>
|
9
|
9
|
</div>
|
10
|
10
|
</div> -->
|
11
|
|
- <div class="backColor"></div>
|
|
11
|
+ <!-- <div class="backColor"></div> -->
|
12
|
12
|
<div class="mainCenter">
|
13
|
13
|
<div class="centerLeft">
|
14
|
|
- <el-form :model="form" ref="form" label-width="80px">
|
|
14
|
+ <el-form :model="form" ref="form" label-width="80px" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
|
15
|
15
|
<el-form-item label="姓名:" prop="name">
|
16
|
16
|
<el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
|
17
|
17
|
</el-form-item>
|
|
@@ -22,7 +22,7 @@
|
22
|
22
|
<!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
|
23
|
23
|
<!--</el-form-item>-->
|
24
|
24
|
<el-form-item label="挂号类型: " prop="name">
|
25
|
|
- <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
|
|
25
|
+ <el-select style="width:100%;" v-model="register_type" placeholder="">
|
26
|
26
|
<el-option
|
27
|
27
|
v-for="(item,index) in this.register_types"
|
28
|
28
|
:key="index"
|
|
@@ -32,7 +32,7 @@
|
32
|
32
|
</el-select>
|
33
|
33
|
</el-form-item>
|
34
|
34
|
<el-form-item label="医疗类型: " prop="name">
|
35
|
|
- <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
|
|
35
|
+ <el-select style="width:100%;" v-model="register_type" placeholder="">
|
36
|
36
|
<el-option
|
37
|
37
|
v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
|
38
|
38
|
:key="index"
|
|
@@ -43,7 +43,7 @@
|
43
|
43
|
</el-form-item>
|
44
|
44
|
<el-form-item label="诊断:" prop="name">
|
45
|
45
|
|
46
|
|
- <el-select style="margin-right:5px;" v-model="state1" placeholder="">
|
|
46
|
+ <el-select style="width:100%;" v-model="state1" placeholder="">
|
47
|
47
|
<el-option
|
48
|
48
|
v-for="(item,index) in sick"
|
49
|
49
|
:key="index"
|
|
@@ -66,7 +66,7 @@
|
66
|
66
|
<div class="tabsBox">
|
67
|
67
|
|
68
|
68
|
<!--<el-button type="text" class="addTab" @click="addCharges" icon="el-icon-circle-plus">附加收费</el-button>-->
|
69
|
|
- <el-tabs class="preTabs" v-model="editableTabsValue" type="card" closable @tab-remove="removeTab"
|
|
69
|
+ <el-tabs class="preTabs" v-model="editableTabsValue" type="border-card" closable @tab-remove="removeTab"
|
70
|
70
|
:before-leave="moreState" @tab-click="tabclickEvent">
|
71
|
71
|
<el-tab-pane
|
72
|
72
|
v-for="(item, index) in prescriptions"
|
|
@@ -112,119 +112,134 @@
|
112
|
112
|
</div>
|
113
|
113
|
</div>
|
114
|
114
|
<div class='centerRight'>
|
115
|
|
- <div class="rightTab">
|
|
115
|
+ <!-- <div class="rightTab">
|
116
|
116
|
<p :class="rightTab == 1 ? 'activeP' : ''" @click="clickTab(1)">药品</p>
|
117
|
117
|
<p :class="rightTab == 2 ? 'activeP' : ''" @click="clickTab(2)">项目</p>
|
118
|
|
- </div>
|
119
|
|
- <template>
|
120
|
|
- <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showOne">
|
121
|
|
- <el-tabs class="rightTabs" v-model="activeName">
|
122
|
|
- <el-tab-pane label="药品列表" name="1">
|
123
|
|
- <div style="margin-bottom:5px;display:flex;">
|
124
|
|
- <el-input style="width:50%;" @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
|
125
|
|
- placeholder="请输入药品名字"></el-input>
|
126
|
|
- <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
|
127
|
|
- <el-option
|
128
|
|
- label="全部"
|
129
|
|
- value="0">
|
130
|
|
- </el-option>
|
131
|
|
- <el-option
|
132
|
|
- v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
|
133
|
|
- :key="index"
|
134
|
|
- :label="item.name"
|
135
|
|
- :value="item.id">
|
136
|
|
- </el-option>
|
137
|
|
- </el-select>
|
138
|
|
- </div>
|
139
|
|
- <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
|
140
|
|
- style="width: 100%;flex:1;overflow-y: auto;"
|
141
|
|
- :row-style="{ color: '#303133' }"
|
142
|
|
- @select-all="changeAllGoodInfoTableData"
|
143
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
144
|
|
- highlight-current-row>
|
145
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
146
|
|
- <el-table-column prop="name" label="名称">
|
147
|
|
- <template slot-scope="scope">{{ scope.row.drug_name }}</template>
|
148
|
|
- </el-table-column>
|
149
|
|
- <el-table-column label="规格" width="60">
|
150
|
|
- <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
|
151
|
|
- </el-table-column>
|
152
|
|
- <el-table-column label="单价" width="40">
|
153
|
|
- <template slot-scope="scope">{{ scope.row.retail_price }}</template>
|
154
|
|
- </el-table-column>
|
155
|
|
- </el-table>
|
156
|
|
-
|
|
118
|
+ </div> -->
|
|
119
|
+ <el-tabs class="borderCard" type="border-card" v-model="rightTab" @tab-click="clickTab">
|
|
120
|
+ <el-tab-pane label="药品" :name="1">
|
|
121
|
+
|
157
|
122
|
</el-tab-pane>
|
158
|
|
- <el-tab-pane label="医嘱模板" name="2">
|
159
|
|
- <div style="margin-bottom:5px;">
|
160
|
|
- <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
|
161
|
|
- <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
|
162
|
|
- <el-option
|
163
|
|
- v-for="item in options"
|
164
|
|
- :key="item.value"
|
165
|
|
- :label="item.label"
|
166
|
|
- :value="item.value">
|
167
|
|
- </el-option>
|
168
|
|
- </el-select>
|
169
|
|
- </div>
|
170
|
|
- <el-table ref="multipleTableTwo" :data="advices_template" border
|
171
|
|
- style="width: 100%;flex:1;overflow-y: auto;"
|
172
|
|
- :row-style="{ color: '#303133' }"
|
173
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
174
|
|
- highlight-current-row>
|
175
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
176
|
|
- <el-table-column prop="name" label="名称">
|
177
|
|
- <template slot-scope="scope">{{}}</template>
|
178
|
|
- </el-table-column>
|
179
|
|
- <el-table-column label="规格" width="60">
|
180
|
|
- <template slot-scope="scope">33</template>
|
181
|
|
- </el-table-column>
|
182
|
|
- <el-table-column label="库存" width="60">
|
183
|
|
- <template slot-scope="scope">22</template>
|
184
|
|
- </el-table-column>
|
185
|
|
- <el-table-column label="单价" width="40">
|
186
|
|
- <template slot-scope="scope">12</template>
|
187
|
|
- </el-table-column>
|
188
|
|
- </el-table>
|
|
123
|
+ <el-tab-pane label="项目" :name="2">
|
|
124
|
+
|
189
|
125
|
</el-tab-pane>
|
190
|
|
- </el-tabs>
|
191
|
|
- </div>
|
|
126
|
+ <div style="height:100%;" v-show="showOne">
|
|
127
|
+ <el-tabs class="rightTabs" v-model="activeName">
|
|
128
|
+ <el-tab-pane label="药品列表" name="1">
|
|
129
|
+ <div style="margin-bottom:5px;display:flex;">
|
|
130
|
+ <el-input style="width:50%;" @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
|
|
131
|
+ placeholder="请输入药品名字"></el-input>
|
|
132
|
+ <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
|
|
133
|
+ <el-option
|
|
134
|
+ label="全部"
|
|
135
|
+ value="0">
|
|
136
|
+ </el-option>
|
|
137
|
+ <el-option
|
|
138
|
+ v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
|
|
139
|
+ :key="index"
|
|
140
|
+ :label="item.name"
|
|
141
|
+ :value="item.id">
|
|
142
|
+ </el-option>
|
|
143
|
+ </el-select>
|
|
144
|
+ </div>
|
|
145
|
+ <div style="width: 100%;flex:1;overflow-y: auto;">
|
|
146
|
+ <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
|
|
147
|
+ :row-style="{ color: '#303133' }"
|
|
148
|
+ @select-all="changeAllGoodInfoTableData"
|
|
149
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
150
|
+ highlight-current-row>
|
|
151
|
+ <el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
152
|
+ <el-table-column prop="name" label="名称">
|
|
153
|
+ <template slot-scope="scope">{{ scope.row.drug_name }}</template>
|
|
154
|
+ </el-table-column>
|
|
155
|
+ <el-table-column label="规格" width="60">
|
|
156
|
+ <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
|
|
157
|
+ </el-table-column>
|
|
158
|
+ <el-table-column label="单价" width="40">
|
|
159
|
+ <template slot-scope="scope">{{ scope.row.retail_price }}</template>
|
|
160
|
+ </el-table-column>
|
|
161
|
+ </el-table>
|
|
162
|
+ </div>
|
|
163
|
+
|
|
164
|
+ </el-tab-pane>
|
|
165
|
+ <el-tab-pane label="医嘱模板" name="2">
|
|
166
|
+ <div style="margin-bottom:5px;">
|
|
167
|
+ <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
|
|
168
|
+ <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
|
|
169
|
+ <el-option
|
|
170
|
+ v-for="item in options"
|
|
171
|
+ :key="item.value"
|
|
172
|
+ :label="item.label"
|
|
173
|
+ :value="item.value">
|
|
174
|
+ </el-option>
|
|
175
|
+ </el-select>
|
|
176
|
+ </div>
|
|
177
|
+ <div style="width: 100%;flex:1;overflow-y: auto;">
|
|
178
|
+ <el-table ref="multipleTableTwo" :data="advices_template" border
|
|
179
|
+ :row-style="{ color: '#303133' }"
|
|
180
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
181
|
+ highlight-current-row>
|
|
182
|
+ <el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
183
|
+ <el-table-column prop="name" label="名称">
|
|
184
|
+ <template slot-scope="scope">{{}}</template>
|
|
185
|
+ </el-table-column>
|
|
186
|
+ <el-table-column label="规格" width="60">
|
|
187
|
+ <template slot-scope="scope">33</template>
|
|
188
|
+ </el-table-column>
|
|
189
|
+ <el-table-column label="库存" width="60">
|
|
190
|
+ <template slot-scope="scope">22</template>
|
|
191
|
+ </el-table-column>
|
|
192
|
+ <el-table-column label="单价" width="40">
|
|
193
|
+ <template slot-scope="scope">12</template>
|
|
194
|
+ </el-table-column>
|
|
195
|
+ </el-table>
|
|
196
|
+ </div>
|
|
197
|
+ </el-tab-pane>
|
|
198
|
+ </el-tabs>
|
|
199
|
+ </div>
|
|
200
|
+ <div style="height:100%;" v-show="showTwo">
|
|
201
|
+ <el-tabs class="rightTabs" v-model="activeName">
|
|
202
|
+ <el-tab-pane label="项目列表" name="1">
|
|
203
|
+ <div style="width: 100%;flex:1;overflow-y: auto;">
|
|
204
|
+ <el-table ref="tables" :data="tabProject" border @select='selectChange'
|
|
205
|
+ :row-style="{ color: '#303133' }"
|
|
206
|
+ @select-all="changeAllGoodInfoTableDataTwo"
|
|
207
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
208
|
+ highlight-current-row>
|
|
209
|
+ <el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
210
|
+ <el-table-column prop="name" label="名称">
|
|
211
|
+ <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
|
212
|
+ </el-table-column>
|
|
213
|
+ <el-table-column label="规格" width="60">
|
|
214
|
+ <template slot-scope="scope">{{ scope.row.single_dose }}</template>
|
|
215
|
+ </el-table-column>
|
|
216
|
+ <el-table-column label="单价" width="40">
|
|
217
|
+ <template slot-scope="scope">{{ scope.row.price }}</template>
|
|
218
|
+ </el-table-column>
|
|
219
|
+ </el-table>
|
|
220
|
+ </div>
|
|
221
|
+ </el-tab-pane>
|
|
222
|
+ <el-tab-pane label="项目组套" name="2">
|
|
223
|
+ <div style="width: 100%;flex:1;overflow-y: auto;">
|
|
224
|
+ <el-table :data="tabPrjectTeam" border
|
|
225
|
+ :row-style="{ color: '#303133' }"
|
|
226
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
227
|
+ highlight-current-row
|
|
228
|
+ @select='selectTeam'>
|
|
229
|
+ <el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
230
|
+ <el-table-column prop="name" label="名称">
|
|
231
|
+ <template slot-scope="scope">{{scope.row.project_team}}</template>
|
|
232
|
+ </el-table-column>
|
|
233
|
+ </el-table>
|
|
234
|
+ </div>
|
|
235
|
+ </el-tab-pane>
|
|
236
|
+ </el-tabs>
|
|
237
|
+ </div>
|
|
238
|
+ </el-tabs>
|
|
239
|
+ <template>
|
|
240
|
+
|
192
|
241
|
|
193
|
|
- <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showTwo">
|
194
|
|
- <el-tabs class="rightTabs" v-model="activeName">
|
195
|
|
- <el-tab-pane label="项目列表" name="1">
|
196
|
|
- <el-table ref="tables" :data="tabProject" border @select='selectChange'
|
197
|
|
- style="width: 100%;flex:1;overflow-y: auto;"
|
198
|
|
- :row-style="{ color: '#303133' }"
|
199
|
|
- @select-all="changeAllGoodInfoTableDataTwo"
|
200
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
201
|
|
- highlight-current-row>
|
202
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
203
|
|
- <el-table-column prop="name" label="名称">
|
204
|
|
- <template slot-scope="scope">{{ scope.row.project_name }}</template>
|
205
|
|
- </el-table-column>
|
206
|
|
- <el-table-column label="规格" width="60">
|
207
|
|
- <template slot-scope="scope">{{ scope.row.single_dose }}</template>
|
208
|
|
- </el-table-column>
|
209
|
|
- <el-table-column label="单价" width="40">
|
210
|
|
- <template slot-scope="scope">{{ scope.row.price }}</template>
|
211
|
|
- </el-table-column>
|
212
|
|
- </el-table>
|
213
|
|
- </el-tab-pane>
|
214
|
|
- <el-tab-pane label="项目组套" name="2">
|
215
|
|
- <el-table :data="tabPrjectTeam" border style="width: 100%;flex:1;overflow-y: auto;"
|
216
|
|
- :row-style="{ color: '#303133' }"
|
217
|
|
- :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
218
|
|
- highlight-current-row
|
219
|
|
- @select='selectTeam'>
|
220
|
|
- <el-table-column type="selection" width="40" align="center"></el-table-column>
|
221
|
|
- <el-table-column prop="name" label="名称">
|
222
|
|
- <template slot-scope="scope">{{scope.row.project_team}}</template>
|
223
|
|
- </el-table-column>
|
224
|
|
- </el-table>
|
225
|
|
- </el-tab-pane>
|
226
|
|
- </el-tabs>
|
227
|
|
- </div>
|
|
242
|
+
|
228
|
243
|
|
229
|
244
|
<div class="comfirmBox">
|
230
|
245
|
<!-- <div>
|
|
@@ -242,7 +257,7 @@
|
242
|
257
|
</el-option>
|
243
|
258
|
</el-select>
|
244
|
259
|
</div> -->
|
245
|
|
- <el-button type="primary" size="small" @click="comfirm">确定添加</el-button>
|
|
260
|
+ <el-button type="primary" size="small" style="width:100%;" @click="comfirm">确定添加</el-button>
|
246
|
261
|
</div>
|
247
|
262
|
</template>
|
248
|
263
|
</div>
|
|
@@ -725,7 +740,8 @@
|
725
|
740
|
})
|
726
|
741
|
|
727
|
742
|
},
|
728
|
|
- clickTab(index) {
|
|
743
|
+ clickTab(tab) {
|
|
744
|
+ let index = parseInt(tab.name)
|
729
|
745
|
if (index == 1) {
|
730
|
746
|
if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
|
731
|
747
|
this.$message.error('当前处方为项目,无法切换为药品,需要新开处方')
|
|
@@ -1036,6 +1052,7 @@
|
1036
|
1052
|
.mainCenter {
|
1037
|
1053
|
display: flex;
|
1038
|
1054
|
flex: 1;
|
|
1055
|
+ height: 100%;
|
1039
|
1056
|
}
|
1040
|
1057
|
|
1041
|
1058
|
.centerLeft {
|
|
@@ -1045,9 +1062,8 @@
|
1045
|
1062
|
position: relative;
|
1046
|
1063
|
|
1047
|
1064
|
.el-form-item {
|
1048
|
|
- width: 32%;
|
1049
|
|
- margin-right: 1%;
|
1050
|
|
- float: left;
|
|
1065
|
+ width: 33%;
|
|
1066
|
+ margin-bottom: 14px;
|
1051
|
1067
|
}
|
1052
|
1068
|
|
1053
|
1069
|
.el-form-item__label {
|
|
@@ -1063,7 +1079,7 @@
|
1063
|
1079
|
|
1064
|
1080
|
.RP {
|
1065
|
1081
|
color: #409EFF;
|
1066
|
|
- font-size: 20px;
|
|
1082
|
+ font-size: 14px;
|
1067
|
1083
|
margin-bottom: 5px;
|
1068
|
1084
|
}
|
1069
|
1085
|
|
|
@@ -1072,7 +1088,7 @@
|
1072
|
1088
|
height: 76%;
|
1073
|
1089
|
overflow-y: auto;
|
1074
|
1090
|
margin-bottom: 60px;
|
1075
|
|
-
|
|
1091
|
+ margin-top: 4px;
|
1076
|
1092
|
.el-tabs__item {
|
1077
|
1093
|
padding: 0 10px;
|
1078
|
1094
|
}
|
|
@@ -1109,7 +1125,7 @@
|
1109
|
1125
|
|
1110
|
1126
|
.centerRight {
|
1111
|
1127
|
width: 300px;
|
1112
|
|
- margin-left: 5px;
|
|
1128
|
+ margin-left: 10px;
|
1113
|
1129
|
display: flex;
|
1114
|
1130
|
flex-direction: column;
|
1115
|
1131
|
position: relative;
|
|
@@ -1156,9 +1172,31 @@
|
1156
|
1172
|
align-items: center;
|
1157
|
1173
|
justify-content: space-between;
|
1158
|
1174
|
}
|
|
1175
|
+ .borderCard{
|
|
1176
|
+ height: 100%;
|
|
1177
|
+ display: flex;
|
|
1178
|
+ flex-direction: column;
|
|
1179
|
+ margin-bottom: 60px;
|
|
1180
|
+ .el-tabs--border-card>.el-tabs__content{
|
|
1181
|
+ padding: 0;
|
|
1182
|
+ }
|
|
1183
|
+ }
|
1159
|
1184
|
</style>
|
1160
|
1185
|
|
1161
|
1186
|
<style lang="scss">
|
|
1187
|
+.borderCard{
|
|
1188
|
+ .el-tabs__nav{
|
|
1189
|
+ width: 100%;
|
|
1190
|
+ }
|
|
1191
|
+ .el-tabs__item{
|
|
1192
|
+ width: 50%;
|
|
1193
|
+ text-align: center;
|
|
1194
|
+ }
|
|
1195
|
+ .el-tabs__content{
|
|
1196
|
+ padding: 5px;
|
|
1197
|
+ flex: 1;
|
|
1198
|
+ }
|
|
1199
|
+}
|
1162
|
1200
|
.centerLeft {
|
1163
|
1201
|
|
1164
|
1202
|
.el-form-item__label {
|
|
@@ -1205,12 +1243,22 @@
|
1205
|
1243
|
.el-tabs__content {
|
1206
|
1244
|
flex: 1;
|
1207
|
1245
|
overflow-y: auto;
|
|
1246
|
+ padding: 5px 0 5px 5px;
|
1208
|
1247
|
}
|
1209
|
1248
|
|
1210
|
1249
|
}
|
1211
|
1250
|
.rightTabs {
|
1212
|
1251
|
height: 100%;
|
1213
|
|
-
|
|
1252
|
+ .el-tabs__nav{
|
|
1253
|
+ width: auto;
|
|
1254
|
+ }
|
|
1255
|
+ .el-tabs__header{
|
|
1256
|
+ margin-bottom: 5px;
|
|
1257
|
+ }
|
|
1258
|
+ .el-tabs__item{
|
|
1259
|
+ width: auto;
|
|
1260
|
+ text-align: inherit;
|
|
1261
|
+ }
|
1214
|
1262
|
.el-tabs__content {
|
1215
|
1263
|
flex: 1;
|
1216
|
1264
|
overflow-y: auto;
|