|
@@ -3,10 +3,16 @@
|
3
|
3
|
<div class="main-contain new-main-contain">
|
4
|
4
|
<div class="bannar_list">
|
5
|
5
|
<div class="banner_left">
|
6
|
|
- <div style="width:1000px;display: flex">
|
|
6
|
+ <div
|
|
7
|
+ style="width: 1000px; display: flex; justify-content: space-evenly;"
|
|
8
|
+ >
|
7
|
9
|
<div>
|
8
|
10
|
透析模式:
|
9
|
|
- <el-select v-model="modeOptions_value" placeholder="请选择" @change="getUsername">
|
|
11
|
+ <el-select
|
|
12
|
+ v-model="modeOptions_value"
|
|
13
|
+ placeholder="请选择"
|
|
14
|
+ @change="getUsername"
|
|
15
|
+ >
|
10
|
16
|
<el-option
|
11
|
17
|
v-for="item in modeOptions"
|
12
|
18
|
:key="item.id"
|
|
@@ -75,12 +81,13 @@
|
75
|
81
|
|
76
|
82
|
<div
|
77
|
83
|
class="app-container"
|
78
|
|
- style="display: flex; flex: 1; padding: 10px 20px 0px 20px"
|
|
84
|
+ style="display: flex; flex: 1; padding: 10px 10px 0px 10px"
|
79
|
85
|
>
|
80
|
86
|
<div class="mainLeft">
|
81
|
87
|
<div>
|
82
|
88
|
<el-table
|
83
|
89
|
border
|
|
90
|
+ height="70vh"
|
84
|
91
|
ref="multipleTable"
|
85
|
92
|
:data="tableData"
|
86
|
93
|
tooltip-effect="dark"
|
|
@@ -92,20 +99,18 @@
|
92
|
99
|
color: '#606266',
|
93
|
100
|
}"
|
94
|
101
|
>
|
95
|
|
- <el-table-column type="selection" width="55"> </el-table-column>
|
96
|
|
- <el-table-column label="患者姓名" width="184">
|
|
102
|
+ <el-table-column type="selection" width="55" align="center">
|
|
103
|
+ </el-table-column>
|
|
104
|
+ <el-table-column label="患者姓名" width="184" align="center">
|
97
|
105
|
<template slot-scope="scope">{{ scope.row.name }}</template>
|
98
|
106
|
</el-table-column>
|
99
|
107
|
</el-table>
|
100
|
108
|
</div>
|
101
|
109
|
</div>
|
102
|
|
- <div class="mainRight">
|
|
110
|
+ <div class="mainRight" v-if="new_type == 1">
|
103
|
111
|
<el-table
|
104
|
|
- v-if="new_type == 1"
|
105
|
112
|
:data="tableDatas"
|
106
|
113
|
style="width: 100%"
|
107
|
|
- :height="tableHeight"
|
108
|
|
- max-height="70vh"
|
109
|
114
|
border
|
110
|
115
|
:row-style="{ color: '#303133' }"
|
111
|
116
|
:header-cell-style="{
|
|
@@ -122,7 +127,6 @@
|
122
|
127
|
>
|
123
|
128
|
<template slot-scope="scope">
|
124
|
129
|
<el-select
|
125
|
|
- filterable
|
126
|
130
|
v-model="scope.row.drug_name"
|
127
|
131
|
placeholder="请选择"
|
128
|
132
|
@change="changeid(scope.row, scope.$index)"
|
|
@@ -233,130 +237,134 @@
|
233
|
237
|
</el-table-column>
|
234
|
238
|
</el-table>
|
235
|
239
|
</div>
|
236
|
|
- <el-table
|
237
|
|
- v-if="new_type == 2"
|
238
|
|
- :data="project"
|
239
|
|
- style="width: 100%"
|
240
|
|
- max-height="250"
|
241
|
|
- border
|
242
|
|
- :row-style="{ color: '#303133' }"
|
243
|
|
- :header-cell-style="{
|
|
240
|
+ <div class="mainRight" v-if="new_type == 2">
|
|
241
|
+ <el-table
|
|
242
|
+ :data="project"
|
|
243
|
+ style="width: 100%"
|
|
244
|
+ border
|
|
245
|
+ :row-style="{ color: '#303133' }"
|
|
246
|
+ :header-cell-style="{
|
244
|
247
|
backgroundColor: 'rgb(245, 247, 250)',
|
245
|
248
|
color: '#606266',
|
246
|
249
|
}"
|
247
|
|
- >
|
248
|
|
- <el-table-column fixed label="替换项目名称" width="230">
|
249
|
|
- <template slot-scope="scope">
|
250
|
|
- <el-select
|
251
|
|
- filterable
|
252
|
|
- v-model="scope.row.drug_name"
|
253
|
|
- placeholder="请选择"
|
254
|
|
- @change="changeid2(scope.row,scope.$index)"
|
255
|
|
- >
|
256
|
|
- <el-option
|
257
|
|
- v-for="item in projectlist"
|
258
|
|
- :key="item.id"
|
259
|
|
- :label="item.name"
|
260
|
|
- :value="item.id"
|
261
|
|
- >
|
262
|
|
- </el-option>
|
263
|
|
- </el-select>
|
264
|
|
- </template>
|
265
|
|
- </el-table-column>
|
266
|
|
- <el-table-column label="组" width="120">
|
267
|
|
- <template slot-scope="scope">
|
268
|
|
- {{scope.row.translate}}
|
269
|
|
- </template>
|
270
|
|
- </el-table-column>
|
271
|
|
- <el-table-column label="单次用量" width="200">
|
272
|
|
- <template slot-scope="scope">
|
273
|
|
- <el-input
|
274
|
|
- v-model="scope.row.single_dose"
|
275
|
|
- placeholder="请输入内容"
|
276
|
|
- ></el-input>
|
277
|
|
- {{ scope.row.unit }}
|
278
|
|
- </template>
|
279
|
|
- </el-table-column>
|
280
|
|
- <el-table-column label="用法" width="120">
|
281
|
|
- <template slot-scope="scope">
|
282
|
|
- <el-select
|
283
|
|
- v-model="scope.row.delivery_way"
|
284
|
|
- placeholder="请选择"
|
285
|
|
- >
|
286
|
|
- <el-option
|
287
|
|
- v-for="item in usage"
|
288
|
|
- :key="item.name"
|
289
|
|
- :label="item.name"
|
290
|
|
- :value="item.name"
|
|
250
|
+ highlight-current-row
|
|
251
|
+ >
|
|
252
|
+ <el-table-column
|
|
253
|
+ fixed
|
|
254
|
+ label="替换项目名称"
|
|
255
|
+ width="280"
|
|
256
|
+ align="center"
|
|
257
|
+ >
|
|
258
|
+ <template slot-scope="scope">
|
|
259
|
+ <el-select
|
|
260
|
+ filterable
|
|
261
|
+ v-model="scope.row.drug_name"
|
|
262
|
+ placeholder="请选择"
|
|
263
|
+ @change="changeid2(scope.row, scope.$index)"
|
291
|
264
|
>
|
292
|
|
- </el-option>
|
293
|
|
- </el-select>
|
294
|
|
- </template>
|
295
|
|
- </el-table-column>
|
296
|
|
- <el-table-column label="频率" width="120">
|
297
|
|
- <template slot-scope="scope">
|
298
|
|
- <el-select
|
299
|
|
- v-model="scope.row.execution_frequency"
|
300
|
|
- placeholder="请选择"
|
301
|
|
- >
|
302
|
|
- <el-option
|
303
|
|
- v-for="item in frequency"
|
304
|
|
- :key="item.name"
|
305
|
|
- :label="item.name"
|
306
|
|
- :value="item.name"
|
|
265
|
+ <el-option
|
|
266
|
+ v-for="item in projectlist"
|
|
267
|
+ :key="item.id"
|
|
268
|
+ :label="item.name"
|
|
269
|
+ :value="item.id"
|
|
270
|
+ >
|
|
271
|
+ </el-option>
|
|
272
|
+ </el-select>
|
|
273
|
+ </template>
|
|
274
|
+ </el-table-column>
|
|
275
|
+ <el-table-column label="组" width="120" align="center">
|
|
276
|
+ <template slot-scope="scope">
|
|
277
|
+ {{ scope.row.translate }}
|
|
278
|
+ </template>
|
|
279
|
+ </el-table-column>
|
|
280
|
+ <el-table-column label="单次用量" width="200" align="center">
|
|
281
|
+ <template slot-scope="scope">
|
|
282
|
+ <el-input
|
|
283
|
+ v-model="scope.row.single_dose"
|
|
284
|
+ placeholder="请输入内容"
|
|
285
|
+ ></el-input>
|
|
286
|
+ {{ scope.row.unit }}
|
|
287
|
+ </template>
|
|
288
|
+ </el-table-column>
|
|
289
|
+ <el-table-column label="用法" width="120" align="center">
|
|
290
|
+ <template slot-scope="scope">
|
|
291
|
+ <el-select v-model="scope.row.delivery_way" placeholder="请选择">
|
|
292
|
+ <el-option
|
|
293
|
+ v-for="item in usage"
|
|
294
|
+ :key="item.name"
|
|
295
|
+ :label="item.name"
|
|
296
|
+ :value="item.name"
|
|
297
|
+ >
|
|
298
|
+ </el-option>
|
|
299
|
+ </el-select>
|
|
300
|
+ </template>
|
|
301
|
+ </el-table-column>
|
|
302
|
+ <el-table-column label="频率" width="120" align="center">
|
|
303
|
+ <template slot-scope="scope">
|
|
304
|
+ <el-select
|
|
305
|
+ v-model="scope.row.execution_frequency"
|
|
306
|
+ placeholder="请选择"
|
307
|
307
|
>
|
308
|
|
- </el-option>
|
309
|
|
- </el-select>
|
310
|
|
- </template>
|
311
|
|
- </el-table-column>
|
312
|
|
- <el-table-column label="天数" width="110">
|
313
|
|
- <template slot-scope="scope">
|
314
|
|
- <el-input
|
315
|
|
- v-model="scope.row.day"
|
316
|
|
- placeholder="请输入"
|
317
|
|
- style="width: 75px"
|
318
|
|
- ></el-input>天
|
319
|
|
- </template>
|
320
|
|
- </el-table-column>
|
321
|
|
- <el-table-column label="总量" width="200">
|
322
|
|
- <template slot-scope="scope">
|
323
|
|
- <el-input
|
324
|
|
- v-model="scope.row.prescribing_number"
|
325
|
|
- placeholder="请输入"
|
326
|
|
- style="width: 75px"
|
327
|
|
- ></el-input>
|
328
|
|
- {{ scope.row.unit }}
|
329
|
|
- </template>
|
330
|
|
- </el-table-column>
|
331
|
|
- <el-table-column label="单价" width="120">
|
332
|
|
- <template slot-scope="scope">
|
333
|
|
- <el-input v-model="scope.row.price" style="width: 80px"></el-input
|
334
|
|
- >元
|
335
|
|
- </template>
|
336
|
|
- </el-table-column>
|
337
|
|
- <el-table-column label="备注" width="120">
|
338
|
|
- <template slot-scope="scope">
|
339
|
|
- <el-input v-model="scope.row.remark" placeholder=""></el-input>
|
340
|
|
- </template>
|
341
|
|
- </el-table-column>
|
342
|
|
- <!-- <el-table-column label="推送频率" width="120">-->
|
343
|
|
- <!-- <template slot-scope="scope">-->
|
344
|
|
- <!-- <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>-->
|
345
|
|
- <!-- <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>-->
|
346
|
|
- <!-- <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>-->
|
347
|
|
- <!-- </template>-->
|
348
|
|
- <!-- </el-table-column>-->
|
349
|
|
- <!-- <el-table-column fixed="right" label="操作" width="102">-->
|
350
|
|
- <!-- <template slot-scope="scope">-->
|
351
|
|
- <!-- <el-button-->
|
352
|
|
- <!-- @click.native.prevent="addopen(scope.$index)"-->
|
353
|
|
- <!-- type="text"-->
|
354
|
|
- <!-- size="small">-->
|
355
|
|
- <!-- 推送-->
|
356
|
|
- <!-- </el-button>-->
|
357
|
|
- <!-- </template>-->
|
358
|
|
- <!-- </el-table-column>-->
|
359
|
|
- </el-table>
|
|
308
|
+ <el-option
|
|
309
|
+ v-for="item in frequency"
|
|
310
|
+ :key="item.name"
|
|
311
|
+ :label="item.name"
|
|
312
|
+ :value="item.name"
|
|
313
|
+ >
|
|
314
|
+ </el-option>
|
|
315
|
+ </el-select>
|
|
316
|
+ </template>
|
|
317
|
+ </el-table-column>
|
|
318
|
+ <el-table-column label="天数" width="110" align="center">
|
|
319
|
+ <template slot-scope="scope">
|
|
320
|
+ <el-input
|
|
321
|
+ v-model="scope.row.day"
|
|
322
|
+ placeholder="请输入"
|
|
323
|
+ style="width: 75px"
|
|
324
|
+ ></el-input
|
|
325
|
+ >天
|
|
326
|
+ </template>
|
|
327
|
+ </el-table-column>
|
|
328
|
+ <el-table-column label="总量" width="200" align="center">
|
|
329
|
+ <template slot-scope="scope">
|
|
330
|
+ <el-input
|
|
331
|
+ v-model="scope.row.prescribing_number"
|
|
332
|
+ placeholder="请输入"
|
|
333
|
+ style="width: 75px"
|
|
334
|
+ ></el-input>
|
|
335
|
+ {{ scope.row.unit }}
|
|
336
|
+ </template>
|
|
337
|
+ </el-table-column>
|
|
338
|
+ <el-table-column label="单价" width="120" align="center">
|
|
339
|
+ <template slot-scope="scope">
|
|
340
|
+ <el-input v-model="scope.row.price" style="width: 80px"></el-input
|
|
341
|
+ >元
|
|
342
|
+ </template>
|
|
343
|
+ </el-table-column>
|
|
344
|
+ <el-table-column label="备注" width="120" align="center">
|
|
345
|
+ <template slot-scope="scope">
|
|
346
|
+ <el-input v-model="scope.row.remark" placeholder=""></el-input>
|
|
347
|
+ </template>
|
|
348
|
+ </el-table-column>
|
|
349
|
+ <!-- <el-table-column label="推送频率" width="120">-->
|
|
350
|
+ <!-- <template slot-scope="scope">-->
|
|
351
|
+ <!-- <div v-if="scope.row.frequency_type == 1">{{'每次必推'}}</div>-->
|
|
352
|
+ <!-- <div v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/次</div>-->
|
|
353
|
+ <!-- <div v-if="scope.row.frequency_type == 3">{{scope.row.week_days}}</div>-->
|
|
354
|
+ <!-- </template>-->
|
|
355
|
+ <!-- </el-table-column>-->
|
|
356
|
+ <!-- <el-table-column fixed="right" label="操作" width="102">-->
|
|
357
|
+ <!-- <template slot-scope="scope">-->
|
|
358
|
+ <!-- <el-button-->
|
|
359
|
+ <!-- @click.native.prevent="addopen(scope.$index)"-->
|
|
360
|
+ <!-- type="text"-->
|
|
361
|
+ <!-- size="small">-->
|
|
362
|
+ <!-- 推送-->
|
|
363
|
+ <!-- </el-button>-->
|
|
364
|
+ <!-- </template>-->
|
|
365
|
+ <!-- </el-table-column>-->
|
|
366
|
+ </el-table>
|
|
367
|
+ </div>
|
360
|
368
|
</div>
|
361
|
369
|
|
362
|
370
|
<el-dialog
|
|
@@ -388,9 +396,9 @@
|
388
|
396
|
</div>
|
389
|
397
|
|
390
|
398
|
<span slot="footer" class="dialog-footer">
|
391
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
392
|
|
- <el-button type="primary" @click="">确 定</el-button>
|
393
|
|
- </span>
|
|
399
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
400
|
+ <el-button type="primary" @click="">确 定</el-button>
|
|
401
|
+ </span>
|
394
|
402
|
</el-dialog>
|
395
|
403
|
</div>
|
396
|
404
|
</template>
|
|
@@ -414,66 +422,97 @@ export default {
|
414
|
422
|
tableList: [],
|
415
|
423
|
editableTabsValue: "1",
|
416
|
424
|
modeOptions: {},
|
417
|
|
- tableDatas:[{
|
418
|
|
- id: "",
|
419
|
|
- drug_name: "",
|
420
|
|
- single_dose: "",
|
421
|
|
- single_dose_unit: "",
|
422
|
|
- delivery_way: "",
|
423
|
|
- execution_frequency: "",
|
424
|
|
- day: "",
|
425
|
|
- prescribing_number: "",
|
426
|
|
- prescribing_number_unit: "",
|
427
|
|
- price: "",
|
428
|
|
- remark: "",
|
429
|
|
- list_1:[],
|
430
|
|
- list_2:[],
|
431
|
|
- },],
|
432
|
|
- project:[ {
|
433
|
|
- id: "",
|
434
|
|
- drug_name: "",
|
435
|
|
- translate:"",
|
436
|
|
- single_dose: "",
|
437
|
|
- unit: "",
|
438
|
|
- delivery_way: "",
|
439
|
|
- execution_frequency: "",
|
440
|
|
- day: "",
|
441
|
|
- prescribing_number: "",
|
442
|
|
- price: "",
|
443
|
|
- remark: "",
|
444
|
|
- frequency_type:1,
|
445
|
|
- day_count:"",
|
446
|
|
- week_days:"",
|
447
|
|
- },],//项目
|
|
425
|
+ tableDatas: [
|
|
426
|
+ {
|
|
427
|
+ id: "",
|
|
428
|
+ drug_name: "",
|
|
429
|
+ single_dose: "",
|
|
430
|
+ single_dose_unit: "",
|
|
431
|
+ delivery_way: "",
|
|
432
|
+ execution_frequency: "",
|
|
433
|
+ day: "",
|
|
434
|
+ prescribing_number: "",
|
|
435
|
+ prescribing_number_unit: "",
|
|
436
|
+ price: "",
|
|
437
|
+ remark: "",
|
|
438
|
+ list_1: [],
|
|
439
|
+ list_2: [],
|
|
440
|
+ },
|
|
441
|
+ ],
|
|
442
|
+ project: [
|
|
443
|
+ {
|
|
444
|
+ id: "",
|
|
445
|
+ drug_name: "",
|
|
446
|
+ translate: "",
|
|
447
|
+ single_dose: "",
|
|
448
|
+ unit: "",
|
|
449
|
+ delivery_way: "",
|
|
450
|
+ execution_frequency: "",
|
|
451
|
+ day: "",
|
|
452
|
+ prescribing_number: "",
|
|
453
|
+ price: "",
|
|
454
|
+ remark: "",
|
|
455
|
+ frequency_type: 1,
|
|
456
|
+ day_count: "",
|
|
457
|
+ week_days: "",
|
|
458
|
+ },
|
|
459
|
+ ], //项目
|
448
|
460
|
tabIndex: 2,
|
449
|
461
|
modeOptions_value: 1, //透析模式
|
450
|
|
- multipleSelection: [],//选中的患者
|
451
|
|
- tableData:[],
|
452
|
|
- options:[{id:1,name:"药品"},{id:2,name:"项目"}],
|
453
|
|
- options_patient:[{id:1,name:"是"},{id:2,name:"否"}],
|
454
|
|
- options_2:[{id:1,name:"普通门诊"},{id:2,name:"门诊特殊病"}],
|
455
|
|
- new_type:1,//新增类型
|
456
|
|
- druglist:[],//药品列表
|
457
|
|
- projectlist:[],//项目列表
|
458
|
|
- id:"",//药品、项目、耗材
|
459
|
|
- tmplist:[],//临时
|
460
|
|
- 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:"粒"},
|
461
|
|
- {id:8,name:"片"},{id:9,name:"支"},{id:10,name:"μg"},{id:11,name:"iu"},{id:12,name:"包"},{id:13,name:"袋"},{id:14,name:"万"},
|
462
|
|
- {id:15,name:"万iu"},{id:16,name:"丸"},{id:17,name:"盒"},{id:18,name:"瓶"},{id:19,name:"瓶(袋)"},{id:20,name:"次"}],
|
463
|
|
- usage:[],//用法
|
464
|
|
- frequency:[],//频率
|
465
|
|
- frequency_type:"",//周期提醒
|
466
|
|
- day_count:"",//周期提醒天
|
467
|
|
- week_days:[],//周期提醒星期
|
468
|
|
- tabhang:0,//tab的下标
|
469
|
|
- hang:0,//行数
|
470
|
|
-
|
471
|
|
- }
|
|
462
|
+ multipleSelection: [], //选中的患者
|
|
463
|
+ tableData: [],
|
|
464
|
+ options: [
|
|
465
|
+ { id: 1, name: "药品" },
|
|
466
|
+ { id: 2, name: "项目" },
|
|
467
|
+ ],
|
|
468
|
+ options_patient: [
|
|
469
|
+ { id: 1, name: "是" },
|
|
470
|
+ { id: 2, name: "否" },
|
|
471
|
+ ],
|
|
472
|
+ options_2: [
|
|
473
|
+ { id: 1, name: "普通门诊" },
|
|
474
|
+ { id: 2, name: "门诊特殊病" },
|
|
475
|
+ ],
|
|
476
|
+ new_type: 1, //新增类型
|
|
477
|
+ druglist: [], //药品列表
|
|
478
|
+ projectlist: [], //项目列表
|
|
479
|
+ id: "", //药品、项目、耗材
|
|
480
|
+ tmplist: [], //临时
|
|
481
|
+ unit: [
|
|
482
|
+ { id: 1, name: "g" },
|
|
483
|
+ { id: 2, name: "mg" },
|
|
484
|
+ { id: 3, name: "u" },
|
|
485
|
+ { id: 4, name: "ml" },
|
|
486
|
+ { id: 5, name: "万U" },
|
|
487
|
+ { id: 6, name: "枚" },
|
|
488
|
+ { id: 7, name: "粒" },
|
|
489
|
+ { id: 8, name: "片" },
|
|
490
|
+ { id: 9, name: "支" },
|
|
491
|
+ { id: 10, name: "μg" },
|
|
492
|
+ { id: 11, name: "iu" },
|
|
493
|
+ { id: 12, name: "包" },
|
|
494
|
+ { id: 13, name: "袋" },
|
|
495
|
+ { id: 14, name: "万" },
|
|
496
|
+ { id: 15, name: "万iu" },
|
|
497
|
+ { id: 16, name: "丸" },
|
|
498
|
+ { id: 17, name: "盒" },
|
|
499
|
+ { id: 18, name: "瓶" },
|
|
500
|
+ { id: 19, name: "瓶(袋)" },
|
|
501
|
+ { id: 20, name: "次" },
|
|
502
|
+ ],
|
|
503
|
+ usage: [], //用法
|
|
504
|
+ frequency: [], //频率
|
|
505
|
+ frequency_type: "", //周期提醒
|
|
506
|
+ day_count: "", //周期提醒天
|
|
507
|
+ week_days: [], //周期提醒星期
|
|
508
|
+ tabhang: 0, //tab的下标
|
|
509
|
+ hang: 0, //行数
|
|
510
|
+ };
|
472
|
511
|
},
|
473
|
512
|
created() {
|
474
|
513
|
// console.log("this.$store.getters.treatment_mode",this.$store.getters.treatment_mode)
|
475
|
514
|
for (let key in this.$store.getters.treatment_mode) {
|
476
|
|
- this.modeOptions[key] = this.$store.getters.treatment_mode[key]
|
|
515
|
+ this.modeOptions[key] = this.$store.getters.treatment_mode[key];
|
477
|
516
|
}
|
478
|
517
|
// console.log("this.modeOptions",this.modeOptions)
|
479
|
518
|
this.getdrugconfigs();
|
|
@@ -534,27 +573,27 @@ export default {
|
534
|
573
|
}
|
535
|
574
|
}
|
536
|
575
|
}
|
537
|
|
- if (this.new_type == 1){
|
538
|
|
- if(this.druglist != null){
|
539
|
|
- for(let d1 = 0;d1 < this.druglist.length;d1++){
|
540
|
|
- if(this.id == this.druglist[d1].id){
|
541
|
|
- tmp2 = this.druglist[d1].name
|
|
576
|
+ if (this.new_type == 1) {
|
|
577
|
+ if (this.druglist != null) {
|
|
578
|
+ for (let d1 = 0; d1 < this.druglist.length; d1++) {
|
|
579
|
+ if (this.id == this.druglist[d1].id) {
|
|
580
|
+ tmp2 = this.druglist[d1].name;
|
542
|
581
|
}
|
543
|
|
- if(this.tableDatas != null){
|
544
|
|
- if(this.tableDatas[0].id == this.druglist[d1].id){
|
545
|
|
- tmp3 = this.druglist[d1].name
|
|
582
|
+ if (this.tableDatas != null) {
|
|
583
|
+ if (this.tableDatas[0].id == this.druglist[d1].id) {
|
|
584
|
+ tmp3 = this.druglist[d1].name;
|
546
|
585
|
}
|
547
|
586
|
}
|
548
|
587
|
}
|
549
|
588
|
}
|
550
|
|
- if(this.druglist2 != null){
|
551
|
|
- for(let d2 = 0;d2 < this.druglist2.length;d2++){
|
552
|
|
- if(this.id == this.druglist2[d2].id){
|
553
|
|
- tmp2 = tmp2 + this.druglist2[d2].name
|
|
589
|
+ if (this.druglist2 != null) {
|
|
590
|
+ for (let d2 = 0; d2 < this.druglist2.length; d2++) {
|
|
591
|
+ if (this.id == this.druglist2[d2].id) {
|
|
592
|
+ tmp2 = tmp2 + this.druglist2[d2].name;
|
554
|
593
|
}
|
555
|
|
- if(this.tableDatas != null){
|
556
|
|
- if(this.tableDatas[0].id == this.druglist2[d2].id){
|
557
|
|
- tmp3 = this.druglist2[d2].name
|
|
594
|
+ if (this.tableDatas != null) {
|
|
595
|
+ if (this.tableDatas[0].id == this.druglist2[d2].id) {
|
|
596
|
+ tmp3 = this.druglist2[d2].name;
|
558
|
597
|
}
|
559
|
598
|
}
|
560
|
599
|
}
|
|
@@ -562,7 +601,7 @@ export default {
|
562
|
601
|
}
|
563
|
602
|
|
564
|
603
|
this.$confirm(
|
565
|
|
- "请确定是否保存?",//注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"替换为"+tmp3+",
|
|
604
|
+ "请确定是否保存?", //注:该操作将会把所选患者的"+tmp+"透析模式中的"+tmp2+"替换为"+tmp3+",
|
566
|
605
|
"",
|
567
|
606
|
{
|
568
|
607
|
confirmButtonText: "确 定",
|
|
@@ -574,99 +613,107 @@ export default {
|
574
|
613
|
this.$message.error("没有选中有效信息");
|
575
|
614
|
return;
|
576
|
615
|
}
|
577
|
|
- let st = ""
|
578
|
|
- for (let i = 0;i < this.multipleSelection.length;i++){
|
579
|
|
- st = st + this.multipleSelection[i].id + ","
|
|
616
|
+ let st = "";
|
|
617
|
+ for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
618
|
+ st = st + this.multipleSelection[i].id + ",";
|
580
|
619
|
}
|
581
|
|
- console.log("string",st)
|
|
620
|
+ console.log("string", st);
|
582
|
621
|
let params = {
|
583
|
|
- mode_id:this.modeOptions_value,
|
|
622
|
+ mode_id: this.modeOptions_value,
|
584
|
623
|
patient_id: st,
|
585
|
|
- type:this.new_type,
|
|
624
|
+ type: this.new_type,
|
586
|
625
|
replaced: this.id,
|
587
|
|
- }
|
|
626
|
+ };
|
588
|
627
|
let data1 = {
|
589
|
|
- "prescriptions": this.tableDatas
|
590
|
|
- }
|
|
628
|
+ prescriptions: this.tableDatas,
|
|
629
|
+ };
|
591
|
630
|
let data2 = {
|
592
|
|
- "prescriptions": this.project
|
593
|
|
- }
|
594
|
|
- if (this.new_type == 1){
|
595
|
|
- replacesavedrug(params,data1).then((res) =>{
|
596
|
|
- if (res.data.state == 1){
|
597
|
|
- this.$message.success('替换成功')
|
598
|
|
- this.multipleSelection = []
|
599
|
|
- this.tableData=[]
|
600
|
|
- this.tableDatas=[{
|
601
|
|
- id: "",
|
602
|
|
- drug_name: "",
|
603
|
|
- single_dose: "",
|
604
|
|
- single_dose_unit: "",
|
605
|
|
- delivery_way: "",
|
606
|
|
- execution_frequency: "",
|
607
|
|
- day: "",
|
608
|
|
- prescribing_number: "",
|
609
|
|
- prescribing_number_unit: "",
|
610
|
|
- price: "",
|
611
|
|
- remark: "",
|
612
|
|
- },];
|
613
|
|
- this.project=[ {
|
614
|
|
- id: "",
|
615
|
|
- drug_name: "",
|
616
|
|
- translate:"",
|
617
|
|
- single_dose: "",
|
618
|
|
- unit: "",
|
619
|
|
- delivery_way: "",
|
620
|
|
- execution_frequency: "",
|
621
|
|
- day: "",
|
622
|
|
- prescribing_number: "",
|
623
|
|
- price: "",
|
624
|
|
- remark: "",
|
625
|
|
- frequency_type:1,
|
626
|
|
- day_count:"",
|
627
|
|
- week_days:"",
|
628
|
|
- },];
|
629
|
|
- }else{
|
630
|
|
- this.$message.error(res.data.msg)
|
|
631
|
+ prescriptions: this.project,
|
|
632
|
+ };
|
|
633
|
+ if (this.new_type == 1) {
|
|
634
|
+ replacesavedrug(params, data1).then((res) => {
|
|
635
|
+ if (res.data.state == 1) {
|
|
636
|
+ this.$message.success("替换成功");
|
|
637
|
+ this.multipleSelection = [];
|
|
638
|
+ this.tableData = [];
|
|
639
|
+ this.tableDatas = [
|
|
640
|
+ {
|
|
641
|
+ id: "",
|
|
642
|
+ drug_name: "",
|
|
643
|
+ single_dose: "",
|
|
644
|
+ single_dose_unit: "",
|
|
645
|
+ delivery_way: "",
|
|
646
|
+ execution_frequency: "",
|
|
647
|
+ day: "",
|
|
648
|
+ prescribing_number: "",
|
|
649
|
+ prescribing_number_unit: "",
|
|
650
|
+ price: "",
|
|
651
|
+ remark: "",
|
|
652
|
+ },
|
|
653
|
+ ];
|
|
654
|
+ this.project = [
|
|
655
|
+ {
|
|
656
|
+ id: "",
|
|
657
|
+ drug_name: "",
|
|
658
|
+ translate: "",
|
|
659
|
+ single_dose: "",
|
|
660
|
+ unit: "",
|
|
661
|
+ delivery_way: "",
|
|
662
|
+ execution_frequency: "",
|
|
663
|
+ day: "",
|
|
664
|
+ prescribing_number: "",
|
|
665
|
+ price: "",
|
|
666
|
+ remark: "",
|
|
667
|
+ frequency_type: 1,
|
|
668
|
+ day_count: "",
|
|
669
|
+ week_days: "",
|
|
670
|
+ },
|
|
671
|
+ ];
|
|
672
|
+ } else {
|
|
673
|
+ this.$message.error(res.data.msg);
|
631
|
674
|
}
|
632
|
|
- })
|
633
|
|
- }else{
|
634
|
|
- replacesaveproject(params,data2).then((res) =>{
|
635
|
|
- if (res.data.state == 1){
|
636
|
|
- this.$message.success('替换成功')
|
637
|
|
- this.multipleSelection = []
|
638
|
|
- this.tableData=[]
|
639
|
|
- this.tableDatas=[{
|
640
|
|
- id: "",
|
641
|
|
- drug_name: "",
|
642
|
|
- single_dose: "",
|
643
|
|
- single_dose_unit: "",
|
644
|
|
- delivery_way: "",
|
645
|
|
- execution_frequency: "",
|
646
|
|
- day: "",
|
647
|
|
- prescribing_number: "",
|
648
|
|
- prescribing_number_unit: "",
|
649
|
|
- price: "",
|
650
|
|
- remark: "",
|
651
|
|
- },];
|
652
|
|
- this.project=[ {
|
653
|
|
- id: "",
|
654
|
|
- drug_name: "",
|
655
|
|
- translate:"",
|
656
|
|
- single_dose: "",
|
657
|
|
- unit: "",
|
658
|
|
- delivery_way: "",
|
659
|
|
- execution_frequency: "",
|
660
|
|
- day: "",
|
661
|
|
- prescribing_number: "",
|
662
|
|
- price: "",
|
663
|
|
- remark: "",
|
664
|
|
- frequency_type:1,
|
665
|
|
- day_count:"",
|
666
|
|
- week_days:"",
|
667
|
|
- },];
|
668
|
|
- }else{
|
669
|
|
- this.$message.error(res.data.msg)
|
|
675
|
+ });
|
|
676
|
+ } else {
|
|
677
|
+ replacesaveproject(params, data2).then((res) => {
|
|
678
|
+ if (res.data.state == 1) {
|
|
679
|
+ this.$message.success("替换成功");
|
|
680
|
+ this.multipleSelection = [];
|
|
681
|
+ this.tableData = [];
|
|
682
|
+ this.tableDatas = [
|
|
683
|
+ {
|
|
684
|
+ id: "",
|
|
685
|
+ drug_name: "",
|
|
686
|
+ single_dose: "",
|
|
687
|
+ single_dose_unit: "",
|
|
688
|
+ delivery_way: "",
|
|
689
|
+ execution_frequency: "",
|
|
690
|
+ day: "",
|
|
691
|
+ prescribing_number: "",
|
|
692
|
+ prescribing_number_unit: "",
|
|
693
|
+ price: "",
|
|
694
|
+ remark: "",
|
|
695
|
+ },
|
|
696
|
+ ];
|
|
697
|
+ this.project = [
|
|
698
|
+ {
|
|
699
|
+ id: "",
|
|
700
|
+ drug_name: "",
|
|
701
|
+ translate: "",
|
|
702
|
+ single_dose: "",
|
|
703
|
+ unit: "",
|
|
704
|
+ delivery_way: "",
|
|
705
|
+ execution_frequency: "",
|
|
706
|
+ day: "",
|
|
707
|
+ prescribing_number: "",
|
|
708
|
+ price: "",
|
|
709
|
+ remark: "",
|
|
710
|
+ frequency_type: 1,
|
|
711
|
+ day_count: "",
|
|
712
|
+ week_days: "",
|
|
713
|
+ },
|
|
714
|
+ ];
|
|
715
|
+ } else {
|
|
716
|
+ this.$message.error(res.data.msg);
|
670
|
717
|
}
|
671
|
718
|
});
|
672
|
719
|
}
|
|
@@ -675,116 +722,126 @@ export default {
|
675
|
722
|
|
676
|
723
|
lili() {
|
677
|
724
|
// console.log("this.multipleSelection",this.multipleSelection);
|
678
|
|
- console.log("this.modeOptions_value",this.modeOptions_value)
|
|
725
|
+ console.log("this.modeOptions_value", this.modeOptions_value);
|
679
|
726
|
// console.log("this.mode",this.modeOptions_value)
|
680
|
727
|
// console.log("this.projectlist2",this.projectlist2)
|
681
|
728
|
// console.log("patient_value",this.patient_value)
|
682
|
729
|
},
|
683
|
|
- addopen(hang){
|
684
|
|
- this.hang = hang
|
|
730
|
+ addopen(hang) {
|
|
731
|
+ this.hang = hang;
|
685
|
732
|
//清空
|
686
|
733
|
this.week_days = [];
|
687
|
734
|
this.day_count = "";
|
688
|
735
|
this.frequency_type = 1;
|
689
|
736
|
this.dialogVisible = true;
|
690
|
737
|
},
|
691
|
|
- changetype(){
|
692
|
|
- console.log(">>>>>>>",this.new_type)
|
693
|
|
- this.id = ""
|
694
|
|
- this.tableData = []
|
|
738
|
+ changetype() {
|
|
739
|
+ console.log(">>>>>>>", this.new_type);
|
|
740
|
+ this.id = "";
|
|
741
|
+ this.tableData = [];
|
695
|
742
|
},
|
696
|
743
|
changeid(item, index) {
|
697
|
744
|
console.log("");
|
698
|
745
|
item.id = item.drug_name;
|
699
|
746
|
var params = {
|
700
|
|
- id:item.id
|
701
|
|
- }
|
702
|
|
- getdrugsinformation(params).then((res) =>{
|
703
|
|
- if (res.data.state == 1){
|
704
|
|
- console.log("res??",res)
|
|
747
|
+ id: item.id,
|
|
748
|
+ };
|
|
749
|
+ getdrugsinformation(params).then((res) => {
|
|
750
|
+ if (res.data.state == 1) {
|
|
751
|
+ console.log("res??", res);
|
705
|
752
|
this.tableDatas[0].single_dose = res.data.data.list[0].single_dose;
|
706
|
|
- this.tableDatas[0].single_dose_unit = res.data.data.list[0].single_dose_unit;
|
|
753
|
+ this.tableDatas[0].single_dose_unit =
|
|
754
|
+ res.data.data.list[0].single_dose_unit;
|
707
|
755
|
this.tableDatas[0].delivery_way = res.data.data.list[0].delivery_way;
|
708
|
|
- this.tableDatas[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
|
756
|
+ this.tableDatas[0].execution_frequency =
|
|
757
|
+ res.data.data.list[0].execution_frequency;
|
709
|
758
|
this.tableDatas[0].day = res.data.data.list[0].drug_day;
|
710
|
|
- this.tableDatas[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
711
|
|
- this.tableDatas[0].prescribing_number_unit = res.data.data.list[0].prescribing_number_unit;
|
712
|
|
- if (res.data.data.list[0].prescribing_number_unit == res.data.data.list[0].min_unit || res.data.data.list[0].prescribing_number_unit == "" || res.data.data.list[0].prescribing_number_unit == null){
|
|
759
|
+ this.tableDatas[0].prescribing_number =
|
|
760
|
+ res.data.data.list[0].prescribing_number;
|
|
761
|
+ this.tableDatas[0].prescribing_number_unit =
|
|
762
|
+ res.data.data.list[0].prescribing_number_unit;
|
|
763
|
+ if (
|
|
764
|
+ res.data.data.list[0].prescribing_number_unit ==
|
|
765
|
+ res.data.data.list[0].min_unit ||
|
|
766
|
+ res.data.data.list[0].prescribing_number_unit == "" ||
|
|
767
|
+ res.data.data.list[0].prescribing_number_unit == null
|
|
768
|
+ ) {
|
713
|
769
|
this.tableDatas[0].price = res.data.data.list[0].min_price;
|
714
|
|
- }else{
|
|
770
|
+ } else {
|
715
|
771
|
this.tableDatas[0].price = res.data.data.list[0].retail_price;
|
716
|
772
|
}
|
717
|
773
|
this.tableDatas[0].remark = res.data.data.list[0].remark;
|
718
|
774
|
this.tableDatas[0].list_1 = res.data.data.list[0].list_1;
|
719
|
775
|
this.tableDatas[0].list_2 = res.data.data.list[0].list_2;
|
720
|
776
|
}
|
721
|
|
- })
|
|
777
|
+ });
|
722
|
778
|
},
|
723
|
779
|
handleSelectionChange(val) {
|
724
|
780
|
this.multipleSelection = val;
|
725
|
781
|
},
|
726
|
|
- changeid2(item,index){
|
727
|
|
- item.id = item.drug_name
|
|
782
|
+ changeid2(item, index) {
|
|
783
|
+ item.id = item.drug_name;
|
728
|
784
|
var params = {
|
729
|
|
- id:item.id
|
730
|
|
- }
|
731
|
|
- getdrugsinformation(params).then((res) =>{
|
732
|
|
- if (res.data.state == 1){
|
733
|
|
- console.log("res??",res)
|
|
785
|
+ id: item.id,
|
|
786
|
+ };
|
|
787
|
+ getdrugsinformation(params).then((res) => {
|
|
788
|
+ if (res.data.state == 1) {
|
|
789
|
+ console.log("res??", res);
|
734
|
790
|
this.project[0].single_dose = res.data.data.list[0].single_dose;
|
735
|
791
|
this.project[0].translate = res.data.data.list[0].translate;
|
736
|
792
|
this.project[0].delivery_way = res.data.data.list[0].delivery_way;
|
737
|
|
- this.project[0].execution_frequency = res.data.data.list[0].execution_frequency;
|
|
793
|
+ this.project[0].execution_frequency =
|
|
794
|
+ res.data.data.list[0].execution_frequency;
|
738
|
795
|
this.project[0].day = res.data.data.list[0].day;
|
739
|
|
- this.project[0].prescribing_number = res.data.data.list[0].prescribing_number;
|
|
796
|
+ this.project[0].prescribing_number =
|
|
797
|
+ res.data.data.list[0].prescribing_number;
|
740
|
798
|
this.project[0].unit = res.data.data.list[0].unit;
|
741
|
|
- if (res.data.data.list[0].retail_price != null){
|
|
799
|
+ if (res.data.data.list[0].retail_price != null) {
|
742
|
800
|
this.project[0].price = res.data.data.list[0].retail_price;
|
743
|
|
- }else{
|
|
801
|
+ } else {
|
744
|
802
|
this.project[0].price = res.data.data.list[0].price;
|
745
|
803
|
}
|
746
|
804
|
|
747
|
805
|
this.project[0].remark = res.data.data.list[0].remark;
|
748
|
806
|
}
|
749
|
|
- })
|
|
807
|
+ });
|
750
|
808
|
},
|
751
|
809
|
//获取配置
|
752
|
|
- getdrugconfigs(){
|
753
|
|
- var params = {}
|
754
|
|
- replaceconfig(params).then((res) =>{
|
755
|
|
- if (res.data.state == 1){
|
756
|
|
- this.druglist = res.data.data.list
|
757
|
|
- this.projectlist = res.data.data.list2
|
|
810
|
+ getdrugconfigs() {
|
|
811
|
+ var params = {};
|
|
812
|
+ replaceconfig(params).then((res) => {
|
|
813
|
+ if (res.data.state == 1) {
|
|
814
|
+ this.druglist = res.data.data.list;
|
|
815
|
+ this.projectlist = res.data.data.list2;
|
758
|
816
|
}
|
759
|
|
- })
|
760
|
|
- getmodeconfigs(params).then((res) =>{
|
761
|
|
- if (res.data.state == 1){
|
762
|
|
- this.frequency = res.data.data.efs
|
763
|
|
- this.usage = res.data.data.drugways
|
|
817
|
+ });
|
|
818
|
+ getmodeconfigs(params).then((res) => {
|
|
819
|
+ if (res.data.state == 1) {
|
|
820
|
+ this.frequency = res.data.data.efs;
|
|
821
|
+ this.usage = res.data.data.drugways;
|
764
|
822
|
}
|
765
|
|
- })
|
|
823
|
+ });
|
766
|
824
|
},
|
767
|
|
- getUsername(){
|
|
825
|
+ getUsername() {
|
768
|
826
|
var params = {
|
769
|
827
|
id: this.id,
|
770
|
|
- mode: this.modeOptions_value
|
771
|
|
- }
|
772
|
|
- replacepeoplename(params).then((res) =>{
|
773
|
|
- if (res.data.state == 1){
|
774
|
|
- this.tableData = res.data.data.list
|
|
828
|
+ mode: this.modeOptions_value,
|
|
829
|
+ };
|
|
830
|
+ replacepeoplename(params).then((res) => {
|
|
831
|
+ if (res.data.state == 1) {
|
|
832
|
+ this.tableData = res.data.data.list;
|
775
|
833
|
}
|
776
|
|
- })
|
|
834
|
+ });
|
777
|
835
|
},
|
778
|
836
|
handleClose(done) {
|
779
|
|
- this.$confirm('确认关闭?')
|
780
|
|
- .then(_ => {
|
|
837
|
+ this.$confirm("确认关闭?")
|
|
838
|
+ .then((_) => {
|
781
|
839
|
done();
|
782
|
840
|
})
|
783
|
|
- .catch(_ => {});
|
784
|
|
- }
|
785
|
|
- }
|
786
|
|
-
|
787
|
|
-}
|
|
841
|
+ .catch((_) => {});
|
|
842
|
+ },
|
|
843
|
+ },
|
|
844
|
+};
|
788
|
845
|
</script>
|
789
|
846
|
|
790
|
847
|
|
|
@@ -810,7 +867,7 @@ export default {
|
810
|
867
|
}
|
811
|
868
|
::v-deep .el-table__body-wrapper {
|
812
|
869
|
// height: 500px;
|
813
|
|
- overflow-y: scroll;
|
|
870
|
+ // overflow-y: scroll;
|
814
|
871
|
}
|
815
|
872
|
.right_contain {
|
816
|
873
|
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
|
|
@@ -818,11 +875,11 @@ export default {
|
818
|
875
|
}
|
819
|
876
|
.bannar_list {
|
820
|
877
|
width: 99%;
|
821
|
|
- margin-bottom: 10px;
|
|
878
|
+ margin-top: 20px;
|
822
|
879
|
display: flex;
|
823
|
880
|
justify-content: space-between;
|
824
|
881
|
.banner_left {
|
825
|
|
- width: 96%;
|
|
882
|
+ width: 100%;
|
826
|
883
|
margin: 0 auto;
|
827
|
884
|
display: flex;
|
828
|
885
|
justify-content: space-between;
|
|
@@ -1022,7 +1079,7 @@ export default {
|
1022
|
1079
|
.mainRight {
|
1023
|
1080
|
margin-left: 10px;
|
1024
|
1081
|
flex: 1;
|
1025
|
|
- height: 100%;
|
|
1082
|
+ height: 70vh;
|
1026
|
1083
|
display: flex;
|
1027
|
1084
|
flex-direction: column;
|
1028
|
1085
|
overflow-y: auto;
|
|
@@ -1039,7 +1096,8 @@ export default {
|
1039
|
1096
|
}
|
1040
|
1097
|
|
1041
|
1098
|
.el-table__body-wrapper {
|
1042
|
|
- height: auto !important;
|
|
1099
|
+ max-height: 70vh;
|
|
1100
|
+ // overflow-y: scroll;
|
1043
|
1101
|
.el-table__body {
|
1044
|
1102
|
width: 100% !important;
|
1045
|
1103
|
}
|
|
@@ -1048,7 +1106,11 @@ export default {
|
1048
|
1106
|
}
|
1049
|
1107
|
|
1050
|
1108
|
/deep/ .el-table__fixed {
|
|
1109
|
+ height: 101px !important;
|
1051
|
1110
|
bottom: 0 !important;
|
|
1111
|
+ .el-table__fixed-body-wrapper {
|
|
1112
|
+ top: 45px !important;
|
|
1113
|
+ }
|
1052
|
1114
|
}
|
1053
|
1115
|
.mainCenter {
|
1054
|
1116
|
display: flex;
|