|
@@ -42,13 +42,16 @@
|
42
|
42
|
</el-select>
|
43
|
43
|
</el-form-item>
|
44
|
44
|
<el-form-item label="诊断:" prop="name">
|
45
|
|
- <el-autocomplete
|
46
|
|
- style="width:100%;"
|
47
|
|
- class="inline-input"
|
48
|
|
- v-model="state1"
|
49
|
|
- :fetch-suggestions="querySearch"
|
50
|
|
- placeholder="请输入内容"
|
51
|
|
- ></el-autocomplete>
|
|
45
|
+
|
|
46
|
+ <el-select style="margin-right:5px;" v-model="state1" placeholder="">
|
|
47
|
+ <el-option
|
|
48
|
+ v-for="(item,index) in sick"
|
|
49
|
+ :key="index"
|
|
50
|
+ :label="item.class_name"
|
|
51
|
+ :value="item.id">
|
|
52
|
+ </el-option>
|
|
53
|
+ </el-select>
|
|
54
|
+
|
52
|
55
|
</el-form-item>
|
53
|
56
|
<el-form-item label="过敏病史: " prop="name">
|
54
|
57
|
<el-autocomplete
|
|
@@ -83,7 +86,7 @@
|
83
|
86
|
</div>
|
84
|
87
|
<div class="costBox">
|
85
|
88
|
<span>医生:</span>
|
86
|
|
- <el-select style="margin-right:5px;" v-model="doctorValue" placeholder="">
|
|
89
|
+ <el-select style="margin-right:5px;" v-model="doctorValue" placeholder="" @change="changeDoctor">
|
87
|
90
|
<el-option
|
88
|
91
|
v-for="(item,index) in doctors"
|
89
|
92
|
:key="index"
|
|
@@ -94,15 +97,15 @@
|
94
|
97
|
<span>科室:</span>
|
95
|
98
|
<el-select style="margin-right:5px;" v-model="departmentValue" placeholder="">
|
96
|
99
|
<el-option
|
97
|
|
- v-for="(item,index) in getDictionaryDataConfig('system','department')"
|
|
100
|
+ v-for="(item,index) in department"
|
98
|
101
|
:key="index"
|
99
|
102
|
:label="item.name"
|
100
|
|
- :value="item.name">
|
|
103
|
+ :value="item.id">
|
101
|
104
|
</el-option>
|
102
|
105
|
</el-select>
|
103
|
|
- <span>总计:</span>
|
|
106
|
+ <span>总价:</span>
|
104
|
107
|
<span style="color:red;">{{ getTotal() }}</span>元
|
105
|
|
- <span >{{order_status}}</span>
|
|
108
|
+ <span>{{order_status}}</span>
|
106
|
109
|
|
107
|
110
|
</div>
|
108
|
111
|
</div>
|
|
@@ -116,7 +119,8 @@
|
116
|
119
|
<el-tabs class="rightTabs" v-model="activeName">
|
117
|
120
|
<el-tab-pane label="药品列表" name="1">
|
118
|
121
|
<div style="margin-bottom:5px;display:flex;">
|
119
|
|
- <el-input style="width:50%;" @keyup.enter.native='searchAction' v-model.trim="search_keyword" placeholder=""></el-input>
|
|
122
|
+ <el-input style="width:50%;" @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
|
|
123
|
+ placeholder="请输入药品名字"></el-input>
|
120
|
124
|
<el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
|
121
|
125
|
<el-option
|
122
|
126
|
label="全部"
|
|
@@ -130,7 +134,8 @@
|
130
|
134
|
</el-option>
|
131
|
135
|
</el-select>
|
132
|
136
|
</div>
|
133
|
|
- <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs' style="width: 100%;flex:1;overflow-y: auto;"
|
|
137
|
+ <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
|
|
138
|
+ style="width: 100%;flex:1;overflow-y: auto;"
|
134
|
139
|
:row-style="{ color: '#303133' }"
|
135
|
140
|
@select-all="changeAllGoodInfoTableData"
|
136
|
141
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
@@ -152,15 +157,16 @@
|
152
|
157
|
<div style="margin-bottom:5px;">
|
153
|
158
|
<!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
|
154
|
159
|
<el-select style="float: right;width: 49%;" v-model="value" placeholder="">
|
155
|
|
- <el-option
|
|
160
|
+ <el-option
|
156
|
161
|
v-for="item in options"
|
157
|
162
|
:key="item.value"
|
158
|
163
|
:label="item.label"
|
159
|
164
|
:value="item.value">
|
160
|
|
- </el-option>
|
|
165
|
+ </el-option>
|
161
|
166
|
</el-select>
|
162
|
167
|
</div>
|
163
|
|
- <el-table ref="multipleTableTwo" :data="advices_template" border style="width: 100%;flex:1;overflow-y: auto;"
|
|
168
|
+ <el-table ref="multipleTableTwo" :data="advices_template" border
|
|
169
|
+ style="width: 100%;flex:1;overflow-y: auto;"
|
164
|
170
|
:row-style="{ color: '#303133' }"
|
165
|
171
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
166
|
172
|
highlight-current-row>
|
|
@@ -185,7 +191,8 @@
|
185
|
191
|
<div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showTwo">
|
186
|
192
|
<el-tabs class="rightTabs" v-model="activeName">
|
187
|
193
|
<el-tab-pane label="项目列表" name="1">
|
188
|
|
- <el-table ref="tables" :data="tabProject" border @select='selectChange' style="width: 100%;flex:1;overflow-y: auto;"
|
|
194
|
+ <el-table ref="tables" :data="tabProject" border @select='selectChange'
|
|
195
|
+ style="width: 100%;flex:1;overflow-y: auto;"
|
189
|
196
|
:row-style="{ color: '#303133' }"
|
190
|
197
|
@select-all="changeAllGoodInfoTableDataTwo"
|
191
|
198
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
|
@@ -203,7 +210,8 @@
|
203
|
210
|
</el-table>
|
204
|
211
|
</el-tab-pane>
|
205
|
212
|
<el-tab-pane label="项目组套" name="2">
|
206
|
|
- <el-table :data="tabPrjectTeam" border style="width: 100%;flex:1;overflow-y: auto;" :row-style="{ color: '#303133' }"
|
|
213
|
+ <el-table :data="tabPrjectTeam" border style="width: 100%;flex:1;overflow-y: auto;"
|
|
214
|
+ :row-style="{ color: '#303133' }"
|
207
|
215
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
208
|
216
|
highlight-current-row
|
209
|
217
|
@select='selectTeam'>
|
|
@@ -266,7 +274,7 @@
|
266
|
274
|
hisPatientInfo: Object,
|
267
|
275
|
prescriptions: Array,
|
268
|
276
|
record_date: String,
|
269
|
|
- search_keyword:"",
|
|
277
|
+ search_keyword: '',
|
270
|
278
|
|
271
|
279
|
other_sick: {
|
272
|
280
|
type: Array,
|
|
@@ -326,17 +334,31 @@
|
326
|
334
|
doctors: [],
|
327
|
335
|
departMent: [],
|
328
|
336
|
curStatus: 0,
|
329
|
|
- order_status:"",
|
|
337
|
+ order_status: '',
|
330
|
338
|
register_types: [
|
331
|
339
|
{ id: 1, name: '医保' },
|
332
|
340
|
{ id: 2, name: '自费' }
|
333
|
341
|
|
334
|
|
- ]
|
|
342
|
+ ],
|
|
343
|
+ department:[],
|
|
344
|
+ sick:[]
|
335
|
345
|
}
|
336
|
346
|
},
|
337
|
347
|
methods: {
|
338
|
|
- searchAction(){
|
339
|
|
- console.log(this.search_keyword)
|
|
348
|
+ searchAction() {
|
|
349
|
+ if(this.search_keyword.length == 0){
|
|
350
|
+ this.drugs = this.allDrugs
|
|
351
|
+ }else{
|
|
352
|
+ let arr = []
|
|
353
|
+ for (let i = 0; i < this.drugs.length; i++){
|
|
354
|
+ if(this.drugs[i].drug_name.indexOf(this.search_keyword) != -1){
|
|
355
|
+ arr = arr.concat(this.drugs[i])
|
|
356
|
+ }
|
|
357
|
+ }
|
|
358
|
+ this.drugs = arr
|
|
359
|
+
|
|
360
|
+ }
|
|
361
|
+
|
340
|
362
|
|
341
|
363
|
},
|
342
|
364
|
getTotal() {
|
|
@@ -408,6 +430,10 @@
|
408
|
430
|
this.allDrugs = response.data.data.drugs
|
409
|
431
|
this.advices_template = response.data.data.advices_template
|
410
|
432
|
this.doctors = response.data.data.doctors
|
|
433
|
+ this.department = response.data.data.department
|
|
434
|
+ this.sick = response.data.data.sick
|
|
435
|
+
|
|
436
|
+
|
411
|
437
|
|
412
|
438
|
}
|
413
|
439
|
})
|
|
@@ -485,21 +511,19 @@
|
485
|
511
|
this.departmentValue = info.departments
|
486
|
512
|
this.register_type = info.register_type
|
487
|
513
|
|
488
|
|
- if(info.prescription_status == 1 || info.prescription_status == 2){
|
489
|
|
- this.order_status = "未收费"
|
|
514
|
+ if (info.prescription_status == 1 || info.prescription_status == 2) {
|
|
515
|
+ this.order_status = '未收费'
|
490
|
516
|
|
491
|
517
|
}
|
492
|
518
|
|
493
|
|
- if(info.prescription_status == 3){
|
494
|
|
- this.order_status = "已结算"
|
|
519
|
+ if (info.prescription_status == 3) {
|
|
520
|
+ this.order_status = '已结算'
|
495
|
521
|
}
|
496
|
522
|
|
497
|
|
-
|
498
|
|
- if(info.prescription_status == 4){
|
499
|
|
- this.order_status = "已退费"
|
|
523
|
+ if (info.prescription_status == 4) {
|
|
524
|
+ this.order_status = '已退费'
|
500
|
525
|
}
|
501
|
526
|
|
502
|
|
-
|
503
|
527
|
// console.log(this.$refs)
|
504
|
528
|
// this.$nextTick(() => {
|
505
|
529
|
// this.$refs.prescription_tables.setNewData(this.prescriptions[0])
|
|
@@ -511,7 +535,7 @@
|
511
|
535
|
}
|
512
|
536
|
},
|
513
|
537
|
open(index) {
|
514
|
|
- if(this.curPrescriptions.order_status >= 2){
|
|
538
|
+ if (this.curPrescriptions.order_status >= 2) {
|
515
|
539
|
this.$message.error('当前处方处于结算或者退费状态,无法保存')
|
516
|
540
|
return
|
517
|
541
|
}
|
|
@@ -574,22 +598,21 @@
|
574
|
598
|
|
575
|
599
|
},
|
576
|
600
|
addTab(targetName) {
|
577
|
|
- if(this.curPrescriptions.order_status >= 2){
|
|
601
|
+ if (this.curPrescriptions.order_status >= 2) {
|
578
|
602
|
this.$message.error('该处方已经结算或者退费,无法继续添加处方')
|
579
|
603
|
return
|
580
|
604
|
}
|
581
|
|
- if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0 ){
|
|
605
|
+ if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
|
582
|
606
|
this.$message.error('当前处方无数据,新增数据后才能新增处方')
|
583
|
607
|
return
|
584
|
608
|
}
|
585
|
609
|
|
586
|
|
-
|
587
|
610
|
++this.tabIndex
|
588
|
611
|
let newTabName = '处方' + this.tabIndex
|
589
|
612
|
this.prescriptions.push({
|
590
|
613
|
id: 0,
|
591
|
614
|
name: newTabName,
|
592
|
|
- order_status:0,
|
|
615
|
+ order_status: 0,
|
593
|
616
|
advices: [],
|
594
|
617
|
project: []
|
595
|
618
|
|
|
@@ -599,11 +622,11 @@
|
599
|
622
|
this.curStatus = 0
|
600
|
623
|
},
|
601
|
624
|
removeTab(targetName) {
|
602
|
|
- if(this.curPrescriptions.order_status == 2){
|
|
625
|
+ if (this.curPrescriptions.order_status == 2) {
|
603
|
626
|
this.$message.error('该处方已经结算,无法删除')
|
604
|
627
|
return
|
605
|
628
|
}
|
606
|
|
- if(targetName == "处方1"){
|
|
629
|
+ if (targetName == '处方1') {
|
607
|
630
|
this.$message.error('该处方无法删除')
|
608
|
631
|
return
|
609
|
632
|
}
|
|
@@ -765,7 +788,7 @@
|
765
|
788
|
this.curDrugs = selection
|
766
|
789
|
},
|
767
|
790
|
comfirm() {
|
768
|
|
- if(this.curPrescriptions.order_status >= 2){
|
|
791
|
+ if (this.curPrescriptions.order_status >= 2) {
|
769
|
792
|
this.$message.error('该处方已经结算或者退费,无法继续添加药品或者项目')
|
770
|
793
|
this.teamList = []
|
771
|
794
|
this.curDrugs = []
|
|
@@ -910,7 +933,7 @@
|
910
|
933
|
})
|
911
|
934
|
},
|
912
|
935
|
selectTeam(row) {
|
913
|
|
- console.log("row------",row)
|
|
936
|
+ console.log('row------', row)
|
914
|
937
|
var arr = []
|
915
|
938
|
for (let i = 0; i < row.length; i++) {
|
916
|
939
|
arr.push(row[i].project_id)
|
|
@@ -936,7 +959,7 @@
|
936
|
959
|
const params = {
|
937
|
960
|
project_id: idstr
|
938
|
961
|
}
|
939
|
|
- console.log("params",params)
|
|
962
|
+ console.log('params', params)
|
940
|
963
|
getPojectListById(params).then(response => {
|
941
|
964
|
if (response.data.state == 1) {
|
942
|
965
|
var project = response.data.data.project
|
|
@@ -945,6 +968,14 @@
|
945
|
968
|
this.teamList = project
|
946
|
969
|
}
|
947
|
970
|
})
|
|
971
|
+ },changeDoctor(val){
|
|
972
|
+ console.log(val)
|
|
973
|
+ console.log(this.doctors)
|
|
974
|
+ for (let i = 0; i < this.doctors.length;i++){
|
|
975
|
+ if(this.doctors[i].admin_user_id == this.doctorValue){
|
|
976
|
+ this.departmentValue = this.doctors[i].department_id
|
|
977
|
+ }
|
|
978
|
+ }
|
948
|
979
|
}
|
949
|
980
|
},
|
950
|
981
|
created() {
|
|
@@ -1049,10 +1080,12 @@
|
1049
|
1080
|
height: 100%;
|
1050
|
1081
|
display: flex;
|
1051
|
1082
|
flex-direction: column;
|
1052
|
|
- .el-tabs__content{
|
1053
|
|
- flex:1;
|
1054
|
|
- overflow-y: auto;
|
1055
|
|
- }
|
|
1083
|
+
|
|
1084
|
+ .el-tabs__content {
|
|
1085
|
+ flex: 1;
|
|
1086
|
+ overflow-y: auto;
|
|
1087
|
+ }
|
|
1088
|
+
|
1056
|
1089
|
}
|
1057
|
1090
|
|
1058
|
1091
|
.costBox {
|
|
@@ -1106,10 +1139,11 @@
|
1106
|
1139
|
}
|
1107
|
1140
|
|
1108
|
1141
|
}
|
1109
|
|
- .rightTabs{
|
|
1142
|
+ .rightTabs {
|
1110
|
1143
|
display: flex;
|
1111
|
1144
|
flex-direction: column;
|
1112
|
1145
|
}
|
|
1146
|
+
|
1113
|
1147
|
.comfirmBox {
|
1114
|
1148
|
width: 100%;
|
1115
|
1149
|
height: 60px;
|
|
@@ -1165,22 +1199,27 @@
|
1165
|
1199
|
|
1166
|
1200
|
}
|
1167
|
1201
|
.preTabs {
|
1168
|
|
- .el-tabs__content{
|
1169
|
|
- flex:1;
|
1170
|
|
- overflow-y: auto;
|
1171
|
|
- }
|
|
1202
|
+
|
|
1203
|
+ .el-tabs__content {
|
|
1204
|
+ flex: 1;
|
|
1205
|
+ overflow-y: auto;
|
|
1206
|
+ }
|
|
1207
|
+
|
1172
|
1208
|
}
|
1173
|
1209
|
.rightTabs {
|
1174
|
1210
|
height: 100%;
|
1175
|
|
- .el-tabs__content{
|
1176
|
|
- flex:1;
|
1177
|
|
- overflow-y: auto;
|
1178
|
|
- }
|
1179
|
|
- .el-tab-pane{
|
1180
|
|
- display: flex;
|
1181
|
|
- flex-direction: column;
|
1182
|
|
- height:100%;
|
1183
|
|
- }
|
|
1211
|
+
|
|
1212
|
+ .el-tabs__content {
|
|
1213
|
+ flex: 1;
|
|
1214
|
+ overflow-y: auto;
|
|
1215
|
+ }
|
|
1216
|
+
|
|
1217
|
+ .el-tab-pane {
|
|
1218
|
+ display: flex;
|
|
1219
|
+ flex-direction: column;
|
|
1220
|
+ height: 100%;
|
|
1221
|
+ }
|
|
1222
|
+
|
1184
|
1223
|
}
|
1185
|
1224
|
#tab-more {
|
1186
|
1225
|
|