|
@@ -197,10 +197,14 @@
|
197
|
197
|
<el-table ref="multipleTableTwo" :height="multipleTableHeight != '' ? multipleTableHeight : '200'" :data="advices_template" border
|
198
|
198
|
:row-style="{ color: '#303133' }"
|
199
|
199
|
:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
|
200
|
|
- highlight-current-row>
|
|
200
|
+ highlight-current-row
|
|
201
|
+ @select='selectTemplate'
|
|
202
|
+ @select-all="changeTemplateData"
|
|
203
|
+
|
|
204
|
+ >
|
201
|
205
|
<el-table-column type="selection" width="40" align="center"></el-table-column>
|
202
|
206
|
<el-table-column prop="name" label="名称">
|
203
|
|
- <template slot-scope="scope">{{}}</template>
|
|
207
|
+ <template slot-scope="scope">{{scope.row.name}}</template>
|
204
|
208
|
</el-table-column>
|
205
|
209
|
<!--<el-table-column label="规格" width="60">-->
|
206
|
210
|
<!--<template slot-scope="scope">33</template>-->
|
|
@@ -392,10 +396,18 @@
|
392
|
396
|
diagnoses: [],
|
393
|
397
|
diagnose:'',
|
394
|
398
|
curTotal: 0,
|
395
|
|
- prescription_id: 0
|
|
399
|
+ prescription_id: 0,
|
|
400
|
+ tempDrugs:[]
|
|
401
|
+
|
396
|
402
|
}
|
397
|
403
|
},
|
398
|
404
|
methods: {
|
|
405
|
+ selectTemplate(selection, row){
|
|
406
|
+ this.tempDrugs = selection
|
|
407
|
+
|
|
408
|
+ },changeTemplateData(selection){
|
|
409
|
+ this.tempDrugs = selection
|
|
410
|
+ },
|
399
|
411
|
stockInCount: function(row) {
|
400
|
412
|
let total = 0;
|
401
|
413
|
if(row.stock_in != null) {
|
|
@@ -1042,7 +1054,9 @@
|
1042
|
1054
|
this.$message.error('该处方已经结算或者退费,无法继续添加药品或者项目')
|
1043
|
1055
|
this.teamList = []
|
1044
|
1056
|
this.curDrugs = []
|
|
1057
|
+ this.tempDrugs = []
|
1045
|
1058
|
this.$refs.tables.clearSelection()
|
|
1059
|
+ this.$refs.multipleTableTwo.clearSelection()
|
1046
|
1060
|
this.$refs.multipleTable.clearSelection()
|
1047
|
1061
|
return
|
1048
|
1062
|
}
|
|
@@ -1051,13 +1065,17 @@
|
1051
|
1065
|
this.$message.error('改处方是药品,无法添加项目')
|
1052
|
1066
|
this.teamList = []
|
1053
|
1067
|
this.$refs.tables.clearSelection()
|
|
1068
|
+
|
1054
|
1069
|
return
|
1055
|
1070
|
}
|
1056
|
1071
|
|
1057
|
1072
|
if (this.curStatus == 2 && this.rightTab == 1) {
|
1058
|
1073
|
this.$message.error('改处方是项目,无法添加药品')
|
1059
|
1074
|
this.curDrugs = []
|
|
1075
|
+ this.tempDrugs = []
|
1060
|
1076
|
this.$refs.multipleTable.clearSelection()
|
|
1077
|
+ this.$refs.multipleTableTwo.clearSelection()
|
|
1078
|
+
|
1061
|
1079
|
return
|
1062
|
1080
|
}
|
1063
|
1081
|
|
|
@@ -1066,7 +1084,6 @@
|
1066
|
1084
|
if (this.teamList[i].id == this.curPrescriptions.project[a].project_id) {
|
1067
|
1085
|
this.$message.error('改处方存在相同的项目,无法添加相同的项目')
|
1068
|
1086
|
return
|
1069
|
|
-
|
1070
|
1087
|
}
|
1071
|
1088
|
}
|
1072
|
1089
|
}
|