|
@@ -6,10 +6,7 @@
|
6
|
6
|
<div class="banner_left">
|
7
|
7
|
<div>
|
8
|
8
|
透析模式:
|
9
|
|
- <el-select
|
10
|
|
- v-model="modeOptions_value"
|
11
|
|
- placeholder="请选择"
|
12
|
|
- >
|
|
9
|
+ <el-select v-model="modeOptions_value" placeholder="请选择">
|
13
|
10
|
<el-option
|
14
|
11
|
v-for="item in modeOptions"
|
15
|
12
|
:key="item.id"
|
|
@@ -21,7 +18,11 @@
|
21
|
18
|
</div>
|
22
|
19
|
<div>
|
23
|
20
|
删除类型:
|
24
|
|
- <el-select v-model="new_type" placeholder="请选择" @change="changetype">
|
|
21
|
+ <el-select
|
|
22
|
+ v-model="new_type"
|
|
23
|
+ placeholder="请选择"
|
|
24
|
+ @change="changetype"
|
|
25
|
+ >
|
25
|
26
|
<el-option
|
26
|
27
|
v-for="item in options"
|
27
|
28
|
:key="item.id"
|
|
@@ -67,8 +68,8 @@
|
67
|
68
|
</div>
|
68
|
69
|
</div>
|
69
|
70
|
|
70
|
|
-<!-- <button @click="lili">调试</button>-->
|
71
|
|
- <el-button @click="save">保存</el-button>
|
|
71
|
+ <!-- <button @click="lili">调试</button>-->
|
|
72
|
+ <el-button type="primary" @click="save">保存</el-button>
|
72
|
73
|
</div>
|
73
|
74
|
|
74
|
75
|
<el-container>
|
|
@@ -89,16 +90,16 @@
|
89
|
90
|
>
|
90
|
91
|
<el-table-column type="selection" width="55"> </el-table-column>
|
91
|
92
|
<el-table-column label="患者姓名" width="155">
|
92
|
|
- <template slot-scope="scope" >{{ scope.row.name }}</template>
|
|
93
|
+ <template slot-scope="scope">{{ scope.row.name }}</template>
|
93
|
94
|
</el-table-column>
|
94
|
95
|
</el-table>
|
95
|
96
|
</div>
|
96
|
97
|
|
97
|
98
|
<el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
|
98
|
99
|
<el-tab-pane
|
99
|
|
- v-for="(item,index) in list"
|
|
100
|
+ v-for="(item, index) in list"
|
100
|
101
|
:key="index"
|
101
|
|
- :label="'处方'+(index+1)"
|
|
102
|
+ :label="'处方' + (index + 1)"
|
102
|
103
|
:name="index"
|
103
|
104
|
>
|
104
|
105
|
<el-table
|
|
@@ -109,56 +110,56 @@
|
109
|
110
|
border
|
110
|
111
|
:row-style="{ color: '#303133' }"
|
111
|
112
|
:header-cell-style="{
|
112
|
|
- backgroundColor: 'rgb(245, 247, 250)',
|
113
|
|
- color: '#606266',
|
114
|
|
- }"
|
|
113
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
114
|
+ color: '#606266',
|
|
115
|
+ }"
|
115
|
116
|
>
|
116
|
117
|
<el-table-column fixed label="药品名称" width="230">
|
117
|
118
|
<template slot-scope="scope">
|
118
|
|
- {{scope.row.advice_name}}
|
|
119
|
+ {{ scope.row.advice_name }}
|
119
|
120
|
</template>
|
120
|
121
|
</el-table-column>
|
121
|
122
|
<el-table-column label="单次用量" width="200">
|
122
|
123
|
<template slot-scope="scope">
|
123
|
|
- {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
|
|
124
|
+ {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
|
124
|
125
|
</template>
|
125
|
126
|
</el-table-column>
|
126
|
127
|
<el-table-column label="用法" width="120">
|
127
|
128
|
<template slot-scope="scope">
|
128
|
|
- {{scope.row.delivery_way}}
|
|
129
|
+ {{ scope.row.delivery_way }}
|
129
|
130
|
</template>
|
130
|
131
|
</el-table-column>
|
131
|
132
|
<el-table-column label="频率" width="120">
|
132
|
133
|
<template slot-scope="scope">
|
133
|
|
- {{scope.row.execution_frequency}}
|
|
134
|
+ {{ scope.row.execution_frequency }}
|
134
|
135
|
</template>
|
135
|
136
|
</el-table-column>
|
136
|
137
|
<el-table-column label="天数" width="110">
|
137
|
|
- <template slot-scope="scope">
|
138
|
|
- {{scope.row.day}}天
|
139
|
|
- </template>
|
|
138
|
+ <template slot-scope="scope"> {{ scope.row.day }}天 </template>
|
140
|
139
|
</el-table-column>
|
141
|
140
|
<el-table-column label="总量" width="200">
|
142
|
141
|
<template slot-scope="scope">
|
143
|
|
- {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
|
|
142
|
+ {{ scope.row.prescribing_number
|
|
143
|
+ }}{{ scope.row.prescribing_number_unit }}
|
144
|
144
|
</template>
|
145
|
145
|
</el-table-column>
|
146
|
146
|
<el-table-column label="单价" width="120">
|
147
|
147
|
<template slot-scope="scope">
|
148
|
|
- {{scope.row.price}}元
|
|
148
|
+ {{ scope.row.price }}元
|
149
|
149
|
</template>
|
150
|
150
|
</el-table-column>
|
151
|
151
|
<el-table-column label="备注" width="120">
|
152
|
152
|
<template slot-scope="scope">
|
153
|
|
- {{scope.row.remark}}
|
|
153
|
+ {{ scope.row.remark }}
|
154
|
154
|
</template>
|
155
|
155
|
</el-table-column>
|
156
|
156
|
<el-table-column label="操作" width="120">
|
157
|
157
|
<template slot-scope="scope">
|
158
|
158
|
<el-button
|
159
|
|
- @click.native.prevent="delects(scope.$index,scope,item)"
|
|
159
|
+ @click.native.prevent="delects(scope.$index, scope, item)"
|
160
|
160
|
type="text"
|
161
|
|
- size="small">
|
|
161
|
+ size="small"
|
|
162
|
+ >
|
162
|
163
|
删除
|
163
|
164
|
</el-button>
|
164
|
165
|
</template>
|
|
@@ -173,72 +174,85 @@
|
173
|
174
|
border
|
174
|
175
|
:row-style="{ color: '#303133' }"
|
175
|
176
|
:header-cell-style="{
|
176
|
|
- backgroundColor: 'rgb(245, 247, 250)',
|
177
|
|
- color: '#606266',
|
178
|
|
- }"
|
|
177
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
178
|
+ color: '#606266',
|
|
179
|
+ }"
|
179
|
180
|
>
|
180
|
181
|
<el-table-column fixed label="项目名称" width="230">
|
181
|
182
|
<template slot-scope="scope">
|
182
|
|
- <div v-if="scope.row.type == 2">{{scope.row.project.project_name}}</div>
|
183
|
|
- <div v-if="scope.row.type == 3">{{scope.row.good_info.good_name}}</div>
|
|
183
|
+ <div v-if="scope.row.type == 2">
|
|
184
|
+ {{ scope.row.project.project_name }}
|
|
185
|
+ </div>
|
|
186
|
+ <div v-if="scope.row.type == 3">
|
|
187
|
+ {{ scope.row.good_info.good_name }}
|
|
188
|
+ </div>
|
184
|
189
|
</template>
|
185
|
190
|
</el-table-column>
|
186
|
191
|
<el-table-column label="组" width="120">
|
187
|
192
|
<template slot-scope="scope">
|
188
|
|
- <div v-if="scope.row.type == 2">{{scope.row.project.translate}}</div>
|
189
|
|
- <div v-if="scope.row.type == 3">{{scope.row.good_info.translate}}</div>
|
|
193
|
+ <div v-if="scope.row.type == 2">
|
|
194
|
+ {{ scope.row.project.translate }}
|
|
195
|
+ </div>
|
|
196
|
+ <div v-if="scope.row.type == 3">
|
|
197
|
+ {{ scope.row.good_info.translate }}
|
|
198
|
+ </div>
|
190
|
199
|
</template>
|
191
|
200
|
</el-table-column>
|
192
|
201
|
<el-table-column label="单次用量" width="120">
|
193
|
202
|
<template slot-scope="scope">
|
194
|
|
- {{scope.row.single_dose}}
|
|
203
|
+ {{ scope.row.single_dose }}
|
195
|
204
|
{{ scope.row.unit }}
|
196
|
205
|
</template>
|
197
|
206
|
</el-table-column>
|
198
|
207
|
<el-table-column label="用法" width="120">
|
199
|
208
|
<template slot-scope="scope">
|
200
|
|
- {{scope.row.delivery_way}}
|
|
209
|
+ {{ scope.row.delivery_way }}
|
201
|
210
|
</template>
|
202
|
211
|
</el-table-column>
|
203
|
212
|
<el-table-column label="频率" width="120">
|
204
|
213
|
<template slot-scope="scope">
|
205
|
|
- {{scope.row.execution_frequency}}
|
|
214
|
+ {{ scope.row.execution_frequency }}
|
206
|
215
|
</template>
|
207
|
216
|
</el-table-column>
|
208
|
217
|
<el-table-column label="天数" width="110">
|
209
|
|
- <template slot-scope="scope">
|
210
|
|
- {{scope.row.day}}天
|
211
|
|
- </template>
|
|
218
|
+ <template slot-scope="scope"> {{ scope.row.day }}天 </template>
|
212
|
219
|
</el-table-column>
|
213
|
220
|
<el-table-column label="总量" width="100">
|
214
|
221
|
<template slot-scope="scope">
|
215
|
|
- {{scope.row.count}}
|
|
222
|
+ {{ scope.row.count }}
|
216
|
223
|
{{ scope.row.unit }}
|
217
|
224
|
</template>
|
218
|
225
|
</el-table-column>
|
219
|
226
|
<el-table-column label="单价" width="120">
|
220
|
227
|
<template slot-scope="scope">
|
221
|
|
- {{scope.row.price}}元
|
|
228
|
+ {{ scope.row.price }}元
|
222
|
229
|
</template>
|
223
|
230
|
</el-table-column>
|
224
|
231
|
<el-table-column label="备注" width="120">
|
225
|
232
|
<template slot-scope="scope">
|
226
|
|
- {{scope.row.remark}}
|
|
233
|
+ {{ scope.row.remark }}
|
227
|
234
|
</template>
|
228
|
235
|
</el-table-column>
|
229
|
236
|
<el-table-column label="推送频率" width="120">
|
230
|
237
|
<template slot-scope="scope">
|
231
|
|
- <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>
|
232
|
|
- <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>
|
233
|
|
- <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>
|
|
238
|
+ <div v-if="scope.row.frequency_type == 1">
|
|
239
|
+ {{ "每次必推" }}
|
|
240
|
+ </div>
|
|
241
|
+ <div v-if="scope.row.frequency_type == 2">
|
|
242
|
+ {{ scope.row.day_count }}天/次
|
|
243
|
+ </div>
|
|
244
|
+ <div v-if="scope.row.frequency_type == 3">
|
|
245
|
+ {{ scope.row.week_days }}
|
|
246
|
+ </div>
|
234
|
247
|
</template>
|
235
|
248
|
</el-table-column>
|
236
|
249
|
<el-table-column fixed="right" label="操作" width="102">
|
237
|
250
|
<template slot-scope="scope">
|
238
|
251
|
<el-button
|
239
|
|
- @click.native.prevent="delects(scope.$index,scope,item)"
|
|
252
|
+ @click.native.prevent="delects(scope.$index, scope, item)"
|
240
|
253
|
type="text"
|
241
|
|
- size="small">
|
|
254
|
+ size="small"
|
|
255
|
+ >
|
242
|
256
|
删除
|
243
|
257
|
</el-button>
|
244
|
258
|
</template>
|
|
@@ -246,9 +260,6 @@
|
246
|
260
|
</el-table>
|
247
|
261
|
</el-tab-pane>
|
248
|
262
|
</el-tabs>
|
249
|
|
-
|
250
|
|
-
|
251
|
|
-
|
252
|
263
|
</el-container>
|
253
|
264
|
</div>
|
254
|
265
|
</div>
|
|
@@ -263,7 +274,7 @@ import {
|
263
|
274
|
batchdeleteitems,
|
264
|
275
|
getmodeconfigs,
|
265
|
276
|
ptemplateinformation,
|
266
|
|
- deleteone
|
|
277
|
+ deleteone,
|
267
|
278
|
} from "@/api/batch/batch";
|
268
|
279
|
|
269
|
280
|
export default {
|
|
@@ -273,93 +284,128 @@ export default {
|
273
|
284
|
tableList: [],
|
274
|
285
|
editableTabsValue: "1",
|
275
|
286
|
modeOptions: {},
|
276
|
|
- tableDatas:[{
|
277
|
|
- id: "",
|
278
|
|
- drug_name: "",
|
279
|
|
- single_dose: "",
|
280
|
|
- single_dose_unit: "",
|
281
|
|
- delivery_way: "",
|
282
|
|
- execution_frequency: "",
|
283
|
|
- day: "",
|
284
|
|
- prescribing_number: "",
|
285
|
|
- prescribing_number_unit: "",
|
286
|
|
- price: "",
|
287
|
|
- remark: "",
|
288
|
|
- },],//药品
|
289
|
|
- project:[ {
|
290
|
|
- id: "",
|
291
|
|
- drug_name: "",
|
292
|
|
- translate:"",
|
293
|
|
- single_dose: "",
|
294
|
|
- unit: "",
|
295
|
|
- delivery_way: "",
|
296
|
|
- execution_frequency: "",
|
297
|
|
- day: "",
|
298
|
|
- prescribing_number: "",
|
299
|
|
- price: "",
|
300
|
|
- remark: "",
|
301
|
|
- frequency_type:1,
|
302
|
|
- day_count:"",
|
303
|
|
- week_days:"",
|
304
|
|
- },],//项目
|
|
287
|
+ tableDatas: [
|
|
288
|
+ {
|
|
289
|
+ id: "",
|
|
290
|
+ drug_name: "",
|
|
291
|
+ single_dose: "",
|
|
292
|
+ single_dose_unit: "",
|
|
293
|
+ delivery_way: "",
|
|
294
|
+ execution_frequency: "",
|
|
295
|
+ day: "",
|
|
296
|
+ prescribing_number: "",
|
|
297
|
+ prescribing_number_unit: "",
|
|
298
|
+ price: "",
|
|
299
|
+ remark: "",
|
|
300
|
+ },
|
|
301
|
+ ], //药品
|
|
302
|
+ project: [
|
|
303
|
+ {
|
|
304
|
+ id: "",
|
|
305
|
+ drug_name: "",
|
|
306
|
+ translate: "",
|
|
307
|
+ single_dose: "",
|
|
308
|
+ unit: "",
|
|
309
|
+ delivery_way: "",
|
|
310
|
+ execution_frequency: "",
|
|
311
|
+ day: "",
|
|
312
|
+ prescribing_number: "",
|
|
313
|
+ price: "",
|
|
314
|
+ remark: "",
|
|
315
|
+ frequency_type: 1,
|
|
316
|
+ day_count: "",
|
|
317
|
+ week_days: "",
|
|
318
|
+ },
|
|
319
|
+ ], //项目
|
305
|
320
|
tabIndex: 2,
|
306
|
321
|
modeOptions_value: 1, //透析模式
|
307
|
|
- multipleSelection: [],//选中的患者
|
308
|
|
- tableData:[],
|
309
|
|
- options:[{id:1,name:"药品"},{id:2,name:"项目"}],
|
310
|
|
- options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
|
311
|
|
- options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
|
312
|
|
- new_type:1,//新增类型
|
313
|
|
- druglist:[],//药品列表
|
314
|
|
- projectlist:[],//项目列表
|
315
|
|
- id:"",//药品、项目、耗材
|
316
|
|
- tmplist:[],//临时
|
317
|
|
- unit:[{id:1,name:"g"},{id:2,name:"mg"},{id:3,name:"u"},{id:4,name:"ml"},{id:5,name:"万U"},{id:6,name:"枚"},{id:7,name:"粒"},
|
318
|
|
- {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
|
319
|
|
- {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
|
320
|
|
- usage:[],//用法
|
321
|
|
- frequency:[],//频率
|
322
|
|
- frequency_type:"",//周期提醒
|
323
|
|
- day_count:"",//周期提醒天
|
324
|
|
- week_days:[],//周期提醒星期
|
325
|
|
- tabhang:0,//tab的下标
|
326
|
|
- hang:0,//行数
|
327
|
|
- list:[],
|
328
|
|
- isshow:0,//是否显示处方
|
329
|
|
- tmpid:0,
|
330
|
|
-
|
331
|
|
- }
|
|
322
|
+ multipleSelection: [], //选中的患者
|
|
323
|
+ tableData: [],
|
|
324
|
+ options: [
|
|
325
|
+ { id: 1, name: "药品" },
|
|
326
|
+ { id: 2, name: "项目" },
|
|
327
|
+ ],
|
|
328
|
+ options_patient: [
|
|
329
|
+ { id: 1, name: "是" },
|
|
330
|
+ { id: 2, name: "否" },
|
|
331
|
+ ],
|
|
332
|
+ options_2: [
|
|
333
|
+ { id: 1, name: "普通门诊" },
|
|
334
|
+ { id: 2, name: "门诊特殊病" },
|
|
335
|
+ ],
|
|
336
|
+ new_type: 1, //新增类型
|
|
337
|
+ druglist: [], //药品列表
|
|
338
|
+ projectlist: [], //项目列表
|
|
339
|
+ id: "", //药品、项目、耗材
|
|
340
|
+ tmplist: [], //临时
|
|
341
|
+ unit: [
|
|
342
|
+ { id: 1, name: "g" },
|
|
343
|
+ { id: 2, name: "mg" },
|
|
344
|
+ { id: 3, name: "u" },
|
|
345
|
+ { id: 4, name: "ml" },
|
|
346
|
+ { id: 5, name: "万U" },
|
|
347
|
+ { id: 6, name: "枚" },
|
|
348
|
+ { id: 7, name: "粒" },
|
|
349
|
+ { id: 8, name: "片" },
|
|
350
|
+ { id: 9, name: "支" },
|
|
351
|
+ { id: 10, name: "μg" },
|
|
352
|
+ { id: 11, name: "iu" },
|
|
353
|
+ { id: 12, name: "包" },
|
|
354
|
+ { id: 13, name: "袋" },
|
|
355
|
+ { id: 14, name: "万" },
|
|
356
|
+ { id: 15, name: "万iu" },
|
|
357
|
+ { id: 16, name: "丸" },
|
|
358
|
+ { id: 17, name: "盒" },
|
|
359
|
+ { id: 18, name: "瓶" },
|
|
360
|
+ { id: 19, name: "瓶(袋)" },
|
|
361
|
+ { id: 20, name: "次" },
|
|
362
|
+ ],
|
|
363
|
+ usage: [], //用法
|
|
364
|
+ frequency: [], //频率
|
|
365
|
+ frequency_type: "", //周期提醒
|
|
366
|
+ day_count: "", //周期提醒天
|
|
367
|
+ week_days: [], //周期提醒星期
|
|
368
|
+ tabhang: 0, //tab的下标
|
|
369
|
+ hang: 0, //行数
|
|
370
|
+ list: [],
|
|
371
|
+ isshow: 0, //是否显示处方
|
|
372
|
+ tmpid: 0,
|
|
373
|
+ };
|
332
|
374
|
},
|
333
|
375
|
created() {
|
334
|
376
|
// console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
|
335
|
377
|
for (let key in this.$store.getters.treatment_mode) {
|
336
|
|
- this.modeOptions[key] = this.$store.getters.treatment_mode[key]
|
|
378
|
+ this.modeOptions[key] = this.$store.getters.treatment_mode[key];
|
337
|
379
|
}
|
338
|
380
|
// console.log("this.modeOptions",this.modeOptions)
|
339
|
381
|
this.getdrugconfigs();
|
340
|
|
- this.isshow = 0
|
|
382
|
+ this.isshow = 0;
|
341
|
383
|
this.tmpid = 0;
|
342
|
384
|
},
|
343
|
385
|
methods: {
|
344
|
386
|
save() {
|
345
|
|
- var tmp = this.modeOptions[this.modeOptions_value].name
|
346
|
|
- var tmp2 = ""
|
347
|
|
- if (this.druglist != null){
|
348
|
|
- for(let i = 0;i < this.druglist.length;i++){
|
349
|
|
- if (this.id == this.druglist[i].id){
|
350
|
|
- tmp2 = this.druglist[i].name
|
|
387
|
+ var tmp = this.modeOptions[this.modeOptions_value].name;
|
|
388
|
+ var tmp2 = "";
|
|
389
|
+ if (this.druglist != null) {
|
|
390
|
+ for (let i = 0; i < this.druglist.length; i++) {
|
|
391
|
+ if (this.id == this.druglist[i].id) {
|
|
392
|
+ tmp2 = this.druglist[i].name;
|
351
|
393
|
}
|
352
|
394
|
}
|
353
|
395
|
}
|
354
|
|
- if(this.projectlist != null){
|
355
|
|
- for (let j = 0;j < this.projectlist.length;j++){
|
356
|
|
- if (this.id == this.projectlist[j].id){
|
357
|
|
- tmp2 = this.projectlist[j].name
|
|
396
|
+ if (this.projectlist != null) {
|
|
397
|
+ for (let j = 0; j < this.projectlist.length; j++) {
|
|
398
|
+ if (this.id == this.projectlist[j].id) {
|
|
399
|
+ tmp2 = this.projectlist[j].name;
|
358
|
400
|
}
|
359
|
401
|
}
|
360
|
402
|
}
|
361
|
403
|
this.$confirm(
|
362
|
|
- "注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,请确定是否删除?",
|
|
404
|
+ "注:该操作将会把所选患者的" +
|
|
405
|
+ tmp +
|
|
406
|
+ "透析模式中的" +
|
|
407
|
+ tmp2 +
|
|
408
|
+ "进行删除,请确定是否删除?",
|
363
|
409
|
"",
|
364
|
410
|
{
|
365
|
411
|
confirmButtonText: "确 定",
|
|
@@ -367,174 +413,177 @@ export default {
|
367
|
413
|
type: "warning",
|
368
|
414
|
}
|
369
|
415
|
).then(() => {
|
370
|
|
- if (this.multipleSelection.length == 0){
|
371
|
|
- this.$message.error('没有选中有效信息')
|
372
|
|
- return
|
|
416
|
+ if (this.multipleSelection.length == 0) {
|
|
417
|
+ this.$message.error("没有选中有效信息");
|
|
418
|
+ return;
|
373
|
419
|
}
|
374
|
|
- let st = ""
|
375
|
|
- for (let i = 0;i < this.multipleSelection.length;i++){
|
376
|
|
- st = st + this.multipleSelection[i].id + ","
|
|
420
|
+ let st = "";
|
|
421
|
+ for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
422
|
+ st = st + this.multipleSelection[i].id + ",";
|
377
|
423
|
}
|
378
|
|
- console.log("string",st)
|
|
424
|
+ console.log("string", st);
|
379
|
425
|
let params = {
|
380
|
|
- mode_id:this.modeOptions_value,
|
|
426
|
+ mode_id: this.modeOptions_value,
|
381
|
427
|
patient_id: st,
|
382
|
|
- type:this.new_type,
|
|
428
|
+ type: this.new_type,
|
383
|
429
|
replaced: this.id,
|
384
|
|
- }
|
385
|
|
- if (this.new_type == 1){
|
386
|
|
- deletedrugsbatch(params).then((res) =>{
|
387
|
|
- if (res.data.state == 1){
|
388
|
|
- this.$message.success('删除成功')
|
389
|
|
- this.getUsername()
|
390
|
|
- }else{
|
391
|
|
- this.$message.error(res.data.msg)
|
|
430
|
+ };
|
|
431
|
+ if (this.new_type == 1) {
|
|
432
|
+ deletedrugsbatch(params).then((res) => {
|
|
433
|
+ if (res.data.state == 1) {
|
|
434
|
+ this.$message.success("删除成功");
|
|
435
|
+ this.getUsername();
|
|
436
|
+ } else {
|
|
437
|
+ this.$message.error(res.data.msg);
|
392
|
438
|
}
|
393
|
|
- })
|
394
|
|
- }else{
|
395
|
|
- batchdeleteitems(params).then((res) =>{
|
396
|
|
- if (res.data.state == 1){
|
397
|
|
- this.$message.success('删除成功')
|
398
|
|
- this.getUsername()
|
399
|
|
- }else{
|
400
|
|
- this.$message.error(res.data.msg)
|
|
439
|
+ });
|
|
440
|
+ } else {
|
|
441
|
+ batchdeleteitems(params).then((res) => {
|
|
442
|
+ if (res.data.state == 1) {
|
|
443
|
+ this.$message.success("删除成功");
|
|
444
|
+ this.getUsername();
|
|
445
|
+ } else {
|
|
446
|
+ this.$message.error(res.data.msg);
|
401
|
447
|
}
|
402
|
|
- })
|
|
448
|
+ });
|
403
|
449
|
}
|
404
|
450
|
});
|
405
|
451
|
},
|
406
|
|
- test(val){
|
407
|
|
- console.log("val?:",val);
|
408
|
|
- this.tmpid = val.id
|
|
452
|
+ test(val) {
|
|
453
|
+ console.log("val?:", val);
|
|
454
|
+ this.tmpid = val.id;
|
409
|
455
|
var params = {
|
410
|
|
- mode_id:this.modeOptions_value,
|
411
|
|
- patient_id:val.id,
|
412
|
|
- }
|
413
|
|
- ptemplateinformation(params).then((res) =>{
|
414
|
|
- if (res.data.state == 1){
|
415
|
|
- this.list = res.data.data.list
|
416
|
|
- this.isshow = 1
|
|
456
|
+ mode_id: this.modeOptions_value,
|
|
457
|
+ patient_id: val.id,
|
|
458
|
+ };
|
|
459
|
+ ptemplateinformation(params).then((res) => {
|
|
460
|
+ if (res.data.state == 1) {
|
|
461
|
+ this.list = res.data.data.list;
|
|
462
|
+ this.isshow = 1;
|
417
|
463
|
}
|
418
|
|
- })
|
|
464
|
+ });
|
419
|
465
|
},
|
420
|
466
|
lili() {
|
421
|
|
- console.log("this.list",this.list);
|
422
|
|
- console.log("this.multipleSelection",this.multipleSelection)
|
|
467
|
+ console.log("this.list", this.list);
|
|
468
|
+ console.log("this.multipleSelection", this.multipleSelection);
|
423
|
469
|
// console.log("this.mode",this.modeOptions_value)
|
424
|
470
|
// console.log("this.projectlist2",this.projectlist2)
|
425
|
471
|
// console.log("patient_value",this.patient_value)
|
426
|
472
|
},
|
427
|
|
- delects(hang,sc,item){
|
428
|
|
- console.log("hang",hang)
|
429
|
|
- console.log("sc",sc)
|
430
|
|
- console.log("item",item)
|
431
|
|
- var params ={
|
432
|
|
- type:item.type,//1药品2项目
|
433
|
|
- id:sc.row.id,
|
434
|
|
- }
|
|
473
|
+ delects(hang, sc, item) {
|
|
474
|
+ console.log("hang", hang);
|
|
475
|
+ console.log("sc", sc);
|
|
476
|
+ console.log("item", item);
|
|
477
|
+ var params = {
|
|
478
|
+ type: item.type, //1药品2项目
|
|
479
|
+ id: sc.row.id,
|
|
480
|
+ };
|
435
|
481
|
var params2 = {
|
436
|
|
- mode_id:this.modeOptions_value,
|
437
|
|
- patient_id:this.tmpid,
|
438
|
|
- }
|
439
|
|
- deleteone(params).then((res) =>{
|
440
|
|
- if (res.data.state == 1){
|
441
|
|
- this.$message.success('删除成功')
|
442
|
|
- ptemplateinformation(params2).then((res) =>{
|
443
|
|
- if (res.data.state == 1){
|
444
|
|
- this.list = res.data.data.list
|
445
|
|
- this.isshow = 1
|
|
482
|
+ mode_id: this.modeOptions_value,
|
|
483
|
+ patient_id: this.tmpid,
|
|
484
|
+ };
|
|
485
|
+ deleteone(params).then((res) => {
|
|
486
|
+ if (res.data.state == 1) {
|
|
487
|
+ this.$message.success("删除成功");
|
|
488
|
+ ptemplateinformation(params2).then((res) => {
|
|
489
|
+ if (res.data.state == 1) {
|
|
490
|
+ this.list = res.data.data.list;
|
|
491
|
+ this.isshow = 1;
|
446
|
492
|
}
|
447
|
|
- })
|
|
493
|
+ });
|
448
|
494
|
}
|
449
|
|
- })
|
450
|
|
-
|
451
|
|
-
|
|
495
|
+ });
|
452
|
496
|
},
|
453
|
|
- changetype(){
|
454
|
|
- console.log(">>>>>>>",this.new_type)
|
455
|
|
- this.id = ""
|
456
|
|
- this.tableData = []
|
|
497
|
+ changetype() {
|
|
498
|
+ console.log(">>>>>>>", this.new_type);
|
|
499
|
+ this.id = "";
|
|
500
|
+ this.tableData = [];
|
457
|
501
|
},
|
458
|
|
- changeid(item,index){
|
459
|
|
- item.id = item.drug_name
|
|
502
|
+ changeid(item, index) {
|
|
503
|
+ item.id = item.drug_name;
|
460
|
504
|
var params = {
|
461
|
|
- id:item.id
|
462
|
|
- }
|
463
|
|
- getdrugsinformation(params).then((res) =>{
|
464
|
|
- if (res.data.state == 1){
|
465
|
|
- console.log("res??",res)
|
|
505
|
+ id: item.id,
|
|
506
|
+ };
|
|
507
|
+ getdrugsinformation(params).then((res) => {
|
|
508
|
+ if (res.data.state == 1) {
|
|
509
|
+ console.log("res??", res);
|
466
|
510
|
this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
|
467
|
|
- this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
|
|
511
|
+ this.tableDatas[0].single_dose_unit =
|
|
512
|
+ res.data.data.list[0].single_dose_unit;
|
468
|
513
|
this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
|
469
|
|
- this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
|
514
|
+ this.tableDatas[0].execution_frequency =
|
|
515
|
+ res.data.data.list[0].execution_frequency;
|
470
|
516
|
this.tableDatas[0].day = res.data.data.list[0].drug_day;
|
471
|
|
- this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
472
|
|
- this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
|
|
517
|
+ this.tableDatas[0].prescribing_number =
|
|
518
|
+ res.data.data.list[0].prescribing_number;
|
|
519
|
+ this.tableDatas[0].prescribing_number_unit =
|
|
520
|
+ res.data.data.list[0].prescribing_number_unit;
|
473
|
521
|
this.tableDatas[0].price = res.data.data.list[0].retail_price;
|
474
|
522
|
this.tableDatas[0].remark = res.data.data.list[0].remark;
|
475
|
523
|
}
|
476
|
|
- })
|
|
524
|
+ });
|
477
|
525
|
},
|
478
|
526
|
handleSelectionChange(val) {
|
479
|
527
|
this.multipleSelection = val;
|
480
|
528
|
},
|
481
|
|
- changeid2(item,index){
|
482
|
|
- item.id = item.drug_name
|
|
529
|
+ changeid2(item, index) {
|
|
530
|
+ item.id = item.drug_name;
|
483
|
531
|
var params = {
|
484
|
|
- id:item.id
|
485
|
|
- }
|
486
|
|
- getdrugsinformation(params).then((res) =>{
|
487
|
|
- if (res.data.state == 1){
|
488
|
|
- console.log("res??",res)
|
|
532
|
+ id: item.id,
|
|
533
|
+ };
|
|
534
|
+ getdrugsinformation(params).then((res) => {
|
|
535
|
+ if (res.data.state == 1) {
|
|
536
|
+ console.log("res??", res);
|
489
|
537
|
this.project[0].single_dose = res.data.data.list[0].single_dose;
|
490
|
538
|
this.project[0].translate = res.data.data.list[0].translate;
|
491
|
539
|
this.project[0].delivery_way = res.data.data.list[0].delivery_way;
|
492
|
|
- this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
|
540
|
+ this.project[0].execution_frequency =
|
|
541
|
+ res.data.data.list[0].execution_frequency;
|
493
|
542
|
this.project[0].day = res.data.data.list[0].day;
|
494
|
|
- this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
|
543
|
+ this.project[0].prescribing_number =
|
|
544
|
+ res.data.data.list[0].prescribing_number;
|
495
|
545
|
this.project[0].unit = res.data.data.list[0].unit;
|
496
|
546
|
this.project[0].price = res.data.data.list[0].retail_price;
|
497
|
547
|
this.project[0].remark = res.data.data.list[0].remark;
|
498
|
548
|
}
|
499
|
|
- })
|
|
549
|
+ });
|
500
|
550
|
},
|
501
|
551
|
//获取配置
|
502
|
|
- getdrugconfigs(){
|
503
|
|
- var params = {}
|
504
|
|
- replaceconfig(params).then((res) =>{
|
505
|
|
- if (res.data.state == 1){
|
506
|
|
- this.druglist = res.data.data.list
|
507
|
|
- this.projectlist = res.data.data.list2
|
|
552
|
+ getdrugconfigs() {
|
|
553
|
+ var params = {};
|
|
554
|
+ replaceconfig(params).then((res) => {
|
|
555
|
+ if (res.data.state == 1) {
|
|
556
|
+ this.druglist = res.data.data.list;
|
|
557
|
+ this.projectlist = res.data.data.list2;
|
508
|
558
|
}
|
509
|
|
- })
|
510
|
|
- getmodeconfigs(params).then((res) =>{
|
511
|
|
- if (res.data.state == 1){
|
512
|
|
- this.frequency = res.data.data.efs
|
513
|
|
- this.usage = res.data.data.drugways
|
|
559
|
+ });
|
|
560
|
+ getmodeconfigs(params).then((res) => {
|
|
561
|
+ if (res.data.state == 1) {
|
|
562
|
+ this.frequency = res.data.data.efs;
|
|
563
|
+ this.usage = res.data.data.drugways;
|
514
|
564
|
}
|
515
|
|
- })
|
|
565
|
+ });
|
516
|
566
|
},
|
517
|
|
- getUsername(){
|
|
567
|
+ getUsername() {
|
518
|
568
|
var params = {
|
519
|
569
|
id: this.id,
|
520
|
|
- mode: this.modeOptions_value
|
521
|
|
- }
|
522
|
|
- replacepeoplename(params).then((res) =>{
|
523
|
|
- if (res.data.state == 1){
|
524
|
|
- this.tableData = res.data.data.list
|
|
570
|
+ mode: this.modeOptions_value,
|
|
571
|
+ };
|
|
572
|
+ replacepeoplename(params).then((res) => {
|
|
573
|
+ if (res.data.state == 1) {
|
|
574
|
+ this.tableData = res.data.data.list;
|
525
|
575
|
}
|
526
|
|
- })
|
|
576
|
+ });
|
527
|
577
|
},
|
528
|
578
|
handleClose(done) {
|
529
|
|
- this.$confirm('确认关闭?')
|
530
|
|
- .then(_ => {
|
|
579
|
+ this.$confirm("确认关闭?")
|
|
580
|
+ .then((_) => {
|
531
|
581
|
done();
|
532
|
582
|
})
|
533
|
|
- .catch(_ => {});
|
534
|
|
- }
|
535
|
|
- }
|
536
|
|
-
|
537
|
|
-}
|
|
583
|
+ .catch((_) => {});
|
|
584
|
+ },
|
|
585
|
+ },
|
|
586
|
+};
|
538
|
587
|
</script>
|
539
|
588
|
|
540
|
589
|
|
|
@@ -544,59 +593,61 @@ export default {
|
544
|
593
|
margin-bottom: 10px;
|
545
|
594
|
display: flex;
|
546
|
595
|
justify-content: space-between;
|
547
|
|
-.banner_left {
|
548
|
|
- width: 1000px;
|
549
|
|
- display: flex;
|
550
|
|
- justify-content: space-around;
|
551
|
|
-div {
|
552
|
|
- white-space: nowrap;
|
553
|
|
-}
|
554
|
|
-}
|
|
596
|
+ .banner_left {
|
|
597
|
+ width: 1000px;
|
|
598
|
+ display: flex;
|
|
599
|
+ justify-content: space-around;
|
|
600
|
+ div {
|
|
601
|
+ font-size: 14px;
|
|
602
|
+ color: #606266;
|
|
603
|
+ white-space: nowrap;
|
|
604
|
+ }
|
|
605
|
+ }
|
555
|
606
|
}
|
556
|
607
|
.zone {
|
557
|
|
-// margin-left: 30px;
|
558
|
|
-// text-align: left;
|
|
608
|
+ // margin-left: 30px;
|
|
609
|
+ // text-align: left;
|
559
|
610
|
width: 70px;
|
560
|
611
|
display: inline-block;
|
561
|
612
|
color: #606266;
|
562
|
613
|
}
|
563
|
614
|
.disinfect {
|
564
|
615
|
position: relative;
|
565
|
|
-.newButton {
|
566
|
|
-// position: absolute;
|
567
|
|
-// right: 2%;
|
568
|
|
-// top:4px;
|
569
|
|
-// z-index: 9;
|
570
|
|
- margin-bottom: 10px;
|
571
|
|
- margin-left: 90%;
|
572
|
|
-}
|
|
616
|
+ .newButton {
|
|
617
|
+ // position: absolute;
|
|
618
|
+ // right: 2%;
|
|
619
|
+ // top:4px;
|
|
620
|
+ // z-index: 9;
|
|
621
|
+ margin-bottom: 10px;
|
|
622
|
+ margin-left: 90%;
|
|
623
|
+ }
|
573
|
624
|
}
|
574
|
625
|
.disinfectOne {
|
575
|
626
|
position: relative;
|
576
|
|
-.newButtonOne {
|
577
|
|
- position: absolute;
|
578
|
|
- right: 0;
|
579
|
|
- top: -10;
|
580
|
|
- z-index: 18;
|
581
|
|
-}
|
|
627
|
+ .newButtonOne {
|
|
628
|
+ position: absolute;
|
|
629
|
+ right: 0;
|
|
630
|
+ top: -10;
|
|
631
|
+ z-index: 18;
|
|
632
|
+ }
|
582
|
633
|
}
|
583
|
634
|
.but {
|
584
|
635
|
width: 200px;
|
585
|
636
|
height: 50px;
|
586
|
|
-// border: solid 1px red;
|
|
637
|
+ // border: solid 1px red;
|
587
|
638
|
margin-left: 77%;
|
588
|
639
|
}
|
589
|
640
|
.clearn {
|
590
|
641
|
width: 460px;
|
591
|
642
|
height: 50px;
|
592
|
|
-// border:solid 1px red;
|
|
643
|
+ // border:solid 1px red;
|
593
|
644
|
margin-left: 650px;
|
594
|
645
|
}
|
595
|
646
|
|
596
|
647
|
.zClass {
|
597
|
648
|
width: 200px;
|
598
|
649
|
height: 200px;
|
599
|
|
-// border:solid 1px red;
|
|
650
|
+ // border:solid 1px red;
|
600
|
651
|
margin-left: 450px;
|
601
|
652
|
margin-top: 200px;
|
602
|
653
|
}
|
|
@@ -620,41 +671,41 @@ div {
|
620
|
671
|
}
|
621
|
672
|
|
622
|
673
|
.b {
|
623
|
|
-.el-button {
|
624
|
|
- margin-left: 90%;
|
625
|
|
- margin-bottom: 10px;
|
626
|
|
-}
|
|
674
|
+ .el-button {
|
|
675
|
+ margin-left: 90%;
|
|
676
|
+ margin-bottom: 10px;
|
|
677
|
+ }
|
627
|
678
|
}
|
628
|
679
|
|
629
|
680
|
.stoppage {
|
630
|
|
-.el-form-item__label {
|
631
|
|
- width: 190px;
|
632
|
|
-}
|
|
681
|
+ .el-form-item__label {
|
|
682
|
+ width: 190px;
|
|
683
|
+ }
|
633
|
684
|
}
|
634
|
685
|
.st {
|
635
|
|
-.el-form-item__label {
|
636
|
|
- width: -10px;
|
637
|
|
-}
|
|
686
|
+ .el-form-item__label {
|
|
687
|
+ width: -10px;
|
|
688
|
+ }
|
638
|
689
|
}
|
639
|
690
|
.main {
|
640
|
691
|
position: relative;
|
641
|
|
-.newButtonOne {
|
642
|
|
- position: absolute;
|
643
|
|
- right: 0;
|
644
|
|
- z-index: 2;
|
645
|
|
-}
|
|
692
|
+ .newButtonOne {
|
|
693
|
+ position: absolute;
|
|
694
|
+ right: 0;
|
|
695
|
+ z-index: 2;
|
|
696
|
+ }
|
646
|
697
|
}
|
647
|
698
|
|
648
|
699
|
.elbutton {
|
649
|
|
-// border: solid 1px red;
|
|
700
|
+ // border: solid 1px red;
|
650
|
701
|
height: 50px;
|
651
|
702
|
width: 400px;
|
652
|
703
|
margin-left: 650px;
|
653
|
704
|
}
|
654
|
705
|
// .el-form-item__label {
|
655
|
|
- // width: 130px;
|
656
|
|
- // font-size: 14px;
|
657
|
|
- // }
|
|
706
|
+// width: 130px;
|
|
707
|
+// font-size: 14px;
|
|
708
|
+// }
|
658
|
709
|
.el-form-item__error {
|
659
|
710
|
margin-left: 130px;
|
660
|
711
|
}
|
|
@@ -673,45 +724,40 @@ div {
|
673
|
724
|
padding-top: 0px;
|
674
|
725
|
}
|
675
|
726
|
.newMain {
|
676
|
|
-.el-form-item__label {
|
677
|
|
- width: 104px;
|
678
|
|
-}
|
|
727
|
+ .el-form-item__label {
|
|
728
|
+ width: 104px;
|
|
729
|
+ }
|
679
|
730
|
}
|
680
|
731
|
.newDisinfectOne {
|
681
|
|
-.el-input--prefix .el-input__inner {
|
682
|
|
- padding-left: 15px;
|
683
|
|
-}
|
|
732
|
+ .el-input--prefix .el-input__inner {
|
|
733
|
+ padding-left: 15px;
|
|
734
|
+ }
|
684
|
735
|
}
|
685
|
736
|
.stoppage {
|
686
|
|
-.el-form-item__label {
|
687
|
|
- width: 18%;
|
688
|
|
-}
|
|
737
|
+ .el-form-item__label {
|
|
738
|
+ width: 18%;
|
|
739
|
+ }
|
689
|
740
|
}
|
690
|
741
|
.newItem {
|
691
|
|
-.el-form-item__label {
|
692
|
|
- width: 130px;
|
693
|
|
-}
|
|
742
|
+ .el-form-item__label {
|
|
743
|
+ width: 130px;
|
|
744
|
+ }
|
694
|
745
|
}
|
695
|
746
|
.formItem {
|
696
|
|
-.el-form-item__label {
|
697
|
|
- width: 104px;
|
698
|
|
- line-height: 30px;
|
699
|
|
-}
|
|
747
|
+ .el-form-item__label {
|
|
748
|
+ width: 104px;
|
|
749
|
+ line-height: 30px;
|
|
750
|
+ }
|
700
|
751
|
}
|
701
|
752
|
.newname {
|
702
|
|
-.el-form-item__label {
|
703
|
|
- width: 60px;
|
704
|
|
-}
|
|
753
|
+ .el-form-item__label {
|
|
754
|
+ width: 60px;
|
|
755
|
+ }
|
705
|
756
|
}
|
706
|
757
|
::-webkit-scrollbar {
|
707
|
758
|
height: 20px;
|
708
|
759
|
}
|
709
|
760
|
|
710
|
|
-.el-button {
|
711
|
|
- color: #fff;
|
712
|
|
- background-color: #409eff;
|
713
|
|
- border-color: #409eff;
|
714
|
|
-}
|
715
|
761
|
.el-table td .cell {
|
716
|
762
|
padding: 0 10px;
|
717
|
763
|
}
|