瀏覽代碼

合并代码

csx 5 年之前
父節點
當前提交
2c1340c942
共有 59 個文件被更改,包括 10106 次插入6428 次删除
  1. 1 2
      config/dev.env.js
  2. 16 15
      config/index.js
  3. 25 4
      src/api/advice.js
  4. 0 1
      src/api/dialysis.js
  5. 10 0
      src/api/patient.js
  6. 23 15
      src/api/signandweigh.js
  7. 11 0
      src/router/modules/dialysis.js
  8. 11 11
      src/router/modules/patient.js
  9. 90 83
      src/router/modules/systems.js
  10. 1 0
      src/store/getters.js
  11. 6 0
      src/store/modules/globalConfig.js
  12. 1 0
      src/styles/index.scss
  13. 2 2
      src/views/layout/components/TagsView.vue
  14. 377 0
      src/xt_pages/data/components/hisConfigInfo.vue
  15. 259 51
      src/xt_pages/data/druguseTemplate.vue
  16. 55 0
      src/xt_pages/data/hisConfig.vue
  17. 2 4
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  18. 4 2
      src/xt_pages/dialysis/batch_print/batch_print_order_five.vue
  19. 3 3
      src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue
  20. 2 3
      src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue
  21. 1342 0
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  22. 82 179
      src/xt_pages/dialysis/bloodPresssWatch.vue
  23. 27 16
      src/xt_pages/dialysis/details/BasicInfor.vue
  24. 346 426
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  25. 245 252
      src/xt_pages/dialysis/details/NavIgation.vue
  26. 284 208
      src/xt_pages/dialysis/details/assessmentAfter.vue
  27. 5 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  28. 21 15
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  29. 10 9
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  30. 1 1
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  31. 24 12
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  32. 22 10
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  33. 39 28
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  34. 1 1
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  35. 19 23
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  36. 1 1
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  37. 2 1
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  38. 9 9
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  39. 64 76
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  40. 17 17
      src/xt_pages/dialysis/details/dialysisMonitoring.vue
  41. 17 21
      src/xt_pages/dialysis/details/index.vue
  42. 1 1
      src/xt_pages/dialysis/details/statOrder.vue
  43. 1061 1239
      src/xt_pages/dialysis/dialysisPage.vue
  44. 16 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  45. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue
  46. 5 5
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  47. 1386 0
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  48. 3 3
      src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue
  49. 1 1
      src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue
  50. 1 1
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  51. 72 18
      src/xt_pages/sign/index.vue
  52. 158 34
      src/xt_pages/user/components/EditGroupAdvice.vue
  53. 8 14
      src/xt_pages/user/components/PatientDetail.vue
  54. 23 27
      src/xt_pages/user/components/PatientForm.vue
  55. 3231 2869
      src/xt_pages/user/doctorAdvice.vue
  56. 312 428
      src/xt_pages/user/inspection.vue
  57. 7 5
      src/xt_pages/workforce/components/tableData.vue
  58. 241 174
      src/xt_pages/workforce/components/tableWeeks.vue
  59. 100 105
      src/xt_pages/workforce/remind_print.vue

+ 1 - 2
config/dev.env.js 查看文件

@@ -7,11 +7,10 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   BASE_API:  '"http://api.xt.test.sgjyun.com"',// //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-
10
+  // BASE_API:'"http://localhost:9529"',
11 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13 13
   XT_HOST: '"http://xt.test.sgjyun.com"',
14 14
   MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
15 15
   CDM_HOST: '"http://cdm.test.sgjyun.com"',
16 16
 }
17
-

+ 16 - 15
config/index.js 查看文件

@@ -1,14 +1,15 @@
1
-"use strict";
1
+'use strict'
2 2
 // Template version: 1.2.6
3 3
 // see http://vuejs-templates.github.io/webpack for documentation.
4 4
 
5
-const path = require("path");
5
+const path = require('path')
6 6
 
7 7
 module.exports = {
8 8
   dev: {
9
+
9 10
     // Paths
10
-    assetsSubDirectory: "static",
11
-    assetsPublicPath: "/",
11
+    assetsSubDirectory: 'static',
12
+    assetsPublicPath: '/',
12 13
     proxyTable: {},
13 14
 
14 15
     // Various Dev Server settings
@@ -18,8 +19,8 @@ module.exports = {
18 19
 
19 20
     // host: 'xt.test.sgjyun.com',
20 21
     // host: 'xt.kuyicloud.com',
21
-    host: "xt.test.sgjyun.com",
22
-    port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
22
+    host: 'xt.test.sgjyun.com',
23
+    port: 9526, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
23 24
     autoOpenBrowser: true,
24 25
     errorOverlay: true,
25 26
     notifyOnErrors: false,
@@ -39,7 +40,7 @@ module.exports = {
39 40
      */
40 41
 
41 42
     // https://webpack.js.org/configuration/devtool/#development
42
-    devtool: "#cheap-source-map",
43
+    devtool: '#cheap-source-map',
43 44
 
44 45
     // If you have problems debugging vue-files in devtools,
45 46
     // set this to false - it *may* help
@@ -51,16 +52,16 @@ module.exports = {
51 52
     // (https://github.com/webpack/css-loader#sourcemaps)
52 53
     // In our experience, they generally work as expected,
53 54
     // just be aware of this issue when enabling this option.
54
-    cssSourceMap: false
55
+    cssSourceMap: false,
55 56
   },
56 57
 
57 58
   build: {
58 59
     // Template for index.html
59
-    index: path.resolve(__dirname, "../dist/index.html"),
60
+    index: path.resolve(__dirname, '../dist/index.html'),
60 61
 
61 62
     // Paths
62
-    assetsRoot: path.resolve(__dirname, "../dist"),
63
-    assetsSubDirectory: "static",
63
+    assetsRoot: path.resolve(__dirname, '../dist'),
64
+    assetsSubDirectory: 'static',
64 65
 
65 66
     /**
66 67
      * You can set by youself according to actual condition
@@ -70,21 +71,21 @@ module.exports = {
70 71
      * In most cases please use '/' !!!
71 72
      */
72 73
     // assetsPublicPath: '/vue-element-admin/', // If you are deployed on the root path, please use '/'
73
-    assetsPublicPath: "./",
74
+    assetsPublicPath: './',
74 75
 
75 76
     /**
76 77
      * Source Maps
77 78
      */
78 79
     productionSourceMap: false,
79 80
     // https://webpack.js.org/configuration/devtool/#production
80
-    devtool: "#source-map",
81
+    devtool: '#source-map',
81 82
 
82 83
     // Gzip off by default as many popular static hosts such as
83 84
     // Surge or Netlify already gzip all static assets for you.
84 85
     // Before setting to `true`, make sure to:
85 86
     // npm install --save-dev compression-webpack-plugin
86 87
     productionGzip: false,
87
-    productionGzipExtensions: ["js", "css"],
88
+    productionGzipExtensions: ['js', 'css'],
88 89
 
89 90
     // Run the build command with an extra argument to
90 91
     // View the bundle analyzer report after build finishes:
@@ -92,4 +93,4 @@ module.exports = {
92 93
     // Set to `true` or `false` to always turn it on or off
93 94
     bundleAnalyzerReport: process.env.npm_config_report
94 95
   }
95
-};
96
+}

+ 25 - 4
src/api/advice.js 查看文件

@@ -1,12 +1,22 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function getAdviceConfig(){
3
+export function getAdviceConfig(type){
4 4
     return request({
5
-        url:'/api/getadviceconfigs',
5
+        url:'/api/getadviceconfigs?type='+type,
6 6
         method:'get',
7 7
     })
8 8
 }
9 9
 
10
+export function getAllAdviceConfig(){
11
+  return request({
12
+    url:'/api/getalladviceconfig',
13
+    method:'get',
14
+  })
15
+}
16
+
17
+
18
+
19
+
10 20
 
11 21
 export function CreateDoctorAdvice(id, advice){
12 22
     return request({
@@ -197,11 +207,22 @@ export function postAdviceTemplate(params,name,advice_type){
197 207
 }
198 208
 
199 209
 export function CreateGroupAdvice(id, groupno, advices){
200
-  return request({
210
+  if(advices.remind > 0){
211
+    return request({
201 212
       url:'/api/patients/advice/creategroup?id='+id + '&groupno=' + groupno,
202 213
       method:'post',
203 214
       data:advices,
204
-  })
215
+    })
216
+
217
+  }else{
218
+    return request({
219
+      url:'/api/patients/advice/creategroup?id='+id + '&groupno=' + groupno,
220
+      method:'post',
221
+      data:advices,
222
+    })
223
+
224
+  }
225
+
205 226
 }
206 227
 export function DeleteGroupAdvice(groupno){
207 228
   return request({

+ 0 - 1
src/api/dialysis.js 查看文件

@@ -244,4 +244,3 @@ export function postDelMonitorInfo(params) {
244 244
 
245 245
 
246 246
 
247
-

+ 10 - 0
src/api/patient.js 查看文件

@@ -286,6 +286,16 @@ export function GetRemind(params) {
286 286
 }
287 287
 
288 288
 
289
+export function PostRemind(params) {
290
+  return request({
291
+    url: '/api/remind/is_open',
292
+    method: 'Post',
293
+    params:params,
294
+  })
295
+}
296
+
297
+
298
+
289 299
 
290 300
 
291 301
 

+ 23 - 15
src/api/signandweigh.js 查看文件

@@ -1,7 +1,7 @@
1 1
 import request from '@/utils/request'
2 2
 
3 3
 export function fetchSignPatients(params) {
4
-  console.log("bbbbbbbbbbbbbbb号码")
4
+  console.log('bbbbbbbbbbbbbbb号码')
5 5
   console.log(params)
6 6
   return request({
7 7
     url: '/api/sign/patients',
@@ -63,22 +63,30 @@ export function editdata(params) {
63 63
   })
64 64
 }
65 65
 
66
-export function sighdata(params){
67
-  console.log("好还哦")
66
+export function sighdata(params) {
67
+  console.log('好还哦')
68 68
   console.log(params)
69
-   return request({
70
-     url: '/api/sigh/sighdata',
71
-     params: params,   
72
-     method: 'Post'
73
-   })
69
+  return request({
70
+    url: '/api/sigh/sighdata',
71
+    params: params,
72
+    method: 'Post'
73
+  })
74 74
 }
75 75
 
76
-export function updateSignweight(params){
77
- 
78
-  console.log(params)
76
+export function updateSignweight(params) {
77
+  console.log('params是什么', params)
79 78
   return request({
80
-     url:'/api/sign/updateSignweight',
81
-     params:params,
82
-     method:'Post'
79
+    url: '/api/sign/updateSignweight',
80
+    params: params,
81
+    method: 'Post'
83 82
   })
84
-}
83
+}
84
+
85
+export function getForenoonData(params) {
86
+  console.log('呵呵呵呵呵')
87
+  return request({
88
+    url: '/api/sign/getforenoondata',
89
+    params: params,
90
+    method: 'Get'
91
+  })
92
+}

+ 11 - 0
src/router/modules/dialysis.js 查看文件

@@ -115,6 +115,17 @@ export default {
115 115
       noCache: true
116 116
     }
117 117
   },
118
+  {
119
+    path: '/dialysis/print/batch/six',
120
+    component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_six'),
121
+    hidden: true,
122
+    is_menu: false,
123
+    name: 'dialysis_batch_six',
124
+    meta: {
125
+      title: '批量打印',
126
+      noCache: true
127
+    }
128
+  },
118 129
   {
119 130
     path: '/dialysis/print/batch/otherone',
120 131
     component: () => import('@/xt_pages/dialysis/batch_print/batch_print_order_other_one'),

+ 11 - 11
src/router/modules/patient.js 查看文件

@@ -148,16 +148,16 @@ export default {
148 148
       title: 'proeducation',
149 149
       noCache: true
150 150
     }
151
-  },{
152
-      path: '/course/print',
153
-      component: () => import('@/xt_pages/user/coursePrint'),
154
-      hidden: true,
155
-      is_menu: false,
156
-      name: 'dialysisPrintOrder',
157
-      meta: {
158
-        title: 'dialysisPrintOrder',
159
-        noCache: true
160
-      }
161
-    },
151
+  }, {
152
+    path: '/course/print',
153
+    component: () => import('@/xt_pages/user/coursePrint'),
154
+    hidden: true,
155
+    is_menu: false,
156
+    name: 'coursePrint',
157
+    meta: {
158
+      title: 'coursePrint',
159
+      noCache: true
160
+    }
161
+  }
162 162
   ]
163 163
 }

+ 90 - 83
src/router/modules/systems.js 查看文件

@@ -18,92 +18,99 @@ export default {
18 18
       title: 'adminManage'
19 19
     }
20 20
   },
21
-    {
22
-      path: '/role/manage',
23
-      component: () => import('@/xt_pages/role/role'),
24
-      name: 'roleManage',
25
-      meta: {
26
-        title: 'roleManage'
27
-      }
28
-    },
29
-    {
30
-      path: '/role/admin/create',
31
-      component: () => import('@/xt_pages/role/CreateAdmin'),
32
-      name: 'addAdmin',
33
-      meta: {
34
-        title: 'addAdmin',
35
-        noCache: true
36
-      },
37
-      hidden: true,
38
-      is_menu: false
39
-    },
40
-    {
41
-      path: '/role/admin/edit',
42
-      component: () => import('@/xt_pages/role/EditAdmin'),
43
-      name: 'editAdmin',
44
-      meta: {
45
-        title: 'editAdmin',
46
-        noCache: true
47
-      },
48
-      hidden: true,
49
-      is_menu: false
50
-    },
51
-    {
52
-      path: '/role/perview',
53
-      component: () => import('@/xt_pages/role/EditPerview'),
54
-      name: 'setupPerview',
55
-      meta: {
56
-        title: 'setupPerview',
57
-        noCache: true
58
-      },
59
-      hidden: true,
60
-      is_menu: false
61
-    },
62
-    {
63
-      path: '/role/admin/specialpermission',
64
-      component: () => import('@/xt_pages/role/special_permission'),
65
-      name: 'special_permission_manage',
66
-      meta: {
67
-        title: 'special_permission_manage'
68
-      }
21
+  {
22
+    path: '/role/manage',
23
+    component: () => import('@/xt_pages/role/role'),
24
+    name: 'roleManage',
25
+    meta: {
26
+      title: 'roleManage'
27
+    }
28
+  },
29
+  {
30
+    path: '/role/admin/create',
31
+    component: () => import('@/xt_pages/role/CreateAdmin'),
32
+    name: 'addAdmin',
33
+    meta: {
34
+      title: 'addAdmin',
35
+      noCache: true
69 36
     },
70
-    {
71
-      path: '/data/dictionary',
72
-      component: () => import('@/xt_pages/data/index'),
73
-      name: 'dictionary',
74
-      meta: {
75
-        title: 'data_dictionary'
76
-      }
37
+    hidden: true,
38
+    is_menu: false
39
+  },
40
+  {
41
+    path: '/role/admin/edit',
42
+    component: () => import('@/xt_pages/role/EditAdmin'),
43
+    name: 'editAdmin',
44
+    meta: {
45
+      title: 'editAdmin',
46
+      noCache: true
77 47
     },
78
-    {
79
-      path: '/data/template',
80
-      component: () => import('@/xt_pages/data/template'),
81
-      name: 'template',
82
-      meta: {
83
-        title: 'template'
84
-      }
48
+    hidden: true,
49
+    is_menu: false
50
+  },
51
+  {
52
+    path: '/role/perview',
53
+    component: () => import('@/xt_pages/role/EditPerview'),
54
+    name: 'setupPerview',
55
+    meta: {
56
+      title: 'setupPerview',
57
+      noCache: true
85 58
     },
86
-    {
87
-      path: '/data/druguse',
88
-      component: () => import('@/xt_pages/data/druguseTemplate'),
89
-      name: 'druguse',
90
-      meta: {
91
-        title: 'druguse'
92
-      }
93
-    }, {
94
-      path: '/data/showconfig',
95
-      component: () => import('@/xt_pages/data/showConfig'),
96
-      name: 'showconfig',
97
-      meta: {
98
-        title: 'showconfig'
99
-      }
100
-    },{
101
-      path: '/data/print',
102
-      component: () => import('@/xt_pages/data/printTemplate'),
103
-      name: 'printTemplate',
104
-      meta: {
105
-        title: 'printTemplate'
106
-      }
59
+    hidden: true,
60
+    is_menu: false
61
+  },
62
+  {
63
+    path: '/role/admin/specialpermission',
64
+    component: () => import('@/xt_pages/role/special_permission'),
65
+    name: 'special_permission_manage',
66
+    meta: {
67
+      title: 'special_permission_manage'
68
+    }
69
+  },
70
+  {
71
+    path: '/data/dictionary',
72
+    component: () => import('@/xt_pages/data/index'),
73
+    name: 'dictionary',
74
+    meta: {
75
+      title: 'data_dictionary'
76
+    }
77
+  },
78
+  {
79
+    path: '/data/template',
80
+    component: () => import('@/xt_pages/data/template'),
81
+    name: 'template',
82
+    meta: {
83
+      title: 'template'
84
+    }
85
+  },
86
+  {
87
+    path: '/data/druguse',
88
+    component: () => import('@/xt_pages/data/druguseTemplate'),
89
+    name: 'druguse',
90
+    meta: {
91
+      title: 'druguse'
92
+    }
93
+  }, {
94
+    path: '/data/showconfig',
95
+    component: () => import('@/xt_pages/data/showConfig'),
96
+    name: 'showconfig',
97
+    meta: {
98
+      title: 'showconfig'
99
+    }
100
+  }, {
101
+    path: '/data/print',
102
+    component: () => import('@/xt_pages/data/printTemplate'),
103
+    name: 'printTemplate',
104
+    meta: {
105
+      title: 'printTemplate'
106
+    }
107
+  }, {
108
+    path: '/data/hisconfig',
109
+    component: () => import('@/xt_pages/data/hisConfig'),
110
+    name: 'hisconfig',
111
+    meta: {
112
+      title: 'hisconfig'
107 113
     }
114
+  }
108 115
   ]
109 116
 }

+ 1 - 0
src/store/getters.js 查看文件

@@ -66,6 +66,7 @@ const getters = {
66 66
   good_unit: state => state.global_config.good_unit,
67 67
 
68 68
   temp_params: state => state.temp_params,
69
+  puncture_needle: state => state.global_config.puncture_needle,
69 70
 
70 71
 
71 72
 

+ 6 - 0
src/store/modules/globalConfig.js 查看文件

@@ -573,6 +573,12 @@ const global_config = {
573 573
       {id: 9, name: "皮下出血"},
574 574
     ],
575 575
 
576
+    puncture_needle: [
577
+      {id: 1, name: 'V钝针'},
578
+      {id: 2, name: 'V锐针'},
579
+      {id: 3, name: 'A锐针'},
580
+      {id: 4, name: 'A钝针'},
581
+    ],
576 582
 
577 583
   },
578 584
   mutations: {

+ 1 - 0
src/styles/index.scss 查看文件

@@ -272,6 +272,7 @@ code {
272 272
       }
273 273
     }
274 274
   }
275
+  //  border: solid 1px red;
275 276
 }
276 277
 
277 278
 .note {

+ 2 - 2
src/views/layout/components/TagsView.vue 查看文件

@@ -134,8 +134,8 @@ export default {
134 134
     top: 60px;
135 135
     overflow-x: scroll;
136 136
     white-space: normal;
137
-    right: 0;
138
-    left: 150px;
137
+    // right: 0;
138
+    // left: 150px;
139 139
     
140 140
     /* 针对缺省样式 (必须的) */
141 141
       &::-webkit-scrollbar {

+ 377 - 0
src/xt_pages/data/components/hisConfigInfo.vue 查看文件

@@ -0,0 +1,377 @@
1
+<template>
2
+  <div class="">
3
+    <div class="filter-container">
4
+      <el-button size="small" class="filter-item" style="float:right;" @click="handleCreate" type="primary"
5
+                 icon="el-icon-circle-plus-outline">{{$t('table.add')}}
6
+      </el-button>
7
+    </div>
8
+    <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list"
9
+              v-loading="listLoading" border fit highlight-current-row style="width: 100%;min-height:500px;">
10
+      <!-- <el-table-column align="center" :label="$t('table.id')" width="65" @click="handleUpdate(scope.row)">
11
+        <template slot-scope="scope">
12
+          <span>{{scope.row.id}}</span>
13
+        </template>
14
+      </el-table-column> -->
15
+      <el-table-column align="center" label="标题">
16
+        <template slot-scope="scope">
17
+          <!-- <span @click="handleUpdate(scope.row)">{{scope.row.name}}</span> -->
18
+          <span>{{scope.row.title}}</span>
19
+        </template>
20
+      </el-table-column>
21
+      <el-table-column align="center" label="内容">
22
+        <template slot-scope="scope">
23
+          <span v-html="scope.row.content">{{scope.row.content}}</span>
24
+        </template>
25
+      </el-table-column>
26
+      <el-table-column align="center" :label="$t('table.actions')" width="230" class-name="small-padding fixed-width">
27
+        <template slot-scope="scope">
28
+          <el-tooltip class="item" effect="dark" content="编辑" placement="top">
29
+            <el-button icon="el-icon-edit-outline" type="primary" size="small"
30
+                       @click="handleUpdate(scope.row)"></el-button>
31
+          </el-tooltip>
32
+          <el-tooltip class="item" effect="dark" content="删除" placement="top">
33
+            <el-button icon="el-icon-delete" v-if="scope.row.status!='deleted'" size="small" type="danger"
34
+                       @click="handleModifyStatus(scope.row,'deleted')">
35
+            </el-button>
36
+          </el-tooltip>
37
+
38
+
39
+        </template>
40
+      </el-table-column>
41
+    </el-table>
42
+
43
+    <!-- <div class="pagination-container">
44
+      <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="listQuery.page" :page-sizes="[10,20,30, 50]" :page-size="listQuery.limit" layout="total, sizes, prev, pager, next, jumper" :total="total">
45
+      </el-pagination>
46
+    </div> -->
47
+
48
+    <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
49
+      <el-form :rules="rules" ref="dataForm" :model="temp" label-position="right" label-width="70px">
50
+        <el-form-item label="标题" prop="title">
51
+          <el-input v-model="temp.title" maxlength="100" placeholder="请输入标题"></el-input>
52
+        </el-form-item>
53
+
54
+        <el-form-item label="内容"  v-if="type == 'course_disease'">
55
+          <keep-alive>
56
+            <editor ref="editor"
57
+                     id="editor"
58
+                     style="width: 600px"
59
+                     v-bind:r_content="temp.content">
60
+            </editor>
61
+          </keep-alive>
62
+        </el-form-item>
63
+
64
+        <el-form-item label="内容" prop="content" v-else>
65
+          <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 4}" v-model="temp.content"
66
+                    placeholder="请输入内容"></el-input>
67
+        </el-form-item>
68
+
69
+
70
+        <el-form-item :label="$t('data_config.remark')">
71
+          <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 4}" placeholder="请输入备注"
72
+                    v-model="temp.remark"></el-input>
73
+        </el-form-item>
74
+      </el-form>
75
+      <div slot="footer" class="dialog-footer">
76
+        <el-button @click="dialogFormVisible = false">{{$t('table.cancel')}}</el-button>
77
+        <el-button v-if="dialogStatus=='create'" type="primary" @click="createData">{{$t('table.confirm')}}</el-button>
78
+        <el-button v-else type="primary" @click="updateData">{{$t('table.confirm')}}</el-button>
79
+      </div>
80
+    </el-dialog>
81
+
82
+    <el-dialog title="Reading statistics" :visible.sync="dialogPvVisible">
83
+      <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :data="pvData" border fit
84
+                highlight-current-row style="width: 100%">
85
+        <el-table-column prop="key" label="Channel"></el-table-column>
86
+        <el-table-column prop="pv" label="Pv"></el-table-column>
87
+      </el-table>
88
+      <span slot="footer" class="dialog-footer">
89
+        <el-button type="primary" @click="dialogPvVisible = false">{{$t('table.confirm')}}</el-button>
90
+      </span>
91
+    </el-dialog>
92
+
93
+  </div>
94
+</template>
95
+
96
+<script>
97
+  import { createChildConfig, createConfig, deleteChildConfig, updateChildConfig, updateTemplate } from '@/api/data'
98
+  import waves from '@/directive/waves' // 水波纹指令
99
+  import { parseTime } from '@/utils'
100
+  import store from '@/store'
101
+  import bus from '@/assets/eventBus'
102
+  import Editor from '@/components/Editor'
103
+
104
+  export default {
105
+    name: 'hisConfigInfo',
106
+    directives: {
107
+      waves
108
+    },
109
+    components: {
110
+      Editor
111
+    },
112
+    props: {
113
+      type: {
114
+        type: String,
115
+        default: 'patient'
116
+      }
117
+    },
118
+    beforeMount(){
119
+
120
+
121
+    },
122
+    data() {
123
+      return {
124
+        currentId: undefined,
125
+        tableKey: 0,
126
+        // list: null,
127
+        total: null,
128
+        listLoading: true,
129
+        listQuery: {
130
+          page: 1,
131
+          limit: 20,
132
+          importance: undefined,
133
+          title: undefined,
134
+          type: this.type,
135
+          sort: '+id'
136
+        },
137
+        importanceOptions: [1, 2, 3],
138
+        // calendarTypeOptions,
139
+        sortOptions: [{ label: 'ID Ascending', key: '+id' }, { label: 'ID Descending', key: '-id' }],
140
+        statusOptions: ['published', 'draft', 'deleted'],
141
+        showReviewer: false,
142
+        temp: {
143
+          id: undefined,
144
+          parent_id: 0,
145
+          module: this.type,
146
+          org_id: 0,
147
+          title: '',
148
+          content: '',
149
+          remark: ''
150
+        },
151
+        dialogFormVisible: false,
152
+        dialogStatus: '',
153
+        textMap: {
154
+          update: '修改',
155
+          create: '新增'
156
+        },
157
+        dialogPvVisible: false,
158
+        pvData: [],
159
+        rules: {
160
+          title: [{ required: true, message: '请输入名称', trigger: 'blur' }],
161
+          content: [{ required: true, message: '请输入字段名', trigger: 'blur' }]
162
+        },
163
+        downloadLoading: false
164
+      }
165
+    },
166
+    // watch: {
167
+    //   'temp.config_field':function(){
168
+    //       this.temp.config_field =  this.temp.config_field.replace(/[^A-Za-z]/g,'');
169
+    //   }
170
+    // },
171
+    computed: {
172
+      list: function() {
173
+        // const list = store.getters.configlist[this.type]
174
+        // this.total = list.length
175
+        return store.getters.configlist[this.type]
176
+      }
177
+    },
178
+    filters: {
179
+      statusFilter(status) {
180
+        const statusMap = {
181
+          published: 'success',
182
+          draft: 'info',
183
+          deleted: 'danger'
184
+        }
185
+        return statusMap[status]
186
+      },
187
+      typeFilter(type) {
188
+        return calendarTypeKeyValue[type]
189
+      }
190
+    },
191
+    created() {
192
+      this.getList()
193
+    },
194
+    methods: {
195
+      fieldChange: function(newValue) {
196
+        this.temp.config_field = newValue.replace(/[^A-Za-z]/g, '')
197
+      },
198
+      handleRowChange(currentRow, oldCurrentRow) {
199
+        if (currentRow != undefined) {
200
+          this.currentId = currentRow.id
201
+          bus.$emit('parentChangeId', currentRow)
202
+        }
203
+      },
204
+      getList() {
205
+        this.listLoading = false
206
+        // setTimeout(() => {
207
+        //     this.listLoading = false
208
+        //   }, 1 * 1000)
209
+      },
210
+      handleFilter() {
211
+        this.listQuery.page = 1
212
+        this.getList()
213
+      },
214
+      handleSizeChange(val) {
215
+        this.listQuery.limit = val
216
+        this.getList()
217
+      },
218
+      handleCurrentChange(val) {
219
+        this.listQuery.page = val
220
+        this.getList()
221
+      },
222
+      handleModifyStatus(row, status) {
223
+        this.temp = Object.assign({}, row) // copy obj
224
+        this.$confirm('此操作将永久删除该配置项, 是否继续?', '提示', {
225
+          confirmButtonText: '确 定',
226
+          cancelButtonText: '取 消',
227
+          type: 'warning'
228
+        }).then(() => {
229
+          const tempData = Object.assign({}, this.temp)
230
+          deleteChildConfig(tempData).then(response => {
231
+            if (!response.data) {
232
+              // 由于mockjs 不支持自定义状态码只能这样hack
233
+              reject('error')
234
+            }
235
+            if (response.data.state === 0) {
236
+              this.$message.error(response.data.msg)
237
+            }
238
+
239
+            const result = response.data.data.dataconfig
240
+            store.dispatch('updateParentConfigList', [tempData, 'delete']).then(() => {
241
+              next()
242
+            })
243
+          })
244
+
245
+          this.$message({
246
+            type: 'success',
247
+            message: '删除成功!'
248
+          })
249
+        })
250
+          .catch(() => {
251
+            this.$message({
252
+              type: 'info',
253
+              message: '已取消删除'
254
+            })
255
+          })
256
+      },
257
+      resetTemp() {
258
+        this.temp = {
259
+          id: undefined,
260
+          parent_id: 0,
261
+          module: this.type,
262
+          org_id: 0,
263
+          title: '',
264
+          content: '',
265
+          remark: ''
266
+        }
267
+      },
268
+      handleCreate() {
269
+        this.resetTemp()
270
+        this.dialogStatus = 'create'
271
+        this.dialogFormVisible = true
272
+        this.$nextTick(() => {
273
+          this.$refs['dataForm'].clearValidate()
274
+        })
275
+      },
276
+      createData() {
277
+        this.$refs['dataForm'].validate((valid) => {
278
+          if(this.type == "course_disease"){
279
+            this.temp.content = this.$refs.editor.content;
280
+          }
281
+
282
+          if (valid) {
283
+            createConfig(this.temp).then(response => {
284
+              if (!response.data) { // 由于mockjs 不支持自定义状态码只能这样hack
285
+                reject('error')
286
+              }
287
+              if (response.data.state === 0) {
288
+                this.$message.error(response.data.msg)
289
+              }
290
+              const result = response.data.data.dataconfig
291
+              // 更新store
292
+              store.dispatch('updateConfigList', result).then(() => {
293
+
294
+              })
295
+
296
+              this.dialogFormVisible = false
297
+
298
+              this.$message.success('创建成功')
299
+            })
300
+          }
301
+        })
302
+      },
303
+      handleUpdate(row) {
304
+        this.temp = Object.assign({}, row) // copy obj
305
+        this.dialogStatus = 'update'
306
+        this.dialogFormVisible = true
307
+        this.$nextTick(() => {
308
+          this.$refs['dataForm'].clearValidate()
309
+        })
310
+      },
311
+      updateData() {
312
+        this.$refs['dataForm'].validate(valid => {
313
+          if (valid) {
314
+            const tempData = Object.assign({}, this.temp)
315
+            if(this.type == "course_disease"){
316
+              tempData.content = this.$refs.editor.content;
317
+            }
318
+            updateTemplate(tempData).then(response => {
319
+              if (!response.data) {
320
+                // 由于mockjs 不支持自定义状态码只能这样hack
321
+                reject('error')
322
+              }
323
+              if (response.data.state === 0) {
324
+                this.$message.error(response.data.msg)
325
+              }
326
+
327
+              const result = response.data.data.dataconfig
328
+              store.dispatch('updateParentConfigList', [result, 'update']).then(() => {
329
+                next()
330
+              })
331
+
332
+              this.dialogFormVisible = false
333
+
334
+              this.$message.success('更新成功')
335
+            })
336
+          }
337
+        })
338
+      },
339
+      handleDelete(row) {
340
+
341
+        this.$message.success('删除成功')
342
+
343
+        const index = this.list.indexOf(row)
344
+        this.list.splice(index, 1)
345
+      },
346
+      handleFetchPv(pv) {
347
+        fetchPv(pv).then(response => {
348
+          this.pvData = response.data.pvData
349
+          this.dialogPvVisible = true
350
+        })
351
+      },
352
+      handleDownload() {
353
+        this.downloadLoading = true
354
+        import('@/vendor/Export2Excel').then(excel => {
355
+          const tHeader = ['timestamp', 'title', 'type', 'importance', 'status']
356
+          const filterVal = ['timestamp', 'title', 'type', 'importance', 'status']
357
+          const data = this.formatJson(filterVal, this.list)
358
+          excel.export_json_to_excel({
359
+            header: tHeader,
360
+            data,
361
+            filename: 'table-list'
362
+          })
363
+          this.downloadLoading = false
364
+        })
365
+      },
366
+      formatJson(filterVal, jsonData) {
367
+        return jsonData.map(v => filterVal.map(j => {
368
+          if (j === 'timestamp') {
369
+            return parseTime(v[j])
370
+          } else {
371
+            return v[j]
372
+          }
373
+        }))
374
+      }
375
+    }
376
+  }
377
+</script>

+ 259 - 51
src/xt_pages/data/druguseTemplate.vue 查看文件

@@ -51,7 +51,7 @@
51 51
                 width="100"
52 52
               >
53 53
                 <template slot-scope="scope">
54
-                  <div>{{scope.row.advice_type == 1 ? "长期" : "临时"}}</div>
54
+                  <div>{{scope.row.advice_type == 1 ? '长期' : '临时'}}</div>
55 55
                 </template>
56 56
 
57 57
               </el-table-column>
@@ -94,16 +94,18 @@
94 94
                 </template>
95 95
               </el-table-column>
96 96
 
97
+
97 98
               <el-table-column
98 99
                 prop="amount1"
99 100
                 align="center"
100
-                label="规格">
101
-                <template slot-scope="scope">
101
+                label="药品规格">
102 102
                   <!-- {{drugDesc(scope.row)}} -->
103
-                  {{scope.row.advice_desc}}
104
-                </template>
103
+                  <template slot-scope="scope">
104
+                    <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
105
+                  </template>
105 106
               </el-table-column>
106 107
 
108
+
107 109
               <el-table-column
108 110
                 prop="amount2"
109 111
                 width="90"
@@ -146,6 +148,14 @@
146 148
               </el-table-column>
147 149
 
148 150
 
151
+              <el-table-column prop="blood_flow_volume" align="center" label="提醒频率">
152
+                <template slot-scope="scope">
153
+                  <span v-if="scope.row.frequency_type == 1">每次必推</span>
154
+                  <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
155
+                  <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
156
+                </template>
157
+              </el-table-column>
158
+
149 159
               <el-table-column
150 160
                 align="center"
151 161
                 label="操作"
@@ -188,8 +198,8 @@
188 198
 
189 199
                   <el-form-item label="模版类型" prop="advice_type">
190 200
                     <el-radio-group v-model="form.advice_type">
191
-                      <el-radio label="0">临时</el-radio>
192
-                      <el-radio label="1">长期</el-radio>
201
+                      <el-radio :label="0">临时</el-radio>
202
+                      <el-radio :label="1">长期</el-radio>
193 203
                     </el-radio-group>
194 204
                   </el-form-item>
195 205
 
@@ -213,11 +223,10 @@
213 223
                       {{scope.row.advice_name}}
214 224
                     </template>
215 225
                   </el-table-column>
216
-                  <el-table-column align="center" label="规格">
217
-                    <template slot-scope="scope">
218
-                      <!-- {{drugDescTwo(scope.row)}} -->
219
-                      {{scope.row.advice_desc}}
220
-                    </template>
226
+                  <el-table-column align="center" label="药品规格">
227
+                      <template slot-scope="scope">
228
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
229
+                      </template>
221 230
                   </el-table-column>
222 231
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
223 232
                     <template slot-scope="scope" v-if="scope.row.prescribing_number != ''">
@@ -243,6 +252,14 @@
243 252
                     </template>
244 253
                   </el-table-column>
245 254
 
255
+                  <el-table-column prop="blood_flow_volume" align="center" label="提醒频率" v-if="form.advice_type == 1">
256
+                    <template slot-scope="scope">
257
+                      <span v-if="scope.row.frequency_type == 1">每次必推</span>
258
+                      <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
259
+                      <span v-if="scope.row.frequency_type == 3">每周{{scope.row.weekdays}}</span>
260
+                    </template>
261
+                  </el-table-column>
262
+
246 263
                 </el-table>
247 264
               </div>
248 265
               <div slot="footer" class="dialog-footer">
@@ -264,15 +281,13 @@
264 281
                       <el-input v-model="templateForm.advice_name"></el-input>
265 282
                     </el-form-item>
266 283
                   </el-col>
267
-                  <el-col :span="12">
268
-                    <el-form-item label="规格 :">
269
-                      <el-input v-model="templateForm.advice_desc"></el-input>
270
-                    </el-form-item>
271 284
 
272 285
 
273
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
286
+
287
+                  <el-col :span="12">
288
+                    <el-form-item label="药品规格 :" prop="advice_desc">
274 289
                       <el-col :span="8">
275
-                        <el-input v-model="templateForm.drug_spec"  ></el-input>
290
+                        <el-input v-model="templateForm.advice_desc"></el-input>
276 291
                       </el-col>
277 292
                       <el-col class="line" :span="2">&nbsp;</el-col>
278 293
                       <el-col :span="14">
@@ -291,7 +306,7 @@
291 306
                           ></el-option>
292 307
                         </el-select>
293 308
                       </el-col>
294
-                    </el-form-item> -->
309
+                    </el-form-item>
295 310
                   </el-col>
296 311
                   <el-col :span="12">
297 312
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -379,6 +394,39 @@
379 394
                       </el-select>
380 395
                     </el-form-item>
381 396
                   </el-col>
397
+
398
+                  <el-col :span="24" v-if="form.advice_type&&!isAddChild">
399
+                    <el-form-item label="周期提醒 :">
400
+                      <el-radio-group v-model="templateForm.frequency_type">
401
+                        <el-radio :label="1">每次必推</el-radio>
402
+                        <el-radio :label="2">天数频率</el-radio>
403
+                        <el-radio :label="3">星期频率</el-radio>
404
+                      </el-radio-group>
405
+                    </el-form-item>
406
+                  </el-col>
407
+
408
+
409
+                  <el-col :span="12" v-if="templateForm.frequency_type == 2">
410
+                    <el-form-item prop="day_count">
411
+                      <el-input style="width: 50px" v-model="templateForm.day_count"></el-input>&nbsp;
412
+                      天/一次
413
+                    </el-form-item>
414
+                  </el-col>
415
+
416
+                  <el-col :span="24" v-if="templateForm.frequency_type == 3">
417
+                    <el-form-item prop="weekday">
418
+                      <el-checkbox-group v-model="templateForm.weekday">
419
+                        <el-checkbox label="周一" name="type"></el-checkbox>
420
+                        <el-checkbox label="周二" name="type"></el-checkbox>
421
+                        <el-checkbox label="周三" name="type"></el-checkbox>
422
+                        <el-checkbox label="周四" name="type"></el-checkbox>
423
+                        <el-checkbox label="周五" name="type"></el-checkbox>
424
+                        <el-checkbox label="周六" name="type"></el-checkbox>
425
+                        <el-checkbox label="周日" name="type"></el-checkbox>
426
+                      </el-checkbox-group>
427
+                    </el-form-item>
428
+                  </el-col>
429
+
382 430
                 </el-row>
383 431
               </el-form>
384 432
               <div slot="footer" class="dialog-footer">
@@ -386,6 +434,9 @@
386 434
                 <el-button type="primary" @click="submitTemplate('templateForm')">保 存</el-button>
387 435
               </div>
388 436
             </el-dialog>
437
+            <!--TODO-->
438
+
439
+
389 440
             <el-dialog :title="editDialogTitle" :visible.sync="templateEditFormVisible" width="700px">
390 441
               <el-form
391 442
                 ref="templateFormEdit"
@@ -398,15 +449,12 @@
398 449
                     <el-form-item :label="edit_advice_name" required prop="advice_name">
399 450
                       <el-input v-model="templateFormEdit.advice_name"></el-input>
400 451
                     </el-form-item>
401
-
402 452
                   </el-col>
403 453
                   <el-col :span="12">
404
-                    <el-form-item label="规格">
405
-                      <el-input v-model="templateFormEdit.advice_desc"></el-input>
406
-                    </el-form-item>
407
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
454
+
455
+                  <el-form-item label="药品规格 :" prop="advice_desc">
408 456
                       <el-col :span="8">
409
-                        <el-input v-model="templateFormEdit.drug_spec"></el-input>
457
+                        <el-input v-model="templateFormEdit.advice_desc"></el-input>
410 458
                       </el-col>
411 459
                       <el-col class="line" :span="1">&nbsp;</el-col>
412 460
                       <el-col :span="14">
@@ -425,7 +473,7 @@
425 473
                           ></el-option>
426 474
                         </el-select>
427 475
                       </el-col>
428
-                    </el-form-item> -->
476
+                    </el-form-item>
429 477
                   </el-col>
430 478
                   <el-col :span="12">
431 479
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -514,6 +562,41 @@
514 562
                       </el-select>
515 563
                     </el-form-item>
516 564
                   </el-col>
565
+
566
+
567
+                  <el-col :span="24">
568
+                    <el-form-item label="周期提醒 :">
569
+                      <el-radio-group v-model="templateFormEdit.frequency_type">
570
+                        <el-radio :label="1">每次必推</el-radio>
571
+                        <el-radio :label="2">天数频率</el-radio>
572
+                        <el-radio :label="3">星期频率</el-radio>
573
+                      </el-radio-group>
574
+                    </el-form-item>
575
+                  </el-col>
576
+
577
+
578
+                  <el-col :span="12" v-if="templateFormEdit.frequency_type == 2">
579
+                    <el-form-item prop="day_count">
580
+                      <el-input style="width: 50px" v-model="templateFormEdit.day_count"></el-input>&nbsp;
581
+                      天/一次
582
+                    </el-form-item>
583
+                  </el-col>
584
+
585
+                  <el-col :span="24" v-if="templateFormEdit.frequency_type == 3">
586
+                    <el-form-item>
587
+                      <el-checkbox-group v-model="templateFormEdit.weekday">
588
+                        <el-checkbox label="周一" name="type"></el-checkbox>
589
+                        <el-checkbox label="周二" name="type"></el-checkbox>
590
+                        <el-checkbox label="周三" name="type"></el-checkbox>
591
+                        <el-checkbox label="周四" name="type"></el-checkbox>
592
+                        <el-checkbox label="周五" name="type"></el-checkbox>
593
+                        <el-checkbox label="周六" name="type"></el-checkbox>
594
+                        <el-checkbox label="周日" name="type"></el-checkbox>
595
+                      </el-checkbox-group>
596
+                    </el-form-item>
597
+                  </el-col>
598
+
599
+
517 600
                 </el-row>
518 601
               </el-form>
519 602
               <div slot="footer" class="dialog-footer">
@@ -548,34 +631,42 @@
548 631
                       <span v-if="scope.row.parent_id > 0"> &emsp;{{scope.row.advice_name}}</span>
549 632
                     </template>
550 633
                   </el-table-column>
551
-                  <el-table-column align="center" label="规格">
552
-                    <template slot-scope="scope">
634
+                  <el-table-column align="center" label="药品规格">
553 635
                       <!-- {{drugDesc(scope.row)}} -->
554
-                      {{scope.row.advice_desc}}
555
-                    </template>
636
+                      <template slot-scope="scope">
637
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
638
+                      </template>
556 639
                   </el-table-column>
557 640
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
558 641
                     <template slot-scope="scope" v-if="scope.row.prescribing_number != ''">
559 642
                       {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
560 643
                     </template>
561 644
                   </el-table-column>
562
-                  <el-table-column prop="pulse_frequency" align="center" label="单次用量">
645
+                  <el-table-column align="center" label="单次用量">
563 646
                     <template slot-scope="scope" v-if="scope.row.single_dose != ''">
564 647
                       {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
565 648
                     </template>
566 649
 
567 650
                   </el-table-column>
568
-                  <el-table-column prop="breathing_rate" align="center" label="给药途径">
651
+                  <el-table-column align="center" label="给药途径">
569 652
                     <template slot-scope="scope">
570 653
                       <span v-if="scope.row.parent_id == 0">{{scope.row.delivery_way}}</span>
571 654
                     </template>
572 655
 
573 656
                   </el-table-column>
574
-                  <el-table-column prop="blood_flow_volume" align="center" label="执行频率">
657
+                  <el-table-column align="center" label="执行频率">
575 658
                     <template slot-scope="scope">
576 659
                       <span v-if="scope.row.parent_id == 0">{{scope.row.execution_frequency}}</span>
577 660
                     </template>
578 661
                   </el-table-column>
662
+
663
+                  <el-table-column align="center" label="提醒频率" v-if="form.advice_type == 1">
664
+                    <template slot-scope="scope">
665
+                      <span v-if="scope.row.frequency_type == 1">每次必推</span>
666
+                      <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
667
+                      <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
668
+                    </template>
669
+                  </el-table-column>
579 670
                 </el-table>
580 671
               </div>
581 672
               <div slot="footer" class="dialog-footer">
@@ -583,6 +674,8 @@
583 674
                 <el-button type="primary" @click="modifyTemplateName">保 存</el-button>
584 675
               </div>
585 676
             </el-dialog>
677
+
678
+
586 679
             <el-dialog title="新增医嘱" :visible.sync="templateFormTwoVisible" width="700px">
587 680
               <el-form
588 681
                 ref="templateForm"
@@ -597,12 +690,10 @@
597 690
                     </el-form-item>
598 691
                   </el-col>
599 692
                   <el-col :span="12">
600
-                    <el-form-item label="规格 :">
601
-                      <el-input v-model="templateForm.advice_desc"></el-input>
602
-                    </el-form-item>
603
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
693
+
694
+                <el-form-item label="药品规格 :" prop="advice_desc">
604 695
                       <el-col :span="9">
605
-                        <el-input v-model="templateForm.drug_spec"></el-input>
696
+                        <el-input v-model="templateForm.advice_desc"></el-input>
606 697
                       </el-col>
607 698
                       <el-col class="line" :span="1">&nbsp;</el-col>
608 699
                       <el-col :span="14">
@@ -621,7 +712,7 @@
621 712
                           ></el-option>
622 713
                         </el-select>
623 714
                       </el-col>
624
-                    </el-form-item> -->
715
+                    </el-form-item>
625 716
                   </el-col>
626 717
                   <el-col :span="12">
627 718
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -709,7 +800,42 @@
709 800
                       </el-select>
710 801
                     </el-form-item>
711 802
                   </el-col>
803
+
804
+
805
+                  <el-col :span="24" v-if="form.advice_type == 1">
806
+                    <el-form-item label="周期提醒 :">
807
+                      <el-radio-group v-model="templateForm.frequency_type">
808
+                        <el-radio :label="1">每次必推</el-radio>
809
+                        <el-radio :label="2">天数频率</el-radio>
810
+                        <el-radio :label="3">星期频率</el-radio>
811
+                      </el-radio-group>
812
+                    </el-form-item>
813
+                  </el-col>
814
+
815
+
816
+                  <el-col :span="12" v-if="templateForm.frequency_type == 2">
817
+                    <el-form-item prop="day_count">
818
+                      <el-input style="width: 50px" v-model="templateForm.day_count"></el-input>&nbsp;
819
+                      天/一次
820
+                    </el-form-item>
821
+                  </el-col>
822
+
823
+                  <el-col :span="24" v-if="templateForm.frequency_type == 3">
824
+                    <el-form-item>
825
+                      <el-checkbox-group v-model="templateForm.weekday">
826
+                        <el-checkbox label="周一" name="type"></el-checkbox>
827
+                        <el-checkbox label="周二" name="type"></el-checkbox>
828
+                        <el-checkbox label="周三" name="type"></el-checkbox>
829
+                        <el-checkbox label="周四" name="type"></el-checkbox>
830
+                        <el-checkbox label="周五" name="type"></el-checkbox>
831
+                        <el-checkbox label="周六" name="type"></el-checkbox>
832
+                        <el-checkbox label="周日" name="type"></el-checkbox>
833
+                      </el-checkbox-group>
834
+                    </el-form-item>
835
+                  </el-col>
712 836
                 </el-row>
837
+
838
+
713 839
               </el-form>
714 840
               <div slot="footer" class="dialog-footer">
715 841
                 <el-button @click="cancelHandleTwo">取消</el-button>
@@ -1027,7 +1153,7 @@
1027 1153
     DeleteDrugWay,
1028 1154
     DeleteExecutionFrequency,
1029 1155
     DeleteParentAdviceTemplate,
1030
-    getAdviceConfig,
1156
+    getAllAdviceConfig,
1031 1157
     getAllAdviceTemplate,
1032 1158
     postAdviceTemplate,
1033 1159
     UpdateAdviceTemplate,
@@ -1045,6 +1171,8 @@
1045 1171
     components: { BreadCrumb },
1046 1172
     data() {
1047 1173
       return {
1174
+        day_count: '',
1175
+
1048 1176
         crumbs: [
1049 1177
           { path: false, name: '数据字典' },
1050 1178
           { path: 'data/druguse', name: '医嘱模版' }
@@ -1115,6 +1243,9 @@
1115 1243
           advice_name: [{ required: true, message: '请填写医嘱内容' }]
1116 1244
         },
1117 1245
         templateForm: {
1246
+          frequency_type: 1,
1247
+          day_count: '',
1248
+          weekday: [],
1118 1249
           drug_spec: '',
1119 1250
           drug_spec_unit: '',
1120 1251
           advice_name: '',
@@ -1129,6 +1260,10 @@
1129 1260
         },
1130 1261
 
1131 1262
         templateFormEdit: {
1263
+          frequency_type: 0,
1264
+          day_count: '',
1265
+          weekday: [],
1266
+          week_days: '',
1132 1267
           drug_spec: '',
1133 1268
           drug_spec_unit: '',
1134 1269
           advice_name: '',
@@ -1151,7 +1286,7 @@
1151 1286
         },
1152 1287
         form: {
1153 1288
           name: '',
1154
-          advice_type: '0'
1289
+          advice_type: 0
1155 1290
 
1156 1291
         },
1157 1292
         drugwayForm: {
@@ -1237,6 +1372,7 @@
1237 1372
         }
1238 1373
       },
1239 1374
       handleCreateTemplate() {
1375
+        this.form.advice_type = 0
1240 1376
         this.templateTableVisible = true
1241 1377
       },
1242 1378
       newRecordAction() {
@@ -1247,6 +1383,7 @@
1247 1383
         this.isAddChild = false
1248 1384
         this.templateTableVisible = false
1249 1385
         this.templateFormVisible = true
1386
+
1250 1387
       }, deleteRecordAction: function() {
1251 1388
         if (this.table_current_index == -1) {
1252 1389
           this.$message.error('请选择一条医嘱记录')
@@ -1274,12 +1411,12 @@
1274 1411
         }
1275 1412
 
1276 1413
         this.isEdit = true
1277
-
1278 1414
         const adviceTable = this.adviceTableData[this.table_current_index]
1279
-
1280 1415
         for (var index in adviceTable) {
1281 1416
           this.templateForm[index] = adviceTable[index]
1282 1417
         }
1418
+        this.templateForm.weekday = adviceTable.weekdays.split(',')
1419
+
1283 1420
         this.templateFormVisible = true
1284 1421
         this.templateTableVisible = false
1285 1422
         this.dialogTitle = '编辑医嘱内容'
@@ -1292,7 +1429,6 @@
1292 1429
         }).then(() => {
1293 1430
           this.adviceTableData = []
1294 1431
           this.form.name = ''
1295
-          this.form.advice_type = ''
1296 1432
           this.templateFormVisible = false
1297 1433
           this.templateTableVisible = false
1298 1434
         }).catch(() => {
@@ -1329,7 +1465,6 @@
1329 1465
             this.handleSpanTempArr()
1330 1466
 
1331 1467
             this.form.name = ''
1332
-            this.form.advice_type = ''
1333 1468
             this.adviceTableData = []
1334 1469
             this.templateFormVisible = false
1335 1470
             this.templateTableVisible = false
@@ -1444,6 +1579,7 @@
1444 1579
           if (isNaN(this.templateForm.prescribing_number)) {
1445 1580
             this.templateForm.prescribing_number = 0
1446 1581
           }
1582
+
1447 1583
           if (valid) {
1448 1584
             const templateFormTwo = {}
1449 1585
             templateFormTwo.template_id = this.current_template_id
@@ -1499,6 +1635,7 @@
1499 1635
                 }
1500 1636
               })
1501 1637
             } else {
1638
+
1502 1639
               const templateFormTwo = {}
1503 1640
               templateFormTwo.advice_name = this.templateForm.advice_name
1504 1641
               templateFormTwo.advice_desc = this.templateForm.advice_desc
@@ -1512,6 +1649,33 @@
1512 1649
               templateFormTwo.execution_frequency = this.templateForm.execution_frequency
1513 1650
               templateFormTwo.parent_id = this.parent_id
1514 1651
 
1652
+              if (this.templateForm.frequency_type == 1) {
1653
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1654
+                templateFormTwo.day_count = '0'
1655
+                templateFormTwo.weekdays = ''
1656
+
1657
+              } else if (this.templateForm.frequency_type == 2) {
1658
+
1659
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1660
+                templateFormTwo.day_count = this.templateForm.day_count
1661
+                templateFormTwo.weekdays = ''
1662
+
1663
+              } else if (this.templateForm.frequency_type == 3) {
1664
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1665
+                templateFormTwo.day_count = '0'
1666
+                templateFormTwo.weekdays = this.templateForm.weekday.filter(function(s) {
1667
+                  return s && s.trim()
1668
+                }).join(',')
1669
+
1670
+              }
1671
+
1672
+              this.templateForm.advice_name = ''
1673
+              this.templateForm.advice_desc = ''
1674
+              this.templateForm.frequency_type = 1
1675
+              this.templateForm.day_count = ''
1676
+              this.templateForm.weekday = []
1677
+
1678
+              console.log(templateFormTwo)
1515 1679
               if (this.isEdit) {
1516 1680
                 for (let i = 0; i < this.adviceTableData.length; i++) {
1517 1681
                   if (i == this.table_current_index) {
@@ -1525,10 +1689,14 @@
1525 1689
                     this.adviceTableData[i].prescribing_number_unit = templateFormTwo.prescribing_number_unit
1526 1690
                     this.adviceTableData[i].delivery_way = templateFormTwo.delivery_way
1527 1691
                     this.adviceTableData[i].execution_frequency = templateFormTwo.execution_frequency
1692
+                    this.adviceTableData[i].frequency_type = templateFormTwo.frequency_type
1693
+                    this.adviceTableData[i].day_count = templateFormTwo.day_count
1694
+                    this.adviceTableData[i].weekdays = templateFormTwo.weekdays
1528 1695
                   }
1529 1696
                 }
1530 1697
               } else {
1531 1698
                 this.adviceTableData.unshift(templateFormTwo)
1699
+                console.log(this.adviceTableData)
1532 1700
               }
1533 1701
               this.templateFormVisible = false
1534 1702
               this.templateTableVisible = true
@@ -1706,7 +1874,7 @@
1706 1874
 
1707 1875
       getAdviceConfig() {
1708 1876
         this.adviceTemplates = []
1709
-        getAdviceConfig().then(response => {
1877
+        getAllAdviceConfig().then(response => {
1710 1878
           if (response.data.state == 1) {
1711 1879
             this.drugways = response.data.data.drugways
1712 1880
             this.executionFrequencyOptions = response.data.data.efs
@@ -1764,6 +1932,24 @@
1764 1932
             this.templateFormEdit.prescribing_number = 0
1765 1933
           }
1766 1934
           if (valid) {
1935
+            console.log(this.templateFormEdit)
1936
+
1937
+            if (this.templateFormEdit.frequency_type == 1) {
1938
+
1939
+              this.templateFormEdit.day_count = 0
1940
+              this.templateFormEdit.week_days = ''
1941
+
1942
+            } else if (this.templateFormEdit.frequency_type == 2) {
1943
+              this.templateFormEdit.day_count = parseInt(this.templateFormEdit.day_count)
1944
+              this.templateFormEdit.week_days = ''
1945
+
1946
+            } else if (this.templateFormEdit.frequency_type == 3) {
1947
+              this.templateFormEdit.day_count = 0
1948
+              this.templateFormEdit.week_days = this.templateFormEdit.weekday.filter(function(s) {
1949
+                return s && s.trim()
1950
+              }).join(',')
1951
+            }
1952
+
1767 1953
             UpdateAdviceTemplate(this.templateFormEdit.id, this.templateFormEdit).then(
1768 1954
               response => {
1769 1955
                 if (response.data.state == 0) {
@@ -1784,6 +1970,9 @@
1784 1970
                   this.adviceTemplates[this.currentIndex].execution_frequency = template.execution_frequency
1785 1971
                   this.adviceTemplates[this.currentIndex].prescribing_number = template.prescribing_number
1786 1972
                   this.adviceTemplates[this.currentIndex].prescribing_number_unit = template.prescribing_number_unit
1973
+                  this.adviceTemplates[this.currentIndex].day_count = template.day_count
1974
+                  this.adviceTemplates[this.currentIndex].week_days = template.week_days
1975
+                  this.adviceTemplates[this.currentIndex].frequency_type = template.frequency_type
1787 1976
                   this.currentIndex = -1
1788 1977
                   return false
1789 1978
                 }
@@ -1878,6 +2067,20 @@
1878 2067
         this.templateFormTwoVisible = false
1879 2068
       }, submitTemplateTwo(formName) {
1880 2069
         this.templateForm['template_id'] = this.current_template_id
2070
+        this.templateForm['advice_type'] = this.form.advice_type
2071
+
2072
+        if (this.templateForm.frequency_type == 1) {
2073
+          this.templateForm.day_count = 0
2074
+          this.templateForm.week_days = ''
2075
+        } else if (this.templateForm.frequency_type == 2) {
2076
+          this.templateForm.day_count = parseInt(this.templateForm.day_count)
2077
+          this.templateForm.week_days = ''
2078
+        } else if (this.templateForm.frequency_type == 3) {
2079
+          this.templateForm.day_count = 0
2080
+          this.templateForm.week_days = this.templateForm.weekday.filter(function(s) {
2081
+            return s && s.trim()
2082
+          }).join(',')
2083
+        }
1881 2084
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
1882 2085
           if (response.data.state == 0) {
1883 2086
             this.$message.error(response.data.msg)
@@ -1892,14 +2095,13 @@
1892 2095
             objects['isNoSub'] = 2
1893 2096
 
1894 2097
             this.adviceTableDataTwo.unshift(response.data.data.template)
1895
-            // this.adviceTemplates.unshift(objects)
1896
-            // this.handleSpanTempArr()
1897
-
1898 2098
             this.getAdviceConfig()
1899 2099
             this.resetForm(formName)
1900 2100
             this.templateFormTwoVisible = false
1901
-
1902 2101
             this.$message.success('添加成功')
2102
+            this.templateForm.day_count = ''
2103
+            this.templateForm.weekday = []
2104
+            this.templateForm.frequency_type = 1
1903 2105
 
1904 2106
             return false
1905 2107
           }
@@ -1964,7 +2166,7 @@
1964 2166
           }
1965 2167
         })
1966 2168
       }, merge({ row, column, rowIndex, columnIndex }) {
1967
-        if (columnIndex === 0 || columnIndex === 1 || columnIndex === 8) {
2169
+        if (columnIndex === 0 || columnIndex === 1 || columnIndex === 9) {
1968 2170
           const _row = this.tempArr[rowIndex]
1969 2171
           const _col = _row > 0 ? 1 : 0
1970 2172
           return {
@@ -1998,6 +2200,7 @@
1998 2200
       }, cellMouseLeave: function(row, column, cell, event) {
1999 2201
         this.hoverOrderArr = []
2000 2202
       }, openEdit(index, row) {
2203
+        console.log(row)
2001 2204
         this.hoverOrderArr = []
2002 2205
         this.currentIndex = index
2003 2206
         this.templateFormEdit.drug_spec_unit = row.drug_spec_unit
@@ -2012,6 +2215,10 @@
2012 2215
         this.templateFormEdit.single_dose_unit = row.single_dose_unit
2013 2216
         this.templateFormEdit.id = row.id
2014 2217
         this.templateFormEdit.parent_id = row.parent_id
2218
+        this.templateFormEdit.day_count = row.day_count
2219
+        this.templateFormEdit.frequency_type = row.frequency_type
2220
+        this.templateFormEdit.weekday = row.week_days.split(',')
2221
+
2015 2222
         this.templateEditFormVisible = true
2016 2223
         if (row.parent_id > 0) {
2017 2224
           this.editDialogTitle = '编辑子药'
@@ -2187,6 +2394,7 @@
2187 2394
         this.current_template_id = row.template_id
2188 2395
         this.current_template_name = row.name
2189 2396
         this.form.name = row.name
2397
+        this.form.advice_type = row.advice_type
2190 2398
         this.templateTableTwoVisible = true
2191 2399
         this.adviceTableDataTwo = []
2192 2400
         for (let i = 0; i < this.adviceTemplates.length; i++) {

+ 55 - 0
src/xt_pages/data/hisConfig.vue 查看文件

@@ -0,0 +1,55 @@
1
+<template>
2
+<div class="main-contain">
3
+  <div class="position">
4
+    <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+  </div>
6
+  <div class="app-container">
7
+    <el-tabs v-model="activeName" >
8
+      <el-tab-pane v-for="item in tabMapOptions" :label="item.label" :key='item.key' :name="item.key" style="display:flex;">
9
+        <keep-alive>
10
+          <div style="display:flex;width:100%;">
11
+          <tab-pane v-if='activeName==item.key' :type='item.key' style="flex:1;"></tab-pane>
12
+          </div>
13
+        </keep-alive>
14
+      </el-tab-pane>
15
+    </el-tabs>
16
+  </div>
17
+  </div>
18
+
19
+</template>
20
+
21
+<script>
22
+import tabPane from './components/hisConfigInfo'
23
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
24
+export default {
25
+  name: 'hisconfig',
26
+  components: { tabPane,BreadCrumb},
27
+  data() {
28
+    return {
29
+      crumbs: [
30
+        { path: false, name: '系统管理' },
31
+        { path: 'data/hisconfig', name: 'His集成' },
32
+      ],
33
+      tabMapOptions: [
34
+        { label: "集成配置", key: 'education'},
35
+        { label: "医护配置", key: 'summary'},
36
+        { label: "病患配置", key: 'course_disease' },
37
+        { label: "同步配置", key: 'rescue_record'}
38
+      ],
39
+      activeName: 'education',
40
+      createdTimes: 0
41
+    }
42
+  },
43
+  methods: {
44
+    showCreatedTimes() {
45
+      this.createdTimes = this.createdTimes + 1
46
+    }
47
+  }
48
+}
49
+</script>
50
+
51
+<style scoped>
52
+  .tab-container{
53
+    margin: 30px;
54
+  }
55
+</style>

+ 2 - 4
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -598,8 +598,7 @@
598 598
                           <div>▲</div>
599 599
                           <div>
600 600
                             <span>{{child.advice_name }}</span>
601
-                            <span>{{child.advice_desc}}</span>
602
-                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
601
+                            <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
603 602
                             <span
604 603
                               v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
605 604
                             <span
@@ -650,8 +649,7 @@
650 649
                           <div>▲</div>
651 650
                           <div>
652 651
                             <span>{{child.advice_name }}</span>
653
-                            <span>{{child.advice_desc}}</span>
654
-                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
652
+                            <span v-if="child.advice_desc">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
655 653
                             <span
656 654
                               v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
657 655
                             <span

+ 4 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue 查看文件

@@ -983,7 +983,7 @@
983 983
                     </td>
984 984
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
985 985
                       <span>{{advice.advice_name }}</span>
986
-                      <span>{{advice.advice_desc}}</span>
986
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
987 987
                       <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
988 988
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
989 989
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
@@ -1085,7 +1085,9 @@
1085 1085
                       </td>
1086 1086
                       <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
1087 1087
                         <span>{{advice.advice_name }}</span>
1088
-                        <span>{{advice.advice_desc}}</span>
1088
+                        <!--<span>{{advice.advice_desc}}</span>-->
1089
+                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
1090
+
1089 1091
                         <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
1090 1092
                         <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1091 1093
                         <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue 查看文件

@@ -315,8 +315,8 @@
315 315
                     </td>
316 316
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
317 317
                       <span>{{advice.advice_name }}</span>
318
-                      <span>{{advice.advice_desc}}</span>
319
-                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
318
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
319
+                       <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
320 320
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
321 321
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
322 322
                       <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
@@ -417,7 +417,7 @@
417 417
                       </td>
418 418
                       <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
419 419
                         <span>{{advice.advice_name }}</span>
420
-                        <span>{{advice.advice_desc}}</span>
420
+                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
421 421
                         <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
422 422
                         <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
423 423
                         <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

+ 2 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue 查看文件

@@ -298,8 +298,7 @@
298 298
                     </td>
299 299
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
300 300
                       <span>{{advice.advice_name }}</span>
301
-                      <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
302
-                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
301
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
303 302
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
304 303
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
305 304
                       <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
@@ -402,7 +401,7 @@
402 401
                     </td>
403 402
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
404 403
                       <span>{{advice.advice_name }}</span>
405
-                      <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
404
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
406 405
                       <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
407 406
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
408 407
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

文件差異過大導致無法顯示
+ 1342 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue


+ 82 - 179
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -3,93 +3,31 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
       <template v-if="this.template_id == 1">
6
-        <el-button
7
-          size="small"
8
-          icon="el-icon-printer"
9
-          :disabled="selecting_schs.length == 0"
10
-          @click="batchPrintAction"
11
-          type="primary"
12
-          >打印</el-button
13
-        >
6
+        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
14 7
       </template>
15 8
       <template v-if="this.template_id == 2 || this.template_id == 0">
16
-        <div>
17
-          <el-button
18
-            :loading="loading"
19
-            size="small"
20
-            icon="el-icon-printer"
21
-            @click="batchPrintAction"
22
-            type="primary"
23
-            >打印全部</el-button
24
-          >
25
-          <el-button
26
-            :loading="loading"
27
-            size="small"
28
-            icon="el-icon-printer"
29
-            @click="batchPrintActionOne"
30
-            type="primary"
31
-            style=""
32
-            >打印纪录单</el-button
33
-          >
34
-          <el-button
35
-            :loading="loading"
36
-            size="small"
37
-            icon="el-icon-printer"
38
-            @click="batchPrintActionTwo"
39
-            type="primary"
40
-            >打印医嘱单</el-button
41
-          >
9
+        <div >
10
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
11
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
12
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
42 13
         </div>
43 14
       </template>
44 15
       <template v-if="this.template_id == 3">
45
-        <el-button
46
-          size="small"
47
-          icon="el-icon-printer"
48
-          :disabled="selecting_schs.length == 0"
49
-          @click="batchPrintAction"
50
-          type="primary"
51
-          >打印</el-button
52
-        >
16
+        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
53 17
       </template>
54 18
       <template v-if="this.template_id == 4">
55
-        <el-button
56
-          size="small"
57
-          icon="el-icon-printer"
58
-          :disabled="selecting_schs.length == 0"
59
-          @click="batchPrintAction"
60
-          type="primary"
61
-          >打印</el-button
62
-        >
19
+        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
63 20
       </template>
64 21
       <template v-if="this.template_id == 5">
65
-        <div>
66
-          <el-button
67
-            :loading="loading"
68
-            size="small"
69
-            icon="el-icon-printer"
70
-            @click="batchPrintAction"
71
-            type="primary"
72
-            >打印全部</el-button
73
-          >
74
-          <el-button
75
-            :loading="loading"
76
-            size="small"
77
-            icon="el-icon-printer"
78
-            @click="batchPrintActionOne"
79
-            type="primary"
80
-            style=""
81
-            >打印纪录单</el-button
82
-          >
83
-          <el-button
84
-            :loading="loading"
85
-            size="small"
86
-            icon="el-icon-printer"
87
-            @click="batchPrintActionTwo"
88
-            type="primary"
89
-            >打印医嘱单</el-button
90
-          >
22
+        <div >
23
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintAction" type="primary">打印全部</el-button>
24
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionOne" type="primary" style="">打印纪录单</el-button>
25
+          <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="batchPrintActionTwo" type="primary">打印医嘱单</el-button>
91 26
         </div>
92 27
       </template>
28
+      <template v-if="this.template_id == 6">
29
+        <el-button size="small" icon="el-icon-printer" :disabled="selecting_schs.length == 0" @click="batchPrintAction" type="primary">打印</el-button>
30
+      </template>
93 31
     </div>
94 32
     <div class="app-container">
95 33
       <!-- <div class="filter-container">
@@ -98,10 +36,7 @@
98 36
       </div>-->
99 37
       <div class="cell clearfix">
100 38
         <label class="title">
101
-          <span class="name">{{
102
-            search_mode == 1 ? "日期查询" : "病人查询"
103
-          }}</span>
104
-          :
39
+          <span class="name">{{ search_mode == 1 ? "日期查询" : "病人查询" }}</span> :
105 40
         </label>
106 41
         <el-date-picker
107 42
           v-show="search_mode == 1"
@@ -130,39 +65,40 @@
130 65
             @click="searchPatientAction"
131 66
           ></el-button>
132 67
         </el-input>
133
-        <el-button type="primary" @click="changeSearchMode">{{
134
-          search_mode == 1 ? "改为病人查询" : "改为日期查询"
135
-        }}</el-button>
68
+        <el-button
69
+          type="primary"
70
+          @click="changeSearchMode"
71
+        >{{ search_mode == 1 ? "改为病人查询" : "改为日期查询" }}</el-button>
136 72
 
137 73
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
138 74
       </div>
139 75
       <div class="cell clearfix">
140
-        <label class="title"> <span class="name">排班班次</span> : </label>
76
+        <label class="title">
77
+          <span class="name">排班班次</span> :
78
+        </label>
141 79
         <div class="time">
142 80
           <ul class>
143 81
             <li
144
-              :class="item.value == schedulType ? 'active' : ''"
82
+              :class="item.value==schedulType?'active':''"
145 83
               @click="selectSchedulType(item.value)"
146 84
               v-for="item in schedulArr"
147 85
               :key="item.value"
148
-            >
149
-              {{ item.label }}
150
-            </li>
86
+            >{{item.label}}</li>
151 87
           </ul>
152 88
         </div>
153 89
       </div>
154 90
       <div class="cell clearfix">
155
-        <label class="title"> <span class="name">分区</span> : </label>
91
+        <label class="title">
92
+          <span class="name">分区</span> :
93
+        </label>
156 94
         <div class="time">
157 95
           <ul class>
158 96
             <li
159
-              :class="item.id == partitionType ? 'active' : ''"
97
+              :class="item.id==partitionType?'active':''"
160 98
               @click="selectPartitionType(item.id)"
161 99
               v-for="item in partitionArr"
162 100
               :key="item.id"
163
-            >
164
-              {{ item.name }}
165
-            </li>
101
+            >{{item.name}}</li>
166 102
           </ul>
167 103
         </div>
168 104
       </div>
@@ -179,70 +115,33 @@
179 115
         @current-change="clickCurrent"
180 116
         @selection-change="handleSelectionChange"
181 117
       >
182
-        <el-table-column
183
-          type="selection"
184
-          width="45"
185
-          align="center"
186
-        ></el-table-column>
187
-        <el-table-column
188
-          prop="number"
189
-          label="机号"
190
-          align="center"
191
-        ></el-table-column>
192
-        <el-table-column
193
-          label="排班日期"
194
-          prop="sch_time"
195
-          align="center"
196
-          width="120"
197
-        ></el-table-column>
198
-        <el-table-column
199
-          prop="dialysis_no"
200
-          label="透析号"
201
-          align="center"
202
-        ></el-table-column>
118
+        <el-table-column type="selection" width="45" align="center"></el-table-column>
119
+        <el-table-column prop="number" label="机号" align="center"></el-table-column>
120
+        <el-table-column label="排班日期" prop="sch_time" align="center" width="120"></el-table-column>
121
+        <el-table-column prop="dialysis_no" label="透析号" align="center"></el-table-column>
203 122
         <el-table-column prop="name" label="姓名" align="center">
204 123
           <template slot-scope="scope">
205
-            <span style="color: #579ef8">{{ scope.row.name }}</span>
124
+            <span style="color: #579ef8">{{scope.row.name}}</span>
206 125
           </template>
207 126
         </el-table-column>
208 127
 
209
-        <el-table-column
210
-          prop="mode_name"
211
-          label="透析模式"
212
-          align="center"
213
-          width="100"
214
-        ></el-table-column>
128
+        <el-table-column prop="mode_name" label="透析模式" align="center" width="100"></el-table-column>
215 129
 
216
-        <el-table-column
217
-          prop="dialysis_before_weight"
218
-          label="透前体重(kg)"
219
-          align="center"
220
-          width="120"
221
-        ></el-table-column>
222
-        <el-table-column
223
-          prop="dialysis_after_weight"
224
-          label="透后体重(kg)"
225
-          align="center"
226
-          width="120"
227
-        ></el-table-column>
130
+        <el-table-column prop="dialysis_before_weight" label="透前体重(kg)" align="center" width="120"></el-table-column>
131
+        <el-table-column prop="dialysis_after_weight" label="透后体重(kg)" align="center" width="120"></el-table-column>
228 132
         <el-table-column label="透中血压(Hgmm)" align="center">
229
-          <el-table-column
230
-            v-for="(item, index) in labelArr"
231
-            :key="index"
232
-            :label="item"
233
-            align="center"
234
-          >
133
+          <el-table-column v-for="(item, index) in labelArr" :key="index" :label="item" align="center">
235 134
             <!-- 数据的遍历  scope.row就代表数据的每一个对象-->
236
-            <template slot-scope="scope">
135
+            <template slot-scope="scope" >
237 136
               <!--<span>{{scope.row.bp[index].value}}</span>-->
238
-              <span>{{ getValue(scope.row.bp[index]) }}</span>
137
+              <span>{{getValue(scope.row.bp[index])}}</span>
239 138
             </template>
240 139
           </el-table-column>
241 140
         </el-table-column>
242 141
       </el-table>
243 142
 
244 143
       <el-pagination
245
-        align="right"
144
+      align="right"
246 145
         @current-change="handleCurrentChange"
247 146
         :page-sizes="[10]"
248 147
         :page-size="10"
@@ -255,19 +154,20 @@
255 154
   </div>
256 155
 </template>
257 156
 
157
+
258 158
 <script>
259 159
 import { getSchedualPatient, GetAllZone } from "@/api/dialysis";
260 160
 import { parseTime } from "@/utils";
261 161
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
262
-import { getPrintTemplate } from "@/api/data";
162
+import { getPrintTemplate } from '@/api/data'
263 163
 
264 164
 export default {
265 165
   name: "Patient",
266 166
   data() {
267 167
     return {
268
-      crumbs: [
269
-        { path: false, name: "透析管理" },
270
-        { path: false, name: "透析监测" }
168
+      crumbs:[
169
+        {path:false, name:'透析管理'},
170
+        {path:false, name:'透析监测'},
271 171
       ],
272 172
       loading: false,
273 173
       time: "",
@@ -284,11 +184,11 @@ export default {
284 184
         { value: 2, label: "下午" },
285 185
         { value: 3, label: "晚上" }
286 186
       ],
287
-      template_id: 0,
187
+      template_id : 0,
288 188
 
289 189
       partitionType: 0,
290 190
 
291
-      labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
191
+      labelArr: ['第1次', "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
292 192
 
293 193
       pickerOptions1: {
294 194
         shortcuts: [
@@ -357,16 +257,16 @@ export default {
357 257
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
358 258
   },
359 259
   methods: {
360
-    getTemplateInfo() {
260
+    getTemplateInfo(){
361 261
       getPrintTemplate().then(response => {
362 262
         if (response.data.state == 0) {
363
-          this.$message.error(response.data.msg);
364
-          return false;
263
+          this.$message.error(response.data.msg)
264
+          return false
365 265
         } else {
366
-          var template = response.data.data.template;
367
-          this.template_id = template.template_id;
266
+          var template = response.data.data.template
267
+          this.template_id = template.template_id
368 268
         }
369
-      });
269
+      })
370 270
     },
371 271
     clickCurrent(val) {
372 272
       console.log(val);
@@ -430,8 +330,7 @@ export default {
430 330
                 bp: []
431 331
               };
432 332
 
433
-              SchedualPatientsTable["sch_id"] =
434
-                response.data.data.schedule[i].id;
333
+              SchedualPatientsTable["sch_id"] = response.data.data.schedule[i].id
435 334
               SchedualPatientsTable["sch_time_int"] =
436 335
                 response.data.data.schedule[i].schedule_date;
437 336
               SchedualPatientsTable["sch_time"] = parseTime(
@@ -521,61 +420,65 @@ export default {
521 420
       this.getSchedualPatientList();
522 421
     },
523 422
     batchPrintAction: function() {
524
-      var sch_ids = [];
423
+      var sch_ids = []
525 424
       for (let index = 0; index < this.selecting_schs.length; index++) {
526
-        sch_ids.push(this.selecting_schs[index].sch_id);
425
+        sch_ids.push(this.selecting_schs[index].sch_id)
527 426
       }
528
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
529
-      if (this.template_id == 2 || this.template_id == 0) {
427
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
428
+      if (this.template_id == 2 ||this.template_id == 0 ){
530 429
         this.$router.push({ path: "/dialysis/print/batch/other" });
531
-      } else if (this.template_id == 1) {
430
+      }else if(this.template_id == 1) {
532 431
         this.$router.push({ path: "/dialysis/print/batch" });
533
-      } else if (this.template_id == 3) {
432
+      }
433
+      else if(this.template_id == 3) {
534 434
         this.$router.push({ path: "/dialysis/print/batch/three" });
535
-      } else if (this.template_id == 4) {
435
+      }
436
+      else if(this.template_id == 4) {
536 437
         this.$router.push({ path: "/dialysis/print/batch/four" });
537
-      } else if (this.template_id == 5) {
438
+      } else if (this.template_id == 5  ){
538 439
         this.$router.push({ path: "/dialysis/print/batch/five" });
440
+      } else if (this.template_id == 6  ){
441
+        this.$router.push({ path: "/dialysis/print/batch/six" });
539 442
       }
540 443
     },
541 444
     batchPrintActionOne: function() {
542
-      var sch_ids = [];
445
+      var sch_ids = []
543 446
       for (let index = 0; index < this.selecting_schs.length; index++) {
544
-        sch_ids.push(this.selecting_schs[index].sch_id);
447
+        sch_ids.push(this.selecting_schs[index].sch_id)
545 448
       }
546
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
547
-      if (this.template_id == 2 || this.template_id == 0) {
449
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
450
+      if (this.template_id == 2 ||this.template_id == 0){
548 451
         this.$router.push({ path: "/dialysis/print/batch/otherone" });
549
-      } else if (this.template_id == 1) {
452
+      }else if(this.template_id == 1) {
550 453
         this.$router.push({ path: "/dialysis/print/batch" });
551
-      } else if (this.template_id == 5) {
454
+      } else if (this.template_id == 5){
552 455
         this.$router.push({ path: "/dialysis/print/batch/fiveone" });
553 456
       }
554 457
     },
555 458
     batchPrintActionTwo: function() {
556
-      var sch_ids = [];
459
+      var sch_ids = []
557 460
       for (let index = 0; index < this.selecting_schs.length; index++) {
558
-        sch_ids.push(this.selecting_schs[index].sch_id);
461
+        sch_ids.push(this.selecting_schs[index].sch_id)
559 462
       }
560
-      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids);
561
-      if (this.template_id == 2 || this.template_id == 0) {
463
+      this.$store.dispatch("SetBatchPrintDialysisRecordIDs", sch_ids)
464
+      if (this.template_id == 2 ||this.template_id == 0 ){
562 465
         this.$router.push({ path: "/dialysis/print/batch/othertwo" });
563
-      } else if (this.template_id == 1) {
466
+      }else if(this.template_id == 1){
564 467
         this.$router.push({ path: "/dialysis/print/batch" });
565
-      } else if (this.template_id == 5) {
468
+      } else if (this.template_id == 5  ){
566 469
         this.$router.push({ path: "/dialysis/print/batch/fivetwo" });
567 470
       }
568 471
     }
569 472
   },
570 473
   components: {
571
-    BreadCrumb
474
+      BreadCrumb
572 475
   }
573 476
 };
574 477
 </script>
575 478
 
576
-<style rel="stylesheet/scss" lang="scss">
479
+<style rel="stylesheet/scss" lang="scss" scoped>
577 480
 .app-container {
578
-  //   margin: 20px;
481
+//   margin: 20px;
579 482
   font-size: 15px;
580 483
   .filter-container {
581 484
     padding-bottom: 5px;

+ 27 - 16
src/xt_pages/dialysis/details/BasicInfor.vue 查看文件

@@ -19,8 +19,8 @@
19 19
           <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
20 20
         </li>
21 21
         <li>
22
-          <label>出生 : </label>
23
-          <span>{{ birthday }}</span>
22
+          <label>年龄:</label>
23
+          <span>{{ patient.age }}</span>
24 24
         </li>
25 25
         <li>
26 26
           <label>透析号 : </label>
@@ -38,19 +38,25 @@
38 38
           <label>住院号 : </label>
39 39
           <span>{{ patient.admission_number }}</span>
40 40
         </li>
41
+        <li>
42
+          <label>透析日期:</label>
43
+          <span>{{dialysis_time}}</span>
44
+        </li>
41 45
     </ul>
42 46
     <div class="middleLine"></div>
43 47
   </div>
44 48
 </template>
45 49
 
46 50
 <script>
47
-import { parseTime } from "@/utils"
51
+const moment = require('moment')
52
+import { parseTime } from '@/utils'
48 53
 
49 54
 export default {
50
-  name: "BasicInfor",
55
+  name: 'BasicInfor',
51 56
   data() {
52 57
     return {
53
-      title:'基本信息',
58
+      title: '基本信息',
59
+      dialysis_time: moment(new Date()).format('YYYY-MM-DD')
54 60
       // steps: [
55 61
       //   { title: "透析处方" },
56 62
       //   { title: "接诊评估" },
@@ -63,7 +69,7 @@ export default {
63 69
       //   { title: "透后评估" },
64 70
       //   { title: "治疗小结" }
65 71
       // ]
66
-    };
72
+    }
67 73
   },
68 74
   props: {
69 75
     patient: {
@@ -73,7 +79,7 @@ export default {
73 79
       }
74 80
     },
75 81
     device_number: {
76
-      type: String,
82
+      type: String
77 83
     },
78 84
     steps: {
79 85
       type: Array,
@@ -83,23 +89,26 @@ export default {
83 89
     }
84 90
   },
85 91
   computed: {
86
-    birthday: function() {
92
+    created_time: function() {
87 93
       if (this.patient.id == 0) {
88
-        return ""
94
+        return ''
89 95
       } else {
90
-        return parseTime(this.patient.birthday, "{y}-{m}-{d}")
96
+        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
91 97
       }
92 98
     },
93 99
     source: function() {
94
-      return this.patient.source == 1 ? "门诊" : "住院"
95
-    },
100
+      return this.patient.source == 1 ? '门诊' : '住院'
101
+    }
96 102
   },
97 103
   methods: {
98 104
     stepState: function() {
99
-      return parseInt((Math.random() * 1000) + "") % 2 == 1;
100
-    },
105
+      return parseInt((Math.random() * 1000) + '') % 2 == 1
106
+    }
107
+  },
108
+  created() {
109
+    console.log('patinents是什么ha ', this.patient)
101 110
   }
102
-};
111
+}
103 112
 </script>
104 113
 
105 114
 <style style="stylesheet/scss" lang="scss" scoped>
@@ -200,13 +209,15 @@ export default {
200 209
     padding:20px 40px;  
201 210
     li {
202 211
       float: left;
203
-      width: 25%;
212
+      width: 28%;
204 213
       // margin: 0 1rem 0 0;
205 214
       font-size: 15px;
206 215
       height: 35px;
207 216
       line-height: 35px;
208 217
       color: #34495e;
218
+      margin-left: 60px;
209 219
     }
220
+    // border: solid red 1px;
210 221
   }
211 222
 </style>
212 223
 

+ 346 - 426
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -1,500 +1,420 @@
1 1
 <template>
2 2
   <div class="plate-box">
3
-    <h2 class="DetailsTit">
4
-      <span>{{ title }}</span>
5
-    </h2>
3
+    <h2 class="DetailsTit"><span>{{ title }}</span></h2>
6 4
     <div class="plate">
7 5
       <ul>
8 6
         <li v-if="isShow('透析模式')">
9 7
           <label>透析模式 : </label>
10
-          <span class="content">{{ dialysis_mode }}</span>
8
+          <span class="content">{{dialysis_mode}}</span>
11 9
         </li>
12 10
         <li v-if="isShow('目标超滤量')">
13 11
           <label>目标超滤量 : </label>
14
-          <span class="content">{{
15
-            target_ultrafiltration != "0" ? target_ultrafiltration : ""
16
-          }}</span>
17
-          <span class="unit">{{
18
-            target_ultrafiltration != "0" ? "L" : ""
19
-          }}</span>
12
+          <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
13
+          <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
20 14
         </li>
21
-        <li v-if="isShow('置换量')">
22
-          <label>置换量 : </label>
23
-          <span class="content">{{
24
-            replacement_total != "0" ? replacement_total : ""
25
-          }}</span>
26
-          <span class="unit">{{ replacement_total != "0" ? "L" : "" }}</span>
27
-        </li>
28
-        <li v-if="isShow('维持')">
29
-          <label>维持 : </label>
30
-          <span class="content">{{
31
-            anticoagulant_weichi != "0" ? anticoagulant_weichi : ""
32
-          }}</span>
33
-          <span class="unit">{{
34
-            anticoagulant_weichi != "0" ? "mg/h" : ""
35
-          }}</span>
36
-        </li>
37
-        <li v-if="isShow('钠')">
38
-          <label>钠 : </label>
39
-          <span class="content">{{ sodium != "0" ? sodium : "" }}</span>
40
-          <span class="unit">{{ sodium != "0" ? "mmol/L" : "" }}</span>
41
-        </li>
42
-        <li v-if="isShow('碳酸氢盐')">
43
-          <label>碳酸氢盐 : </label>
44
-          <span class="content">{{
45
-            bicarbonate != "0" ? bicarbonate : ""
46
-          }}</span>
47
-          <span class="unit">{{ bicarbonate != "0" ? "mmol/L" : "" }}</span>
48
-        </li>
49
-        <li v-if="isShow('体液过多其他症状')">
50
-          <label>体液过多其他症状 : </label>
51
-          <span class="content">{{ body_fluid_other }}</span>
52
-          <span class="unit"></span>
15
+        <li v-if="isShow('首剂')">
16
+          <label>首剂 : </label>
17
+          <span class="content">{{anticoagulant_shouji != '0'?anticoagulant_shouji:''}}</span>
18
+          <span class="unit">{{anticoagulant_shouji != '0'?"mg":''}}</span>
53 19
         </li>
54
-        <li v-if="isShow('血管通路(内瘘)')">
55
-          <label>血管通路(内瘘): </label>
56
-          <span class="content">{{ blood_access }}</span>
57
-          <span class="unit"></span>
20
+        <li v-if="isShow('钙')">
21
+          <label>钙: </label>
22
+          <span class="content">{{calcium != '0'?calcium:""}}</span>
23
+          <span class="unit">{{calcium != '0'?"mmol/L":""}}</span>
58 24
         </li>
59
-        <li v-if="isShow('实际超滤量')">
60
-          <label>实际超滤量: </label>
61
-          <span class="content">{{
62
-            ultrafiltration != "0" ? ultrafiltration : ""
63
-          }}</span>
64
-          <span class="unit">{{ ultrafiltration != "0" ? "L" : "" }}</span>
25
+        <li v-if="isShow('置换量')">
26
+          <label>置换量 : </label>
27
+          <span class="content">{{replacement_total != '0'?replacement_total:""}}</span>
28
+          <span class="unit">{{replacement_total != '0'?"L":""}}</span>
65 29
         </li>
66
-        <li v-if="isShow('目标KT/V')">
67
-          <label>目标KT/V: </label>
68
-          <span class="content">{{ target_ktv != "0" ? target_ktv : "" }}</span>
30
+
31
+        <li v-if="isShow('葡萄糖')">
32
+          <label>葡萄糖 : </label>
33
+          <span class="content">{{glucose != '0'?glucose:""}}</span>
34
+          <span class="unit">{{glucose != '0'?"mmol/l":""}}</span>
69 35
         </li>
70 36
       </ul>
71
-      <!-- 11111111111111111111111111111111111111111111 -->
72 37
       <ul>
73 38
         <li v-if="isShow('透析时长')">
74 39
           <label>透析时长 : </label>
75
-          <span class="content">{{
76
-            dialysis_duration != "0" ? dialysis_duration : ""
77
-          }}</span>
40
+          <span class="content">{{dialysis_duration != '0'?dialysis_duration:""}}</span>
78 41
         </li>
79 42
         <li v-if="isShow('透析液配方')">
80 43
           <label>透析液配方 : </label>
81
-          <span class="content">{{ dialysate_formulation }}</span>
82
-        </li>
83
-        <li v-if="isShow('抗凝剂')">
84
-          <label>抗凝剂 : </label>
85
-          <span class="content">{{ anticoagulant }}</span>
86
-        </li>
87
-        <li v-if="isShow('总量')">
88
-          <label>总量: </label>
89
-          <span class="content">{{
90
-            anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""
91
-          }}</span>
92
-          <span class="unit">{{
93
-            anticoagulant_zongliang != "0" ? "mg" : ""
94
-          }}</span>
44
+          <span class="content">{{dialysate_formulation}}</span>
95 45
         </li>
96
-        <li v-if="isShow('钙')">
97
-          <label>钙: </label>
98
-          <span class="content">{{ calcium != "0" ? calcium : "" }}</span>
99
-          <span class="unit">{{ calcium != "0" ? "mmol/L" : "" }}</span>
100
-        </li>
101
-        <li v-if="isShow('葡萄糖')">
102
-          <label>葡萄糖 : </label>
103
-          <span class="content">{{ glucose != "0" ? glucose : "" }}</span>
104
-          <span class="unit">{{ glucose != "0" ? "mmol/l" : "" }}</span>
46
+        <li v-if="isShow('维持')">
47
+          <label>维持 : </label>
48
+          <span class="content">{{anticoagulant_weichi != '0'?anticoagulant_weichi:""}}</span>
49
+          <span class="unit">{{anticoagulant_weichi != '0'?"mg/h":""}}</span>
105 50
         </li>
106
-        <li v-if="isShow('体液过多症状')">
107
-          <label>体液过多症状 : </label>
108
-          <span class="content">{{ body_fluid }}</span>
109
-          <span class="unit"></span>
51
+        <li v-if="isShow('钾')">
52
+          <label>钾 : </label>
53
+          <span class="content">{{kalium != '0'?kalium:""}}</span>
54
+          <span class="unit">{{kalium != '0'?"mmol/L":""}}</span>
110 55
         </li>
111
-        <li v-if="isShow('透析前使用特殊药物')">
112
-          <label>透析前使用特殊药物: </label>
113
-          <span class="content">{{ special_medicine }}</span>
114
-          <span class="unit"></span>
56
+        <li v-if="isShow('碳酸氢盐')">
57
+          <label>碳酸氢盐 : </label>
58
+          <span class="content">{{bicarbonate != '0'?bicarbonate:""}}</span>
59
+          <span class="unit">{{bicarbonate != '0'?"mmol/L":""}}</span>
115 60
         </li>
116
-
117 61
         <!-- <li>
118 62
           <label>干体重 : </label>
119 63
           <span class="content">{{dry_weight}}</span>
120 64
           <span class="unit">kg</span>
121 65
         </li> -->
66
+        <li v-if="isShow('透析液温度')">
67
+          <label>透析液温度 : </label>
68
+          <span class="content">{{dialysate_temperature != '0'?dialysate_temperature:""}}</span>
69
+          <span class="unit">{{dialysate_temperature != '0'?"℃":""}}</span>
70
+        </li>
122 71
       </ul>
123
-      <!-- 22222222222222222222222222222222222222222222 -->
124 72
       <ul>
73
+
125 74
         <li v-if="isShow('血流量')">
126 75
           <label>血流量 : </label>
127
-          <span class="content">{{
128
-            blood_flow_volume != "0" ? blood_flow_volume : ""
129
-          }}</span>
130
-          <span class="unit">{{
131
-            blood_flow_volume != "0" ? "ml/min" : ""
132
-          }}</span>
76
+          <span class="content">{{blood_flow_volume != '0'?blood_flow_volume:''}}</span>
77
+          <span class="unit">{{blood_flow_volume != '0'?"ml/min":''}}</span>
133 78
         </li>
134
-        <li v-if="isShow('透析液温度')">
135
-          <label>透析液温度 : </label>
136
-          <span class="content">{{
137
-            dialysate_temperature != "0" ? dialysate_temperature : ""
138
-          }}</span>
139
-          <span class="unit">{{
140
-            dialysate_temperature != "0" ? "℃" : ""
141
-          }}</span>
79
+        <li v-if="isShow('抗凝剂')">
80
+          <label>抗凝剂 : </label>
81
+          <span class="content">{{anticoagulant}}</span>
142 82
         </li>
143
-        <li v-if="isShow('首剂')">
144
-          <label>首剂 : </label>
145
-          <span class="content">{{
146
-            anticoagulant_shouji != "0" ? anticoagulant_shouji : ""
147
-          }}</span>
148
-          <span class="unit">{{
149
-            anticoagulant_shouji != "0" ? "mg" : ""
150
-          }}</span>
83
+        <li v-if="isShow('总量')">
84
+          <label>总量: </label>
85
+          <span class="content">{{anticoagulant_zongliang != '0'?anticoagulant_zongliang:""}}</span>
86
+          <span class="unit">{{anticoagulant_zongliang != '0'?"mg":""}}</span>
151 87
         </li>
152
-        <li v-if="isShow('')">
153
-          <label> : </label>
154
-          <span class="content">{{ kalium != "0" ? kalium : "" }}</span>
155
-          <span class="unit">{{ kalium != "0" ? "mmol/L" : "" }}</span>
88
+        <li v-if="isShow('钠')">
89
+          <label>钠 : </label>
90
+          <span class="content">{{sodium != '0'?sodium:""}}</span>
91
+          <span class="unit">{{sodium != '0'?"mmol/L":""}}</span>
156 92
         </li>
93
+        <li v-if="isShow('透析液流量')">
94
+          <label>透析液流量 : </label>
95
+          <span class="content">{{dialysate_flow != '0'?dialysate_flow:""}}</span>
96
+          <span class="unit">{{dialysate_flow != '0'?"ml/min":""}}</span>
97
+        </li>
98
+        <li v-if="isShow('电导度')">
99
+          <label>电导度 : </label>
100
+          <span class="content">{{conductivity != '0'?conductivity:""}}</span>
101
+          <span class="unit">{{conductivity != '0'?"mS/m":""}}</span>
102
+        </li>
103
+      </ul>
104
+
105
+
106
+      <ul>
157 107
         <li v-if="isShow('透析器/灌流器')">
158 108
           <label>透析器/灌流器 : </label>
159
-          <span class="content">{{ dialyzer_perfusion_apparatus }}</span>
109
+          <span class="content">{{dialyzer_perfusion_apparatus}}</span>
160 110
           <span class="unit"></span>
161 111
         </li>
162
-        <li v-if="isShow('透析液流量')">
163
-          <label>透析液流量 : </label>
164
-          <span class="content">{{
165
-            dialysate_flow != "0" ? dialysate_flow : ""
166
-          }}</span>
167
-          <span class="unit">{{ dialysate_flow != "0" ? "ml/min" : "" }}</span>
112
+
113
+        <li v-if="isShow('体液过多症状')">
114
+          <label>体液过多症状 : </label>
115
+          <span class="content">{{body_fluid}}</span>
116
+          <span class="unit"></span>
117
+        </li>
118
+        <li v-if="isShow('体液过多其他症状')">
119
+          <label>体液过多其他症状 : </label>
120
+          <span class="content">{{body_fluid_other}}</span>
121
+          <span class="unit"></span>
122
+        </li>
123
+        <li v-if="isShow('透析前使用特殊药物')">
124
+          <label>透析前使用特殊药物: </label>
125
+          <span class="content">{{special_medicine}}</span>
126
+          <span class="unit"></span>
127
+        </li>
128
+        <li v-if="isShow('透析前使用其他特殊药物')">
129
+          <label>透析前使用其他特殊药物: </label>
130
+          <span class="content">{{special_medicine_other}}</span>
131
+          <span class="unit"></span>
168 132
         </li>
169 133
         <li v-if="isShow('置换液')">
170 134
           <label>置换液: </label>
171
-          <span class="content">{{ displace_liqui }}</span>
135
+          <span class="content">{{displace_liqui}}</span>
172 136
           <span class="unit"></span>
173 137
         </li>
174
-        <li v-if="isShow('电导度')">
175
-          <label>电导度 : </label>
176
-          <span class="content">{{
177
-            conductivity != "0" ? conductivity : ""
178
-          }}</span>
179
-          <span class="unit">{{ conductivity != "0" ? "mS/m" : "" }}</span>
138
+        <li v-if="isShow('血管通路')">
139
+          <label>血管通路: </label>
140
+          <span class="content">{{blood_access}}</span>
141
+          <span class="unit"></span>
142
+        </li>
143
+        <li v-if="isShow('实际超滤量')">
144
+          <label>实际超滤量: </label>
145
+          <span class="content">{{ultrafiltration != '0'? ultrafiltration:''}}</span>
146
+          <span class="unit">{{ultrafiltration != '0'?"L":""}}</span>
147
+        </li>
148
+        <li v-if="isShow('目标KT/V')">
149
+          <label>目标KT/V: </label>
150
+          <span class="content">{{target_ktv != '0'? target_ktv:''}}</span>
180 151
         </li>
181 152
       </ul>
182
-      <!-- 3333333333333333333333333333333333333333333333333333 -->
183
-    </div>
184
-    <div class="note">
185
-      备注 : <span>{{ note }}</span>
153
+
154
+
155
+
186 156
     </div>
157
+    <div class="note">备注 : <span>{{note}}</span></div>
187 158
   </div>
188 159
 </template>
189 160
 
190 161
 <script>
191
-import { getDataConfig } from "@/utils/data";
192
-import store from "@/store";
162
+  import {getDataConfig} from '@/utils/data';
163
+  import store from "@/store";
193 164
 
194
-export default {
195
-  name: "DialysisPrescription",
196
-  data() {
197
-    return {
198
-      title: "透析处方",
199
-      perfusion_apparatus_map: {},
200
-      dialysateFormulationMap: {}
201
-    };
202
-  },
203
-  props: {
204
-    prescription: {
205
-      type: Object
206
-    },
207
-    solution: {
208
-      type: Object
209
-    },
210
-    device_number_map: {
211
-      type: Object
212
-    }
213
-  },
214
-  computed: {
215
-    target_ultrafiltration: function() {
216
-      var v = this.getValueStr(
217
-        "target_ultrafiltration",
218
-        "target_ultrafiltration"
219
-      );
220
-      return v.length == 0 ? "0" : v;
221
-    },
222
-    dialysis_mode: function() {
223
-      var mode = this.getValueStr("mode_id", "mode_id");
224
-      if (mode.length == 0) {
225
-        return "";
226
-      }
227
-      if (this.$store.getters.treatment_mode[mode] != undefined) {
228
-        return this.$store.getters.treatment_mode[mode].name;
229
-      }
230
-      return "";
231
-    },
232
-    perfusion_apparatus: function() {
233
-      var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus");
234
-      if (v.length == 0) {
235
-        return "";
236
-      }
237
-      if (this.perfusion_apparatus_map[v] != undefined) {
238
-        return this.perfusion_apparatus_map[v].name;
239
-      }
240
-      return "";
241
-    },
242
-    displace_liqui: function() {
243
-      var v = this.getValueStr("displace_liqui", "displace_liqui");
244
-      return v.length == 0 ? "0" : v;
245
-    },
246
-    anticoagulant_shouji: function() {
247
-      var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji");
248
-      return v.length == 0 ? "0" : v;
249
-    },
250
-    kalium: function() {
251
-      var v = this.getValueStr("kalium", "kalium");
252
-      return v.length == 0 ? "0" : v;
253
-    },
254
-    replacement_total: function() {
255
-      var v = this.getValueStr("replacement_total", "replacement_total");
256
-      return v.length == 0 ? "0" : v;
257
-    },
258
-    bicarbonate: function() {
259
-      var v = this.getValueStr("bicarbonate", "bicarbonate");
260
-      return v.length == 0 ? "0" : v;
261
-    },
262
-    dialysate_flow: function() {
263
-      var v = this.getValueStr("dialysate_flow", "dialysate_flow");
264
-      return v.length == 0 ? "0" : v;
265
-    },
266
-    dialysis_duration: function() {
267
-      var dialysis_duration_hour = this.getValueStr(
268
-        "dialysis_duration_hour",
269
-        "dialysis_duration_hour"
270
-      );
271
-      var dialysis_duration_minute = this.getValueStr(
272
-        "dialysis_duration_minute",
273
-        "dialysis_duration_minute"
274
-      );
275
-      if (
276
-        dialysis_duration_hour.length == 0 &&
277
-        dialysis_duration_minute.length == 0
278
-      ) {
279
-        return "0";
280
-      } else {
281
-        var time =
282
-          dialysis_duration_hour + "h" + dialysis_duration_minute + "min";
283
-        return time.length == 0 ? "0" : time;
284
-      }
285
-    },
286
-    blood_flow_volume: function() {
287
-      var v = this.getValueStr("blood_flow_volume", "blood_flow_volume");
288
-      return v.length == 0 ? "0" : v;
289
-    },
290
-    replacement_way: function() {
291
-      return this.getValueStr("replacement_way", "replacement_way");
292
-    },
293
-    anticoagulant_weichi: function() {
294
-      var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi");
295
-      return v.length == 0 ? "0" : v;
296
-    },
297
-    sodium: function() {
298
-      var v = this.getValueStr("sodium", "sodium");
299
-      return v.length == 0 ? "0" : v;
300
-    },
301
-    glucose: function() {
302
-      var v = this.getValueStr("glucose", "glucose");
303
-      return v.length == 0 ? "0" : v;
304
-    },
305
-    dialysate_temperature: function() {
306
-      var v = this.getValueStr(
307
-        "dialysate_temperature",
308
-        "dialysate_temperature"
309
-      );
310
-      return v.length == 0 ? "0" : v;
311
-    },
312
-    dialyzer: function() {
313
-      var v = this.getValueStr("dialyzer", "hemodialysis_machine");
314
-      if (v.length == 0) {
315
-        return "";
316
-      }
317
-      if (this.device_number_map[v] != undefined) {
318
-        return this.device_number_map[v].name;
319
-      }
320
-      return "";
321
-    },
322
-    dialysate_formulation: function() {
323
-      var v = this.getValueStr(
324
-        "dialysate_formulation",
325
-        "dialysate_formulation"
326
-      );
327
-      if (v.length == 0) {
328
-        return "";
329
-      }
330
-      if (v in this.dialysateFormulationMap) {
331
-        return this.dialysateFormulationMap[v].name;
165
+  export default {
166
+    name: "DialysisPrescription",
167
+    data() {
168
+      return {
169
+        title: "透析处方",
170
+        perfusion_apparatus_map: {},
171
+        dialysateFormulationMap:{},
172
+      };
173
+    },
174
+    props: {
175
+      prescription: {
176
+        type: Object,
177
+      },
178
+      solution: {
179
+        type: Object,
180
+      },
181
+      device_number_map: {
182
+        type: Object,
332 183
       }
333
-      return "";
334
-    },
335
-    prescription_dewatering: function() {
336
-      var v = this.getValueStr("prescription_dewatering", "dewater");
337
-      return v.length == 0 ? "0" : v;
338
-    },
339
-    anticoagulant: function() {
340
-      var v = this.getValueStr("anticoagulant", "anticoagulant");
341
-      if (v.length == 0) {
342
-        return "";
343
-      }
344
-      if (this.$store.getters.anticoagulants_confit[v] != undefined) {
345
-        return this.$store.getters.anticoagulants_confit[v].name;
346
-      }
347
-      return "";
348
-    },
349
-    anticoagulant_zongliang: function() {
350
-      var v = this.getValueStr(
351
-        "anticoagulant_zongliang",
352
-        "anticoagulant_zongliang"
353
-      );
354
-      return v.length == 0 ? "0" : v;
355
-    },
356
-    calcium: function() {
357
-      var v = this.getValueStr("calcium", "calcium");
358
-      return v.length == 0 ? "0" : v;
359 184
     },
185
+    computed: {
186
+      target_ultrafiltration:function(){
187
+        var v = this.getValueStr("target_ultrafiltration", "target_ultrafiltration")
188
+        return v.length == 0 ? "0" : v
189
+      },
190
+      dialysis_mode: function() {
191
+        var mode = this.getValueStr("mode_id", "mode_id")
192
+        if (mode.length == 0) {
193
+          return ""
194
+        }
195
+        if (this.$store.getters.treatment_mode[mode] != undefined) {
196
+          return this.$store.getters.treatment_mode[mode].name
197
+        }
198
+        return ""
199
+      },
200
+      perfusion_apparatus: function() {
201
+        var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
202
+        if (v.length == 0) {
203
+          return ""
204
+        }
205
+        if (this.perfusion_apparatus_map[v] != undefined) {
206
+          return this.perfusion_apparatus_map[v].name
207
+        }
208
+        return ""
209
+      },
210
+      displace_liqui: function() {
211
+        var v = this.getValueStr("displace_liqui", "displace_liqui")
212
+        return v.length == 0 ? "0" : v
213
+      },
214
+      anticoagulant_shouji: function() {
215
+        var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
216
+        return v.length == 0 ? "0" : v
217
+      },
218
+      kalium: function() {
219
+        var v = this.getValueStr("kalium", "kalium")
220
+        return v.length == 0 ? "0" : v
221
+      },
222
+      replacement_total:function(){
223
+        var v = this.getValueStr("replacement_total", "replacement_total")
224
+        return v.length == 0 ? "0" : v
225
+      },
226
+      bicarbonate: function() {
227
+        var v = this.getValueStr("bicarbonate", "bicarbonate")
228
+        return v.length == 0 ? "0" : v
229
+      },
230
+      dialysate_flow: function() {
231
+        var v = this.getValueStr("dialysate_flow", "dialysate_flow")
232
+        return v.length == 0 ? "0" : v
233
+      },
234
+      dialysis_duration: function() {
235
+        var dialysis_duration_hour = (this.getValueStr("dialysis_duration_hour", "dialysis_duration_hour"))
236
+        var dialysis_duration_minute = (this.getValueStr("dialysis_duration_minute", "dialysis_duration_minute"))
237
+        if(dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0){
238
+          return  "0"
239
+        }else{
240
+          var time = dialysis_duration_hour+"h"+dialysis_duration_minute+"min"
241
+          return time.length == 0 ? "0" : time
242
+        }
360 243
 
361
-    conductivity: function() {
362
-      var v = this.getValueStr("conductivity", "conductivity");
363
-      return v.length == 0 ? "0" : v;
364
-    },
365
-    dialyzer_perfusion_apparatus: function() {
366
-      return this.getValueStr(
367
-        "dialyzer_perfusion_apparatus",
368
-        "dialyzer_perfusion_apparatus"
369
-      );
370
-    },
371
-    note: function() {
372
-      return this.getValueStr("remark", "remark");
373
-    },
374
-    body_fluid: function() {
375
-      var id = this.getValueStr("body_fluid", "body_fluid");
376
-      if (id == 0) {
377
-        return "";
378
-      }
379
-      var bodyFluidOptions = this.$store.getters.body_fluid;
380
-      for (let i = 0; i < bodyFluidOptions.length; i++) {
381
-        if (bodyFluidOptions[i].id == id) {
382
-          return bodyFluidOptions[i].name;
244
+      },
245
+      blood_flow_volume: function() {
246
+        var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
247
+        return v.length == 0 ? "0" : v
248
+      },
249
+      replacement_way: function() {
250
+        return this.getValueStr("replacement_way", "replacement_way")
251
+      },
252
+      anticoagulant_weichi: function() {
253
+        var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
254
+        return v.length == 0 ? "0" : v
255
+      },
256
+      sodium: function() {
257
+        var v = this.getValueStr("sodium", "sodium")
258
+        return v.length == 0 ? "0" : v
259
+      },
260
+      glucose: function() {
261
+        var v = this.getValueStr("glucose", "glucose")
262
+        return v.length == 0 ? "0" : v
263
+      },
264
+      dialysate_temperature: function() {
265
+        var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
266
+        return v.length == 0 ? "0" : v
267
+      },
268
+      dialyzer: function() {
269
+        var v = this.getValueStr("dialyzer", "hemodialysis_machine")
270
+        if (v.length == 0) {
271
+          return ""
383 272
         }
384
-      }
385
-    },
386
-    special_medicine: function() {
387
-      var id = this.getValueStr("special_medicine", "special_medicine");
388
-      if (id == 0) {
389
-        return "";
390
-      }
391
-      var special_medicine = this.$store.getters.special_medicine;
392
-      for (let i = 0; i < special_medicine.length; i++) {
393
-        if (special_medicine[i].id == id) {
394
-          return special_medicine[i].name;
273
+        if (this.device_number_map[v] != undefined) {
274
+          return this.device_number_map[v].name
395 275
         }
396
-      }
397
-    },
398
-    special_medicine_other: function() {
399
-      return this.getValueStr(
400
-        "special_medicine_other",
401
-        "special_medicine_other"
402
-      );
403
-    },
404
-    blood_access: function() {
405
-      var id = this.getValueStr("blood_access", "blood_access");
406
-      if (id == 0) {
407
-        return "";
408
-      }
409
-      var blood_access = this.$store.getters.blood_access_internal_fistula;
410
-      for (let i = 0; i < blood_access.length; i++) {
411
-        if (blood_access[i].id == id) {
412
-          return blood_access[i].name;
276
+        return ""
277
+      },
278
+      dialysate_formulation: function(){
279
+        var v = this.getValueStr("dialysate_formulation", "dialysate_formulation")
280
+        if (v.length == 0) {
281
+          return ""
413 282
         }
414
-      }
415
-    },
416
-    displace_liqui: function() {
417
-      var id = this.getValueStr("displace_liqui_part", "displace_liqui_part");
418
-      var displace_liqui_value = this.getValueStr(
419
-        "displace_liqui_value",
420
-        "displace_liqui_value"
421
-      );
422
-      var displace_liqui_part = "";
423
-      var displace_liqui = this.$store.getters.displace_liqui;
424
-      for (let i = 0; i < displace_liqui.length; i++) {
425
-        if (displace_liqui[i].id == id) {
426
-          displace_liqui_part = displace_liqui[i].name;
283
+        if(v in this.dialysateFormulationMap) {
284
+          return  this.dialysateFormulationMap[v].name;
427 285
         }
428
-      }
429
-      return displace_liqui_part + displace_liqui_value + "L";
430
-    },
431
-    ultrafiltration: function() {
432
-      var v = this.getValueStr("ultrafiltration", "ultrafiltration");
433
-      return v.length == 0 ? "0" : v;
434
-    },
435
-    body_fluid_other: function() {
436
-      return this.getValueStr("body_fluid_other", "body_fluid_others");
437
-    },
438
-    target_ktv: function() {
439
-      var v = this.getValueStr("target_ktv", "target_ktv");
440
-      return v.length == 0 ? "0" : v;
441
-    }
442
-  },
443
-  created() {
444
-    var perfusion_apparatus = this.$store.getters.perfusion_apparatus;
445
-    var map = {};
446
-    for (let index = 0; index < perfusion_apparatus.length; index++) {
447
-      const p = perfusion_apparatus[index];
448
-      map[p.id] = p;
449
-    }
450
-    this.perfusion_apparatus_map = map;
286
+        return ""
287
+      },
288
+      prescription_dewatering: function() {
289
+        var v = this.getValueStr("prescription_dewatering", "dewater")
290
+        return v.length == 0 ? "0" : v
291
+      },
292
+      anticoagulant: function() {
293
+        var v = this.getValueStr("anticoagulant", "anticoagulant")
294
+        if (v.length == 0) {
295
+          return ""
296
+        }
297
+        if (this.$store.getters.anticoagulants_confit[v] != undefined) {
298
+          return this.$store.getters.anticoagulants_confit[v].name
299
+        }
300
+        return ""
301
+      },
302
+      anticoagulant_zongliang: function() {
303
+        var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
304
+        return v.length == 0 ? "0" : v
305
+      },
306
+      calcium: function() {
307
+        var v = this.getValueStr("calcium", "calcium")
308
+        return v.length == 0 ? "0" : v
309
+      },
451 310
 
452
-    var dialysateFormulationOptions = getDataConfig(
453
-      "hemodialysis",
454
-      "dialysate_formulation"
455
-    );
456
-    for (var index in dialysateFormulationOptions) {
457
-      this.dialysateFormulationMap[dialysateFormulationOptions[index].id] =
458
-        dialysateFormulationOptions[index];
459
-    }
460
-  },
461
-  methods: {
462
-    getValueStr(pkey, skey) {
463
-      if (
464
-        (this.prescription == null || this.prescription.id == "") &&
465
-        (this.solution == null || this.solution.id == "")
466
-      ) {
467
-        return "";
468
-      } else if (this.prescription != null && this.prescription.id != "") {
469
-        if (
470
-          this.prescription[pkey] == null ||
471
-          this.prescription[pkey] == undefined
472
-        ) {
473
-          return "";
311
+      conductivity: function() {
312
+        var v = this.getValueStr("conductivity", "conductivity")
313
+        return v.length == 0 ? "0" : v
314
+      },
315
+      dialyzer_perfusion_apparatus: function() {
316
+        return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
317
+      },
318
+      note: function() {
319
+        return this.getValueStr("remark", "remark")
320
+      },body_fluid:function () {
321
+        var id =  this.getValueStr("body_fluid", "body_fluid")
322
+        if(id == 0){
323
+          return ""
324
+        }
325
+        var bodyFluidOptions = this.$store.getters.body_fluid;
326
+        for (let i = 0; i <bodyFluidOptions.length; i++){
327
+          if(bodyFluidOptions[i].id == id){
328
+            return bodyFluidOptions[i].name
329
+          }
474 330
         }
475
-        return this.prescription[pkey] + "";
476
-      } else {
477
-        if (this.solution[skey] == null || this.solution[skey] == undefined) {
478
-          return "";
331
+      },special_medicine:function () {
332
+        var id =  this.getValueStr("special_medicine", "special_medicine")
333
+        if(id == 0){
334
+          return ""
479 335
         }
480
-        return this.solution[skey] + "";
336
+        var special_medicine = this.$store.getters.special_medicine;
337
+        for (let i = 0; i <special_medicine.length; i++){
338
+          if(special_medicine[i].id == id){
339
+            return special_medicine[i].name
340
+          }
341
+        }
342
+      },special_medicine_other:function () {
343
+        return this.getValueStr("special_medicine_other", "special_medicine_other")
344
+      },blood_access:function () {
345
+        var id =  this.getValueStr("blood_access", "blood_access")
346
+        if(id == 0){
347
+          return ""
348
+        }
349
+        var blood_access = this.$store.getters.blood_access_internal_fistula;
350
+        for (let i = 0; i <blood_access.length; i++){
351
+          if(blood_access[i].id == id){
352
+            return blood_access[i].name
353
+          }
354
+        }
355
+      },displace_liqui:function () {
356
+        var id =  this.getValueStr("displace_liqui_part", "displace_liqui_part")
357
+        var displace_liqui_value =  this.getValueStr("displace_liqui_value", "displace_liqui_value")
358
+        var displace_liqui_part = ""
359
+        var displace_liqui = this.$store.getters.displace_liqui;
360
+        for (let i = 0; i <displace_liqui.length; i++){
361
+          if(displace_liqui[i].id == id){
362
+            displace_liqui_part = displace_liqui[i].name
363
+          }
364
+        }
365
+        return displace_liqui_part + displace_liqui_value+"L"
366
+
367
+      },ultrafiltration:function () {
368
+        var v = this.getValueStr("ultrafiltration", "ultrafiltration")
369
+        return v.length == 0 ? "0" : v
370
+      },body_fluid_other:function() {
371
+        return this.getValueStr("body_fluid_other", "body_fluid_others")
372
+
373
+      },target_ktv:function () {
374
+        var v = this.getValueStr("target_ktv", "target_ktv")
375
+        return v.length == 0 ? "0" : v
481 376
       }
482 377
     },
483
-    isShow(name) {
484
-      var filedList = store.getters.xt_user.fileds;
485
-      for (let i = 0; i < filedList.length; i++) {
486
-        if (
487
-          filedList[i].module == 1 &&
488
-          filedList[i].filed_name_cn == name &&
489
-          filedList[i].is_show == 1
490
-        ) {
491
-          return true;
378
+    created() {
379
+      var perfusion_apparatus = this.$store.getters.perfusion_apparatus
380
+      var map = {}
381
+      for (let index = 0; index < perfusion_apparatus.length; index++) {
382
+        const p = perfusion_apparatus[index];
383
+        map[p.id] = p
384
+      }
385
+      this.perfusion_apparatus_map = map
386
+
387
+      var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
388
+      for(var index in dialysateFormulationOptions){
389
+        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
390
+      }
391
+    },
392
+    methods: {
393
+      getValueStr(pkey, skey) {
394
+        if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
395
+          return ""
396
+        } else if (this.prescription != null && this.prescription.id != "") {
397
+          if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
398
+            return ""
399
+          }
400
+          return this.prescription[pkey] + ""
401
+        } else {
402
+          if (this.solution[skey] == null || this.solution[skey] == undefined) {
403
+            return ""
404
+          }
405
+          return this.solution[skey] + ""
406
+        }
407
+      },isShow(name){
408
+        var filedList = store.getters.xt_user.fileds
409
+        for (let i = 0; i < filedList.length; i++){
410
+          if(filedList[i].module == 1 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
411
+            return true
412
+          }
492 413
         }
414
+        return false
493 415
       }
494
-      return false;
495 416
     }
496 417
   }
497
-};
498 418
 </script>
499 419
 
500 420
 <style rel="stylesheet/scss" lang="scss" scoped></style>

+ 245 - 252
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -87,273 +87,266 @@ import doubleCheckDialog from './dialog/doubleCheckDialog'
87 87
 import AssessmentAfterDislysis from './dialog/AssessmentAfterDislysis'
88 88
 import acceptsTreatmentDialog from './dialog/acceptsTreatmentDialog'
89 89
 import assessmentBeforeDislysisDialog from './dialog/assessmentBeforeDislysisDialog'
90
-import MonitorDialog from "./dialog/monitor_dialog"
91
-import DoctorAdviceDialog from "./dialog/DoctorAdviceDialog"
92
-import treatmentSummaryDialog from "./dialog/treatmentSummaryDialog"
93
-import ComputerDialog from "./dialog/computer_dialog"
94
-import FinishDialog from "./dialog/finish_dialog"
90
+import MonitorDialog from './dialog/monitor_dialog'
91
+import DoctorAdviceDialog from './dialog/DoctorAdviceDialog'
92
+import treatmentSummaryDialog from './dialog/treatmentSummaryDialog'
93
+import ComputerDialog from './dialog/computer_dialog'
94
+import FinishDialog from './dialog/finish_dialog'
95 95
 
96 96
 export default {
97
-    name: 'NavIgation',
98
-    components: {
99
-        dialysisPrescriptionDialog,
100
-        doubleCheckDialog,
101
-        AssessmentAfterDislysis,
102
-        acceptsTreatmentDialog,
103
-        assessmentBeforeDislysisDialog,
104
-        treatmentSummaryDialog,
105
-        MonitorDialog,
106
-        DoctorAdviceDialog,
107
-        ComputerDialog,
108
-        FinishDialog
109
-    },
110
-    data() {
111
-      return {
97
+  name: 'NavIgation',
98
+  components: {
99
+    dialysisPrescriptionDialog,
100
+    doubleCheckDialog,
101
+    AssessmentAfterDislysis,
102
+    acceptsTreatmentDialog,
103
+    assessmentBeforeDislysisDialog,
104
+    treatmentSummaryDialog,
105
+    MonitorDialog,
106
+    DoctorAdviceDialog,
107
+    ComputerDialog,
108
+    FinishDialog
109
+  },
110
+  data() {
111
+    return {
112 112
 
113
+    }
114
+  },
115
+  props: {
116
+    patient: { // 患者信息
117
+      type: Object,
118
+      default: () => {
119
+        return { id: 0 }
120
+      }
121
+    },
122
+    schedual: { // 患者排班信息
123
+      type: Object,
124
+      default: () => {
125
+        return { id: 0 }
126
+      }
127
+    },
128
+    prescription: { // 透析处方
129
+      type: Object,
130
+      default: () => {
131
+        return { id: 0 }
132
+      }
133
+    },
134
+    solution: { // 透析方案
135
+      type: Object,
136
+      default: () => {
137
+        return { id: 0 }
138
+      }
139
+    },
140
+    receiver_treatment_access: { // 接诊评估
141
+      type: Object,
142
+      default: () => {
143
+        return { id: 0 }
144
+      }
145
+    },
146
+    predialysis_evaluation: { // 透前评估
147
+      type: Object,
148
+      default: () => {
149
+        return { id: 0 }
150
+      }
151
+    },
152
+    doctor_advices: { // 临时医嘱
153
+      type: Array,
154
+      default: () => {
155
+        return []
156
+      }
157
+    },
158
+    double_check: { // 双人核对
159
+      type: Object,
160
+      default: () => {
161
+        return { id: 0 }
162
+      }
163
+    },
164
+    assessment_after_dislysis: { // 透后评估
165
+      type: Object,
166
+      default: () => {
167
+        return { id: 0 }
168
+      }
169
+    },
170
+    treatment_summary: { // 治疗小结
171
+      type: Object,
172
+      default: () => {
173
+        return { id: 0 }
174
+      }
175
+    },
176
+    monitor_records: { // 透析监测
177
+      type: Array,
178
+      default: () => {
179
+        return []
180
+      }
181
+    },
182
+    dialysis_order: { // 透析记录
183
+      type: Object,
184
+      default: () => {
185
+        return { id: 0 }
186
+      }
187
+    },
188
+    admin_users: { // 系统用户列表
189
+      type: Array,
190
+      default: () => {
191
+        return []
192
+      }
193
+    },
194
+    devices: { // 设备
195
+      type: Array,
196
+      default: () => {
197
+        return []
198
+      }
199
+    },
200
+    device_numbers: { // 床位
201
+      type: Array,
202
+      default: () => {
203
+        return []
113 204
       }
114 205
     },
115
-    props: {
116
-      patient: { // 患者信息
117
-        type: Object,
118
-        default: () => {
119
-          return {id: 0}
120
-        }
121
-      },
122
-      schedual: { // 患者排班信息
123
-        type: Object,
124
-        default: () => {
125
-          return {id: 0}
126
-        }
127
-      },
128
-      prescription: { // 透析处方
129
-        type: Object,
130
-        default: () => {
131
-          return {id: 0}
132
-        }
133
-      },
134
-      solution: { // 透析方案
135
-        type: Object,
136
-        default: () => {
137
-          return {id: 0}
138
-        }
139
-      },
140
-      receiver_treatment_access: { // 接诊评估
141
-        type: Object,
142
-        default: () => {
143
-          return {id: 0}
144
-        }
145
-      },
146
-      predialysis_evaluation: { // 透前评估
147
-        type: Object,
148
-        default: () => {
149
-          return {id: 0}
150
-        }
151
-      },
152
-      doctor_advices: { // 临时医嘱
153
-        type: Array,
154
-        default: () => {
155
-          return []
156
-        }
157
-      },
158
-      double_check: { // 双人核对
159
-        type: Object,
160
-        default: () => {
161
-          return {id: 0}
162
-        }
163
-      },
164
-      assessment_after_dislysis: { // 透后评估
165
-        type: Object,
166
-        default: () => {
167
-          return {id: 0}
168
-        }
169
-      },
170
-      treatment_summary: { // 治疗小结
171
-        type: Object,
172
-        default: () => {
173
-          return {id: 0}
174
-        }
175
-      },
176
-      monitor_records: { // 透析监测
177
-        type: Array,
178
-        default: () => {
179
-          return []
180
-        }
181
-      },
182
-      dialysis_order: { // 透析记录
183
-        type: Object,
184
-        default: () => {
185
-          return {id: 0}
186
-        }
187
-      },
188
-      admin_users: { //系统用户列表
189
-        type: Array,
190
-        default: () => {
191
-          return []
192
-        }
193
-      },
194
-      devices: { // 设备
195
-        type: Array,
196
-        default: () => {
197
-          return []
198
-        }
199
-      },
200
-      device_numbers: { // 床位
201
-        type: Array,
202
-        default: () => {
203
-          return []
204
-        }
205
-      },
206
-
207
-
208
-      niprocart_info: {
209
-        type: Array,
210
-        default: () => {
211
-          return []
212
-        }
213
-      },
214
-
215
-      jms_info: {
216
-        type: Array,
217
-        default: () => {
218
-          return []
219
-        }
220
-      },
221
-
222
-
223
-      fistula_needle_set_info: {
224
-        type: Array,
225
-        default: () => {
226
-          return []
227
-        }
228
-      },
229
-
230
-
231
-      fistula_needle_set_16_info: {
232
-        type: Array,
233
-        default: () => {
234
-          return []
235
-        }
236
-      },
237 206
 
207
+    niprocart_info: {
208
+      type: Array,
209
+      default: () => {
210
+        return []
211
+      }
212
+    },
238 213
 
239
-      hemoperfusion_info: {
240
-        type: Array,
241
-        default: () => {
242
-          return []
243
-        }
244
-      },
214
+    jms_info: {
215
+      type: Array,
216
+      default: () => {
217
+        return []
218
+      }
219
+    },
245 220
 
246
-      dialyser_sterilised_info: {
247
-        type: Array,
248
-        default: () => {
249
-          return []
250
-        }
251
-      },
221
+    fistula_needle_set_info: {
222
+      type: Array,
223
+      default: () => {
224
+        return []
225
+      }
226
+    },
252 227
 
253
-      filtryzer_info: {
254
-        type: Array,
255
-        default: () => {
256
-          return []
257
-        }
258
-      },
228
+    fistula_needle_set_16_info: {
229
+      type: Array,
230
+      default: () => {
231
+        return []
232
+      }
233
+    },
259 234
 
260
-      dialyzers_info: {
261
-        type: Array,
262
-        default: () => {
263
-          return []
264
-        }
265
-      },
266
-      injector_info: {
267
-        type: Array,
268
-        default: () => {
269
-          return []
270
-        }
271
-      },
272
-      bloodlines_info: {
273
-        type: Array,
274
-        default: () => {
275
-          return []
276
-        }
277
-      },
278
-      tubingHemodialysis_info: {
279
-        type: Array,
280
-        default: () => {
281
-          return []
282
-        }
283
-      },
284
-      safe_package_info: {
285
-        type: Array,
286
-        default: () => {
287
-          return []
288
-        }
289
-      },
290
-      aliquid_info: {
291
-        type: Array,
292
-        default: () => {
293
-          return []
294
-        }
295
-      },
296
-      config: {
297
-        type: Object,
298
-        default: () => {
299
-          return {id: 0}
300
-        }
301
-      },
235
+    hemoperfusion_info: {
236
+      type: Array,
237
+      default: () => {
238
+        return []
239
+      }
240
+    },
302 241
 
242
+    dialyser_sterilised_info: {
243
+      type: Array,
244
+      default: () => {
245
+        return []
246
+      }
247
+    },
303 248
 
249
+    filtryzer_info: {
250
+      type: Array,
251
+      default: () => {
252
+        return []
253
+      }
254
+    },
304 255
 
256
+    dialyzers_info: {
257
+      type: Array,
258
+      default: () => {
259
+        return []
260
+      }
261
+    },
262
+    injector_info: {
263
+      type: Array,
264
+      default: () => {
265
+        return []
266
+      }
267
+    },
268
+    bloodlines_info: {
269
+      type: Array,
270
+      default: () => {
271
+        return []
272
+      }
273
+    },
274
+    tubingHemodialysis_info: {
275
+      type: Array,
276
+      default: () => {
277
+        return []
278
+      }
279
+    },
280
+    safe_package_info: {
281
+      type: Array,
282
+      default: () => {
283
+        return []
284
+      }
285
+    },
286
+    aliquid_info: {
287
+      type: Array,
288
+      default: () => {
289
+        return []
290
+      }
291
+    },
292
+    config: {
293
+      type: Object,
294
+      default: () => {
295
+        return { id: 0 }
296
+      }
297
+    },
305 298
 
306
-      admin_user_map: { // {user_id: admin_user object}
307
-        type: Object,
308
-        default: () => {
309
-          return {}
310
-        }
311
-      },
312
-      device_map: { // {device_id: device object}
313
-        type: Object,
314
-        default: () => {
315
-          return {}
316
-        }
317
-      },
318
-      device_number_map: { // {device_number_id: device_number object}
319
-        type: Object,
320
-        default: () => {
321
-          return {}
322
-        }
323
-      },
324
-    },
325
-    methods:{
326
-        showMonitorDialog: function() {
327
-            this.$refs.monitor_dialog.show()
328
-        },
329
-        showAssessmentAfterDialog:function(){
330
-            this.$refs.assessment_after_dislysis.show()
331
-        },
332
-        showDoctorAdviceDialog:function(){
333
-            this.$refs.doctor_advice.show();
334
-        },
335
-        showComputerDialog: function() {
336
-            this.$refs.computer_dialog.show()
337
-        },
338
-        showFinishDialog: function() {
339
-            this.$refs.finish_dialog.show()
340
-        },
341
-        showPrescription: function () {
342
-            this.$refs.prescription.show();
343
-        },
344
-        showAccepts:function () {
345
-            this.$refs.accepts.show();
346
-        },
347
-        showAssessmentBefore:function () {
348
-            this.$refs.assessmentBefore.show();
349
-        },
350
-        showDoubleCheck:function () {
351
-            this.$refs.doubleCheck.show();
352
-        },
353
-        showrTeatmentSummary:function () {
354
-            this.$refs.treatmentSummary.show();
355
-        }
299
+    admin_user_map: { // {user_id: admin_user object}
300
+      type: Object,
301
+      default: () => {
302
+        return {}
303
+      }
304
+    },
305
+    device_map: { // {device_id: device object}
306
+      type: Object,
307
+      default: () => {
308
+        return {}
309
+      }
310
+    },
311
+    device_number_map: { // {device_number_id: device_number object}
312
+      type: Object,
313
+      default: () => {
314
+        return {}
315
+      }
316
+    }
317
+  },
318
+  methods: {
319
+    showMonitorDialog: function() {
320
+      this.$refs.monitor_dialog.show()
321
+    },
322
+    showAssessmentAfterDialog: function() {
323
+      this.$refs.assessment_after_dislysis.show()
324
+    },
325
+    showDoctorAdviceDialog: function() {
326
+      this.$refs.doctor_advice.show()
327
+    },
328
+    showComputerDialog: function() {
329
+      this.$refs.computer_dialog.show()
330
+    },
331
+    showFinishDialog: function() {
332
+      this.$refs.finish_dialog.show()
333
+    },
334
+    showPrescription: function() {
335
+      this.$refs.prescription.show()
336
+    },
337
+    showAccepts: function() {
338
+      this.$refs.accepts.show()
339
+    },
340
+    showAssessmentBefore: function() {
341
+      this.$refs.assessmentBefore.show()
342
+    },
343
+    showDoubleCheck: function() {
344
+      this.$refs.doubleCheck.show()
345
+    },
346
+    showrTeatmentSummary: function() {
347
+      this.$refs.treatmentSummary.show()
356 348
     }
349
+  }
357 350
 }
358 351
 </script>
359 352
 <style style="stylesheet/scss" lang="scss" scoped>

+ 284 - 208
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -19,7 +19,7 @@
19 19
           <span class="unit" v-if="actual_ultrafiltration!='0'">ml</span>
20 20
         </li>
21 21
         <li v-if="isShow('凝血')">
22
-          <label>凝血 : </label>
22
+          <label>透析器凝血 : </label>
23 23
           <span class="content">{{ cruor }}</span>
24 24
         </li>
25 25
         <li v-if="isShow('内瘘')">
@@ -92,6 +92,12 @@
92 92
           <span class="content" v-if="pulse_frequency!='0'">{{ pulse_frequency }}</span>
93 93
           <span class="unit" v-if="pulse_frequency!='0'">次/分</span>
94 94
         </li>
95
+        <li v-if="isShow('呼吸频率')">
96
+          <label>呼吸频率 : </label>
97
+          <span class="content" v-if="breathing_rate !='0'">{{ breathing_rate }}</span>
98
+          <span class="unit" v-if="breathing_rate !='0'">次/min</span>
99
+        </li>
100
+
95 101
         <li v-if="isShow('实际治疗时长')">
96 102
           <label>实际治疗时长 : </label>
97 103
           <span class="content" v-if="actual_treatment_hour!='0'">{{ actual_treatment_hour }}时</span>
@@ -181,179 +187,250 @@
181 187
 </template>
182 188
 
183 189
 <script>
184
-  import store from "@/store";
190
+  import store from '@/store'
185 191
 
186
-  export default {
192
+export default {
187 193
   name: 'DialysisPrescription',
188 194
   data() {
189
-    return {
190
-      title: '透后评估 '
191
-    }
195
+      return {
196
+        title: '透后评估 '
197
+      }
192 198
   },
193 199
   props: {
194
-    record: {
195
-      type: Object
196
-    }
200
+      record: {
201
+        type: Object
202
+      }
197 203
   },
198 204
   computed: {
199
-    weight_after: function() {
200
-      if (this.record.id == 0) {
201
-        return '-'
202
-      }
203
-      return this.record.weight_after
204
-    },
205
-    systolic_blood_pressure: function() {
206
-      if (this.record.id == 0) {
207
-        return '-'
205
+      weight_after: function() {
206
+        if (this.record.id == 0) {
207
+          return '-'
208
+        }
209
+        return this.record.weight_after
210
+      },
211
+      systolic_blood_pressure: function() {
212
+        if (this.record.id == 0) {
213
+          return '-'
214
+        }
215
+        return this.record.systolic_blood_pressure
216
+      },
217
+      actual_ultrafiltration: function() {
218
+        if (this.record.id == 0) {
219
+          return '-'
220
+        }
221
+        return this.record.actual_ultrafiltration
222
+      },
223
+      cruor: function() {
224
+        if (this.record.id == 0) {
225
+          return '-'
226
+        }
227
+        return this.record.cruor
228
+      },
229
+      internal_fistula: function() {
230
+        if (this.record == null || this.record.id == '') {
231
+          return '-'
232
+        }
233
+        return this.record.internal_fistula
234
+      },
235
+      weight_loss: function() {
236
+        if (this.record.id == 0) {
237
+          return '-'
238
+        }
239
+        return this.record.weight_loss
240
+      },
241
+      inpatient_department: function() {
242
+        if (this.record.id == 0) {
243
+          return '-'
244
+        }
245
+        return this.record.inpatient_department
246
+      },
247
+      patient_gose: function() {
248
+        if (this.record.id == 0) {
249
+          return 0
250
+        }
251
+        return this.record.patient_gose
252
+      },
253
+      diastolic_blood_pressure: function() {
254
+        if (this.record.id == 0) {
255
+          return '-'
256
+        }
257
+        return this.record.diastolic_blood_pressure
258
+      },
259
+      actual_displacement: function() {
260
+        if (this.record.id == 0) {
261
+          return '-'
262
+        }
263
+        return this.record.actual_displacement
264
+      },
265
+      symptom_after_dialysis: function() {
266
+        if (this.record.id == 0) {
267
+          return '-'
268
+        }
269
+        return this.record.symptom_after_dialysis
270
+      },
271
+      blood_access_part: function() {
272
+        if (this.record.id == 0) {
273
+          return '-'
274
+        }
275
+        const vascular_access = this.$store.getters.vascular_access
276
+        const valen = vascular_access.length
277
+        let name = '-'
278
+
279
+        for (var index in vascular_access) {
280
+          if (vascular_access[index].id == this.record.blood_access_part_id) {
281
+            name = vascular_access[index].name
282
+            break
283
+          }
284
+        }
285
+        return name
286
+      },
287
+      puncture_point_oozing_blood_name: function() {
288
+        if (this.record.id == 0) {
289
+          return '-'
290
+        }
291
+        switch (this.record.puncture_point_oozing_blood) {
292
+          case 1:
293
+            return '有'
294
+            break
295
+          case 2:
296
+            return '无'
297
+            break
298
+
299
+          default:
300
+            return '-'
301
+            break
302
+        }
303
+      }, eat_name: function() {
304
+        if (this.record == null || this.record.id == '') {
305
+          return '-'
306
+        }
307
+        switch (this.record.is_eat) {
308
+          case 1:
309
+            return '有'
310
+            break
311
+          case 2:
312
+            return '无'
313
+            break
314
+
315
+          default:
316
+            return '-'
317
+            break
318
+        }
319
+      },
320
+      patient_gose_name: function() {
321
+        if (this.record.id == 0) {
322
+          return '-'
323
+        }
324
+        switch (this.record.patient_gose) {
325
+          case 1:
326
+            return '离院'
327
+            break
328
+          case 2:
329
+            return '留观'
330
+            break
331
+          case 3:
332
+            return '住院'
333
+            break
334
+
335
+          default:
336
+            return '-'
337
+            break
338
+        }
339
+      },
340
+      blood_access_opera: function() {
341
+        if (this.record.id == 0) {
342
+          return '-'
343
+        }
344
+        const vascular_access = this.$store.getters.vascular_access_desc
345
+        let name = '-'
346
+        for (var index in vascular_access) {
347
+          if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
348
+            name = vascular_access[index].name
349
+            break
350
+          }
351
+        }
352
+        return name
353
+      },
354
+      catheter: function() {
355
+        if (this.record.id == 0) {
356
+          return '-'
357
+        }
358
+        return this.record.catheter
359
+      },
360
+      puncture_point_haematoma_name: function() {
361
+        if (this.record.id == 0)
362
+          {return}
208 363
       }
209
-      return this.record.systolic_blood_pressure
210
-    },
211
-    actual_ultrafiltration: function() {
364
+    }, breathing_rate: function() {
212 365
       if (this.record.id == 0) {
213 366
         return '-'
214 367
       }
215
-      return this.record.actual_ultrafiltration
368
+      return this.record.breathing_rate
216 369
     },
217
-    cruor: function() {
370
+    temperature: function() {
218 371
       if (this.record.id == 0) {
219 372
         return '-'
220 373
       }
221
-      return this.record.cruor
222
-    },
223
-    internal_fistula: function() {
224
-      if (this.record == null || this.record.id == '') {
225
-        return '-'
226
-      }
227
-      return this.record.internal_fistula
374
+      return this.record.temperature
228 375
     },
229
-    weight_loss: function() {
376
+    pulse_frequency: function() {
230 377
       if (this.record.id == 0) {
231 378
         return '-'
232 379
       }
233
-      return this.record.weight_loss
380
+      return this.record.pulse_frequency
234 381
     },
235
-    inpatient_department: function() {
382
+    actual_treatment_hour: function() {
236 383
       if (this.record.id == 0) {
237 384
         return '-'
238 385
       }
239
-      return this.record.inpatient_department
240
-    },
241
-    patient_gose: function() {
242
-      if (this.record.id == 0) {
243
-        return 0
244
-      }
245
-      return this.record.patient_gose
386
+      return this.record.actual_treatment_hour
246 387
     },
247
-    diastolic_blood_pressure: function() {
388
+    actual_treatment_minute: function() {
248 389
       if (this.record.id == 0) {
249 390
         return '-'
250 391
       }
251
-      return this.record.diastolic_blood_pressure
392
+      return this.record.actual_treatment_minute
252 393
     },
253
-    actual_displacement: function() {
394
+    dialysis_intakes_feed: function() {
254 395
       if (this.record.id == 0) {
255 396
         return '-'
256 397
       }
257
-      return this.record.actual_displacement
398
+      return this.record.dialysis_intakes
258 399
     },
259
-    symptom_after_dialysis: function() {
400
+    observation_content_other: function() {
260 401
       if (this.record.id == 0) {
261 402
         return '-'
262 403
       }
263
-      return this.record.symptom_after_dialysis
404
+      return this.record.observation_content_other
264 405
     },
265
-    blood_access_part: function() {
406
+    observation_content: function() {
266 407
       if (this.record.id == 0) {
267 408
         return '-'
268 409
       }
269
-      const vascular_access = this.$store.getters.vascular_access
270
-      const valen = vascular_access.length
271
-      let name = '-'
272
-
273
-      for (var index in vascular_access) {
274
-        if (vascular_access[index].id == this.record.blood_access_part_id) {
275
-          name = vascular_access[index].name
276
-          break
277
-        }
278
-      }
279
-      return name
410
+      return this.record.observation_content
280 411
     },
281
-    puncture_point_oozing_blood_name: function() {
412
+    complication: function() {
282 413
       if (this.record.id == 0) {
283 414
         return '-'
284 415
       }
285
-      switch (this.record.puncture_point_oozing_blood) {
286
-        case 1:
287
-          return '有'
288
-          break
289
-        case 2:
290
-          return '无'
291
-          break
292
-
293
-        default:
294
-          return '-'
295
-          break
296
-      }
297
-    },eat_name:function(){
298
-      if (this.record == null || this.record.id == "") {
299
-        return "-"
300
-      }
301
-      switch (this.record.is_eat) {
302
-        case 1:
303
-          return '有'
304
-          break;
305
-        case 2:
306
-          return '无'
307
-          break
308
-
309
-        default:
310
-          return '-'
311
-          break;
312
-      }
416
+      return this.record.complication
313 417
     },
314
-    patient_gose_name: function() {
418
+    internal_fistula_tremor_ac_name: function() {
315 419
       if (this.record.id == 0) {
316 420
         return '-'
317 421
       }
318
-      switch (this.record.patient_gose) {
422
+      switch (this.record.internal_fistula_tremor_ac) {
319 423
         case 1:
320
-          return '离院'
424
+          return '存在'
321 425
           break
322 426
         case 2:
323
-          return '留观'
427
+          return '减弱'
324 428
           break
325 429
         case 3:
326
-          return '住院'
430
+          return '无'
327 431
           break
328
-
329 432
         default:
330 433
           return '-'
331
-          break
332
-      }
333
-    },
334
-    blood_access_opera: function() {
335
-      if (this.record.id == 0) {
336
-        return '-'
337
-      }
338
-      const vascular_access = this.$store.getters.vascular_access_desc
339
-      let name = '-'
340
-      for (var index in vascular_access) {
341
-        if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
342
-          name = vascular_access[index].name
343
-          break
344
-        }
345
-      }
346
-      return name
347
-    },
348
-    catheter: function() {
349
-      if (this.record.id == 0) {
350
-        return '-'
351
-      }
352
-      return this.record.catheter
353
-    },
354
-    puncture_point_haematoma_name: function() {
355
-      if (this.record.id == 0) {
356
-        return '-'
357 434
       }
358 435
       switch (this.record.puncture_point_haematoma) {
359 436
         case 1:
@@ -440,106 +517,105 @@
440 517
         return ''
441 518
       }
442 519
       return this.record.remark
443
-    },in_advance_minute:function () {
444
-    if (this.record == null || this.record.id == "") {
445
-      return ""
446
-    }
447
-    return this.record.in_advance_minute
448
-  },in_advance_reason:function () {
449
-    if (this.record == null || this.record.id == "") {
450
-      return ""
451
-    }
452
-    return this.record.in_advance_reason + ","+this.record.in_advance_reason_other
453
-  },hemostasis_minute:function () {
454
-    if (this.record == null || this.record.id == "") {
455
-      return ""
456
-    }
520
+    },
521
+    in_advance_minute: function() {
522
+      if (this.record == null || this.record.id == '') {
523
+        return ''
524
+      }
525
+      return this.record.in_advance_minute
526
+    },
527
+    in_advance_reason: function() {
528
+      if (this.record == null || this.record.id == '') {
529
+        return ''
530
+      }
531
+      return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
532
+    },
533
+    hemostasis_minute: function() {
534
+      if (this.record == null || this.record.id == '') {
535
+        return ''
536
+      }
457 537
 
458
-    return this.record.hemostasis_minute
459
-  },in_advance_reason_other:function () {
460
-    if (this.record == null || this.record.id == "") {
461
-      return ""
462
-    }
463
-    return this.record.in_advance_reason_other
464
-  }
465
-  },
538
+      return this.record.hemostasis_minute
539
+    },
540
+    in_advance_reason_other: function() {
541
+      if (this.record == null || this.record.id == '') {
542
+        return ''
543
+      }
544
+      return this.record.in_advance_reason_other
545
+    },
466 546
   methods: {
467
-    getOpera:function (id) {
468
-      var hemostasis_opera = this.$store.getters.hemostasis_opera;
469
-      var hemostasisOperaName = "";
470
-      for (let i = 0; i < hemostasis_opera.length; i++){
471
-        if(hemostasis_opera[i].id == id){
472
-          hemostasisOperaName =    hemostasis_opera[i].name
547
+      getOpera: function(id) {
548
+        var hemostasis_opera = this.$store.getters.hemostasis_opera
549
+        var hemostasisOperaName = ''
550
+        for (let i = 0; i < hemostasis_opera.length; i++) {
551
+          if (hemostasis_opera[i].id == id) {
552
+            hemostasisOperaName = hemostasis_opera[i].name
553
+          }
473 554
         }
474
-      }
475
-      return hemostasisOperaName
476
-
477
-    },getTremorNoise:function (id) {
478
-      var tremor_noise = this.$store.getters.tremor_noise;
479
-      var tremorNoiseName = "";
480
-      for (let i = 0; i < tremor_noise.length; i++){
481
-        if(tremor_noise[i].id == id){
482
-          tremorNoiseName =    tremor_noise[i].name
555
+        return hemostasisOperaName
556
+      }, getTremorNoise: function(id) {
557
+        var tremor_noise = this.$store.getters.tremor_noise
558
+        var tremorNoiseName = ''
559
+        for (let i = 0; i < tremor_noise.length; i++) {
560
+          if (tremor_noise[i].id == id) {
561
+            tremorNoiseName = tremor_noise[i].name
562
+          }
483 563
         }
484
-      }
485
-      return tremorNoiseName
486
-    },getDisequilibriumSyndrome:function (id) {
487
-      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
488
-      var disequilibriumSyndromeName = "";
489
-      for (let i = 0; i < disequilibrium_syndrome.length; i++){
490
-        if(disequilibrium_syndrome[i].id == id){
491
-          disequilibriumSyndromeName =    disequilibrium_syndrome[i].name
564
+        return tremorNoiseName
565
+      }, getDisequilibriumSyndrome: function(id) {
566
+        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
567
+        var disequilibriumSyndromeName = ''
568
+        for (let i = 0; i < disequilibrium_syndrome.length; i++) {
569
+          if (disequilibrium_syndrome[i].id == id) {
570
+            disequilibriumSyndromeName = disequilibrium_syndrome[i].name
571
+          }
492 572
         }
493
-      }
494
-      return disequilibriumSyndromeName
495
-
496
-    },getDisequilibriumSyndromeOptionName:function (id) {
497
-      var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option;
498
-      var disequilibriumSyndromeOptionName = "";
499
-      for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
500
-        if (disequilibrium_syndrome_option[i].id == id) {
501
-          disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
573
+        return disequilibriumSyndromeName
574
+      }, getDisequilibriumSyndromeOptionName: function(id) {
575
+        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
576
+        var disequilibriumSyndromeOptionName = ''
577
+        for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
578
+          if (disequilibrium_syndrome_option[i].id == id) {
579
+            disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
580
+          }
502 581
         }
503
-      }
504
-      return disequilibriumSyndromeOptionName
505
-    },getArterialTubeName:function (id) {
506
-      var arterial_tube = this.$store.getters.arterial_tube;
507
-      var arterialTubeName = "";
508
-      for (let i = 0; i < arterial_tube.length; i++) {
509
-        if (arterial_tube[i].id == id) {
510
-          arterialTubeName = arterial_tube[i].name
582
+        return disequilibriumSyndromeOptionName
583
+      }, getArterialTubeName: function(id) {
584
+        var arterial_tube = this.$store.getters.arterial_tube
585
+        var arterialTubeName = ''
586
+        for (let i = 0; i < arterial_tube.length; i++) {
587
+          if (arterial_tube[i].id == id) {
588
+            arterialTubeName = arterial_tube[i].name
589
+          }
511 590
         }
512
-      }
513
-      return arterialTubeName
514
-
515
-    },getIntravenousTubeName:function (id) {
516
-      var intravenous_tube = this.$store.getters.intravenous_tube;
517
-      var intravenousTubeName = "";
518
-      for (let i = 0; i < intravenous_tube.length; i++) {
519
-        if (intravenous_tube[i].id == id) {
520
-          intravenousTubeName = intravenous_tube[i].name
591
+        return arterialTubeName
592
+      }, getIntravenousTubeName: function(id) {
593
+        var intravenous_tube = this.$store.getters.intravenous_tube
594
+        var intravenousTubeName = ''
595
+        for (let i = 0; i < intravenous_tube.length; i++) {
596
+          if (intravenous_tube[i].id == id) {
597
+            intravenousTubeName = intravenous_tube[i].name
598
+          }
521 599
         }
522
-      }
523
-      return intravenousTubeName
524
-
525
-    },getDialyzer:function (id) {
526
-      var dialyzer = this.$store.getters.dialyzer;
527
-      var dialyzerName = "";
528
-      for (let i = 0; i < dialyzer.length; i++) {
529
-        if (dialyzer[i].id == id) {
530
-          dialyzerName = dialyzer[i].name
600
+        return intravenousTubeName
601
+      }, getDialyzer: function(id) {
602
+        var dialyzer = this.$store.getters.dialyzer
603
+        var dialyzerName = ''
604
+        for (let i = 0; i < dialyzer.length; i++) {
605
+          if (dialyzer[i].id == id) {
606
+            dialyzerName = dialyzer[i].name
607
+          }
531 608
         }
532
-      }
533
-      return dialyzerName
534
-    },isShow(name){
535
-      var filedList = store.getters.xt_user.fileds
536
-      for (let i = 0; i < filedList.length; i++){
537
-        if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
538
-          return true
609
+        return dialyzerName
610
+      }, isShow(name) {
611
+        var filedList = store.getters.xt_user.fileds
612
+        for (let i = 0; i < filedList.length; i++) {
613
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
614
+            return true
615
+          }
539 616
         }
617
+        return false
540 618
       }
541
-      return false
542
-    },
543 619
   }
544 620
 }
545 621
 </script>

+ 5 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue 查看文件

@@ -93,6 +93,11 @@
93 93
           <span class="content">{{getBloodAccessNoise(this.record.blood_access_noise)}}</span>
94 94
         </li>
95 95
 
96
+        <li v-if="isShow('穿刺针')">
97
+          <label>穿刺针 : </label>
98
+          <span class="content">{{this.record.puncture_needle}}</span>
99
+        </li>
100
+
96 101
         <li v-if="isShow('穿刺方式')">
97 102
           <label>穿刺方式 : </label>
98 103
           <span class="content">{{getWay(this.record.puncture_way)}}</span>

+ 21 - 15
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -4,7 +4,7 @@
4 4
       title="透后评估"
5 5
       :visible.sync="isVisibility"
6 6
       width="1010px"
7
-      modal-append-to-body=“false”
7
+      :modal-append-to-body="false"
8 8
     >
9 9
       <el-form ref="form" :model="form" label-width="160px">
10 10
         <!-- <el-row :gutter="20"> -->
@@ -42,6 +42,12 @@
42 42
               <el-input v-model="form.pulse_frequency"></el-input>
43 43
             </el-form-item>
44 44
           </el-col>
45
+
46
+          <el-col :span="8" v-if="isShow('呼吸频率')">
47
+            <el-form-item label="呼吸频率(次/min): " >
48
+              <el-input v-model="form.breathing_rate"></el-input>
49
+            </el-form-item>
50
+          </el-col>
45 51
         <!-- </el-row>
46 52
 
47 53
         <el-row :gutter="20"> -->
@@ -376,9 +382,9 @@
376 382
   import MultiSelectBox from './MultiSelectBox'
377 383
   import { postAssessmentAfterDislysis } from '@/api/dialysis'
378 384
   import { uParseTime } from '@/utils/tools'
379
-  import store from "@/store";
385
+  import store from '@/store'
380 386
 
381
-  export default {
387
+export default {
382 388
     name: 'AssessmentAfterDislysis',
383 389
     props: {
384 390
       assessment_after_dislysis: { // 透后评估
@@ -458,7 +464,7 @@
458 464
           observation_content_other: '',
459 465
           remark: '',
460 466
           dialysis_order_id: 0,
461
-          is_eat:2,
467
+          is_eat: 2,
462 468
           dialysis_process: '',
463 469
           in_advance_minute: '',
464 470
           in_advance_reason: '',
@@ -470,7 +476,8 @@
470 476
           disequilibrium_syndrome_option: '',
471 477
           arterial_tube: '',
472 478
           intravenous_tube: '',
473
-          dialyzer: ''
479
+          dialyzer: '',
480
+          breathing_rate: ''
474 481
 
475 482
         }
476 483
       }
@@ -512,6 +519,9 @@
512 519
           if (this.assessment_after_dislysis['pulse_frequency'] == 0) {
513 520
             this.form['pulse_frequency'] = ''
514 521
           }
522
+          if (this.assessment_after_dislysis['breathing_rate'] == 0) {
523
+            this.form['breathing_rate'] = ''
524
+          }
515 525
           if (this.assessment_after_dislysis['actual_ultrafiltration'] == 0) {
516 526
             this.form['actual_ultrafiltration'] = ''
517 527
           }
@@ -582,8 +592,6 @@
582 592
         data['observation_content_other'] = this.form.observation_content_other
583 593
         data['remark'] = this.form.remark
584 594
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
585
-
586
-
587 595
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
588 596
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0
589 597
         data['in_advance_reason_other'] = this.form.in_advance_reason_other
@@ -599,7 +607,6 @@
599 607
 
600 608
         data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
601 609
 
602
-
603 610
         postAssessmentAfterDislysis(ParamsQuery, data).then(response => {
604 611
           this.loading = false
605 612
           if (response.data.state == 0) {
@@ -735,20 +742,19 @@
735 742
 
736 743
       hide() {
737 744
         this.isVisibility = false
738
-      }, isShow(name){
745
+      }, isShow(name) {
739 746
         var filedList = store.getters.xt_user.fileds
740 747
 
741
-
742
-        for (let i = 0; i < filedList.length; i++){
743
-
744
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
748
+        for (let i = 0; i < filedList.length; i++) {
749
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
745 750
             return true
746 751
           }
747 752
         }
748 753
         return false
749
-      },
754
+      }
750 755
     },
751 756
     created() {
757
+      console.log('this.form', this.form)
752 758
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
753 759
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
754 760
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
@@ -759,7 +765,7 @@
759 765
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
760 766
       this.patientGoseOptions = this.$store.getters.patient_gose
761 767
       this.observationContentOptions = this.$store.getters.observation_content
762
-
768
+  
763 769
       console.log(this.patient)
764 770
 
765 771
       var date = this.$route.query && this.$route.query.date

+ 10 - 9
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -142,7 +142,7 @@
142 142
         <el-row :gutter="20">
143 143
           <el-col :span="8">
144 144
             <el-form-item label="药品规格:">
145
-              <el-input v-model="form.drug_spec" style="width: 40%;"></el-input>
145
+              <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
146 146
               <el-select v-model="form.drug_spec_unit" style="width: 56%;" filterable placeholder="选择">
147 147
                 <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
148 148
                 </el-option>
@@ -746,7 +746,7 @@ export default {
746 746
           advice_date: this.record_date,
747 747
           start_time: uParseTime(
748 748
             this.currentRow.start_time,
749
-            '{y}-{m}-{d} {h}:{i}:{s}'
749
+            '{y}-{m}-{d} {h}:{i}'
750 750
           ),
751 751
           advice_name: '',
752 752
           drug_spec: '',
@@ -783,7 +783,7 @@ export default {
783 783
           advice_date: this.record_date,
784 784
           start_time: uParseTime(
785 785
             this.currentRow.start_time,
786
-            '{y}-{m}-{d} {h}:{i}:{s}'
786
+            '{y}-{m}-{d} {h}:{i}'
787 787
           ),
788 788
           advice_name: '',
789 789
           drug_spec: '',
@@ -820,7 +820,7 @@ export default {
820 820
           ),
821 821
           start_time: uParseTime(
822 822
             row.start_time,
823
-            '{y}-{m}-{d} {h}:{i}:{s}'
823
+            '{y}-{m}-{d} {h}:{i}'
824 824
           ),
825 825
           advice_name: row.advice_name,
826 826
           drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
@@ -1269,21 +1269,22 @@ export default {
1269 1269
         let tempSingleDoseDesc = ''
1270 1270
         const tempDrugSpecDesc = ''
1271 1271
         let tempPrescribingNumberDesc = ''
1272
+        let tempDrugDesc = ''
1273
+
1274
+
1272 1275
 
1273 1276
         if (row.single_dose) {
1274 1277
           tempSingleDoseDesc = ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1275 1278
         }
1276
-        // if(row.drug_spec){
1277
-        //   tempDrugSpecDesc = "  "+row.drug_spec + "" + row.drug_spec_unit
1278
-        // }
1279
+
1279 1280
         if (row.prescribing_number) {
1280 1281
           tempPrescribingNumberDesc = '*' + row.prescribing_number + '' + row.prescribing_number_unit
1281 1282
         }
1282 1283
 
1283 1284
         if (isChild == 1) { // 不是子药
1284
-          return row.advice_name + row.advice_desc + tempDrugSpecDesc + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1285
+          return row.advice_name + row.advice_desc + row.drug_spec_unit + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1285 1286
         } else { // 是子药
1286
-          return row.advice_name + row.advice_desc + tempDrugSpecDesc + tempPrescribingNumberDesc + tempSingleDoseDesc
1287
+          return row.advice_name + row.advice_desc + row.drug_spec_unit +  tempPrescribingNumberDesc + tempSingleDoseDesc
1287 1288
         }
1288 1289
       }
1289 1290
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <el-dialog title="接诊评估"
3
-             modal-append-to-body=“false”
3
+             :modal-append-to-body= "false"
4 4
              :visible.sync="isVisibility"
5 5
             width="854px">
6 6
     <el-form :model="receiveTreatmentAsses" label-width="80px">

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

@@ -91,11 +91,17 @@
91 91
               ></el-table-column>
92 92
 
93 93
               <el-table-column
94
-                label="规格"
95
-                property="advice_desc"
94
+                label="药品规格"
96 95
                 align="center"
97 96
 
98
-              ></el-table-column>
97
+              >
98
+                <template slot-scope="scope">
99
+                  <span
100
+                    v-if="scope.row.advice_desc"
101
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
102
+                </template>
103
+
104
+              </el-table-column>
99 105
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
100 106
                 <template slot-scope="scope">
101 107
                   <span
@@ -194,10 +200,16 @@
194 200
               align="center"
195 201
             ></el-table-column>
196 202
             <el-table-column
197
-              label="规格"
198
-              property="advice_desc"
203
+              label="药品规格"
199 204
               align="center"
200
-            ></el-table-column>
205
+            >
206
+              <template slot-scope="scope">
207
+                  <span
208
+                    v-if="scope.row.advice_desc"
209
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
210
+              </template>
211
+
212
+            </el-table-column>
201 213
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
202 214
               <template slot-scope="scope">
203 215
                   <span
@@ -285,12 +297,12 @@
285 297
             </el-form-item>
286 298
           </el-col>
287 299
           <el-col :span="12">
288
-            <el-form-item label="规格 :" prop="advice_desc">
289
-              <el-input v-model="nameForm.advice_desc"></el-input>
290
-            </el-form-item>
291
-            <!-- <el-form-item label="药品规格 :" prop="drug_spec">
300
+            <!--<el-form-item label="规格 :" prop="advice_desc">-->
301
+              <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
302
+            <!--</el-form-item>-->
303
+           <el-form-item label="药品规格 :" prop="advice_desc">
292 304
               <el-col :span="8">
293
-                <el-input v-model="nameForm.drug_spec"></el-input>
305
+                <el-input v-model="nameForm.advice_desc"></el-input>
294 306
               </el-col>
295 307
               <el-col class="line" :span="2">&nbsp;</el-col>
296 308
               <el-col :span="14">
@@ -309,7 +321,7 @@
309 321
                   ></el-option>
310 322
                 </el-select>
311 323
               </el-col>
312
-            </el-form-item> -->
324
+            </el-form-item>
313 325
           </el-col>
314 326
         </el-row>
315 327
         <el-row>

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

@@ -90,11 +90,17 @@
90 90
                 style="word-break: keep-all;white-space:nowrap;"
91 91
               ></el-table-column>
92 92
               <el-table-column
93
-                label="规格"
93
+                label="药品规格"
94 94
                 property="advice_desc"
95 95
                 align="center"
96 96
 
97
-              ></el-table-column>
97
+              >
98
+                <template slot-scope="scope">
99
+                  <span
100
+                    v-if="scope.row.advice_desc"
101
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
102
+                </template>
103
+              </el-table-column>
98 104
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
99 105
                 <template slot-scope="scope">
100 106
                   <span
@@ -188,8 +194,14 @@
188 194
               label="规格"
189 195
               align="center"
190 196
 
191
-              property="advice_desc"
192
-            ></el-table-column>
197
+            >
198
+              <template slot-scope="scope">
199
+                  <span
200
+                    v-if="scope.row.advice_desc"
201
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
202
+              </template>
203
+
204
+            </el-table-column>
193 205
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
194 206
               <template slot-scope="scope">
195 207
                   <span
@@ -277,12 +289,12 @@
277 289
             </el-form-item>
278 290
           </el-col>
279 291
           <el-col :span="12">
280
-            <el-form-item label="规格 :" prop="advice_desc">
281
-              <el-input v-model="nameForm.advice_desc"></el-input>
282
-            </el-form-item>
283
-            <!-- <el-form-item label="药品规格 :" prop="drug_spec">
292
+            <!--<el-form-item label="规格 :" prop="advice_desc">-->
293
+              <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
294
+            <!--</el-form-item>-->
295
+            <el-form-item label="药品规格 :" prop="advice_desc">
284 296
               <el-col :span="8">
285
-                <el-input v-model="nameForm.drug_spec"></el-input>
297
+                <el-input v-model="nameForm.advice_desc"></el-input>
286 298
               </el-col>
287 299
               <el-col class="line" :span="2">&nbsp;</el-col>
288 300
               <el-col :span="14">
@@ -301,7 +313,7 @@
301 313
                   ></el-option>
302 314
                 </el-select>
303 315
               </el-col>
304
-            </el-form-item> -->
316
+            </el-form-item>
305 317
           </el-col>
306 318
         </el-row>
307 319
         <el-row>

+ 39 - 28
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -3,7 +3,7 @@
3 3
     title="透前评估"
4 4
     :visible.sync="isVisibility"
5 5
     width="1010px"
6
-    modal-append-to-body=“false”
6
+    :modal-append-to-body="false"
7 7
   >
8 8
 
9 9
     <!--<check-box-dialog-->
@@ -161,6 +161,12 @@
161 161
             <el-input v-model="assessmentBeforeDislysis.complication" @focus="showInnerDialog('5')"></el-input>
162 162
           </el-form-item>
163 163
         </el-col>
164
+
165
+        <el-col :span="8">
166
+          <el-form-item label="穿刺针: " v-if="isShow('穿刺针')">
167
+            <el-input v-model="assessmentBeforeDislysis.puncture_needle" @focus="showInnerDialog('11')"></el-input>
168
+          </el-form-item>
169
+        </el-col>
164 170
         <el-col :span="8">
165 171
           <el-form-item label="前次透析后:" v-if="isShow('前次透析后')">
166 172
             <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
@@ -402,9 +408,9 @@
402 408
   import multiSelectBox from './MultiSelectBox'
403 409
   import { getDataConfig } from '@/utils/data'
404 410
   import { postAssessmentBeforeDislysis } from '@/api/dialysis'
405
-  import store from "@/store";
411
+  import store from '@/store'
406 412
 
407
-  import { uParseTime } from '@/utils/tools'
413
+import { uParseTime } from '@/utils/tools'
408 414
 
409 415
 export default {
410 416
     components: {
@@ -420,7 +426,7 @@ export default {
420 426
         last_dialysis_after: [],
421 427
         dialysis_interphase: [],
422 428
         symptom_before_dialysis: [],
423
-        blood_access_noise:[],
429
+        blood_access_noise: [],
424 430
         catheter: [],
425 431
         complication: [],
426 432
         hemorrhage: [],
@@ -428,9 +434,10 @@ export default {
428 434
         blood_access_part_opera: [],
429 435
         internal_fistula: [],
430 436
         internal_fistula_skin: [],
431
-        puncture_method:[],
437
+        puncture_method: [],
432 438
         isVisibiltyForCruorDialog: false,
433 439
         assessmentBeforeDislysis: {
440
+          puncture_needle: '',
434 441
           catheter_bend: '',
435 442
           internal_fistula_skin: '',
436 443
           weight_before: '',
@@ -452,12 +459,12 @@ export default {
452 459
           is_hemorrhage: '',
453 460
           hemorrhage: '',
454 461
           hemorrhage_other: '',
455
-          puncture_method:'',
456
-          breathing_rate:'',
462
+          puncture_method: '',
463
+          breathing_rate: '',
457 464
           dialysis_count: '',
458 465
           emergency_treatment: '',
459 466
           emergency_treatment_other: '',
460
-          ductus_arantii_other:'',
467
+          ductus_arantii_other: '',
461 468
           ductus_arantii: '',
462 469
           venous_catheterization_part_other: '',
463 470
           venous_catheterization_part: '',
@@ -466,11 +473,11 @@ export default {
466 473
           blood_access_noise: '',
467 474
           internal_fistula_other: '',
468 475
           blood_access_internal_fistula: '',
469
-          is_infect:'',
470
-          exposed:'',
471
-          skin:'',
472
-          skin_other:'',
473
-          infect_other:'',
476
+          is_infect: '',
477
+          exposed: '',
478
+          skin: '',
479
+          skin_other: '',
480
+          infect_other: ''
474 481
         },
475 482
         // InnerDialogProps: {
476 483
         //   checkedCities: [],
@@ -509,11 +516,11 @@ export default {
509 516
       }
510 517
     },
511 518
     methods: {
512
-      isShow(name){
519
+      isShow(name) {
513 520
         var filedList = store.getters.xt_user.fileds
514
-        for (let i = 0; i < filedList.length; i++){
515
-          if(filedList[i].module == 3 &&filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
516
-              return true
521
+        for (let i = 0; i < filedList.length; i++) {
522
+          if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
523
+            return true
517 524
           }
518 525
         }
519 526
         return false
@@ -611,12 +618,20 @@ export default {
611 618
 
612 619
             break
613 620
           case '10': //
614
-            this.InnerDialogProps.values =  this.$store.getters.ductus_arantii
621
+            this.InnerDialogProps.values = this.$store.getters.ductus_arantii
615 622
             this.InnerDialogProps.titles = '中心静脉导管'
616 623
             this.InnerDialogProps.type = 'ductus_arantii'
617 624
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
618 625
             this.InnerDialogProps.isShowTextArea = false
619 626
 
627
+            break
628
+          case '11': //
629
+            this.InnerDialogProps.values = this.$store.getters.puncture_needle
630
+            this.InnerDialogProps.titles = '穿刺针'
631
+            this.InnerDialogProps.type = 'puncture_needle'
632
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
633
+            this.InnerDialogProps.isShowTextArea = false
634
+
620 635
             break
621 636
         }
622 637
       }, innerDialogComfirm: function(val) {
@@ -656,14 +671,15 @@ export default {
656 671
           case 'ductus_arantii':
657 672
             this.assessmentBeforeDislysis.ductus_arantii = val.value.join(',')
658 673
             break
659
-
660
-
661
-
674
+          case 'puncture_needle':
675
+            this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
676
+            break
662 677
         }
663 678
       }, innerDialogCancle: function() {
664 679
         this.InnerDialogProps.visibility = false
665 680
       }, handleComfirm: function() {
666 681
         const ParamsQuery = this.assessmentBeforeDislysis
682
+        console.log('paramsquery是什么', ParamsQuery)
667 683
         ParamsQuery['patient'] = this.patient.id
668 684
         ParamsQuery['record_date'] = this.record_date
669 685
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
@@ -679,8 +695,10 @@ export default {
679 695
             })
680 696
 
681 697
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
698
+
682 699
             // prop
683 700
             var predialysis_evaluation = this.predialysis_evaluation
701
+            console.log('predialysis_evalution是什么', predialysis_evaluation)
684 702
             for (var index in assessment_before_dislysis_resp) {
685 703
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
686 704
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
@@ -708,10 +726,6 @@ export default {
708 726
       this.blood_access_noise = this.$store.getters.blood_access_noise
709 727
       var date = this.$route.query && this.$route.query.date
710 728
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
711
-
712
-
713
-
714
-
715 729
     }, watch: {
716 730
       isVisibility(val) {
717 731
 
@@ -735,8 +749,6 @@ export default {
735 749
             this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
736 750
           }
737 751
 
738
-
739
-
740 752
           if (this.predialysis_evaluation['is_infect'] == 0) {
741 753
             this.assessmentBeforeDislysis['is_infect'] = ''
742 754
           } else {
@@ -772,7 +784,6 @@ export default {
772 784
           //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
773 785
           // }
774 786
 
775
-
776 787
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
777 788
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
778 789
           }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/computer_dialog.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <el-dialog title="透析上机" :visible.sync="visible" width="854px" modal-append-to-body=“false”>
3
+    <el-dialog title="透析上机" :visible.sync="visible" width="854px" :modal-append-to-body="false">
4 4
       <el-form :model="form" label-width="80px">
5 5
         <el-form-item label="上机床位">
6 6
           <el-select v-model="form.bed_id" placeholder="" :disabled="dialysis_order.id != 0">

+ 19 - 23
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -3,7 +3,7 @@
3 3
     title="透析处方"
4 4
     :visible.sync="isVisibility"
5 5
     width="1010px"
6
-    modal-append-to-body=“false”
6
+    :modal-append-to-body="false"
7 7
     :append-to-body="true"
8 8
   >
9 9
     <el-form ref="dialysisPrescription" :model="dialysisPrescription" label-width="148px">
@@ -198,7 +198,7 @@
198 198
         <el-row :gutter="20" > -->
199 199
 
200 200
         <el-col :span="8" v-if="isShows('体液过多其他症状')">
201
-          <el-form-item label="其他体液过多症状">
201
+          <el-form-item label="体液过多其他症状">
202 202
             <el-input v-model="dialysisPrescription.body_fluid_other"></el-input>
203 203
           </el-form-item>
204 204
         </el-col>
@@ -245,8 +245,8 @@
245 245
         </el-col>
246 246
 
247 247
 
248
-        <el-col :span="8" v-if="isShows('血管通路(内瘘)')">
249
-          <el-form-item label="血管通路(内瘘):">
248
+        <el-col :span="8" v-if="isShows('血管通路')">
249
+          <el-form-item label="血管通路:">
250 250
             <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
251 251
               <el-option :key="0" label="请选择" :value="0"></el-option>
252 252
 
@@ -480,7 +480,6 @@
480 480
         }
481 481
       },
482 482
 
483
-
484 483
       fistula_needle_set_info: {
485 484
         type: Array,
486 485
         default: () => {
@@ -488,7 +487,6 @@
488 487
         }
489 488
       },
490 489
 
491
-
492 490
       fistula_needle_set_16_info: {
493 491
         type: Array,
494 492
         default: () => {
@@ -496,7 +494,6 @@
496 494
         }
497 495
       },
498 496
 
499
-
500 497
       hemoperfusion_info: {
501 498
         type: Array,
502 499
         default: () => {
@@ -557,7 +554,7 @@
557 554
       config: {
558 555
         type: Object,
559 556
         default: () => {
560
-          return {id: 0}
557
+          return { id: 0 }
561 558
         }
562 559
       },
563 560
 
@@ -658,20 +655,20 @@
658 655
           ultrafiltration: '',
659 656
           blood_access: '',
660 657
 
661
-          niprocart:'',
662
-          jms:'',
663
-          fistula_needle_set:'',
664
-          fistula_needle_set_16:'',
665
-          hemoperfusion:'',
666
-          dialyser_sterilised:'',
667
-          filtryzer:'',
668
-          target_ktv:'',
669
-          dialyzers:'',
670
-          injector:'',
671
-          bloodlines:'',
672
-          tubing_hemodialysis:'',
673
-          package:'',
674
-          a_liquid:'',
658
+          niprocart: '',
659
+          jms: '',
660
+          fistula_needle_set: '',
661
+          fistula_needle_set_16: '',
662
+          hemoperfusion: '',
663
+          dialyser_sterilised: '',
664
+          filtryzer: '',
665
+          target_ktv: '',
666
+          dialyzers: '',
667
+          injector: '',
668
+          bloodlines: '',
669
+          tubing_hemodialysis: '',
670
+          package: '',
671
+          a_liquid: ''
675 672
         },
676 673
 
677 674
         anticoagulant: {
@@ -969,7 +966,6 @@
969 966
             if (this.prescription['target_ktv'] == 0) {
970 967
               this.dialysisPrescription['target_ktv'] = ''
971 968
             }
972
-
973 969
           } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
974 970
             for (const key in this.solution) {
975 971
               this.dialysisPrescription[key] = this.solution[key]

+ 1 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <el-dialog title="双人核对"
3 3
              :visible.sync="isVisibility"
4
-             modal-append-to-body=“false”
4
+             :modal-append-to-body="false"
5 5
              width="854px">
6 6
 
7 7
     <el-form :inline="true" class="demo-form-inline" :model="doubleReview" label-width="110px">

+ 2 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div>
3
-        <el-dialog title="透析下机" :visible.sync="visible" width="854px" modal-append-to-body=“false” >
3
+        <el-dialog title="透析下机" :visible.sync="visible" width="854px" :modal-append-to-body="false" >
4 4
             <div class="txsj">
5 5
             </div>
6 6
             <el-form :model="form" label-width="80px">
@@ -45,6 +45,7 @@ export default {
45 45
 
46 46
             patient_id: 0,
47 47
             schedule_date: 0,
48
+            start_time: '',
48 49
 
49 50
             form: {
50 51
                 nurse_id: 0,

+ 9 - 9
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="dialog_box">
3
-    <el-dialog title="透析监测" :visible.sync="visible" width="1100px" @close="reset" modal-append-to-body=“false”>
3
+    <el-dialog title="透析监测" :visible.sync="visible" width="1100px" @close="reset" :modal-append-to-body="false">
4 4
       <div v-show="edit == false">
5 5
         <div class="txsj">
6 6
           <el-button round @click="newRecordAction">新增监测</el-button>
@@ -304,9 +304,9 @@
304 304
   import { parseTime } from '@/utils'
305 305
   import { getDataConfig } from '@/utils/data'
306 306
   import { editMonitor, postDelMonitorInfo } from '@/api/dialysis_record'
307
-  import store from "@/store";
307
+  import store from '@/store'
308 308
 
309
-  export default {
309
+export default {
310 310
     name: 'MonitorDialog',
311 311
     data() {
312 312
       return {
@@ -340,8 +340,8 @@
340 340
           dialysate_temperature: '', // 透析液温度
341 341
           replacement_rate: '', // 置换率
342 342
           displacement_quantity: '', // 置换量
343
-          conductivity:'', //电导度
344
-          displacement_flow_quantity:'',//置换液流量
343
+          conductivity: '', // 电导度
344
+          displacement_flow_quantity: '', // 置换液流量
345 345
           ktv: '', // KT/V
346 346
           symptom: '', // 病情变化
347 347
           dispose: '', // 处理
@@ -379,10 +379,10 @@
379 379
       this.form.operate_time = (new Date()).getTime()
380 380
     },
381 381
     methods: {
382
-      isShow(name){
382
+      isShow(name) {
383 383
         var filedList = store.getters.xt_user.fileds
384
-        for (let i = 0; i < filedList.length; i++){
385
-          if(filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
384
+        for (let i = 0; i < filedList.length; i++) {
385
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
386 386
             return true
387 387
           }
388 388
         }
@@ -447,7 +447,7 @@
447 447
           this.form.displacement_quantity = ''
448 448
           this.form.conductivity = ''
449 449
           this.form.displacement_flow_quantity = ''
450
-            this.form.ktv = ''
450
+          this.form.ktv = ''
451 451
           this.form.symptom = ''
452 452
           this.form.dispose = ''
453 453
           this.form.result = ''

+ 64 - 76
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

@@ -3,7 +3,7 @@
3 3
     title="治疗小结"
4 4
     width="854px"
5 5
     :visible.sync="isVisibility"
6
-    modal-append-to-body=“false”
6
+    :modal-append-to-body="false"
7 7
   >
8 8
     <el-form :model="treatmentSummary">
9 9
       <el-row :gutter="20">
@@ -39,139 +39,127 @@
39 39
 </template>
40 40
 
41 41
 <script>
42
-  import {getDataConfig} from "@/utils/data";
43
-  import {postTreatmentsummary} from "@/api/dialysis";
44
-  import {uParseTime} from "@/utils/tools";
42
+  import { getDataConfig } from '@/utils/data'
43
+import { postTreatmentsummary } from '@/api/dialysis'
44
+import { uParseTime } from '@/utils/tools'
45 45
 
46
-
47
-
48
-  export default {
49
-    name: "treatmentSummaryDialog",
46
+export default {
47
+    name: 'treatmentSummaryDialog',
50 48
 
51 49
     props: {
52
-      treatment_summary : { // 治疗小结
50
+      treatment_summary: { // 治疗小结
53 51
         type: Object,
54 52
         default: () => {
55
-          return {id: 0}
53
+          return { id: 0 }
56 54
         }
57 55
       }, patient: { // 患者信息
58 56
         type: Object,
59 57
         default: () => {
60
-          return {id: 0}
58
+          return { id: 0 }
61 59
         }
62
-      },
60
+      }
63 61
 
64 62
     },
65 63
     data() {
66 64
       return {
67
-        value:'',
68
-        value2:'',
69
-
70
-        isVisibility:false,
71
-        record_date:'',
72
-        education:[],
73
-        summary:[],
74
-        treatmentSummary:{
75
-          mission: "",
76
-          dialysis_summary: "",
77
-          sj_nurse: "",
78
-          zl_nurse: "",
79
-          hd_nurse: "",
80
-          xj_nurse: "",
81
-          zl_doctor: ""
82
-        },
83
-      };
84
-    },
85
-    methods:{
65
+        value: '',
66
+        value2: '',
67
+
68
+        isVisibility: false,
69
+        record_date: '',
70
+        education: [],
71
+        summary: [],
72
+        treatmentSummary: {
73
+          mission: '',
74
+          dialysis_summary: '',
75
+          sj_nurse: '',
76
+          zl_nurse: '',
77
+          hd_nurse: '',
78
+          xj_nurse: '',
79
+          zl_doctor: ''
80
+        }
81
+      }
82
+  },
83
+    methods: {
86 84
       show() {
87
-        this.isVisibility = true;
85
+        this.isVisibility = true
88 86
       },
89 87
       hide() {
90
-        this.isVisibility = false;
88
+        this.isVisibility = false
91 89
       },
92
-      dialysisAfterTeachSelectChange: function (values) {
93
-
94
-        if (this.treatmentSummary.mission == "") {
90
+      dialysisAfterTeachSelectChange: function(values) {
91
+        if (this.treatmentSummary.mission == '') {
95 92
           this.treatmentSummary.mission = values
96 93
         } else {
97 94
           if (this.treatmentSummary.mission.indexOf(values) == -1) {
98 95
             if (this.treatmentSummary.mission.charAt(this.treatmentSummary.mission.length - 1).indexOf('。') == -1) {
99
-              this.treatmentSummary.mission = this.treatmentSummary.mission + "," + values
100
-
96
+              this.treatmentSummary.mission = this.treatmentSummary.mission + ',' + values
101 97
             } else {
102 98
               this.treatmentSummary.mission = this.treatmentSummary.mission + values
103
-
104 99
             }
105 100
           }
106 101
         }
107
-      },  dialysisSummarySelectChange: function (values) {
108
-        if (this.treatmentSummary.dialysis_summary == "") {
102
+      }, dialysisSummarySelectChange: function(values) {
103
+        if (this.treatmentSummary.dialysis_summary == '') {
109 104
           this.treatmentSummary.dialysis_summary = values
110 105
         } else {
111 106
           if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
112 107
             if (this.treatmentSummary.dialysis_summary.charAt(this.treatmentSummary.dialysis_summary.length - 1).indexOf('。') == -1) {
113
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
114
-
108
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
115 109
             } else {
116
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
110
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
117 111
               this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + values
118
-
119 112
             }
120 113
           }
121 114
         }
122
-
123
-      },handleCancle:function () {
124
-        this.isVisibility = false;
125
-
126
-      },handleComfirm:function () {
127
-        let ParamsQuery = this.treatmentSummary;
128
-        ParamsQuery["patient"] = this.patient.id;
129
-        ParamsQuery["record_date"] = this.record_date;
115
+      }, handleCancle: function() {
116
+        this.isVisibility = false
117
+      }, handleComfirm: function() {
118
+        const ParamsQuery = this.treatmentSummary
119
+        ParamsQuery['patient'] = this.patient.id
120
+        ParamsQuery['record_date'] = this.record_date
130 121
         postTreatmentsummary(ParamsQuery).then(response => {
131 122
           if (response.data.state == 0) {
132
-            this.$message.error(response.data.msg);
133
-            return false;
123
+            this.$message.error(response.data.msg)
124
+            return false
134 125
           } else {
135 126
             this.$notify({
136
-              title: "成功",
137
-              message: "提交成功",
138
-              type: "success",
127
+              title: '成功',
128
+              message: '提交成功',
129
+              type: 'success',
139 130
               duration: 2000
140
-            });
131
+            })
141 132
 
142
-            let summary_resp = response.data.data.summary;
143
-            //prop
144
-            var treatment_summary = this.treatment_summary;
145
-            for( var index in summary_resp) {
133
+            const summary_resp = response.data.data.summary
134
+            // prop
135
+            var treatment_summary = this.treatment_summary
136
+            for (var index in summary_resp) {
146 137
               // treatment_summary[index] = summary_resp[index];
147 138
               this.$set(treatment_summary, index, summary_resp[index])
148 139
             }
149 140
 
150 141
             this.hide()
151 142
           }
152
-        });
153
-
154
-
143
+        })
155 144
       }
156
-    },watch: {
145
+    }, watch: {
157 146
       isVisibility(val) {
158 147
 
159 148
       },
160
-      "treatment_summary.id": function () {
149
+      'treatment_summary.id': function() {
161 150
         if (this.treatment_summary.id > 0) {
162 151
           for (var index in this.treatmentSummary) {
163
-            this.treatmentSummary[index] = this.treatment_summary[index];
152
+            this.treatmentSummary[index] = this.treatment_summary[index]
164 153
           }
165 154
         }
166
-      },
155
+      }
167 156
     }, created() {
168
-      this.education  = getDataConfig('education','education')
169
-      this.summary  = getDataConfig('summary','summary')
170
-
157
+      this.education = getDataConfig('education', 'education')
158
+      this.summary = getDataConfig('summary', 'summary')
171 159
 
172
-      var date = this.$route.query && this.$route.query.date;
173
-      this.record_date = uParseTime(date, '{y}-{m}-{d}');
174
-    },
160
+      var date = this.$route.query && this.$route.query.date
161
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
162
+  }
175 163
   }
176 164
 </script>
177 165
 

+ 17 - 17
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -50,34 +50,34 @@
50 50
 </template>
51 51
 
52 52
 <script>
53
-  import store from "@/store";
53
+  import store from '@/store'
54 54
 
55
-  import { parseTime } from '@/utils'
55
+import { parseTime } from '@/utils'
56 56
 
57 57
 export default {
58 58
   name: 'statOrder',
59 59
   data() {
60
-    return {
61
-      title: '透析监测 '
62
-    }
60
+      return {
61
+        title: '透析监测 '
62
+      }
63 63
   },
64 64
   props: {
65
-    monitores: {
66
-      type: Array
67
-    }
65
+      monitores: {
66
+        type: Array
67
+      }
68 68
   },
69 69
   methods: {
70
-    parseTime(time, layout) {
71
-      return parseTime(time, layout)
72
-    },isShow(name){
73
-      var filedList = store.getters.xt_user.fileds
74
-      for (let i = 0; i < filedList.length; i++){
75
-        if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
76
-          return true
70
+      parseTime(time, layout) {
71
+        return parseTime(time, layout)
72
+      }, isShow(name) {
73
+        var filedList = store.getters.xt_user.fileds
74
+        for (let i = 0; i < filedList.length; i++) {
75
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
76
+            return true
77
+          }
77 78
         }
79
+        return false
78 80
       }
79
-      return false
80
-    },
81 81
   }
82 82
 }
83 83
 </script>

+ 17 - 21
src/xt_pages/dialysis/details/index.vue 查看文件

@@ -305,20 +305,20 @@
305 305
         device_map: {}, // {device_id: device}
306 306
         device_number_map: {}, // {device_number_id: device_number}
307 307
 
308
-        niprocart_info:[],
309
-        jms_info:[],
310
-        fistula_needle_set_info:[],
311
-        fistula_needle_set_16_info:[],
312
-        hemoperfusion_info:[],
313
-        dialyser_sterilised_info:[],
314
-        filtryzer_info:[],
315
-        dialyzers_info:[],
316
-        injector_info:[],
317
-        bloodlines_info:[],
318
-        tubingHemodialysis_info:[],
319
-        safe_package_info:[],
320
-        aliquid_info:[],
321
-        config:{},
308
+        niprocart_info: [],
309
+        jms_info: [],
310
+        fistula_needle_set_info: [],
311
+        fistula_needle_set_16_info: [],
312
+        hemoperfusion_info: [],
313
+        dialyser_sterilised_info: [],
314
+        filtryzer_info: [],
315
+        dialyzers_info: [],
316
+        injector_info: [],
317
+        bloodlines_info: [],
318
+        tubingHemodialysis_info: [],
319
+        safe_package_info: [],
320
+        aliquid_info: [],
321
+        config: {}
322 322
       }
323 323
     },
324 324
     created() {
@@ -364,7 +364,6 @@
364 364
         var mrl = this.monitor_records.length
365 365
         for (let index = 0; index < mrl; index++) {
366 366
           if (this.monitor_records[index].id == record_id) {
367
-
368 367
             this.monitor_records.splice(index, 1)
369 368
             break
370 369
           }
@@ -377,11 +376,14 @@
377 376
           var resp = rs.data
378 377
           if (resp.state == 1) {
379 378
             var patient = resp.data.patient // 患者信息
379
+            console.log('patient是史森明', patient)
380 380
             var schedual = resp.data.schedual // 患者排班信息
381 381
             var prescription = resp.data.prescription // 透析处方
382
+            console.log('prescription', prescription)
382 383
             var solution = resp.data.solution // 透析方案
383 384
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
384 385
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
386
+            console.log('predialysis_evaluation', predialysis_evaluation)
385 387
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
386 388
             var double_check = resp.data.double_check // 双人核对
387 389
             var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
@@ -389,7 +391,6 @@
389 391
             var monitor_records = resp.data.monitor_records // 透析监测
390 392
             var dialysis_order = resp.data.dialysis_order // 透析记录
391 393
 
392
-
393 394
             var niprocart_info = resp.data.niprocart_info
394 395
             var jms_info = resp.data.jms_info
395 396
             var fistula_needle_set_info = resp.data.fistula_needle_set_info
@@ -406,8 +407,6 @@
406 407
 
407 408
             var config = resp.data.config
408 409
 
409
-
410
-
411 410
             this.niprocart_info = niprocart_info
412 411
             this.jms_info = jms_info
413 412
             this.fistula_needle_set_info = fistula_needle_set_info
@@ -423,8 +422,6 @@
423 422
             this.aliquid_info = aliquid_info
424 423
             this.config = config
425 424
 
426
-
427
-
428 425
             this.patient = patient
429 426
             this.schedual = schedual == null ? { id: 0 } : schedual
430 427
             this.prescription = prescription == null ? { id: 0 } : prescription
@@ -447,7 +444,6 @@
447 444
             this.dialysis_order =
448 445
               dialysis_order == null ? { id: 0 } : dialysis_order
449 446
 
450
-
451 447
             // this.$refs.stat_order.setAdvices(this.doctor_advices)
452 448
             // this.$refs.monitoring.setRecords(this.monitor_records)
453 449
 

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

@@ -21,7 +21,7 @@
21 21
           <span v-if="advice.parent_id>0">&nbsp;&nbsp;&nbsp;&nbsp;</span>
22 22
           <span >&nbsp;{{advice.advice_name }}</span>
23 23
           <span >{{advice.advice_desc}}</span>
24
-          <!-- <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span> -->
24
+           <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
25 25
           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
26 26
           <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
27 27
           <span >{{advice.delivery_way}}</span>

文件差異過大導致無法顯示
+ 1061 - 1239
src/xt_pages/dialysis/dialysisPage.vue


+ 16 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -25,6 +25,10 @@
25 25
           <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisTwoPage" type="primary">打印医嘱单</el-button>
26 26
         </div>
27 27
       </template>
28
+      <template  v-if="org_template_info.template_id == 6">
29
+        <el-button  :loading="loading" size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印</el-button>
30
+      </template>
31
+      
28 32
     </div>
29 33
     <div class="app-container ">
30 34
       <!--<div class="order-print-btn"-->
@@ -47,6 +51,8 @@
47 51
 
48 52
       <DialysisPrintOrderFive v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 5 "> </DialysisPrintOrderFive>
49 53
 
54
+      <DialysisPrintOrderSix v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 6 "> </DialysisPrintOrderSix>
55
+
50 56
 
51 57
     </div>
52 58
   </div>
@@ -63,6 +69,7 @@
63 69
   import DialysisPrintOrderThree from './template/dialysisPrintOrderThree'
64 70
   import DialysisPrintOrderFour from './template/DialysisPrintOrderFour'
65 71
   import DialysisPrintOrderFive from './template/DialysisPrintOrderFive'
72
+  import DialysisPrintOrderSix from './template/DialysisPrintOrderSix'
66 73
   import print from 'print-js'
67 74
 
68 75
   export default {
@@ -73,6 +80,7 @@
73 80
       DialysisPrintOrderThree,
74 81
       DialysisPrintOrderFour,
75 82
       DialysisPrintOrderFive,
83
+      DialysisPrintOrderSix,
76 84
       LabelBox,
77 85
       BreadCrumb
78 86
     },
@@ -227,6 +235,14 @@
227 235
             scanStyles: false
228 236
           })
229 237
         }
238
+        else if (this.org_template_info.template_id == 6 ) {
239
+          printJS({
240
+            printable: 'dialysis-print-box-1',
241
+            type: 'html',
242
+            style: style2,
243
+            scanStyles: false
244
+          })
245
+        }
230 246
       },printThisOnePage() {
231 247
         var ptime = Math.round(new Date().getTime() / 1000)
232 248
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')

+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue 查看文件

@@ -907,7 +907,7 @@
907 907
                   <div>
908 908
                     <span>{{child.advice_name }}</span>
909 909
                     <span>{{child.advice_desc}}</span>
910
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
910
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
911 911
                     <span
912 912
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
913 913
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -974,7 +974,7 @@
974 974
                   <div>
975 975
                     <span>{{child.advice_name }}</span>
976 976
                     <span>{{child.advice_desc}}</span>
977
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
977
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
978 978
                     <span
979 979
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
980 980
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -1085,7 +1085,7 @@
1085 1085
   import print from 'print-js'
1086 1086
 
1087 1087
   export default {
1088
-    name: 'dialysisPrintOrder',
1088
+    name: 'dialysisPrintOrderFour',
1089 1089
     components: {
1090 1090
       // DialysisPrintOrderOne,
1091 1091
       // DialysisPrintOrderTwo,

+ 5 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue 查看文件

@@ -836,7 +836,7 @@
836 836
               <td class="advice-name">
837 837
                 <span v-if="advice[0].parent_id>0">└</span>
838 838
                 <span>{{advice[0].advice_name }}</span>
839
-                <span>{{advice[0].advice_desc}}{{advice[0].drug_spec_unit}}</span>
839
+                <span v-if="advice[0].advice_desc">{{advice[0].advice_desc}}{{advice[0].drug_spec_unit}}</span>
840 840
                 <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
841 841
                 <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
842 842
                 <span
@@ -847,8 +847,8 @@
847 847
                   <div>▲</div>
848 848
                   <div>
849 849
                     <span>{{child.advice_name }}</span>
850
-                    <span>{{child.advice_desc}}</span>
851
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
850
+
851
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
852 852
                     <span
853 853
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
854 854
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -915,7 +915,7 @@
915 915
                   <div>
916 916
                     <span>{{child.advice_name }}</span>
917 917
                     <span>{{child.advice_desc}}</span>
918
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
918
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
919 919
                     <span
920 920
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
921 921
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -1026,7 +1026,7 @@
1026 1026
   import print from 'print-js'
1027 1027
 
1028 1028
   export default {
1029
-    name: 'dialysisPrintOrder',
1029
+    name: 'dialysisPrintOrderOne',
1030 1030
     components: {
1031 1031
       // DialysisPrintOrderOne,
1032 1032
       // DialysisPrintOrderTwo,

文件差異過大導致無法顯示
+ 1386 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue


+ 3 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue 查看文件

@@ -882,7 +882,7 @@
882 882
                   <div>
883 883
                     <span>{{child.advice_name }}</span>
884 884
                     <span>{{child.advice_desc}}</span>
885
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
885
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
886 886
                     <span
887 887
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
888 888
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -949,7 +949,7 @@
949 949
                   <div>
950 950
                     <span>{{child.advice_name }}</span>
951 951
                     <span>{{child.advice_desc}}</span>
952
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
952
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
953 953
                     <span
954 954
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
955 955
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -1072,7 +1072,7 @@
1072 1072
   import print from 'print-js'
1073 1073
 
1074 1074
   export default {
1075
-    name: 'dialysisPrintOrder',
1075
+    name: 'dialysisPrintOrderThree',
1076 1076
     components: {
1077 1077
       // DialysisPrintOrderOne,
1078 1078
       // DialysisPrintOrderTwo,

+ 1 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderFive.vue 查看文件

@@ -1110,7 +1110,7 @@
1110 1110
   import print from 'print-js'
1111 1111
 
1112 1112
   export default {
1113
-    name: 'dialysisPrintOrder',
1113
+    name: 'dialysisPrintOrderFive',
1114 1114
     props: ['childResponse'],
1115 1115
     components: {
1116 1116
       // DialysisPrintOrderOne,

+ 1 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue 查看文件

@@ -1024,7 +1024,7 @@
1024 1024
   import print from 'print-js'
1025 1025
 
1026 1026
   export default {
1027
-    name: 'dialysisPrintOrder',
1027
+    name: 'dialysisPrintOrderTwo',
1028 1028
     props: ['childResponse'],
1029 1029
     components: {
1030 1030
       // DialysisPrintOrderOne,

+ 72 - 18
src/xt_pages/sign/index.vue 查看文件

@@ -31,9 +31,10 @@
31 31
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
32 32
                         <template slot-scope="scope">
33 33
                             <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
34
-                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">透析中</span>
35
-                            <span v-else-if="scope.row.signin.id ==0">未签到</span>
34
+                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">已上机</span>
35
+                            <span v-else-if="scope.row.predialysisevaluation.id ==0">未签到</span>
36 36
                             <span v-else>已签到</span>
37
+
37 38
                         </template>
38 39
                     </el-table-column>
39 40
                 </el-table>
@@ -89,7 +90,7 @@
89 90
                     <el-row :gutter="20">
90 91
                         <el-col :span="23" align="right" class="button">
91 92
                             <el-button  @click="hide()">取消</el-button>
92
-                            <el-button @click="updateSignweight();sighdata();" type="primary">保存</el-button>
93
+                            <el-button @click="updateSignweight();" type="primary">保存</el-button>
93 94
                         </el-col>
94 95
                     </el-row>
95 96
                    </div>
@@ -101,7 +102,7 @@
101 102
 </template>
102 103
 
103 104
 <script>
104
-import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata } from '@/api/signandweigh'
105
+import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata, getForenoonData } from '@/api/signandweigh'
105 106
 import BreadCrumb from '../components/bread-crumb'
106 107
 export default {
107 108
   name: 'sign',
@@ -220,27 +221,61 @@ export default {
220 221
           this.querySignParams.date_time = response.data.data.today
221 222
           if (this.queryParams.need_schedule_type === 1) {
222 223
             var sl = this.schedules.length
223
-            console.log('s1是什么东西')
224
+            var panel = response.data.data.panel
225
+            console.log('panel是什么', panel)
226
+            console.log('s1是什么东西', sl)
224 227
             console.log(sl)
225 228
             for (let index = 0; index < sl; index++) {
226 229
               if (this.schedules[index].type in response.data.data.panel) {
227 230
                 console.log(this.schedules[index].type)
228 231
                 console.log(response.data.data.panel[this.schedules[index].type].schedule)
229 232
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
230
-                this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
231
-                this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
232
-                this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
233
+                // this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
234
+                // console.log('sign是什么', this.schedules[index].sign)
235
+                // this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
236
+                // this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
233 237
               }
234 238
             }
239
+
240
+            for (let index = 0; index < this.patients.length; index++) {
241
+              var sl = this.schedules.length
242
+              for (let j = 0; j < sl; j++) {
243
+                console.log('这个是是呢是什么', this.schedules[j].type)
244
+                console.log('这个是什么', this.patients[index].schedule.schedule_type)
245
+                if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
246
+                  if (this.patients[index].predialysisevaluation.id !== 0) {
247
+                    this.schedules[j].sign++
248
+                  }
249
+                }
250
+              }
251
+            }
252
+
253
+            // if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
254
+            //   var sl = this.schedules.length
255
+            //   for (let j = 0; j < sl; j++) {
256
+            //     if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
257
+            //       if ((signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) || (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)) {
258
+            //         this.schedules[j].sign++
259
+            //       }
260
+            //       if (signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) {
261
+            //         this.schedules[j].before++
262
+            //       }
263
+            //       if (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0) {
264
+            //         this.schedules[j].after++
265
+            //       }
266
+            //     }
267
+            //   }
268
+            // }
235 269
           }
236 270
         }
237 271
       })
238 272
     },
239 273
     getPatientSign() {
240 274
       getPatientSign(this.querySignParams).then(response => {
241
-        if (response.data.state == 1) {
275
+        if (response.data.state === 1) {
242 276
           if (response.data.data.sign != null) {
243 277
             var sign = response.data.data.sign
278
+            console.log('sign是什么', sign)
244 279
             this.weigh_form.dry_weight = sign.dry_weight
245 280
             this.weigh_form.clothes_weight = sign.clothes_weight
246 281
             // 透前
@@ -331,7 +366,7 @@ export default {
331 366
       getDialysisAfterInfomation(id).then(response => {
332 367
         if (response.data.data.patientinfor != null) {
333 368
           var patientinfor = response.data.data.patientinfor
334
-          console.log(patientinfor)
369
+          console.log('patientInfor', patientinfor)
335 370
           this.weigh_infor.dry_weight = patientinfor.dry_weight
336 371
           if (this.weigh_infor.dry_weight === 0) {
337 372
             this.weigh_infor.dry_weight = ''
@@ -372,6 +407,7 @@ export default {
372 407
     },
373 408
 
374 409
     updateSignweight() {
410
+      // eslint-disable-next-line no-new-object
375 411
       var params = new Object()
376 412
       var data_time = this.querySignParams.date_time
377 413
       params.date_time = data_time
@@ -392,10 +428,13 @@ export default {
392 428
 
393 429
       updateSignweight(params).then(response => {
394 430
         if (response.data.state === 1) {
395
-          this.$message({
396
-            type: 'success',
397
-            message: '成功!'
398
-          })
431
+          var signs = response.data.data.signs
432
+          console.log('signs是什么', signs)
433
+          this.$message.success('成功')
434
+          // this.$message({
435
+          //   type: 'success',
436
+          //   message: '成功!'
437
+          // })
399 438
         }
400 439
       })
401 440
       console.log('params数据', params)
@@ -408,6 +447,7 @@ export default {
408 447
       // 透前数据
409 448
       var params = new Object()
410 449
       var data_time = this.querySignParams.date_time
450
+      console.log('data_time', data_time)
411 451
       params.date_time = data_time
412 452
       params.patient_id = this.weigh_form.patient_id
413 453
       params.dry_weight = this.weigh_list.dry_weight
@@ -429,15 +469,19 @@ export default {
429 469
         var signs = response.data.data.signs
430 470
         console.log('signs是什么?', signs)
431 471
         if (response.data.state === 1) {
432
-          this.$message({
433
-            type: 'success',
434
-            message: '成功!'
435
-          })
472
+          // this.$message({
473
+          //   type: 'success',
474
+          //   message: '成功!'
475
+          // })
436 476
           var tlen = this.patients.length
437 477
 
438 478
           for (let index = 0; index < tlen; index++) {
439 479
             if (this.patients[index].id === params.patient_id) {
440 480
               var signin = this.patients[index].signin
481
+              console.log('signin是什么', signin)
482
+              var sings = response.data.data.signs
483
+              console.log('signs', signs)
484
+
441 485
               this.patients[index].signin = response.data.data.signs
442 486
 
443 487
               if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
@@ -465,7 +509,16 @@ export default {
465 509
           return false
466 510
         }
467 511
       })
512
+    },
513
+    getForenoonData() {
514
+      getForenoonData().then(response => {
515
+        if (response.data.state === 1) {
516
+          var total = response.data.data.total
517
+          console.log('total', total)
518
+        }
519
+      })
468 520
     }
521
+
469 522
   },
470 523
   watch: {
471 524
     'weigh_form.weigh_before': function() {
@@ -522,6 +575,7 @@ export default {
522 575
     this.queryParams.schedule_type = -1
523 576
     this.queryParams.need_schedule_type = 1
524 577
     this.fetchSignPatients()
578
+    this.getForenoonData()
525 579
   }
526 580
 }
527 581
 </script>

+ 158 - 34
src/xt_pages/user/components/EditGroupAdvice.vue 查看文件

@@ -4,8 +4,8 @@
4 4
       <el-form ref="groupForm" :rules="groupRules" :model="groupForm" label-width="90px">
5 5
         <el-row>
6 6
           <el-col :span="12">
7
-            <el-form-item label="医嘱类型 :" required prop="advice_type">
8
-              <el-select v-model="groupForm.advice_type" placeholder="请选择">
7
+            <el-form-item label="医嘱类型 :" >
8
+              <el-select v-model="groupForm.advice_type" placeholder="请选择" disabled>
9 9
                 <el-option
10 10
                   :label="item.label"
11 11
                   :key="item.value"
@@ -19,14 +19,17 @@
19 19
             <el-form-item label="开始时间 :" required prop="start_time">
20 20
               <el-date-picker
21 21
                 type="datetime"
22
-                format="yyyy-MM-dd HH:mm:ss"
23
-                value-format="yyyy-MM-dd HH:mm:ss"
22
+                format="yyyy-MM-dd HH:mm"
23
+                value-format="yyyy-MM-dd HH:mm"
24 24
                 placeholder="选择时间"
25 25
                 v-model="groupForm.start_time"
26 26
               ></el-date-picker>
27 27
             </el-form-item>
28 28
           </el-col>
29 29
         </el-row>
30
+
31
+
32
+
30 33
         <el-row>
31 34
           <el-col :span="12">
32 35
             <el-form-item label="开嘱医生 :">
@@ -41,14 +44,15 @@
41 44
         </el-row>
42 45
         <el-row style="margin-bottom: 20px">
43 46
           <el-col :span="2">&nbsp;</el-col>
44
-          <el-col :span="5">
45
-            <el-button
46
-              :disabled="$store.getters.xt_user.subscibe.state==3?true:false"
47
-              @click="openAdviceTemplate()"
48
-              round
49
-            >选择医嘱模板
50
-            </el-button>
51
-          </el-col>
47
+          <!--<el-col :span="5">-->
48
+            <!--<el-button-->
49
+              <!--:disabled="$store.getters.xt_user.subscibe.state==3?true:false"-->
50
+              <!--@click="openAdviceTemplate()"-->
51
+              <!--round-->
52
+              <!---->
53
+            <!--&gt;选择医嘱模板-->
54
+            <!--</el-button>-->
55
+          <!--</el-col>-->
52 56
 
53 57
           <el-col :span="5">
54 58
             <el-button
@@ -99,19 +103,14 @@
99 103
                 style="word-break: keep-all;white-space:nowrap;"
100 104
               ></el-table-column>
101 105
               <el-table-column
102
-                label="规格"
106
+                label="药品规格"
103 107
                 property="advice_desc"
104
-              ></el-table-column>
105
-              <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
108
+              >
106 109
                 <template slot-scope="scope">
107
-                  <span
108
-                    v-if="scope.row.drug_spec!=0"
109
-                  >{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
110
-                  <span
111
-                    v-if="scope.row.prescribing_number!=0"
112
-                  >*{{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}</span>
110
+                  <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
113 111
                 </template>
114
-              </el-table-column> -->
112
+              </el-table-column>
113
+
115 114
               <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
116 115
                 <template slot-scope="scope">
117 116
                   <span
@@ -141,6 +140,16 @@
141 140
                   <span v-if="scope.row.parent_row==0">{{scope.row.execution_frequency}}</span>
142 141
                 </template>
143 142
               </el-table-column>
143
+
144
+
145
+              <el-table-column label="提醒频率" min-width="80" property="execution_frequency" align="center">
146
+                <template slot-scope="scope">
147
+                  <span v-if="scope.row.frequency_type == 1">每次必推</span>
148
+                  <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
149
+                  <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_day}}</span>
150
+                </template>
151
+              </el-table-column>
152
+
144 153
             </el-table>
145 154
           </el-col>
146 155
         </el-row>
@@ -189,9 +198,14 @@
189 198
               style="word-break: keep-all;white-space:nowrap;"
190 199
             ></el-table-column>
191 200
             <el-table-column
192
-              label="规格"
201
+              label="药品规格"
193 202
               property="advice_desc"
194
-            ></el-table-column>
203
+            >
204
+              <template slot-scope="scope">
205
+                <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
206
+              </template>
207
+
208
+            </el-table-column>
195 209
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
196 210
               <template slot-scope="scope">
197 211
                   <span
@@ -279,12 +293,12 @@
279 293
           </el-col>
280 294
           <el-col :span="12">
281 295
 
282
-            <el-form-item label="规格 :" prop="advice_desc">
283
-              <el-input v-model="nameForm.advice_desc"></el-input>
284
-            </el-form-item>
285
-            <!-- <el-form-item label="药品规格 :" prop="drug_spec">
296
+            <!--<el-form-item label="规格 :" prop="advice_desc">-->
297
+              <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
298
+            <!--</el-form-item>-->
299
+             <el-form-item label="药品规格 :" prop="advice_desc">
286 300
               <el-col :span="8">
287
-                <el-input v-model="nameForm.drug_spec"></el-input>
301
+                <el-input v-model="nameForm.advice_desc"></el-input>
288 302
               </el-col>
289 303
               <el-col class="line" :span="2">&nbsp;</el-col>
290 304
               <el-col :span="14">
@@ -303,7 +317,7 @@
303 317
                   ></el-option>
304 318
                 </el-select>
305 319
               </el-col>
306
-            </el-form-item> -->
320
+            </el-form-item>
307 321
           </el-col>
308 322
         </el-row>
309 323
         <el-row>
@@ -397,6 +411,42 @@
397 411
               </el-select>
398 412
             </el-form-item>
399 413
           </el-col>
414
+
415
+
416
+          <el-col :span="24" v-if="groupForm.advice_type == 1&&!isChild">
417
+            <el-form-item label="周期提醒 :">
418
+              <el-radio-group v-model="nameForm.frequency_type">
419
+                <el-radio :label="1">每次必推</el-radio>
420
+                <el-radio :label="2">天数频率</el-radio>
421
+                <el-radio :label="3">星期频率</el-radio>
422
+              </el-radio-group>
423
+            </el-form-item>
424
+          </el-col>
425
+
426
+
427
+          <el-col :span="12" v-if="nameForm.frequency_type == 2">
428
+            <el-form-item prop="day_count">
429
+              <el-input style="width: 50px" v-model="nameForm.day_count"></el-input>&nbsp;
430
+              天/一次
431
+            </el-form-item>
432
+          </el-col>
433
+
434
+          <el-col :span="24" v-if="nameForm.frequency_type == 3">
435
+            <el-form-item prop="weekday">
436
+              <el-checkbox-group v-model="weeks">
437
+                <el-checkbox label="周一" name="type"></el-checkbox>
438
+                <el-checkbox label="周二" name="type"></el-checkbox>
439
+                <el-checkbox label="周三" name="type"></el-checkbox>
440
+                <el-checkbox label="周四" name="type"></el-checkbox>
441
+                <el-checkbox label="周五" name="type"></el-checkbox>
442
+                <el-checkbox label="周六" name="type"></el-checkbox>
443
+                <el-checkbox label="周日" name="type"></el-checkbox>
444
+              </el-checkbox-group>
445
+            </el-form-item>
446
+          </el-col>
447
+
448
+
449
+
400 450
         </el-row>
401 451
       </el-form>
402 452
       <div slot="footer" class="dialog-footer">
@@ -430,6 +480,7 @@
430 480
     name: 'EditGroupAdvice',
431 481
     data() {
432 482
       return {
483
+        weeks:[],
433 484
         editRowKey: 0,
434 485
         templateFormVisible: false,
435 486
         oldTemplateFormVisible: false,
@@ -463,7 +514,7 @@
463 514
           prescribing_number: "",
464 515
           prescribing_number_unit: "",
465 516
           delivery_way: "",
466
-          execution_frequency: "",
517
+          execution_frequency: 0,
467 518
           isEdit: 0,
468 519
           index: 0,
469 520
           id: 0,
@@ -495,6 +546,17 @@
495 546
           return []
496 547
         }
497 548
       },
549
+      weekList: [
550
+        { id: 1, name: '周一' },
551
+        { id: 2, name: '周二' },
552
+        { id: 3, name: '周三' },
553
+        { id: 4, name: '周四' },
554
+        { id: 5, name: '周五' },
555
+        { id: 6, name: '周六' },
556
+        { id: 7, name: '周日' }
557
+
558
+      ],
559
+      weekday:[],
498 560
       groupFormVisible: false,
499 561
       groupForm: {
500 562
         advice_type: "",
@@ -504,6 +566,10 @@
504 566
         advice_doctor: "",
505 567
         remark: "",
506 568
         parent_id: 0,
569
+        remind:0,
570
+        frequency_type:0,
571
+        day_count:'',
572
+
507 573
       },
508 574
       adviceTypeOptions: {
509 575
         type: Array,
@@ -643,7 +709,6 @@
643 709
                 start_time: _this.groupForm.start_time,
644 710
                 advice_name: _this.nameForm.advice_name,
645 711
                 advice_desc: _this.nameForm.advice_desc,
646
-
647 712
                 single_dose: '' + _this.nameForm.single_dose,
648 713
                 single_dose_unit: _this.nameForm.single_dose_unit,
649 714
                 drug_spec: '' + _this.nameForm.drug_spec,
@@ -658,7 +723,13 @@
658 723
                 remark: _this.groupForm.remark,
659 724
                 parent_id: _this.groupSelectRow.parent_id,
660 725
                 groupno: _this.groupForm.groupno,
726
+                frequency_type: _this.nameForm.frequency_type,
727
+                day_count:_this.nameForm.day_count.toString(),
728
+                week_days:this.weeks.filter(function(s) {
729
+                  return s && s.trim()
730
+                }).join(','),
661 731
               };
732
+              console.log( _this.adviceTableData)
662 733
               EditDoctorAdvice(this.patientID, this.groupSelectRow.id, submitForm).then(response => {
663 734
                 if (response.data.state == 0) {
664 735
                   this.$message.error(response.data.msg);
@@ -687,6 +758,11 @@
687 758
                       _this.adviceTableData[index].execution_frequency = advice.execution_frequency;
688 759
                       _this.adviceTableData[index].prescribing_number = advice.prescribing_number;
689 760
                       _this.adviceTableData[index].prescribing_number_unit = advice.prescribing_number_unit;
761
+
762
+                      _this.adviceTableData[index].frequency_type = advice.frequency_type;
763
+                      _this.adviceTableData[index].day_count = advice.day_count;
764
+                      _this.adviceTableData[index].week_day = advice.week_day;
765
+
690 766
                       break;
691 767
                     }
692 768
                   }
@@ -715,6 +791,7 @@
715 791
                       }
716 792
                     }
717 793
                   } else {
794
+
718 795
                     for (let index = 0; index < ale; index++) {
719 796
                       if (_this.groupSelectRow.row_key == _this.groupForm.adviceNames[index].row_key) {
720 797
                         _this.groupForm.adviceNames[index].advice_name = _this.nameForm.advice_name;
@@ -728,6 +805,11 @@
728 805
                         _this.groupForm.adviceNames[index].delivery_way = _this.nameForm.delivery_way;
729 806
                         _this.groupForm.adviceNames[index].execution_frequency = _this.nameForm.execution_frequency;
730 807
 
808
+
809
+                        _this.groupForm.adviceNames[index].frequency_type = _this.nameForm.frequency_type;
810
+                        _this.groupForm.adviceNames[index].day_count = _this.nameForm.day_count;
811
+                        _this.groupForm.adviceNames[index].week_day = _this.weeks.join(",");
812
+                          console.log(_this.weeks)
731 813
                         _this.$set(_this.groupForm.adviceNames, index, _this.groupForm.adviceNames[index]);
732 814
                         break;
733 815
                       }
@@ -735,6 +817,7 @@
735 817
                   }
736 818
                 }
737 819
               });
820
+              // this.weeks = []
738 821
 
739 822
             } else {
740 823
               if (_this.isChild) {
@@ -808,6 +891,9 @@
808 891
                 });
809 892
 
810 893
               } else {
894
+                _this.nameForm.week_days= this.weeks.filter(function(s) {
895
+                  return s && s.trim()
896
+                }).join(',')
811 897
                 _this.submitGroupForm = {
812 898
                   advice_type: _this.groupForm.advice_type,
813 899
                   advice_date: _this.groupForm.advice_date,
@@ -824,6 +910,12 @@
824 910
                       prescribing_number_unit: _this.nameForm.prescribing_number_unit,
825 911
                       delivery_way: _this.nameForm.delivery_way,
826 912
                       execution_frequency: _this.nameForm.execution_frequency,
913
+                      template_id:"D" + new Date().getTime() + this.getRandValue(),
914
+
915
+                      frequency_type: _this.nameForm.frequency_type,
916
+                      day_count: _this.nameForm.day_count.toString(),
917
+                      week_days: _this.nameForm.week_days,
918
+
827 919
                       isEdit: 0,
828 920
                       id: 0,
829 921
                       children: [],
@@ -834,6 +926,9 @@
834 926
                   remark: _this.groupForm.remark,
835 927
                   parent_id: 0,
836 928
                 };
929
+
930
+
931
+
837 932
                 CreateGroupAdvice(_this.patientID, _this.groupForm.groupno, _this.submitGroupForm).then(response => {
838 933
                   if (response.data.state == 0) {
839 934
                     _this.$message.error(response.data.msg);
@@ -845,6 +940,7 @@
845 940
                       type: "success",
846 941
                       duration: 2000
847 942
                     });
943
+                    this.weeks = []
848 944
                     if (_this.adviceType == _this.groupForm.advice_type || _this.adviceType == 0) {
849 945
 
850 946
                       // var alen = response.data.data.advices.length
@@ -907,6 +1003,11 @@
907 1003
                           prescribing_number_unit: groups[index].prescribing_number_unit,
908 1004
                           delivery_way: groups[index].delivery_way,
909 1005
                           execution_frequency: groups[index].execution_frequency,
1006
+
1007
+                          frequency_type: groups[index].frequency_type,
1008
+                          day_count: groups[index].day_count,
1009
+                          week_day: groups[index].week_day,
1010
+
910 1011
                           isEdit: 0,
911 1012
                           index: 0,
912 1013
                           id: groups[index].id,
@@ -953,8 +1054,20 @@
953 1054
             _this.nameFormVisible = false;
954 1055
           }
955 1056
         });
956
-      },
1057
+      },getRandValue(){
1058
+        var charactors="1234567890";
1059
+
1060
+        var value='',i;
957 1061
 
1062
+        for(let j=1;j<=4;j++){
1063
+
1064
+          i = parseInt(10*Math.random());
1065
+
1066
+          value = value + charactors.charAt(i);
1067
+
1068
+        }
1069
+        return value
1070
+      },
958 1071
       openGroupChild() {
959 1072
         if (this.groupSelectRow === null) {
960 1073
 
@@ -1016,8 +1129,14 @@
1016 1129
             id: this.groupSelectRow.id,
1017 1130
             children: [],
1018 1131
             parent_row: this.groupSelectRow.parent_row,
1019
-            // row_key:this.groupSelectRow.row_key,
1132
+
1133
+            day_count: this.groupSelectRow.day_count,
1134
+            week_days: this.groupSelectRow.week_day,
1135
+            frequency_type: this.groupSelectRow.frequency_type
1136
+
1020 1137
           };
1138
+          // console.log(this.nameForm.week_days)
1139
+          this.weeks = this.groupSelectRow.week_day.split(",")
1021 1140
           this.nameFormTitle = '修改医嘱内容';
1022 1141
         } else {
1023 1142
           this.nameForm = {
@@ -1031,11 +1150,15 @@
1031 1150
             prescribing_number_unit: "",
1032 1151
             delivery_way: "",
1033 1152
             execution_frequency: "",
1153
+            template_id:"",
1034 1154
             isEdit: 0,
1035 1155
             index: 0,
1036 1156
             id: 0,
1037 1157
             children: [],
1038 1158
             parent_row: 0,
1159
+            day_count: '',
1160
+            week_days: '',
1161
+            frequency_type: 0,
1039 1162
           };
1040 1163
           this.nameFormTitle = '新增医嘱内容';
1041 1164
         }
@@ -1286,6 +1409,7 @@
1286 1409
             prescribing_number_unit: this.allSelectedTemplate[index].prescribing_number_unit,
1287 1410
             delivery_way: this.allSelectedTemplate[index].delivery_way,
1288 1411
             execution_frequency: this.allSelectedTemplate[index].execution_frequency,
1412
+
1289 1413
             isEdit: 0,
1290 1414
             id: 0,
1291 1415
             children: [],

+ 8 - 14
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="app-container ">
3
-    <el-dialog title="新增甲肝乙肝丙肝梅毒HIV" :visible.sync="dialogFormVisible" width="1000px" id="user-inspection-form" >
3
+    <el-dialog title="查看传染病检查结果" :visible.sync="dialogFormVisible" width="1000px" id="user-inspection-form" >
4 4
       <el-form :model="form"  ref="form" label-position="top">
5 5
         <el-row >
6 6
           <el-col :span="1">&nbsp;</el-col>
@@ -153,11 +153,7 @@
153 153
               </el-form-item>
154 154
             </el-col>
155 155
 
156
-            <el-col :span="24">
157
-              <el-form-item label="响应结果 : " >
158
-                <el-input disabled type="textarea" :rows="3" v-model="form.response_result" resize="none" placeholder=""></el-input>
159
-              </el-form-item>
160
-            </el-col>
156
+
161 157
 
162 158
             <el-col :span="24">
163 159
               <el-form-item label="传染病周期提醒: " >
@@ -337,13 +333,7 @@
337 333
             <el-input type="textarea" :rows="3" v-model="form.remark" resize="none" placeholder="" readonly></el-input>
338 334
           </el-form-item>
339 335
         </el-col>
340
-        <el-col :span="24">
341
-          <el-form-item label="传染病 : " prop="contagions">
342
-            <el-checkbox-group v-model="form.contagions">
343
-              <el-checkbox v-for="item in contagionList" v-if="item.type==2" :label="item.id" :key="item.id" :value="item.id" disabled>{{item.name}}</el-checkbox>
344
-            </el-checkbox-group>
345
-          </el-form-item>
346
-        </el-col>
336
+
347 337
         <el-col :span="24">
348 338
           <el-form-item label="慢性病 : " prop="diseases">
349 339
             <el-checkbox-group v-model="form.diseases">
@@ -653,6 +643,9 @@ export default {
653 643
       print_time: '',
654 644
 
655 645
       rules: {
646
+        contagions: [
647
+          { type: 'array', required: false, trigger: 'change' }
648
+        ],
656 649
         avatar: [{ required: true, message: '请上传头像', trigger: 'blur' }],
657 650
         patientType: [
658 651
           { required: true, message: '请选择患者类型', trigger: 'blur' }
@@ -1199,7 +1192,8 @@ export default {
1199 1192
       //  var params =new Object();
1200 1193
       //    params.id = this.patientPrint.id
1201 1194
       //    params.name =  this.patientPrint.name;
1202
-      this.$options.methods.qrcode(epatientID, ename, egender, eidCardNo, edialysisNo, ephone, eheathCareNo)// 调用生成二维码的方法
1195
+      // this.$options.methods.qrcode(epatientID, ename, egender, eidCardNo, edialysisNo, ephone, eheathCareNo)// 调用生成二维码的方法
1196
+      this.$options.methods.qrcode(patientID, name, gender, idCardNo, dialysisNo, phone, healthCareNo)
1203 1197
       // this.$options.methods.qrcode(params)
1204 1198
     },showInspectDialog(){
1205 1199
       this.dialogFormVisible = true

+ 23 - 27
src/xt_pages/user/components/PatientForm.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
-    <el-dialog title="新增甲肝乙肝丙肝梅毒HIV" :visible.sync="dialogFormVisible" width="1000px" id="user-inspection-form" v-loading="formLoading">
3
+    <el-dialog title="新增传染病检查" :visible.sync="dialogFormVisible" width="1000px" id="user-inspection-form" v-loading="formLoading">
4 4
       <el-form :model="form"  ref="form" label-position="top">
5 5
         <el-row >
6 6
           <el-col :span="1">&nbsp;</el-col>
@@ -201,11 +201,7 @@
201 201
 
202 202
               </el-col>
203 203
 
204
-              <el-col :span="24">
205
-                <el-form-item label="响应结果 : " >
206
-                  <el-input type="textarea" :rows="3" v-model="form.response_result" resize="none" placeholder=""></el-input>
207
-                </el-form-item>
208
-              </el-col>
204
+
209 205
 
210 206
               <el-col :span="24">
211 207
                 <el-form-item label="传染病周期提醒: " >
@@ -975,27 +971,27 @@
975 971
               this.form.age = parseInt(this.form.age)
976 972
               createPatient(this.form)
977 973
                 .then(response => {
978
-                  // if (response.data.state == 0) {
979
-                  //   this.$message.error(response.data.msg)
980
-                  //   this.formSubmit = true
981
-                  //   return false
982
-                  // } else {
983
-                  //   this.formSubmit = true
984
-                  //   this.$notify({
985
-                  //     title: '成功',
986
-                  //     message: this.submitMsg,
987
-                  //     type: 'success',
988
-                  //     duration: 2000
989
-                  //   })
990
-                  //   this.$refs[formName].resetFields()
991
-                  //   this.$store.dispatch('SetSubscibePatients')
992
-                  //   var sub = this.$store.getters.xt_user.subscibe
993
-                  //   console.log(sub)
994
-                  //   if (action !== 'renew') {
995
-                  //     this.$router.back(-1)
996
-                  //   }
997
-                  //   return false
998
-                  // }
974
+                  if (response.data.state == 0) {
975
+                    this.$message.error(response.data.msg)
976
+                    this.formSubmit = true
977
+                    return false
978
+                  } else {
979
+                    this.formSubmit = true
980
+                    this.$notify({
981
+                      title: '成功',
982
+                      message: this.submitMsg,
983
+                      type: 'success',
984
+                      duration: 2000
985
+                    })
986
+                    this.$refs[formName].resetFields()
987
+                    this.$store.dispatch('SetSubscibePatients')
988
+                    var sub = this.$store.getters.xt_user.subscibe
989
+                    console.log(sub)
990
+                    if (action !== 'renew') {
991
+                      this.$router.back(-1)
992
+                    }
993
+                    return false
994
+                  }
999 995
                 })
1000 996
                 .catch(err => {
1001 997
                   this.$message.error('网络异常')

文件差異過大導致無法顯示
+ 3231 - 2869
src/xt_pages/user/doctorAdvice.vue


+ 312 - 428
src/xt_pages/user/inspection.vue 查看文件

@@ -1,11 +1,7 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <patient-sidebar :id="patientID" defaultActive="1-3"></patient-sidebar>
4
-    <div
5
-      class="patient-app-container app-container"
6
-      v-loading="pageLoading"
7
-      element-loading-text="拼命加载中"
8
-    >
3
+    <patient-sidebar :id="patientID" defaultActive="1-3" ></patient-sidebar>
4
+    <div class="patient-app-container app-container" v-loading="pageLoading" element-loading-text="拼命加载中">
9 5
       <el-row :gutter="20">
10 6
         <el-col :span="7">
11 7
           <el-table
@@ -25,56 +21,25 @@
25 21
               <el-table-column
26 22
                 prop="project_name"
27 23
                 label="检验项目"
28
-                align="center"
29
-              >
24
+                align="center">
30 25
               </el-table-column>
31 26
               <el-table-column
32 27
                 prop="count"
33 28
                 label="次数"
34 29
                 width="80"
35
-                align="center"
36
-              >
30
+                align="center">
37 31
               </el-table-column>
38 32
             </el-table-column>
39 33
           </el-table>
40 34
         </el-col>
41 35
         <el-col :span="17" v-loading="itemLoading">
42 36
           <div class="filter-container" style="float:right">
43
-            <el-button
44
-              size="small"
45
-              class="filter-item"
46
-              type="primary"
47
-              @click="openNew()"
48
-              icon="el-icon-circle-plus-outline"
49
-              :disabled="project ? false : true"
50
-              >新增</el-button
51
-            >
52
-            <el-button
53
-              size="small"
54
-              class="filter-item"
55
-              type="primary"
56
-              icon="el-icon-edit-outline"
57
-              @click="openEdit()"
58
-              :disabled="itemDate ? false : true"
59
-              >修改</el-button
60
-            >
61
-            <el-button
62
-              size="small"
63
-              class="filter-item"
64
-              type="danger"
65
-              icon="el-icon-delete"
66
-              @click="deleteInspection()"
67
-              :disabled="itemDate ? false : true"
68
-              >删除</el-button
69
-            >
37
+            <el-button size="small" class="filter-item" type="primary" @click="openNew()" icon="el-icon-circle-plus-outline" :disabled="project?false:true">新增</el-button>
38
+            <el-button size="small" class="filter-item" type="primary" icon="el-icon-edit-outline" @click="openEdit()" :disabled="itemDate?false:true">修改</el-button>
39
+            <el-button size="small" class="filter-item" type="danger" icon="el-icon-delete" @click="deleteInspection()" :disabled="itemDate?false:true">删除</el-button>
70 40
           </div>
71
-          <div class="filter-container">
72
-            <el-button class="filter-item" type="text" style="color:#000"
73
-              >{{ itemName }}
74
-              <span v-if="itemDate"
75
-                >(检查日期:{{ itemDate }})</span
76
-              ></el-button
77
-            >
41
+          <div class="filter-container" >
42
+            <el-button class="filter-item" type="text" style="color:#000">{{itemName}} <span v-if="itemDate">(检查日期:{{itemDate}})</span></el-button>
78 43
           </div>
79 44
           <el-table
80 45
             :header-cell-style="{
@@ -91,72 +56,59 @@
91 56
               prop="item_name"
92 57
               label="检验项目"
93 58
               align="center"
94
-              min-width="180"
95
-            >
59
+              min-width="180">
96 60
               <template slot-scope="scope">
97
-                {{ scope.row.item_name }} {{ scope.row.item_name_addition }}
61
+                {{scope.row.item_name}} {{scope.row.item_name_addition}}
98 62
               </template>
99 63
             </el-table-column>
100 64
             <el-table-column
101 65
               prop="name"
102 66
               label="结果"
103 67
               align="center"
104
-              min-width="80"
105
-            >
68
+              min-width="80">
106 69
               <template slot-scope="scope">
107
-                <span>{{ scope.row.value }}</span>
108
-                <span v-if="scope.row.range_type == 1">{{
109
-                  scope.row.value_direction
110
-                }}</span>
70
+                <span>{{scope.row.value}}</span>
71
+                <span v-if="scope.row.range_type==1">{{scope.row.value_direction}}</span>
111 72
               </template>
112 73
             </el-table-column>
113 74
             <el-table-column
114 75
               prop="address"
115 76
               label="参考值"
116 77
               align="center"
117
-              min-width="120"
118
-            >
78
+              min-width="120">
119 79
               <template slot-scope="scope">
120
-                <span v-if="scope.row.range_type == 1"
121
-                  >{{ scope.row.range_min }}~{{ scope.row.range_max }}</span
122
-                >
123
-                <span v-else>{{ scope.row.range_value }}</span>
80
+                <span v-if="scope.row.range_type==1">{{scope.row.range_min}}~{{scope.row.range_max}}</span>
81
+                <span v-else>{{scope.row.range_value}}</span>
124 82
               </template>
125 83
             </el-table-column>
126 84
             <el-table-column
127 85
               prop="unit"
128 86
               label="单位"
129 87
               align="center"
130
-              min-width="80"
131
-            >
88
+              min-width="80">
132 89
             </el-table-column>
133 90
           </el-table>
134 91
           <el-pagination
135
-            align="right"
92
+          align="right"
136 93
             @current-change="handleCurrentChangePage"
137 94
             :current-page="queryParams.page"
138 95
             :page-size="1"
139 96
             background
140 97
             style="margin-top:20px;"
141 98
             layout="total, prev, pager, next, jumper"
142
-            :total="total"
143
-          >
99
+            :total="total">
144 100
           </el-pagination>
145 101
         </el-col>
146 102
       </el-row>
147 103
     </div>
148 104
 
149
-    <el-dialog
150
-      :title="formTitle"
151
-      :visible.sync="dialogFormVisible"
152
-      width="1000px"
153
-      id="user-inspection-form"
154
-      v-loading="formLoading"
155
-    >
156
-      <el-form :model="form" ref="form" label-position="top">
105
+    <el-dialog :title="formTitle" :visible.sync="dialogFormVisible" width="1000px" id="user-inspection-form" v-loading="formLoading">
106
+
107
+      <el-form :model="form"  ref="form" label-position="top">
108
+
157 109
         <el-row v-if="form.formItem[0].project_id == 14">
158 110
           <el-col :span="24">
159
-            <el-form-item label="传染病周期提醒: ">
111
+            <el-form-item label="传染病周期提醒: " >
160 112
               <el-radio-group v-model="form.remind_cycle">
161 113
                 <el-radio :label="1">一月一次</el-radio>
162 114
                 <el-radio :label="2">两月一次</el-radio>
@@ -167,81 +119,54 @@
167 119
             </el-form-item>
168 120
           </el-col>
169 121
 
170
-          <el-col :span="7">
171
-            <el-form-item
172
-              label="检验日期"
173
-              prop="inspect_date"
174
-              :rules="[
175
-                { required: true, message: '请输入检验日期', trigger: 'blur' }
176
-              ]"
177
-            >
178
-              <el-date-picker
179
-                style="width:95%"
122
+          <el-col :span="7" >
123
+            <el-form-item label="检验日期" prop="inspect_date" :rules="[
124
+                  { required: true, message: '请输入检验日期', trigger: 'blur' },
125
+                ]" >
126
+              <el-date-picker style="width:95%"
180 127
                 v-model="form.inspect_date"
181 128
                 type="date"
182 129
                 value-format="yyyy-MM-dd"
183 130
                 format="yyyy-MM-dd"
184 131
                 placeholder="选择日期"
185
-                :readonly="form.method == 'add' ? false : true"
186
-              >
132
+                :readonly="form.method=='add'?false:true"
133
+                >
187 134
               </el-date-picker>
188 135
             </el-form-item>
189 136
           </el-col>
190 137
           <el-col :span="1">&nbsp;</el-col>
191 138
 
192
-          <template v-for="(item, index) in form.formItem">
139
+          <template v-for="(item, index) in form.formItem" >
193 140
             <el-col :span="7" :key="index">
194
-              <el-form-item
195
-                :label="item.item_name"
196
-                v-if="item.range_type == 1"
197
-                :key="item.item_id"
198
-                :prop="'formItem.' + index + '.value'"
199
-              >
200
-                <el-input
201
-                  placeholder="请填入"
202
-                  v-model="item.value"
203
-                  style="width:95%"
204
-                  type="number"
205
-                >
206
-                  <template slot="append">{{ item.unit }}</template>
141
+              <el-form-item :label="item.item_name" v-if="item.range_type==1"  :key="item.item_id" :prop="'formItem.' + index + '.value'"
142
+             >
143
+                <el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
144
+                  <template slot="append">{{item.unit}}</template>
207 145
                 </el-input>
208 146
               </el-form-item>
209
-              <el-form-item
210
-                :label="item.item_name"
211
-                v-else
212
-                :key="item.item_id"
213
-                :prop="'formItem.' + index + '.value'"
147
+              <el-form-item :label="item.item_name" v-else :key="item.item_id" :prop="'formItem.' + index + '.value'"
214 148
               >
215
-                <el-select
216
-                  v-model="item.value"
217
-                  placeholder="请选择"
218
-                  style="width:95%"
219
-                >
149
+                <el-select  v-model="item.value" placeholder="请选择" style="width:95%">
220 150
                   <el-option
221 151
                     v-for="(optionItem, oidex) in item.select_options"
222 152
                     :key="oidex"
223 153
                     :label="optionItem"
224
-                    :value="optionItem"
225
-                  >
154
+                    :value="optionItem">
226 155
                   </el-option>
227 156
                 </el-select>
228 157
               </el-form-item>
229 158
             </el-col>
230
-            <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
159
+            <el-col :span="1" :key="'form-col'+index">&nbsp;</el-col>
231 160
           </template>
161
+
232 162
         </el-row>
163
+
164
+
233 165
       </el-form>
234 166
       <div slot="footer" class="dialog-footer">
235 167
         <el-button @click="dialogFormVisible = false">取 消</el-button>
236
-        <el-button
237
-          type="primary"
238
-          v-if="form.method == 'add'"
239
-          @click="submitNew('form')"
240
-          >保 存</el-button
241
-        >
242
-        <el-button type="primary" v-else @click="submitEdit('form')"
243
-          >保 存</el-button
244
-        >
168
+        <el-button type="primary" v-if="form.method=='add'" @click="submitNew('form')">保 存</el-button>
169
+        <el-button type="primary" v-else @click="submitEdit('form')">保 存</el-button>
245 170
       </div>
246 171
     </el-dialog>
247 172
   </div>
@@ -249,104 +174,95 @@
249 174
 
250 175
 <script>
251 176
 import PatientSidebar from "./components/PatientSidebar";
252
-import {
253
-  fetchInspectionReference,
254
-  CreatePatientInspection,
255
-  fetchPatientInspections,
256
-  EditPatientInspection,
257
-  DeletePatientInspection
258
-} from "@/api/inspection";
259
-import { uParseTime, isPositiveNumber } from "@/utils/tools";
177
+import {fetchInspectionReference,CreatePatientInspection,fetchPatientInspections,EditPatientInspection,DeletePatientInspection} from "@/api/inspection";
178
+import {uParseTime,isPositiveNumber} from "@/utils/tools";
260 179
 
261 180
 export default {
262 181
   name: "Inspection",
263 182
   components: { PatientSidebar },
264 183
   data() {
265 184
     return {
266
-      total: 0,
267
-      pageLoading: true,
268
-      itemLoading: false,
269
-      formLoading: false,
270
-      itemDate: "",
185
+      total:0,
186
+      pageLoading:true,
187
+      itemLoading:false,
188
+      formLoading:false,
189
+      itemDate:'',
271 190
       patientID: 0,
272 191
       panelClass: "patient-app-container",
273 192
       patientInfo: {
274 193
         id: 0
275 194
       },
276
-      itemName: "请选择项目",
277
-      formTitle: "",
278
-      dialogFormVisible: false,
279
-      patient_info: null,
280
-      form: {
281
-        remind_cycle: "",
282
-        method: "add",
283
-        project_id: 0,
284
-        inspect_date: "",
285
-        formItem: [{ id: 0, value: "" }]
195
+      itemName:'请选择项目',
196
+      formTitle:'',
197
+      dialogFormVisible:false,
198
+      patient_info:null,
199
+      form:{
200
+        remind_cycle:'',
201
+        method:'add',
202
+        project_id:0,
203
+        inspect_date:'',
204
+        formItem:[
205
+          {id:0, value:''},
206
+        ]
207
+      },
208
+      formItem:[],
209
+      items:[],
210
+      inspections:[],
211
+      inspectionsMap:{},
212
+      projects:[],
213
+      project:null,
214
+      queryParams:{
215
+        patient:0,
216
+        project_id:0,
217
+        page:1
286 218
       },
287
-      formItem: [],
288
-      items: [],
289
-      inspections: [],
290
-      inspectionsMap: {},
291
-      projects: [],
292
-      project: null,
293
-      queryParams: {
294
-        patient: 0,
295
-        project_id: 0,
296
-        page: 1
297
-      }
298 219
     };
299 220
   },
300
-  methods: {
301
-    deleteInspection() {
302
-      if (this.project == null || this.itemDate == "") {
221
+  methods:{
222
+    deleteInspection(){
223
+
224
+      if(this.project == null || this.itemDate == "") {
303 225
         this.$message.error("请先选择删除删除的记录");
304 226
         return false;
305 227
       }
306 228
 
307
-      this.$confirm("确认删除此记录?", "删除", {
308
-        confirmButtonText: "确定",
309
-        cancelButtonText: "取消",
310
-        type: "warning"
311
-      })
312
-        .then(() => {
313
-          var params = {
314
-            patient: this.patientID,
315
-            date: this.itemDate,
316
-            project_id: this.project.project_id
317
-          };
318
-          DeletePatientInspection(params).then(response => {
319
-            if (response.data.state == 0) {
320
-              this.$message.error(response.data.msg);
321
-              return false;
322
-            } else {
323
-              this.$notify({
324
-                title: "成功",
325
-                message: "删除成功",
326
-                type: "success",
327
-                duration: 2000
328
-              });
229
+      this.$confirm('确认删除此记录?', '删除', {
230
+          confirmButtonText: '确定',
231
+          cancelButtonText: '取消',
232
+          type: 'warning'
233
+      }).then(() => {
234
+        var params = {patient: this.patientID, date: this.itemDate, project_id: this.project.project_id};
235
+          DeletePatientInspection(params).then(response=>{
236
+              if(response.data.state==0) {
237
+                  this.$message.error(response.data.msg);
238
+                  return false;
239
+              }else {
240
+                this.$notify({
241
+                    title: "成功",
242
+                    message: "删除成功",
243
+                    type: "success",
244
+                    duration: 2000
245
+                });
329 246
 
330
-              for (var index in this.projects) {
331
-                if (this.projects[index].project_id == params.project_id) {
332
-                  this.projects[index].count--;
333
-                  break;
247
+                for( var index in this.projects) {
248
+                  if (this.projects[index].project_id == params.project_id) {
249
+                    this.projects[index].count --;
250
+                    break;
251
+                  }
252
+                }
253
+                this.total -=1;
254
+                this.itemDate = "";
255
+                this.items = [];
256
+                if(this.total > 0) {
257
+                  this.queryParams.page = 1;
258
+                  this.fetchPatientInspections(this.queryParams);
334 259
                 }
335 260
               }
336
-              this.total -= 1;
337
-              this.itemDate = "";
338
-              this.items = [];
339
-              if (this.total > 0) {
340
-                this.queryParams.page = 1;
341
-                this.fetchPatientInspections(this.queryParams);
342
-              }
343
-            }
344 261
           });
345
-        })
346
-        .catch(() => {});
262
+      }).catch(() => { });
347 263
     },
348
-    openEdit() {
349
-      if (this.project == null) {
264
+    openEdit(){
265
+      if(this.project == null) {
350 266
         this.$message.error("请先选择项目");
351 267
         return false;
352 268
       }
@@ -355,151 +271,131 @@ export default {
355 271
       this.formTitle = "修改" + this.project.project_name;
356 272
       this.form.project_id = this.project.project_id;
357 273
       this.form.inspect_date = this.itemDate;
358
-      this.form.remind_cycle = this.patient_info.remind_cycle;
359
-      console.log(this.form.remind_cycle);
274
+      this.form.remind_cycle = this.patient_info.remind_cycle
275
+      console.log(this.form.remind_cycle)
360 276
 
361 277
       this.form.formItem = [];
362
-      for (var index in this.project.inspection_reference) {
278
+      for(var index in this.project.inspection_reference){
363 279
         this.form.formItem.push({
364
-          id:
365
-            this.project.inspection_reference[index].id in this.inspectionsMap
366
-              ? this.inspectionsMap[this.project.inspection_reference[index].id]
367
-                  .id
368
-              : 0,
280
+          id:  (this.project.inspection_reference[index].id in this.inspectionsMap)? this.inspectionsMap[this.project.inspection_reference[index].id].id:0,
369 281
           project_id: this.project.inspection_reference[index].project_id,
370 282
           project_name: this.project.inspection_reference[index].project_name,
371 283
           item_id: this.project.inspection_reference[index].id,
372 284
           item: this.project.inspection_reference[index].item,
373 285
           item_name: this.project.inspection_reference[index].item_name,
374 286
           range_type: this.project.inspection_reference[index].range_type,
375
-          value:
376
-            this.project.inspection_reference[index].id in this.inspectionsMap
377
-              ? this.inspectionsMap[this.project.inspection_reference[index].id]
378
-                  .inspect_value
379
-              : "",
380
-          select_options: this.project.inspection_reference[
381
-            index
382
-          ].range_options.split(","),
383
-          unit: this.project.inspection_reference[index].unit
287
+          value:(this.project.inspection_reference[index].id in this.inspectionsMap)? this.inspectionsMap[this.project.inspection_reference[index].id].inspect_value:"",
288
+          select_options: this.project.inspection_reference[index].range_options.split(","),
289
+          unit: this.project.inspection_reference[index].unit,
384 290
         });
385 291
       }
386 292
 
387 293
       this.dialogFormVisible = true;
294
+
388 295
     },
389
-    openNew() {
390
-      if (this.project == null) {
296
+    openNew(){
297
+      if(this.project == null) {
391 298
         this.$message.error("请先选择项目");
392 299
         return false;
393 300
       }
394 301
       this.form.method = "add";
395 302
       this.formTitle = "新增" + this.project.project_name;
396 303
       this.form.project_id = this.project.project_id;
397
-      this.form.remind_cycle = this.patient_info.remind_cycle;
304
+      this.form.remind_cycle = this.patient_info.remind_cycle
398 305
 
399 306
       var today = new Date();
400
-      this.form.inspect_date = uParseTime(today, "{y}-{m}-{d}");
307
+      this.form.inspect_date = uParseTime(today, '{y}-{m}-{d}');
401 308
       this.form.formItem = [];
402
-      for (var index in this.project.inspection_reference) {
309
+      for(var index in this.project.inspection_reference){
403 310
         // var formItem = this.project.inspection_reference[index];
404 311
         // formItem["value"] = '';
405 312
         // if (formItem.range_type==2) {
406 313
         //   formItem["select_options"] = formItem.range_options.split(",");
407 314
         // }
408 315
         this.form.formItem.push({
409
-          id: 0,
316
+          id:    0,
410 317
           project_id: this.project.inspection_reference[index].project_id,
411 318
           project_name: this.project.inspection_reference[index].project_name,
412 319
           item_id: this.project.inspection_reference[index].id,
413 320
           item: this.project.inspection_reference[index].item,
414 321
           item_name: this.project.inspection_reference[index].item_name,
415 322
           range_type: this.project.inspection_reference[index].range_type,
416
-          value: "",
417
-          select_options: this.project.inspection_reference[
418
-            index
419
-          ].range_options.split(","),
420
-          unit: this.project.inspection_reference[index].unit
323
+          value:'',
324
+          select_options: this.project.inspection_reference[index].range_options.split(","),
325
+          unit: this.project.inspection_reference[index].unit,
421 326
         });
422 327
       }
423 328
 
424 329
       this.dialogFormVisible = true;
425 330
     },
426
-    submitEdit(formName) {
427
-      this.$refs[formName].validate(valid => {
331
+    submitEdit(formName){
332
+      this.$refs[formName].validate((valid) => {
428 333
         if (valid) {
429 334
           this.formLoading = true;
430
-          if (this.form.formItem.length == 0) {
335
+          if (this.form.formItem.length==0) {
431 336
             this.$message.error("未填写项目");
432 337
             return false;
433 338
           }
434
-          for (var index in this.form.formItem) {
435
-            this.form.formItem[index].value =
436
-              "" + this.form.formItem[index].value;
339
+          for( var index in this.form.formItem) {
340
+            this.form.formItem[index].value = '' + this.form.formItem[index].value;
437 341
           }
438
-          EditPatientInspection(
439
-            this.patientID,
440
-            this.form,
441
-            this.form.remind_cycle
442
-          )
443
-            .then(response => {
444
-              if (response.data.state == 1) {
445
-                this.$notify({
446
-                  title: "成功",
447
-                  message: "修改成功",
448
-                  type: "success",
449
-                  duration: 2000
450
-                });
451
-                this.patient_info.remind_cycle =
452
-                  response.data.data.remind_cycle;
453
-                this.itemDate = this.form.inspect_date;
454
-                this.items = [];
455
-                var inspections = response.data.data.inspections;
456
-                this.inspections = response.data.data.inspections;
457
-                if (inspections == null) {
458
-                  this.inspections = [];
459
-                  return false;
460
-                }
461
-                var inspectionsMap = {};
462
-                this.inspectionsMap = {};
463
-                for (var index in inspections) {
464
-                  inspectionsMap[inspections[index].item_id] =
465
-                    inspections[index];
466
-                  this.inspectionsMap[inspections[index].item_id] =
467
-                    inspections[index];
468
-                }
469
-                var items = this.project.inspection_reference;
470
-                for (var index in items) {
471
-                  if (items[index].id in inspectionsMap) {
472
-                    var item = {};
473
-                    for (var key in items[index]) {
474
-                      item[key] = items[index][key];
475
-                    }
476
-                    item.value = inspectionsMap[items[index].id].inspect_value;
477
-                    item.value_direction = "";
478
-                    if (item.range_type == 1) {
479
-                      var value = parseFloat(item.value);
480
-                      var range_min = parseFloat(item.range_min);
481
-                      var range_max = parseFloat(item.range_max);
482
-                      if (value < range_min) {
483
-                        item.value_direction = "↓";
484
-                      } else if (value > range_max) {
485
-                        item.value_direction = "↑";
486
-                      }
342
+          EditPatientInspection(this.patientID, this.form,this.form.remind_cycle).then(response=>{
343
+            if (response.data.state==1) {
344
+              this.$notify({
345
+                title: "成功",
346
+                message: "修改成功",
347
+                type: "success",
348
+                duration: 2000
349
+              });
350
+              this.patient_info.remind_cycle = response.data.data.remind_cycle
351
+              this.itemDate = this.form.inspect_date;
352
+              this.items=[];
353
+              var inspections = response.data.data.inspections;
354
+              this.inspections = response.data.data.inspections;
355
+              if (inspections==null) {
356
+                this.inspections = [];
357
+                return false;
358
+              }
359
+              var inspectionsMap = {};
360
+              this.inspectionsMap = {};
361
+              for (var index in inspections) {
362
+                inspectionsMap[inspections[index].item_id] = inspections[index];
363
+                this.inspectionsMap[inspections[index].item_id] = inspections[index];
364
+              }
365
+              var items = this.project.inspection_reference;
366
+              for(var index in items) {
367
+                if (items[index].id in inspectionsMap) {
368
+                  var item = {};
369
+                  for(var key in items[index]) {
370
+                    item[key] = items[index][key];
371
+                  }
372
+                  item.value = inspectionsMap[items[index].id].inspect_value;
373
+                  item.value_direction = "";
374
+                  if (item.range_type==1) {
375
+                    var value = parseFloat(item.value);
376
+                    var range_min = parseFloat(item.range_min);
377
+                    var range_max = parseFloat(item.range_max);
378
+                    if (value < range_min) {
379
+                      item.value_direction = "↓";
380
+                    }else if (value > range_max) {
381
+                      item.value_direction = "↑";
487 382
                     }
488
-                    this.items.push(item);
489 383
                   }
384
+                  this.items.push(item);
490 385
                 }
491
-
492
-                this.resetForm(formName);
493
-                this.dialogFormVisible = false;
494
-              } else {
495
-                this.$message.error(response.data.msg);
496
-                return false;
497 386
               }
498
-            })
499
-            .catch(v => {
500
-              this.$message.error(v);
387
+
388
+              this.resetForm(formName);
389
+              this.dialogFormVisible = false;
390
+
391
+            }else {
392
+              this.$message.error(response.data.msg);
501 393
               return false;
502
-            });
394
+            }
395
+          }).catch(v=>{
396
+            this.$message.error(v);
397
+            return false;
398
+          });
503 399
           this.formLoading = false;
504 400
           return false;
505 401
         } else {
@@ -507,116 +403,107 @@ export default {
507 403
         }
508 404
       });
509 405
     },
510
-    submitNew(formName) {
511
-      this.$refs[formName].validate(valid => {
406
+    submitNew(formName){
407
+      this.$refs[formName].validate((valid) => {
512 408
         if (valid) {
513 409
           this.formLoading = true;
514
-          if (this.form.formItem.length == 0) {
410
+          if (this.form.formItem.length==0) {
515 411
             this.$message.error("未填写项目");
516 412
             return false;
517 413
           }
518
-          for (var index in this.form.formItem) {
519
-            this.form.formItem[index].value =
520
-              "" + this.form.formItem[index].value;
414
+          for( var index in this.form.formItem) {
415
+            this.form.formItem[index].value = '' + this.form.formItem[index].value;
521 416
           }
522
-          CreatePatientInspection(
523
-            this.patientID,
524
-            this.form,
525
-            this.form.remind_cycle
526
-          )
527
-            .then(response => {
528
-              if (response.data.state == 1) {
529
-                this.$notify({
530
-                  title: "成功",
531
-                  message: "新增成功",
532
-                  type: "success",
533
-                  duration: 2000
534
-                });
535
-                // this.form.remind_reycle = response.data.data.remind_reycc
536
-                this.patient_info.remind_cycle =
537
-                  response.data.data.remind_cycle;
538
-                console.log(this.patient_info.remind_cycle);
417
+          CreatePatientInspection(this.patientID, this.form, this.form.remind_cycle).then(response=>{
418
+            if (response.data.state==1) {
419
+              this.$notify({
420
+                title: "成功",
421
+                message: "新增成功",
422
+                type: "success",
423
+                duration: 2000
424
+              });
425
+              // this.form.remind_reycle = response.data.data.remind_reycc
426
+              this.patient_info.remind_cycle = response.data.data.remind_cycle
427
+              console.log( this.patient_info.remind_cycle)
539 428
 
540
-                this.itemDate = this.form.inspect_date;
541
-                this.items = [];
542
-                for (var index in this.projects) {
543
-                  if (this.projects[index].project_id == this.form.project_id) {
544
-                    this.projects[index].count++;
545
-                    break;
546
-                  }
547
-                }
548
-                this.total += 1;
549
-                var inspections = response.data.data.inspections;
550
-                this.inspections = response.data.data.inspections;
551
-                if (inspections == null) {
552
-                  this.inspections = [];
553
-                  return false;
554
-                }
555
-                var inspectionsMap = {};
556
-                this.inspectionsMap = {};
557
-                for (var index in inspections) {
558
-                  inspectionsMap[inspections[index].item_id] =
559
-                    inspections[index];
560
-                  this.inspectionsMap[inspections[index].item_id] =
561
-                    inspections[index];
429
+              this.itemDate = this.form.inspect_date;
430
+              this.items=[];
431
+              for( var index in this.projects) {
432
+                if (this.projects[index].project_id == this.form.project_id) {
433
+                  this.projects[index].count ++;
434
+                  break;
562 435
                 }
563
-                var items = this.project.inspection_reference;
564
-                for (var index in items) {
565
-                  if (items[index].id in inspectionsMap) {
566
-                    var item = {};
567
-                    for (var key in items[index]) {
568
-                      item[key] = items[index][key];
569
-                    }
570
-                    item.value = inspectionsMap[items[index].id].inspect_value;
571
-                    item.value_direction = "";
572
-                    if (item.range_type == 1) {
573
-                      var value = parseFloat(item.value);
574
-                      var range_min = parseFloat(item.range_min);
575
-                      var range_max = parseFloat(item.range_max);
576
-                      if (value < range_min) {
577
-                        item.value_direction = "↓";
578
-                      } else if (value > range_max) {
579
-                        item.value_direction = "↑";
580
-                      }
436
+              }
437
+              this.total +=1;
438
+              var inspections = response.data.data.inspections;
439
+              this.inspections = response.data.data.inspections;
440
+              if (inspections==null) {
441
+                this.inspections = [];
442
+                return false;
443
+              }
444
+              var inspectionsMap = {};
445
+              this.inspectionsMap = {};
446
+              for (var index in inspections) {
447
+                inspectionsMap[inspections[index].item_id] = inspections[index];
448
+                this.inspectionsMap[inspections[index].item_id] = inspections[index];
449
+              }
450
+              var items = this.project.inspection_reference;
451
+              for(var index in items) {
452
+                if (items[index].id in inspectionsMap) {
453
+                  var item = {};
454
+                  for(var key in items[index]) {
455
+                    item[key] = items[index][key];
456
+                  }
457
+                  item.value = inspectionsMap[items[index].id].inspect_value;
458
+                  item.value_direction = "";
459
+                  if (item.range_type==1) {
460
+                    var value = parseFloat(item.value);
461
+                    var range_min = parseFloat(item.range_min);
462
+                    var range_max = parseFloat(item.range_max);
463
+                    if (value < range_min) {
464
+                      item.value_direction = "↓";
465
+                    }else if (value > range_max) {
466
+                      item.value_direction = "↑";
581 467
                     }
582
-                    this.items.push(item);
583 468
                   }
469
+                  this.items.push(item);
584 470
                 }
585
-
586
-                this.resetForm(formName);
587
-                this.dialogFormVisible = false;
588
-              } else {
589
-                this.$message.error(response.data.msg);
590
-                return false;
591 471
               }
592
-            })
593
-            .catch(v => {
594
-              this.$message.error(v);
472
+
473
+              this.resetForm(formName);
474
+              this.dialogFormVisible = false;
475
+
476
+            }else {
477
+              this.$message.error(response.data.msg);
595 478
               return false;
596
-            });
479
+            }
480
+          }).catch(v=>{
481
+            this.$message.error(v);
482
+            return false;
483
+          });
597 484
           this.formLoading = false;
598 485
           return false;
599 486
         } else {
600 487
           return false;
601 488
         }
602 489
       });
490
+
603 491
     },
604
-    fetchInspectionReference() {
605
-      fetchInspectionReference(this.patientID)
606
-        .then(response => {
607
-          if (response.data.state == 1) {
608
-            var reference = response.data.data.reference;
609
-            var patient_info = response.data.data.patient_info;
610
-            this.projects = reference;
611
-            this.patient_info = patient_info;
612
-            this.pageLoading = false;
613
-            this.form.remind_cycle = this.patient_info.remind_cycle;
614
-          } else {
615
-            this.$message.error(response.data.msg);
616
-            return false;
617
-          }
618
-        })
619
-        .catch(v => {});
492
+    fetchInspectionReference(){
493
+      fetchInspectionReference(this.patientID).then(response=>{
494
+        if(response.data.state==1) {
495
+          var reference = response.data.data.reference;
496
+          var patient_info = response.data.data.patient_info;
497
+          this.projects = reference;
498
+          this.patient_info = patient_info;
499
+          this.pageLoading = false;
500
+          this.form.remind_cycle = this.patient_info.remind_cycle
501
+        }else {
502
+          this.$message.error(response.data.msg);
503
+          return false;
504
+        }
505
+      }).catch(v=>{
506
+      });
620 507
     },
621 508
     setCurrent(row) {
622 509
       this.$refs.singleTable.setCurrentRow(row);
@@ -625,17 +512,17 @@ export default {
625 512
       this.$refs[formName].resetFields();
626 513
     },
627 514
     handleCurrentChange(row) {
628
-      this.itemDate = "";
629
-      this.form.method = "add";
630
-      if (typeof row == "undefined" || row == null) {
515
+      this.itemDate = '';
516
+      this.form.method = 'add';
517
+      if(typeof(row)=="undefined" || row==null) {
631 518
         this.project = null;
632 519
         this.items = [];
633
-        this.itemName = "请选择项目";
634
-      } else {
520
+        this.itemName='请选择项目';
521
+      }else {
635 522
         this.itemLoading = true;
636 523
         this.project = row;
637 524
         this.items = row.inspection_reference;
638
-        this.itemName = row.project_name;
525
+        this.itemName=row.project_name;
639 526
 
640 527
         this.queryParams.patient = this.patientID;
641 528
         this.queryParams.project_id = this.project.project_id;
@@ -646,59 +533,56 @@ export default {
646 533
     },
647 534
 
648 535
     handleCurrentChangePage(val) {
649
-      this.itemLoading = true;
536
+        this.itemLoading = true;
650 537
       this.queryParams.page = val;
651 538
       this.fetchPatientInspections(this.queryParams);
652 539
     },
653
-    fetchPatientInspections(params) {
540
+    fetchPatientInspections(params){
654 541
       this.items = [];
655
-      fetchPatientInspections(params)
656
-        .then(response => {
657
-          if (response.data.state == 1) {
658
-            var inspections = response.data.data.inspections;
659
-            this.total = response.data.data.total;
660
-            this.itemDate = response.data.data.date;
661
-            this.inspections = response.data.data.inspections;
662
-            if (inspections == null) {
663
-              this.inspections = [];
664
-              return false;
665
-            }
666
-            var inspectionsMap = {};
667
-            this.inspectionsMap = {};
668
-            for (var index in inspections) {
669
-              inspectionsMap[inspections[index].item_id] = inspections[index];
670
-              this.inspectionsMap[inspections[index].item_id] =
671
-                inspections[index];
672
-            }
673
-            var items = this.project.inspection_reference;
674
-            for (var index in items) {
675
-              if (items[index].id in inspectionsMap) {
676
-                var item = {};
677
-                for (var key in items[index]) {
678
-                  item[key] = items[index][key];
679
-                }
680
-                item.value = inspectionsMap[items[index].id].inspect_value;
681
-                item.value_direction = "";
682
-                if (item.range_type == 1) {
683
-                  var value = parseFloat(item.value);
684
-                  var range_min = parseFloat(item.range_min);
685
-                  var range_max = parseFloat(item.range_max);
686
-                  if (value < range_min) {
687
-                    item.value_direction = "↓";
688
-                  } else if (value > range_max) {
689
-                    item.value_direction = "↑";
690
-                  }
542
+      fetchPatientInspections(params).then(response=>{
543
+        if(response.data.state==1) {
544
+          var inspections = response.data.data.inspections;
545
+          this.total = response.data.data.total;
546
+          this.itemDate = response.data.data.date;
547
+          this.inspections = response.data.data.inspections;
548
+          if (inspections==null) {
549
+            this.inspections = [];
550
+            return false;
551
+          }
552
+          var inspectionsMap = {};
553
+          this.inspectionsMap = {};
554
+          for (var index in inspections) {
555
+            inspectionsMap[inspections[index].item_id] = inspections[index];
556
+            this.inspectionsMap[inspections[index].item_id] = inspections[index];
557
+          }
558
+          var items = this.project.inspection_reference;
559
+          for(var index in items) {
560
+            if (items[index].id in inspectionsMap) {
561
+              var item = {};
562
+              for(var key in items[index]) {
563
+                item[key] = items[index][key];
564
+              }
565
+              item.value = inspectionsMap[items[index].id].inspect_value;
566
+              item.value_direction = "";
567
+              if (item.range_type==1) {
568
+                var value = parseFloat(item.value);
569
+                var range_min = parseFloat(item.range_min);
570
+                var range_max = parseFloat(item.range_max);
571
+                if (value < range_min) {
572
+                  item.value_direction = "↓";
573
+                } else if (value > range_max) {
574
+                  item.value_direction = "↑";
691 575
                 }
692
-                this.items.push(item);
693 576
               }
577
+              this.items.push(item);
694 578
             }
695 579
           }
696
-        })
697
-        .catch(v => {});
580
+        }
581
+      }).catch(v=>{});
698 582
       setTimeout(() => {
699 583
         this.itemLoading = false;
700 584
       }, 1000);
701
-    }
585
+    },
702 586
   },
703 587
   created() {
704 588
     const id = this.$route.query && this.$route.query.id;

+ 7 - 5
src/xt_pages/workforce/components/tableData.vue 查看文件

@@ -318,7 +318,7 @@
318 318
           <el-form-item label="病房: " prop="partition_id">
319 319
             <el-select v-model="zone_name" placeholder="请选择" style="width:100%" @change="changePartition">
320 320
               <el-option
321
-                v-for="item,index in zone_names"
321
+                v-for="(item,index) in zone_names"
322 322
                 :key="index"
323 323
                 :label="item"
324 324
                 :value="item">
@@ -823,7 +823,7 @@
823 823
           this.creating_schedule = false
824 824
         })
825 825
       },
826
-      clickThis(row, column, cell, event) {
826
+      clickThis(row, column, cell, event) {debugger
827 827
         console.log(column.property)
828 828
         var week = this.weekDay(column.property)
829 829
         console.log(week)
@@ -1004,6 +1004,7 @@
1004 1004
               zone_device_map[device_number.zone.name].push(device_number)
1005 1005
             }
1006 1006
             this.zone_device_map = zone_device_map
1007
+            debugger
1007 1008
 
1008 1009
             this.zone_names = Object.keys(this.zone_device_map)
1009 1010
             if (this.zone_names.length > 0) {
@@ -1057,7 +1058,8 @@
1057 1058
               this.jihaos = []
1058 1059
             }
1059 1060
             let params = {
1060
-              type: this.currentData.schedule_type
1061
+              type: this.currentData.schedule_type,
1062
+              date: this.currentData.schedule_date
1061 1063
             }
1062 1064
             getUrgentScheduleInitData(params).then(response => {
1063 1065
               if (response.data.state == 0) {
@@ -1075,7 +1077,7 @@
1075 1077
                       }
1076 1078
                     }
1077 1079
                   }
1078
-
1080
+                  debugger
1079 1081
                   var zone_device_map = {}
1080 1082
                   for (let index = 0; index < this.origin_device_numbers.length; index++) {
1081 1083
                     const device_number = this.origin_device_numbers[index]
@@ -1085,7 +1087,7 @@
1085 1087
                     zone_device_map[device_number.zone.name].push(device_number)
1086 1088
                   }
1087 1089
                   this.zone_device_map = zone_device_map
1088
-
1090
+                  
1089 1091
                   this.zone_names = Object.keys(this.zone_device_map)
1090 1092
                   if (this.zone_names.length > 0) {
1091 1093
                     this.zone_name = this.zone_names[0]

+ 241 - 174
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -38,7 +38,7 @@
38 38
     >
39 39
       <el-table-column label="姓名" min-width="100" align="center">
40 40
         <template slot-scope="scope">
41
-          {{ scope.row.patient }}
41
+          {{ scope.row.patient}}
42 42
         </template>
43 43
       </el-table-column>
44 44
       <el-table-column label="分区" min-width="70" align="center">
@@ -77,202 +77,269 @@
77 77
       </el-table-column>
78 78
       <el-table-column label="低分子肝素" min-width="100" align="center">
79 79
         <template slot-scope="scope">
80
-          {{
81
-            scope.row.prescription.anticoagulant_zongliang
82
-              ? scope.row.prescription.anticoagulant_zongliang
83
-              : ""
84
-          }}
80
+          <span v-if="scope.row.prescription.anticoagulant == 1">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
81
+          <span v-if="scope.row.prescription.anticoagulant == 2">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
82
+          <span v-if="scope.row.prescription.anticoagulant == 3">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'IU':''}}</span>
83
+          <span v-if="scope.row.prescription.anticoagulant == 4">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
84
+          <span v-if="scope.row.prescription.anticoagulant == 5">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
85
+
85 86
         </template>
86 87
       </el-table-column>
87
-      <el-table-column label="长期医嘱" min-width="200" align="center">
88
-        <template slot-scope="scope"> </template>
88
+
89
+      <el-table-column label="长期医嘱" min-width="440" align="center">
90
+        <template slot-scope="scope">
91
+           <span style="white-space: pre">{{getAdvice(scope.row.doctor_advice)}}</span>
92
+        </template>
89 93
       </el-table-column>
90 94
     </el-table>
91 95
   </div>
92 96
 </template>
93 97
 
94 98
 <script>
95
-import { getSchedules, getScheduleWeekDay } from "@/api/schedule";
96
-import WeekItem from "./WeekItem";
99
+  import { getSchedules, getScheduleWeekDay } from '@/api/schedule'
100
+  import WeekItem from './WeekItem'
97 101
 
98
-export default {
99
-  name: "tableWeeks",
100
-  props: {
101
-    weekTime: {
102
-      type: String,
103
-      default: "thisWeek"
104
-    }
105
-  },
102
+  export default {
103
+    name: 'tableWeeks',
104
+    props: {
105
+      weekTime: {
106
+        type: String,
107
+        default: 'thisWeek'
108
+      }
109
+    },
110
+
111
+    data() {
112
+      return {
113
+        weekArr: [
114
+          { id: 1, name: '周一' },
115
+          { id: 2, name: '周二' },
116
+          { id: 3, name: '周三' },
117
+          { id: 4, name: '周四' },
118
+          { id: 5, name: '周五' },
119
+          { id: 6, name: '周六' },
120
+          { id: 7, name: '周日' }
121
+        ],
122
+        anticoagulants_confit: null,
106 123
 
107
-  data() {
108
-    return {
109
-      weekArr: [
110
-        { id: 1, name: "周一" },
111
-        { id: 2, name: "周二" },
112
-        { id: 3, name: "周三" },
113
-        { id: 4, name: "周四" },
114
-        { id: 5, name: "周五" },
115
-        { id: 6, name: "周六" },
116
-        { id: 7, name: "周日" }
117
-      ],
118
-      anticoagulants_confit: null,
124
+        week_type: '1',
125
+        weekTitle: ['', '', '', '', '', '', ''],
126
+        weekData: {
127
+          Monday: [],
128
+          Tuesday: [],
129
+          Wednesday: [],
130
+          Thursday: [],
131
+          Friday: [],
132
+          Saturday: [],
133
+          Sunday: []
134
+        },
135
+        scheduleData: [],
136
+        modeOptions: null
137
+      }
138
+    },
139
+    watch: {
140
+      weekTime: function() {
141
+        var theType = this.weekType(this.weekTime)
142
+        this.getSchedules(theType)
143
+      }
144
+    },
145
+
146
+    methods: {
147
+      printAction(){
148
+        console.log("111111")
149
+        this.$router.push({ path: '/schedule/remind/print?week_type=' + this.week_type })
119 150
 
120
-      week_type: "1",
121
-      weekTitle: ["", "", "", "", "", "", ""],
122
-      weekData: {
123
-        Monday: [],
124
-        Tuesday: [],
125
-        Wednesday: [],
126
-        Thursday: [],
127
-        Friday: [],
128
-        Saturday: [],
129
-        Sunday: []
130 151
       },
131
-      scheduleData: [],
132
-      modeOptions: null
133
-    };
134
-  },
135
-  watch: {
136
-    weekTime: function() {
137
-      var theType = this.weekType(this.weekTime);
138
-      this.getSchedules(theType);
139
-    }
140
-  },
152
+      getScheduleWeekDay(weekType) {
153
+        getScheduleWeekDay(weekType).then(response => {
154
+          this.scheduleData = []
155
+          if (response.data.state == 1) {
156
+            this.scheduleData = response.data.data.schdules
157
+            console.log(this.scheduleData)
158
+          } else {
159
+            this.$message.error('网络错误')
160
+            return false
161
+          }
162
+        })
163
+      },
141 164
 
142
-  methods: {
143
-    printAction() {
144
-      console.log("111111");
145
-      this.$router.push({
146
-        path: "/schedule/remind/print?week_type=" + this.week_type
147
-      });
148
-    },
149
-    getScheduleWeekDay(weekType) {
150
-      getScheduleWeekDay(weekType).then(response => {
151
-        this.scheduleData = [];
152
-        if (response.data.state == 1) {
153
-          this.scheduleData = response.data.data.schdules;
154
-          console.log(this.scheduleData);
155
-        } else {
156
-          this.$message.error("网络错误");
157
-          return false;
165
+      // getSchedules(weekType) {
166
+      //   getSchedules(weekType).then(response => {
167
+      //     this.scheduleData = []
168
+      //     if (response.data.state == 1) {
169
+      //       this.weekTitle = response.data.data.weekTitle
170
+      //       var theSchedules = response.data.data.schdules
171
+      //       var that = this
172
+      //       theSchedules.forEach(function(schedule) {
173
+      //         schedule['mode_name'] = typeof (that.modeOptions[schedule.mode_id]) == 'undefined' ? '' : that.modeOptions[schedule.mode_id].name
174
+      //         var weekPath = that.weekPath(schedule.schedule_week)
175
+      //         if (weekPath.length > 0) {
176
+      //           that.weekData[weekPath].push(schedule)
177
+      //         }
178
+      //       })
179
+      //       var rowNum = 0
180
+      //       console.log(that.weekData)
181
+      //       for (var index in that.weekData) {
182
+      //         var thisLen = that.weekData[index].length
183
+      //         rowNum = rowNum >= thisLen ? rowNum : thisLen
184
+      //       }
185
+      //       console.log(rowNum)
186
+      //       for (let index = 0; index < rowNum; index++) {
187
+      //         var dataItem = {}
188
+      //         for (var weekIndex in that.weekData) {
189
+      //           var weekItem = that.weekData[weekIndex].shift()
190
+      //           console.log('weekItem', weekItem)
191
+      //           if (typeof (weekItem) != 'undefined') {
192
+      //             dataItem[weekIndex] = weekItem
193
+      //           }
194
+      //         }
195
+      //         that.scheduleData.push(dataItem)
196
+      //       }
197
+      //
198
+      //       console.log(that.scheduleData)
199
+      //
200
+      //     } else {
201
+      //       this.$message.error('网络错误')
202
+      //       return false
203
+      //     }
204
+      //   })
205
+      // },
206
+      weekType(weekTime) {
207
+        var theType = 2
208
+        switch (weekTime) {
209
+          case 'lastWeek':
210
+            theType = 1
211
+            break
212
+          case 'thisWeek':
213
+            theType = 2
214
+            break
215
+          case 'nextWeek':
216
+            theType = 3
217
+            break
218
+          case 'nextTwoWeek':
219
+            theType = 4
220
+            break
221
+          default:
222
+            theType = 2
223
+            break
158 224
         }
159
-      });
160
-    },
225
+        return theType
226
+      },
227
+      weekPath(week) {
228
+        var weekArr = {
229
+          1: 'Monday',
230
+          2: 'Tuesday',
231
+          3: 'Wednesday',
232
+          4: 'Thursday',
233
+          5: 'Friday',
234
+          6: 'Saturday',
235
+          7: 'Sunday'
236
+        }
237
+        if (typeof (weekArr[week]) == 'undefined') {
238
+          return ''
239
+        }
240
+        return weekArr[week]
241
+      }, selectWeekType(type) {
242
+        this.week_type = type
243
+        let params = {
244
+          week_type: this.week_type
245
+        }
246
+        this.getScheduleWeekDay(params)
247
+      }, getSchedulesType: function(type) {
248
+        let type_name = ''
249
+        switch (type) {
250
+          case 1:
251
+            type_name = '上午'
252
+            break
253
+          case 2:
254
+            type_name = '下午'
255
+            break
256
+          case 3:
257
+            type_name = '晚上'
258
+            break
259
+        }
260
+        return type_name
261
+      },getAdvice:function(doctor_advice) {
262
+        console.log(doctor_advice)
263
+
264
+        let name = ""
265
+        for (let i = 0; i< doctor_advice.length; i++){
266
+
267
+          let prescribing_number = ''
268
+          let single_dose = ''
269
+          let drug_spec = ''
270
+
271
+          if (doctor_advice[i].prescribing_number > 0) {
272
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
273
+          }
274
+          if (doctor_advice[i].single_dose > 0) {
275
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
276
+          }
277
+
278
+          if (doctor_advice[i].drug_spec > 0) {
279
+            drug_spec =  doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
280
+          }
281
+
282
+
283
+          name = name + doctor_advice[i].advice_name +" "+ drug_spec+" "+ prescribing_number + " "+single_dose+" " + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency +" " + doctor_advice[i].remark +"\n"
284
+
285
+          // if (doctor_advice[i].child.length > 0){
286
+          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
287
+          //     if(doctor_advice[i].child[a].prescribing_number > 0){
288
+          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
289
+          //     }else{
290
+          //       doctor_advice[i].child[a]['presc'] = ''
291
+          //     }
292
+          //
293
+          //     if(doctor_advice[i].child[a].single_dose > 0){
294
+          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
295
+          //     }else{
296
+          //       doctor_advice[i].child[a]['single'] = ''
297
+          //     }
298
+          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
299
+          //       + doctor_advice[i].child[a].advice_desc
300
+          //       + doctor_advice[i].child[a].drug_spec_unit
301
+          //       + doctor_advice[i].child[a].presc
302
+          //       + doctor_advice[i].child[a].single
303
+          //
304
+          //
305
+          //   }
306
+          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
307
+          //     + doctor_advice[i].drug_spec_unit
308
+          //     + prescribing_number
309
+          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
310
+          //
311
+          // }else{
312
+          //
313
+          //
314
+          //
315
+          // }
316
+
317
+
318
+        }
319
+
320
+
321
+        return name
161 322
 
162
-    // getSchedules(weekType) {
163
-    //   getSchedules(weekType).then(response => {
164
-    //     this.scheduleData = []
165
-    //     if (response.data.state == 1) {
166
-    //       this.weekTitle = response.data.data.weekTitle
167
-    //       var theSchedules = response.data.data.schdules
168
-    //       var that = this
169
-    //       theSchedules.forEach(function(schedule) {
170
-    //         schedule['mode_name'] = typeof (that.modeOptions[schedule.mode_id]) == 'undefined' ? '' : that.modeOptions[schedule.mode_id].name
171
-    //         var weekPath = that.weekPath(schedule.schedule_week)
172
-    //         if (weekPath.length > 0) {
173
-    //           that.weekData[weekPath].push(schedule)
174
-    //         }
175
-    //       })
176
-    //       var rowNum = 0
177
-    //       console.log(that.weekData)
178
-    //       for (var index in that.weekData) {
179
-    //         var thisLen = that.weekData[index].length
180
-    //         rowNum = rowNum >= thisLen ? rowNum : thisLen
181
-    //       }
182
-    //       console.log(rowNum)
183
-    //       for (let index = 0; index < rowNum; index++) {
184
-    //         var dataItem = {}
185
-    //         for (var weekIndex in that.weekData) {
186
-    //           var weekItem = that.weekData[weekIndex].shift()
187
-    //           console.log('weekItem', weekItem)
188
-    //           if (typeof (weekItem) != 'undefined') {
189
-    //             dataItem[weekIndex] = weekItem
190
-    //           }
191
-    //         }
192
-    //         that.scheduleData.push(dataItem)
193
-    //       }
194
-    //
195
-    //       console.log(that.scheduleData)
196
-    //
197
-    //     } else {
198
-    //       this.$message.error('网络错误')
199
-    //       return false
200
-    //     }
201
-    //   })
202
-    // },
203
-    weekType(weekTime) {
204
-      var theType = 2;
205
-      switch (weekTime) {
206
-        case "lastWeek":
207
-          theType = 1;
208
-          break;
209
-        case "thisWeek":
210
-          theType = 2;
211
-          break;
212
-        case "nextWeek":
213
-          theType = 3;
214
-          break;
215
-        case "nextTwoWeek":
216
-          theType = 4;
217
-          break;
218
-        default:
219
-          theType = 2;
220
-          break;
221 323
       }
222
-      return theType;
223 324
     },
224
-    weekPath(week) {
225
-      var weekArr = {
226
-        1: "Monday",
227
-        2: "Tuesday",
228
-        3: "Wednesday",
229
-        4: "Thursday",
230
-        5: "Friday",
231
-        6: "Saturday",
232
-        7: "Sunday"
233
-      };
234
-      if (typeof weekArr[week] == "undefined") {
235
-        return "";
236
-      }
237
-      return weekArr[week];
325
+    components: {
326
+      WeekItem
238 327
     },
239
-    selectWeekType(type) {
240
-      this.week_type = type;
328
+    created() {
329
+      this.modeOptions = this.$store.getters.treatment_mode
330
+      this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
331
+
332
+      this.week_type = new Date().getDay()
333
+      if(this.week_type == 0){
334
+        this.week_type = 7
335
+
336
+      }
241 337
       let params = {
242 338
         week_type: this.week_type
243
-      };
244
-      this.getScheduleWeekDay(params);
245
-    },
246
-    getSchedulesType: function(type) {
247
-      let type_name = "";
248
-      switch (type) {
249
-        case 1:
250
-          type_name = "上午";
251
-          break;
252
-        case 2:
253
-          type_name = "下午";
254
-          break;
255
-        case 3:
256
-          type_name = "晚上";
257
-          break;
258 339
       }
259
-      return type_name;
340
+      this.getScheduleWeekDay(params)
260 341
     }
261
-  },
262
-  components: {
263
-    WeekItem
264
-  },
265
-  created() {
266
-    this.modeOptions = this.$store.getters.treatment_mode;
267
-    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
268
-
269
-    this.week_type = new Date().getDay();
270
-    let params = {
271
-      week_type: this.week_type
272
-    };
273
-    this.getScheduleWeekDay(params);
274 342
   }
275
-};
276 343
 </script>
277 344
 
278 345
 <style rel="stylesheet/css" lang="scss">

+ 100 - 105
src/xt_pages/workforce/remind_print.vue 查看文件

@@ -18,7 +18,7 @@
18 18
       <div id="print_content">
19 19
         <div class="print_main_content">
20 20
           <div class="order_title_panl">
21
-            <span class="main_title"></span>
21
+            <span class="main_title">{{day}}排班提醒</span>
22 22
           </div>
23 23
           <div class="table_panel">
24 24
             <table class="table">
@@ -45,44 +45,39 @@
45 45
                 </tr>
46 46
               </thead>
47 47
               <tbody>
48
-                <tr
49
-                  v-for="(main_collection, index) in scheduleData"
50
-                  :key="index"
51
-                >
52
-                  <td :width="td_1_width">{{ main_collection.patient }}</td>
53
-                  <td :width="td_2_width">{{ main_collection.zone.name }}</td>
54
-                  <td :width="td_3_width">
55
-                    {{ getSchedulesType(main_collection.schedule_type) }}
56
-                  </td>
57
-                  <td :width="td_3_width">
58
-                    {{ main_collection.number.number }}
59
-                  </td>
60
-                  <td :width="td_3_width">
61
-                    {{ modeOptions[main_collection.mode_id].name }}
62
-                  </td>
63
-                  <td :width="td_3_width">
64
-                    {{
65
-                      main_collection.prescription.dialyzer_perfusion_apparatus
66
-                    }}
67
-                  </td>
68
-                  <td :width="td_3_width">
69
-                    {{
70
-                      main_collection.prescription.anticoagulant
71
-                        ? anticoagulants_confit[
72
-                            main_collection.prescription.anticoagulant
73
-                          ].name
74
-                        : ""
75
-                    }}
76
-                  </td>
77
-                  <td :width="td_3_width">
78
-                    {{
79
-                      main_collection.prescription.anticoagulant_zongliang
80
-                        ? main_collection.prescription.anticoagulant_zongliang
81
-                        : ""
82
-                    }}
83
-                  </td>
84
-                  <td :width="td_4_width"></td>
85
-                </tr>
48
+              <tr v-for="(main_collection, index) in scheduleData" :key="index">
49
+                <td :width="td_1_width">{{ main_collection.patient}}</td>
50
+                <td :width="td_1_width">{{ main_collection.zone.name }}</td>
51
+                <td :width="td_1_width">
52
+                  {{getSchedulesType(main_collection.schedule_type)}}
53
+                </td>
54
+                <td :width="td_1_width">
55
+                  {{main_collection.number.number}}
56
+
57
+                </td>
58
+                <td :width="td_1_width">
59
+                  {{modeOptions[main_collection.mode_id].name}}
60
+                </td>
61
+                <td :width="td_1_width">
62
+                  {{main_collection.prescription.dialyzer_perfusion_apparatus}}
63
+
64
+
65
+                </td>
66
+                <td :width="td_1_width">
67
+                  {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
68
+
69
+                </td>
70
+                <td :width="td_1_width">
71
+                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
72
+                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
73
+                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'IU':''}}</span>
74
+                  <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
75
+                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
76
+                </td>
77
+                <td :width="td_4_width" >
78
+                  <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
79
+                </td>
80
+              </tr>
86 81
               </tbody>
87 82
             </table>
88 83
           </div>
@@ -93,80 +88,80 @@
93 88
 </template>
94 89
 
95 90
 <script>
96
-import { getScheduleWeekDay } from "@/api/schedule";
97
-import { parseTime } from "@/utils";
98
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
99
-import print from "print-js";
100
-
101
-export default {
102
-  name: "SchedulePrint",
103
-  data() {
104
-    return {
105
-      crumbs: [
106
-        { path: false, name: "排班提醒" },
107
-        { path: false, name: "排班提醒打印" }
108
-      ],
109
-      scheduleData: [],
110
-      week_type: 0,
111
-      td_1_width: "10%",
112
-      td_2_width: "10%",
113
-      td_3_width: "25%",
114
-      td_4_width: "35%",
115
-      modeOptions: null,
116
-      anticoagulants_confit: null
117
-    };
118
-  },
119
-  components: {
120
-    BreadCrumb
121
-  },
122
-  created() {
123
-    this.modeOptions = this.$store.getters.treatment_mode;
124
-    this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
125
-    this.week_type = this.$route.query.week_type;
126
-
127
-    getScheduleWeekDay({ week_type: this.week_type })
128
-      .then(rs => {
129
-        var resp = rs.data;
91
+  import { getScheduleWeekDay } from '@/api/schedule'
92
+  import { parseTime } from '@/utils'
93
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
94
+  import print from 'print-js'
95
+
96
+  export default {
97
+    name: 'SchedulePrint',
98
+    data() {
99
+      return {
100
+        crumbs: [
101
+          { path: false, name: '排班提醒' },
102
+          { path: false, name: '排班提醒打印' }
103
+        ],
104
+        scheduleData:[],
105
+        week_type: 0,
106
+        day:'',
107
+        td_1_width: '10%',
108
+        td_2_width: '10%',
109
+        td_3_width: '25%',
110
+        td_4_width: '45%',
111
+        modeOptions: null,
112
+        anticoagulants_confit:null,
113
+      }
114
+    },
115
+    components: {
116
+      BreadCrumb
117
+    },
118
+    created() {
119
+
120
+      this.modeOptions = this.$store.getters.treatment_mode
121
+      this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
122
+      this.week_type = this.$route.query.week_type
123
+
124
+
125
+
126
+      getScheduleWeekDay({week_type: this.week_type}).then(rs => {
127
+        var resp = rs.data
130 128
         if (resp.state == 1) {
131
-          this.scheduleData = resp.data.schdules;
129
+          this.scheduleData = resp.data.schdules
132 130
         } else {
133
-          this.$message.error(resp.msg);
131
+          this.$message.error(resp.msg)
134 132
         }
133
+      }).catch(err => {
134
+        this.$message.error(err)
135 135
       })
136
-      .catch(err => {
137
-        this.$message.error(err);
138
-      });
139
-  },
140
-  methods: {
141
-    printAction: function() {
142
-      const style =
143
-        "@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }";
144
-
145
-      printJS({
146
-        printable: "print_content",
147
-        type: "html",
148
-        documentTitle: "  ",
149
-        style: style,
150
-        scanStyles: false
151
-      });
152 136
     },
153
-    getSchedulesType: function(type) {
154
-      let type_name = "";
155
-      switch (type) {
156
-        case 1:
157
-          type_name = "上午";
158
-          break;
159
-        case 2:
160
-          type_name = "下午";
161
-          break;
162
-        case 3:
163
-          type_name = "晚上";
164
-          break;
137
+    methods: {
138
+      printAction: function() {
139
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
140
+
141
+        printJS({
142
+          printable: 'print_content',
143
+          type: 'html',
144
+          documentTitle: '  ',
145
+          style: style,
146
+          scanStyles: false
147
+        })
148
+      }, getSchedulesType: function(type) {
149
+        let type_name = ''
150
+        switch (type) {
151
+          case 1:
152
+            type_name = '上午'
153
+            break
154
+          case 2:
155
+            type_name = '下午'
156
+            break
157
+          case 3:
158
+            type_name = '晚上'
159
+            break
160
+        }
161
+        return type_name
165 162
       }
166
-      return type_name;
167 163
     }
168 164
   }
169
-};
170 165
 </script>
171 166
 
172 167
 <style rel="stylesheet/scss" lang="scss" scoped>