Bladeren bron

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

XMLWAN 5 jaren geleden
bovenliggende
commit
88af040fda

+ 1 - 1
config/dev.env.js Bestand weergeven

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://api.xt.test.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
9
+  BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
   // BASE_API:'"http://localhost:9531"',
10
   // BASE_API:'"http://localhost:9531"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',

+ 2 - 2
src/xt_pages/data/druguseTemplate.vue Bestand weergeven

1211
         day_count: '',
1211
         day_count: '',
1212
 
1212
 
1213
         crumbs: [
1213
         crumbs: [
1214
-          { path: false, name: '数据字典' },
1214
+          { path: false, name: '管理中心' },
1215
           { path: 'data/druguse', name: '医嘱模版' }
1215
           { path: 'data/druguse', name: '医嘱模版' }
1216
         ],
1216
         ],
1217
         rowIndex: -1,
1217
         rowIndex: -1,
1928
                   this.$message.error(response.data.msg)
1928
                   this.$message.error(response.data.msg)
1929
                   return false
1929
                   return false
1930
                 } else {
1930
                 } else {
1931
-                  this.$message.error('添加成功')
1931
+                  this.$message.success('添加成功')
1932
 
1932
 
1933
                   this.efFormVisible = false
1933
                   this.efFormVisible = false
1934
                   this.resetForm(formName)
1934
                   this.resetForm(formName)

+ 2 - 2
src/xt_pages/data/index.vue Bestand weergeven

31
   data() {
31
   data() {
32
     return {
32
     return {
33
       crumbs: [
33
       crumbs: [
34
-        { path: false, name: '数据字典' },
35
-        { path: 'data/dictionary', name: '字段配置' }
34
+        { path: false, name: '管理中心' },
35
+        { path: 'data/dictionary', name: '数据字典' }
36
       ],
36
       ],
37
       tabMapOptions: [
37
       tabMapOptions: [
38
         { label: this.$t('data_config.patient'), key: 'patient' },
38
         { label: this.$t('data_config.patient'), key: 'patient' },

+ 1 - 1
src/xt_pages/data/printTemplate.vue Bestand weergeven

181
   data() {
181
   data() {
182
     return {
182
     return {
183
       crumbs: [
183
       crumbs: [
184
-        { path: false, name: "系统管理" },
184
+        { path: false, name: "管理中心" },
185
         { path: "data/print", name: "打印模版" }
185
         { path: "data/print", name: "打印模版" }
186
       ],
186
       ],
187
       imgUrl_One: require("@/assets/home/1.jpg"),
187
       imgUrl_One: require("@/assets/home/1.jpg"),

+ 1 - 1
src/xt_pages/data/showConfig.vue Bestand weergeven

52
     data() {
52
     data() {
53
       return {
53
       return {
54
         crumbs: [
54
         crumbs: [
55
-          { path: false, name: '数据字典' },
55
+          { path: false, name: '管理中心' },
56
           { path: '/data/showconfig', name: '显示配置' }
56
           { path: '/data/showconfig', name: '显示配置' }
57
         ],
57
         ],
58
         activeName: 'first',
58
         activeName: 'first',

+ 1 - 1
src/xt_pages/data/template.vue Bestand weergeven

27
   data() {
27
   data() {
28
     return {
28
     return {
29
       crumbs: [
29
       crumbs: [
30
-        { path: false, name: '数据字典' },
30
+        { path: false, name: '管理中心' },
31
         { path: 'data/template', name: '模版配置' },
31
         { path: 'data/template', name: '模版配置' },
32
       ],
32
       ],
33
       tabMapOptions: [
33
       tabMapOptions: [

+ 44 - 8
src/xt_pages/dialysis/bloodPresssWatch.vue Bestand weergeven

265
           align="center"
265
           align="center"
266
           width="120"
266
           width="120"
267
         ></el-table-column>
267
         ></el-table-column>
268
-        <el-table-column label="透中血压(Hgmm)" align="center">
268
+        <el-table-column label="透中血压(mmHg)" align="center">
269
           <el-table-column
269
           <el-table-column
270
             v-for="(item, index) in labelArr"
270
             v-for="(item, index) in labelArr"
271
             :key="index"
271
             :key="index"
336
           {
336
           {
337
             text: "今天",
337
             text: "今天",
338
             onClick(picker) {
338
             onClick(picker) {
339
-              picker.$emit("pick", new Date());
339
+              var date = new Date();
340
+              var year = date.getFullYear();
341
+              var month = date.getMonth() + 1;
342
+              var day = date.getDate();
343
+              if (month < 10) {
344
+                month = "0" + month;
345
+              }
346
+              if (day < 10) {
347
+                day = "0" + day;
348
+              }
349
+              var nowDate = year + "-" + month + "-" + day;
350
+              var date1 = new Date(nowDate + " 00:00:00");
351
+              picker.$emit("pick", date1.getTime());
340
             }
352
             }
341
           },
353
           },
342
           {
354
           {
343
             text: "昨天",
355
             text: "昨天",
344
             onClick(picker) {
356
             onClick(picker) {
345
-              const date = new Date();
346
-              date.setTime(date.getTime() - 3600 * 1000 * 24);
347
-              picker.$emit("pick", date);
357
+              var d = new Date();
358
+              d.setTime(d.getTime() - 3600 * 1000 * 24);
359
+              var date = d;
360
+              var year = date.getFullYear();
361
+              var month = date.getMonth() + 1;
362
+              var day = date.getDate();
363
+              if (month < 10) {
364
+                month = "0" + month;
365
+              }
366
+              if (day < 10) {
367
+                day = "0" + day;
368
+              }
369
+              var nowDate = year + "-" + month + "-" + day;
370
+              var date1 = new Date(nowDate + " 00:00:00");
371
+              picker.$emit("pick", date1.getTime());
348
             }
372
             }
349
           },
373
           },
350
           {
374
           {
351
             text: "一周前",
375
             text: "一周前",
352
             onClick(picker) {
376
             onClick(picker) {
353
-              const date = new Date();
354
-              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
355
-              picker.$emit("pick", date);
377
+              var d = new Date();
378
+              d.setTime(d.getTime() - 3600 * 1000 * 24 * 7);
379
+              var date = d;
380
+              var year = date.getFullYear();
381
+              var month = date.getMonth() + 1;
382
+              var day = date.getDate();
383
+              if (month < 10) {
384
+                month = "0" + month;
385
+              }
386
+              if (day < 10) {
387
+                day = "0" + day;
388
+              }
389
+              var nowDate = year + "-" + month + "-" + day;
390
+              var date1 = new Date(nowDate + " 00:00:00");
391
+              picker.$emit("pick", date1.getTime());
356
             }
392
             }
357
           },
393
           },
358
           {
394
           {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue Bestand weergeven

28
 
28
 
29
           <el-col :span="8" v-if="isShow('实际超滤量')">
29
           <el-col :span="8" v-if="isShow('实际超滤量')">
30
 
30
 
31
-            <el-form-item label="实际超滤量(ml): " v-if="this.template_id == 6 || this.template_id == 10">
31
+            <el-form-item label="实际超滤量(ml): " v-if="this.template_id == 6 || this.template_id == 10 || this.template_id == 11">
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
32
               <el-input v-model="form.actual_ultrafiltration"></el-input>
33
             </el-form-item>
33
             </el-form-item>
34
             <el-form-item label="实际超滤量(L): " v-else>
34
             <el-form-item label="实际超滤量(L): " v-else>

+ 2 - 13
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Bestand weergeven

691
       <span slot="footer" class="dialog-footer">
691
       <span slot="footer" class="dialog-footer">
692
         <el-button @click="handleCancle">取 消</el-button>
692
         <el-button @click="handleCancle">取 消</el-button>
693
         <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
693
         <!-- <el-button type="primary" @click="handleCommit" v-if="isPermission()">保 存</el-button> -->
694
-        <el-button type="primary" @click="handleCommit" v-if="hasPermission"
694
+        <el-button type="primary" @click="handleCommit"
695
           >保 存</el-button
695
           >保 存</el-button
696
         >
696
         >
697
-        <el-button type="primary" @click="handleSolution" v-if="isPermission()"
697
+        <el-button type="primary" @click="handleSolution"
698
           >保存为长期处方</el-button
698
           >保存为长期处方</el-button
699
         >
699
         >
700
       </span>
700
       </span>
1178
         }
1178
         }
1179
       }
1179
       }
1180
     },
1180
     },
1181
-    isPermission() {
1182
-      if (
1183
-        this.$store.getters.xt_user.user.user_type == 3 &&
1184
-        (this.$store.getters.xt_user.template_info.template_id == 2 ||
1185
-          this.$store.getters.xt_user.template_info.template_id == 6)
1186
-      ) {
1187
-        return false;
1188
-      } else {
1189
-        return true;
1190
-      }
1191
-    },
1192
     setLastRecord: function(
1181
     setLastRecord: function(
1193
       schedual,
1182
       schedual,
1194
       lastAssessmentAfterDislysis,
1183
       lastAssessmentAfterDislysis,

+ 176 - 222
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue Bestand weergeven

9
     >
9
     >
10
       <div v-show="edit == false">
10
       <div v-show="edit == false">
11
         <div class="txsj">
11
         <div class="txsj">
12
-          <el-button round :disabled="!is_has_create" @click="newRecordAction"
13
-            >新增监测</el-button
14
-          >
15
-          <el-button
16
-            round
17
-            :disabled="!is_has_modify && !is_has_modify_other"
18
-            @click="modifyRecordAction"
19
-            >修改监测</el-button
20
-          >
21
-          <el-button
22
-            round
23
-            :disabled="!is_has_del && !is_has_del_other"
24
-            @click="deleteRecordAction"
25
-            >删除监测</el-button
26
-          >
12
+          <el-button round :disabled="!is_has_create" @click="newRecordAction">新增监测</el-button>
13
+          <el-button round :disabled="!is_has_modify && !is_has_modify_other" @click="modifyRecordAction">修改监测</el-button>
14
+          <el-button round :disabled="!is_has_del && !is_has_del_other" @click="deleteRecordAction">删除监测</el-button>
27
         </div>
15
         </div>
28
         <el-table
16
         <el-table
29
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
17
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
152
             align="center"
140
             align="center"
153
             label="超滤量(ml)"
141
             label="超滤量(ml)"
154
             width="110"
142
             width="110"
155
-            v-if="isShow('超滤量') && (template_id == 6 || template_id == 10)"
143
+            v-if="isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11)"
156
           >
144
           >
157
             <template slot-scope="scope">
145
             <template slot-scope="scope">
158
               {{
146
               {{
167
             align="center"
155
             align="center"
168
             label="超滤量(L)"
156
             label="超滤量(L)"
169
             width="110"
157
             width="110"
170
-            v-if="isShow('超滤量') && template_id != 6 && template_id != 10"
158
+            v-if="isShow('超滤量') && template_id != 6 &&  template_id != 10 && template_id != 11"
171
           >
159
           >
172
             <template slot-scope="scope">
160
             <template slot-scope="scope">
173
               {{
161
               {{
212
             align="center"
200
             align="center"
213
             label="置换率(ml/min)"
201
             label="置换率(ml/min)"
214
             width="120"
202
             width="120"
215
-            v-if="isShow('置换率') && (template_id == 6 || template_id == 10)"
203
+            v-if="isShow('置换率') && (template_id == 6  || template_id == 10 || template_id == 11)"
216
           >
204
           >
217
             <template slot-scope="scope">
205
             <template slot-scope="scope">
218
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
206
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
223
             align="center"
211
             align="center"
224
             label="置换率(L/h)"
212
             label="置换率(L/h)"
225
             width="120"
213
             width="120"
226
-            v-if="isShow('置换率') && template_id != 6 && template_id != 10"
214
+            v-if="isShow('置换率') && template_id != 6 && template_id != 10 && template_id != 11"
227
           >
215
           >
228
             <template slot-scope="scope">
216
             <template slot-scope="scope">
229
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
217
               {{ scope.row.replacement_rate ? scope.row.replacement_rate : "" }}
234
             align="center"
222
             align="center"
235
             label="置换量(ml)"
223
             label="置换量(ml)"
236
             width="100"
224
             width="100"
237
-            v-if="isShow('置换量') && (template_id == 6 || template_id == 10)"
225
+            v-if="isShow('置换量') && (template_id == 6 || template_id == 10 || template_id == 11)"
238
           >
226
           >
239
             <template slot-scope="scope">
227
             <template slot-scope="scope">
240
               {{
228
               {{
250
             align="center"
238
             align="center"
251
             label="SpO₂(%)"
239
             label="SpO₂(%)"
252
             width="100"
240
             width="100"
253
-            v-if="isShow('SpO₂') && template_id != 6 && template_id != 10"
241
+            v-if="isShow('SpO₂') && template_id != 6 && template_id != 10 && template_id != 11"
254
           >
242
           >
255
             <template slot-scope="scope">
243
             <template slot-scope="scope">
256
               {{
244
               {{
266
             align="center"
254
             align="center"
267
             label="置换量(L)"
255
             label="置换量(L)"
268
             width="100"
256
             width="100"
269
-            v-if="isShow('置换量') && template_id != 6 && template_id != 10"
257
+            v-if="isShow('置换量') && template_id != 6 && template_id != 10 || template_id != 11"
270
           >
258
           >
271
             <template slot-scope="scope">
259
             <template slot-scope="scope">
272
               {{
260
               {{
383
               <el-button
371
               <el-button
384
                 size="mini"
372
                 size="mini"
385
                 type="primary"
373
                 type="primary"
386
-                @click="venousPressureChangeOne"
374
+                @click="venousPressureChange(1)"
387
                 >转换</el-button
375
                 >转换</el-button
388
               >
376
               >
389
             </el-form-item>
377
             </el-form-item>
397
               <el-button
385
               <el-button
398
                 size="mini"
386
                 size="mini"
399
                 type="primary"
387
                 type="primary"
400
-                @click="venousPressureChangeTwo"
388
+                @click="venousPressureChange(3)"
401
                 >转换</el-button
389
                 >转换</el-button
402
               >
390
               >
403
             </el-form-item>
391
             </el-form-item>
418
               <el-button
406
               <el-button
419
                 size="mini"
407
                 size="mini"
420
                 type="primary"
408
                 type="primary"
421
-                @click="venousPressureChangeThree"
409
+                @click="venousPressureChange(2)"
422
                 >转换</el-button
410
                 >转换</el-button
423
               >
411
               >
424
             </el-form-item>
412
             </el-form-item>
429
               <el-input v-model="form.ultrafiltration_rate"></el-input>
417
               <el-input v-model="form.ultrafiltration_rate"></el-input>
430
             </el-form-item>
418
             </el-form-item>
431
           </el-col>
419
           </el-col>
432
-          <el-col
433
-            :span="8"
434
-            v-if="isShow('超滤量') && (template_id != 6 || template_id != 10)"
435
-          >
420
+          <el-col :span="8" v-if="isShow('超滤量') &&(template_id != 6 || template_id != 10 || template_id != 11)">
436
             <el-form-item label="超滤量(ml):">
421
             <el-form-item label="超滤量(ml):">
437
               <el-input v-model="form.ultrafiltration_volume"></el-input>
422
               <el-input v-model="form.ultrafiltration_volume"></el-input>
438
             </el-form-item>
423
             </el-form-item>
439
           </el-col>
424
           </el-col>
440
-          <el-col
441
-            :span="8"
442
-            v-if="isShow('超滤量') && template_id != 6 && template_id != 10"
443
-          >
425
+          <el-col :span="8" v-if="isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11">
444
             <el-form-item label="超滤量(L):">
426
             <el-form-item label="超滤量(L):">
445
               <el-input v-model="form.ultrafiltration_volume"></el-input>
427
               <el-input v-model="form.ultrafiltration_volume"></el-input>
446
             </el-form-item>
428
             </el-form-item>
487
             </el-form-item>
469
             </el-form-item>
488
           </el-col>
470
           </el-col>
489
 
471
 
472
+
473
+          <el-col :span="8" v-if="isShow('肝素用量余量')">
474
+            <el-form-item label="肝素用量余量(ml):">
475
+              <el-input v-model="form.heparin"></el-input>
476
+            </el-form-item>
477
+          </el-col>
478
+
490
           <!-- </el-row>
479
           <!-- </el-row>
491
 
480
 
492
           <el-row :gutter="20"> -->
481
           <el-row :gutter="20"> -->
616
 } from "@/api/dialysis_record";
605
 } from "@/api/dialysis_record";
617
 import store from "@/store";
606
 import store from "@/store";
618
 
607
 
619
-import request from "@/utils/request";
608
+import request from '@/utils/request'
620
 
609
 
621
 export default {
610
 export default {
622
   name: "MonitorDialog",
611
   name: "MonitorDialog",
623
   data() {
612
   data() {
624
     return {
613
     return {
625
-      is_has_create: true,
626
-      is_has_modify: true,
627
-      is_has_modify_other: true,
628
-      is_has_del: true,
629
-      is_has_del_other: true,
614
+      is_has_create:true,
615
+      is_has_modify:true,
616
+      is_has_modify_other:true,
617
+      is_has_del:true,
618
+      is_has_del_other:true,
630
       visible: false,
619
       visible: false,
631
       edit: false,
620
       edit: false,
632
       current_row_class: "current-box-class",
621
       current_row_class: "current-box-class",
633
-      creator: 0,
622
+      creator:0,
634
       patient_id: 0,
623
       patient_id: 0,
635
       schedule_date: 0,
624
       schedule_date: 0,
636
       template_id: 0,
625
       template_id: 0,
660
         displacement_quantity: "", // 置换量
649
         displacement_quantity: "", // 置换量
661
         conductivity: "", // 电导度
650
         conductivity: "", // 电导度
662
         displacement_flow_quantity: "", // 置换液流量
651
         displacement_flow_quantity: "", // 置换液流量
652
+        heparin:"", //肝素用量余量
663
         ktv: "", // KT/V
653
         ktv: "", // KT/V
664
         symptom: "", // 病情变化
654
         symptom: "", // 病情变化
665
         dispose: "", // 处理
655
         dispose: "", // 处理
674
       dispose_selecteds: [],
664
       dispose_selecteds: [],
675
       dispose_options: getDataConfig("hemodialysis", "deals"),
665
       dispose_options: getDataConfig("hemodialysis", "deals"),
676
       result_selecteds: [],
666
       result_selecteds: [],
677
-      result_options: getDataConfig("hemodialysis", "results"),
678
-      value: 0,
679
-      valuetwo: 0,
680
-      valuethree: 0
667
+      result_options: getDataConfig("hemodialysis", "results")
681
     };
668
     };
682
   },
669
   },
683
   props: {
670
   props: {
717
         );
704
         );
718
       }
705
       }
719
     },
706
     },
720
-    venousPressureChangeOne() {
721
-      if (this.value == 0) {
722
-        this.form.venous_pressure = Math.ceil(
723
-          Math.round(this.form.venous_pressure * 7.5)
724
-        );
725
-        this.value = 1;
726
-        return false;
727
-      }
728
-      if (this.value == 1) {
729
-        this.form.venous_pressure = Math.ceil(
730
-          Math.round(this.form.venous_pressure / 7.5)
731
-        );
732
-        this.value = 0;
733
-        return false;
734
-      }
735
-    },
736
-    venousPressureChangeTwo() {
737
-      if (this.valuetwo == 0) {
738
-        this.form.arterial_pressure = Math.ceil(
739
-          Math.round(this.form.arterial_pressure * 7.5)
740
-        );
741
-        this.valuetwo = 1;
742
-        return false;
743
-      }
744
-      if (this.valuetwo == 1) {
745
-        this.form.arterial_pressure = Math.ceil(
746
-          Math.round(this.form.arterial_pressure / 7.5)
747
-        );
748
-        this.valuetwo = 0;
749
-        return false;
750
-      }
751
-    },
752
-    venousPressureChangeThree() {
753
-      if (this.valuethree == 0) {
754
-        this.form.transmembrane_pressure = Math.ceil(
755
-          Math.round(this.form.transmembrane_pressure * 7.5)
756
-        );
757
-        this.valuethree = 1;
758
-        return false;
759
-      }
760
-      if (this.valuethree == 1) {
761
-        this.form.transmembrane_pressure = Math.ceil(
762
-          Math.round(this.form.transmembrane_pressure / 7.5)
763
-        );
764
-        this.valuethree = 0;
765
-        return false;
766
-      }
767
-    },
768
     isShow(name) {
707
     isShow(name) {
769
       var filedList = store.getters.xt_user.fileds;
708
       var filedList = store.getters.xt_user.fileds;
770
       for (let i = 0; i < filedList.length; i++) {
709
       for (let i = 0; i < filedList.length; i++) {
782
       this.cancelEditAction();
721
       this.cancelEditAction();
783
     },
722
     },
784
     show() {
723
     show() {
785
-      this.getPermission();
724
+      this.getPermission()
786
       this.visible = true;
725
       this.visible = true;
787
     },
726
     },
788
     hide() {
727
     hide() {
839
         this.form.replacement_rate = resp.monitor.replacement_rate
778
         this.form.replacement_rate = resp.monitor.replacement_rate
840
           ? resp.monitor.replacement_rate
779
           ? resp.monitor.replacement_rate
841
           : "";
780
           : "";
781
+        this.form.heparin = resp.monitor.heparin
782
+          ? resp.monitor.heparin
783
+          : "";
842
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
784
         this.form.displacement_quantity = ""; // this.last_monitor_record.displacement_quantity;
843
         this.form.conductivity = "";
785
         this.form.conductivity = "";
844
         this.form.displacement_flow_quantity = "";
786
         this.form.displacement_flow_quantity = "";
855
         this.$message.error("请选择一条监测记录");
797
         this.$message.error("请选择一条监测记录");
856
         return;
798
         return;
857
       }
799
       }
858
-      this.creator = this.table_current_row.creator;
859
-      console.log(this.table_current_row);
860
-      console.log(this.table_current_row.creator);
861
-      console.log(this.creator);
800
+      this.creator = this.table_current_row.creator
801
+      console.log( this.table_current_row)
802
+      console.log( this.table_current_row.creator)
803
+      console.log(this.creator)
862
       this.setEditMonitor(this.table_current_row);
804
       this.setEditMonitor(this.table_current_row);
863
       this.$refs.table.setCurrentRow(null);
805
       this.$refs.table.setCurrentRow(null);
864
       this.edit = true;
806
       this.edit = true;
897
         this.form.displacement_quantity = "";
839
         this.form.displacement_quantity = "";
898
         this.form.conductivity = "";
840
         this.form.conductivity = "";
899
         this.form.displacement_flow_quantity = "";
841
         this.form.displacement_flow_quantity = "";
842
+        this.form.heparin = "";
843
+
900
         this.form.ktv = "";
844
         this.form.ktv = "";
901
         this.form.symptom = "";
845
         this.form.symptom = "";
902
         this.form.dispose = "";
846
         this.form.dispose = "";
959
           ? monitor.displacement_flow_quantity
903
           ? monitor.displacement_flow_quantity
960
           : "";
904
           : "";
961
 
905
 
906
+        this.form.heparin = monitor.heparin
907
+          ? monitor.heparin
908
+          : "";
909
+
910
+
911
+
962
         this.form.ktv = monitor.ktv;
912
         this.form.ktv = monitor.ktv;
963
         this.form.symptom = monitor.symptom;
913
         this.form.symptom = monitor.symptom;
964
         this.form.dispose = monitor.dispose;
914
         this.form.dispose = monitor.dispose;
1044
           ? 0
994
           ? 0
1045
           : parseFloat(this.form.displacement_flow_quantity);
995
           : parseFloat(this.form.displacement_flow_quantity);
1046
 
996
 
997
+
998
+      this.form.heparin =
999
+        parseFloat(this.form.heparin) == NaN
1000
+          ? 0
1001
+          : parseFloat(this.form.heparin);
1002
+
1047
       this.form.ktv =
1003
       this.form.ktv =
1048
         parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1004
         parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1049
       this.form.monitoring_date = parseInt(this.form.monitoring_date);
1005
       this.form.monitoring_date = parseInt(this.form.monitoring_date);
1050
 
1006
 
1051
-      let mode = "1";
1052
-      if (this.form.id > 0) {
1053
-        mode = "2";
1054
-        if (
1055
-          this.creator > 0 &&
1056
-          this.creator != this.$store.getters.xt_user.user.id
1057
-        ) {
1058
-          mode = "3";
1059
-        }
1007
+
1008
+      let mode = "1"
1009
+       if(this.form.id > 0){
1010
+         mode = "2"
1011
+         if(this.creator > 0 && this.creator!= this.$store.getters.xt_user.user.id){
1012
+          mode = "3"
1013
+         }
1060
       }
1014
       }
1061
-      editMonitor(this.patient_id, this.schedule_date, this.form, mode).then(
1062
-        rs => {
1063
-          var resp = rs.data;
1064
-          if (resp.state == 1) {
1065
-            var monitor = resp.data.monitor;
1066
-            if (this.isAdd) {
1067
-              this.monitors.unshift(monitor);
1068
-              this.monitors.sort((a, b) => b.operate_time - a.operate_time);
1069
-              this.monitors.reverse();
1070
-            } else {
1071
-              for (let index = 0; index < this.monitors.length; index++) {
1072
-                const m = this.monitors[index];
1073
-                if (m.id == monitor.id) {
1074
-                  for (const key in monitor) {
1075
-                    m[key] = monitor[key];
1076
-                  }
1077
-                  break;
1015
+      editMonitor(this.patient_id, this.schedule_date, this.form,mode).then(rs => {
1016
+        var resp = rs.data;
1017
+        if (resp.state == 1) {
1018
+          var monitor = resp.data.monitor;
1019
+          if (this.isAdd) {
1020
+            this.monitors.unshift(monitor);
1021
+            this.monitors.sort((a, b) => b.operate_time - a.operate_time);
1022
+            this.monitors.reverse();
1023
+          } else {
1024
+            for (let index = 0; index < this.monitors.length; index++) {
1025
+              const m = this.monitors[index];
1026
+              if (m.id == monitor.id) {
1027
+                for (const key in monitor) {
1028
+                  m[key] = monitor[key];
1078
                 }
1029
                 }
1030
+                break;
1079
               }
1031
               }
1080
             }
1032
             }
1081
-            this.reset();
1082
-          } else {
1083
-            this.form.systolic_bp =
1084
-              parseFloat(this.form.systolic_bp) == NaN
1085
-                ? 0
1086
-                : parseFloat(this.form.systolic_bp);
1087
-            this.form.diastolic_bp =
1088
-              parseFloat(this.form.diastolic_bp) == NaN
1089
-                ? 0
1090
-                : parseFloat(this.form.diastolic_bp);
1091
-            this.form.temperature =
1092
-              parseFloat(this.form.temperature) == NaN
1093
-                ? 0
1094
-                : parseFloat(this.form.temperature);
1095
-            this.form.pulse_frequency =
1096
-              parseFloat(this.form.pulse_frequency) == NaN
1097
-                ? 0
1098
-                : parseFloat(this.form.pulse_frequency);
1099
-            this.form.breathing_rated =
1100
-              parseFloat(this.form.breathing_rated) == NaN
1101
-                ? 0
1102
-                : parseFloat(this.form.breathing_rated);
1103
-            this.form.blood_flow_volume =
1104
-              parseFloat(this.form.blood_flow_volume) == NaN
1105
-                ? 0
1106
-                : parseFloat(this.form.blood_flow_volume);
1107
-            this.form.venous_pressure =
1108
-              parseFloat(this.form.venous_pressure) == NaN
1109
-                ? 0
1110
-                : parseFloat(this.form.venous_pressure);
1111
-            this.form.transmembrane_pressure =
1112
-              parseFloat(this.form.transmembrane_pressure) == NaN
1113
-                ? 0
1114
-                : parseFloat(this.form.transmembrane_pressure);
1115
-            this.form.ultrafiltration_volume =
1116
-              parseFloat(this.form.ultrafiltration_volume) == NaN
1117
-                ? 0
1118
-                : parseFloat(this.form.ultrafiltration_volume);
1119
-            this.form.ultrafiltration_rate =
1120
-              parseFloat(this.form.ultrafiltration_rate) == NaN
1121
-                ? 0
1122
-                : parseFloat(this.form.ultrafiltration_rate);
1123
-            this.form.arterial_pressure =
1124
-              parseFloat(this.form.arterial_pressure) == NaN
1125
-                ? 0
1126
-                : parseFloat(this.form.arterial_pressure);
1127
-            this.form.sodium_concentration =
1128
-              parseFloat(this.form.sodium_concentration) == NaN
1129
-                ? 0
1130
-                : parseFloat(this.form.sodium_concentration);
1131
-            this.form.dialysate_temperature =
1132
-              parseFloat(this.form.dialysate_temperature) == NaN
1133
-                ? 0
1134
-                : parseFloat(this.form.dialysate_temperature);
1135
-            this.form.replacement_rate =
1136
-              parseFloat(this.form.replacement_rate) == NaN
1137
-                ? 0
1138
-                : parseFloat(this.form.replacement_rate);
1139
-            this.form.displacement_quantity =
1140
-              parseFloat(this.form.displacement_quantity) == NaN
1141
-                ? 0
1142
-                : parseFloat(this.form.displacement_quantity);
1143
-            this.form.conductivity =
1144
-              parseFloat(this.form.conductivity) == NaN
1145
-                ? 0
1146
-                : parseFloat(this.form.conductivity);
1147
-            this.form.displacement_flow_quantity =
1148
-              parseFloat(this.form.displacement_flow_quantity) == NaN
1149
-                ? 0
1150
-                : parseFloat(this.form.displacement_flow_quantity);
1033
+          }
1034
+          this.reset();
1035
+        } else {
1036
+          this.form.systolic_bp =
1037
+            parseFloat(this.form.systolic_bp) == NaN
1038
+              ? 0
1039
+              : parseFloat(this.form.systolic_bp);
1040
+          this.form.diastolic_bp =
1041
+            parseFloat(this.form.diastolic_bp) == NaN
1042
+              ? 0
1043
+              : parseFloat(this.form.diastolic_bp);
1044
+          this.form.temperature =
1045
+            parseFloat(this.form.temperature) == NaN
1046
+              ? 0
1047
+              : parseFloat(this.form.temperature);
1048
+          this.form.pulse_frequency =
1049
+            parseFloat(this.form.pulse_frequency) == NaN
1050
+              ? 0
1051
+              : parseFloat(this.form.pulse_frequency);
1052
+          this.form.breathing_rated =
1053
+            parseFloat(this.form.breathing_rated) == NaN
1054
+              ? 0
1055
+              : parseFloat(this.form.breathing_rated);
1056
+          this.form.blood_flow_volume =
1057
+            parseFloat(this.form.blood_flow_volume) == NaN
1058
+              ? 0
1059
+              : parseFloat(this.form.blood_flow_volume);
1060
+          this.form.venous_pressure =
1061
+            parseFloat(this.form.venous_pressure) == NaN
1062
+              ? 0
1063
+              : parseFloat(this.form.venous_pressure);
1064
+          this.form.transmembrane_pressure =
1065
+            parseFloat(this.form.transmembrane_pressure) == NaN
1066
+              ? 0
1067
+              : parseFloat(this.form.transmembrane_pressure);
1068
+          this.form.ultrafiltration_volume =
1069
+            parseFloat(this.form.ultrafiltration_volume) == NaN
1070
+              ? 0
1071
+              : parseFloat(this.form.ultrafiltration_volume);
1072
+          this.form.ultrafiltration_rate =
1073
+            parseFloat(this.form.ultrafiltration_rate) == NaN
1074
+              ? 0
1075
+              : parseFloat(this.form.ultrafiltration_rate);
1076
+          this.form.arterial_pressure =
1077
+            parseFloat(this.form.arterial_pressure) == NaN
1078
+              ? 0
1079
+              : parseFloat(this.form.arterial_pressure);
1080
+          this.form.sodium_concentration =
1081
+            parseFloat(this.form.sodium_concentration) == NaN
1082
+              ? 0
1083
+              : parseFloat(this.form.sodium_concentration);
1084
+          this.form.dialysate_temperature =
1085
+            parseFloat(this.form.dialysate_temperature) == NaN
1086
+              ? 0
1087
+              : parseFloat(this.form.dialysate_temperature);
1088
+          this.form.replacement_rate =
1089
+            parseFloat(this.form.replacement_rate) == NaN
1090
+              ? 0
1091
+              : parseFloat(this.form.replacement_rate);
1092
+          this.form.displacement_quantity =
1093
+            parseFloat(this.form.displacement_quantity) == NaN
1094
+              ? 0
1095
+              : parseFloat(this.form.displacement_quantity);
1096
+          this.form.conductivity =
1097
+            parseFloat(this.form.conductivity) == NaN
1098
+              ? 0
1099
+              : parseFloat(this.form.conductivity);
1100
+          this.form.displacement_flow_quantity =
1101
+            parseFloat(this.form.displacement_flow_quantity) == NaN
1102
+              ? 0
1103
+              : parseFloat(this.form.displacement_flow_quantity);
1151
 
1104
 
1152
-            this.form.ktv =
1153
-              parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1105
+          this.form.heparin =
1106
+            parseFloat(this.form.heparin) == NaN
1107
+              ? 0
1108
+              : parseFloat(this.form.heparin);
1154
 
1109
 
1155
-            this.$message.error(resp.msg);
1156
-          }
1110
+          this.form.ktv =
1111
+            parseFloat(this.form.ktv) == NaN ? 0 : parseFloat(this.form.ktv);
1112
+
1113
+
1114
+          this.$message.error(resp.msg);
1157
         }
1115
         }
1158
-      );
1116
+      });
1159
     },
1117
     },
1160
 
1118
 
1161
     symptomTextareaBlur: function() {
1119
     symptomTextareaBlur: function() {
1215
         type: "warning"
1173
         type: "warning"
1216
       })
1174
       })
1217
         .then(() => {
1175
         .then(() => {
1218
-          let mode = "4";
1219
-          if (
1220
-            this.table_current_row.creator > 0 &&
1221
-            this.table_current_row.creator !=
1222
-              this.$store.getters.xt_user.user.id
1223
-          ) {
1224
-            mode = "5";
1176
+          let mode = "4"
1177
+          if(this.table_current_row.creator > 0 && this.table_current_row.creator != this.$store.getters.xt_user.user.id){
1178
+            mode = "5"
1225
           }
1179
           }
1226
 
1180
 
1227
           const params = {
1181
           const params = {
1228
             patient_id: this.patient_id,
1182
             patient_id: this.patient_id,
1229
             record_id: this.table_current_row.id,
1183
             record_id: this.table_current_row.id,
1230
             mode: mode
1184
             mode: mode
1185
+
1231
           };
1186
           };
1232
 
1187
 
1233
           postDelMonitorInfo(params).then(response => {
1188
           postDelMonitorInfo(params).then(response => {
1242
                 }
1197
                 }
1243
               }
1198
               }
1244
               this.$message.success("删除成功");
1199
               this.$message.success("删除成功");
1200
+
1245
             }
1201
             }
1246
           });
1202
           });
1247
         })
1203
         })
1248
         .catch(() => {});
1204
         .catch(() => {});
1249
     },
1205
     },
1250
     getPermission() {
1206
     getPermission() {
1251
-      request
1252
-        .get("/api/func_per/get", {
1207
+        request.get("/api/func_per/get", {
1253
           params: {
1208
           params: {
1254
             create_url: "/api/dislysis/monitor/edit?mode=1",
1209
             create_url: "/api/dislysis/monitor/edit?mode=1",
1255
             modify_url: "/api/dislysis/monitor/edit?mode=2",
1210
             modify_url: "/api/dislysis/monitor/edit?mode=2",
1258
             del_other_url: "/api/dialysis/monitor/del?mode=5",
1213
             del_other_url: "/api/dialysis/monitor/del?mode=5",
1259
             module: 7
1214
             module: 7
1260
           }
1215
           }
1261
-        })
1262
-        .then(res => {
1263
-          console.log(res);
1216
+        }).then(res => {
1217
+          console.log(res)
1264
           if (res.data.state == 0) {
1218
           if (res.data.state == 0) {
1265
-            this.hasPermission = false;
1219
+            this.hasPermission = false
1266
           } else if (res.data.state == 1) {
1220
           } else if (res.data.state == 1) {
1267
-            this.is_has_create = res.data.data.is_has_create;
1268
-            this.is_has_exce = res.data.data.is_has_exce;
1269
-            this.is_has_check = res.data.data.is_has_check;
1270
-            this.is_has_modify = res.data.data.is_has_modify;
1271
-            this.is_has_modify_other = res.data.data.is_has_modify_other;
1272
-            this.is_has_modify_exce = res.data.data.is_has_modify_exce;
1273
-            this.is_has_del = res.data.data.is_has_del;
1274
-            this.is_has_del_other = res.data.data.is_has_del_other;
1221
+            this.is_has_create = res.data.data.is_has_create
1222
+            this.is_has_exce = res.data.data.is_has_exce
1223
+            this.is_has_check = res.data.data.is_has_check
1224
+            this.is_has_modify = res.data.data.is_has_modify
1225
+            this.is_has_modify_other = res.data.data.is_has_modify_other
1226
+            this.is_has_modify_exce = res.data.data.is_has_modify_exce
1227
+            this.is_has_del = res.data.data.is_has_del
1228
+            this.is_has_del_other = res.data.data.is_has_del_other
1275
           }
1229
           }
1276
-        });
1277
-    }
1230
+        })
1231
+      }
1278
   }
1232
   }
1279
 };
1233
 };
1280
 </script>
1234
 </script>
1332
 .el-table__body-wrapper::-webkit-scrollbar {
1286
 .el-table__body-wrapper::-webkit-scrollbar {
1333
   height: 20px;
1287
   height: 20px;
1334
 }
1288
 }
1335
-.dialog_box .current-box-class .current-row {
1289
+.dialog_box .current-box-class .current-row{
1336
   background: #87ceff;
1290
   background: #87ceff;
1337
 }
1291
 }
1338
 .dialog_box tr:hover > td {
1292
 .dialog_box tr:hover > td {

+ 12 - 7
src/xt_pages/dialysis/details/dialysisMonitoring.vue Bestand weergeven

12
         <th width="76px">静脉压/动脉压(mmHg)</th>
12
         <th width="76px">静脉压/动脉压(mmHg)</th>
13
         <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
13
         <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
14
         <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
14
         <th v-if="isShow('跨膜压')" width="76px">跨膜压(mmhg)</th>
15
-        <th v-if="isShow('超滤量') && (template_id == 6 || template_id == 10)" width="76px">超滤量(ml)</th>
16
-        <th v-if="isShow('超滤量') && template_id != 6 && template_id != 10" width="76px">超滤量(L)</th>
15
+        <th v-if="isShow('超滤量') && (template_id == 6 || template_id == 10 || template_id == 11)" width="76px">超滤量(ml)</th>
16
+        <th v-if="isShow('超滤量') && template_id != 6 && template_id != 10 && template_id != 11" width="76px">超滤量(L)</th>
17
         <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
17
         <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
18
         <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
         <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
19
-        <th v-if="isShow('置换率')&& (template_id == 6 || template_id == 10)" width="92px">置换率(ml/min)</th>
20
-        <th v-if="isShow('置换率')&& template_id != 6 && template_id != 10" width="92px">置换率(L/h)</th>
19
+        <th v-if="isShow('置换率')&& (template_id == 6 || template_id == 10 || template_id == 11)" width="92px">置换率(ml/min)</th>
20
+        <th v-if="isShow('置换率')&& template_id != 6 && template_id != 10 && template_id != 11" width="92px">置换率(L/h)</th>
21
 
21
 
22
-        <th v-if="isShow('置换量')&& (template_id == 6 || template_id == 10)" width="92px">置换量(ml)</th>
23
-        <th v-if="isShow('置换量')&& template_id != 6 && template_id != 10" width="92px">置换量(L)</th>
24
-         <th v-if="isShow('SpO₂')&& template_id != 6 && template_id != 10" width="92px">SpO₂(%)</th>
22
+        <th v-if="isShow('置换量')&& (template_id == 6 || template_id == 10 ||  template_id == 11)" width="92px">置换量(ml)</th>
23
+        <th v-if="isShow('置换量')&& template_id != 6 && template_id != 10 && template_id != 10" width="92px">置换量(L)</th>
24
+         <th v-if="isShow('SpO₂')&& template_id != 6 && template_id != 10 && template_id != 11" width="92px">SpO₂(%)</th>
25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
25
         <th v-if="isShow('电导度')" width="92px">电导度(mS/m)</th>
26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
26
         <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
27
+        <th v-if="isShow('肝素用量余量')"  width="92px">肝素用量余量(ml)</th>
28
+
27
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>
29
         <th v-if="isShow('病情变化')" width="92px">病情变化</th>
28
         <th v-if="isShow('处理')"  width="92px">处理</th>
30
         <th v-if="isShow('处理')"  width="92px">处理</th>
29
         <th v-if="isShow('结果')" width="92px">结果</th>
31
         <th v-if="isShow('结果')" width="92px">结果</th>
45
         <td v-if="isShow('SpO₂')">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:''}}</td>
47
         <td v-if="isShow('SpO₂')">{{monitor.blood_oxygen_saturation?monitor.blood_oxygen_saturation:''}}</td>
46
         <td v-if="isShow('电导度')">{{ monitor.conductivity?monitor.conductivity:'' }}</td>
48
         <td v-if="isShow('电导度')">{{ monitor.conductivity?monitor.conductivity:'' }}</td>
47
         <th v-if="isShow('置换液流量')" >{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</th>
49
         <th v-if="isShow('置换液流量')" >{{monitor.displacement_flow_quantity?monitor.displacement_flow_quantity:''}}</th>
50
+
51
+        <th v-if="isShow('肝素用量余量')" >{{monitor.heparin?monitor.heparin:''}}</th>
52
+
48
         <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
53
         <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
49
         <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
54
         <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
50
         <td v-if="isShow('结果')">{{ monitor.result }}</td>
55
         <td v-if="isShow('结果')">{{ monitor.result }}</td>

+ 9 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Bestand weergeven

96
       <template
96
       <template
97
         v-if="
97
         v-if="
98
           org_template_info.template_id == 6 ||
98
           org_template_info.template_id == 6 ||
99
-            org_template_info.template_id == 10
99
+            org_template_info.template_id == 10 ||  org_template_info.template_id == 11
100
         "
100
         "
101
       >
101
       >
102
         <el-button
102
         <el-button
211
         v-bind:childResponse="childResponse"
211
         v-bind:childResponse="childResponse"
212
         v-if="org_template_info.template_id == 9"
212
         v-if="org_template_info.template_id == 9"
213
       ></DialysisPrintOrderNine>
213
       ></DialysisPrintOrderNine>
214
+
215
+    <DialysisPrintOrderEleven
216
+      v-bind:childResponse="childResponse"
217
+      v-if="org_template_info.template_id == 11"
218
+    ></DialysisPrintOrderEleven>
214
     </div>
219
     </div>
215
   </div>
220
   </div>
216
 </template>
221
 </template>
232
 import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
237
 import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
233
 import print from "print-js";
238
 import print from "print-js";
234
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
239
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
240
+import DialysisPrintOrderEleven from './template/DialysisPrintOrderEleven'
235
 
241
 
236
 export default {
242
 export default {
237
   name: "dialysisPrintOrder",
243
   name: "dialysisPrintOrder",
238
   components: {
244
   components: {
245
+    DialysisPrintOrderEleven,
239
     DialysisPrintOrderTen,
246
     DialysisPrintOrderTen,
240
     DialysisPrintOrderOne,
247
     DialysisPrintOrderOne,
241
     DialysisPrintOrderTwo,
248
     DialysisPrintOrderTwo,
423
         });
430
         });
424
       } else if (
431
       } else if (
425
         this.org_template_info.template_id == 6 ||
432
         this.org_template_info.template_id == 6 ||
426
-        this.org_template_info.template_id == 10
433
+        this.org_template_info.template_id == 10 ||  this.org_template_info.template_id == 11
427
       ) {
434
       ) {
428
         printJS({
435
         printJS({
429
           printable: "dialysis-print-box-1",
436
           printable: "dialysis-print-box-1",

Diff onderdrukt omdat het te groot bestand
+ 1954 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue


+ 2 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Bestand weergeven

1025
                           </span>
1025
                           </span>
1026
                     </div>
1026
                     </div>
1027
                   </td>
1027
                   </td>
1028
+
1029
+
1028
                   <td>
1030
                   <td>
1029
                   <span
1031
                   <span
1030
                     v-if="setAdminUserES(monitor.monitoring_nurse) == ''"
1032
                     v-if="setAdminUserES(monitor.monitoring_nurse) == ''"

+ 26 - 28
src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue Bestand weergeven

1383
                   </tr> -->
1383
                   </tr> -->
1384
                   <tr>
1384
                   <tr>
1385
                     <td width="70">拔针压迫:</td>
1385
                     <td width="70">拔针压迫:</td>
1386
-                    <td width="350">
1386
+                    <td width="300">
1387
                       <div style="display:flex;justify-content:space-between;">
1387
                       <div style="display:flex;justify-content:space-between;">
1388
                         <label-box
1388
                         <label-box
1389
                           showValue="自己压迫"
1389
                           showValue="自己压迫"
1405
                             afterdialysis.hemostasis_opera == 1 ? true : false
1405
                             afterdialysis.hemostasis_opera == 1 ? true : false
1406
                           "
1406
                           "
1407
                         ></label-box>
1407
                         ></label-box>
1408
-                        <label-box
1409
-                          showValue="内瘘止血带"
1410
-                          :isChecked="
1411
-                            afterdialysis.hemostasis_opera == 4 ? true : false
1412
-                          "
1413
-                        ></label-box>
1414
                       </div>
1408
                       </div>
1415
                     </td>
1409
                     </td>
1416
                     <td width="50"></td>
1410
                     <td width="50"></td>
1669
                         ></label-box>
1663
                         ></label-box>
1670
                       </div>
1664
                       </div>
1671
                     </td>
1665
                     </td>
1672
-                    <!--<td width="80"></td>-->
1673
-                    <!--<td width="60">管路:</td>-->
1674
-                    <!--<td width="220">-->
1675
-                      <!--<div style="display:flex;justify-content:space-between;">-->
1676
-                        <!--<label-box showValue="无" :isChecked="-->
1677
-                            <!--afterdialysis.channel == 1 ? true : false-->
1678
-                          <!--"></label-box>-->
1679
-                        <!--<label-box showValue="+" :isChecked="-->
1680
-                            <!--afterdialysis.channel == 2 ? true : false-->
1681
-                          <!--"></label-box>-->
1682
-                        <!--<label-box showValue="+ +" :isChecked="-->
1683
-                            <!--afterdialysis.channel == 3  ? true : false-->
1684
-                          <!--"></label-box>-->
1685
-                        <!--<label-box showValue="+ + +" :isChecked="-->
1686
-                            <!--afterdialysis.channel == 4 ? true : false-->
1687
-                          <!--"></label-box>-->
1688
-                      <!--</div>-->
1689
-                    <!--</td>-->
1666
+                    <td width="80"></td>
1667
+                    <td width="60">管路:</td>
1668
+                    <td width="220">
1669
+                      <div style="display:flex;justify-content:space-between;">
1670
+                        <label-box showValue="无" :isChecked="
1671
+                            afterdialysis.channel == 1 ? true : false
1672
+                          "></label-box>
1673
+                        <label-box showValue="+" :isChecked="
1674
+                            afterdialysis.channel == 2 ? true : false
1675
+                          "></label-box>
1676
+                        <label-box showValue="+ +" :isChecked="
1677
+                            afterdialysis.channel == 3  ? true : false
1678
+                          "></label-box>
1679
+                        <label-box showValue="+ + +" :isChecked="
1680
+                            afterdialysis.channel == 4 ? true : false
1681
+                          "></label-box>
1682
+                      </div>
1683
+                    </td>
1690
                     <td></td>
1684
                     <td></td>
1691
                   </tr>
1685
                   </tr>
1692
                 </tbody>
1686
                 </tbody>
1977
             <td width="30">医生</td>
1971
             <td width="30">医生</td>
1978
             <td width="80">
1972
             <td width="80">
1979
               <div class="under-line">
1973
               <div class="under-line">
1980
-                &nbsp
1981
-                <span v-if=" setAdminUserES(prescription.creater) == '' " >{{ getAdminUser(prescription.creater)}}</span >
1982
-                <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else  />
1974
+                &nbsp;
1975
+                <span v-if="doctorForm.url === ''">{{
1976
+                  doctorForm.doctor
1977
+                }}</span>
1978
+                <span v-if="doctorForm.url !== ''">
1979
+                  <img style="height:20px" :src="doctorForm.url" />
1980
+                </span>
1983
               </div>
1981
               </div>
1984
             </td>
1982
             </td>
1985
             <td width="50">治疗护士</td>
1983
             <td width="50">治疗护士</td>

+ 1 - 1
src/xt_pages/role/admin.vue Bestand weergeven

163
   data() {
163
   data() {
164
     return {
164
     return {
165
       crumbs: [
165
       crumbs: [
166
-        { path: false, name: "权限管理" },
166
+        { path: false, name: "管理中心" },
167
         { path: false, name: "员工管理" }
167
         { path: false, name: "员工管理" }
168
       ],
168
       ],
169
       is_loading_admins: true,
169
       is_loading_admins: true,

+ 15 - 2
src/xt_pages/role/components/AdminRoleInfoForm.vue Bestand weergeven

10
         <el-input v-model="form.name" placeholder="用户姓名"></el-input>
10
         <el-input v-model="form.name" placeholder="用户姓名"></el-input>
11
       </el-form-item>
11
       </el-form-item>
12
 
12
 
13
+      <el-form-item label="角色 : " prop="role" label-width="60px">
14
+
15
+           <el-checkbox-group v-model="form.role">
16
+            <el-checkbox label="子管理员" name="type"></el-checkbox>
17
+            <el-checkbox label="医生" name="type"></el-checkbox>
18
+            <el-checkbox label="护士" name="type"></el-checkbox>
19
+            <el-checkbox label="技师" name="type"></el-checkbox>
20
+            <el-checkbox label="运营" name="type"></el-checkbox>
21
+            <el-checkbox label="库存" name="type"></el-checkbox>
22
+            <el-checkbox label="院长" name="type"></el-checkbox>
23
+          </el-checkbox-group>
24
+        </el-form-item>
25
+
13
       <el-form-item label="职称 : ">
26
       <el-form-item label="职称 : ">
14
         <el-select v-model="form.user_type" placeholder="用户类型">
27
         <el-select v-model="form.user_type" placeholder="用户类型">
15
           <el-option
28
           <el-option
114
         },
127
         },
115
         rules: {
128
         rules: {
116
           mobile: [{ required: true, validator: checkMobile, trigger: 'blur' }],
129
           mobile: [{ required: true, validator: checkMobile, trigger: 'blur' }],
117
-          name: [{ required: true, validator: checkName, trigger: 'blur' }]
118
-
130
+          name: [{ required: true, validator: checkName, trigger: 'blur' }],
131
+          role: [{ required: true, message: '请选择角色', trigger: 'blur' }]
119
         }
132
         }
120
       }
133
       }
121
     },
134
     },

+ 18 - 5
src/xt_pages/role/components/EditRole.vue Bestand weergeven

1
 <template>
1
 <template>
2
   <el-dialog
2
   <el-dialog
3
-    title="新增用户"
4
-    width="660px"
3
+    title="新增员工"
4
+    width="750px"
5
     :visible.sync="visible"
5
     :visible.sync="visible"
6
     :before-close="_close"
6
     :before-close="_close"
7
   >
7
   >
14
             </el-form-item>
14
             </el-form-item>
15
     </el-form>-->
15
     </el-form>-->
16
     <div class="chooseuser">
16
     <div class="chooseuser">
17
-      <span style="color:#303133">选择用户:</span>
17
+      <span style="color:#303133">选择员工:</span>
18
       <el-radio v-model="checked" label="1">从已有员工中选择</el-radio>
18
       <el-radio v-model="checked" label="1">从已有员工中选择</el-radio>
19
       <el-radio v-model="checked" label="2">新增员工</el-radio>
19
       <el-radio v-model="checked" label="2">新增员工</el-radio>
20
     </div>
20
     </div>
78
 
78
 
79
           <el-input  v-model="ruleForm.phone"  maxlength="11"></el-input>
79
           <el-input  v-model="ruleForm.phone"  maxlength="11"></el-input>
80
         </el-form-item>
80
         </el-form-item>
81
+        <el-form-item label="角色" prop="role" label-width="70px">
82
+
83
+           <el-checkbox-group v-model="ruleForm.role">
84
+            <el-checkbox label="子管理员" name="type"></el-checkbox>
85
+            <el-checkbox label="医生" name="type"></el-checkbox>
86
+            <el-checkbox label="护士" name="type"></el-checkbox>
87
+            <el-checkbox label="技师" name="type"></el-checkbox>
88
+            <el-checkbox label="运营" name="type"></el-checkbox>
89
+            <el-checkbox label="库存" name="type"></el-checkbox>
90
+            <el-checkbox label="院长" name="type"></el-checkbox>
91
+          </el-checkbox-group>
92
+        </el-form-item>
81
 
93
 
82
         <el-form-item label="职称 : " label-width="50px">
94
         <el-form-item label="职称 : " label-width="50px">
83
           <el-select v-model="ruleForm.user_type" placeholder="用户类型">
95
           <el-select v-model="ruleForm.user_type" placeholder="用户类型">
160
         rules: {
172
         rules: {
161
           phone: [{ required: true, validator: checkMobile, trigger: 'blur' }],
173
           phone: [{ required: true, validator: checkMobile, trigger: 'blur' }],
162
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
174
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
163
-          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }]
175
+          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }],
164
         },
176
         },
165
         admin_user: [],
177
         admin_user: [],
166
         is_check_admin_user: [],
178
         is_check_admin_user: [],
202
           name: [
214
           name: [
203
             { required: true, message: '请输入用户名字', trigger: 'blur' },
215
             { required: true, message: '请输入用户名字', trigger: 'blur' },
204
             { max: 10, message: '10个字以内', trigger: 'blur' }
216
             { max: 10, message: '10个字以内', trigger: 'blur' }
205
-          ]
217
+          ],
218
+          role: [{ required: true, message: '请选择角色', trigger: 'blur' }]
206
         }
219
         }
207
       }
220
       }
208
     },
221
     },

+ 1 - 1
src/xt_pages/role/role.vue Bestand weergeven

161
   data: function() {
161
   data: function() {
162
     return {
162
     return {
163
       crumbs: [
163
       crumbs: [
164
-        { path: false, name: "权限管理" },
164
+        { path: false, name: "管理中心" },
165
         { path: false, name: "角色管理" }
165
         { path: false, name: "角色管理" }
166
       ],
166
       ],
167
       loading_roles: true,
167
       loading_roles: true,

+ 1 - 0
src/xt_pages/workforce/remind_print.vue Bestand weergeven

125
 
125
 
126
       getScheduleWeekDay({week_type: this.week_type}).then(rs => {
126
       getScheduleWeekDay({week_type: this.week_type}).then(rs => {
127
         var resp = rs.data
127
         var resp = rs.data
128
+        console.log(resp)
128
         if (resp.state == 1) {
129
         if (resp.state == 1) {
129
           this.scheduleData = resp.data.schdules
130
           this.scheduleData = resp.data.schdules
130
         } else {
131
         } else {