浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

柳香萍 6 年前
父节点
当前提交
8ac46ad73d

+ 11 - 1
src/api/signandweigh.js 查看文件

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
 export function fetchSignPatients(params) {
3
 export function fetchSignPatients(params) {
4
-  console.log("bbbbbbbbbbbbbbb")
4
+  console.log("bbbbbbbbbbbbbbb号码")
5
   console.log(params)
5
   console.log(params)
6
   return request({
6
   return request({
7
     url: '/api/sign/patients',
7
     url: '/api/sign/patients',
62
     params: params
62
     params: params
63
   })
63
   })
64
 }
64
 }
65
+
66
+export function sighdata(params){
67
+  console.log("好还哦")
68
+  console.log(params)
69
+   return request({
70
+     url: '/api/sigh/sighdata',
71
+     params: params,   
72
+     method: 'Post'
73
+   })
74
+}

+ 7 - 7
src/lang/zh.js 查看文件

136
     special_permission_manage: '特殊权限管理',
136
     special_permission_manage: '特殊权限管理',
137
     schedule_print: '排班打印',
137
     schedule_print: '排班打印',
138
 
138
 
139
-    stockInOrder: '入库单',
140
-    salesReturnOrder: '退货单',
141
-    stockOutOrder: '出库单',
142
-    cancelStockOrder: '出库退库单',
139
+    stockInOrder: '耗材入库单',
140
+    salesReturnOrder: '耗材退货单',
141
+    stockOutOrder: '耗材出库单',
142
+    cancelStockOrder: '耗材退库单',
143
     otherStockInOrder: '其他入库单',
143
     otherStockInOrder: '其他入库单',
144
     otherSalesReturnOrder: '其他退货单',
144
     otherSalesReturnOrder: '其他退货单',
145
     otherStockOutOrder: '其他出库单',
145
     otherStockOutOrder: '其他出库单',
146
-    otherCancelStockOrder: '其他出库退库单',
146
+    otherCancelStockOrder: '其他退库单',
147
     stockInOrderAdd: '新增入库单',
147
     stockInOrderAdd: '新增入库单',
148
     salesReturnOrderAdd: '新增退货单',
148
     salesReturnOrderAdd: '新增退货单',
149
     stockOutOrderAdd: '新增出库单',
149
     stockOutOrderAdd: '新增出库单',
150
-    cancelStockOrderAdd: '新增出库退库单',
150
+    cancelStockOrderAdd: '新增退库单',
151
     stockInDetail: '入库单详情',
151
     stockInDetail: '入库单详情',
152
     salesReturnDetail: '退货单详情',
152
     salesReturnDetail: '退货单详情',
153
     stockOutDetail: '出库单详情',
153
     stockOutDetail: '出库单详情',
154
-    cancelStockDetail: '出库退库单详情',
154
+    cancelStockDetail: '退库单详情',
155
     stockDetail:'出入库明细查询',
155
     stockDetail:'出入库明细查询',
156
 
156
 
157
   },
157
   },

+ 67 - 64
src/router/index.js 查看文件

125
   // ////////////////////////////
125
   // ////////////////////////////
126
   // 本地开始
126
   // 本地开始
127
   // /////////////////////////////
127
   // /////////////////////////////
128
-  {
129
-    path: '/sign',
130
-    component: Layout,
131
-    redirct: '/sign/index',
132
-    children: [{
133
-      path: '/sign',
134
-      component: () => import('@/xt_pages/sign/index'),
135
-      name: 'sign',
136
-      meta: { title: 'signWeight', icon: 'sign', noCache: true }
137
-    }]
138
-  },
139
-  {
140
-    path: '/qcd',
141
-    component: Layout,
142
-    redirect: '/qcd/dialysistotal',
143
-    name: 'qcd',
144
-    alwaysShow: true,
145
-    meta: { title: '科室质控', icon: 'statistics' },
146
-    children: [
147
-      { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
148
-      { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
149
-      { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
150
-      { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
151
-      { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
152
-      { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
153
-      { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
154
-      { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
155
-      { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
156
-      { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
157
-      { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
158
-      { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
159
-      { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
160
-      { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
161
-      { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
162
-      { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
163
-      { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
164
-    ]
165
-  },
166
   {
128
   {
167
     path: '/patients',
129
     path: '/patients',
168
     component: Layout,
130
     component: Layout,
323
       }
285
       }
324
     ]
286
     ]
325
   },
287
   },
288
+  {
289
+    path: '/sign',
290
+    component: Layout,
291
+    redirct: '/sign/index',
292
+    children: [{
293
+      path: '/sign',
294
+      component: () => import('@/xt_pages/sign/index'),
295
+      name: 'sign',
296
+      meta: { title: 'signWeight', icon: 'sign', noCache: true }
297
+    }]
298
+  },
326
   {
299
   {
327
     path: '/dialysis/',
300
     path: '/dialysis/',
328
     component: Layout,
301
     component: Layout,
367
     ]
340
     ]
368
   },
341
   },
369
   {
342
   {
370
-    path: '/fullscreenboard',
371
-    component: () => import('@/xt_pages/fullscreenboard/index'),
372
-    hidden: true
373
-  },
374
-  {
375
-    path: '/device',
376
-    component: Layout,
377
-    redirect: '/device/main',
378
-    name: 'device',
379
-    alwaysShow: true,
380
-    meta: { title: 'deviceManage', icon: 'shebei' },
381
-    children: [
382
-      { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
383
-      { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
384
-      { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
385
-      { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
386
-    ]
387
-  }, {
388
     path: '/stock/',
343
     path: '/stock/',
389
     component: Layout,
344
     component: Layout,
390
     redirect: 'noredirect',
345
     redirect: 'noredirect',
508
       }
463
       }
509
     ]
464
     ]
510
   },
465
   },
466
+
467
+  {
468
+    path: '/qcd',
469
+    component: Layout,
470
+    redirect: '/qcd/dialysistotal',
471
+    name: 'qcd',
472
+    alwaysShow: true,
473
+    meta: { title: '科室质控', icon: 'statistics' },
474
+    children: [
475
+      { path: '/statistics/index', component: () => import('@/xt_pages/statistics/index'), name: 'statistics', meta: { title: 'statistics' }},
476
+      { path: '/qcd/dialysistotal', component: () => import('@/xt_pages/qcd/dialysisTotal'), name: 'dialysistotal', meta: { title: '透析总量' }},
477
+      { path: '/qcd/processindicators', component: () => import('@/xt_pages/qcd/processIndicators'), name: 'processIndicators', meta: { title: '过程指标' }},
478
+      { path: '/qcd/outcomeIndicators/control', component: () => import('@/xt_pages/qcd/outcomeIndicators/control'), name: 'outcomeIndicatorsControl', meta: { title: '结果指标' }},
479
+      { path: '/qcd/outcomeIndicators/query', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/outcomeIndicators/query'), name: 'outcomeIndicatorsQuery', meta: { title: '指标查询' }},
480
+      { path: '/qcd/patientanalysis/total', component: () => import('@/xt_pages/qcd/patientAnalysis/total'), name: 'patientAnalysisTotal', meta: { title: '患者分析' }},
481
+      { path: '/qcd/patientanalysis/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/weight'), name: 'patientAnalysisWeight', meta: { title: '体重分析' }},
482
+      { path: '/qcd/patientanalysis/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/bloodPressure'), name: 'patientAnalysisBloodPressure', meta: { title: '血压分析' }},
483
+      { path: '/qcd/patientanalysis/dialysisage', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/dialysisAge'), name: 'patientAnalysisDialysisAge', meta: { title: '透析龄分析' }},
484
+      { path: '/qcd/patientanalysis/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/lapseto'), name: 'patientAnalysisLapseto', meta: { title: '转归分析' }},
485
+      { path: '/qcd/patientanalysis/complication', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/complication'), name: 'patientAnalysisComplication', meta: { title: '并发症分析' }},
486
+      { path: '/qcd/patientanalysis/infectiousdiseases', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/infectiousDiseases'), name: 'patientAnalysisInfectiousDiseases', meta: { title: '传染病分析' }},
487
+      { path: '/qcd/pa/person/lapseto', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/lapseto'), name: 'paPersonLapseto', meta: { title: '转归' }},
488
+      { path: '/qcd/pa/person/weight', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/weight'), name: 'paPersonWeight', meta: { title: '体重' }},
489
+      { path: '/qcd/pa/person/bloodpressure', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/bloodPressure'), name: 'paPersonBloodPressure', meta: { title: '血压' }},
490
+      { path: '/qcd/pa/person/indicators', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/indicators'), name: 'paPersonIndicators', meta: { title: '指标控制' }},
491
+      { path: '/qcd/pa/person/oralmedicine', hidden: true, is_menu: false, component: () => import('@/xt_pages/qcd/patientAnalysis/person/oralMedicine'), name: 'paPersonOralMedicine', meta: { title: '口服药' }}
492
+    ]
493
+  },
511
   {
494
   {
512
     path: '/data/',
495
     path: '/data/',
513
     component: Layout,
496
     component: Layout,
520
       { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
503
       { path: '/data/druguse', component: () => import('@/xt_pages/data/druguseTemplate'), name: 'druguse', meta: { title: 'druguse' }}
521
     ]
504
     ]
522
   },
505
   },
506
+  {
507
+    path: '/device',
508
+    component: Layout,
509
+    redirect: '/device/main',
510
+    name: 'device',
511
+    alwaysShow: true,
512
+    meta: { title: 'deviceManage', icon: 'shebei' },
513
+    children: [
514
+      { path: '/device/zones', component: () => import('@/xt_pages/device/zone_main'), name: 'deviceZoneManage', meta: { title: 'deviceZoneManage' }},
515
+      { path: '/device/groups', component: () => import('@/xt_pages/device/group_main'), name: 'deviceGroupManage', meta: { title: 'deviceGroupManage' }},
516
+      { path: '/device/numbers', component: () => import('@/xt_pages/device/number_main'), name: 'deviceNumberManage', meta: { title: 'deviceNumberManage' }},
517
+      { path: '/device/main', component: () => import('@/xt_pages/device/main'), name: 'dialysisMachineManage', meta: { title: 'dialysisMachineManage' }}
518
+    ]
519
+  },
523
   {
520
   {
524
     path: '/role',
521
     path: '/role',
525
     component: Layout,
522
     component: Layout,
535
       { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
532
       { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
536
       { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
533
       { path: '/role/admin/specialpermission', component: () => import('@/xt_pages/role/special_permission'), name: 'special_permission_manage', meta: { title: 'special_permission_manage' }}
537
     ]
534
     ]
538
-  }
535
+  },
536
+
537
+  {
538
+    path: '/fullscreenboard',
539
+    component: () => import('@/xt_pages/fullscreenboard/index'),
540
+    hidden: true
541
+  },
539
   // /////////////本地要end/
542
   // /////////////本地要end/
540
 ]
543
 ]
541
 
544
 
712
   // {
715
   // {
713
   //   path: '/sign',
716
   //   path: '/sign',
714
   //   component: Layout,
717
   //   component: Layout,
715
-  //   redirect: '/sign/index',
716
-  //   name: 'sign',
717
-  //   alwaysShow: true,
718
-  //   meta: { title: 'signWeight', icon: 'sign' },
719
-  //   children: [
720
-  //     { path: '/sign/index', component: () => import('@/xt_pages/sign/index'), name: 'signWeight', meta: { title: 'signWeight' }}
721
-  //   ]
718
+  //   redirct: '/sign/index',
719
+  //   children: [{
720
+  //     path: '/sign',
721
+  //     component: () => import('@/xt_pages/sign/index'),
722
+  //     name: 'sign',
723
+  //     meta: { title: 'signWeight', icon: 'sign', noCache: true }
724
+  //   }]
722
   // },
725
   // },
723
   // {
726
   // {
724
   //   path: '/dialysis/',
727
   //   path: '/dialysis/',

+ 1 - 1
src/xt_pages/data/components/table.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="" style="margin-right:20px;">
2
   <div class="" style="margin-right:20px;">
3
-    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row @current-change="handleRowChange"
3
+    <el-table style="margin-top: 42px;" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row @current-change="handleRowChange"
4
       >
4
       >
5
       <el-table-column  align="center" label="名称">
5
       <el-table-column  align="center" label="名称">
6
         <template slot-scope="scope">
6
         <template slot-scope="scope">

+ 1 - 1
src/xt_pages/data/components/tableson.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="">
2
   <div class="">
3
     <div class="filter-container">
3
     <div class="filter-container">
4
-      <el-button class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
4
+      <el-button style="float: right;margin-right: 20px" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5
     </div>
5
     </div>
6
 
6
 
7
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row
7
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row

+ 5 - 12
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

536
       },
536
       },
537
       openDeleteGroupAdvice() {
537
       openDeleteGroupAdvice() {
538
         if (this.groupSelectRow === null) {
538
         if (this.groupSelectRow === null) {
539
-          this.$notify.error({
540
-            title: '错误',
541
-            message: '未选择要删除的医嘱内容'
542
-          })
539
+          this.$message.error("未选择要删除的医嘱内容")
543
           return
540
           return
544
         }
541
         }
545
         this.DeleteGroupAdvice(this.groupSelectRow.groupno)
542
         this.DeleteGroupAdvice(this.groupSelectRow.groupno)
556
       openAdviceName(isEdit) {
553
       openAdviceName(isEdit) {
557
         if (isEdit) {
554
         if (isEdit) {
558
           if (this.groupSelectRow === null) {
555
           if (this.groupSelectRow === null) {
559
-            this.$notify.error({
560
-              title: '错误',
561
-              message: '未选择要修改的医嘱内容'
562
-            })
556
+
557
+            this.$message.error("未选择要修改的医嘱内容")
558
+
563
             return
559
             return
564
           }
560
           }
565
           this.nameForm = {
561
           this.nameForm = {
855
 
851
 
856
       openEditGroupAdvice() {
852
       openEditGroupAdvice() {
857
         if (this.groupSelectRow === null) {
853
         if (this.groupSelectRow === null) {
858
-          this.$notify.error({
859
-            title: '错误',
860
-            message: '未选择要修改的医嘱内容'
861
-          })
854
+          this.$message.error("未选择要修改的医嘱内容")
862
           return
855
           return
863
         }
856
         }
864
 
857
 

+ 9 - 12
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

651
 
651
 
652
       openDeleteGroupAdvice() {
652
       openDeleteGroupAdvice() {
653
         if (this.groupSelectRow === null) {
653
         if (this.groupSelectRow === null) {
654
-          this.$notify.error({
655
-            title: '错误',
656
-            message: '未选择要删除的医嘱内容'
657
-          })
654
+
655
+          this.$message.error("未选择要删除的医嘱内容")
656
+
658
           return
657
           return
659
         }
658
         }
660
         var content = ''
659
         var content = ''
770
 
769
 
771
       openGroupChild() {
770
       openGroupChild() {
772
         if (this.groupSelectRow === null) {
771
         if (this.groupSelectRow === null) {
773
-          this.$notify.error({
774
-            title: '错误',
775
-            message: '未选择医嘱内容,无法添加子药'
776
-          })
772
+
773
+          this.$message.error("未选择医嘱内容,无法添加子药")
774
+
777
           return
775
           return
778
         } else if (this.groupSelectRow.parent_row > 0) {
776
         } else if (this.groupSelectRow.parent_row > 0) {
779
           this.$notify.error({
777
           this.$notify.error({
807
         this.isChild = false
805
         this.isChild = false
808
         if (isEdit) {
806
         if (isEdit) {
809
           if (this.groupSelectRow === null) {
807
           if (this.groupSelectRow === null) {
810
-            this.$notify.error({
811
-              title: '错误',
812
-              message: '未选择要修改的医嘱内容'
813
-            })
808
+
809
+            this.$message.error("未选择要修改的医嘱内容")
810
+
814
             return
811
             return
815
           }
812
           }
816
           if (this.groupSelectRow.parent_row) {
813
           if (this.groupSelectRow.parent_row) {

+ 6 - 12
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

594
       },
594
       },
595
       openDeleteGroupAdvice() {
595
       openDeleteGroupAdvice() {
596
         if (this.groupSelectRow === null) {
596
         if (this.groupSelectRow === null) {
597
-          this.$notify.error({
598
-            title: '错误',
599
-            message: '未选择要删除的医嘱内容'
600
-          })
597
+          this.$message.error("未选择要删除的医嘱内容")
601
           return
598
           return
602
         }
599
         }
603
         console.log(this.groupSelectRow)
600
         console.log(this.groupSelectRow)
997
 
994
 
998
       openGroupChild() {
995
       openGroupChild() {
999
         if (this.groupSelectRow === null) {
996
         if (this.groupSelectRow === null) {
1000
-          this.$notify.error({
1001
-            title: '错误',
1002
-            message: '未选择医嘱内容,无法添加子药'
1003
-          })
997
+
998
+          this.$message.error("未选择医嘱内容,无法添加子药")
999
+
1004
           return
1000
           return
1005
         } else if (this.groupSelectRow.parent_row > 0) {
1001
         } else if (this.groupSelectRow.parent_row > 0) {
1006
           this.$notify.error({
1002
           this.$notify.error({
1034
         this.isChild = false
1030
         this.isChild = false
1035
         if (isEdit) {
1031
         if (isEdit) {
1036
           if (this.groupSelectRow === null) {
1032
           if (this.groupSelectRow === null) {
1037
-            this.$notify.error({
1038
-              title: '错误',
1039
-              message: '未选择要修改的医嘱内容'
1040
-            })
1033
+            this.$message.error("未选择要修改的医嘱内容")
1041
             return
1034
             return
1035
+
1042
           }
1036
           }
1043
           if (this.groupSelectRow.parent_row) {
1037
           if (this.groupSelectRow.parent_row) {
1044
             this.isChild = true
1038
             this.isChild = true

+ 0 - 1
src/xt_pages/dialysis/details/index.vue 查看文件

249
   data() {
249
   data() {
250
     return {
250
     return {
251
       crumbs:[
251
       crumbs:[
252
-        {path:false, name:'科室质控'},
253
         {path:false, name:'透析管理'},
252
         {path:false, name:'透析管理'},
254
         {path:false, name:'透析记录'},
253
         {path:false, name:'透析记录'},
255
         {path:false, name:'透析单'},
254
         {path:false, name:'透析单'},

+ 21 - 16
src/xt_pages/role/admin.vue 查看文件

2
 <div class="main-contain">
2
 <div class="main-contain">
3
   <div class="position">
3
   <div class="position">
4
     <bread-crumb :crumbs='crumbs'></bread-crumb>
4
     <bread-crumb :crumbs='crumbs'></bread-crumb>
5
-        <router-link to="/role/admin/create">
6
-          <el-button type="primary" size="small" icon="el-icon-circle-plus-outline" style="float:right;">新增</el-button>
7
-        </router-link>
5
+        <!-- <router-link to="/role/admin/create"> -->
6
+          <el-button type="primary" size="small" icon="el-icon-circle-plus-outline" style="float:right;" @click="openForm(0)">新增</el-button>
7
+        <!-- </router-link> -->
8
   </div>
8
   </div>
9
   <div class="app-container">
9
   <div class="app-container">
10
-    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" style="width:100%;" ref="table" :data="admins" v-loading="is_loading_admins">
11
-      <el-table-column label="用户名" prop="user_name" width="160"></el-table-column>
12
-      <el-table-column label="最后登录IP" prop="ip" width="150"></el-table-column>
13
-      <el-table-column label="最后登录时间" prop="last_login_time" width="170">
10
+    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" style="width:100%;" ref="table" border :data="admins" v-loading="is_loading_admins">
11
+      <el-table-column label="用户名" prop="user_name" min-width="160"></el-table-column>
12
+      <el-table-column label="最后登录IP" prop="ip" min-width="150"></el-table-column>
13
+      <el-table-column label="最后登录时间" prop="last_login_time" min-width="170">
14
         <template slot-scope="scope">
14
         <template slot-scope="scope">
15
           <span>{{ scope.row.last_login_time == 0 ? '' : (_parseTime(scope.row.last_login_time, '{y}-{m}-{d} {h}:{i}'))}}</span>
15
           <span>{{ scope.row.last_login_time == 0 ? '' : (_parseTime(scope.row.last_login_time, '{y}-{m}-{d} {h}:{i}'))}}</span>
16
         </template>
16
         </template>
17
       </el-table-column>
17
       </el-table-column>
18
-      <el-table-column label="角色" prop="role_name" width="160"></el-table-column>
19
-      <el-table-column label="职称" prop="title_name" width="160"></el-table-column>
20
-      <el-table-column label="状态" width="100">
18
+      <el-table-column label="角色" prop="role_name" min-width="160"></el-table-column>
19
+      <el-table-column label="职称" prop="title_name" min-width="160"></el-table-column>
20
+      <el-table-column label="状态" min-width="100">
21
         <template slot-scope="scope">
21
         <template slot-scope="scope">
22
           <div v-if="scope.row.status == 1" style="color: #67C23A; font-size:20px;">
22
           <div v-if="scope.row.status == 1" style="color: #67C23A; font-size:20px;">
23
             <li class="el-icon-success"></li>
23
             <li class="el-icon-success"></li>
27
           </div>
27
           </div>
28
         </template>
28
         </template>
29
       </el-table-column>
29
       </el-table-column>
30
-      <el-table-column label="操作" >
30
+      <el-table-column label="操作" width="120">
31
         <template slot-scope="scope">
31
         <template slot-scope="scope">
32
-          <router-link :to="{ path:'/role/admin/edit', query:{ id:scope.row.user_id }}">
32
+          <!-- <router-link :to="{ path:'/role/admin/edit', query:{ id:scope.row.user_id }}"> -->
33
             <el-tooltip class="item" effect="dark" content="编辑" placement="top">
33
             <el-tooltip class="item" effect="dark" content="编辑" placement="top">
34
-              <el-button type="primary" icon="el-icon-edit-outline" size="small"></el-button>
34
+              <el-button type="primary" icon="el-icon-edit-outline" size="small" @click="openForm(scope.row.user_id)"></el-button>
35
             </el-tooltip> 
35
             </el-tooltip> 
36
-          </router-link>
36
+          <!-- </router-link> -->
37
           <el-tooltip class="item" effect="dark" content="移除" placement="top">
37
           <el-tooltip class="item" effect="dark" content="移除" placement="top">
38
             <el-button type="danger" size="small" icon="el-icon-delete" v-if="scope.row.status == 1" @click="disableAdminAction(scope.row)"></el-button>
38
             <el-button type="danger" size="small" icon="el-icon-delete" v-if="scope.row.status == 1" @click="disableAdminAction(scope.row)"></el-button>
39
           </el-tooltip>
39
           </el-tooltip>
49
         <el-pagination :total="admin_total_count" :current-page.sync="current_page" @current-change="pageChange" :page-size="10" layout="total, prev, pager, next, jumper"></el-pagination>
49
         <el-pagination :total="admin_total_count" :current-page.sync="current_page" @current-change="pageChange" :page-size="10" layout="total, prev, pager, next, jumper"></el-pagination>
50
       </el-col>
50
       </el-col>
51
     </el-row>
51
     </el-row>
52
+    <admin-info-form ref="admininfoform"  ></admin-info-form>
52
   </div>
53
   </div>
53
 </div>
54
 </div>
54
 
55
 
58
 import {adminMainView, getAdmins, setAdminStatus} from '@/api/role/admin'
59
 import {adminMainView, getAdmins, setAdminStatus} from '@/api/role/admin'
59
 import { parseTime } from '@/utils'
60
 import { parseTime } from '@/utils'
60
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
61
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
62
+import AdminInfoForm from "./components/AdminInfoForm";
61
 
63
 
62
 export default {
64
 export default {
63
   name: 'adminManage',
65
   name: 'adminManage',
75
     }
77
     }
76
   },
78
   },
77
   components:{
79
   components:{
78
-    BreadCrumb
79
-    
80
+    BreadCrumb,
81
+    AdminInfoForm
80
   },
82
   },
81
   created: function() {
83
   created: function() {
82
     adminMainView().then(rs => {
84
     adminMainView().then(rs => {
103
     }
105
     }
104
   },
106
   },
105
   methods: {
107
   methods: {
108
+    openForm(adminId) {
109
+      this.$refs['admininfoform'].open(adminId);
110
+    },
106
     _parseTime(time, format) {
111
     _parseTime(time, format) {
107
       return parseTime(time, format)
112
       return parseTime(time, format)
108
     },
113
     },

+ 238 - 0
src/xt_pages/role/components/AdminInfoForm.vue 查看文件

1
+<template>
2
+    <el-dialog :title="formTitle" :visible.sync="dialogFormVisible">
3
+        <el-form :model="form" ref="form" :rules="rules" label-width="100px">
4
+                <el-form-item label="账号" prop="mobile">
5
+                    <el-input v-model="form.mobile" placeholder="用户手机号" :disabled="form.id !==  0"></el-input>
6
+                </el-form-item>
7
+
8
+                <el-form-item label="姓名" prop="name">
9
+                    <el-input v-model="form.name" placeholder="用户姓名"></el-input>
10
+                </el-form-item>
11
+
12
+                <el-form-item label="职称">
13
+                    <el-select v-model="form.user_type" placeholder="用户类型">
14
+                        <el-option v-for="item in user_types" :label="item.name" :value="item.index" :key="item.index"></el-option>
15
+                    </el-select>
16
+
17
+                    <el-select v-model="form.user_title" placeholder="用户职称">
18
+                        <el-option v-for="item in user_titles" :label="item.name" :value="item.index" :key="item.index"></el-option>
19
+                    </el-select>
20
+                </el-form-item>
21
+
22
+                <el-form-item label="角色">
23
+                    <el-select v-model="form.role" placeholder="角色">
24
+                        <el-option v-for="item in roles" :key="item.id" :label="item.name" :value="item.id"></el-option>
25
+                    </el-select>
26
+                </el-form-item>
27
+
28
+                <el-form-item label="介绍">
29
+                    <Tinymce :height=400 menubar='' ref="editor" v-model="form.intro" :show_upload_img="false" />
30
+                </el-form-item>
31
+
32
+            </el-form>
33
+        <div slot="footer" class="dialog-footer">
34
+            <el-button @click="dialogFormVisible = false">取 消</el-button>
35
+            <el-button type="primary" @click="submitAction">保 存</el-button>
36
+        </div>
37
+    </el-dialog>
38
+</template>
39
+
40
+<script>
41
+import Tinymce from '@/components/Tinymce'
42
+import {getAddAdminInitData, addAdmin, getModifyAdminInitData, modifyAdmin} from '@/api/role/admin'
43
+export default {
44
+    name:"AdminInfoForm",
45
+    components: {
46
+        Tinymce
47
+    },
48
+    // props: {
49
+    //     admin_id: {
50
+    //         type: Number,
51
+    //         require: true
52
+    //     }
53
+    // },
54
+    data() {
55
+        var checkMobile = (rule, value, callback) => {
56
+            if (!value || value.length == 0) {
57
+                return callback(new Error('手机号不能为空'))
58
+            }
59
+            if (/^1\d{10}$/.test(value) == false) {
60
+                return callback(new Error('手机号格式错误'))
61
+            } else {
62
+                callback()
63
+            }
64
+        }
65
+        var checkName = (rule, value, callback) => {
66
+            if (!value || value.length == 0) {
67
+                return callback(new Error('姓名不能为空'))
68
+            } else {
69
+                callback()
70
+            }
71
+        }
72
+        return {
73
+            admin_id:0,
74
+            dialogFormVisible:false,
75
+            user_types: [
76
+                { index: 2, name: '医生' },
77
+                { index: 3, name: '护士' },
78
+            ],
79
+            user_titles: [
80
+                { index: 1, name: '医士' },
81
+                { index: 2, name: '医师' },
82
+                { index: 3, name: '住院医师' },
83
+                { index: 4, name: '主治医师' },
84
+                { index: 5, name: '副主任医师' },
85
+                { index: 6, name: '主任医师' },
86
+                { index: 7, name: '护士' },
87
+                { index: 8, name: '护师' },
88
+                { index: 9, name: '主管护师' },
89
+                { index: 10, name: '副主任护师' },
90
+                { index: 11, name: '主任护师' },
91
+                { index: 12, name: '运营专员' },
92
+                { index: 13, name: '运营主管' },
93
+            ],
94
+            roles: [], // [{id, name, intro, status}]
95
+            loading: true,
96
+            qntoken: '',
97
+            formTitle:'',
98
+            form: {
99
+                id: 0,
100
+                mobile: '',
101
+                name: '',
102
+                user_type: '',
103
+                user_title: '',
104
+                role: '', // 其实应该是 int 类型
105
+                intro: '',
106
+            },
107
+            rules: {
108
+                mobile: [
109
+                    {validator: checkMobile, trigger: 'blur'}
110
+                ],
111
+                name: [
112
+                    {validator: checkName, trigger: 'blur'}
113
+                ]
114
+            }
115
+        }
116
+    },
117
+    methods: {
118
+        open:function(adminId){
119
+            this.admin_id = adminId;
120
+            if (this.admin_id < 0) {
121
+                this.$message.error("参数错误")
122
+                this.loading = false
123
+                return
124
+            }
125
+
126
+            this.form.id = this.admin_id
127
+            if (this.admin_id === 0) {
128
+                this.formTitle = '新增用户';
129
+                this.form.user_type = this.user_types[0].index
130
+                this.form.user_title = this.user_titles[0].index
131
+                getAddAdminInitData().then(rs => {
132
+                    this.loading = false
133
+                    var resp = rs.data
134
+                    if (resp.state === 1) {
135
+                        this.roles.push(...resp.data.roles)
136
+                        this.qntoken = resp.data.qntoken
137
+                        if (this.roles.length > 0) {
138
+                            this.form.role = this.roles[0].id
139
+                        }
140
+
141
+                    } else {
142
+                        this.$message.error(resp.msg)
143
+                    }
144
+
145
+                }).catch(err => {
146
+                    this.loading = false
147
+                    this.$message.error(err)
148
+                })
149
+                
150
+            } else {
151
+                this.formTitle = '编辑用户';
152
+                getModifyAdminInitData(this.form.id).then(rs => {
153
+                    this.loading = false
154
+                    var resp = rs.data
155
+                    if (resp.state === 1) {
156
+                        this.roles.push(...resp.data.roles)
157
+                        this.qntoken = resp.data.qntoken
158
+                        
159
+                        var admin = resp.data.admin
160
+                        this.form.name = admin.user_name
161
+                        this.form.mobile = admin.mobile
162
+                        this.form.user_type = admin.user_type
163
+                        this.form.user_title = admin.user_title
164
+                        this.form.role = admin.role_id
165
+                        this.form.intro = admin.intro
166
+                        
167
+                    } else {
168
+                        this.$message.error(resp.msg)
169
+                    }
170
+
171
+                }).catch(err => {
172
+                    this.loading = false
173
+                    this.$message.error(err)
174
+                })
175
+            }
176
+            
177
+            this.dialogFormVisible = true;
178
+        },
179
+        submitAction: function() {
180
+            if (this.admin_id < 0) {
181
+                return
182
+            }
183
+            this.$refs.form.validate((valid) => {
184
+                if (valid) {
185
+                    this.loading = true
186
+                    if (this.form.id === 0) {
187
+                        addAdmin(this.form.mobile, this.form.name, this.form.user_type, this.form.user_title, this.form.role, this.form.intro).then(rs => {
188
+                            this.loading = false
189
+                            var resp = rs.data
190
+                            if (resp.state === 1) {
191
+                                this.$store.dispatch('DidChangeAdmins')
192
+                                var _this = this
193
+                                setTimeout(() => {
194
+                                    _this.$store.dispatch('RecoverAdminsChangeState')
195
+                                }, 500)
196
+                                this.dialogFormVisible = false;
197
+                                
198
+                            } else {
199
+                                this.$message.error(resp.msg)
200
+                            }
201
+
202
+                        }).catch(err => {
203
+                            this.loading = false
204
+                            this.$message.error(err)
205
+                        })
206
+                        
207
+                    } else {
208
+                        modifyAdmin(this.form.id, this.form.name, this.form.user_type, this.form.user_title, this.form.role, this.form.intro).then(rs => {
209
+                            this.loading = false
210
+                            var resp = rs.data
211
+                            if (resp.state === 1) {
212
+                                this.$store.dispatch('DidChangeAdmins')
213
+                                var _this = this
214
+                                setTimeout(() => {
215
+                                    _this.$store.dispatch('RecoverAdminsChangeState')
216
+                                }, 500)
217
+
218
+                                this.dialogFormVisible = false;
219
+                                
220
+                            } else {
221
+                                this.$message.error(resp.msg)
222
+                            }
223
+
224
+                        }).catch(err => {
225
+                            this.loading = false
226
+                            this.$message.error(err)
227
+                        })
228
+                    }
229
+                    
230
+                } else {
231
+                    return false
232
+                }
233
+            })
234
+        }
235
+    },
236
+
237
+}
238
+</script>

+ 2 - 2
src/xt_pages/role/role.vue 查看文件

5
     <el-button type="primary" size="small" icon="el-icon-circle-plus" style="float:right;" @click="addRoleAction">新增</el-button>
5
     <el-button type="primary" size="small" icon="el-icon-circle-plus" style="float:right;" @click="addRoleAction">新增</el-button>
6
   </div>
6
   </div>
7
   <div class="app-container">
7
   <div class="app-container">
8
-    <el-table :data="roles" v-loading="loading_roles" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
8
+    <el-table :data="roles" v-loading="loading_roles" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
9
       <el-table-column label="角色名称" prop="name" min-width="20%"></el-table-column>
9
       <el-table-column label="角色名称" prop="name" min-width="20%"></el-table-column>
10
       <el-table-column label="角色描述" prop="intro" min-width="25%"></el-table-column>
10
       <el-table-column label="角色描述" prop="intro" min-width="25%"></el-table-column>
11
       <el-table-column label="状态" min-width="15%">
11
       <el-table-column label="状态" min-width="15%">
18
           </div>
18
           </div>
19
         </template>
19
         </template>
20
       </el-table-column>
20
       </el-table-column>
21
-      <el-table-column label="操作" min-width="40%">
21
+      <el-table-column label="操作" width="180">
22
         <template slot-scope="scope">
22
         <template slot-scope="scope">
23
           <router-link :to='{ path:"/role/perview", query:{ id:scope.row.id }}'>
23
           <router-link :to='{ path:"/role/perview", query:{ id:scope.row.id }}'>
24
             <el-tooltip class="item" effect="dark" content="权限设置" placement="top">
24
             <el-tooltip class="item" effect="dark" content="权限设置" placement="top">

+ 98 - 45
src/xt_pages/sign/index.vue 查看文件

35
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
35
                     <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
36
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
36
                     <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
37
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
37
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
38
-                    <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center" >
38
+                    <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
39
                         <template slot-scope="scope">
39
                         <template slot-scope="scope">
40
                             {{scope.row.before}} / {{scope.row.after}}
40
                             {{scope.row.before}} / {{scope.row.after}}
41
                         </template>
41
                         </template>
88
                             </el-form-item>
88
                             </el-form-item>
89
                         </el-col>
89
                         </el-col>
90
                     </el-row>
90
                     </el-row>
91
-
92
-                    <div class="border"></div>
93
-                    
91
+                    <div class="border"></div>                  
94
                     <el-row :gutter="20">
92
                     <el-row :gutter="20">
95
                         <el-col :span="8">
93
                         <el-col :span="8">
96
                             <el-form-item label="透后称重(kg):" label-width="100px">
94
                             <el-form-item label="透后称重(kg):" label-width="100px">
133
                     <el-row :gutter="20">
131
                     <el-row :gutter="20">
134
                         <el-col :span="23" align="right" class="button">
132
                         <el-col :span="23" align="right" class="button">
135
                             <el-button  @click="hide()">取消</el-button>
133
                             <el-button  @click="hide()">取消</el-button>
136
-                            <el-button @click="savedata();updatedata()" type="primary">保存</el-button>
134
+                            <el-button @click="savedata();updatedata();sighdata()" type="primary">保存</el-button>
137
                         </el-col>
135
                         </el-col>
138
                     </el-row>
136
                     </el-row>
139
                    </div>
137
                    </div>
145
 </template>
143
 </template>
146
 
144
 
147
 <script>
145
 <script>
148
-import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
146
+import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata,sighdata} from '@/api/signandweigh'
149
 import BreadCrumb from '../components/bread-crumb'
147
 import BreadCrumb from '../components/bread-crumb'
150
 export default {
148
 export default {
151
   name: 'sign',
149
   name: 'sign',
259
               if (this.schedules[index].type in response.data.data.panel) {
257
               if (this.schedules[index].type in response.data.data.panel) {
260
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
258
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
261
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
259
                 this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
262
-                console.log("签到统计")
263
-                console.log(response.data.data.panel)
264
-                console.log(this.schedules[index].sign)
265
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
260
                 this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
266
                 this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
261
                 this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
267
               }
262
               }
270
         }
265
         }
271
       })
266
       })
272
     },
267
     },
273
-    //   getPatientSign(){
274
-    //       getPatientSign(this.querySignParams).then(response=>{
275
-    //           if (response.data.state==1) {
276
-    //               if (response.data.data.sign != null) {
277
-    //                   var sign = response.data.data.sign;
278
-    //                   this.weigh_form.dry_weight = sign.dry_weight;
279
-    //                   this.weigh_form.clothes_weight = sign.clothes_weight;
280
-    //                     // 透前
281
-    //                   this.weigh_form.weigh_before = sign.weigh_before;
282
-    //                   this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
283
-    //                   this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
284
-    //                   this.weigh_form.weight_before = sign.weight_before;
285
-    //                   this.weigh_form.temperature_before = sign.temperature_before;
286
-    //                   this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
287
-    //                   this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
288
-    //                   this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
289
-    //                   this.weigh_form.SBP_before = sign.SBP_before // 收缩压
290
-    //                     // 透后
291
-    //                   this.weigh_form.weigh_after = sign.weigh_after;
292
-    //                   this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
293
-    //                   this.weigh_form.weight_after = sign.weight_after
294
-    //                   this.weigh_form.temperature_after = sign.temperature_after;
295
-    //                   this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
296
-    //                   this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
297
-    //                   this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
298
-    //                   this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
299
-    //                   this.weigh_form.id=sign.id;
300
-    //               }
301
-    //           }
302
-    //       });
303
-    //   },
268
+      // getPatientSign(){
269
+      //     getPatientSign(this.querySignParams).then(response=>{
270
+      //         if (response.data.state==1) {
271
+      //             if (response.data.data.sign != null) {
272
+      //                 var sign = response.data.data.sign;
273
+      //                 this.weigh_form.dry_weight = sign.dry_weight;
274
+      //                 this.weigh_form.clothes_weight = sign.clothes_weight;
275
+      //                   // 透前
276
+      //                 this.weigh_form.weigh_before = sign.weigh_before;
277
+      //                 this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
278
+      //                 this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
279
+      //                 this.weigh_form.weight_before = sign.weight_before;
280
+      //                 this.weigh_form.temperature_before = sign.temperature_before;
281
+      //                 this.weigh_form.pulse_rate_before = sign.pulse_rate_before;  // P 脉率
282
+      //                 this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
283
+      //                 this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
284
+      //                 this.weigh_form.SBP_before = sign.SBP_before // 收缩压
285
+      //                   // 透后
286
+      //                 this.weigh_form.weigh_after = sign.weigh_after;
287
+      //                 this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
288
+      //                 this.weigh_form.weight_after = sign.weight_after
289
+      //                 this.weigh_form.temperature_after = sign.temperature_after;
290
+      //                 this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
291
+      //                 this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
292
+      //                 this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
293
+      //                 this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
294
+      //                 this.weigh_form.id=sign.id;
295
+      //             }
296
+      //         }
297
+      //     });
298
+      // },
304
     changeSearch() {
299
     changeSearch() {
305
       this.queryParams.need_schedule_type = 0
300
       this.queryParams.need_schedule_type = 0
306
       this.fetchSignPatients()
301
       this.fetchSignPatients()
438
           this.weigh_list.breathing_rate = patientlist.breathing_rate
433
           this.weigh_list.breathing_rate = patientlist.breathing_rate
439
           this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
434
           this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
440
           this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
435
           this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
441
-          console.log('报恩')
442
-          console.log(patientlist)
443
         }
436
         }
444
       })
437
       })
445
     },
438
     },
482
           })
475
           })
483
         }
476
         }
484
       })
477
       })
485
-      console.log('aaaaaaaaaaaaaaaaaa')
486
-      console.log(params)
487
     },
478
     },
488
     hide() {
479
     hide() {
489
       this.show = false
480
       this.show = false
508
       })
499
       })
509
       console.log('hahahahah')
500
       console.log('hahahahah')
510
       console.log(params)
501
       console.log(params)
511
-    }
502
+    },
503
+    sighdata() {
504
+      //透前数据
505
+      var params = new Object()
506
+      var data_time = this.querySignParams.date_time
507
+      params.date_time = data_time
508
+      params.patient_id = this.weigh_form.patient_id
509
+      params.dry_weight = this.weigh_list.dry_weight
510
+      params.weight_before = this.weigh_list.weight_before
511
+      params.temperature = this.weigh_list.temperature
512
+      params.pulse_frequency = this.weigh_list.pulse_frequency
513
+      params.breathing_rate = this.weigh_list.breathing_rate
514
+      params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
515
+      params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
516
+      
517
+      //透后数据
518
+      params.weight_after = this.weigh_infor.weight_after
519
+      params.temperatureafter = this.weigh_infor.temperature
520
+      params.pulse_frequencyafter = this.weigh_infor.pulse_frequency
521
+      params.breathing_rateafter = this.weigh_infor.breathing_rate
522
+      params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
523
+      params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
524
+      console.log("params数据",params)
525
+      sighdata(params).then(response => {
526
+         var signs = response.data.data.signs
527
+           console.log(signs)
528
+        if (response.data.state === 1) {
529
+          this.$message({
530
+            type: 'success',
531
+            message: '成功!'
532
+          })
533
+        var tlen = this.patients.length
534
+        for(let index=0;index<tlen;index++ ){
535
+           if(this.patients[index].id ==params.patient_id){
536
+              var signin = this.patients[index].signin
537
+              this.patients[index].signin = response.data.data.signs
538
+
539
+              if(this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)){
540
+                    var sl = this.schedules.length
541
+                    for(let j = 0; j < sl; j++){
542
+                         if(this.schedules[j].type === this.patients[index].schedule.schedule_type){
543
+                              if(this.weigh_form.id > 0){
544
+                                  this.schedules[j].sign++
545
+                              }
546
+                              if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
547
+                                   this.schedules[j].before++
548
+                              }
549
+                              if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){
550
+                                  this.schedules[j].after++
551
+                              }
552
+                         }
553
+                    }  
554
+              }
555
+              break
556
+           }
557
+         }
558
+           this.weigh_form.id = response.data.data.signs.id
559
+        }else{
560
+           this.$message.error(response.data.msg)
561
+           return false
562
+        }
563
+      })
564
+ }
512
   },
565
   },
513
   watch: {
566
   watch: {
514
     'weigh_form.weigh_before': function() {
567
     'weigh_form.weigh_before': function() {

+ 0 - 3
src/xt_pages/stock/cancelStockOrderAdd.vue 查看文件

194
               tempForm['good_type_id'] = val.goodTypeId
194
               tempForm['good_type_id'] = val.goodTypeId
195
               tempForm['good_id'] = val.selectedGoodInfo[i].id
195
               tempForm['good_id'] = val.selectedGoodInfo[i].id
196
               tempForm['return_count'] = ''
196
               tempForm['return_count'] = ''
197
-              // this.recordInfo.recordData.push(tempForm)
198
               this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
197
               this.recordInfo.recordData.splice(this.currentIndex+1, 0, tempForm);
199
 
198
 
200
-
201
-
202
             }
199
             }
203
           }
200
           }
204
         }
201
         }

+ 5 - 5
src/xt_pages/stock/cancelStockOrderDetail.vue 查看文件

6
   <div class="app-container">
6
   <div class="app-container">
7
 
7
 
8
     <div class="filter-container">
8
     <div class="filter-container">
9
-      <span style="font-size: 20px">退库单详情</span>
9
+      <span style="font-size: 20px;color: #606266">退库单详情</span>
10
       <el-row style="float:right;">
10
       <el-row style="float:right;">
11
-        <span>{{CancelStockInfo.cancelStock.order_number}}</span>
11
+        <span style="color: #606266">{{CancelStockInfo.cancelStock.order_number}}</span>
12
       </el-row>
12
       </el-row>
13
     </div>
13
     </div>
14
 
14
 
15
 
15
 
16
 
16
 
17
     <div class="cell clearfix">
17
     <div class="cell clearfix">
18
-      <span style="width: 300px">单据日期:  {{CancelStockInfo.cancelStock.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
-      <span style="width: 300px">厂商 {{getManufactuerName(CancelStockInfo.cancelStock.manufacturer)}}</span>
20
-      <span style="width: 300px">经销商 {{getDealerName(CancelStockInfo.cancelStock.dealer)}}</span>
18
+      <span style="width: 300px;color: #606266">单据日期:  {{CancelStockInfo.cancelStock.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
+      <span style="width: 300px;color: #606266">厂商 {{getManufactuerName(CancelStockInfo.cancelStock.manufacturer)}}</span>
20
+      <span style="width: 300px;color: #606266">经销商 {{getDealerName(CancelStockInfo.cancelStock.dealer)}}</span>
21
     </div>
21
     </div>
22
 
22
 
23
     <div class="filter-container" style="margin-top: 10px">
23
     <div class="filter-container" style="margin-top: 10px">

+ 2 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue 查看文件

2
   <div class="main-contain">
2
   <div class="main-contain">
3
     <div class="app-container">
3
     <div class="app-container">
4
       <div class="cell clearfix" >
4
       <div class="cell clearfix" >
5
-        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品类型"/>
5
+        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品"/>
6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7
       </div>
7
       </div>
8
 
8
 
59
             </template>
59
             </template>
60
           </el-table-column>
60
           </el-table-column>
61
 
61
 
62
-          <el-table-column label="商品类型" align="center">
62
+          <el-table-column label="商品" align="center">
63
             <template slot-scope="scope">
63
             <template slot-scope="scope">
64
               {{specificationName(scope.row.good_id)}}
64
               {{specificationName(scope.row.good_id)}}
65
             </template>
65
             </template>

+ 6 - 6
src/xt_pages/stock/salesReturnOrderDetail.vue 查看文件

7
     <div class="app-container">
7
     <div class="app-container">
8
 
8
 
9
       <div class="filter-container">
9
       <div class="filter-container">
10
-        <span style="font-size: 18px">退货单详情</span>
11
-        <el-row style="float:right;">
12
-          <span>{{ReturnInfo.salesReturn.order_number}}</span>
10
+        <span style="font-size: 18px;color: #606266">退货单详情</span>
11
+        <el-row style="float:right;color: #606266">
12
+          <span style="color: #606266">{{ReturnInfo.salesReturn.order_number}}</span>
13
         </el-row>
13
         </el-row>
14
       </div>
14
       </div>
15
 
15
 
16
 
16
 
17
       <div class="cell clearfix">
17
       <div class="cell clearfix">
18
-        <span style="width: 300px">单据日期:  {{ReturnInfo.salesReturn.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
-        <span style="width: 300px">厂商: {{getManufactuerName(ReturnInfo.salesReturn.manufacturer)}}</span>
20
-        <span style="width: 300px">经销商: {{getDealerName(ReturnInfo.salesReturn.dealer)}}</span>
18
+        <span style="width: 300px;color: #606266">单据日期:  {{ReturnInfo.salesReturn.return_time | parseTime('{y}-{m}-{d}')}} </span>
19
+        <span style="width: 300px;color: #606266">厂商: {{getManufactuerName(ReturnInfo.salesReturn.manufacturer)}}</span>
20
+        <span style="width: 300px;color: #606266">经销商: {{getDealerName(ReturnInfo.salesReturn.dealer)}}</span>
21
       </div>
21
       </div>
22
 
22
 
23
       <div class="filter-container" style="margin-top: 10px">
23
       <div class="filter-container" style="margin-top: 10px">

+ 6 - 6
src/xt_pages/stock/stockInOrderDetail.vue 查看文件

5
     </div>
5
     </div>
6
   <div class="app-container">
6
   <div class="app-container">
7
     <div class="filter-container">
7
     <div class="filter-container">
8
-      <span style="font-size: 18px">入库单详情</span>
8
+      <span style="font-size: 18px;color: #606266">入库单详情</span>
9
       <el-row style="float:right;">
9
       <el-row style="float:right;">
10
-        <span>入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
10
+        <span style="color: #606266">入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
11
       </el-row>
11
       </el-row>
12
     </div>
12
     </div>
13
 
13
 
14
     <div class="cell clearfix">
14
     <div class="cell clearfix">
15
-      <span style="width: 300px">单据日期:  {{WarehouseInfo.warehouse.warehousing_time | parseTime('{y}-{m}-{d}')}}</span>
16
-      <span style="width: 300px">厂商: {{getManufactuerName(WarehouseInfo.warehouse.manufacturer)}}</span>
17
-      <span style="width: 300px">经销商: {{getDealerName(WarehouseInfo.warehouse.dealer)}}</span>
15
+      <span style="width: 300px;color: #606266">单据日期:  {{WarehouseInfo.warehouse.warehousing_time | parseTime('{y}-{m}-{d}')}}</span>
16
+      <span style="width: 300px;color: #606266">厂商: {{getManufactuerName(WarehouseInfo.warehouse.manufacturer)}}</span>
17
+      <span style="width: 300px;color: #606266">经销商: {{getDealerName(WarehouseInfo.warehouse.dealer)}}</span>
18
     </div>
18
     </div>
19
 
19
 
20
     <div class="cell clearfix" style="margin-top: 10px">
20
     <div class="cell clearfix" style="margin-top: 10px">
84
           </template>
84
           </template>
85
         </el-table-column>
85
         </el-table-column>
86
         <el-table-column label="有效日期" min-width="40" align="center">
86
         <el-table-column label="有效日期" min-width="40" align="center">
87
-          <template v-if="scope.row.product_date != 0" slot-scope="scope">
87
+          <template v-if="scope.row.expiry_date != 0" slot-scope="scope">
88
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
88
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
89
           </template>
89
           </template>
90
         </el-table-column>
90
         </el-table-column>

+ 5 - 5
src/xt_pages/stock/stockOutOrderDetail.vue 查看文件

7
     <div class="app-container">
7
     <div class="app-container">
8
 
8
 
9
       <div class="filter-container">
9
       <div class="filter-container">
10
-        <span style="font-size: 18px">出库单详情</span>
10
+        <span style="font-size: 18px;color: #606266">出库单详情</span>
11
         <el-row style="float:right;">
11
         <el-row style="float:right;">
12
-          <span>{{warehousingOutInfo.info.warehouse_out_order_number}}</span>
12
+          <span style="color: #606266">{{warehousingOutInfo.info.warehouse_out_order_number}}</span>
13
         </el-row>
13
         </el-row>
14
       </div>
14
       </div>
15
 
15
 
16
 
16
 
17
       <div class="cell clearfix">
17
       <div class="cell clearfix">
18
-        <span style="width: 300px;">单据日期:  {{warehousingOutInfo.info.warehouse_out_time | parseTime('{y}-{m}-{d}')}} </span>
19
-        <span style="width: 300px;">厂商 {{getManufactuerName(warehousingOutInfo.info.manufacturer)}}</span>
20
-        <span style="width: 300px;">经销商 {{getDealerName(warehousingOutInfo.info.dealer)}}</span>
18
+        <span style="width: 300px;color: #606266">单据日期:  {{warehousingOutInfo.info.warehouse_out_time | parseTime('{y}-{m}-{d}')}} </span>
19
+        <span style="width: 300px;color: #606266">厂商 {{getManufactuerName(warehousingOutInfo.info.manufacturer)}}</span>
20
+        <span style="width: 300px;color: #606266">经销商 {{getDealerName(warehousingOutInfo.info.dealer)}}</span>
21
       </div>
21
       </div>
22
 
22
 
23
       <div class="filter-container" style="margin-top: 10px">
23
       <div class="filter-container" style="margin-top: 10px">

+ 7 - 12
src/xt_pages/user/components/EditGroupAdvice.vue 查看文件

552
 
552
 
553
       openDeleteGroupAdvice() {
553
       openDeleteGroupAdvice() {
554
         if (this.groupSelectRow === null) {
554
         if (this.groupSelectRow === null) {
555
-          this.$notify.error({
556
-            title: "错误",
557
-            message: "未选择要删除的医嘱内容"
558
-          });
555
+          this.$message.error("未选择要删除的医嘱内容")
556
+
559
           return;
557
           return;
558
+
560
         }
559
         }
561
         console.log(this.groupSelectRow)
560
         console.log(this.groupSelectRow)
562
         var content = ""
561
         var content = ""
966
 
965
 
967
       openGroupChild() {
966
       openGroupChild() {
968
         if (this.groupSelectRow === null) {
967
         if (this.groupSelectRow === null) {
969
-          this.$notify.error({
970
-            title: "错误",
971
-            message: "未选择医嘱内容,无法添加子药"
972
-          });
968
+
969
+          this.$message.error("未选择医嘱内容,无法添加子药")
970
+
973
           return;
971
           return;
974
         } else if (this.groupSelectRow.parent_row > 0) {
972
         } else if (this.groupSelectRow.parent_row > 0) {
975
           this.$notify.error({
973
           this.$notify.error({
1003
         this.isChild = false;
1001
         this.isChild = false;
1004
         if (isEdit) {
1002
         if (isEdit) {
1005
           if (this.groupSelectRow === null) {
1003
           if (this.groupSelectRow === null) {
1006
-            this.$notify.error({
1007
-              title: "错误",
1008
-              message: "未选择要修改的医嘱内容"
1009
-            });
1004
+            this.$message.error("未选择要修改的医嘱内容")
1010
             return;
1005
             return;
1011
           }
1006
           }
1012
           if (this.groupSelectRow.parent_row) {
1007
           if (this.groupSelectRow.parent_row) {

+ 4 - 9
src/xt_pages/user/components/PatientForm.vue 查看文件

1
 <template>
1
 <template>
2
 <div class="main-contain">
2
 <div class="main-contain">
3
   <div class="position">
3
   <div class="position">
4
-    <bread-crumb :crumbs="crumbs"></bread-crumb>
5
 
4
 
6
     <div class="" style="float:right;">
5
     <div class="" style="float:right;">
7
        <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
6
        <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
37
               </el-col> -->
36
               </el-col> -->
38
               <el-col :span="8" :style="isEdit?'width:360px':''">
37
               <el-col :span="8" :style="isEdit?'width:360px':''">
39
                 <el-form-item label="透析号 : " class="is-required">
38
                 <el-form-item label="透析号 : " class="is-required">
40
-                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input> 
39
+                    <el-input disabled v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input>
41
                     <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button>
40
                     <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button>
42
                 </el-form-item>
41
                 </el-form-item>
43
               </el-col>
42
               </el-col>
59
               </el-col>
58
               </el-col>
60
               <el-col :span="8" >
59
               <el-col :span="8" >
61
                 <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
60
                 <el-form-item label="透析号 : " class="is-required" prop="dialysisNo" >
62
-                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input> 
61
+                    <el-input v-model="form.dialysisNo" placeholder="填写或自动生成" style="width:62%;float:left;margin-right: 2%;" ></el-input>
63
                     <el-button style="width:36%;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
62
                     <el-button style="width:36%;padding:10px 0;" :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" @click="generatedialysisno">自动生成</el-button>
64
                 </el-form-item>
63
                 </el-form-item>
65
               </el-col>
64
               </el-col>
66
             </template>
65
             </template>
67
-            
66
+
68
             <el-col :span="8" :style="isEdit?'width:360px':''">
67
             <el-col :span="8" :style="isEdit?'width:360px':''">
69
               <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
68
               <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
70
                   <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
69
                   <el-date-picker v-model="form.birth" type="date" placeholder="选择日期" :suffix-icon="'el-icon-menu'" @change="hadSelectBirth" format="yyyy-MM-dd" value-format="yyyy-MM-dd"></el-date-picker>
300
             </el-checkbox-group>
299
             </el-checkbox-group>
301
           </el-form-item>
300
           </el-form-item>
302
         </el-col>
301
         </el-col>
303
-        
302
+
304
         <el-col :span="24">
303
         <el-col :span="24">
305
           <el-form-item label="诊断 : " prop="diagnose">
304
           <el-form-item label="诊断 : " prop="diagnose">
306
             <el-input type="textarea" :rows="3" v-model="form.diagnose" resize="none" placeholder=""></el-input>
305
             <el-input type="textarea" :rows="3" v-model="form.diagnose" resize="none" placeholder=""></el-input>
489
     }
488
     }
490
 
489
 
491
     return {
490
     return {
492
-      crumbs: [
493
-        { path: false, name: '病人管理' },
494
-        { path: '/patients/create', name: '新增病人' },
495
-      ],
496
       generic_info_fold: true,
491
       generic_info_fold: true,
497
       treat_info_fold: true,
492
       treat_info_fold: true,
498
 
493
 

+ 7 - 10
src/xt_pages/user/courseOfDisease.vue 查看文件

14
                     </span>
14
                     </span>
15
                     <span class="filter_title">日期查询</span>
15
                     <span class="filter_title">日期查询</span>
16
                     <el-date-picker size="small" v-model="date" type="daterange" range-separator="至" start-placeholde="开始日期" end-placeholde="结束日期" value-format="timestamp" :clearable="false" @change="requestCourseRecords()"></el-date-picker>
16
                     <el-date-picker size="small" v-model="date" type="daterange" range-separator="至" start-placeholde="开始日期" end-placeholde="结束日期" value-format="timestamp" :clearable="false" @change="requestCourseRecords()"></el-date-picker>
17
-                    
17
+
18
                 </div>
18
                 </div>
19
                 <div class="record">
19
                 <div class="record">
20
                     <el-row :gutter="15">
20
                     <el-row :gutter="15">
35
                         </el-col>
35
                         </el-col>
36
                         <el-col :span="14">
36
                         <el-col :span="14">
37
                             <div class="record_content_panel">
37
                             <div class="record_content_panel">
38
-                                <div class="title">病程内容</div>
38
+                                <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
39
                                 <div class="content">
39
                                 <div class="content">
40
                                     {{ current_select_record == null ? "" : current_select_record.content }}
40
                                     {{ current_select_record == null ? "" : current_select_record.content }}
41
                                 </div>
41
                                 </div>
45
                 </div>
45
                 </div>
46
             </div>
46
             </div>
47
         <!-- </div> -->
47
         <!-- </div> -->
48
-        <el-dialog title="新增病程记录" width="40%" top="5vh" :visible.sync="show_dialog" :before-close="willCloseDialog">
48
+        <el-dialog title="新增病程记录" width="40%" top="5vh" :visible.sync="show_dialog">
49
             <div>
49
             <div>
50
                 <div class="new_record_form">
50
                 <div class="new_record_form">
51
                     <diV>
51
                     <diV>
60
 
60
 
61
                     <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
61
                     <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
62
                         <el-button @click="show_dialog = false">取消</el-button>
62
                         <el-button @click="show_dialog = false">取消</el-button>
63
-                        <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction" :loading="uploading_new_record">确定</el-button>
63
+                        <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction" :loading="uploading_new_record">保存</el-button>
64
                     </div>
64
                     </div>
65
                 </div>
65
                 </div>
66
             </div>
66
             </div>
77
 
77
 
78
 export default {
78
 export default {
79
     name: "CourseOfDisease",
79
     name: "CourseOfDisease",
80
-    components: { 
80
+    components: {
81
         PatientSidebar,
81
         PatientSidebar,
82
         BreadCrumb
82
         BreadCrumb
83
     },
83
     },
95
             show_dialog: false,
95
             show_dialog: false,
96
             uploading_new_record: false,
96
             uploading_new_record: false,
97
             templates: this.$store.getters.configlist.course_disease,
97
             templates: this.$store.getters.configlist.course_disease,
98
-            select_template: [],
98
+            select_template: '',
99
             new_content: "",
99
             new_content: "",
100
 
100
 
101
             selectingRows: [],
101
             selectingRows: [],
128
                     this.current_select_record = null
128
                     this.current_select_record = null
129
                     this.records = resp.data.records
129
                     this.records = resp.data.records
130
                     this.doctors = resp.data.doctors
130
                     this.doctors = resp.data.doctors
131
-                    
131
+
132
                 } else {
132
                 } else {
133
                     this.$message.error(resp.msg)
133
                     this.$message.error(resp.msg)
134
                 }
134
                 }
155
             return ""
155
             return ""
156
         },
156
         },
157
 
157
 
158
-        willCloseDialog: function() {
159
 
158
 
160
-        },
161
         createAction: function() {
159
         createAction: function() {
162
             if (this.new_content.length == 0) {
160
             if (this.new_content.length == 0) {
163
                 this.$message.error("请填写病程内容")
161
                 this.$message.error("请填写病程内容")
187
         didSelectTemplate: function(templateContent) {
185
         didSelectTemplate: function(templateContent) {
188
             this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
186
             this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
189
 
187
 
190
-            this.select_template = ""
191
         },
188
         },
192
 
189
 
193
         didSelectionChange: function(selectRows) {
190
         didSelectionChange: function(selectRows) {

+ 11 - 16
src/xt_pages/user/doctorAdvice.vue 查看文件

1459
     },
1459
     },
1460
     openGroupChild() {
1460
     openGroupChild() {
1461
       if (this.groupSelectRow === null) {
1461
       if (this.groupSelectRow === null) {
1462
-        this.$notify.error({
1463
-          title: "错误",
1464
-          message: "未选择医嘱内容,无法添加子药"
1465
-        });
1462
+
1463
+        this.$message.error("未选择医嘱内容,无法添加子药")
1464
+
1466
         return;
1465
         return;
1467
       } else if (this.groupSelectRow.parent_row > 0) {
1466
       } else if (this.groupSelectRow.parent_row > 0) {
1468
-        this.$notify.error({
1469
-          title: "错误",
1470
-          message: "子药不能添加子药"
1471
-        });
1467
+
1468
+        this.$message.error("子药不能添加子药")
1469
+
1472
         return;
1470
         return;
1473
       }
1471
       }
1474
       this.nameForm = {
1472
       this.nameForm = {
1495
       this.isChild = false;
1493
       this.isChild = false;
1496
       if (isEdit) {
1494
       if (isEdit) {
1497
         if (this.groupSelectRow === null) {
1495
         if (this.groupSelectRow === null) {
1498
-          this.$notify.error({
1499
-            title: "错误",
1500
-            message: "未选择要修改的医嘱内容"
1501
-          });
1496
+
1497
+          this.$message.error("未选择要修改的医嘱内容")
1498
+
1502
           return;
1499
           return;
1500
+
1503
         }
1501
         }
1504
         if (this.groupSelectRow.parent_row) {
1502
         if (this.groupSelectRow.parent_row) {
1505
           this.isChild = true;
1503
           this.isChild = true;
1550
     },
1548
     },
1551
     openDeleteGroupAdvice() {
1549
     openDeleteGroupAdvice() {
1552
       if (this.groupSelectRow === null) {
1550
       if (this.groupSelectRow === null) {
1553
-        this.$notify.error({
1554
-          title: "错误",
1555
-          message: "未选择要删除的医嘱内容"
1556
-        });
1551
+        this.$message.error("未选择要删除的医嘱内容")
1557
         return;
1552
         return;
1558
       }
1553
       }
1559
       var content = "";
1554
       var content = "";