Преглед изворни кода

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

张保健 пре 5 година
родитељ
комит
a21176d4f0
33 измењених фајлова са 19429 додато и 3137 уклоњено
  1. 15 0
      config/dev.env.js
  2. 96 0
      config/index.js
  3. 15214 0
      package-lock.json
  4. 25 4
      src/api/advice.js
  5. 0 1
      src/api/dialysis.js
  6. 10 0
      src/api/patient.js
  7. 1 0
      src/store/getters.js
  8. 6 0
      src/store/modules/globalConfig.js
  9. 259 51
      src/xt_pages/data/druguseTemplate.vue
  10. 2 4
      src/xt_pages/dialysis/batch_print/batch_print_order.vue
  11. 4 2
      src/xt_pages/dialysis/batch_print/batch_print_order_five.vue
  12. 3 3
      src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue
  13. 2 3
      src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue
  14. 12 0
      src/xt_pages/dialysis/details/assessmentAfter.vue
  15. 5 0
      src/xt_pages/dialysis/details/assessmentBefore.vue
  16. 13 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  17. 10 9
      src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue
  18. 24 12
      src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue
  19. 22 10
      src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue
  20. 18 0
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  21. 1 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  22. 1 1
      src/xt_pages/dialysis/details/statOrder.vue
  23. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue
  24. 4 4
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  25. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue
  26. 9 9
      src/xt_pages/home/index.vue
  27. 158 34
      src/xt_pages/user/components/EditGroupAdvice.vue
  28. 6 13
      src/xt_pages/user/components/PatientDetail.vue
  29. 2 6
      src/xt_pages/user/components/PatientForm.vue
  30. 3332 2931
      src/xt_pages/user/doctorAdvice.vue
  31. 4 3
      src/xt_pages/user/inspection.vue
  32. 84 10
      src/xt_pages/workforce/components/tableWeeks.vue
  33. 83 21
      src/xt_pages/workforce/remind_print.vue

+ 15 - 0
config/dev.env.js Прегледај датотеку

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

+ 96 - 0
config/index.js Прегледај датотеку

@@ -0,0 +1,96 @@
1
+'use strict'
2
+// Template version: 1.2.6
3
+// see http://vuejs-templates.github.io/webpack for documentation.
4
+
5
+const path = require('path')
6
+
7
+module.exports = {
8
+  dev: {
9
+
10
+    // Paths
11
+    assetsSubDirectory: 'static',
12
+    assetsPublicPath: '/',
13
+    proxyTable: {},
14
+
15
+    // Various Dev Server settings
16
+
17
+    // can be overwritten by process.env.HOST
18
+    // if you want dev by ip, please set host: '0.0.0.0'
19
+
20
+    // host: 'xt.test.sgjyun.com',
21
+    // host: 'xt.kuyicloud.com',
22
+    host: 'xt.test.sgjyun.com',
23
+    port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
24
+    autoOpenBrowser: true,
25
+    errorOverlay: true,
26
+    notifyOnErrors: false,
27
+    poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
28
+
29
+    // Use Eslint Loader?
30
+    // If true, your code will be linted during bundling and
31
+    // linting errors and warnings will be shown in the console.
32
+    useEslint: false,
33
+
34
+    // If true, eslint errors and warnings will also be shown in the error overlay
35
+    // in the browser.
36
+    showEslintErrorsInOverlay: false,
37
+
38
+    /**
39
+     * Source Maps
40
+     */
41
+
42
+    // https://webpack.js.org/configuration/devtool/#development
43
+    devtool: '#cheap-source-map',
44
+
45
+    // If you have problems debugging vue-files in devtools,
46
+    // set this to false - it *may* help
47
+    // https://vue-loader.vuejs.org/en/options.html#cachebusting
48
+    cacheBusting: true,
49
+
50
+    // CSS Sourcemaps off by default because relative paths are "buggy"
51
+    // with this option, according to the CSS-Loader README
52
+    // (https://github.com/webpack/css-loader#sourcemaps)
53
+    // In our experience, they generally work as expected,
54
+    // just be aware of this issue when enabling this option.
55
+    cssSourceMap: false,
56
+  },
57
+
58
+  build: {
59
+    // Template for index.html
60
+    index: path.resolve(__dirname, '../dist/index.html'),
61
+
62
+    // Paths
63
+    assetsRoot: path.resolve(__dirname, '../dist'),
64
+    assetsSubDirectory: 'static',
65
+
66
+    /**
67
+     * You can set by youself according to actual condition
68
+     * You will need to set this if you plan to deploy your site under a sub path,
69
+     * for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
70
+     * then assetsPublicPath should be set to "/bar/".
71
+     * In most cases please use '/' !!!
72
+     */
73
+    // assetsPublicPath: '/vue-element-admin/', // If you are deployed on the root path, please use '/'
74
+    assetsPublicPath: './',
75
+
76
+    /**
77
+     * Source Maps
78
+     */
79
+    productionSourceMap: false,
80
+    // https://webpack.js.org/configuration/devtool/#production
81
+    devtool: '#source-map',
82
+
83
+    // Gzip off by default as many popular static hosts such as
84
+    // Surge or Netlify already gzip all static assets for you.
85
+    // Before setting to `true`, make sure to:
86
+    // npm install --save-dev compression-webpack-plugin
87
+    productionGzip: false,
88
+    productionGzipExtensions: ['js', 'css'],
89
+
90
+    // Run the build command with an extra argument to
91
+    // View the bundle analyzer report after build finishes:
92
+    // `npm run build --report`
93
+    // Set to `true` or `false` to always turn it on or off
94
+    bundleAnalyzerReport: process.env.npm_config_report
95
+  }
96
+}

Разлика између датотеке није приказан због своје велике величине
+ 15214 - 0
package-lock.json


+ 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
 

+ 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: {

+ 259 - 51
src/xt_pages/data/druguseTemplate.vue Прегледај датотеку

@@ -47,7 +47,7 @@
47 47
                 width="100"
48 48
               >
49 49
                 <template slot-scope="scope">
50
-                  <div>{{scope.row.advice_type == 1 ? "长期" : "临时"}}</div>
50
+                  <div>{{scope.row.advice_type == 1 ? '长期' : '临时'}}</div>
51 51
                 </template>
52 52
 
53 53
               </el-table-column>
@@ -90,16 +90,18 @@
90 90
                 </template>
91 91
               </el-table-column>
92 92
 
93
+
93 94
               <el-table-column
94 95
                 prop="amount1"
95 96
                 align="center"
96
-                label="规格">
97
-                <template slot-scope="scope">
97
+                label="药品规格">
98 98
                   <!-- {{drugDesc(scope.row)}} -->
99
-                  {{scope.row.advice_desc}}
100
-                </template>
99
+                  <template slot-scope="scope">
100
+                    <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
101
+                  </template>
101 102
               </el-table-column>
102 103
 
104
+
103 105
               <el-table-column
104 106
                 prop="amount2"
105 107
                 width="90"
@@ -142,6 +144,14 @@
142 144
               </el-table-column>
143 145
 
144 146
 
147
+              <el-table-column prop="blood_flow_volume" align="center" label="提醒频率">
148
+                <template slot-scope="scope">
149
+                  <span v-if="scope.row.frequency_type == 1">每次必推</span>
150
+                  <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
151
+                  <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
152
+                </template>
153
+              </el-table-column>
154
+
145 155
               <el-table-column
146 156
                 align="center"
147 157
                 label="操作"
@@ -184,8 +194,8 @@
184 194
 
185 195
                   <el-form-item label="模版类型" prop="advice_type">
186 196
                     <el-radio-group v-model="form.advice_type">
187
-                      <el-radio label="0">临时</el-radio>
188
-                      <el-radio label="1">长期</el-radio>
197
+                      <el-radio :label="0">临时</el-radio>
198
+                      <el-radio :label="1">长期</el-radio>
189 199
                     </el-radio-group>
190 200
                   </el-form-item>
191 201
 
@@ -209,11 +219,10 @@
209 219
                       {{scope.row.advice_name}}
210 220
                     </template>
211 221
                   </el-table-column>
212
-                  <el-table-column align="center" label="规格">
213
-                    <template slot-scope="scope">
214
-                      <!-- {{drugDescTwo(scope.row)}} -->
215
-                      {{scope.row.advice_desc}}
216
-                    </template>
222
+                  <el-table-column align="center" label="药品规格">
223
+                      <template slot-scope="scope">
224
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
225
+                      </template>
217 226
                   </el-table-column>
218 227
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
219 228
                     <template slot-scope="scope" v-if="scope.row.prescribing_number != ''">
@@ -239,6 +248,14 @@
239 248
                     </template>
240 249
                   </el-table-column>
241 250
 
251
+                  <el-table-column prop="blood_flow_volume" align="center" label="提醒频率" v-if="form.advice_type == 1">
252
+                    <template slot-scope="scope">
253
+                      <span v-if="scope.row.frequency_type == 1">每次必推</span>
254
+                      <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
255
+                      <span v-if="scope.row.frequency_type == 3">每周{{scope.row.weekdays}}</span>
256
+                    </template>
257
+                  </el-table-column>
258
+
242 259
                 </el-table>
243 260
               </div>
244 261
               <div slot="footer" class="dialog-footer">
@@ -260,15 +277,13 @@
260 277
                       <el-input v-model="templateForm.advice_name"></el-input>
261 278
                     </el-form-item>
262 279
                   </el-col>
263
-                  <el-col :span="12">
264
-                    <el-form-item label="规格 :">
265
-                      <el-input v-model="templateForm.advice_desc"></el-input>
266
-                    </el-form-item>
267 280
 
268 281
 
269
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
282
+
283
+                  <el-col :span="12">
284
+                    <el-form-item label="药品规格 :" prop="advice_desc">
270 285
                       <el-col :span="8">
271
-                        <el-input v-model="templateForm.drug_spec"  ></el-input>
286
+                        <el-input v-model="templateForm.advice_desc"></el-input>
272 287
                       </el-col>
273 288
                       <el-col class="line" :span="2">&nbsp;</el-col>
274 289
                       <el-col :span="14">
@@ -287,7 +302,7 @@
287 302
                           ></el-option>
288 303
                         </el-select>
289 304
                       </el-col>
290
-                    </el-form-item> -->
305
+                    </el-form-item>
291 306
                   </el-col>
292 307
                   <el-col :span="12">
293 308
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -375,6 +390,39 @@
375 390
                       </el-select>
376 391
                     </el-form-item>
377 392
                   </el-col>
393
+
394
+                  <el-col :span="24" v-if="form.advice_type&&!isAddChild">
395
+                    <el-form-item label="周期提醒 :">
396
+                      <el-radio-group v-model="templateForm.frequency_type">
397
+                        <el-radio :label="1">每次必推</el-radio>
398
+                        <el-radio :label="2">天数频率</el-radio>
399
+                        <el-radio :label="3">星期频率</el-radio>
400
+                      </el-radio-group>
401
+                    </el-form-item>
402
+                  </el-col>
403
+
404
+
405
+                  <el-col :span="12" v-if="templateForm.frequency_type == 2">
406
+                    <el-form-item prop="day_count">
407
+                      <el-input style="width: 50px" v-model="templateForm.day_count"></el-input>&nbsp;
408
+                      天/一次
409
+                    </el-form-item>
410
+                  </el-col>
411
+
412
+                  <el-col :span="24" v-if="templateForm.frequency_type == 3">
413
+                    <el-form-item prop="weekday">
414
+                      <el-checkbox-group v-model="templateForm.weekday">
415
+                        <el-checkbox label="周一" name="type"></el-checkbox>
416
+                        <el-checkbox label="周二" name="type"></el-checkbox>
417
+                        <el-checkbox label="周三" name="type"></el-checkbox>
418
+                        <el-checkbox label="周四" name="type"></el-checkbox>
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-group>
423
+                    </el-form-item>
424
+                  </el-col>
425
+
378 426
                 </el-row>
379 427
               </el-form>
380 428
               <div slot="footer" class="dialog-footer">
@@ -382,6 +430,9 @@
382 430
                 <el-button type="primary" @click="submitTemplate('templateForm')">保 存</el-button>
383 431
               </div>
384 432
             </el-dialog>
433
+            <!--TODO-->
434
+
435
+
385 436
             <el-dialog :title="editDialogTitle" :visible.sync="templateEditFormVisible" width="700px">
386 437
               <el-form
387 438
                 ref="templateFormEdit"
@@ -394,15 +445,12 @@
394 445
                     <el-form-item :label="edit_advice_name" required prop="advice_name">
395 446
                       <el-input v-model="templateFormEdit.advice_name"></el-input>
396 447
                     </el-form-item>
397
-
398 448
                   </el-col>
399 449
                   <el-col :span="12">
400
-                    <el-form-item label="规格">
401
-                      <el-input v-model="templateFormEdit.advice_desc"></el-input>
402
-                    </el-form-item>
403
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
450
+
451
+                  <el-form-item label="药品规格 :" prop="advice_desc">
404 452
                       <el-col :span="8">
405
-                        <el-input v-model="templateFormEdit.drug_spec"></el-input>
453
+                        <el-input v-model="templateFormEdit.advice_desc"></el-input>
406 454
                       </el-col>
407 455
                       <el-col class="line" :span="1">&nbsp;</el-col>
408 456
                       <el-col :span="14">
@@ -421,7 +469,7 @@
421 469
                           ></el-option>
422 470
                         </el-select>
423 471
                       </el-col>
424
-                    </el-form-item> -->
472
+                    </el-form-item>
425 473
                   </el-col>
426 474
                   <el-col :span="12">
427 475
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -510,6 +558,41 @@
510 558
                       </el-select>
511 559
                     </el-form-item>
512 560
                   </el-col>
561
+
562
+
563
+                  <el-col :span="24">
564
+                    <el-form-item label="周期提醒 :">
565
+                      <el-radio-group v-model="templateFormEdit.frequency_type">
566
+                        <el-radio :label="1">每次必推</el-radio>
567
+                        <el-radio :label="2">天数频率</el-radio>
568
+                        <el-radio :label="3">星期频率</el-radio>
569
+                      </el-radio-group>
570
+                    </el-form-item>
571
+                  </el-col>
572
+
573
+
574
+                  <el-col :span="12" v-if="templateFormEdit.frequency_type == 2">
575
+                    <el-form-item prop="day_count">
576
+                      <el-input style="width: 50px" v-model="templateFormEdit.day_count"></el-input>&nbsp;
577
+                      天/一次
578
+                    </el-form-item>
579
+                  </el-col>
580
+
581
+                  <el-col :span="24" v-if="templateFormEdit.frequency_type == 3">
582
+                    <el-form-item>
583
+                      <el-checkbox-group v-model="templateFormEdit.weekday">
584
+                        <el-checkbox label="周一" name="type"></el-checkbox>
585
+                        <el-checkbox label="周二" name="type"></el-checkbox>
586
+                        <el-checkbox label="周三" name="type"></el-checkbox>
587
+                        <el-checkbox label="周四" name="type"></el-checkbox>
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-group>
592
+                    </el-form-item>
593
+                  </el-col>
594
+
595
+
513 596
                 </el-row>
514 597
               </el-form>
515 598
               <div slot="footer" class="dialog-footer">
@@ -544,34 +627,42 @@
544 627
                       <span v-if="scope.row.parent_id > 0"> &emsp;{{scope.row.advice_name}}</span>
545 628
                     </template>
546 629
                   </el-table-column>
547
-                  <el-table-column align="center" label="规格">
548
-                    <template slot-scope="scope">
630
+                  <el-table-column align="center" label="药品规格">
549 631
                       <!-- {{drugDesc(scope.row)}} -->
550
-                      {{scope.row.advice_desc}}
551
-                    </template>
632
+                      <template slot-scope="scope">
633
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
634
+                      </template>
552 635
                   </el-table-column>
553 636
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
554 637
                     <template slot-scope="scope" v-if="scope.row.prescribing_number != ''">
555 638
                       {{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}
556 639
                     </template>
557 640
                   </el-table-column>
558
-                  <el-table-column prop="pulse_frequency" align="center" label="单次用量">
641
+                  <el-table-column align="center" label="单次用量">
559 642
                     <template slot-scope="scope" v-if="scope.row.single_dose != ''">
560 643
                       {{scope.row.single_dose}}{{scope.row.single_dose_unit}}
561 644
                     </template>
562 645
 
563 646
                   </el-table-column>
564
-                  <el-table-column prop="breathing_rate" align="center" label="给药途径">
647
+                  <el-table-column align="center" label="给药途径">
565 648
                     <template slot-scope="scope">
566 649
                       <span v-if="scope.row.parent_id == 0">{{scope.row.delivery_way}}</span>
567 650
                     </template>
568 651
 
569 652
                   </el-table-column>
570
-                  <el-table-column prop="blood_flow_volume" align="center" label="执行频率">
653
+                  <el-table-column align="center" label="执行频率">
571 654
                     <template slot-scope="scope">
572 655
                       <span v-if="scope.row.parent_id == 0">{{scope.row.execution_frequency}}</span>
573 656
                     </template>
574 657
                   </el-table-column>
658
+
659
+                  <el-table-column align="center" label="提醒频率" v-if="form.advice_type == 1">
660
+                    <template slot-scope="scope">
661
+                      <span v-if="scope.row.frequency_type == 1">每次必推</span>
662
+                      <span v-if="scope.row.frequency_type == 2">{{scope.row.day_count}}天/1次</span>
663
+                      <span v-if="scope.row.frequency_type == 3">每周{{scope.row.week_days}}</span>
664
+                    </template>
665
+                  </el-table-column>
575 666
                 </el-table>
576 667
               </div>
577 668
               <div slot="footer" class="dialog-footer">
@@ -579,6 +670,8 @@
579 670
                 <el-button type="primary" @click="modifyTemplateName">保 存</el-button>
580 671
               </div>
581 672
             </el-dialog>
673
+
674
+
582 675
             <el-dialog title="新增医嘱" :visible.sync="templateFormTwoVisible" width="700px">
583 676
               <el-form
584 677
                 ref="templateForm"
@@ -593,12 +686,10 @@
593 686
                     </el-form-item>
594 687
                   </el-col>
595 688
                   <el-col :span="12">
596
-                    <el-form-item label="规格 :">
597
-                      <el-input v-model="templateForm.advice_desc"></el-input>
598
-                    </el-form-item>
599
-                    <!-- <el-form-item label="药品规格 :" prop="drug_spec">
689
+
690
+                <el-form-item label="药品规格 :" prop="advice_desc">
600 691
                       <el-col :span="9">
601
-                        <el-input v-model="templateForm.drug_spec"></el-input>
692
+                        <el-input v-model="templateForm.advice_desc"></el-input>
602 693
                       </el-col>
603 694
                       <el-col class="line" :span="1">&nbsp;</el-col>
604 695
                       <el-col :span="14">
@@ -617,7 +708,7 @@
617 708
                           ></el-option>
618 709
                         </el-select>
619 710
                       </el-col>
620
-                    </el-form-item> -->
711
+                    </el-form-item>
621 712
                   </el-col>
622 713
                   <el-col :span="12">
623 714
                     <el-form-item label="单次用量 :" prop="single_dose">
@@ -705,7 +796,42 @@
705 796
                       </el-select>
706 797
                     </el-form-item>
707 798
                   </el-col>
799
+
800
+
801
+                  <el-col :span="24" v-if="form.advice_type == 1">
802
+                    <el-form-item label="周期提醒 :">
803
+                      <el-radio-group v-model="templateForm.frequency_type">
804
+                        <el-radio :label="1">每次必推</el-radio>
805
+                        <el-radio :label="2">天数频率</el-radio>
806
+                        <el-radio :label="3">星期频率</el-radio>
807
+                      </el-radio-group>
808
+                    </el-form-item>
809
+                  </el-col>
810
+
811
+
812
+                  <el-col :span="12" v-if="templateForm.frequency_type == 2">
813
+                    <el-form-item prop="day_count">
814
+                      <el-input style="width: 50px" v-model="templateForm.day_count"></el-input>&nbsp;
815
+                      天/一次
816
+                    </el-form-item>
817
+                  </el-col>
818
+
819
+                  <el-col :span="24" v-if="templateForm.frequency_type == 3">
820
+                    <el-form-item>
821
+                      <el-checkbox-group v-model="templateForm.weekday">
822
+                        <el-checkbox label="周一" name="type"></el-checkbox>
823
+                        <el-checkbox label="周二" name="type"></el-checkbox>
824
+                        <el-checkbox label="周三" name="type"></el-checkbox>
825
+                        <el-checkbox label="周四" name="type"></el-checkbox>
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-group>
830
+                    </el-form-item>
831
+                  </el-col>
708 832
                 </el-row>
833
+
834
+
709 835
               </el-form>
710 836
               <div slot="footer" class="dialog-footer">
711 837
                 <el-button @click="cancelHandleTwo">取消</el-button>
@@ -1015,7 +1141,7 @@
1015 1141
     DeleteDrugWay,
1016 1142
     DeleteExecutionFrequency,
1017 1143
     DeleteParentAdviceTemplate,
1018
-    getAdviceConfig,
1144
+    getAllAdviceConfig,
1019 1145
     getAllAdviceTemplate,
1020 1146
     postAdviceTemplate,
1021 1147
     UpdateAdviceTemplate,
@@ -1033,6 +1159,8 @@
1033 1159
     components: { BreadCrumb },
1034 1160
     data() {
1035 1161
       return {
1162
+        day_count: '',
1163
+
1036 1164
         crumbs: [
1037 1165
           { path: false, name: '数据字典' },
1038 1166
           { path: 'data/druguse', name: '医嘱模版' }
@@ -1103,6 +1231,9 @@
1103 1231
           advice_name: [{ required: true, message: '请填写医嘱内容' }]
1104 1232
         },
1105 1233
         templateForm: {
1234
+          frequency_type: 1,
1235
+          day_count: '',
1236
+          weekday: [],
1106 1237
           drug_spec: '',
1107 1238
           drug_spec_unit: '',
1108 1239
           advice_name: '',
@@ -1117,6 +1248,10 @@
1117 1248
         },
1118 1249
 
1119 1250
         templateFormEdit: {
1251
+          frequency_type: 0,
1252
+          day_count: '',
1253
+          weekday: [],
1254
+          week_days: '',
1120 1255
           drug_spec: '',
1121 1256
           drug_spec_unit: '',
1122 1257
           advice_name: '',
@@ -1139,7 +1274,7 @@
1139 1274
         },
1140 1275
         form: {
1141 1276
           name: '',
1142
-          advice_type: '0'
1277
+          advice_type: 0
1143 1278
 
1144 1279
         },
1145 1280
         drugwayForm: {
@@ -1225,6 +1360,7 @@
1225 1360
         }
1226 1361
       },
1227 1362
       handleCreateTemplate() {
1363
+        this.form.advice_type = 0
1228 1364
         this.templateTableVisible = true
1229 1365
       },
1230 1366
       newRecordAction() {
@@ -1235,6 +1371,7 @@
1235 1371
         this.isAddChild = false
1236 1372
         this.templateTableVisible = false
1237 1373
         this.templateFormVisible = true
1374
+
1238 1375
       }, deleteRecordAction: function() {
1239 1376
         if (this.table_current_index == -1) {
1240 1377
           this.$message.error('请选择一条医嘱记录')
@@ -1262,12 +1399,12 @@
1262 1399
         }
1263 1400
 
1264 1401
         this.isEdit = true
1265
-
1266 1402
         const adviceTable = this.adviceTableData[this.table_current_index]
1267
-
1268 1403
         for (var index in adviceTable) {
1269 1404
           this.templateForm[index] = adviceTable[index]
1270 1405
         }
1406
+        this.templateForm.weekday = adviceTable.weekdays.split(',')
1407
+
1271 1408
         this.templateFormVisible = true
1272 1409
         this.templateTableVisible = false
1273 1410
         this.dialogTitle = '编辑医嘱内容'
@@ -1280,7 +1417,6 @@
1280 1417
         }).then(() => {
1281 1418
           this.adviceTableData = []
1282 1419
           this.form.name = ''
1283
-          this.form.advice_type = ''
1284 1420
           this.templateFormVisible = false
1285 1421
           this.templateTableVisible = false
1286 1422
         }).catch(() => {
@@ -1317,7 +1453,6 @@
1317 1453
             this.handleSpanTempArr()
1318 1454
 
1319 1455
             this.form.name = ''
1320
-            this.form.advice_type = ''
1321 1456
             this.adviceTableData = []
1322 1457
             this.templateFormVisible = false
1323 1458
             this.templateTableVisible = false
@@ -1432,6 +1567,7 @@
1432 1567
           if (isNaN(this.templateForm.prescribing_number)) {
1433 1568
             this.templateForm.prescribing_number = 0
1434 1569
           }
1570
+
1435 1571
           if (valid) {
1436 1572
             const templateFormTwo = {}
1437 1573
             templateFormTwo.template_id = this.current_template_id
@@ -1487,6 +1623,7 @@
1487 1623
                 }
1488 1624
               })
1489 1625
             } else {
1626
+
1490 1627
               const templateFormTwo = {}
1491 1628
               templateFormTwo.advice_name = this.templateForm.advice_name
1492 1629
               templateFormTwo.advice_desc = this.templateForm.advice_desc
@@ -1500,6 +1637,33 @@
1500 1637
               templateFormTwo.execution_frequency = this.templateForm.execution_frequency
1501 1638
               templateFormTwo.parent_id = this.parent_id
1502 1639
 
1640
+              if (this.templateForm.frequency_type == 1) {
1641
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1642
+                templateFormTwo.day_count = '0'
1643
+                templateFormTwo.weekdays = ''
1644
+
1645
+              } else if (this.templateForm.frequency_type == 2) {
1646
+
1647
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1648
+                templateFormTwo.day_count = this.templateForm.day_count
1649
+                templateFormTwo.weekdays = ''
1650
+
1651
+              } else if (this.templateForm.frequency_type == 3) {
1652
+                templateFormTwo.frequency_type = this.templateForm.frequency_type
1653
+                templateFormTwo.day_count = '0'
1654
+                templateFormTwo.weekdays = this.templateForm.weekday.filter(function(s) {
1655
+                  return s && s.trim()
1656
+                }).join(',')
1657
+
1658
+              }
1659
+
1660
+              this.templateForm.advice_name = ''
1661
+              this.templateForm.advice_desc = ''
1662
+              this.templateForm.frequency_type = 1
1663
+              this.templateForm.day_count = ''
1664
+              this.templateForm.weekday = []
1665
+
1666
+              console.log(templateFormTwo)
1503 1667
               if (this.isEdit) {
1504 1668
                 for (let i = 0; i < this.adviceTableData.length; i++) {
1505 1669
                   if (i == this.table_current_index) {
@@ -1513,10 +1677,14 @@
1513 1677
                     this.adviceTableData[i].prescribing_number_unit = templateFormTwo.prescribing_number_unit
1514 1678
                     this.adviceTableData[i].delivery_way = templateFormTwo.delivery_way
1515 1679
                     this.adviceTableData[i].execution_frequency = templateFormTwo.execution_frequency
1680
+                    this.adviceTableData[i].frequency_type = templateFormTwo.frequency_type
1681
+                    this.adviceTableData[i].day_count = templateFormTwo.day_count
1682
+                    this.adviceTableData[i].weekdays = templateFormTwo.weekdays
1516 1683
                   }
1517 1684
                 }
1518 1685
               } else {
1519 1686
                 this.adviceTableData.unshift(templateFormTwo)
1687
+                console.log(this.adviceTableData)
1520 1688
               }
1521 1689
               this.templateFormVisible = false
1522 1690
               this.templateTableVisible = true
@@ -1694,7 +1862,7 @@
1694 1862
 
1695 1863
       getAdviceConfig() {
1696 1864
         this.adviceTemplates = []
1697
-        getAdviceConfig().then(response => {
1865
+        getAllAdviceConfig().then(response => {
1698 1866
           if (response.data.state == 1) {
1699 1867
             this.drugways = response.data.data.drugways
1700 1868
             this.executionFrequencyOptions = response.data.data.efs
@@ -1752,6 +1920,24 @@
1752 1920
             this.templateFormEdit.prescribing_number = 0
1753 1921
           }
1754 1922
           if (valid) {
1923
+            console.log(this.templateFormEdit)
1924
+
1925
+            if (this.templateFormEdit.frequency_type == 1) {
1926
+
1927
+              this.templateFormEdit.day_count = 0
1928
+              this.templateFormEdit.week_days = ''
1929
+
1930
+            } else if (this.templateFormEdit.frequency_type == 2) {
1931
+              this.templateFormEdit.day_count = parseInt(this.templateFormEdit.day_count)
1932
+              this.templateFormEdit.week_days = ''
1933
+
1934
+            } else if (this.templateFormEdit.frequency_type == 3) {
1935
+              this.templateFormEdit.day_count = 0
1936
+              this.templateFormEdit.week_days = this.templateFormEdit.weekday.filter(function(s) {
1937
+                return s && s.trim()
1938
+              }).join(',')
1939
+            }
1940
+
1755 1941
             UpdateAdviceTemplate(this.templateFormEdit.id, this.templateFormEdit).then(
1756 1942
               response => {
1757 1943
                 if (response.data.state == 0) {
@@ -1772,6 +1958,9 @@
1772 1958
                   this.adviceTemplates[this.currentIndex].execution_frequency = template.execution_frequency
1773 1959
                   this.adviceTemplates[this.currentIndex].prescribing_number = template.prescribing_number
1774 1960
                   this.adviceTemplates[this.currentIndex].prescribing_number_unit = template.prescribing_number_unit
1961
+                  this.adviceTemplates[this.currentIndex].day_count = template.day_count
1962
+                  this.adviceTemplates[this.currentIndex].week_days = template.week_days
1963
+                  this.adviceTemplates[this.currentIndex].frequency_type = template.frequency_type
1775 1964
                   this.currentIndex = -1
1776 1965
                   return false
1777 1966
                 }
@@ -1866,6 +2055,20 @@
1866 2055
         this.templateFormTwoVisible = false
1867 2056
       }, submitTemplateTwo(formName) {
1868 2057
         this.templateForm['template_id'] = this.current_template_id
2058
+        this.templateForm['advice_type'] = this.form.advice_type
2059
+
2060
+        if (this.templateForm.frequency_type == 1) {
2061
+          this.templateForm.day_count = 0
2062
+          this.templateForm.week_days = ''
2063
+        } else if (this.templateForm.frequency_type == 2) {
2064
+          this.templateForm.day_count = parseInt(this.templateForm.day_count)
2065
+          this.templateForm.week_days = ''
2066
+        } else if (this.templateForm.frequency_type == 3) {
2067
+          this.templateForm.day_count = 0
2068
+          this.templateForm.week_days = this.templateForm.weekday.filter(function(s) {
2069
+            return s && s.trim()
2070
+          }).join(',')
2071
+        }
1869 2072
         CreateSingleAdviceTemplate(this.templateForm).then(response => {
1870 2073
           if (response.data.state == 0) {
1871 2074
             this.$message.error(response.data.msg)
@@ -1880,14 +2083,13 @@
1880 2083
             objects['isNoSub'] = 2
1881 2084
 
1882 2085
             this.adviceTableDataTwo.unshift(response.data.data.template)
1883
-            // this.adviceTemplates.unshift(objects)
1884
-            // this.handleSpanTempArr()
1885
-
1886 2086
             this.getAdviceConfig()
1887 2087
             this.resetForm(formName)
1888 2088
             this.templateFormTwoVisible = false
1889
-
1890 2089
             this.$message.success('添加成功')
2090
+            this.templateForm.day_count = ''
2091
+            this.templateForm.weekday = []
2092
+            this.templateForm.frequency_type = 1
1891 2093
 
1892 2094
             return false
1893 2095
           }
@@ -1952,7 +2154,7 @@
1952 2154
           }
1953 2155
         })
1954 2156
       }, merge({ row, column, rowIndex, columnIndex }) {
1955
-        if (columnIndex === 0 || columnIndex === 1 || columnIndex === 8) {
2157
+        if (columnIndex === 0 || columnIndex === 1 || columnIndex === 9) {
1956 2158
           const _row = this.tempArr[rowIndex]
1957 2159
           const _col = _row > 0 ? 1 : 0
1958 2160
           return {
@@ -1986,6 +2188,7 @@
1986 2188
       }, cellMouseLeave: function(row, column, cell, event) {
1987 2189
         this.hoverOrderArr = []
1988 2190
       }, openEdit(index, row) {
2191
+        console.log(row)
1989 2192
         this.hoverOrderArr = []
1990 2193
         this.currentIndex = index
1991 2194
         this.templateFormEdit.drug_spec_unit = row.drug_spec_unit
@@ -2000,6 +2203,10 @@
2000 2203
         this.templateFormEdit.single_dose_unit = row.single_dose_unit
2001 2204
         this.templateFormEdit.id = row.id
2002 2205
         this.templateFormEdit.parent_id = row.parent_id
2206
+        this.templateFormEdit.day_count = row.day_count
2207
+        this.templateFormEdit.frequency_type = row.frequency_type
2208
+        this.templateFormEdit.weekday = row.week_days.split(',')
2209
+
2003 2210
         this.templateEditFormVisible = true
2004 2211
         if (row.parent_id > 0) {
2005 2212
           this.editDialogTitle = '编辑子药'
@@ -2175,6 +2382,7 @@
2175 2382
         this.current_template_id = row.template_id
2176 2383
         this.current_template_name = row.name
2177 2384
         this.form.name = row.name
2385
+        this.form.advice_type = row.advice_type
2178 2386
         this.templateTableTwoVisible = true
2179 2387
         this.adviceTableDataTwo = []
2180 2388
         for (let i = 0; i < this.adviceTemplates.length; i++) {

+ 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>

+ 12 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue Прегледај датотеку

@@ -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>
@@ -366,6 +372,12 @@
366 372
           return '-'
367 373
           break
368 374
       }
375
+    },breathing_rate:function(){
376
+      if (this.record.id == 0) {
377
+        return '-'
378
+      }
379
+      return this.record.breathing_rate
380
+
369 381
     },
370 382
     temperature: function() {
371 383
       if (this.record.id == 0) {

+ 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>

+ 13 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Прегледај датотеку

@@ -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"> -->
@@ -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
           }
@@ -583,6 +593,8 @@
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 595
 
596
+        data['breathing_rate'] = this.form.breathing_rate ? parseFloat(this.form.breathing_rate) : 0
597
+
586 598
 
587 599
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
588 600
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0

+ 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
 

+ 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>

+ 18 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Прегледај датотеку

@@ -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>
@@ -431,6 +437,7 @@ export default {
431 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: '',
@@ -617,6 +624,14 @@ export default {
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,6 +671,9 @@ export default {
656 671
           case 'ductus_arantii':
657 672
             this.assessmentBeforeDislysis.ductus_arantii = val.value.join(',')
658 673
             break
674
+          case 'puncture_needle':
675
+            this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
676
+            break
659 677
 
660 678
 
661 679
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Прегледај датотеку

@@ -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>

+ 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>

+ 2 - 2
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>

+ 4 - 4
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>

+ 2 - 2
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>

+ 9 - 9
src/xt_pages/home/index.vue Прегледај датотеку

@@ -218,15 +218,15 @@ export default {
218 218
       this.GetRemindPatientList(params)
219 219
     },
220 220
     GetRemindPatientList(params){
221
-      // GetRemind(params).then(response => {
222
-      //   if (response.data.state == 1) {
223
-      //     this.patientData = response.data.data.patients
224
-      //     this.total = response.data.data.total
225
-      //   } else {
226
-      //     this.$message.error(response.data.msg)
227
-      //   }
228
-      // }).catch(e => {
229
-      // })
221
+      GetRemind(params).then(response => {
222
+        if (response.data.state == 1) {
223
+          this.patientData = response.data.data.patients
224
+          this.total = response.data.data.total
225
+        } else {
226
+          this.$message.error(response.data.msg)
227
+        }
228
+      }).catch(e => {
229
+      })
230 230
     },
231 231
     GetPatientTotal() {
232 232
       GetPatientTotal().then(response => {

+ 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: [],

+ 6 - 13
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' }

+ 2 - 6
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="传染病周期提醒: " >

Разлика између датотеке није приказан због своје велике величине
+ 3332 - 2931
src/xt_pages/user/doctorAdvice.vue


+ 4 - 3
src/xt_pages/user/inspection.vue Прегледај датотеку

@@ -86,8 +86,8 @@
86 86
 
87 87
       <el-form :model="form"  ref="form" label-position="top">
88 88
 
89
-        <el-row v-if="form.formItem[0].project_id == 14">
90
-          <el-col :span="24">
89
+        <el-row >
90
+          <el-col :span="24" v-if="form.formItem[0].project_id == 14">
91 91
             <el-form-item label="传染病周期提醒: " >
92 92
               <el-radio-group v-model="form.remind_cycle">
93 93
                 <el-radio :label="1">一月一次</el-radio>
@@ -304,6 +304,7 @@ export default {
304 304
           select_options: this.project.inspection_reference[index].range_options.split(","),
305 305
           unit: this.project.inspection_reference[index].unit,
306 306
         });
307
+
307 308
       }
308 309
 
309 310
       this.dialogFormVisible = true;
@@ -550,7 +551,7 @@ export default {
550 551
                 var range_max = parseFloat(item.range_max);
551 552
                 if (value < range_min) {
552 553
                   item.value_direction = "↓";
553
-                }else if (value > range_max) {
554
+                } else if (value > range_max) {
554 555
                   item.value_direction = "↑";
555 556
                 }
556 557
               }

+ 84 - 10
src/xt_pages/workforce/components/tableWeeks.vue Прегледај датотеку

@@ -26,49 +26,57 @@
26 26
       border
27 27
       :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
28 28
       style="width: 100%">
29
-      <el-table-column label="姓名" min-width="120" align="center">
29
+      <el-table-column label="姓名" min-width="100" align="center">
30 30
         <template slot-scope="scope">
31 31
           {{ scope.row.patient}}
32 32
         </template>
33 33
       </el-table-column>
34
-      <el-table-column label="分区" min-width="120" align="center">
34
+      <el-table-column label="分区" min-width="100" align="center">
35 35
         <template slot-scope="scope">
36 36
           {{scope.row.zone.name}}
37 37
         </template>
38 38
       </el-table-column>
39
-      <el-table-column label="班次" min-width="120" align="center">
39
+      <el-table-column label="班次" min-width="100" align="center">
40 40
         <template slot-scope="scope">
41 41
           {{getSchedulesType(scope.row.schedule_type)}}
42 42
         </template>
43 43
       </el-table-column>
44
-      <el-table-column label="机号" min-width="120" align="center">
44
+      <el-table-column label="机号" min-width="100" align="center">
45 45
         <template slot-scope="scope">
46 46
           {{scope.row.number.number}}
47 47
         </template>
48 48
       </el-table-column>
49
-      <el-table-column label="透析模式" min-width="120" align="center">
49
+      <el-table-column label="透析模式" min-width="100" align="center">
50 50
         <template slot-scope="scope">
51 51
           {{modeOptions[scope.row.mode_id].name}}
52 52
         </template>
53 53
       </el-table-column>
54
-      <el-table-column label="透析器" min-width="120" align="center">
54
+      <el-table-column label="透析器" min-width="100" align="center">
55 55
         <template slot-scope="scope">
56 56
           {{scope.row.prescription.dialyzer_perfusion_apparatus}}
57 57
         </template>
58 58
       </el-table-column>
59
-      <el-table-column label="抗凝剂" min-width="120" align="center">
59
+      <el-table-column label="抗凝剂" min-width="100" align="center">
60 60
         <template slot-scope="scope">
61 61
           {{ scope.row.prescription.anticoagulant ? anticoagulants_confit[scope.row.prescription.anticoagulant].name :
62 62
           ''}}
63 63
         </template>
64 64
       </el-table-column>
65
-      <el-table-column label="低分子肝素" min-width="120" align="center">
65
+      <el-table-column label="总量" min-width="100" align="center">
66 66
         <template slot-scope="scope">
67
-          {{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang:''}}
67
+          <span v-if="scope.row.prescription.anticoagulant == 1">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
68
+          <span v-if="scope.row.prescription.anticoagulant == 2">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
69
+          <span v-if="scope.row.prescription.anticoagulant == 3">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'IU':''}}</span>
70
+          <span v-if="scope.row.prescription.anticoagulant == 4">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
71
+          <span v-if="scope.row.prescription.anticoagulant == 5">{{scope.row.prescription.anticoagulant_zongliang?scope.row.prescription.anticoagulant_zongliang+'mg':''}}</span>
72
+
68 73
         </template>
74
+
75
+
69 76
       </el-table-column>
70
-      <el-table-column label="长期医嘱" min-width="120" align="center">
77
+      <el-table-column label="长期医嘱" min-width="440" align="center">
71 78
         <template slot-scope="scope">
79
+           <span style="white-space: pre">{{getAdvice(scope.row.doctor_advice)}}</span>
72 80
         </template>
73 81
       </el-table-column>
74 82
     </el-table>
@@ -238,6 +246,68 @@
238 246
             break
239 247
         }
240 248
         return type_name
249
+      },getAdvice:function(doctor_advice) {
250
+        console.log(doctor_advice)
251
+
252
+        let name = ""
253
+        for (let i = 0; i< doctor_advice.length; i++){
254
+
255
+          let prescribing_number = ''
256
+          let single_dose = ''
257
+          let drug_spec = ''
258
+
259
+          if (doctor_advice[i].prescribing_number > 0) {
260
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
261
+          }
262
+          if (doctor_advice[i].single_dose > 0) {
263
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
264
+          }
265
+
266
+          if (doctor_advice[i].drug_spec > 0) {
267
+            drug_spec =  doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
268
+          }
269
+
270
+
271
+          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"
272
+
273
+          // if (doctor_advice[i].child.length > 0){
274
+          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
275
+          //     if(doctor_advice[i].child[a].prescribing_number > 0){
276
+          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
277
+          //     }else{
278
+          //       doctor_advice[i].child[a]['presc'] = ''
279
+          //     }
280
+          //
281
+          //     if(doctor_advice[i].child[a].single_dose > 0){
282
+          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
283
+          //     }else{
284
+          //       doctor_advice[i].child[a]['single'] = ''
285
+          //     }
286
+          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
287
+          //       + doctor_advice[i].child[a].advice_desc
288
+          //       + doctor_advice[i].child[a].drug_spec_unit
289
+          //       + doctor_advice[i].child[a].presc
290
+          //       + doctor_advice[i].child[a].single
291
+          //
292
+          //
293
+          //   }
294
+          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
295
+          //     + doctor_advice[i].drug_spec_unit
296
+          //     + prescribing_number
297
+          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
298
+          //
299
+          // }else{
300
+          //
301
+          //
302
+          //
303
+          // }
304
+
305
+
306
+        }
307
+
308
+
309
+        return name
310
+
241 311
       }
242 312
     },
243 313
     components: {
@@ -248,6 +318,10 @@
248 318
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
249 319
 
250 320
       this.week_type = new Date().getDay()
321
+      if(this.week_type == 0){
322
+        this.week_type = 7
323
+
324
+      }
251 325
       let params = {
252 326
         week_type: this.week_type
253 327
       }

+ 83 - 21
src/xt_pages/workforce/remind_print.vue Прегледај датотеку

@@ -13,53 +13,56 @@
13 13
       <div id="print_content">
14 14
         <div class="print_main_content">
15 15
           <div class="order_title_panl">
16
-            <span class="main_title"></span>
16
+            <span class="main_title">{{day}}排班提醒</span>
17 17
           </div>
18 18
           <div class="table_panel">
19 19
             <table class="table">
20 20
               <thead>
21 21
               <tr>
22 22
                 <td :width="td_1_width">姓名</td>
23
-                <td :width="td_2_width">分区</td>
24
-                <td :width="td_3_width">班次</td>
25
-                <td :width="td_3_width">机号</td>
26
-                <td :width="td_3_width">透析模式</td>
27
-                <td :width="td_3_width">透析器</td>
28
-                <td :width="td_3_width">抗凝剂</td>
29
-                <td :width="td_3_width">低分子肝素</td>
30
-                <td :width="td_3_width">长期医嘱</td>
23
+                <td :width="td_1_width">分区</td>
24
+                <td :width="td_1_width">班次</td>
25
+                <td :width="td_1_width">机号</td>
26
+                <td :width="td_1_width">透析模式</td>
27
+                <td :width="td_1_width">透析器</td>
28
+                <td :width="td_1_width">抗凝剂</td>
29
+                <td :width="td_1_width">总量</td>
30
+                <td :width="td_4_width">长期医嘱</td>
31 31
               </tr>
32 32
               </thead>
33 33
               <tbody>
34 34
               <tr v-for="(main_collection, index) in scheduleData" :key="index">
35 35
                 <td :width="td_1_width">{{ main_collection.patient}}</td>
36
-                <td :width="td_2_width">{{ main_collection.zone.name }}</td>
37
-                <td :width="td_3_width">
36
+                <td :width="td_1_width">{{ main_collection.zone.name }}</td>
37
+                <td :width="td_1_width">
38 38
                   {{getSchedulesType(main_collection.schedule_type)}}
39 39
                 </td>
40
-                <td :width="td_3_width">
40
+                <td :width="td_1_width">
41 41
                   {{main_collection.number.number}}
42 42
 
43 43
                 </td>
44
-                <td :width="td_3_width">
44
+                <td :width="td_1_width">
45 45
                   {{modeOptions[main_collection.mode_id].name}}
46 46
                 </td>
47
-                <td :width="td_3_width">
47
+                <td :width="td_1_width">
48 48
                   {{main_collection.prescription.dialyzer_perfusion_apparatus}}
49 49
 
50 50
 
51 51
                 </td>
52
-                <td :width="td_3_width">
53
-                  {{main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
52
+                <td :width="td_1_width">
53
+                  {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
54 54
 
55 55
                 </td>
56
-                <td :width="td_3_width">
57
-                  {{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang:''}}
56
+                <td :width="td_1_width">
57
+                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
58
+                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
59
+                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'IU':''}}</span>
60
+                  <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
61
+                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
58 62
                 </td>
59 63
                 <td :width="td_4_width" >
60
-
64
+                  <span style="white-space: pre">{{getAdvice(main_collection.doctor_advice)}}</span>
61 65
                 </td>
62
-
63 66
               </tr>
64 67
               </tbody>
65 68
             </table>
@@ -86,10 +89,11 @@
86 89
         ],
87 90
         scheduleData:[],
88 91
         week_type: 0,
92
+        day:'',
89 93
         td_1_width: '10%',
90 94
         td_2_width: '10%',
91 95
         td_3_width: '25%',
92
-        td_4_width: '35%',
96
+        td_4_width: '45%',
93 97
         modeOptions: null,
94 98
         anticoagulants_confit:null,
95 99
       }
@@ -109,6 +113,7 @@
109 113
         var resp = rs.data
110 114
         if (resp.state == 1) {
111 115
           this.scheduleData = resp.data.schdules
116
+          this.day = resp.data.day
112 117
         } else {
113 118
           this.$message.error(resp.msg)
114 119
         }
@@ -117,6 +122,63 @@
117 122
       })
118 123
     },
119 124
     methods: {
125
+      getAdvice:function(doctor_advice) {
126
+        let name = ""
127
+        for (let i = 0; i< doctor_advice.length; i++){
128
+
129
+          let prescribing_number = ''
130
+          let drug_spec = ''
131
+          let single_dose = ''
132
+
133
+          if (doctor_advice[i].prescribing_number > 0) {
134
+            prescribing_number = doctor_advice[i].prescribing_number + doctor_advice[i].prescribing_number_unit
135
+          }
136
+          if (doctor_advice[i].single_dose > 0) {
137
+            single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
138
+          }
139
+
140
+          if (doctor_advice[i].advice_desc > 0) {
141
+            drug_spec =  doctor_advice[i].advice_desc + doctor_advice[i].drug_spec_unit
142
+          }
143
+
144
+          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"
145
+          // if (doctor_advice[i].child.length > 0){
146
+          //   for (let a = 0 ; a < doctor_advice[a].child.length; a++){
147
+          //     if(doctor_advice[i].child[a].prescribing_number > 0){
148
+          //       doctor_advice[i].child[a]['presc'] = doctor_advice[i].child[a].prescribing_number + doctor_advice[i].child[a].prescribing_number_unit
149
+          //     }else{
150
+          //       doctor_advice[i].child[a]['presc'] = ''
151
+          //     }
152
+          //
153
+          //     if(doctor_advice[i].child[a].single_dose > 0){
154
+          //       doctor_advice[i].child[a]['single'] = " "+' 单次用量 '+" "+doctor_advice[i].child[a].single_dose + doctor_advice[i].child[a].single_dose_unit
155
+          //     }else{
156
+          //       doctor_advice[i].child[a]['single'] = ''
157
+          //     }
158
+          //     name = name+"▲"+doctor_advice[i].child[a].advice_name+""
159
+          //       + doctor_advice[i].child[a].advice_desc
160
+          //       + doctor_advice[i].child[a].drug_spec_unit
161
+          //       + doctor_advice[i].child[a].presc
162
+          //       + doctor_advice[i].child[a].single
163
+          //
164
+          //
165
+          //   }
166
+          //   return  doctor_advice[i].advice_name +"  "+ doctor_advice[i].advice_desc+" "
167
+          //     + doctor_advice[i].drug_spec_unit
168
+          //     + prescribing_number
169
+          //     + " "+single_dose+" "+ " "+doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +name
170
+          //
171
+          // }else{
172
+          //
173
+          //
174
+          //
175
+          // }
176
+
177
+        }
178
+
179
+        return name
180
+
181
+      },
120 182
       printAction: function() {
121 183
         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; } }'
122 184