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