Przeglądaj źródła

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

xiaoming_global 6 lat temu
rodzic
commit
cb2bea7e18
34 zmienionych plików z 515 dodań i 275 usunięć
  1. 1 1
      config/dev.env.js
  2. 8 8
      src/api/stock.js
  3. 7 7
      src/lang/zh.js
  4. 67 64
      src/router/index.js
  5. 1 1
      src/styles/index.scss
  6. 9 3
      src/views/layout/components/TagsView.vue
  7. 1 1
      src/xt_pages/data/components/table.vue
  8. 1 1
      src/xt_pages/data/components/tableson.vue
  9. 5 12
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  10. 9 12
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  11. 6 12
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  12. 0 1
      src/xt_pages/dialysis/details/index.vue
  13. 21 16
      src/xt_pages/role/admin.vue
  14. 238 0
      src/xt_pages/role/components/AdminInfoForm.vue
  15. 2 2
      src/xt_pages/role/role.vue
  16. 8 31
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  17. 0 3
      src/xt_pages/stock/cancelStockOrderAdd.vue
  18. 5 5
      src/xt_pages/stock/cancelStockOrderDetail.vue
  19. 1 1
      src/xt_pages/stock/cancelStockOrderEdit.vue
  20. 3 3
      src/xt_pages/stock/detail/cancelStockDetail.vue
  21. 3 3
      src/xt_pages/stock/detail/salesReturnDetail.vue
  22. 2 2
      src/xt_pages/stock/detail/stockInDetail.vue
  23. 2 2
      src/xt_pages/stock/detail/stockOutDetail.vue
  24. 1 1
      src/xt_pages/stock/salesReturnEdit.vue
  25. 6 6
      src/xt_pages/stock/salesReturnOrderDetail.vue
  26. 6 6
      src/xt_pages/stock/stockInOrderDetail.vue
  27. 1 1
      src/xt_pages/stock/stockInOrderEdit.vue
  28. 5 5
      src/xt_pages/stock/stockOutOrderDetail.vue
  29. 1 1
      src/xt_pages/stock/stockOutOrderEdit.vue
  30. 7 12
      src/xt_pages/user/components/EditGroupAdvice.vue
  31. 8 13
      src/xt_pages/user/components/PatientForm.vue
  32. 67 21
      src/xt_pages/user/courseOfDisease.vue
  33. 11 16
      src/xt_pages/user/doctorAdvice.vue
  34. 2 2
      src/xt_pages/workforce/components/setup_template_dialog.vue

+ 1 - 1
config/dev.env.js Wyświetl plik

@@ -6,5 +6,5 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  BASE_API:'"http://localhost:9529"', //'"http://112.74.16.180:9527"', //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://112.74.16.180:9527"', // '"http://localhost:9529"'//http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10 10
 }

+ 8 - 8
src/api/stock.js Wyświetl plik

@@ -385,9 +385,9 @@ export function DeleteWarehouseInfoItem(params) {
385 385
   })
386 386
 }
387 387
 
388
-export function EditWarehouse(params, warehousing_time, id) {
388
+export function EditWarehouse(params, warehousing_time, id,type) {
389 389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type,
391 391
     method: 'post',
392 392
     data: params
393 393
   })
@@ -433,9 +433,9 @@ export function deleteSalesReturnInfo(params) {
433 433
   })
434 434
 }
435 435
 
436
-export function editSalesReturnInfo(params, return_time, id) {
436
+export function editSalesReturnInfo(params, return_time, id,type) {
437 437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type,
439 439
     method: 'post',
440 440
     data: params
441 441
   })
@@ -473,9 +473,9 @@ export function getWarehouseOutInfo(params) {
473 473
   })
474 474
 }
475 475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id,type) {
477 477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type,
479 479
     method: 'post',
480 480
     data: params
481 481
   })
@@ -489,9 +489,9 @@ export function getCancelStockList(params) {
489 489
   })
490 490
 }
491 491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id,type) {
493 493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type,
495 495
     method: 'post',
496 496
     data: params
497 497
   })

+ 7 - 7
src/lang/zh.js Wyświetl plik

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

+ 67 - 64
src/router/index.js Wyświetl plik

@@ -125,44 +125,6 @@ export const xt_constantRouterMap = [
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 129
     path: '/patients',
168 130
     component: Layout,
@@ -323,6 +285,17 @@ export const xt_constantRouterMap = [
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 300
     path: '/dialysis/',
328 301
     component: Layout,
@@ -367,24 +340,6 @@ export const xt_constantRouterMap = [
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 343
     path: '/stock/',
389 344
     component: Layout,
390 345
     redirect: 'noredirect',
@@ -508,6 +463,34 @@ export const xt_constantRouterMap = [
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 495
     path: '/data/',
513 496
     component: Layout,
@@ -520,6 +503,20 @@ export const xt_constantRouterMap = [
520 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 521
     path: '/role',
525 522
     component: Layout,
@@ -535,7 +532,13 @@ export const xt_constantRouterMap = [
535 532
       { path: '/role/perview', component: () => import('@/xt_pages/role/EditPerview'), name: 'setupPerview', meta: { title: 'setupPerview', noCache: true }, hidden: true, is_menu: false },
536 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 542
   // /////////////本地要end/
540 543
 ]
541 544
 
@@ -712,13 +715,13 @@ export const xt_asyncRouterMap = [
712 715
   // {
713 716
   //   path: '/sign',
714 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 727
   //   path: '/dialysis/',

+ 1 - 1
src/styles/index.scss Wyświetl plik

@@ -458,7 +458,7 @@ code {
458 458
   // z-index: 9999!important;
459 459
 }
460 460
 .el-message{
461
-  z-index: 2004!important;
461
+  z-index: 99999!important;
462 462
 }
463 463
 .el-select-dropdown{
464 464
   // z-index: 2003!important;

+ 9 - 3
src/views/layout/components/TagsView.vue Wyświetl plik

@@ -1,8 +1,14 @@
1 1
 <template>
2 2
   <div class="tags-view-container">
3 3
     <scroll-pane class='tags-view-wrapper' ref='scrollPane'>
4
-      <router-link ref='tag' class="tags-view-item" :class="isActive(tag)?'active':''" v-for="tag in Array.from(visitedViews)"
5
-        :to="tag" :key="tag.path" @contextmenu.prevent.native="openMenu(tag,$event)">
4
+      <router-link 
5
+        ref='tag' 
6
+        class="tags-view-item" 
7
+        :class="isActive(tag)?'active':''" 
8
+        v-for="tag in Array.from(visitedViews)"
9
+        :to="tag" 
10
+        :key="tag.path" 
11
+        @contextmenu.prevent.native="openMenu(tag,$event)">
6 12
         {{generateTitle(tag.title)}}
7 13
         <span class='el-icon-close' @click.prevent.stop='closeSelectedTag(tag)'></span>
8 14
       </router-link>
@@ -18,7 +24,7 @@
18 24
 <script>
19 25
 import ScrollPane from '@/components/ScrollPane'
20 26
 import { generateTitle } from '@/utils/i18n'
21
-
27
+  
22 28
 export default {
23 29
   components: { ScrollPane },
24 30
   data() {

+ 1 - 1
src/xt_pages/data/components/table.vue Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 <template>
2 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 5
       <el-table-column  align="center" label="名称">
6 6
         <template slot-scope="scope">

+ 1 - 1
src/xt_pages/data/components/tableson.vue Wyświetl plik

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="">
3 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" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5 5
     </div>
6 6
 
7 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 Wyświetl plik

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

+ 9 - 12
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Wyświetl plik

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

+ 6 - 12
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue Wyświetl plik

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

+ 0 - 1
src/xt_pages/dialysis/details/index.vue Wyświetl plik

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

+ 21 - 16
src/xt_pages/role/admin.vue Wyświetl plik

@@ -2,22 +2,22 @@
2 2
 <div class="main-contain">
3 3
   <div class="position">
4 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 8
   </div>
9 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 14
         <template slot-scope="scope">
15 15
           <span>{{ scope.row.last_login_time == 0 ? '' : (_parseTime(scope.row.last_login_time, '{y}-{m}-{d} {h}:{i}'))}}</span>
16 16
         </template>
17 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 21
         <template slot-scope="scope">
22 22
           <div v-if="scope.row.status == 1" style="color: #67C23A; font-size:20px;">
23 23
             <li class="el-icon-success"></li>
@@ -27,13 +27,13 @@
27 27
           </div>
28 28
         </template>
29 29
       </el-table-column>
30
-      <el-table-column label="操作" >
30
+      <el-table-column label="操作" width="120">
31 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 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 35
             </el-tooltip> 
36
-          </router-link>
36
+          <!-- </router-link> -->
37 37
           <el-tooltip class="item" effect="dark" content="移除" placement="top">
38 38
             <el-button type="danger" size="small" icon="el-icon-delete" v-if="scope.row.status == 1" @click="disableAdminAction(scope.row)"></el-button>
39 39
           </el-tooltip>
@@ -49,6 +49,7 @@
49 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 50
       </el-col>
51 51
     </el-row>
52
+    <admin-info-form ref="admininfoform"  ></admin-info-form>
52 53
   </div>
53 54
 </div>
54 55
 
@@ -58,6 +59,7 @@
58 59
 import {adminMainView, getAdmins, setAdminStatus} from '@/api/role/admin'
59 60
 import { parseTime } from '@/utils'
60 61
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
62
+import AdminInfoForm from "./components/AdminInfoForm";
61 63
 
62 64
 export default {
63 65
   name: 'adminManage',
@@ -75,8 +77,8 @@ export default {
75 77
     }
76 78
   },
77 79
   components:{
78
-    BreadCrumb
79
-    
80
+    BreadCrumb,
81
+    AdminInfoForm
80 82
   },
81 83
   created: function() {
82 84
     adminMainView().then(rs => {
@@ -103,6 +105,9 @@ export default {
103 105
     }
104 106
   },
105 107
   methods: {
108
+    openForm(adminId) {
109
+      this.$refs['admininfoform'].open(adminId);
110
+    },
106 111
     _parseTime(time, format) {
107 112
       return parseTime(time, format)
108 113
     },

+ 238 - 0
src/xt_pages/role/components/AdminInfoForm.vue Wyświetl plik

@@ -0,0 +1,238 @@
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 Wyświetl plik

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

+ 8 - 31
src/xt_pages/stock/Dialog/goodInfoDailog.vue Wyświetl plik

@@ -41,61 +41,38 @@
41 41
       </el-row>
42 42
 
43 43
       <el-row>
44
-        <el-col :span="8">
45
-          <el-form-item label="生产厂家" prop="dealer">
46
-            <el-select  v-model="form.manufacturer" placeholder="请选择">
47
-              <el-option
48
-                v-for="item in form.manufacturers"
49
-                :key="item.id"
50
-                :label="item.manufacturer_name"
51
-                :value="item.id">
52
-              </el-option>
53
-            </el-select>
54
-          </el-form-item>
55
-        </el-col>
56
-
57
-        <el-col :span="8">
58
-          <el-form-item label="经销商" prop="manufacturer">
59
-            <el-select  v-model="form.dealer" placeholder="请选择">
60
-              <el-option
61
-                v-for="item in form.dealers"
62
-                :key="item.id"
63
-                :label="item.dealer_name"
64
-                :value="item.id">
65
-              </el-option>
66
-            </el-select>
67
-          </el-form-item>
68
-        </el-col>
69 44
 
70 45
         <el-col :span="8">
71 46
           <el-form-item label="进货价" prop="buy_price">
72 47
             <el-input  type="number" v-model="form.buy_price"></el-input>
73 48
           </el-form-item>
74 49
         </el-col>
75
-      </el-row>
76 50
 
77
-      <el-row>
78 51
         <el-col :span="8">
79 52
           <el-form-item label="出货价" prop="sell_price">
80 53
             <el-input  type="number" v-model="form.sell_price"></el-input>
81 54
           </el-form-item>
82 55
         </el-col>
83
-
84 56
         <el-col :span="8">
85 57
           <el-form-item label="有效期预警天数" prop="expiry_date_warn_day_count">
86 58
             <el-input type="number" v-model="form.expiry_date_warn_day_count"></el-input>
87 59
           </el-form-item>
88 60
         </el-col>
89 61
 
62
+
63
+      </el-row>
64
+
65
+
66
+      <el-row>
67
+
90 68
         <el-col :span="8">
91 69
           <el-form-item label="库存预警数量" prop="stock_warn_count">
92 70
             <el-input  type="number" v-model="form.stock_warn_count"></el-input>
93 71
           </el-form-item>
94 72
         </el-col>
95
-      </el-row>
96 73
 
97
-      <el-row>
98
-       <el-col :span="16">
74
+
75
+        <el-col :span="16">
99 76
         <el-form-item label="是否可复用" prop="is_reuse">
100 77
             <el-radio v-model="form.is_reuse" label="1">可以</el-radio>
101 78
             <el-radio v-model="form.is_reuse" label="2">不可以</el-radio>

+ 0 - 3
src/xt_pages/stock/cancelStockOrderAdd.vue Wyświetl plik

@@ -194,11 +194,8 @@
194 194
               tempForm['good_type_id'] = val.goodTypeId
195 195
               tempForm['good_id'] = val.selectedGoodInfo[i].id
196 196
               tempForm['return_count'] = ''
197
-              // this.recordInfo.recordData.push(tempForm)
198 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 Wyświetl plik

@@ -6,18 +6,18 @@
6 6
   <div class="app-container">
7 7
 
8 8
     <div class="filter-container">
9
-      <span style="font-size: 20px">退库单详情</span>
9
+      <span style="font-size: 20px;color: #606266">退库单详情</span>
10 10
       <el-row style="float:right;">
11
-        <span>{{CancelStockInfo.cancelStock.order_number}}</span>
11
+        <span style="color: #606266">{{CancelStockInfo.cancelStock.order_number}}</span>
12 12
       </el-row>
13 13
     </div>
14 14
 
15 15
 
16 16
 
17 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 21
     </div>
22 22
 
23 23
     <div class="filter-container" style="margin-top: 10px">

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue Wyświetl plik

@@ -302,7 +302,7 @@
302 302
             const params = {
303 303
               'cancelStock': this.recordInfo.recordData
304 304
             }
305
-            editCancelStockInfo(params, this.return_time, this.$route.query.id).then(response => {
305
+            editCancelStockInfo(params, this.return_time, this.$route.query.id,this.$route.query.type).then(response => {
306 306
               if (response.data.state == 0) {
307 307
                 this.$message.error(response.data.msg)
308 308
                 return false

+ 3 - 3
src/xt_pages/stock/detail/cancelStockDetail.vue Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 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 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -53,13 +53,13 @@
53 53
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
54 54
         >
55 55
 
56
-          <el-table-column label="单据编号" align="center">
56
+          <el-table-column label="单据编号" align="center" width="200">
57 57
             <template slot-scope="scope">
58 58
               {{scope.row.order_number}}
59 59
             </template>
60 60
           </el-table-column>
61 61
 
62
-          <el-table-column label="商品类型" align="center">
62
+          <el-table-column label="商品" align="center">
63 63
             <template slot-scope="scope">
64 64
               {{specificationName(scope.row.good_id)}}
65 65
             </template>

+ 3 - 3
src/xt_pages/stock/detail/salesReturnDetail.vue Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 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 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -56,9 +56,9 @@
56 56
 
57 57
 
58 58
 
59
-          <el-table-column label="单据编号" align="center">
59
+          <el-table-column label="单据编号" align="center"  width="200">
60 60
             <template slot-scope="scope">
61
-              {{scope.row.order_number}}
61
+              {{scope.row.SalesReturn.order_number}}
62 62
             </template>
63 63
           </el-table-column>
64 64
 

+ 2 - 2
src/xt_pages/stock/detail/stockInDetail.vue Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 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 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -53,7 +53,7 @@
53 53
 
54 54
         >
55 55
 
56
-          <el-table-column label="单据编号" align="center">
56
+          <el-table-column label="单据编号" align="center"  width="200">
57 57
             <template slot-scope="scope">
58 58
               {{scope.row.warehousing_order}}
59 59
             </template>

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Wyświetl plik

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 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 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -57,7 +57,7 @@
57 57
 
58 58
 
59 59
 
60
-          <el-table-column label="单据编号" align="center">
60
+          <el-table-column label="单据编号" align="center"  width="200">
61 61
             <template slot-scope="scope">
62 62
               {{scope.row.warehouse_out_order_number}}
63 63
             </template>

+ 1 - 1
src/xt_pages/stock/salesReturnEdit.vue Wyświetl plik

@@ -315,7 +315,7 @@
315 315
             const params = {
316 316
               'salesReturn': this.recordInfo.recordData
317 317
             }
318
-            editSalesReturnInfo(params, this.return_time, this.$route.query.id).then(response => {
318
+            editSalesReturnInfo(params, this.return_time, this.$route.query.id,this.$route.query.type).then(response => {
319 319
               if (response.data.state == 0) {
320 320
                 this.$message.error(response.data.msg)
321 321
                 return false

+ 6 - 6
src/xt_pages/stock/salesReturnOrderDetail.vue Wyświetl plik

@@ -7,17 +7,17 @@
7 7
     <div class="app-container">
8 8
 
9 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 13
         </el-row>
14 14
       </div>
15 15
 
16 16
 
17 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 21
       </div>
22 22
 
23 23
       <div class="filter-container" style="margin-top: 10px">

+ 6 - 6
src/xt_pages/stock/stockInOrderDetail.vue Wyświetl plik

@@ -5,16 +5,16 @@
5 5
     </div>
6 6
   <div class="app-container">
7 7
     <div class="filter-container">
8
-      <span style="font-size: 18px">入库单详情</span>
8
+      <span style="font-size: 18px;color: #606266">入库单详情</span>
9 9
       <el-row style="float:right;">
10
-        <span>入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
10
+        <span style="color: #606266">入库单号: {{WarehouseInfo.warehouse.warehousing_order}}</span>
11 11
       </el-row>
12 12
     </div>
13 13
 
14 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 18
     </div>
19 19
 
20 20
     <div class="cell clearfix" style="margin-top: 10px">
@@ -84,7 +84,7 @@
84 84
           </template>
85 85
         </el-table-column>
86 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 88
             {{ scope.row.expiry_date | parseTime('{y}-{m}-{d}')}}
89 89
           </template>
90 90
         </el-table-column>

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue Wyświetl plik

@@ -423,7 +423,7 @@ export default {
423 423
             const params = {
424 424
               'stockIn': this.recordInfo.recordData
425 425
             }
426
-            EditWarehouse(params, this.warehousing_time, this.$route.query.id).then(response => {
426
+            EditWarehouse(params, this.warehousing_time, this.$route.query.id,this.$route.query.type).then(response => {
427 427
               if (response.data.state == 0) {
428 428
                 this.$message.error(response.data.msg)
429 429
                 return false

+ 5 - 5
src/xt_pages/stock/stockOutOrderDetail.vue Wyświetl plik

@@ -7,17 +7,17 @@
7 7
     <div class="app-container">
8 8
 
9 9
       <div class="filter-container">
10
-        <span style="font-size: 18px">出库单详情</span>
10
+        <span style="font-size: 18px;color: #606266">出库单详情</span>
11 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 13
         </el-row>
14 14
       </div>
15 15
 
16 16
 
17 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 21
       </div>
22 22
 
23 23
       <div class="filter-container" style="margin-top: 10px">

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Wyświetl plik

@@ -336,7 +336,7 @@
336 336
             const params = {
337 337
               'stockOut': this.recordInfo.recordData
338 338
             }
339
-            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id).then(response => {
339
+            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id,this.$route.query.type).then(response => {
340 340
               if (response.data.state == 0) {
341 341
                 this.$message.error(response.data.msg)
342 342
                 return false

+ 7 - 12
src/xt_pages/user/components/EditGroupAdvice.vue Wyświetl plik

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

+ 8 - 13
src/xt_pages/user/components/PatientForm.vue Wyświetl plik

@@ -1,7 +1,6 @@
1 1
 <template>
2 2
 <div class="main-contain">
3 3
   <div class="position">
4
-    <bread-crumb :crumbs="crumbs"></bread-crumb>
5 4
 
6 5
     <div class="" style="float:right;">
7 6
        <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
@@ -37,7 +36,7 @@
37 36
               </el-col> -->
38 37
               <el-col :span="8" :style="isEdit?'width:360px':''">
39 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 40
                     <el-button style="width:36%;padding:10px 0;" disabled type="primary">自动生成</el-button>
42 41
                 </el-form-item>
43 42
               </el-col>
@@ -59,12 +58,12 @@
59 58
               </el-col>
60 59
               <el-col :span="8" >
61 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 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 63
                 </el-form-item>
65 64
               </el-col>
66 65
             </template>
67
-            
66
+
68 67
             <el-col :span="8" :style="isEdit?'width:360px':''">
69 68
               <el-form-item label="出生日期 : "  class="is-required" prop="birth" >
70 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,7 +299,7 @@
300 299
             </el-checkbox-group>
301 300
           </el-form-item>
302 301
         </el-col>
303
-        
302
+
304 303
         <el-col :span="24">
305 304
           <el-form-item label="诊断 : " prop="diagnose">
306 305
             <el-input type="textarea" :rows="3" v-model="form.diagnose" resize="none" placeholder=""></el-input>
@@ -489,10 +488,6 @@ export default {
489 488
     }
490 489
 
491 490
     return {
492
-      crumbs: [
493
-        { path: false, name: '病人管理' },
494
-        { path: '/patients/create', name: '新增病人' },
495
-      ],
496 491
       generic_info_fold: true,
497 492
       treat_info_fold: true,
498 493
 
@@ -994,9 +989,6 @@ export default {
994 989
 
995 990
 <style rel="stylesheet/scss" lang="scss" scoped>
996 991
 
997
-.uploadHead {
998
-  // margin-top: 25%;
999
-}
1000 992
 .uploadHeadBtn {
1001 993
   width: 148px;
1002 994
   margin-top: 10px;
@@ -1006,7 +998,6 @@ export default {
1006 998
     width: 430px;
1007 999
     }
1008 1000
   .el-form-item {
1009
-    // margin-bottom: 17px !important;
1010 1001
     .el-select {
1011 1002
       width: 100%;
1012 1003
     }
@@ -1021,5 +1012,9 @@ export default {
1021 1012
     }
1022 1013
   }
1023 1014
 }
1015
+.el-select-dropdown,
1016
+.el-popper{
1017
+  z-index: 2000!important;
1018
+}
1024 1019
 </style>
1025 1020
 

+ 67 - 21
src/xt_pages/user/courseOfDisease.vue Wyświetl plik

@@ -3,19 +3,31 @@
3 3
     <div class="position">
4 4
        <bread-crumb></bread-crumb>
5 5
     </div> -->
6
-    <div class="patient-container ">
6
+    <div class="patient-container">
7 7
         <patient-sidebar :id="patient_id" defaultActive="1-2"></patient-sidebar>
8 8
         <!-- <div class="app-container"> -->
9
-            <div class="container" v-loading="loading">
10
-                <div>
9
+            <div  v-loading="loading">
10
+              <div class="patient-app-container advice-container app-container">
11
+
12
+              <div>
11 13
                     <span style="margin-left: 10px;float:right;">
12 14
                         <el-button type="primary" icon="el-icon-circle-plus-outline" size="small" @click="show_dialog = true">新增</el-button>
13 15
                         <el-button  size="small" v-show="selectingRows.length > 0" type="danger" @click="deleteAction">删除</el-button>
14 16
                     </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>
17
-                    
17
+                    <!--<span class="filter_title">日期查询</span>-->
18
+                    <!--<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>-->
18 19
                 </div>
20
+              <!--<div></div>-->
21
+              <div class="cell clearfix">
22
+                <label class="title"><span class="name">日期查询</span> : </label>
23
+                <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
24
+                                type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
25
+                                value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
26
+                <span class="">-</span>
27
+                <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
28
+                                type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
29
+                                value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
30
+              </div>
19 31
                 <div class="record">
20 32
                     <el-row :gutter="15">
21 33
                         <el-col :span="10">
@@ -35,7 +47,7 @@
35 47
                         </el-col>
36 48
                         <el-col :span="14">
37 49
                             <div class="record_content_panel">
38
-                                <div class="title">病程内容</div>
50
+                                <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
39 51
                                 <div class="content">
40 52
                                     {{ current_select_record == null ? "" : current_select_record.content }}
41 53
                                 </div>
@@ -45,7 +57,7 @@
45 57
                 </div>
46 58
             </div>
47 59
         <!-- </div> -->
48
-        <el-dialog title="新增病程记录" width="40%" top="5vh" :visible.sync="show_dialog" :before-close="willCloseDialog">
60
+        <el-dialog title="新增病程记录" width="40%" top="5vh" :visible.sync="show_dialog">
49 61
             <div>
50 62
                 <div class="new_record_form">
51 63
                     <diV>
@@ -60,13 +72,15 @@
60 72
 
61 73
                     <div style="text-align: right; padding-right: 0px; padding-top: 10px; padding-bottom: 10px;">
62 74
                         <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>
75
+                        <el-button :disabled="$store.getters.xt_user.subscibe.state==3?true:false" type="primary" @click="createAction" :loading="uploading_new_record">保存</el-button>
64 76
                     </div>
65 77
                 </div>
66 78
             </div>
67 79
         </el-dialog>
68 80
     </div>
69
-<!-- </div> -->
81
+    </div>
82
+
83
+  <!-- </div> -->
70 84
 </template>
71 85
 
72 86
 <script>
@@ -77,7 +91,7 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
77 91
 
78 92
 export default {
79 93
     name: "CourseOfDisease",
80
-    components: { 
94
+    components: {
81 95
         PatientSidebar,
82 96
         BreadCrumb
83 97
     },
@@ -87,6 +101,8 @@ export default {
87 101
 
88 102
             patient_id: 0,
89 103
             date: [],
104
+            start_time: '',
105
+            end_time: '',
90 106
 
91 107
             records: [],
92 108
             doctors: [],
@@ -95,7 +111,7 @@ export default {
95 111
             show_dialog: false,
96 112
             uploading_new_record: false,
97 113
             templates: this.$store.getters.configlist.course_disease,
98
-            select_template: [],
114
+            select_template: '',
99 115
             new_content: "",
100 116
 
101 117
             selectingRows: [],
@@ -114,21 +130,50 @@ export default {
114 130
         var now = new Date()
115 131
         this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
116 132
 
117
-        this.requestCourseRecords()
133
+
134
+
135
+
136
+      var year = new Date().getFullYear()
137
+      var month = new Date().getMonth() + 1
138
+      var day = new Date().getDate()
139
+      if (parseInt(month) < 10) {
140
+        month = '0' + month
141
+      }
142
+      if (parseInt(day) < 10) {
143
+        day = '0' + day
144
+      }
145
+      const endTime = year + '-' + month + '-' + day
146
+      this.end_time = endTime
147
+
148
+      var year = new Date().getFullYear()
149
+      var month = new Date().getMonth()
150
+      var day = new Date().getDate()
151
+      if (parseInt(month) < 10) {
152
+        month = '0' + month
153
+      }
154
+      if (parseInt(day) < 10) {
155
+        day = '0' + day
156
+      }
157
+      const startTime = year + '-' + month + '-' + day
158
+      this.start_time = startTime
159
+
160
+
161
+      this.requestCourseRecords()
162
+
163
+
164
+
118 165
     },
119 166
     methods: {
120 167
         requestCourseRecords: function() {
121
-            var startTime = new Date(this.date[0])
122
-            var endTime = new Date(this.date[1])
123 168
             this.loading = true
124
-            getCourseOfDiseaseRecords(this.patient_id, parseTime(startTime, "{y}-{m}-{d}"), parseTime(endTime, "{y}-{m}-{d}")).then(rs => {
169
+            getCourseOfDiseaseRecords(this.patient_id, this.start_time,this.end_time).then(rs => {
125 170
                 this.loading = false
126 171
                 var resp = rs.data
127 172
                 if (resp.state == 1) {
128 173
                     this.current_select_record = null
129 174
                     this.records = resp.data.records
130 175
                     this.doctors = resp.data.doctors
131
-                    
176
+
132 177
                 } else {
133 178
                     this.$message.error(resp.msg)
134 179
                 }
@@ -155,9 +200,7 @@ export default {
155 200
             return ""
156 201
         },
157 202
 
158
-        willCloseDialog: function() {
159 203
 
160
-        },
161 204
         createAction: function() {
162 205
             if (this.new_content.length == 0) {
163 206
                 this.$message.error("请填写病程内容")
@@ -187,7 +230,6 @@ export default {
187 230
         didSelectTemplate: function(templateContent) {
188 231
             this.new_content = this.new_content.length > 0 ? (this.new_content + templateContent) : templateContent
189 232
 
190
-            this.select_template = ""
191 233
         },
192 234
 
193 235
         didSelectionChange: function(selectRows) {
@@ -226,7 +268,11 @@ export default {
226 268
                 this.loading = false
227 269
                 this.$message.error(err)
228 270
             })
229
-        },
271
+        },startTimeChange(val) {
272
+        this.requestCourseRecords()
273
+      }, endTimeChange(val) {
274
+        this.requestCourseRecords()
275
+      }
230 276
     },
231 277
 }
232 278
 </script>

+ 11 - 16
src/xt_pages/user/doctorAdvice.vue Wyświetl plik

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

+ 2 - 2
src/xt_pages/workforce/components/setup_template_dialog.vue Wyświetl plik

@@ -11,8 +11,8 @@
11 11
             </el-form-item>
12 12
         </el-form>
13 13
         <div style="text-align: right; padding-right: 25px; padding-top: 10px; padding-bottom: 10px;">
14
-            <el-button @click="hide">取消</el-button>
15
-            <el-button :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false" type="primary" @click="saveAction">确定</el-button>
14
+            <el-button @click="hide">取 消</el-button>
15
+            <el-button :disabled="$store.getters.xt_user.subscibe.state == 3 ? true : false" type="primary" @click="saveAction">保 存</el-button>
16 16
         </div>
17 17
     </el-dialog>
18 18
 </template>