|
@@ -1,198 +1,216 @@
|
1
|
1
|
<template>
|
2
|
|
- <div class="prescriptionTable">
|
3
|
|
- <el-table :data="tableData" border style="width: 99%;" :row-style="{ color: '#303133' }" :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
4
|
|
- <el-table-column align="center" type="selection" width="40"></el-table-column>
|
5
|
|
- <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
|
6
|
|
- <el-table-column align="center" prop="name" label="名称">
|
7
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
8
|
|
- </el-table-column>
|
9
|
|
- <el-table-column align="center" prop="name" width="50" label="组套">
|
10
|
|
- <template slot-scope="scope">
|
11
|
|
- <!-- <el-select v-model="value" placeholder="">
|
12
|
|
- <el-option
|
13
|
|
- v-for="item in newoptions"
|
14
|
|
- :key="item.value"
|
15
|
|
- :label="item.label"
|
16
|
|
- :value="item.value">
|
17
|
|
- </el-option>
|
18
|
|
- </el-select> -->
|
19
|
|
- <el-input v-model="input" placeholder=""></el-input>
|
20
|
|
- </template>
|
21
|
|
- </el-table-column>
|
22
|
|
- <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
|
23
|
|
- <template slot-scope="scope">
|
24
|
|
- <el-input v-model="input" placeholder=""></el-input>
|
25
|
|
- </template>
|
26
|
|
- </el-table-column>
|
27
|
|
- <el-table-column align="center" prop="name" width="50" label="用法">
|
28
|
|
- <template slot-scope="scope">
|
29
|
|
- <!-- <el-select v-model="value" placeholder="">
|
30
|
|
- <el-option
|
31
|
|
- v-for="item in newoptions"
|
32
|
|
- :key="item.value"
|
33
|
|
- :label="item.label"
|
34
|
|
- :value="item.value">
|
35
|
|
- </el-option>
|
36
|
|
- </el-select> -->
|
37
|
|
- <el-input v-model="input" placeholder=""></el-input>
|
38
|
|
- </template>
|
39
|
|
- </el-table-column>
|
40
|
|
- <el-table-column align="center" prop="name" width="50" label="频率">
|
41
|
|
- <template slot-scope="scope">
|
42
|
|
- <!-- <el-select v-model="value" placeholder="">
|
43
|
|
- <el-option
|
44
|
|
- v-for="item in newoptions"
|
45
|
|
- :key="item.value"
|
46
|
|
- :label="item.label"
|
47
|
|
- :value="item.value">
|
48
|
|
- </el-option>
|
49
|
|
- </el-select> -->
|
50
|
|
- <el-input v-model="input" placeholder=""></el-input>
|
51
|
|
- </template>
|
52
|
|
- </el-table-column>
|
53
|
|
- <el-table-column align="center" prop="name" width="50" label="天数">
|
54
|
|
- <template slot-scope="scope">
|
55
|
|
- <!-- <el-select v-model="value" placeholder="">
|
56
|
|
- <el-option
|
57
|
|
- v-for="item in newoptions"
|
58
|
|
- :key="item.value"
|
59
|
|
- :label="item.label"
|
60
|
|
- :value="item.value">
|
61
|
|
- </el-option>
|
62
|
|
- </el-select> -->
|
63
|
|
- <el-input v-model="input" placeholder=""></el-input>
|
64
|
|
- </template>
|
65
|
|
- </el-table-column>
|
66
|
|
- <el-table-column align="center" prop="name" width="100" label="总量">
|
67
|
|
- <template slot-scope="scope">
|
68
|
|
- <div style="display:flex;">
|
69
|
|
- <el-input v-model="input" style="width:50%" placeholder=""></el-input>
|
70
|
|
- <!-- <el-select v-model="value" style="width:50%" placeholder="">
|
71
|
|
- <el-option
|
72
|
|
- v-for="item in newoptions"
|
73
|
|
- :key="item.value"
|
74
|
|
- :label="item.label"
|
75
|
|
- :value="item.value">
|
76
|
|
- </el-option>
|
77
|
|
- </el-select> -->
|
78
|
|
- <el-input v-model="input" style="width:50%" placeholder=""></el-input>
|
79
|
|
- </div>
|
80
|
|
- </template>
|
81
|
|
- </el-table-column>
|
82
|
|
- <el-table-column align="center" prop="name" width="50" label="单价">
|
83
|
|
- <template slot-scope="scope">
|
84
|
|
- <el-input v-model="scope.row.unitPrice" placeholder=""></el-input>
|
85
|
|
- </template>
|
86
|
|
- </el-table-column>
|
87
|
|
- <el-table-column align="center" prop="name" width="50" label="备注">
|
88
|
|
- <template slot-scope="scope">
|
89
|
|
- <!-- <el-autocomplete
|
90
|
|
- class="inline-input"
|
91
|
|
- v-model="state1"
|
92
|
|
- :fetch-suggestions="querySearch"
|
93
|
|
- placeholder=""
|
94
|
|
- @select="handleSelect"
|
95
|
|
- ></el-autocomplete> -->
|
96
|
|
- </template>
|
97
|
|
- </el-table-column>
|
98
|
|
- <el-table-column align="center" width="40" prop="name" label="操作">
|
99
|
|
- <template slot-scope="scope">
|
100
|
|
- <i class="el-icon-delete"></i>
|
101
|
|
- </template>
|
102
|
|
- </el-table-column>
|
103
|
|
- </el-table>
|
104
|
|
-
|
105
|
|
- <div class="additionalBox">
|
106
|
|
- <div class="additionalOne" v-for="(item,index) in 8" :key="index">
|
107
|
|
- <span>治疗费</span>
|
108
|
|
- <el-input v-model="input" placeholder="" style="width:50px;"></el-input>
|
109
|
|
- 共
|
110
|
|
- <el-input v-model="input" placeholder="" style="width:50px;"></el-input>
|
111
|
|
- 次
|
112
|
|
- <i class="el-icon-delete deleteIcon"></i>
|
113
|
|
- </div>
|
114
|
|
- </div>
|
115
|
|
- </div>
|
|
2
|
+ <div class="prescriptionTable">
|
|
3
|
+ <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
|
|
4
|
+ :row-style="{ color: '#303133' }"
|
|
5
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
|
6
|
+ <el-table-column align="center" prop="name" label="名称">
|
|
7
|
+ <template slot-scope="scope">{{ scope.row.advice_name }}</template>
|
|
8
|
+ </el-table-column>
|
|
9
|
+
|
|
10
|
+ <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
|
|
11
|
+ <template slot-scope="scope">
|
|
12
|
+ <el-input v-model="scope.row.single_dose" readonly></el-input>
|
|
13
|
+ <div> {{scope.row.min_unit}}</div>
|
|
14
|
+ </template>
|
|
15
|
+ </el-table-column>
|
|
16
|
+ <el-table-column align="center" prop="name" width="50" label="用法">
|
|
17
|
+ <template slot-scope="scope">
|
|
18
|
+ <el-select v-model="scope.row.delivery_way" readonly placeholder="请选择">
|
|
19
|
+ <el-option
|
|
20
|
+ v-for="item,index in drugways"
|
|
21
|
+ :key="index"
|
|
22
|
+ :label="item.name"
|
|
23
|
+ :value="item.name">
|
|
24
|
+ </el-option>
|
|
25
|
+ </el-select>
|
|
26
|
+ </template>
|
|
27
|
+ </el-table-column>
|
|
28
|
+ <el-table-column align="center" prop="name" width="50" label="频率">
|
|
29
|
+ <template slot-scope="scope">
|
|
30
|
+ <el-select v-model="scope.row.execution_frequency" readonly placeholder="请选择">
|
|
31
|
+ <el-option
|
|
32
|
+ v-for="item in efs"
|
|
33
|
+ :key="index"
|
|
34
|
+ :label="item.name"
|
|
35
|
+ :value="item.name">
|
|
36
|
+ </el-option>
|
|
37
|
+ </el-select>
|
|
38
|
+ </template>
|
|
39
|
+ </el-table-column>
|
|
40
|
+
|
|
41
|
+ <el-table-column align="center" prop="name" width="100" label="总量">
|
|
42
|
+ <template slot-scope="scope">
|
|
43
|
+ <div style="display:flex;">
|
|
44
|
+ <el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>
|
|
45
|
+ <div> {{scope.row.min_unit}}</div>
|
|
46
|
+ </div>
|
|
47
|
+ </template>
|
|
48
|
+ </el-table-column>
|
|
49
|
+ <el-table-column align="center" prop="name" width="50" label="单价">
|
|
50
|
+ <template slot-scope="scope">
|
|
51
|
+ <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
|
|
52
|
+ </template>
|
|
53
|
+ </el-table-column>
|
|
54
|
+ <el-table-column align="center" prop="name" width="50" label="备注">
|
|
55
|
+ <template slot-scope="scope">
|
|
56
|
+ <el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>
|
|
57
|
+ </template>
|
|
58
|
+ </el-table-column>
|
|
59
|
+ </el-table>
|
|
60
|
+ <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
|
|
61
|
+ :row-style="{ color: '#303133' }"
|
|
62
|
+ :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
|
|
63
|
+
|
|
64
|
+ <el-table-column align="center" prop="project_name" label="名称">
|
|
65
|
+ <template slot-scope="scope">{{ scope.row.project.project_name }}</template>
|
|
66
|
+ </el-table-column>
|
|
67
|
+ <el-table-column align="center" prop="statistical_classification" width="50" label="组">
|
|
68
|
+ <template slot-scope="scope">
|
|
69
|
+ {{getGroup(scope.row.project.statistical_classification)}}
|
|
70
|
+ </template>
|
|
71
|
+ </el-table-column>
|
|
72
|
+ <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
|
|
73
|
+ <!--<template slot-scope="scope">-->
|
|
74
|
+ <!--<!–<el-input v-model="scope.row.project.single_dose" placeholder="" readonly></el-input>–>-->
|
|
75
|
+ <!--</template>-->
|
|
76
|
+ </el-table-column>
|
|
77
|
+ <el-table-column align="center" prop="delivery_way" width="130" label="用法">
|
|
78
|
+ <!--<template slot-scope="scope">-->
|
|
79
|
+ <!--<el-input v-model="scope.row.project.delivery_way" placeholder="" readonly></el-input>-->
|
|
80
|
+ <!--</template>-->
|
|
81
|
+ </el-table-column>
|
|
82
|
+ <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
|
|
83
|
+ <!--<template slot-scope="scope">-->
|
|
84
|
+ <!--<el-input v-model="scope.row.project.execution_frequency" placeholder="" readonly></el-input>-->
|
|
85
|
+ <!--</template>-->
|
|
86
|
+ </el-table-column>
|
|
87
|
+ <el-table-column align="center" prop="number_days" width="130" label="天数">
|
|
88
|
+ <!--<template slot-scope="scope">-->
|
|
89
|
+ <!--<el-input v-model="scope.row.project.number_days" placeholder="" readonly></el-input>-->
|
|
90
|
+ <!--</template>-->
|
|
91
|
+ </el-table-column>
|
|
92
|
+ <el-table-column align="center" prop="total" width="100" label="总量">
|
|
93
|
+ <template slot-scope="scope">
|
|
94
|
+ <div style="display:flex;">
|
|
95
|
+ <el-input v-model="scope.row.project.total" style="width:50" placeholder="" readonly></el-input>
|
|
96
|
+ </div>
|
|
97
|
+ </template>
|
|
98
|
+ </el-table-column>
|
|
99
|
+ <el-table-column align="center" prop="name" width="50" label="单价">
|
|
100
|
+ <template slot-scope="scope">
|
|
101
|
+ <el-input v-model="scope.row.project.price" placeholder="" readonly></el-input>
|
|
102
|
+ </template>
|
|
103
|
+ </el-table-column>
|
|
104
|
+ <el-table-column align="center" prop="name" width="120" label="备注">
|
|
105
|
+ <!--<template slot-scope="scope">-->
|
|
106
|
+ <!--<el-input v-model="scope.row.project.remark" readonly></el-input>-->
|
|
107
|
+ <!--</template>-->
|
|
108
|
+ </el-table-column>
|
|
109
|
+ </el-table>
|
|
110
|
+ </div>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
116
|
116
|
</template>
|
117
|
117
|
|
118
|
118
|
<script>
|
119
|
|
-export default {
|
120
|
|
- props:{
|
121
|
|
- preTableData:Array
|
|
119
|
+ import { getInitData } from '@/api/his/his'
|
|
120
|
+ import { getDictionaryDataConfig} from "@/utils/data";
|
|
121
|
+
|
|
122
|
+ export default {
|
|
123
|
+ props: {
|
|
124
|
+ prescription: Object
|
122
|
125
|
},
|
123
|
|
- data(){
|
124
|
|
- return{
|
125
|
|
- // tableData: [],
|
126
|
|
- tableData: [{
|
127
|
|
- date: '2016-05-02',
|
128
|
|
- name: '王小虎',
|
129
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
130
|
|
- }, {
|
131
|
|
- date: '2016-05-04',
|
132
|
|
- name: '王小虎',
|
133
|
|
- address: '上海市普陀区金沙江路 1517 弄'
|
134
|
|
- }, {
|
135
|
|
- date: '2016-05-01',
|
136
|
|
- name: '王小虎',
|
137
|
|
- address: '上海市普陀区金沙江路 1519 弄'
|
138
|
|
- }, {
|
139
|
|
- date: '2016-05-03',
|
140
|
|
- name: '王小虎',
|
141
|
|
- address: '上海市普陀区金沙江路 1516 弄'
|
142
|
|
- },{
|
143
|
|
- date: '2016-05-02',
|
144
|
|
- name: '王小虎',
|
145
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
146
|
|
- }, {
|
147
|
|
- date: '2016-05-04',
|
148
|
|
- name: '王小虎',
|
149
|
|
- address: '上海市普陀区金沙江路 1517 弄'
|
150
|
|
- }, {
|
151
|
|
- date: '2016-05-01',
|
152
|
|
- name: '王小虎',
|
153
|
|
- address: '上海市普陀区金沙江路 1519 弄'
|
154
|
|
- }, {
|
155
|
|
- date: '2016-05-03',
|
156
|
|
- name: '王小虎',
|
157
|
|
- address: '上海市普陀区金沙江路 1516 弄'
|
158
|
|
- },{
|
159
|
|
- date: '2016-05-02',
|
160
|
|
- name: '王小虎',
|
161
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
162
|
|
- }, {
|
163
|
|
- date: '2016-05-04',
|
164
|
|
- name: '王小虎',
|
165
|
|
- address: '上海市普陀区金沙江路 1517 弄'
|
166
|
|
- }, {
|
167
|
|
- date: '2016-05-01',
|
168
|
|
- name: '王小虎',
|
169
|
|
- address: '上海市普陀区金沙江路 1519 弄'
|
170
|
|
- }, {
|
171
|
|
- date: '2016-05-03',
|
172
|
|
- name: '王小虎',
|
173
|
|
- address: '上海市普陀区金沙江路 1516 弄'
|
174
|
|
- }],
|
175
|
|
- newoptions: [{
|
176
|
|
- value: '1',
|
177
|
|
- label: '1'
|
178
|
|
- }, {
|
179
|
|
- value: '2',
|
180
|
|
- label: '2'
|
181
|
|
- }, {
|
182
|
|
- value: '3',
|
183
|
|
- label: '3'
|
184
|
|
- }, {
|
185
|
|
- value: '4',
|
186
|
|
- label: '4'
|
187
|
|
- }, {
|
188
|
|
- value: '5',
|
189
|
|
- label: '5'
|
190
|
|
- }],
|
191
|
|
- value:'1',
|
192
|
|
- input:1
|
|
126
|
+ data() {
|
|
127
|
+ return {
|
|
128
|
+ drugways: [],
|
|
129
|
+ efs: []
|
|
130
|
+ }
|
|
131
|
+ }, mounted() {
|
|
132
|
+ getInitData().then(response => {
|
|
133
|
+ if (response.data.state == 0) {
|
|
134
|
+ this.$message.error(response.data.msg)
|
|
135
|
+ return false
|
|
136
|
+ } else {
|
|
137
|
+ this.drugways = response.data.data.drugways
|
|
138
|
+ this.efs = response.data.data.efs
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
193
|
196
|
}
|
|
197
|
+ })
|
|
198
|
+ }, methods: {
|
|
199
|
+ getGroup(id){
|
|
200
|
+ var name = ""
|
|
201
|
+ var statistics_category = getDictionaryDataConfig('system','statistics_category')
|
|
202
|
+ console.log("2235",statistics_category)
|
|
203
|
+ for(let i=0;i<statistics_category.length;i++){
|
|
204
|
+ if(id == statistics_category[i].id){
|
|
205
|
+ name = statistics_category[i].name
|
|
206
|
+ }
|
|
207
|
+ }
|
|
208
|
+ return name
|
|
209
|
+ },
|
|
210
|
+
|
|
211
|
+
|
194
|
212
|
}
|
195
|
|
-}
|
|
213
|
+ }
|
196
|
214
|
</script>
|
197
|
215
|
|
198
|
216
|
<style lang="scss">
|