|
@@ -3,14 +3,33 @@
|
3
|
3
|
<div class="position">
|
4
|
4
|
<bread-crumb :crumbs='crumbs'></bread-crumb>
|
5
|
5
|
</div>
|
|
6
|
+
|
|
7
|
+ <el-dialog title="透析处方长期医嘱医生确认推送提醒" :visible.sync="dialogConfigVisible">
|
|
8
|
+ <el-form>
|
|
9
|
+ <el-form-item label="是否开启推送:">
|
|
10
|
+ <el-radio-group v-model="is_open_remind" @change="changeRemind">
|
|
11
|
+ <el-radio :label="1">开启</el-radio>
|
|
12
|
+ <el-radio :label="2">不开启</el-radio>
|
|
13
|
+ </el-radio-group>
|
|
14
|
+ </el-form-item>
|
|
15
|
+ </el-form>
|
|
16
|
+ </el-dialog>
|
|
17
|
+
|
|
18
|
+
|
6
|
19
|
<div class="app-container">
|
7
|
20
|
<el-tabs>
|
8
|
21
|
<el-tab-pane label="医嘱模板 ">
|
9
|
22
|
<div>
|
10
|
23
|
<div class="filter-container">
|
|
24
|
+ <el-button size="small"
|
|
25
|
+ style="float: right;"
|
|
26
|
+ @click="dialogConfigVisible = true"
|
|
27
|
+ type="primary">长期医嘱提醒配置
|
|
28
|
+ </el-button>
|
|
29
|
+
|
11
|
30
|
<el-button
|
12
|
31
|
class="filter-item"
|
13
|
|
- style="margin-left: 10px;"
|
|
32
|
+ style="margin-left: 10px;margin-right: 10px"
|
14
|
33
|
@click="handleCreateTemplate"
|
15
|
34
|
type="primary"
|
16
|
35
|
size="small"
|
|
@@ -1148,7 +1167,9 @@
|
1148
|
1167
|
UpdateDrugDic,
|
1149
|
1168
|
UpdateDrugWay,
|
1150
|
1169
|
UpdateExecutionFrequency,
|
1151
|
|
- updateTemplateName
|
|
1170
|
+ updateTemplateName,
|
|
1171
|
+ getDoctorAdviceConfig,
|
|
1172
|
+ postDoctorAdviceConfig
|
1152
|
1173
|
} from '@/api/advice'
|
1153
|
1174
|
import BreadCrumb from '@/xt_pages/components/bread-crumb'
|
1154
|
1175
|
|
|
@@ -1179,6 +1200,7 @@
|
1179
|
1200
|
currentIndex: -1,
|
1180
|
1201
|
isEdit: false,
|
1181
|
1202
|
dialogTitle: '',
|
|
1203
|
+ is_open_remind:0,
|
1182
|
1204
|
isAddChild: false,
|
1183
|
1205
|
parent_id: 0,
|
1184
|
1206
|
editDialogTitle: '编辑医嘱',
|
|
@@ -1246,7 +1268,7 @@
|
1246
|
1268
|
execution_frequency: '',
|
1247
|
1269
|
id: 0
|
1248
|
1270
|
},
|
1249
|
|
-
|
|
1271
|
+ dialogConfigVisible:false,
|
1250
|
1272
|
templateFormEdit: {
|
1251
|
1273
|
frequency_type: 0,
|
1252
|
1274
|
day_count: '',
|
|
@@ -1309,8 +1331,18 @@
|
1309
|
1331
|
created() {
|
1310
|
1332
|
this.getAdviceConfig()
|
1311
|
1333
|
this.unitsOption = getDataConfig('hemodialysis', 'units')
|
|
1334
|
+ this.getDoctorAdviceConfig()
|
1312
|
1335
|
},
|
1313
|
1336
|
methods: {
|
|
1337
|
+ getDoctorAdviceConfig(){
|
|
1338
|
+ getDoctorAdviceConfig().then(response => {
|
|
1339
|
+ if (response.data.state == 1) {
|
|
1340
|
+ this.is_open_remind = response.data.data.config.is_open_remind
|
|
1341
|
+ } else {
|
|
1342
|
+ this.$message.error(response.data.msg)
|
|
1343
|
+ }
|
|
1344
|
+ })
|
|
1345
|
+ },
|
1314
|
1346
|
adviceNameShow({ row, column, rowIndex, columnIndex }) {
|
1315
|
1347
|
if (columnIndex == 1) {
|
1316
|
1348
|
return 'templateadvicenamedisplay'
|
|
@@ -2411,6 +2443,25 @@
|
2411
|
2443
|
}
|
2412
|
2444
|
}
|
2413
|
2445
|
})
|
|
2446
|
+ }, changeRemind(val) {
|
|
2447
|
+ let params = {
|
|
2448
|
+ 'is_open_remind': val,
|
|
2449
|
+ }
|
|
2450
|
+
|
|
2451
|
+ postDoctorAdviceConfig(params).then(response => {
|
|
2452
|
+ if (response.data.state == 1) {
|
|
2453
|
+ this.is_open_remind = response.data.data.is_open_remind
|
|
2454
|
+ if (response.data.data.is_open_remind == 1) {
|
|
2455
|
+ this.$message.success('开启成功')
|
|
2456
|
+ } else {
|
|
2457
|
+ this.$message.success('关闭成功')
|
|
2458
|
+ }
|
|
2459
|
+ } else {
|
|
2460
|
+ this.$message.error(response.data.msg)
|
|
2461
|
+
|
|
2462
|
+ }
|
|
2463
|
+ })
|
|
2464
|
+
|
2414
|
2465
|
}
|
2415
|
2466
|
}
|
2416
|
2467
|
}
|