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