|
@@ -6,7 +6,10 @@
|
6
|
6
|
<div class="banner_left">
|
7
|
7
|
<div>
|
8
|
8
|
透析模式:
|
9
|
|
- <el-select v-model="modeOptions_value" placeholder="请选择">
|
|
9
|
+ <el-select
|
|
10
|
+ v-model="modeOptions_value"
|
|
11
|
+ placeholder="请选择"
|
|
12
|
+ >
|
10
|
13
|
<el-option
|
11
|
14
|
v-for="item in modeOptions"
|
12
|
15
|
:key="item.id"
|
|
@@ -18,11 +21,7 @@
|
18
|
21
|
</div>
|
19
|
22
|
<div>
|
20
|
23
|
删除类型:
|
21
|
|
- <el-select
|
22
|
|
- v-model="new_type"
|
23
|
|
- placeholder="请选择"
|
24
|
|
- @change="changetype"
|
25
|
|
- >
|
|
24
|
+ <el-select v-model="new_type" placeholder="请选择" @change="changetype">
|
26
|
25
|
<el-option
|
27
|
26
|
v-for="item in options"
|
28
|
27
|
:key="item.id"
|
|
@@ -68,8 +67,8 @@
|
68
|
67
|
</div>
|
69
|
68
|
</div>
|
70
|
69
|
|
71
|
|
- <!-- <button @click="lili">调试</button>-->
|
72
|
|
- <el-button type="primary" @click="save">保存</el-button>
|
|
70
|
+<!-- <button @click="lili">调试</button>-->
|
|
71
|
+ <el-button @click="save">保存</el-button>
|
73
|
72
|
</div>
|
74
|
73
|
|
75
|
74
|
<el-container>
|
|
@@ -90,16 +89,16 @@
|
90
|
89
|
>
|
91
|
90
|
<el-table-column type="selection" width="55"> </el-table-column>
|
92
|
91
|
<el-table-column label="患者姓名" width="155">
|
93
|
|
- <template slot-scope="scope">{{ scope.row.name }}</template>
|
|
92
|
+ <template slot-scope="scope" >{{ scope.row.name }}</template>
|
94
|
93
|
</el-table-column>
|
95
|
94
|
</el-table>
|
96
|
95
|
</div>
|
97
|
96
|
|
98
|
97
|
<el-tabs type="border-card" v-if="isshow == 1 && list.length > 0">
|
99
|
98
|
<el-tab-pane
|
100
|
|
- v-for="(item, index) in list"
|
|
99
|
+ v-for="(item,index) in list"
|
101
|
100
|
:key="index"
|
102
|
|
- :label="'处方' + (index + 1)"
|
|
101
|
+ :label="'处方'+(index+1)"
|
103
|
102
|
:name="index"
|
104
|
103
|
>
|
105
|
104
|
<el-table
|
|
@@ -116,31 +115,32 @@
|
116
|
115
|
>
|
117
|
116
|
<el-table-column fixed label="药品名称" width="230">
|
118
|
117
|
<template slot-scope="scope">
|
119
|
|
- {{ scope.row.advice_name }}
|
|
118
|
+ {{scope.row.advice_name}}
|
120
|
119
|
</template>
|
121
|
120
|
</el-table-column>
|
122
|
121
|
<el-table-column label="单次用量" width="200">
|
123
|
122
|
<template slot-scope="scope">
|
124
|
|
- {{ scope.row.single_dose }}{{ scope.row.single_dose_unit }}
|
|
123
|
+ {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
|
125
|
124
|
</template>
|
126
|
125
|
</el-table-column>
|
127
|
126
|
<el-table-column label="用法" width="120">
|
128
|
127
|
<template slot-scope="scope">
|
129
|
|
- {{ scope.row.delivery_way }}
|
|
128
|
+ {{scope.row.delivery_way}}
|
130
|
129
|
</template>
|
131
|
130
|
</el-table-column>
|
132
|
131
|
<el-table-column label="频率" width="120">
|
133
|
132
|
<template slot-scope="scope">
|
134
|
|
- {{ scope.row.execution_frequency }}
|
|
133
|
+ {{scope.row.execution_frequency}}
|
135
|
134
|
</template>
|
136
|
135
|
</el-table-column>
|
137
|
136
|
<el-table-column label="天数" width="110">
|
138
|
|
- <template slot-scope="scope"> {{ scope.row.day }}天 </template>
|
|
137
|
+ <template slot-scope="scope">
|
|
138
|
+ {{scope.row.day}}天
|
|
139
|
+ </template>
|
139
|
140
|
</el-table-column>
|
140
|
141
|
<el-table-column label="总量" width="200">
|
141
|
142
|
<template slot-scope="scope">
|
142
|
|
- {{ scope.row.prescribing_number
|
143
|
|
- }}{{ scope.row.prescribing_number_unit }}
|
|
143
|
+ {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
|
144
|
144
|
</template>
|
145
|
145
|
</el-table-column>
|
146
|
146
|
<el-table-column label="单价" width="120">
|
|
@@ -156,10 +156,9 @@
|
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"
|
162
|
|
- >
|
|
161
|
+ size="small">
|
163
|
162
|
删除
|
164
|
163
|
</el-button>
|
165
|
164
|
</template>
|
|
@@ -180,79 +179,66 @@
|
180
|
179
|
>
|
181
|
180
|
<el-table-column fixed label="项目名称" width="230">
|
182
|
181
|
<template slot-scope="scope">
|
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>
|
|
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>
|
189
|
184
|
</template>
|
190
|
185
|
</el-table-column>
|
191
|
186
|
<el-table-column label="组" width="120">
|
192
|
187
|
<template slot-scope="scope">
|
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>
|
|
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>
|
199
|
190
|
</template>
|
200
|
191
|
</el-table-column>
|
201
|
192
|
<el-table-column label="单次用量" width="120">
|
202
|
193
|
<template slot-scope="scope">
|
203
|
|
- {{ scope.row.single_dose }}
|
|
194
|
+ {{scope.row.single_dose}}
|
204
|
195
|
{{ scope.row.unit }}
|
205
|
196
|
</template>
|
206
|
197
|
</el-table-column>
|
207
|
198
|
<el-table-column label="用法" width="120">
|
208
|
199
|
<template slot-scope="scope">
|
209
|
|
- {{ scope.row.delivery_way }}
|
|
200
|
+ {{scope.row.delivery_way}}
|
210
|
201
|
</template>
|
211
|
202
|
</el-table-column>
|
212
|
203
|
<el-table-column label="频率" width="120">
|
213
|
204
|
<template slot-scope="scope">
|
214
|
|
- {{ scope.row.execution_frequency }}
|
|
205
|
+ {{scope.row.execution_frequency}}
|
215
|
206
|
</template>
|
216
|
207
|
</el-table-column>
|
217
|
208
|
<el-table-column label="天数" width="110">
|
218
|
|
- <template slot-scope="scope"> {{ scope.row.day }}天 </template>
|
|
209
|
+ <template slot-scope="scope">
|
|
210
|
+ {{scope.row.day}}天
|
|
211
|
+ </template>
|
219
|
212
|
</el-table-column>
|
220
|
213
|
<el-table-column label="总量" width="100">
|
221
|
214
|
<template slot-scope="scope">
|
222
|
|
- {{ scope.row.count }}
|
|
215
|
+ {{scope.row.count}}
|
223
|
216
|
{{ scope.row.unit }}
|
224
|
217
|
</template>
|
225
|
218
|
</el-table-column>
|
226
|
219
|
<el-table-column label="单价" width="120">
|
227
|
220
|
<template slot-scope="scope">
|
228
|
|
- {{ scope.row.price }}元
|
|
221
|
+ {{scope.row.price}}元
|
229
|
222
|
</template>
|
230
|
223
|
</el-table-column>
|
231
|
224
|
<el-table-column label="备注" width="120">
|
232
|
225
|
<template slot-scope="scope">
|
233
|
|
- {{ scope.row.remark }}
|
|
226
|
+ {{scope.row.remark}}
|
234
|
227
|
</template>
|
235
|
228
|
</el-table-column>
|
236
|
229
|
<el-table-column label="推送频率" width="120">
|
237
|
230
|
<template slot-scope="scope">
|
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>
|
|
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>
|
247
|
234
|
</template>
|
248
|
235
|
</el-table-column>
|
249
|
236
|
<el-table-column fixed="right" label="操作" width="102">
|
250
|
237
|
<template slot-scope="scope">
|
251
|
238
|
<el-button
|
252
|
|
- @click.native.prevent="delects(scope.$index, scope, item)"
|
|
239
|
+ @click.native.prevent="delects(scope.$index,scope,item)"
|
253
|
240
|
type="text"
|
254
|
|
- size="small"
|
255
|
|
- >
|
|
241
|
+ size="small">
|
256
|
242
|
删除
|
257
|
243
|
</el-button>
|
258
|
244
|
</template>
|
|
@@ -284,128 +270,93 @@ export default {
|
284
|
270
|
tableList: [],
|
285
|
271
|
editableTabsValue: "1",
|
286
|
272
|
modeOptions: {},
|
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
|
|
- ], //项目
|
|
273
|
+ tableDatas:[{
|
|
274
|
+ id: "",
|
|
275
|
+ drug_name: "",
|
|
276
|
+ single_dose: "",
|
|
277
|
+ single_dose_unit: "",
|
|
278
|
+ delivery_way: "",
|
|
279
|
+ execution_frequency: "",
|
|
280
|
+ day: "",
|
|
281
|
+ prescribing_number: "",
|
|
282
|
+ prescribing_number_unit: "",
|
|
283
|
+ price: "",
|
|
284
|
+ remark: "",
|
|
285
|
+ },],//药品
|
|
286
|
+ project:[ {
|
|
287
|
+ id: "",
|
|
288
|
+ drug_name: "",
|
|
289
|
+ translate:"",
|
|
290
|
+ single_dose: "",
|
|
291
|
+ unit: "",
|
|
292
|
+ delivery_way: "",
|
|
293
|
+ execution_frequency: "",
|
|
294
|
+ day: "",
|
|
295
|
+ prescribing_number: "",
|
|
296
|
+ price: "",
|
|
297
|
+ remark: "",
|
|
298
|
+ frequency_type:1,
|
|
299
|
+ day_count:"",
|
|
300
|
+ week_days:"",
|
|
301
|
+ },],//项目
|
320
|
302
|
tabIndex: 2,
|
321
|
303
|
modeOptions_value: 1, //透析模式
|
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
|
|
- };
|
|
304
|
+ multipleSelection: [],//选中的患者
|
|
305
|
+ tableData:[],
|
|
306
|
+ options:[{id:1,name:"药品"},{id:2,name:"项目"}],
|
|
307
|
+ options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
|
|
308
|
+ options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
|
|
309
|
+ new_type:1,//新增类型
|
|
310
|
+ druglist:[],//药品列表
|
|
311
|
+ projectlist:[],//项目列表
|
|
312
|
+ id:"",//药品、项目、耗材
|
|
313
|
+ tmplist:[],//临时
|
|
314
|
+ 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:"粒"},
|
|
315
|
+ {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
|
|
316
|
+ {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
|
|
317
|
+ usage:[],//用法
|
|
318
|
+ frequency:[],//频率
|
|
319
|
+ frequency_type:"",//周期提醒
|
|
320
|
+ day_count:"",//周期提醒天
|
|
321
|
+ week_days:[],//周期提醒星期
|
|
322
|
+ tabhang:0,//tab的下标
|
|
323
|
+ hang:0,//行数
|
|
324
|
+ list:[],
|
|
325
|
+ isshow:0,//是否显示处方
|
|
326
|
+ tmpid:0,
|
|
327
|
+
|
|
328
|
+ }
|
374
|
329
|
},
|
375
|
330
|
created() {
|
376
|
331
|
// console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
|
377
|
332
|
for (let key in this.$store.getters.treatment_mode) {
|
378
|
|
- this.modeOptions[key] = this.$store.getters.treatment_mode[key];
|
|
333
|
+ this.modeOptions[key] = this.$store.getters.treatment_mode[key]
|
379
|
334
|
}
|
380
|
335
|
// console.log("this.modeOptions",this.modeOptions)
|
381
|
336
|
this.getdrugconfigs();
|
382
|
|
- this.isshow = 0;
|
|
337
|
+ this.isshow = 0
|
383
|
338
|
this.tmpid = 0;
|
384
|
339
|
},
|
385
|
340
|
methods: {
|
386
|
341
|
save() {
|
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;
|
|
342
|
+ var tmp = this.modeOptions[this.modeOptions_value].name
|
|
343
|
+ var tmp2 = ""
|
|
344
|
+ if (this.druglist != null){
|
|
345
|
+ for(let i = 0;i < this.druglist.length;i++){
|
|
346
|
+ if (this.id == this.druglist[i].id){
|
|
347
|
+ tmp2 = this.druglist[i].name
|
393
|
348
|
}
|
394
|
349
|
}
|
395
|
350
|
}
|
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;
|
|
351
|
+ if(this.projectlist != null){
|
|
352
|
+ for (let j = 0;j < this.projectlist.length;j++){
|
|
353
|
+ if (this.id == this.projectlist[j].id){
|
|
354
|
+ tmp2 = this.projectlist[j].name
|
400
|
355
|
}
|
401
|
356
|
}
|
402
|
357
|
}
|
403
|
358
|
this.$confirm(
|
404
|
|
- "注:该操作将会把所选患者的" +
|
405
|
|
- tmp +
|
406
|
|
- "透析模式中的" +
|
407
|
|
- tmp2 +
|
408
|
|
- "进行删除,请确定是否删除?",
|
|
359
|
+ "请确定是否删除?",//注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"进行删除,
|
409
|
360
|
"",
|
410
|
361
|
{
|
411
|
362
|
confirmButtonText: "确 定",
|
|
@@ -413,111 +364,120 @@ export default {
|
413
|
364
|
type: "warning",
|
414
|
365
|
}
|
415
|
366
|
).then(() => {
|
416
|
|
- if (this.multipleSelection.length == 0) {
|
417
|
|
- this.$message.error("没有选中有效信息");
|
418
|
|
- return;
|
|
367
|
+ if (this.multipleSelection.length == 0){
|
|
368
|
+ this.$message.error('没有选中有效信息')
|
|
369
|
+ return
|
419
|
370
|
}
|
420
|
|
- let st = "";
|
421
|
|
- for (let i = 0; i < this.multipleSelection.length; i++) {
|
422
|
|
- st = st + this.multipleSelection[i].id + ",";
|
|
371
|
+ let st = ""
|
|
372
|
+ for (let i = 0;i < this.multipleSelection.length;i++){
|
|
373
|
+ st = st + this.multipleSelection[i].id + ","
|
423
|
374
|
}
|
424
|
|
- console.log("string", st);
|
|
375
|
+ console.log("string",st)
|
425
|
376
|
let params = {
|
426
|
|
- mode_id: this.modeOptions_value,
|
|
377
|
+ mode_id:this.modeOptions_value,
|
427
|
378
|
patient_id: st,
|
428
|
|
- type: this.new_type,
|
|
379
|
+ type:this.new_type,
|
429
|
380
|
replaced: this.id,
|
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);
|
|
381
|
+ }
|
|
382
|
+ if (this.new_type == 1){
|
|
383
|
+ deletedrugsbatch(params).then((res) =>{
|
|
384
|
+ if (res.data.state == 1){
|
|
385
|
+ this.$message.success('删除成功')
|
|
386
|
+ this.getUsername()
|
|
387
|
+ }else{
|
|
388
|
+ this.$message.error(res.data.msg)
|
438
|
389
|
}
|
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);
|
|
390
|
+ })
|
|
391
|
+ }else{
|
|
392
|
+ batchdeleteitems(params).then((res) =>{
|
|
393
|
+ if (res.data.state == 1){
|
|
394
|
+ this.$message.success('删除成功')
|
|
395
|
+ this.getUsername()
|
|
396
|
+ }else{
|
|
397
|
+ this.$message.error(res.data.msg)
|
447
|
398
|
}
|
448
|
|
- });
|
|
399
|
+ })
|
449
|
400
|
}
|
450
|
401
|
});
|
451
|
402
|
},
|
452
|
|
- test(val) {
|
453
|
|
- console.log("val?:", val);
|
454
|
|
- this.tmpid = val.id;
|
|
403
|
+ test(val){
|
|
404
|
+ console.log("val?:",val);
|
|
405
|
+ this.tmpid = val.id
|
455
|
406
|
var params = {
|
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;
|
|
407
|
+ mode_id:this.modeOptions_value,
|
|
408
|
+ patient_id:val.id,
|
|
409
|
+ }
|
|
410
|
+ ptemplateinformation(params).then((res) =>{
|
|
411
|
+ if (res.data.state == 1){
|
|
412
|
+ this.list = res.data.data.list
|
|
413
|
+ this.isshow = 1
|
463
|
414
|
}
|
464
|
|
- });
|
|
415
|
+ })
|
465
|
416
|
},
|
466
|
417
|
lili() {
|
467
|
|
- console.log("this.list", this.list);
|
468
|
|
- console.log("this.multipleSelection", this.multipleSelection);
|
|
418
|
+ console.log("this.list",this.list);
|
|
419
|
+ console.log("this.multipleSelection",this.multipleSelection)
|
469
|
420
|
// console.log("this.mode",this.modeOptions_value)
|
470
|
421
|
// console.log("this.projectlist2",this.projectlist2)
|
471
|
422
|
// console.log("patient_value",this.patient_value)
|
472
|
423
|
},
|
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
|
|
- };
|
481
|
|
- var params2 = {
|
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;
|
492
|
|
- }
|
493
|
|
- });
|
|
424
|
+ delects(hang,sc,item){
|
|
425
|
+ this.$confirm('删除后不可恢复,是否确认删除?', '删除', {
|
|
426
|
+ confirmButtonText: '确定',
|
|
427
|
+ cancelButtonText: '取消',
|
|
428
|
+ type: 'warning'
|
|
429
|
+ }).then(() => {
|
|
430
|
+ var params ={
|
|
431
|
+ type:item.type,//1药品2项目
|
|
432
|
+ id:sc.row.id,
|
|
433
|
+ }
|
|
434
|
+ var params2 = {
|
|
435
|
+ mode_id:this.modeOptions_value,
|
|
436
|
+ patient_id:this.tmpid,
|
494
|
437
|
}
|
|
438
|
+ deleteone(params).then((res) =>{
|
|
439
|
+ if (res.data.state == 1){
|
|
440
|
+ this.$message.success('删除成功')
|
|
441
|
+ ptemplateinformation(params2).then((res) =>{
|
|
442
|
+ if (res.data.state == 1){
|
|
443
|
+ this.list = res.data.data.list
|
|
444
|
+ this.isshow = 1
|
|
445
|
+ }
|
|
446
|
+ })
|
|
447
|
+ }
|
|
448
|
+ })
|
|
449
|
+ }).catch(() => {
|
|
450
|
+ this.$message({
|
|
451
|
+ type: 'info',
|
|
452
|
+ message: '已取消删除'
|
|
453
|
+ });
|
495
|
454
|
});
|
|
455
|
+ // console.log("hang",hang)
|
|
456
|
+ // console.log("sc",sc)
|
|
457
|
+ // console.log("item",item)
|
|
458
|
+
|
|
459
|
+
|
496
|
460
|
},
|
497
|
|
- changetype() {
|
498
|
|
- console.log(">>>>>>>", this.new_type);
|
499
|
|
- this.id = "";
|
500
|
|
- this.tableData = [];
|
|
461
|
+ changetype(){
|
|
462
|
+ console.log(">>>>>>>",this.new_type)
|
|
463
|
+ this.id = ""
|
|
464
|
+ this.tableData = []
|
501
|
465
|
},
|
502
|
|
- changeid(item, index) {
|
503
|
|
- item.id = item.drug_name;
|
|
466
|
+ changeid(item,index){
|
|
467
|
+ item.id = item.drug_name
|
504
|
468
|
var params = {
|
505
|
|
- id: item.id,
|
506
|
|
- };
|
507
|
|
- getdrugsinformation(params).then((res) => {
|
508
|
|
- if (res.data.state == 1) {
|
509
|
|
- console.log("res??", res);
|
|
469
|
+ id:item.id
|
|
470
|
+ }
|
|
471
|
+ getdrugsinformation(params).then((res) =>{
|
|
472
|
+ if (res.data.state == 1){
|
|
473
|
+ console.log("res??",res)
|
510
|
474
|
this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
|
511
|
|
- this.tableDatas[0].single_dose_unit =
|
512
|
|
- res.data.data.list[0].single_dose_unit;
|
|
475
|
+ this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
|
513
|
476
|
this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
|
514
|
|
- this.tableDatas[0].execution_frequency =
|
515
|
|
- res.data.data.list[0].execution_frequency;
|
|
477
|
+ this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
516
|
478
|
this.tableDatas[0].day = res.data.data.list[0].drug_day;
|
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;
|
|
479
|
+ this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
|
480
|
+ this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
|
521
|
481
|
this.tableDatas[0].price = res.data.data.list[0].retail_price;
|
522
|
482
|
this.tableDatas[0].remark = res.data.data.list[0].remark;
|
523
|
483
|
}
|
|
@@ -526,22 +486,20 @@ export default {
|
526
|
486
|
handleSelectionChange(val) {
|
527
|
487
|
this.multipleSelection = val;
|
528
|
488
|
},
|
529
|
|
- changeid2(item, index) {
|
530
|
|
- item.id = item.drug_name;
|
|
489
|
+ changeid2(item,index){
|
|
490
|
+ item.id = item.drug_name
|
531
|
491
|
var params = {
|
532
|
|
- id: item.id,
|
533
|
|
- };
|
534
|
|
- getdrugsinformation(params).then((res) => {
|
535
|
|
- if (res.data.state == 1) {
|
536
|
|
- console.log("res??", res);
|
|
492
|
+ id:item.id
|
|
493
|
+ }
|
|
494
|
+ getdrugsinformation(params).then((res) =>{
|
|
495
|
+ if (res.data.state == 1){
|
|
496
|
+ console.log("res??",res)
|
537
|
497
|
this.project[0].single_dose = res.data.data.list[0].single_dose;
|
538
|
498
|
this.project[0].translate = res.data.data.list[0].translate;
|
539
|
499
|
this.project[0].delivery_way = res.data.data.list[0].delivery_way;
|
540
|
|
- this.project[0].execution_frequency =
|
541
|
|
- res.data.data.list[0].execution_frequency;
|
|
500
|
+ this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
542
|
501
|
this.project[0].day = res.data.data.list[0].day;
|
543
|
|
- this.project[0].prescribing_number =
|
544
|
|
- res.data.data.list[0].prescribing_number;
|
|
502
|
+ this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
545
|
503
|
this.project[0].unit = res.data.data.list[0].unit;
|
546
|
504
|
this.project[0].price = res.data.data.list[0].retail_price;
|
547
|
505
|
this.project[0].remark = res.data.data.list[0].remark;
|
|
@@ -549,41 +507,42 @@ export default {
|
549
|
507
|
});
|
550
|
508
|
},
|
551
|
509
|
//获取配置
|
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;
|
|
510
|
+ getdrugconfigs(){
|
|
511
|
+ var params = {}
|
|
512
|
+ replaceconfig(params).then((res) =>{
|
|
513
|
+ if (res.data.state == 1){
|
|
514
|
+ this.druglist = res.data.data.list
|
|
515
|
+ this.projectlist = res.data.data.list2
|
558
|
516
|
}
|
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;
|
|
517
|
+ })
|
|
518
|
+ getmodeconfigs(params).then((res) =>{
|
|
519
|
+ if (res.data.state == 1){
|
|
520
|
+ this.frequency = res.data.data.efs
|
|
521
|
+ this.usage = res.data.data.drugways
|
564
|
522
|
}
|
565
|
|
- });
|
|
523
|
+ })
|
566
|
524
|
},
|
567
|
|
- getUsername() {
|
|
525
|
+ getUsername(){
|
568
|
526
|
var params = {
|
569
|
527
|
id: this.id,
|
570
|
|
- mode: this.modeOptions_value,
|
571
|
|
- };
|
572
|
|
- replacepeoplename(params).then((res) => {
|
573
|
|
- if (res.data.state == 1) {
|
574
|
|
- this.tableData = res.data.data.list;
|
|
528
|
+ mode: this.modeOptions_value
|
|
529
|
+ }
|
|
530
|
+ replacepeoplename(params).then((res) =>{
|
|
531
|
+ if (res.data.state == 1){
|
|
532
|
+ this.tableData = res.data.data.list
|
575
|
533
|
}
|
576
|
|
- });
|
|
534
|
+ })
|
577
|
535
|
},
|
578
|
536
|
handleClose(done) {
|
579
|
|
- this.$confirm("确认关闭?")
|
580
|
|
- .then((_) => {
|
|
537
|
+ this.$confirm('确认关闭?')
|
|
538
|
+ .then(_ => {
|
581
|
539
|
done();
|
582
|
540
|
})
|
583
|
|
- .catch((_) => {});
|
584
|
|
- },
|
585
|
|
- },
|
586
|
|
-};
|
|
541
|
+ .catch(_ => {});
|
|
542
|
+ }
|
|
543
|
+ }
|
|
544
|
+
|
|
545
|
+}
|
587
|
546
|
</script>
|
588
|
547
|
|
589
|
548
|
|
|
@@ -605,8 +564,8 @@ export default {
|
605
|
564
|
}
|
606
|
565
|
}
|
607
|
566
|
.zone {
|
608
|
|
- // margin-left: 30px;
|
609
|
|
- // text-align: left;
|
|
567
|
+// margin-left: 30px;
|
|
568
|
+// text-align: left;
|
610
|
569
|
width: 70px;
|
611
|
570
|
display: inline-block;
|
612
|
571
|
color: #606266;
|