瀏覽代碼

Merge branch '20220812' of http://git.shengws.com/csx/Vue_New into 2022-10-17_vue_schedule_branch

test_user 2 年之前
父節點
當前提交
35d2ed5673
共有 31 個文件被更改,包括 5262 次插入2314 次删除
  1. 11 0
      src/router/modules/dialysis.js
  2. 2 2
      src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue
  3. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue
  4. 26 0
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  5. 1 1
      src/xt_pages/dialysis/details/assessmentAfter.vue
  6. 1 1
      src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue
  7. 238 108
      src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue
  8. 183 68
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  9. 881 662
      src/xt_pages/dialysis/details/dialog/computer_dialog.vue
  10. 64 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  11. 1571 1098
      src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue
  12. 42 12
      src/xt_pages/dialysis/details/dialog/finish_dialog.vue
  13. 142 51
      src/xt_pages/dialysis/details/dialog/monitor_dialog.vue
  14. 229 170
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  15. 791 0
      src/xt_pages/dialysis/doctorAdvicePrintOne.vue
  16. 13 3
      src/xt_pages/dialysis/newDoctorAdvice.vue
  17. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue
  18. 11 5
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyTwo.vue
  19. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue
  20. 1 1
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  21. 2 3
      src/xt_pages/stock/drugs/components/drugQuery.vue
  22. 292 2
      src/xt_pages/workforce/components/editTableData.vue
  23. 14 14
      src/xt_pages/workforce/components/nextTableWeeks.vue
  24. 400 30
      src/xt_pages/workforce/components/tableData.vue
  25. 1 1
      src/xt_pages/workforce/components/tableDataModeTwo.vue
  26. 1 1
      src/xt_pages/workforce/components/tableWeeks.vue
  27. 66 56
      src/xt_pages/workforce/next_remind_print.vue
  28. 230 1
      src/xt_pages/workforce/printOne.vue
  29. 7 1
      src/xt_pages/workforce/remind_print_setting.vue
  30. 25 5
      src/xt_pages/workforce/remind_print_setting_one.vue
  31. 13 13
      src/xt_permission.js

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

67
         noCache: true
67
         noCache: true
68
       }
68
       }
69
     },
69
     },
70
+    {
71
+      path: '/dialysis/doctorAdvicePrint/one',
72
+      component: () => import('@/xt_pages/dialysis/doctorAdvicePrintOne'),
73
+      name: '透析医嘱打印',
74
+      hidden: true,
75
+      is_menu: false,
76
+      meta: {
77
+        title: '透析医嘱打印',
78
+        noCache: true
79
+      }
80
+    },
70
 
81
 
71
     // {
82
     // {
72
     //   path: '/dialysis/doctorAdviceStaticPrint',
83
     //   path: '/dialysis/doctorAdviceStaticPrint',

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

865
                     
865
                     
866
                   </td>
866
                   </td>
867
                 </tr>
867
                 </tr>
868
-                <tr>
868
+                <!-- <tr>
869
                <td style="text-align:left;" colspan="8" >
869
                <td style="text-align:left;" colspan="8" >
870
                  <span style="display:inline-block;margin-left:15px;">血管通路皮肤情况:
870
                  <span style="display:inline-block;margin-left:15px;">血管通路皮肤情况:
871
                    <label-box
871
                    <label-box
905
                     ></label-box>
905
                     ></label-box>
906
                  </span>
906
                  </span>
907
                </td>
907
                </td>
908
-              </tr>
908
+              </tr> -->
909
                <!-- <tr>
909
                <!-- <tr>
910
                 <td style="text-align:left;" colspan="8">
910
                 <td style="text-align:left;" colspan="8">
911
                 <span style="display:inline-block;margin-left:15px;">皮肤:</span>
911
                 <span style="display:inline-block;margin-left:15px;">皮肤:</span>

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue 查看文件

95
                         <td width="40">透析备注:</td>
95
                         <td width="40">透析备注:</td>
96
                         <td width="500">
96
                         <td width="500">
97
                             <div class="under-line">
97
                             <div class="under-line">
98
-                            {{ record.prescription.dialysis_remark ? record.prescription.dialysis_remark : '' }}
98
+                            {{ record.prescription.dialysis_remark ? record.prescription.dialysis_remark : record.prescription.remark}}
99
                             </div>
99
                             </div>
100
                         </td>
100
                         </td>
101
                         </tr>
101
                         </tr>

+ 26 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

551
             <span class="unit"  v-else>{{ reduce_amount != "0" ? "iu" : "" }}</span>
551
             <span class="unit"  v-else>{{ reduce_amount != "0" ? "iu" : "" }}</span>
552
           </span>
552
           </span>
553
         </li>
553
         </li>
554
+
555
+        <li v-if="isShow('开药数量')">
556
+          <label>开药数量(支): </label>
557
+          <span class="content">{{this.prescription.prescribing_number}}</span>
558
+        </li>
559
+
560
+        <li v-if="isShow('处方钠')">
561
+          <label>处方钠: </label>
562
+          <span class="content">{{this.prescription.prescription_sodium}}</span>
563
+        </li>
564
+
565
+        <li v-if="isShow('开始钠')">
566
+          <label>开始钠: </label>
567
+          <span class="content">{{this.prescription.start_sodium}}</span>
568
+        </li>
569
+
570
+        <li v-if="isShow('钠曲线')">
571
+          <label>钠曲线: </label>
572
+          <span class="content">{{this.prescription.sodium_curve}}</span>
573
+        </li>
574
+
575
+        <li v-if="isShow('病情处理')">
576
+          <label>病情处理: </label>
577
+          <span class="content">{{this.prescription.treatment_remark}}</span>
578
+        </li>
579
+
554
        
580
        
555
       </ul>
581
       </ul>
556
     </div>
582
     </div>

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

40
         <li v-if="isShow('实际置换量')">
40
         <li v-if="isShow('实际置换量')">
41
           <label>实际置换量 : </label>
41
           <label>实际置换量 : </label>
42
           <span class="content">{{ actual_displacement }}</span>
42
           <span class="content">{{ actual_displacement }}</span>
43
-          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id != 13 || this.$store.getters.xt_user.template_info.template_id != 40">ml</span>
43
+          <span class="unit" v-if="this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21">ml</span>
44
           <span class="unit" v-else>L</span>
44
           <span class="unit" v-else>L</span>
45
         </li>
45
         </li>
46
         <li v-if="isShow('压迫后内瘘震颤')">
46
         <li v-if="isShow('压迫后内瘘震颤')">

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

442
         <el-row :gutter="20"> -->
442
         <el-row :gutter="20"> -->
443
 
443
 
444
         <el-col :span="8" v-if="isShow('实际置换量')">
444
         <el-col :span="8" v-if="isShow('实际置换量')">
445
-          <el-form-item v-if="this.template_id == 20 || this.template_id == 21 || this.template_id == 13" label="实际置换量(ml): ">
445
+          <el-form-item v-if="this.template_id == 20 || this.template_id == 21" label="实际置换量(ml): ">
446
             <el-input v-model="form.actual_displacement"></el-input>
446
             <el-input v-model="form.actual_displacement"></el-input>
447
           </el-form-item>
447
           </el-form-item>
448
           <el-form-item v-else label="实际置换量(L): ">
448
           <el-form-item v-else label="实际置换量(L): ">

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

7
     width="854px"
7
     width="854px"
8
   >
8
   >
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
10
-    <el-form :model="receiveTreatmentAsses" label-width="80px">
11
-      <el-form-item label="入室方式 : " v-if="isShow('入室方式')">
12
-        <!--<el-radio-group v-model="receiveTreatmentAsses.way">-->
10
+    <el-form
11
+      :model="receiveTreatmentAsses"
12
+      ref="receiveTreatmentAsses"
13
+      label-width="86px"
14
+    >
15
+      <el-form-item
16
+        label="入室方式 : "
17
+        :prop="isName('入室方式')"
18
+        :rules="isCheckmust('入室方式')"
19
+        v-if="isShow('入室方式')"
20
+      >
21
+        <el-radio-group v-model="receiveTreatmentAsses.way">
13
         <el-radio
22
         <el-radio
14
           v-for="(item, index) in way_arr"
23
           v-for="(item, index) in way_arr"
15
           :key="index"
24
           :key="index"
16
           :label="item.id"
25
           :label="item.id"
17
-          v-model="receiveTreatmentAsses.way"
18
           >{{ item.name }}
26
           >{{ item.name }}
19
         </el-radio>
27
         </el-radio>
20
-        <!--</el-radio-group>-->
28
+        </el-radio-group>
21
       </el-form-item>
29
       </el-form-item>
22
-      <el-form-item label="病人意识 : " v-if="isShow('病人意识')">
23
-        <!--<el-radio-group v-model="receiveTreatmentAsses.consciousness">-->
30
+      <el-form-item
31
+        label="病人意识 : "
32
+        v-if="isShow('病人意识')"
33
+        :prop="isName('病人意识')"
34
+        :rules="isCheckmust('病人意识')"
35
+      >
36
+        <el-radio-group v-model="receiveTreatmentAsses.consciousness">
24
         <el-radio
37
         <el-radio
25
           v-for="(item, index) in consciousness_arr"
38
           v-for="(item, index) in consciousness_arr"
26
           :key="index"
39
           :key="index"
27
           :label="item.id"
40
           :label="item.id"
28
-          v-model="receiveTreatmentAsses.consciousness"
29
           >{{ item.name }}
41
           >{{ item.name }}
30
         </el-radio>
42
         </el-radio>
31
-        <!--</el-radio-group>-->
43
+        </el-radio-group>
32
 
44
 
33
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>-->
45
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>-->
34
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>-->
46
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>-->
35
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>-->
47
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>-->
36
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>-->
48
         <!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>-->
37
       </el-form-item>
49
       </el-form-item>
38
-      <el-form-item label="病人食欲 : " v-if="isShow('病人食欲')">
50
+      <el-form-item
51
+        label="病人食欲 : "
52
+        :prop="isName('病人食欲')"
53
+        :rules="isCheckmust('病人食欲')"
54
+        v-if="isShow('病人食欲')"
55
+      >
56
+      <el-radio-group v-model="receiveTreatmentAsses.appetite">
39
         <el-radio
57
         <el-radio
40
           v-for="(item, index) in appetite_arr"
58
           v-for="(item, index) in appetite_arr"
41
           :key="index"
59
           :key="index"
42
           :label="item.id"
60
           :label="item.id"
43
-          v-model="receiveTreatmentAsses.appetite"
44
           >{{ item.name }}
61
           >{{ item.name }}
45
         </el-radio>
62
         </el-radio>
46
-
63
+      </el-radio-group>
47
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>-->
64
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>-->
48
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>-->
65
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>-->
49
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>-->
66
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="3">恶心</el-radio>-->
50
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>-->
67
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="4">呕吐</el-radio>-->
51
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>-->
68
         <!--<el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>-->
52
       </el-form-item>
69
       </el-form-item>
53
-      <el-form-item label="病人情况 : " v-if="isShow('病人情况')">
54
-        <el-radio v-model="receiveTreatmentAsses.condition" label="1"
70
+      <el-form-item
71
+        label="病人情况 : "
72
+        prop="condition"
73
+        :rules="isCheckmust('病人情况')"
74
+        v-if="isShow('病人情况')"
75
+      >
76
+      <el-radio-group v-model="receiveTreatmentAsses.condition">
77
+        <el-radio label="1"
55
           >住院</el-radio
78
           >住院</el-radio
56
         >
79
         >
57
-        <el-radio v-model="receiveTreatmentAsses.condition" label="2"
80
+        <el-radio label="2"
58
           >门诊</el-radio
81
           >门诊</el-radio
59
         >
82
         >
60
-        <el-radio v-model="receiveTreatmentAsses.condition" label="3"
83
+        <el-radio label="3"
61
           >手术期</el-radio
84
           >手术期</el-radio
62
         >
85
         >
63
-        <el-radio v-model="receiveTreatmentAsses.condition" label="4"
86
+        <el-radio label="4"
64
           >急诊</el-radio
87
           >急诊</el-radio
65
         >
88
         >
89
+      </el-radio-group>
90
+
66
       </el-form-item>
91
       </el-form-item>
67
 
92
 
68
       <el-form-item
93
       <el-form-item
69
         label="住院号 : "
94
         label="住院号 : "
95
+        :prop="isName('住院号')"
96
+        :rules="isCheckmust('住院号')"
70
         v-if="this.receiveTreatmentAsses.condition == '1'"
97
         v-if="this.receiveTreatmentAsses.condition == '1'"
71
       >
98
       >
72
         <el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
99
         <el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
74
 
101
 
75
       <el-form-item
102
       <el-form-item
76
         label="住院科室 : "
103
         label="住院科室 : "
77
-        v-if="isShow('住院科室')&&this.receiveTreatmentAsses.condition == '1'"
104
+        :prop="isName('住院科室')"
105
+        :rules="isCheckmust('住院科室')"
106
+        v-if="isShow('住院科室') && this.receiveTreatmentAsses.condition == '1'"
78
       >
107
       >
79
         <el-input v-model="receiveTreatmentAsses.his_department"></el-input>
108
         <el-input v-model="receiveTreatmentAsses.his_department"></el-input>
80
       </el-form-item>
109
       </el-form-item>
81
-      
110
+
82
       <el-form-item
111
       <el-form-item
83
         label="住院床位 : "
112
         label="住院床位 : "
84
-        v-if="isShow('住院床位')&&this.receiveTreatmentAsses.condition == '1'"
113
+        :prop="isName('住院床位')"
114
+        :rules="isCheckmust('住院床位')"
115
+        v-if="isShow('住院床位') && this.receiveTreatmentAsses.condition == '1'"
85
       >
116
       >
86
         <el-input v-model="receiveTreatmentAsses.his_bed"></el-input>
117
         <el-input v-model="receiveTreatmentAsses.his_bed"></el-input>
87
       </el-form-item>
118
       </el-form-item>
88
-      
89
 
119
 
90
       <el-form-item
120
       <el-form-item
91
-        label="诊断:" v-if="isShow('诊断') && this.receiveTreatmentAsses.condition == '1'"
121
+        label="诊断:"
122
+        :prop="isName('诊断')"
123
+        :rules="isCheckmust('诊断')"
124
+        v-if="isShow('诊断') && this.receiveTreatmentAsses.condition == '1'"
92
       >
125
       >
93
         <el-input v-model="receiveTreatmentAsses.diacrisis"></el-input>
126
         <el-input v-model="receiveTreatmentAsses.diacrisis"></el-input>
94
       </el-form-item>
127
       </el-form-item>
95
 
128
 
96
-      <el-form-item label="体位 : " v-if="isShow('体位')">
97
-        <el-radio
129
+      <el-form-item
130
+        label="体位 : "
131
+        :prop="isName('体位')"
132
+        :rules="isCheckmust('体位')"
133
+        v-if="isShow('体位')"
134
+      >
135
+      <el-radio-group v-model="receiveTreatmentAsses.posture">
136
+           <el-radio
98
           v-for="(item, index) in posture_arr"
137
           v-for="(item, index) in posture_arr"
99
           :key="index"
138
           :key="index"
100
           :label="item.id"
139
           :label="item.id"
101
-          v-model="receiveTreatmentAsses.posture"
102
           >{{ item.name }}
140
           >{{ item.name }}
103
         </el-radio>
141
         </el-radio>
142
+      </el-radio-group>
143
+     
104
       </el-form-item>
144
       </el-form-item>
105
 
145
 
106
-      <el-form-item label="病情: " v-if="isShow('病情')">
146
+      <el-form-item
147
+        label="病情: "
148
+        :prop="isName('病情')"
149
+        :rules="isCheckmust('病情')"
150
+        v-if="isShow('病情')"
151
+      >
152
+      <el-radio-group v-model="receiveTreatmentAsses.sick_condition">
107
         <el-radio
153
         <el-radio
108
           v-for="(item, index) in sick_condition_arr"
154
           v-for="(item, index) in sick_condition_arr"
109
           :key="index"
155
           :key="index"
110
           :label="item.id"
156
           :label="item.id"
111
-          v-model="receiveTreatmentAsses.sick_condition"
112
           >{{ item.name }}
157
           >{{ item.name }}
113
         </el-radio>
158
         </el-radio>
159
+      </el-radio-group>
160
+
114
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="1">一般</el-radio>-->
161
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="1">一般</el-radio>-->
115
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="2">严重</el-radio>-->
162
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="2">严重</el-radio>-->
116
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="3">危</el-radio>-->
163
         <!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="3">危</el-radio>-->
119
       <el-form-item
166
       <el-form-item
120
         label-width="100px"
167
         label-width="100px"
121
         label="其他病情 : "
168
         label="其他病情 : "
169
+        :prop="isName('其他病情')"
170
+        :rules="isCheckmust('其他病情')"
122
         v-if="isShow('其他病情')"
171
         v-if="isShow('其他病情')"
123
       >
172
       >
124
         <el-input
173
         <el-input
129
       <el-form-item
178
       <el-form-item
130
         label-width="150px"
179
         label-width="150px"
131
         label="跌倒风险评估评分 : "
180
         label="跌倒风险评估评分 : "
181
+        :prop="isName('跌倒风险评估评分')"
182
+        :rules="isCheckmust('跌倒风险评估评分')"
132
         v-if="isShow('跌倒风险评估评分')"
183
         v-if="isShow('跌倒风险评估评分')"
133
       >
184
       >
134
         <el-input
185
         <el-input
137
         ></el-input>
188
         ></el-input>
138
       </el-form-item>
189
       </el-form-item>
139
 
190
 
140
-      <el-form-item label="风险程度: " v-if="isShow('风险程度')">
141
-        <el-radio v-model="receiveTreatmentAsses.danger_level" label="1"
191
+      <el-form-item
192
+        label="风险程度: "
193
+        :prop="isName('风险程度')"
194
+        :rules="isCheckmust('风险程度')"
195
+        v-if="isShow('风险程度')"
196
+      >
197
+      <el-radio-group v-model="receiveTreatmentAsses.danger_level">
198
+        <el-radio label="1"
142
           >无</el-radio
199
           >无</el-radio
143
         >
200
         >
144
-        <el-radio v-model="receiveTreatmentAsses.danger_level" label="2"
201
+        <el-radio label="2"
145
           >低风险</el-radio
202
           >低风险</el-radio
146
         >
203
         >
147
-        <el-radio v-model="receiveTreatmentAsses.danger_level" label="3"
204
+        <el-radio label="3"
148
           >中度风险</el-radio
205
           >中度风险</el-radio
149
         >
206
         >
150
-        <el-radio v-model="receiveTreatmentAsses.danger_level" label="4"
207
+        <el-radio label="4"
151
           >高风险</el-radio
208
           >高风险</el-radio
152
         >
209
         >
210
+      </el-radio-group>
211
+ 
153
       </el-form-item>
212
       </el-form-item>
154
 
213
 
155
       <el-form-item
214
       <el-form-item
156
         label-width="150px"
215
         label-width="150px"
157
         label="跌倒风险预防措施: "
216
         label="跌倒风险预防措施: "
217
+        :prop="isName('跌倒风险预防措施')"
218
+        :rules="isCheckmust('跌倒风险预防措施')"
158
         v-if="isShow('跌倒风险预防措施')"
219
         v-if="isShow('跌倒风险预防措施')"
159
       >
220
       >
160
         <!--        <el-radio-->
221
         <!--        <el-radio-->
164
         <!--          v-model="receiveTreatmentAsses.precaution"-->
225
         <!--          v-model="receiveTreatmentAsses.precaution"-->
165
         <!--          >{{ item.name }}-->
226
         <!--          >{{ item.name }}-->
166
         <!--        </el-radio>-->
227
         <!--        </el-radio>-->
228
+        
167
         <el-checkbox-group v-model="precautionTwo">
229
         <el-checkbox-group v-model="precautionTwo">
168
           <el-checkbox
230
           <el-checkbox
169
             v-for="item in precaution_arr"
231
             v-for="item in precaution_arr"
176
       <el-form-item
238
       <el-form-item
177
         label-width="200px"
239
         label-width="200px"
178
         label="其他跌倒风险预防措施 : "
240
         label="其他跌倒风险预防措施 : "
241
+        :prop="isName('其他跌倒风险预防措施')"
242
+        :rules="isCheckmust('其他跌倒风险预防措施')"
179
         v-if="isShow('其他跌倒风险预防措施')"
243
         v-if="isShow('其他跌倒风险预防措施')"
180
       >
244
       >
181
         <el-input v-model="receiveTreatmentAsses.precaution_other"></el-input>
245
         <el-input v-model="receiveTreatmentAsses.precaution_other"></el-input>
182
       </el-form-item>
246
       </el-form-item>
183
 
247
 
184
-      <el-form-item label="摄入量: " v-if="isShow('摄入量')">
248
+      <el-form-item
249
+        label="摄入量: "
250
+        :prop="isName('摄入量')"
251
+        :rules="isCheckmust('摄入量')"
252
+        v-if="isShow('摄入量')"
253
+      >
185
         <!--<el-radio v-model="receiveTreatmentAsses.intake" label="1">正常</el-radio>-->
254
         <!--<el-radio v-model="receiveTreatmentAsses.intake" label="1">正常</el-radio>-->
186
         <!--<el-radio v-model="receiveTreatmentAsses.intake" label="2">减少</el-radio>-->
255
         <!--<el-radio v-model="receiveTreatmentAsses.intake" label="2">减少</el-radio>-->
187
-
256
+       <el-radio-group v-model="receiveTreatmentAsses.intake">
188
         <el-radio
257
         <el-radio
189
           v-for="(item, index) in intake_arr"
258
           v-for="(item, index) in intake_arr"
190
           :key="index"
259
           :key="index"
191
           :label="item.id"
260
           :label="item.id"
192
-          v-model="receiveTreatmentAsses.intake"
193
           >{{ item.name }}
261
           >{{ item.name }}
194
         </el-radio>
262
         </el-radio>
263
+       </el-radio-group>
264
+
195
       </el-form-item>
265
       </el-form-item>
196
-      <el-form-item label="营养状况: " v-if="isShow('营养状况')">
266
+      <el-form-item
267
+        label="营养状况: "
268
+        :prop="isName('营养状况')"
269
+        :rules="isCheckmust('营养状况')"
270
+        v-if="isShow('营养状况')"
271
+      >
197
         <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="1">正常</el-radio>-->
272
         <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="1">正常</el-radio>-->
198
         <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="2">营养不良</el-radio>-->
273
         <!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="2">营养不良</el-radio>-->
199
-
274
+        <el-radio-group v-model="receiveTreatmentAsses.nutrition">
200
         <el-radio
275
         <el-radio
201
           v-for="(item, index) in nutrition_arr"
276
           v-for="(item, index) in nutrition_arr"
202
           :key="index"
277
           :key="index"
203
           :label="item.id"
278
           :label="item.id"
204
-          v-model="receiveTreatmentAsses.nutrition"
205
           >{{ item.name }}
279
           >{{ item.name }}
206
         </el-radio>
280
         </el-radio>
281
+        </el-radio-group>
282
+
207
       </el-form-item>
283
       </el-form-item>
208
-      <el-form-item label="心理评估: " v-if="isShow('心理评估')">
284
+      <el-form-item
285
+        label="心理评估: "
286
+        :prop="isName('心理评估')"
287
+        :rules="isCheckmust('心理评估')"
288
+        v-if="isShow('心理评估')"
289
+      >
290
+      <el-radio-group v-model="receiveTreatmentAsses.psychological_assessment">
209
         <el-radio
291
         <el-radio
210
-          v-model="receiveTreatmentAsses.psychological_assessment"
211
           label="1"
292
           label="1"
212
           >正常</el-radio
293
           >正常</el-radio
213
         >
294
         >
214
         <el-radio
295
         <el-radio
215
-          v-model="receiveTreatmentAsses.psychological_assessment"
216
           label="2"
296
           label="2"
217
           >异常</el-radio
297
           >异常</el-radio
218
         >
298
         >
299
+      </el-radio-group>
300
+
219
       </el-form-item>
301
       </el-form-item>
220
       <el-form-item
302
       <el-form-item
221
         label-width="150px"
303
         label-width="150px"
222
         label="心理评估异常情况 : "
304
         label="心理评估异常情况 : "
305
+        :prop="isName('心理评估异常情况')"
306
+        :rules="isCheckmust('心理评估异常情况')"
223
         v-if="
307
         v-if="
224
           isShow('心理评估异常情况') &&
308
           isShow('心理评估异常情况') &&
225
-            receiveTreatmentAsses.psychological_assessment == 2
309
+          receiveTreatmentAsses.psychological_assessment == 2
226
         "
310
         "
227
       >
311
       >
228
         <el-input
312
         <el-input
233
       <el-form-item
317
       <el-form-item
234
         label-width="150px"
318
         label-width="150px"
235
         label="其他心理评估 : "
319
         label="其他心理评估 : "
320
+        :prop="isName('其他心理评估')"
321
+        :rules="isCheckmust('其他心理评估')"
236
         v-if="isShow('其他心理评估')"
322
         v-if="isShow('其他心理评估')"
237
       >
323
       >
238
         <el-input
324
         <el-input
239
           v-model="receiveTreatmentAsses.psychological_other"
325
           v-model="receiveTreatmentAsses.psychological_other"
240
         ></el-input>
326
         ></el-input>
241
       </el-form-item>
327
       </el-form-item>
242
-        <el-form-item label="是否跌倒: " v-if="isShow('是否跌倒')">
243
-        <el-radio
244
-          v-model="receiveTreatmentAsses.tumble"
245
-          label="1"
246
-          >是</el-radio>
247
-        <el-radio
248
-          v-model="receiveTreatmentAsses.tumble"
249
-          label="2"
250
-          >否
251
-        </el-radio>
328
+      <el-form-item
329
+        label="是否跌倒: "
330
+        :prop="isName('是否跌倒')"
331
+        :rules="isCheckmust('是否跌倒')"
332
+        v-if="isShow('是否跌倒')"
333
+      >
334
+      <el-radio-group v-model="receiveTreatmentAsses.tumble">
335
+        <el-radio label="1">是</el-radio>
336
+        <el-radio label="2">否</el-radio>
337
+      </el-radio-group>
338
+
252
       </el-form-item>
339
       </el-form-item>
253
     </el-form>
340
     </el-form>
254
     <div slot="footer" class="dialog-footer">
341
     <div slot="footer" class="dialog-footer">
255
       <el-button @click="handleCancle">取 消</el-button>
342
       <el-button @click="handleCancle">取 消</el-button>
256
-      <el-button type="primary" v-if="hasPermission" @click="handleComfirm"
343
+      <!--v-if="hasPermission" -->
344
+      <el-button type="primary"  @click="handleComfirm('receiveTreatmentAsses')"
257
         >保 存</el-button
345
         >保 存</el-button
258
       >
346
       >
259
     </div>
347
     </div>
265
 import { uParseTime } from "@/utils/tools";
353
 import { uParseTime } from "@/utils/tools";
266
 import store from "@/store";
354
 import store from "@/store";
267
 import { getDataConfig } from "@/utils/data";
355
 import { getDataConfig } from "@/utils/data";
268
-import { parseTime } from '@/utils'
269
-
356
+import { parseTime } from "@/utils";
270
 import request from "@/utils/request";
357
 import request from "@/utils/request";
271
 
358
 
272
 export default {
359
 export default {
303
         precaution: "",
390
         precaution: "",
304
         precaution_other: "",
391
         precaution_other: "",
305
         admission_number: "",
392
         admission_number: "",
306
-        diacrisis:"",
307
-        tumble:"",
308
-        his_department:"",
309
-        his_bed:"",
393
+        diacrisis: "",
394
+        tumble: "",
395
+        his_department: "",
396
+        his_bed: "",
310
       },
397
       },
311
-      precautionTwo: []
398
+      precautionTwo: [],
312
     };
399
     };
313
   },
400
   },
314
   methods: {
401
   methods: {
326
       return false;
413
       return false;
327
     },
414
     },
328
     show(accepts) {
415
     show(accepts) {
329
-      console.log("accepts333333",accepts)
330
-      if(accepts.id > 0){
331
-        accepts.tumble = accepts.tumble.toString()
416
+      console.log("accepts333333", accepts);
417
+      if (accepts.id > 0) {
418
+        accepts.tumble = accepts.tumble.toString();
332
       }
419
       }
333
       this.accepts = accepts;
420
       this.accepts = accepts;
334
       // console.log("accepts", accepts);
421
       // console.log("accepts", accepts);
359
           this.receiveTreatmentAsses[index] =
446
           this.receiveTreatmentAsses[index] =
360
             this.receiver_treatment_access[index] + "";
447
             this.receiver_treatment_access[index] + "";
361
         } else {
448
         } else {
362
-          this.receiveTreatmentAsses[index] = this.receiver_treatment_access[
363
-            index
364
-          ];
449
+          this.receiveTreatmentAsses[index] =
450
+            this.receiver_treatment_access[index];
365
         }
451
         }
366
       }
452
       }
367
       this.isVisibility = true;
453
       this.isVisibility = true;
369
     hide() {
455
     hide() {
370
       this.isVisibility = false;
456
       this.isVisibility = false;
371
     },
457
     },
372
-    handleCancle: function() {
458
+    handleCancle: function () {
373
       this.isVisibility = false;
459
       this.isVisibility = false;
374
     },
460
     },
375
-    handleComfirm: function() {
461
+    handleComfirm: function (formName) {
376
       var arr = [];
462
       var arr = [];
377
       for (let i = 0; i < this.precaution_arr.length; i++) {
463
       for (let i = 0; i < this.precaution_arr.length; i++) {
378
         for (let j = 0; j < this.precautionTwo.length; j++) {
464
         for (let j = 0; j < this.precautionTwo.length; j++) {
399
           ParamsQuery["mode"] = "3";
485
           ParamsQuery["mode"] = "3";
400
         }
486
         }
401
       }
487
       }
402
-      // console.log("数据", this.precautionTwo);
403
-      postAccepts(ParamsQuery).then(response => {
404
-        if (response.data.state == 0) {
405
-          this.$message.error(response.data.msg);
406
-          return false;
407
-        } else {
408
-          this.$notify({
409
-            title: "成功",
410
-            message: "提交成功",
411
-            type: "success",
412
-            duration: 2000
413
-          });
488
+      console.log("数据", ParamsQuery);
489
+      this.$refs[formName].validate((valid) => {
490
+        if (valid) {
491
+          postAccepts(ParamsQuery).then((response) => {
492
+            if (response.data.state == 0) {
493
+              this.$message.error(response.data.msg);
494
+              return false;
495
+            } else {
496
+              this.$notify({
497
+                title: "成功",
498
+                message: "提交成功",
499
+                type: "success",
500
+                duration: 2000,
501
+              });
414
 
502
 
415
-          let receive_treatment_asses_resp =
416
-            response.data.data.receiveTreatmentAsses;
503
+              let receive_treatment_asses_resp =
504
+                response.data.data.receiveTreatmentAsses;
417
 
505
 
418
-          //pror
419
-          var receiver_treatment_access = this.receiver_treatment_access;
420
-          for (var index in receive_treatment_asses_resp) {
421
-            // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
422
-            this.$set(
423
-              receiver_treatment_access,
424
-              index,
425
-              receive_treatment_asses_resp[index]
426
-            );
427
-          }
428
-          this.hide();
506
+              //pror
507
+              var receiver_treatment_access = this.receiver_treatment_access;
508
+              for (var index in receive_treatment_asses_resp) {
509
+                // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
510
+                this.$set(
511
+                  receiver_treatment_access,
512
+                  index,
513
+                  receive_treatment_asses_resp[index]
514
+                );
515
+              }
516
+              this.hide();
517
+            }
518
+          });
519
+        } else {
520
+          console.log("error submit!!");
521
+          return false;
429
         }
522
         }
430
       });
523
       });
431
     },
524
     },
525
+    isName(name) {
526
+      let filedList = store.getters.xt_user.fileds;
527
+      for (let i = 0; i < filedList.length; i++) {
528
+        if (filedList[i].module == 2 && filedList[i].filed_name_cn == name) {
529
+          return filedList[i].filed_name;
530
+        }
531
+      }
532
+    },
533
+
534
+    isCheckmust(name) {
535
+      let filedList = store.getters.xt_user.fileds;
536
+      for (let i = 0; i < filedList.length; i++) {
537
+        // if (
538
+        //   filedList[i].module == 2){console.log(filedList[i],'filedList[i]')}
539
+        if (
540
+          filedList[i].module == 2 &&
541
+          filedList[i].filed_name_cn == name &&
542
+          filedList[i].is_write == 1
543
+        ) {
544
+          if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
545
+          return [
546
+            { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
547
+            {
548
+              required: true,
549
+              pattern: /^[1-9]\d*$/,
550
+              message: `请输入${name}`,
551
+              trigger: ['blur','change']
552
+            },
553
+          ];
554
+        }
555
+          return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
556
+        }
557
+
558
+        
559
+      }
560
+    },
432
     getPermission() {
561
     getPermission() {
433
       request
562
       request
434
         .get("/api/func_per/get", {
563
         .get("/api/func_per/get", {
436
             create_url: "/api/dialysis/accepts?mode=1",
565
             create_url: "/api/dialysis/accepts?mode=1",
437
             modify_url: "/api/dialysis/accepts?mode=2",
566
             modify_url: "/api/dialysis/accepts?mode=2",
438
             modify_other_url: "/api/dialysis/accepts?mode=3",
567
             modify_other_url: "/api/dialysis/accepts?mode=3",
439
-            module: 2
440
-          }
568
+            module: 2,
569
+          },
441
         })
570
         })
442
-        .then(res => {
571
+        .then((res) => {
443
           // console.log(res);
572
           // console.log(res);
444
           //console.log("接诊", this.accepts);
573
           //console.log("接诊", this.accepts);
445
           if (res.data.state == 0) {
574
           if (res.data.state == 0) {
468
             }
597
             }
469
           }
598
           }
470
         });
599
         });
471
-    }
600
+    },
472
   },
601
   },
473
   props: {
602
   props: {
474
     receiver_treatment_access: {
603
     receiver_treatment_access: {
476
       type: Object,
605
       type: Object,
477
       default: () => {
606
       default: () => {
478
         return { id: 0 };
607
         return { id: 0 };
479
-      }
608
+      },
480
     },
609
     },
481
     patient: {
610
     patient: {
482
       // 患者信息
611
       // 患者信息
483
       type: Object,
612
       type: Object,
484
       default: () => {
613
       default: () => {
485
         return { id: 0 };
614
         return { id: 0 };
486
-      }
487
-    }
615
+      },
616
+    },
488
   },
617
   },
489
   watch: {
618
   watch: {
490
     isVisibility(val) {},
619
     isVisibility(val) {},
491
-    "receiver_treatment_access.id": function() {
620
+    "receiver_treatment_access.id": function () {
492
       if (this.receiver_treatment_access.id > 0) {
621
       if (this.receiver_treatment_access.id > 0) {
493
         for (var index in this.receiveTreatmentAsses) {
622
         for (var index in this.receiveTreatmentAsses) {
494
-          this.receiveTreatmentAsses[index] = this.receiver_treatment_access[
495
-            index
496
-          ];
623
+          this.receiveTreatmentAsses[index] =
624
+            this.receiver_treatment_access[index];
497
         }
625
         }
498
       }
626
       }
499
-    }
627
+    },
500
   },
628
   },
501
   created() {
629
   created() {
502
     // console.log("接诊评估", this.receiver_treatment_access);
630
     // console.log("接诊评估", this.receiver_treatment_access);
503
     var date = this.$route.query && this.$route.query.date;
631
     var date = this.$route.query && this.$route.query.date;
504
-    this.record_date = date ? uParseTime(date, "{y}-{m}-{d}") : parseTime(new Date(), '{y}-{m}-{d}');
505
-    console.log('this.record_date',this.record_date)
632
+    this.record_date = date
633
+      ? uParseTime(date, "{y}-{m}-{d}")
634
+      : parseTime(new Date(), "{y}-{m}-{d}");
635
+    console.log("this.record_date", this.record_date);
506
 
636
 
507
     this.way_arr = getDataConfig("hemodialysis", "way");
637
     this.way_arr = getDataConfig("hemodialysis", "way");
508
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
638
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
513
     // console.log("风险", this.precaution_arr);
643
     // console.log("风险", this.precaution_arr);
514
     this.intake_arr = getDataConfig("hemodialysis", "intake");
644
     this.intake_arr = getDataConfig("hemodialysis", "intake");
515
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
645
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
516
-  }
646
+  },
517
 };
647
 };
518
 </script>
648
 </script>
519
 
649
 

+ 183 - 68
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

24
       <el-form ref="assessmentBeforeDislysis" :model="assessmentBeforeDislysis" label-width="125px">
24
       <el-form ref="assessmentBeforeDislysis" :model="assessmentBeforeDislysis" label-width="125px">
25
         <el-row :gutter="24">
25
         <el-row :gutter="24">
26
           <el-col :span="8">
26
           <el-col :span="8">
27
-            <el-form-item label="透前称重(kg): " v-if="isShow('透前称重')">
27
+            <el-form-item label="透前称重(kg): " :prop="isName('透前称重')"
28
+              :rules="isCheckmust('透前称重')" v-if="isShow('透前称重')">
28
               <el-input type="number" v-model="assessmentBeforeDislysis.weight_before"></el-input>
29
               <el-input type="number" v-model="assessmentBeforeDislysis.weight_before"></el-input>
29
             </el-form-item>
30
             </el-form-item>
30
           </el-col>
31
           </el-col>
31
 
32
 
32
           <el-col :span="8">
33
           <el-col :span="8">
33
-            <el-form-item label="透前体重备注:" v-if="isShow('透前体重备注')">
34
+            <el-form-item label="透前体重备注:" :prop="isName('透前体重备注')"
35
+              :rules="isCheckmust('透前体重备注')" v-if="isShow('透前体重备注')">
34
               <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
36
               <el-input v-model="assessmentBeforeDislysis.weight_befor_remake"></el-input>
35
             </el-form-item>
37
             </el-form-item>
36
           </el-col>
38
           </el-col>
37
 
39
 
38
           <el-col :span="8">
40
           <el-col :span="8">
39
             <el-form-item label="干体重(kg):"
41
             <el-form-item label="干体重(kg):"
42
+             :prop="isName('干体重')"
43
+              :rules="isCheckmust('干体重')"
40
                           v-if="isShow('干体重')">
44
                           v-if="isShow('干体重')">
41
               <el-input type="number" v-model="assessmentBeforeDislysis.dry_weight" readonly
45
               <el-input type="number" v-model="assessmentBeforeDislysis.dry_weight" readonly
42
                         @focus="showDryWeightDialog"></el-input>
46
                         @focus="showDryWeightDialog"></el-input>
45
 
49
 
46
           <el-col :span="8">
50
           <el-col :span="8">
47
             <el-form-item label="身高(cm):"
51
             <el-form-item label="身高(cm):"
52
+              prop="height"
53
+              :rules="isCheckmust('身高')"
48
                           v-if="isShow('身高')">
54
                           v-if="isShow('身高')">
49
               <el-input  v-model="assessmentBeforeDislysis.height"></el-input>
55
               <el-input  v-model="assessmentBeforeDislysis.height"></el-input>
50
             </el-form-item>
56
             </el-form-item>
51
           </el-col>
57
           </el-col>
52
 
58
 
53
           <el-col :span="8">
59
           <el-col :span="8">
54
-            <el-form-item label="年龄(岁):" v-if="isShow('年龄')">
60
+            <el-form-item label="年龄(岁):" :prop="isName('年龄')"
61
+              :rules="isCheckmust('年龄')" v-if="isShow('年龄')">
55
               <el-input  v-model="assessmentBeforeDislysis.age" ></el-input>
62
               <el-input  v-model="assessmentBeforeDislysis.age" ></el-input>
56
             </el-form-item>
63
             </el-form-item>
57
           </el-col>
64
           </el-col>
58
 
65
 
59
           <el-col :span="8">
66
           <el-col :span="8">
60
-            <el-form-item label="衣物重(kg):" v-if="isShow('衣物重')">
67
+            <el-form-item label="衣物重(kg):" :prop="isName('衣物重')"
68
+              :rules="isCheckmust('衣物重')" v-if="isShow('衣物重')">
61
               <el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>
69
               <el-input type="number" v-model="assessmentBeforeDislysis.additional_weight"></el-input>
62
             </el-form-item>
70
             </el-form-item>
63
           </el-col>
71
           </el-col>
69
 <!--          </el-col>-->
77
 <!--          </el-col>-->
70
 
78
 
71
           <el-col :span="8">
79
           <el-col :span="8">
72
-            <el-form-item label="透析机型号" v-if="isShow('透析机型号')">
80
+            <el-form-item label="透析机型号" :prop="isName('透析机型号')"
81
+              :rules="isCheckmust('透析机型号')" v-if="isShow('透析机型号')">
73
               <el-select v-model="assessmentBeforeDislysis.machine_type">
82
               <el-select v-model="assessmentBeforeDislysis.machine_type">
74
                 <el-option :key="0" label="请选择" :value="0"></el-option>
83
                 <el-option :key="0" label="请选择" :value="0"></el-option>
75
 
84
 
80
           </el-col>
89
           </el-col>
81
 
90
 
82
           <el-col :span="8" v-if="isShow('透析频次')">
91
           <el-col :span="8" v-if="isShow('透析频次')">
83
-            <el-form-item label="透析频次(次/周):" v-if="this.$store.getters.xt_user.template_info.org_id != 10243">
92
+            <el-form-item label="透析频次(次/周):" :prop="isName('透析频次')"
93
+              :rules="isCheckmust('透析频次')" v-if="this.$store.getters.xt_user.template_info.org_id != 10243">
84
               <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
94
               <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
85
             </el-form-item>
95
             </el-form-item>
86
-            <el-form-item label="透析频次:" v-else>
96
+            <el-form-item label="透析频次:" :prop="isName('透析频次')"
97
+              :rules="isCheckmust('透析频次')" v-else>
87
               <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
98
               <el-input v-model="assessmentBeforeDislysis.dialysis_count"></el-input>
88
             </el-form-item>
99
             </el-form-item>
89
           </el-col>
100
           </el-col>
90
 
101
 
91
 
102
 
92
           <el-col :span="8">
103
           <el-col :span="8">
93
-            <el-form-item label="体温(℃):" v-if="isShow('体温')">
104
+            <el-form-item label="体温(℃):" :prop="isName('体温')"
105
+              :rules="isCheckmust('体温')" v-if="isShow('体温')">
94
               <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
106
               <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
95
             </el-form-item>
107
             </el-form-item>
96
           </el-col>
108
           </el-col>
97
 
109
 
98
           <el-col :span="8">
110
           <el-col :span="8">
99
-            <el-form-item label="收缩压(mmHg): " v-if="isShow('收缩压')">
111
+            <el-form-item label="收缩压(mmHg): " :prop="isName('收缩压')"
112
+              :rules="isCheckmust('收缩压')" v-if="isShow('收缩压')">
100
               <el-input type="number" v-model="assessmentBeforeDislysis.systolic_blood_pressure"></el-input>
113
               <el-input type="number" v-model="assessmentBeforeDislysis.systolic_blood_pressure"></el-input>
101
             </el-form-item>
114
             </el-form-item>
102
           </el-col>
115
           </el-col>
103
           <el-col :span="8">
116
           <el-col :span="8">
104
-            <el-form-item label="舒张压(mmHg): " v-if="isShow('舒张压')">
117
+            <el-form-item label="舒张压(mmHg): " :prop="isName('舒张压')"
118
+              :rules="isCheckmust('舒张压')" v-if="isShow('舒张压')">
105
               <el-input type="number" v-model="assessmentBeforeDislysis.diastolic_blood_pressure"></el-input>
119
               <el-input type="number" v-model="assessmentBeforeDislysis.diastolic_blood_pressure"></el-input>
106
             </el-form-item>
120
             </el-form-item>
107
           </el-col>
121
           </el-col>
108
 
122
 
109
           <el-col :span="8">
123
           <el-col :span="8">
110
-            <el-form-item label="呼吸频率(次/分):" v-if="isShow('呼吸频率')">
124
+            <el-form-item label="呼吸频率(次/分):" :prop="isName('呼吸频率')"
125
+              :rules="isCheckmust('呼吸频率')" v-if="isShow('呼吸频率')">
111
               <el-input  v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
126
               <el-input  v-model="assessmentBeforeDislysis.breathing_rate"></el-input>
112
             </el-form-item>
127
             </el-form-item>
113
           </el-col>
128
           </el-col>
114
 
129
 
115
           <el-col :span="8">
130
           <el-col :span="8">
116
-            <el-form-item label="脉搏(次/分):" v-if="isShow('脉搏')">
131
+            <el-form-item label="脉搏(次/分):" :prop="isName('脉搏')"
132
+              :rules="isCheckmust('脉搏')" v-if="isShow('脉搏')">
117
               <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
133
               <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
118
             </el-form-item>
134
             </el-form-item>
119
           </el-col>
135
           </el-col>
129
           </el-col> -->
145
           </el-col> -->
130
 
146
 
131
           <el-col :span="8">
147
           <el-col :span="8">
132
-            <el-form-item label="体液过多症状:" v-if="isShow('体液过多症状')">
148
+            <el-form-item label="体液过多症状:" :prop="isName('体液过多症状')"
149
+              :rules="isCheckmust('体液过多症状')" v-if="isShow('体液过多症状')">
133
               <el-input v-model="assessmentBeforeDislysis.humor_excessive_symptom" readonly
150
               <el-input v-model="assessmentBeforeDislysis.humor_excessive_symptom" readonly
134
                         @focus="showInnerDialog('19')"></el-input>
151
                         @focus="showInnerDialog('19')"></el-input>
135
             </el-form-item>
152
             </el-form-item>
136
           </el-col>
153
           </el-col>
137
 
154
 
138
           <el-col :span="8">
155
           <el-col :span="8">
139
-            <el-form-item label="血管通路: " v-if="isShow('血管通路')">
156
+            <el-form-item label="血管通路: " :prop="isName('血管通路')"
157
+              :rules="isCheckmust('血管通路')" v-if="isShow('血管通路')">
140
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
158
               <el-select v-model="assessmentBeforeDislysis.blood_access_part_opera_id">
141
                 <el-option :key="0" label="请选择" :value="0"></el-option>
159
                 <el-option :key="0" label="请选择" :value="0"></el-option>
142
 
160
 
147
           </el-col>
165
           </el-col>
148
 
166
 
149
           <el-col :span="8">
167
           <el-col :span="8">
150
-            <el-form-item label="血管通路部位: " v-if="isShow('血管通路部位')">
168
+            <el-form-item label="血管通路部位: " :prop="isName('血管通路部位')"
169
+              :rules="isCheckmust('血管通路部位')" v-if="isShow('血管通路部位')">
151
               <!-- <el-select v-model="assessmentBeforeDislysis.blood_access_part_id">
170
               <!-- <el-select v-model="assessmentBeforeDislysis.blood_access_part_id">
152
                 <el-option :key="0" label="请选择" :value="0"></el-option>
171
                 <el-option :key="0" label="请选择" :value="0"></el-option>
153
 
172
 
159
           </el-col>
178
           </el-col>
160
 
179
 
161
           <el-col :span="8">
180
           <el-col :span="8">
162
-            <el-form-item label="血管通路其他部位:" v-if="isShow('血管通路其他部位')">
181
+            <el-form-item label="血管通路其他部位:" :prop="isName('血管通路其他部位')"
182
+              :rules="isCheckmust('血管通路其他部位')" v-if="isShow('血管通路其他部位')">
163
               <el-input v-model="assessmentBeforeDislysis.venous_catheterization_part_other"></el-input>
183
               <el-input v-model="assessmentBeforeDislysis.venous_catheterization_part_other"></el-input>
164
             </el-form-item>
184
             </el-form-item>
165
           </el-col>
185
           </el-col>
166
 
186
 
167
 
187
 
168
           <el-col :span="8">
188
           <el-col :span="8">
169
-            <el-form-item label="内瘘: " v-if="isShow('内瘘')">
189
+            <el-form-item label="内瘘: " :prop="isName('内瘘')"
190
+              :rules="isCheckmust('内瘘')" v-if="isShow('内瘘')">
170
               <el-input v-model="assessmentBeforeDislysis.internal_fistula" readonly
191
               <el-input v-model="assessmentBeforeDislysis.internal_fistula" readonly
171
                         @focus="showInnerDialog('7')"></el-input>
192
                         @focus="showInnerDialog('7')"></el-input>
172
             </el-form-item>
193
             </el-form-item>
178
 
199
 
179
 
200
 
180
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
201
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('其他出血情况')">
181
-            <el-form-item label="其他出血情况: ">
202
+            <el-form-item label="其他出血情况: " :prop="isName('其他出血情况')"
203
+              :rules="isCheckmust('其他出血情况')">
182
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
204
               <el-input v-model="assessmentBeforeDislysis.hemorrhage_other"></el-input>
183
             </el-form-item>
205
             </el-form-item>
184
           </el-col>
206
           </el-col>
185
 
207
 
186
 
208
 
187
           <el-col :span="8">
209
           <el-col :span="8">
188
-            <el-form-item label="血管通路(内瘘)其他:" v-if="isShow('血管通路(内瘘)其他')">
210
+            <el-form-item label="血管通路(内瘘)其他:" :prop="isName('血管通路(内瘘)其他')"
211
+              :rules="isCheckmust('血管通路(内瘘)其他')" v-if="isShow('血管通路(内瘘)其他')">
189
               <el-input v-model="assessmentBeforeDislysis.internal_fistula_other"></el-input>
212
               <el-input v-model="assessmentBeforeDislysis.internal_fistula_other"></el-input>
190
             </el-form-item>
213
             </el-form-item>
191
           </el-col>
214
           </el-col>
192
 
215
 
193
           <el-col :span="8" v-if="isShow('血管杂音')">
216
           <el-col :span="8" v-if="isShow('血管杂音')">
194
-            <el-form-item label="血管杂音: ">
217
+            <el-form-item label="血管杂音: " :prop="isName('血管杂音')"
218
+              :rules="isCheckmust('血管杂音')">
195
               <el-select v-model="assessmentBeforeDislysis.blood_access_noise">
219
               <el-select v-model="assessmentBeforeDislysis.blood_access_noise">
196
                 <el-option :key="0" label="请选择" :value="0"></el-option>
220
                 <el-option :key="0" label="请选择" :value="0"></el-option>
197
 
221
 
207
 
231
 
208
 
232
 
209
           <el-col :span="8">
233
           <el-col :span="8">
210
-            <el-form-item label="血管通路皮肤情况: " v-if="isShow('血管通路皮肤情况')">
234
+            <el-form-item label="血管通路皮肤情况: " :prop="isName('血管通路皮肤情况')"
235
+              :rules="isCheckmust('血管通路皮肤情况')" v-if="isShow('血管通路皮肤情况')">
211
               <el-input v-model="assessmentBeforeDislysis.internal_fistula_skin" readonly
236
               <el-input v-model="assessmentBeforeDislysis.internal_fistula_skin" readonly
212
                         @focus="showInnerDialog('8')"></el-input>
237
                         @focus="showInnerDialog('8')"></el-input>
213
             </el-form-item>
238
             </el-form-item>
216
 
241
 
217
           <el-col :span="8">
242
           <el-col :span="8">
218
 
243
 
219
-            <el-form-item label="中心静脉置管: " v-if="isShow('中心静脉置管')">
244
+            <el-form-item label="中心静脉置管: " :prop="isName('中心静脉置管')"
245
+              :rules="isCheckmust('中心静脉置管')" v-if="isShow('中心静脉置管')">
220
               <el-select v-model="assessmentBeforeDislysis.venous_catheterization">
246
               <el-select v-model="assessmentBeforeDislysis.venous_catheterization">
221
                 <el-option :key="0" label="请选择" :value="0"></el-option>
247
                 <el-option :key="0" label="请选择" :value="0"></el-option>
222
 
248
 
229
 
255
 
230
 
256
 
231
           <el-col :span="8">
257
           <el-col :span="8">
232
-            <el-form-item label="导管: " v-if="isShow('导管')">
258
+            <el-form-item label="导管: " :prop="isName('导管')"
259
+              :rules="isCheckmust('导管')" v-if="isShow('导管')">
233
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
260
               <el-input v-model="assessmentBeforeDislysis.catheter" @focus="showInnerDialog('4')"></el-input>
234
             </el-form-item>
261
             </el-form-item>
235
           </el-col>
262
           </el-col>
236
            
263
            
237
 
264
 
238
           <el-col :span="8">
265
           <el-col :span="8">
239
-            <el-form-item label="导管维护: " v-if="isShow('导管维护')">
266
+            <el-form-item label="导管维护: " :prop="isName('导管维护')"
267
+              :rules="isCheckmust('导管维护')" v-if="isShow('导管维护')">
240
               <el-input v-model="assessmentBeforeDislysis.catheter_maintenance" @focus="showInnerDialog('18')"></el-input>
268
               <el-input v-model="assessmentBeforeDislysis.catheter_maintenance" @focus="showInnerDialog('18')"></el-input>
241
             </el-form-item>
269
             </el-form-item>
242
           </el-col>
270
           </el-col>
254
 
282
 
255
           <el-row :gutter="20"> -->
283
           <el-row :gutter="20"> -->
256
           <el-col :span="8">
284
           <el-col :span="8">
257
-            <el-form-item label="导管打折: " v-if="isShow('导管打折')">
285
+            <el-form-item label="导管打折: " :prop="isName('导管打折')"
286
+              :rules="isCheckmust('导管打折')" v-if="isShow('导管打折')">
258
               <el-select v-model="assessmentBeforeDislysis.catheter_bend">
287
               <el-select v-model="assessmentBeforeDislysis.catheter_bend">
259
                 <el-option :key="0" label="请选择" :value="0"></el-option>
288
                 <el-option :key="0" label="请选择" :value="0"></el-option>
260
 
289
 
281
           <el-row :gutter="20"> -->
310
           <el-row :gutter="20"> -->
282
 
311
 
283
           <el-col :span="8">
312
           <el-col :span="8">
284
-            <el-form-item label="穿刺针: " v-if="isShow('穿刺针')">
313
+            <el-form-item label="穿刺针: " :prop="isName('穿刺针')"
314
+              :rules="isCheckmust('穿刺针')" v-if="isShow('穿刺针')">
285
               <el-input v-model="assessmentBeforeDislysis.puncture_needle" @focus="showInnerDialog('11')"></el-input>
315
               <el-input v-model="assessmentBeforeDislysis.puncture_needle" @focus="showInnerDialog('11')"></el-input>
286
             </el-form-item>
316
             </el-form-item>
287
           </el-col>
317
           </el-col>
288
 
318
 
289
 
319
 
290
           <el-col :span="8">
320
           <el-col :span="8">
291
-            <el-form-item label="针眼: " v-if="isShow('针眼')">
321
+            <el-form-item label="针眼: " :prop="isName('针眼')"
322
+              :rules="isCheckmust('针眼')" v-if="isShow('针眼')">
292
               <el-input v-model="assessmentBeforeDislysis.pinholing" readonly
323
               <el-input v-model="assessmentBeforeDislysis.pinholing" readonly
293
                         @focus="showInnerDialog('14')"></el-input>
324
                         @focus="showInnerDialog('14')"></el-input>
294
             </el-form-item>
325
             </el-form-item>
295
           </el-col>
326
           </el-col>
296
 
327
 
297
           <el-col :span="8">
328
           <el-col :span="8">
298
-            <el-form-item label="穿刺方式: " v-if="isShow('穿刺方式')">
329
+            <el-form-item label="穿刺方式: " :prop="isName('穿刺方式')"
330
+              :rules="isCheckmust('穿刺方式')" v-if="isShow('穿刺方式')">
299
               <!-- <el-select v-model="assessmentBeforeDislysis.puncture_way">
331
               <!-- <el-select v-model="assessmentBeforeDislysis.puncture_way">
300
                 <el-option :key="0" label="请选择" :value="0"></el-option>
332
                 <el-option :key="0" label="请选择" :value="0"></el-option>
301
 
333
 
310
 
342
 
311
 
343
 
312
           <el-col :span="8">
344
           <el-col :span="8">
313
-            <el-form-item label="出血: " v-if="isShow('出血')">
345
+            <el-form-item label="出血: " :prop="isName('出血')"
346
+              :rules="isCheckmust('出血')" v-if="isShow('出血')">
314
               <el-select v-model="assessmentBeforeDislysis.is_hemorrhage">
347
               <el-select v-model="assessmentBeforeDislysis.is_hemorrhage">
315
                 <el-option :key="0" label="请选择" :value="0"></el-option>
348
                 <el-option :key="0" label="请选择" :value="0"></el-option>
316
                 <el-option label="是" value="1"></el-option>
349
                 <el-option label="是" value="1"></el-option>
321
 
354
 
322
 
355
 
323
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
356
           <el-col :span="8" v-if="assessmentBeforeDislysis.is_hemorrhage == 1&&isShow('出血选项')">
324
-            <el-form-item label="出血选项: ">
357
+            <el-form-item label="出血选项: " :prop="isName('出血选项')"
358
+              :rules="isCheckmust('出血选项')">
325
               <div>
359
               <div>
326
                 <el-input v-model="assessmentBeforeDislysis.hemorrhage" @focus="showInnerDialog('6')"></el-input>
360
                 <el-input v-model="assessmentBeforeDislysis.hemorrhage" @focus="showInnerDialog('6')"></el-input>
327
               </div>
361
               </div>
331
 
365
 
332
 
366
 
333
            <el-col :span="8">
367
            <el-col :span="8">
334
-            <el-form-item label="血栓:" v-if="isShow('血栓')">
368
+            <el-form-item label="血栓:" :prop="isName('血栓')"
369
+              :rules="isCheckmust('血栓')" v-if="isShow('血栓')">
335
               <el-select v-model="assessmentBeforeDislysis.thromubus_type" @change="changeThrombus">
370
               <el-select v-model="assessmentBeforeDislysis.thromubus_type" @change="changeThrombus">
336
                 <el-option :key="0" label="请选择" :value="0"></el-option>
371
                 <el-option :key="0" label="请选择" :value="0"></el-option>
337
                 <el-option label="有" value="1"></el-option>
372
                 <el-option label="有" value="1"></el-option>
341
           </el-col>
376
           </el-col>
342
           
377
           
343
           <el-col :span="8">
378
           <el-col :span="8">
344
-            <el-form-item label="导管AV端约为(cm):" v-show="thrombuShow" label-width="200px">
379
+            <el-form-item label="导管AV端约为(cm):" :prop="isName('导管AV端各约')"
380
+              :rules="isCheckmust('导管AV端各约')" v-show="thrombuShow" label-width="200px">
345
               <el-input v-model="assessmentBeforeDislysis.thrombus_av" style="width:150px"></el-input>
381
               <el-input v-model="assessmentBeforeDislysis.thrombus_av" style="width:150px"></el-input>
346
             </el-form-item>
382
             </el-form-item>
347
           </el-col>
383
           </el-col>
348
 
384
 
349
           <el-col :span="8">
385
           <el-col :span="8">
350
-            <el-form-item label="导管A端约(cm):" v-show="thrombuShow">
386
+            <el-form-item label="导管A端约(cm):" :prop="isName('导管A端约')"
387
+              :rules="isCheckmust('导管A端约')" v-show="thrombuShow">
351
               <el-input v-model="assessmentBeforeDislysis.thromubus_a" style="width:150px"></el-input>
388
               <el-input v-model="assessmentBeforeDislysis.thromubus_a" style="width:150px"></el-input>
352
             </el-form-item>
389
             </el-form-item>
353
           </el-col>
390
           </el-col>
354
 
391
 
355
           <el-col :span="8">
392
           <el-col :span="8">
356
-            <el-form-item label="导管V端约(cm):" v-show="thrombuShow">
393
+            <el-form-item label="导管V端约(cm):" :prop="isName('导管V端约')"
394
+              :rules="isCheckmust('导管V端约')" v-show="thrombuShow">
357
               <el-input v-model="assessmentBeforeDislysis.thromubus_v" style="width:150px"></el-input>
395
               <el-input v-model="assessmentBeforeDislysis.thromubus_v" style="width:150px"></el-input>
358
             </el-form-item>
396
             </el-form-item>
359
           </el-col>
397
           </el-col>
360
 
398
 
361
           <el-col :span="8" v-if="isShow('皮肤')">
399
           <el-col :span="8" v-if="isShow('皮肤')">
362
-            <el-form-item label="皮肤: ">
400
+            <el-form-item label="皮肤: " :prop="isName('皮肤')"
401
+              :rules="isCheckmust('皮肤')">
363
               <!-- <el-select v-model="assessmentBeforeDislysis.skin">
402
               <!-- <el-select v-model="assessmentBeforeDislysis.skin">
364
                 <el-option :key="0" label="请选择" :value="0"></el-option>
403
                 <el-option :key="0" label="请选择" :value="0"></el-option>
365
 
404
 
375
 
414
 
376
 
415
 
377
           <el-col :span="8">
416
           <el-col :span="8">
378
-            <el-form-item label="并发症: " v-if="isShow('并发症')">
417
+            <el-form-item label="并发症: " :prop="isName('并发症')"
418
+              :rules="isCheckmust('并发症')" v-if="isShow('并发症')">
379
 
419
 
380
               <el-input v-model="assessmentBeforeDislysis.complication" @focus="showInnerDialog('5')"></el-input>
420
               <el-input v-model="assessmentBeforeDislysis.complication" @focus="showInnerDialog('5')"></el-input>
381
             </el-form-item>
421
             </el-form-item>
382
           </el-col>
422
           </el-col>
383
 
423
 
384
           <el-col :span="8">
424
           <el-col :span="8">
385
-            <el-form-item label="透析前症状: " v-if="isShow('透析前症状')">
425
+            <el-form-item label="透析前症状: " :prop="isName('透析前症状')"
426
+              :rules="isCheckmust('透析前症状')" v-if="isShow('透析前症状')">
386
               <el-input v-model="assessmentBeforeDislysis.symptom_before_dialysis"
427
               <el-input v-model="assessmentBeforeDislysis.symptom_before_dialysis"
387
                         @focus="showInnerDialog('3')"></el-input>
428
                         @focus="showInnerDialog('3')"></el-input>
388
             </el-form-item>
429
             </el-form-item>
390
 
431
 
391
 
432
 
392
           <el-col :span="8">
433
           <el-col :span="8">
393
-            <el-form-item label="前次透析后症状:" v-if="isShow('前次透析后症状')">
434
+            <el-form-item label="前次透析后症状:" :prop="isName('前次透析后症状')"
435
+              :rules="isCheckmust('前次透析后症状')" v-if="isShow('前次透析后症状')">
394
               <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
436
               <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
395
             </el-form-item>
437
             </el-form-item>
396
           </el-col>
438
           </el-col>
397
 
439
 
398
 
440
 
399
           <el-col :span="8" v-if="isShow('急诊')">
441
           <el-col :span="8" v-if="isShow('急诊')">
400
-            <el-form-item label="急诊: ">
442
+            <el-form-item label="急诊: " :prop="isName('急诊')"
443
+              :rules="isCheckmust('急诊')">
401
               <el-select v-model="assessmentBeforeDislysis.emergency_treatment">
444
               <el-select v-model="assessmentBeforeDislysis.emergency_treatment">
402
                 <el-option :key="0" label="请选择" :value="0"></el-option>
445
                 <el-option :key="0" label="请选择" :value="0"></el-option>
403
 
446
 
408
           </el-col>
451
           </el-col>
409
 
452
 
410
           <el-col :span="8" v-if="isShow('其他急诊情况')">
453
           <el-col :span="8" v-if="isShow('其他急诊情况')">
411
-            <el-form-item label="其他急诊情况:">
454
+            <el-form-item label="其他急诊情况:" :prop="isName('其他急诊情况')"
455
+              :rules="isCheckmust('其他急诊情况')">
412
               <el-input v-model="assessmentBeforeDislysis.emergency_treatment_other"></el-input>
456
               <el-input v-model="assessmentBeforeDislysis.emergency_treatment_other"></el-input>
413
             </el-form-item>
457
             </el-form-item>
414
           </el-col>
458
           </el-col>
415
             
459
             
416
           <el-col :span="8" v-if="isShow('特殊处理情况')">
460
           <el-col :span="8" v-if="isShow('特殊处理情况')">
417
-            <el-form-item label="特殊处理情况:">
461
+            <el-form-item label="特殊处理情况:" :prop="isName('特殊处理情况')"
462
+              :rules="isCheckmust('特殊处理情况')">
418
               <el-input v-model="assessmentBeforeDislysis.special_treatment"></el-input>
463
               <el-input v-model="assessmentBeforeDislysis.special_treatment"></el-input>
419
             </el-form-item>
464
             </el-form-item>
420
           </el-col>
465
           </el-col>
423
           
468
           
424
 
469
 
425
           <el-col :span="8">
470
           <el-col :span="8">
426
-            <el-form-item label="透析期间: " v-if="isShow('透析期间')">
471
+            <el-form-item label="透析期间: " :prop="isName('透析期间')"
472
+              :rules="isCheckmust('透析期间')" v-if="isShow('透析期间')">
427
               <el-input v-model="assessmentBeforeDislysis.dialysis_interphase" @focus="showInnerDialog('2')">>
473
               <el-input v-model="assessmentBeforeDislysis.dialysis_interphase" @focus="showInnerDialog('2')">>
428
               </el-input>
474
               </el-input>
429
             </el-form-item>
475
             </el-form-item>
431
 
477
 
432
           <el-col :span="8">
478
           <el-col :span="8">
433
 
479
 
434
-            <el-form-item label="位置: " v-if="isShow('位置')">
480
+            <el-form-item label="位置: " :prop="isName('位置')"
481
+              :rules="isCheckmust('位置')" v-if="isShow('位置')">
435
               <el-select v-model="assessmentBeforeDislysis.venous_catheterization_part">
482
               <el-select v-model="assessmentBeforeDislysis.venous_catheterization_part">
436
                 <el-option :key="0" label="请选择" :value="0"></el-option>
483
                 <el-option :key="0" label="请选择" :value="0"></el-option>
437
 
484
 
443
           </el-col>
490
           </el-col>
444
 
491
 
445
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
492
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
446
-            <el-form-item label="其他中心静脉导管:">
493
+            <el-form-item label="其他中心静脉导管:" :prop="isName('其他中心静脉导管')"
494
+              :rules="isCheckmust('其他中心静脉导管')">
447
               <div>
495
               <div>
448
                 <el-input v-model="assessmentBeforeDislysis.ductus_arantii_other"></el-input>
496
                 <el-input v-model="assessmentBeforeDislysis.ductus_arantii_other"></el-input>
449
               </div>
497
               </div>
451
           </el-col>
499
           </el-col>
452
          
500
          
453
           <el-col :span="8">
501
           <el-col :span="8">
454
-            <el-form-item label="感染: " v-if="isShow('感染')">
502
+            <el-form-item label="感染: " :prop="isName('感染')"
503
+              :rules="isCheckmust('感染')" v-if="isShow('感染')">
455
               <el-select v-model="assessmentBeforeDislysis.is_infect">
504
               <el-select v-model="assessmentBeforeDislysis.is_infect">
456
                 <el-option :key="0" label="请选择" :value="0"></el-option>
505
                 <el-option :key="0" label="请选择" :value="0"></el-option>
457
                 <el-option label="无" value="1"></el-option>
506
                 <el-option label="无" value="1"></el-option>
463
 
512
 
464
 
513
 
465
           <el-col :span="8" v-if="isShow('其他感染情况')">
514
           <el-col :span="8" v-if="isShow('其他感染情况')">
466
-            <el-form-item label="其他感染情况:">
515
+            <el-form-item label="其他感染情况:" :prop="isName('其他感染情况')"
516
+              :rules="isCheckmust('其他感染情况')">
467
               <el-input v-model="assessmentBeforeDislysis.infect_other"></el-input>
517
               <el-input v-model="assessmentBeforeDislysis.infect_other"></el-input>
468
             </el-form-item>
518
             </el-form-item>
469
           </el-col>
519
           </el-col>
472
 
522
 
473
 
523
 
474
           <el-col :span="8" v-if="isShow('外露')">
524
           <el-col :span="8" v-if="isShow('外露')">
475
-            <el-form-item label="外露(cm):">
525
+            <el-form-item label="外露(cm):" :prop="isName('外露')"
526
+              :rules="isCheckmust('外露')">
476
               <el-input v-model="assessmentBeforeDislysis.exposed"></el-input>
527
               <el-input v-model="assessmentBeforeDislysis.exposed"></el-input>
477
             </el-form-item>
528
             </el-form-item>
478
           </el-col>
529
           </el-col>
482
 
533
 
483
 
534
 
484
           <el-col :span="8" v-if="isShow('其他皮肤情况')">
535
           <el-col :span="8" v-if="isShow('其他皮肤情况')">
485
-            <el-form-item label="其他皮肤情况:">
536
+            <el-form-item label="其他皮肤情况:" :prop="isName('其他皮肤情况')"
537
+              :rules="isCheckmust('其他皮肤情况')">
486
               <el-input v-model="assessmentBeforeDislysis.skin_other"></el-input>
538
               <el-input v-model="assessmentBeforeDislysis.skin_other"></el-input>
487
             </el-form-item>
539
             </el-form-item>
488
           </el-col>
540
           </el-col>
494
 
546
 
495
 
547
 
496
           <el-col :span="8">
548
           <el-col :span="8">
497
-            <el-form-item label="导管缝线:" v-if="isShow('导管缝线')">
549
+            <el-form-item label="导管缝线:" :prop="isName('导管缝线')"
550
+              :rules="isCheckmust('导管缝线')" v-if="isShow('导管缝线')">
498
               <el-input v-model="assessmentBeforeDislysis.catheter_suture" @focus="showInnerDialog('15')"></el-input>
551
               <el-input v-model="assessmentBeforeDislysis.catheter_suture" @focus="showInnerDialog('15')"></el-input>
499
             </el-form-item>
552
             </el-form-item>
500
           </el-col>
553
           </el-col>
501
 
554
 
502
 
555
 
503
           <el-col :span="8" v-if="isShow('导管缝线(其他)')">
556
           <el-col :span="8" v-if="isShow('导管缝线(其他)')">
504
-            <el-form-item label="导管缝线(其他):">
557
+            <el-form-item label="导管缝线(其他):" :prop="isName('导管缝线(其他)')"
558
+              :rules="isCheckmust('导管缝线(其他)')">
505
               <el-input v-model="assessmentBeforeDislysis.catheter_suture_other"></el-input>
559
               <el-input v-model="assessmentBeforeDislysis.catheter_suture_other"></el-input>
506
             </el-form-item>
560
             </el-form-item>
507
           </el-col>
561
           </el-col>
509
 
563
 
510
 
564
 
511
           <el-col :span="8" v-if="isShow('尿量')">
565
           <el-col :span="8" v-if="isShow('尿量')">
512
-            <el-form-item label="尿量(ml):">
566
+            <el-form-item label="尿量(ml):" :prop="isName('尿量')"
567
+              :rules="isCheckmust('尿量')">
513
               <el-input v-model="assessmentBeforeDislysis.urine_volume"></el-input>
568
               <el-input v-model="assessmentBeforeDislysis.urine_volume"></el-input>
514
             </el-form-item>
569
             </el-form-item>
515
           </el-col>
570
           </el-col>
518
 
573
 
519
 
574
 
520
           <el-col :span="8">
575
           <el-col :span="8">
521
-            <el-form-item label="水肿:" v-if="isShow('水肿')">
576
+            <el-form-item label="水肿:" :prop="isName('水肿')"
577
+              :rules="isCheckmust('水肿')" v-if="isShow('水肿')">
522
               <el-input v-model="assessmentBeforeDislysis.edema" @focus="showInnerDialog('16')"></el-input>
578
               <el-input v-model="assessmentBeforeDislysis.edema" @focus="showInnerDialog('16')"></el-input>
523
             </el-form-item>
579
             </el-form-item>
524
           </el-col>
580
           </el-col>
525
 
581
 
526
          <el-col :span="8">
582
          <el-col :span="8">
527
-            <el-form-item label="预增脱水量(L):" v-if="isShow('预增脱水量')">
583
+            <el-form-item label="预增脱水量(L):" :prop="isName('预增脱水量')"
584
+              :rules="isCheckmust('预增脱水量')" v-if="isShow('预增脱水量')">
528
              <el-input v-model="assessmentBeforeDislysis.dehydration"></el-input>
585
              <el-input v-model="assessmentBeforeDislysis.dehydration"></el-input>
529
             </el-form-item>
586
             </el-form-item>
530
           </el-col>
587
           </el-col>
531
 
588
 
532
 
589
 
533
           <el-col :span="8">
590
           <el-col :span="8">
534
-            <el-form-item label="透析前药物:" v-if="isShow('透析前药物')">
591
+            <el-form-item label="透析前药物:" :prop="isName('透析前药物')"
592
+              :rules="isCheckmust('透析前药物')" v-if="isShow('透析前药物')">
535
              <el-input v-model="assessmentBeforeDislysis.pre_dialysis_drugs"></el-input>
593
              <el-input v-model="assessmentBeforeDislysis.pre_dialysis_drugs"></el-input>
536
             </el-form-item>
594
             </el-form-item>
537
           </el-col>
595
           </el-col>
538
 
596
 
539
           <el-col :span="8">
597
           <el-col :span="8">
540
-            <el-form-item label="围手术期:" v-if="isShow('围手术期')">
598
+            <el-form-item label="围手术期:" :prop="isName('围手术期')"
599
+              :rules="isCheckmust('围手术期')" v-if="isShow('围手术期')">
541
               <el-select v-model="assessmentBeforeDislysis.period">
600
               <el-select v-model="assessmentBeforeDislysis.period">
542
                 <el-option :key="0" label="请选择" :value="0"></el-option>
601
                 <el-option :key="0" label="请选择" :value="0"></el-option>
543
                 <el-option label="无" value="1"></el-option>
602
                 <el-option label="无" value="1"></el-option>
547
           </el-col>
606
           </el-col>
548
           
607
           
549
           <el-col :span="8">
608
           <el-col :span="8">
550
-            <el-form-item label="预计进食量(g):" v-if="isShow('预计进食量')">
609
+            <el-form-item label="预计进食量(g):" :prop="isName('预计进食量')"
610
+              :rules="isCheckmust('预计进食量')" v-if="isShow('预计进食量')">
551
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
611
              <el-input v-model="assessmentBeforeDislysis.estimated_food_intake"></el-input>
552
             </el-form-item>
612
             </el-form-item>
553
           </el-col>
613
           </el-col>
554
 
614
 
555
          <el-col :span="8">
615
          <el-col :span="8">
556
-            <el-form-item label="透析期间血压:" v-if="isShow('透析期间血压')">
616
+            <el-form-item label="透析期间血压:" :prop="isName('透析期间血压')"
617
+              :rules="isCheckmust('透析期间血压')" v-if="isShow('透析期间血压')">
557
              <el-input v-model="assessmentBeforeDislysis.blood_pressure_during_dialysis"></el-input>
618
              <el-input v-model="assessmentBeforeDislysis.blood_pressure_during_dialysis"></el-input>
558
             </el-form-item>
619
             </el-form-item>
559
           </el-col>
620
           </el-col>
561
      
622
      
562
 
623
 
563
            <el-col :span="8" v-if="isShow('透前尿素')">
624
            <el-col :span="8" v-if="isShow('透前尿素')">
564
-            <el-form-item label="透前尿素(mmol/L):" label-width="150px">
625
+            <el-form-item label="透前尿素(mmol/L):" :prop="isName('透前尿素')"
626
+              :rules="isCheckmust('透前尿素')" label-width="150px">
565
               <el-input v-model="assessmentBeforeDislysis.urea_befor"></el-input>
627
               <el-input v-model="assessmentBeforeDislysis.urea_befor"></el-input>
566
             </el-form-item>
628
             </el-form-item>
567
           </el-col>
629
           </el-col>
568
 
630
 
569
           <el-col :span="8" v-if="isShow('住院科室')">
631
           <el-col :span="8" v-if="isShow('住院科室')">
570
-            <el-form-item label="住院科室:" label-width="150px">
632
+            <el-form-item label="住院科室:" :prop="isName('住院科室')"
633
+              :rules="isCheckmust('住院科室')" label-width="150px">
571
               <el-input v-model="assessmentBeforeDislysis.his_department"></el-input>
634
               <el-input v-model="assessmentBeforeDislysis.his_department"></el-input>
572
             </el-form-item>
635
             </el-form-item>
573
           </el-col>
636
           </el-col>
574
 
637
 
575
          <el-col :span="8" v-if="isShow('住院床位')">
638
          <el-col :span="8" v-if="isShow('住院床位')">
576
-            <el-form-item label="住院床位:" label-width="150px">
639
+            <el-form-item label="住院床位:" :prop="isName('住院床位')"
640
+              :rules="isCheckmust('住院床位')" label-width="150px">
577
               <el-input v-model="assessmentBeforeDislysis.his_bed"></el-input>
641
               <el-input v-model="assessmentBeforeDislysis.his_bed"></el-input>
578
             </el-form-item>
642
             </el-form-item>
579
           </el-col>
643
           </el-col>
580
           
644
           
581
         
645
         
582
           <el-col :span="8">
646
           <el-col :span="8">
583
-            <el-form-item label="抽吸:" v-if="isShow('抽吸')">
647
+            <el-form-item label="抽吸:" :prop="isName('抽吸')"
648
+              :rules="isCheckmust('抽吸')" v-if="isShow('抽吸')">
584
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
649
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
585
             </el-form-item>
650
             </el-form-item>
586
           </el-col>
651
           </el-col>
589
  
654
  
590
          
655
          
591
           <el-col :span="24">
656
           <el-col :span="24">
592
-            <el-form-item label="备注: ">
657
+            <el-form-item label="备注: " :prop="isName('备注')"
658
+              :rules="isCheckmust('备注')">
593
               <el-input type="textarea" v-model="assessmentBeforeDislysis.remark" :rows="5"></el-input>
659
               <el-input type="textarea" v-model="assessmentBeforeDislysis.remark" :rows="5"></el-input>
594
             </el-form-item>
660
             </el-form-item>
595
           </el-col>
661
           </el-col>
601
       </el-form>
667
       </el-form>
602
       <span slot="footer" class="dialog-footer">
668
       <span slot="footer" class="dialog-footer">
603
                 <el-button @click="handleCancle">取 消</el-button>
669
                 <el-button @click="handleCancle">取 消</el-button>
604
-                <el-button type="primary" v-if="hasPermission" @click="handleComfirm">保 存</el-button>
670
+                 <!-- v-if="hasPermission" -->
671
+                <el-button type="primary" @click="handleComfirm('assessmentBeforeDislysis')">保 存</el-button>
605
             </span>
672
             </span>
606
     </el-dialog>
673
     </el-dialog>
607
 
674
 
811
 
878
 
812
     },
879
     },
813
     methods: {
880
     methods: {
881
+    isName(name) {
882
+      let filedList = store.getters.xt_user.fileds;
883
+      for (let i = 0; i < filedList.length; i++) {
884
+        if (filedList[i].module == 3 && filedList[i].filed_name_cn == name) {
885
+          return filedList[i].filed_name;
886
+        }
887
+      }
888
+    },
889
+
890
+    isCheckmust(name) {
891
+      let filedList = store.getters.xt_user.fileds;
892
+
893
+      for (let i = 0; i < filedList.length; i++) {
894
+        if (
895
+          filedList[i].module == 3 &&
896
+          filedList[i].filed_name_cn == name &&
897
+          filedList[i].is_write == 1&&
898
+          filedList[i].is_show == 1
899
+        ) {
900
+          console.log(filedList[i],'false')
901
+          if (name == "血管通路"||name == "导管打折"||name == '出血'||name == '血栓'||name == '围手术期'||name=='血管杂音'||name=='急诊'||name=='中心静脉导置管') {
902
+          return [
903
+            { required: true, message: `请输入${name}` },
904
+            {
905
+              required: true,
906
+              pattern: /^[1-9]\d*$/,
907
+              message: `请输入${name}`,
908
+            },
909
+          ];
910
+        }
911
+          return [{ required: true ,message:`请输入${name}`, trigger: ['blur','change'] }];
912
+          
913
+        }
914
+      }
915
+    },
916
+      
814
       setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
917
       setLastRecord(lastPredialysisEvaluation, lastDryWeightDislysis) {
815
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
918
         this.lastPredialysisEvaluation = lastPredialysisEvaluation
816
         this.lastDryWeightDislysis = lastDryWeightDislysis
919
         this.lastDryWeightDislysis = lastDryWeightDislysis
827
       },
930
       },
828
 
931
 
829
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
932
       show(assessment, lastDryWeightDislysis,last_predialysis_evaluation) {
933
+        let filedList = store.getters.xt_user.fileds;
934
+        console.log(filedList,'filedList')
830
         this.lastPredialysisEvaluation = last_predialysis_evaluation
935
         this.lastPredialysisEvaluation = last_predialysis_evaluation
831
-       
832
-       
833
         console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
936
         console.log("获取上次数据",this.lastPredialysisEvaluation, this.$store.getters.xt_user.org.id )
834
         if(this.lastPredialysisEvaluation != null) {
937
         if(this.lastPredialysisEvaluation != null) {
835
         // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
938
         // if(this.lastPredialysisEvaluation.remark == "" && this.$store.getters.xt_user.org.id == 10307){
1205
       innerDialogCancle: function() {
1308
       innerDialogCancle: function() {
1206
         this.InnerDialogProps.visibility = false
1309
         this.InnerDialogProps.visibility = false
1207
       }, 
1310
       }, 
1208
-      handleComfirm: function() {
1209
-
1311
+      handleComfirm(formName) {
1210
         var arr = this.assessmentBeforeDislysis
1312
         var arr = this.assessmentBeforeDislysis
1211
         for (let i = 0; i < this.machineType.length; i++) {
1313
         for (let i = 0; i < this.machineType.length; i++) {
1212
           if (arr.machine_type == this.machineType[i].id) {
1314
           if (arr.machine_type == this.machineType[i].id) {
1214
           }
1316
           }
1215
         }
1317
         }
1216
         const ParamsQuery = arr
1318
         const ParamsQuery = arr
1217
-        ParamsQuery['patient'] = this.patient.id
1319
+         console.log("params",ParamsQuery)
1320
+         this.$refs.assessmentBeforeDislysis.validate((valid) => {
1321
+          if (valid) {
1322
+            ParamsQuery['patient'] = this.patient.id
1218
         ParamsQuery['record_date'] = this.record_date
1323
         ParamsQuery['record_date'] = this.record_date
1219
         ParamsQuery['mode'] = '1'
1324
         ParamsQuery['mode'] = '1'
1220
 
1325
 
1326
+
1221
         if (this.predialysis_evaluation.id == 0) {
1327
         if (this.predialysis_evaluation.id == 0) {
1222
           ParamsQuery['mode'] = '1'
1328
           ParamsQuery['mode'] = '1'
1223
         } else {
1329
         } else {
1261
             this.hide()
1367
             this.hide()
1262
           }
1368
           }
1263
         })
1369
         })
1370
+          } else {
1371
+            return false;
1372
+          }
1373
+        });
1374
+        
1375
+        
1376
+        
1264
       }, handleCancle: function() {
1377
       }, handleCancle: function() {
1265
         this.isVisibility = false
1378
         this.isVisibility = false
1266
       }, showDryWeightDialog: function() {
1379
       }, showDryWeightDialog: function() {
1340
          this.thrombuShow = false
1453
          this.thrombuShow = false
1341
         }
1454
         }
1342
       }
1455
       }
1456
+
1457
+      
1343
     },
1458
     },
1344
     created() {
1459
     created() {
1345
   
1460
   

文件差異過大導致無法顯示
+ 881 - 662
src/xt_pages/dialysis/details/dialog/computer_dialog.vue


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

490
 
490
 
491
                     </el-col>
491
                     </el-col>
492
 
492
 
493
+                    <el-col :span="8"
494
+                            v-if="isShows('开药数量')">
495
+                        <el-form-item label="开药数量(支):">
496
+                            <el-input type="number" v-model="dialysisPrescription.prescribing_number"></el-input>
497
+                        </el-form-item>
498
+                    </el-col>
499
+
493
 
500
 
494
                     <el-col :span="8"
501
                     <el-col :span="8"
495
                             v-if="isShows('置换量') && ((this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 53)&& this.$store.getters.xt_user.template_info.org_id!=10441)"
502
                             v-if="isShows('置换量') && ((this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 46 || this.$store.getters.xt_user.template_info.template_id == 53)&& this.$store.getters.xt_user.template_info.org_id!=10441)"
974
                   </el-col>
981
                   </el-col>
975
               </el-row>
982
               </el-row>
976
 
983
 
984
+              <el-row :gutter="20">
985
+                    <el-col :span="8" v-if="isShows('处方钠')">
986
+                        <el-form-item label="处方钠: ">
987
+                            <el-input
988
+                                  
989
+                                    v-model="dialysisPrescription.prescription_sodium"
990
+                                    :rows="5"
991
+                            ></el-input>
992
+                        </el-form-item>
993
+                    </el-col>
994
+                    <el-col :span="8"  v-if="isShows('开始钠')">
995
+                        <el-form-item label="开始钠: ">
996
+                            <el-input
997
+                                 
998
+                                    v-model="dialysisPrescription.start_sodium"
999
+                                    :rows="5"
1000
+                            ></el-input>
1001
+                        </el-form-item>
1002
+                    </el-col>
1003
+                    <el-col :span="8" v-if="isShows('钠曲线')">
1004
+                        <el-form-item label="钠曲线: ">
1005
+                            <el-input
1006
+                                  
1007
+                                    v-model="dialysisPrescription.sodium_curve"
1008
+                                    :rows="5"
1009
+                            ></el-input>
1010
+                        </el-form-item>
1011
+                    </el-col>
1012
+                </el-row>
1013
+
1014
+              <el-row :gutter="20">
1015
+                    <el-col :span="24"  v-if="isShows('病情处理')">
1016
+                        <el-form-item  label="病情处理: ">
1017
+                            <el-input
1018
+                                    type="textarea"
1019
+                                    v-model="dialysisPrescription.treatment_remark"
1020
+                                    :rows="5"
1021
+                            ></el-input>
1022
+                        </el-form-item>
1023
+                    </el-col>
1024
+                </el-row>
1025
+
1026
+               
1027
+
1028
+
1029
+
977
                 <el-row :gutter="20">
1030
                 <el-row :gutter="20">
978
                     <el-col :span="24">
1031
                     <el-col :span="24">
979
                         <el-form-item label="备注: ">
1032
                         <el-form-item label="备注: ">
1501
           add_amount:"",
1554
           add_amount:"",
1502
           reduce_amount:"",
1555
           reduce_amount:"",
1503
           dialysis_remark:"",
1556
           dialysis_remark:"",
1557
+          prescribing_number:"",
1558
+          treatment_remark:"",
1559
+          prescription_sodium:"",
1560
+          start_sodium:"",
1561
+          sodium_curve:"",
1504
         },
1562
         },
1505
 
1563
 
1506
         anticoagulant: {
1564
         anticoagulant: {
2334
               this.dialysisPrescription.sodium = 138
2392
               this.dialysisPrescription.sodium = 138
2335
               this.dialysisPrescription.bicarbonate = 31.1
2393
               this.dialysisPrescription.bicarbonate = 31.1
2336
               this.dialysisPrescription.dialysate_flow = 500
2394
               this.dialysisPrescription.dialysate_flow = 500
2395
+              this.dialysisPrescription.dialysate_temperature = 36.5
2396
+              this.dialysisPrescription.prescribing_number = 1
2337
             }
2397
             }
2338
             if(this.$store.getters.xt_user.org.id == 10447){
2398
             if(this.$store.getters.xt_user.org.id == 10447){
2339
               this.dialysisPrescription.dialysate_flow = 500
2399
               this.dialysisPrescription.dialysate_flow = 500
2358
             this.dialysisPrescription.package = last.package
2418
             this.dialysisPrescription.package = last.package
2359
             this.dialysisPrescription.a_liquid = last.a_liquid
2419
             this.dialysisPrescription.a_liquid = last.a_liquid
2360
             this.zongliang = last.anticoagulant_zongliang
2420
             this.zongliang = last.anticoagulant_zongliang
2361
-            this.remark = last.remark
2421
+            if(this.$store.getters.xt_user.template_info.org_id!=10013  && this.$store.getters.xt_user.template_info.org_id!=10014){
2422
+              this.remark = last.remark
2423
+            }
2424
+           
2362
             weight_before = 0
2425
             weight_before = 0
2363
 
2426
 
2364
           }
2427
           }

文件差異過大導致無法顯示
+ 1571 - 1098
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue


+ 42 - 12
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 查看文件

5
       </div> -->
5
       </div> -->
6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
6
       <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
7
       <el-form :model="form" label-width="100px"  :rules="drugdicRules"  ref="form">
7
       <el-form :model="form" label-width="100px"  :rules="drugdicRules"  ref="form">
8
-        <el-form-item label="下机护士">
8
+        <el-form-item label="下机护士" >
9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
9
           <el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
10
             <el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
11
           </el-select>
11
           </el-select>
12
         </el-form-item>
12
         </el-form-item>
13
 
13
 
14
-        <el-form-item label="下机时间 :" style="width:275px">
14
+        <el-form-item label="下机时间 :" :prop="isName('下机时间')"
15
+              :rules="isCheckmust('下机时间')" style="width:275px">
15
           <el-date-picker
16
           <el-date-picker
16
             type="datetime"
17
             type="datetime"
17
             format="yyyy-MM-dd HH:mm"
18
             format="yyyy-MM-dd HH:mm"
22
           ></el-date-picker>
23
           ></el-date-picker>
23
         </el-form-item>
24
         </el-form-item>
24
 
25
 
25
-        <el-form-item label="穿刺处血肿:" v-if="isShowFiled('穿刺处血肿')" :label-width="150">
26
+        <el-form-item label="穿刺处血肿:" :prop="isName('穿刺处血肿')"
27
+              :rules="isCheckmust('穿刺处血肿')" v-if="isShowFiled('穿刺处血肿')" :label-width="150">
26
            <el-radio-group v-model="form.puncture_point_haematoma">
28
            <el-radio-group v-model="form.puncture_point_haematoma">
27
               <el-radio :label="1">有</el-radio>
29
               <el-radio :label="1">有</el-radio>
28
               <el-radio :label="2">无</el-radio>
30
               <el-radio :label="2">无</el-radio>
29
            </el-radio-group>
31
            </el-radio-group>
30
         </el-form-item>
32
         </el-form-item>
31
 
33
 
32
-        <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
34
+        <el-form-item label="内瘘: " :prop="isName('内瘘')"
35
+              :rules="isCheckmust('内瘘')" v-if="isShowFiled('内瘘')">
33
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
36
             <el-input v-model="form.internal_fistula" readonly  @focus="showInnerDialog('7')" style="width:200px"></el-input>
34
         </el-form-item>
37
         </el-form-item>
35
 
38
 
36
 
39
 
37
-        <el-form-item label="导管: " v-if="isShowFiled('导管')">
40
+        <el-form-item label="导管: " :prop="isName('导管')"
41
+              :rules="isCheckmust('导管')" v-if="isShowFiled('导管')">
38
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
42
           <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
39
         </el-form-item>
43
         </el-form-item>
40
 
44
 
41
-        <el-form-item label="透析器凝血: " v-if="isShowFiled('透析器凝血')">
45
+        <el-form-item label="透析器凝血: " :prop="isName('透析器凝血')"
46
+              :rules="isCheckmust('透析器凝血')" v-if="isShowFiled('透析器凝血')">
42
           <el-input
47
           <el-input
43
             style="width:200px"
48
             style="width:200px"
44
             v-model="form.cruor"
49
             v-model="form.cruor"
47
           ></el-input>
52
           ></el-input>
48
        </el-form-item>
53
        </el-form-item>
49
 
54
 
50
-        <el-form-item label="宣教知识:" v-if="isShowFiled('宣教知识')">
55
+        <el-form-item label="宣教知识:" :prop="isName('宣教知识')"
56
+              :rules="isCheckmust('宣教知识')" v-if="isShowFiled('宣教知识')">
51
           <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
57
           <el-select @change="dialysisAfterTeachSelectChange" v-model="form.mission_id">
52
             <el-option
58
             <el-option
53
               v-for="(item, index) in education"
59
               v-for="(item, index) in education"
60
      
66
      
61
       <el-row :gutter="20">
67
       <el-row :gutter="20">
62
         <el-col v-if="isShowFiled('宣教知识')">
68
         <el-col v-if="isShowFiled('宣教知识')">
63
-          <el-form-item>
69
+          <el-form-item :prop="isName('宣教知识')"
70
+              :rules="isCheckmust('宣教知识')">
64
             <el-input
71
             <el-input
65
               type="textarea"
72
               type="textarea"
66
               v-model="form.mission"
73
               v-model="form.mission"
168
         type: Object
175
         type: Object
169
       }
176
       }
170
     },
177
     },
171
-    created() {
178
+      created() {
172
       this.education = getDataConfig('education', 'education')
179
       this.education = getDataConfig('education', 'education')
173
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
180
       this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
174
       this.catheter = getDataConfig('hemodialysis', 'catheter')
181
       this.catheter = getDataConfig('hemodialysis', 'catheter')
175
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
182
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
176
-    },
177
-    watch: {
183
+      },
184
+      watch: {
178
       'dialysis_order.id': function() {
185
       'dialysis_order.id': function() {
179
         if (this.dialysis_order.id == 0) {
186
         if (this.dialysis_order.id == 0) {
180
           this.form.nurse_id = 0
187
           this.form.nurse_id = 0
196
         },
203
         },
197
         deep:true
204
         deep:true
198
       }
205
       }
206
+      },
207
+      methods: {
208
+      isName(name) {
209
+      let filedList = store.getters.xt_user.fileds;
210
+      for (let i = 0; i < filedList.length; i++) {
211
+        if (filedList[i].module == 9 && filedList[i].filed_name_cn == name) {
212
+          return filedList[i].filed_name;
213
+        }
214
+      }
199
     },
215
     },
200
-    methods: {
216
+
217
+    isCheckmust(name) {
218
+      let filedList = store.getters.xt_user.fileds;
219
+      for (let i = 0; i < filedList.length; i++) {
220
+        if (
221
+          filedList[i].module == 9 &&
222
+          filedList[i].filed_name_cn == name &&
223
+          filedList[i].is_write == 1
224
+            ) {
225
+          return [{ required: true ,message:`请输入${name}` }];
226
+            }
227
+          }
228
+        },
201
          dialysisAfterTeachSelectChange: function(values) {
229
          dialysisAfterTeachSelectChange: function(values) {
202
           if (this.form.mission == '') {
230
           if (this.form.mission == '') {
203
             this.form.mission = values
231
             this.form.mission = values
409
                 this.$message.error(resp.msg)
437
                 this.$message.error(resp.msg)
410
               }
438
               }
411
             })
439
             })
440
+          }else{
441
+            return false
412
           }
442
           }
413
         })
443
         })
414
     
444
     

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

879
       <el-form v-show="edit" ref="form" :model="form" label-width="130px">
879
       <el-form v-show="edit" ref="form" :model="form" label-width="130px">
880
         <el-row :gutter="20">
880
         <el-row :gutter="20">
881
           <el-col :span="8" v-if="isShow('监测时间')">
881
           <el-col :span="8" v-if="isShow('监测时间')">
882
-            <el-form-item label="监测时间:">
882
+            <el-form-item label="监测时间:" :prop="isName('监测时间')"
883
+              :rules="isCheckmust('监测时间')">
883
               <!-- {{ monitor_date_str }}
884
               <!-- {{ monitor_date_str }}
884
                 <el-time-picker v-model="form.monitoring_time" :clearable="false" arrow-control :picker-options="{format: 'HH:mm'}" prefix-icon="" value-format="HH:mm" style="width: 60%;">
885
                 <el-time-picker v-model="form.monitoring_time" :clearable="false" arrow-control :picker-options="{format: 'HH:mm'}" prefix-icon="" value-format="HH:mm" style="width: 60%;">
885
                 </el-time-picker> -->
886
                 </el-time-picker> -->
894
             </el-form-item>
895
             </el-form-item>
895
           </el-col>
896
           </el-col>
896
           <el-col :span="8" v-if="isShow('体温')">
897
           <el-col :span="8" v-if="isShow('体温')">
897
-            <el-form-item label="体温(℃):">
898
+            <el-form-item label="体温(℃):" :prop="isName('体温')"
899
+              :rules="isCheckmust('体温')">
898
               <el-input v-model="form.temperature"></el-input>
900
               <el-input v-model="form.temperature"></el-input>
899
             </el-form-item>
901
             </el-form-item>
900
           </el-col>
902
           </el-col>
901
 
903
 
902
           <el-col :span="8" v-if="isShow('收缩压')">
904
           <el-col :span="8" v-if="isShow('收缩压')">
903
-            <el-form-item label="收缩压(mmHg):">
905
+            <el-form-item label="收缩压(mmHg):" :prop="isName('收缩压')"
906
+              :rules="isCheckmust('收缩压')">
904
               <el-input v-model="form.systolic_bp"></el-input>
907
               <el-input v-model="form.systolic_bp"></el-input>
905
             </el-form-item>
908
             </el-form-item>
906
           </el-col>
909
           </el-col>
907
           <el-col :span="8" v-if="isShow('舒张压')">
910
           <el-col :span="8" v-if="isShow('舒张压')">
908
-            <el-form-item label="舒张压(mmHg):">
911
+            <el-form-item label="舒张压(mmHg):" :prop="isName('舒张压')"
912
+              :rules="isCheckmust('舒张压')">
909
               <el-input v-model="form.diastolic_bp"></el-input>
913
               <el-input v-model="form.diastolic_bp"></el-input>
910
             </el-form-item>
914
             </el-form-item>
911
           </el-col>
915
           </el-col>
912
 
916
 
913
           <el-col :span="8" v-if="isShow('脉搏')">
917
           <el-col :span="8" v-if="isShow('脉搏')">
914
-            <el-form-item label="脉搏(次/分):">
918
+            <el-form-item label="脉搏(次/分):" :prop="isName('脉搏')"
919
+              :rules="isCheckmust('脉搏')">
915
               <el-input v-model="form.pulse_frequency"></el-input>
920
               <el-input v-model="form.pulse_frequency"></el-input>
916
             </el-form-item>
921
             </el-form-item>
917
           </el-col>
922
           </el-col>
918
           <el-col :span="8" v-if="isShow('呼吸频率')">
923
           <el-col :span="8" v-if="isShow('呼吸频率')">
919
-            <el-form-item label="呼吸频率(次/分):">
924
+            <el-form-item label="呼吸频率(次/分):" :prop="isName('呼吸频率')"
925
+              :rules="isCheckmust('呼吸频率')">
920
               <el-input v-model="form.breathing_rated"></el-input>
926
               <el-input v-model="form.breathing_rated"></el-input>
921
             </el-form-item>
927
             </el-form-item>
922
           </el-col>
928
           </el-col>
924
             <el-form-item
930
             <el-form-item
925
               v-if="form.venous_pressure_type == 2"
931
               v-if="form.venous_pressure_type == 2"
926
               label="静脉压(kpa):"
932
               label="静脉压(kpa):"
933
+               :prop="isName('静脉压')"
934
+              :rules="isCheckmust('静脉压')"
927
             >
935
             >
928
               <el-input
936
               <el-input
929
                 style="width: 140px"
937
                 style="width: 140px"
936
                 >切换</el-button
944
                 >切换</el-button
937
               >
945
               >
938
             </el-form-item>
946
             </el-form-item>
939
-            <el-form-item v-else label="静脉压(mmHg):">
947
+            <el-form-item v-else label="静脉压(mmHg):" :prop="isName('静脉压')"
948
+              :rules="isCheckmust('静脉压')">
940
               <el-input
949
               <el-input
941
                 style="width: 140px"
950
                 style="width: 140px"
942
                 v-model="form.venous_pressure"
951
                 v-model="form.venous_pressure"
953
             <el-form-item
962
             <el-form-item
954
               v-if="form.arterial_pressure_type == 2"
963
               v-if="form.arterial_pressure_type == 2"
955
               label="动脉压(kpa):"
964
               label="动脉压(kpa):"
965
+               :prop="isName('动脉压')"
966
+              :rules="isCheckmust('动脉压')"
956
             >
967
             >
957
               <el-input
968
               <el-input
958
                 style="width: 140px"
969
                 style="width: 140px"
965
                 >切换</el-button
976
                 >切换</el-button
966
               >
977
               >
967
             </el-form-item>
978
             </el-form-item>
968
-            <el-form-item v-else label="动脉压(mmHg):">
979
+            <el-form-item v-else label="动脉压(mmHg):" :prop="isName('动脉压')"
980
+              :rules="isCheckmust('动脉压')">
969
               <el-input
981
               <el-input
970
                 style="width: 140px"
982
                 style="width: 140px"
971
                 v-model="form.arterial_pressure"
983
                 v-model="form.arterial_pressure"
980
           </el-col>
992
           </el-col>
981
 
993
 
982
           <el-col :span="8" v-if="isShow('血流量')">
994
           <el-col :span="8" v-if="isShow('血流量')">
983
-            <el-form-item label="血流量(ml/min):">
995
+            <el-form-item label="血流量(ml/min):" :prop="isName('血流量')"
996
+              :rules="isCheckmust('血流量')">
984
               <el-input v-model="form.blood_flow_volume"></el-input>
997
               <el-input v-model="form.blood_flow_volume"></el-input>
985
             </el-form-item>
998
             </el-form-item>
986
           </el-col>
999
           </el-col>
989
             <el-form-item
1002
             <el-form-item
990
               v-if="form.transmembrane_pressure_type == 2"
1003
               v-if="form.transmembrane_pressure_type == 2"
991
               label="跨膜压(kpa):"
1004
               label="跨膜压(kpa):"
1005
+               :prop="isName('跨膜压')"
1006
+              :rules="isCheckmust('跨膜压')"
992
             >
1007
             >
993
               <el-input
1008
               <el-input
994
                 style="width: 140px"
1009
                 style="width: 140px"
1001
                 >切换</el-button
1016
                 >切换</el-button
1002
               >
1017
               >
1003
             </el-form-item>
1018
             </el-form-item>
1004
-            <el-form-item v-else label="跨膜压(mmHg):">
1019
+            <el-form-item v-else label="跨膜压(mmHg):" :prop="isName('跨膜压')"
1020
+              :rules="isCheckmust('跨膜压')">
1005
               <el-input
1021
               <el-input
1006
                 style="width: 140px"
1022
                 style="width: 140px"
1007
                 v-model="form.transmembrane_pressure"
1023
                 v-model="form.transmembrane_pressure"
1053
                 org_id== 10445)
1069
                 org_id== 10445)
1054
             "
1070
             "
1055
           >
1071
           >
1056
-            <el-form-item label="超滤率(ml/h)">
1072
+            <el-form-item label="超滤率(ml/h)" :prop="isName('超滤率')"
1073
+              :rules="isCheckmust('超滤率')">
1057
               <el-input v-model="form.ultrafiltration_rate"></el-input>
1074
               <el-input v-model="form.ultrafiltration_rate"></el-input>
1058
             </el-form-item>
1075
             </el-form-item>
1059
           </el-col>
1076
           </el-col>
1095
               org_id!=10445
1112
               org_id!=10445
1096
             "
1113
             "
1097
           >
1114
           >
1098
-            <el-form-item label="超滤率(L/h)">
1115
+            <el-form-item label="超滤率(L/h)" :prop="isName('超滤率')"
1116
+              :rules="isCheckmust('超滤率')">
1099
               <el-input v-model="form.ultrafiltration_rate"></el-input>
1117
               <el-input v-model="form.ultrafiltration_rate"></el-input>
1100
             </el-form-item>
1118
             </el-form-item>
1101
           </el-col>
1119
           </el-col>
1147
                 org_id == 10445)
1165
                 org_id == 10445)
1148
             "
1166
             "
1149
           >
1167
           >
1150
-            <el-form-item label="超滤量(ml):">
1168
+            <el-form-item label="超滤量(ml):" :prop="isName('超滤量')"
1169
+              :rules="isCheckmust('超滤量')">
1151
               <el-input v-model="form.ultrafiltration_volume"></el-input>
1170
               <el-input v-model="form.ultrafiltration_volume"></el-input>
1152
             </el-form-item>
1171
             </el-form-item>
1153
           </el-col>
1172
           </el-col>
1199
               org_id!=10445
1218
               org_id!=10445
1200
             "
1219
             "
1201
           >
1220
           >
1202
-            <el-form-item label="超滤量(L):">
1221
+            <el-form-item label="超滤量(L):" :prop="isName('超滤量')"
1222
+              :rules="isCheckmust('超滤量')">
1203
               <el-input v-model="form.ultrafiltration_volume"></el-input>
1223
               <el-input v-model="form.ultrafiltration_volume"></el-input>
1204
             </el-form-item>
1224
             </el-form-item>
1205
           </el-col>
1225
           </el-col>
1206
 
1226
 
1207
           <el-col :span="8" v-if="isShow('钠浓度')">
1227
           <el-col :span="8" v-if="isShow('钠浓度')">
1208
-            <el-form-item label="钠浓度(mmol/L):">
1228
+            <el-form-item label="钠浓度(mmol/L):" :prop="isName('钠浓度')"
1229
+              :rules="isCheckmust('钠浓度')">
1209
               <el-input v-model="form.sodium_concentration"></el-input>
1230
               <el-input v-model="form.sodium_concentration"></el-input>
1210
             </el-form-item>
1231
             </el-form-item>
1211
           </el-col>
1232
           </el-col>
1213
 
1234
 
1214
           <el-row :gutter="20"> -->
1235
           <el-row :gutter="20"> -->
1215
           <el-col :span="8" v-if="isShow('透析液温度')">
1236
           <el-col :span="8" v-if="isShow('透析液温度')">
1216
-            <el-form-item label="透析液温度(℃):">
1237
+            <el-form-item label="透析液温度(℃):" :prop="isName('透析液温度')"
1238
+              :rules="isCheckmust('透析液温度')">
1217
               <el-input v-model="form.dialysate_temperature"></el-input>
1239
               <el-input v-model="form.dialysate_temperature"></el-input>
1218
             </el-form-item>
1240
             </el-form-item>
1219
           </el-col>
1241
           </el-col>
1236
               org_id!=10445
1258
               org_id!=10445
1237
             "
1259
             "
1238
           >
1260
           >
1239
-            <el-form-item label="置换率(L/h):">
1261
+            <el-form-item label="置换率(L/h):" :prop="isName('置换率')"
1262
+              :rules="isCheckmust('置换率')">
1240
               <el-input v-model="form.replacement_rate"></el-input>
1263
               <el-input v-model="form.replacement_rate"></el-input>
1241
             </el-form-item>
1264
             </el-form-item>
1242
           </el-col>
1265
           </el-col>
1259
                 org_id!=10445)
1282
                 org_id!=10445)
1260
             "
1283
             "
1261
           >
1284
           >
1262
-            <el-form-item label="置换率(ml/min):">
1285
+            <el-form-item label="置换率(ml/min):" :prop="isName('置换率')"
1286
+              :rules="isCheckmust('置换率')">
1263
               <el-input v-model="form.replacement_rate"></el-input>
1287
               <el-input v-model="form.replacement_rate"></el-input>
1264
             </el-form-item>
1288
             </el-form-item>
1265
           </el-col>
1289
           </el-col>
1266
           <el-col :span="8" v-if="isShow('置换量') && template_id == 43">
1290
           <el-col :span="8" v-if="isShow('置换量') && template_id == 43">
1267
-            <el-form-item label="置换量(ml/h):">
1291
+            <el-form-item label="置换量(ml/h):" :prop="isName('置换量')"
1292
+              :rules="isCheckmust('置换量')">
1268
               <el-input v-model="form.displacement_quantity"></el-input>
1293
               <el-input v-model="form.displacement_quantity"></el-input>
1269
             </el-form-item>
1294
             </el-form-item>
1270
           </el-col>
1295
           </el-col>
1289
               org_id!=10445
1314
               org_id!=10445
1290
             "
1315
             "
1291
           >
1316
           >
1292
-            <el-form-item label="置换量(L):">
1317
+            <el-form-item label="置换量(L):" :prop="isName('置换量')"
1318
+              :rules="isCheckmust('置换量')">
1293
               <el-input v-model="form.displacement_quantity"></el-input>
1319
               <el-input v-model="form.displacement_quantity"></el-input>
1294
             </el-form-item>
1320
             </el-form-item>
1295
           </el-col>
1321
           </el-col>
1316
                 org_id ==10445)
1342
                 org_id ==10445)
1317
             "
1343
             "
1318
           >
1344
           >
1319
-            <el-form-item label="置换量(ml):">
1345
+            <el-form-item label="置换量(ml):" :prop="isName('置换量')"
1346
+              :rules="isCheckmust('置换量')">
1320
               <el-input v-model="form.displacement_quantity"></el-input>
1347
               <el-input v-model="form.displacement_quantity"></el-input>
1321
             </el-form-item>
1348
             </el-form-item>
1322
           </el-col>
1349
           </el-col>
1323
 
1350
 
1324
           <el-col :span="8" v-if="isShow('电导度')">
1351
           <el-col :span="8" v-if="isShow('电导度')">
1325
-            <el-form-item label="电导度(mS/m):">
1352
+            <el-form-item label="电导度(mS/m):" :prop="isName('电导度')"
1353
+              :rules="isCheckmust('电导度')">
1326
               <el-input v-model="form.conductivity"></el-input>
1354
               <el-input v-model="form.conductivity"></el-input>
1327
             </el-form-item>
1355
             </el-form-item>
1328
           </el-col>
1356
           </el-col>
1329
 
1357
 
1330
           <el-col :span="8" v-if="isShow('置换液流量') && template_id != 27">
1358
           <el-col :span="8" v-if="isShow('置换液流量') && template_id != 27">
1331
-            <el-form-item label="置换液流量(ml/h):">
1359
+            <el-form-item label="置换液流量(ml/h):" :prop="isName('置换液流量')"
1360
+              :rules="isCheckmust('置换液流量')">
1332
               <el-input v-model="form.displacement_flow_quantity"></el-input>
1361
               <el-input v-model="form.displacement_flow_quantity"></el-input>
1333
             </el-form-item>
1362
             </el-form-item>
1334
           </el-col>
1363
           </el-col>
1335
           <el-col :span="8" v-if="isShow('置换液流量') && template_id == 27">
1364
           <el-col :span="8" v-if="isShow('置换液流量') && template_id == 27">
1336
-            <el-form-item label="置换液流量(ml/min):">
1365
+            <el-form-item label="置换液流量(ml/min):" :prop="isName('置换液流量')"
1366
+              :rules="isCheckmust('置换液流量')">
1337
               <el-input v-model="form.displacement_flow_quantity"></el-input>
1367
               <el-input v-model="form.displacement_flow_quantity"></el-input>
1338
             </el-form-item>
1368
             </el-form-item>
1339
           </el-col>
1369
           </el-col>
1340
 
1370
 
1341
           <el-col :span="8" v-if="isShow('透析液流量')">
1371
           <el-col :span="8" v-if="isShow('透析液流量')">
1342
-            <el-form-item label="透析液流量(ml/h):">
1372
+            <el-form-item label="透析液流量(ml/h):" :prop="isName('透析液流量')"
1373
+              :rules="isCheckmust('透析液流量')">
1343
               <el-input v-model="form.dialysate_flow"></el-input>
1374
               <el-input v-model="form.dialysate_flow"></el-input>
1344
             </el-form-item>
1375
             </el-form-item>
1345
           </el-col>
1376
           </el-col>
1346
 
1377
 
1347
           <el-col :span="8" v-if="isShow('SpO₂')">
1378
           <el-col :span="8" v-if="isShow('SpO₂')">
1348
-            <el-form-item label="SpO₂(%):">
1379
+            <el-form-item label="SpO₂(%):" :prop="isName('SpO₂')"
1380
+              :rules="isCheckmust('SpO₂')">
1349
               <el-input v-model="form.blood_oxygen_saturation"></el-input>
1381
               <el-input v-model="form.blood_oxygen_saturation"></el-input>
1350
             </el-form-item>
1382
             </el-form-item>
1351
           </el-col>
1383
           </el-col>
1352
 
1384
 
1353
           <el-col :span="8" v-if="isShow('血糖')">
1385
           <el-col :span="8" v-if="isShow('血糖')">
1354
-            <el-form-item label="血糖(mmol/L):">
1386
+            <el-form-item label="血糖(mmol/L):" :prop="isName('血糖')"
1387
+              :rules="isCheckmust('血糖')">
1355
               <el-input v-model="form.blood_sugar"></el-input>
1388
               <el-input v-model="form.blood_sugar"></el-input>
1356
             </el-form-item>
1389
             </el-form-item>
1357
           </el-col>
1390
           </el-col>
1358
 
1391
 
1359
           <el-col :span="8" v-if="isShow('肝素用量余量')">
1392
           <el-col :span="8" v-if="isShow('肝素用量余量')">
1360
-            <el-form-item label="肝素用量余量(ml):">
1393
+            <el-form-item label="肝素用量余量(ml):" :prop="isName('肝素用量余量')"
1394
+              :rules="isCheckmust('肝素用量余量')">
1361
               <el-input v-model="form.heparin"></el-input>
1395
               <el-input v-model="form.heparin"></el-input>
1362
             </el-form-item>
1396
             </el-form-item>
1363
           </el-col>
1397
           </el-col>
1364
 
1398
 
1365
           <el-col :span="8" v-if="isShow('肝素量')">
1399
           <el-col :span="8" v-if="isShow('肝素量')">
1366
-            <el-form-item label="肝素量(mg):">
1400
+            <el-form-item label="肝素量(mg):" :prop="isName('肝素量')"
1401
+              :rules="isCheckmust('肝素量')">
1367
               <el-input v-model="form.heparin_amount"></el-input>
1402
               <el-input v-model="form.heparin_amount"></el-input>
1368
             </el-form-item>
1403
             </el-form-item>
1369
           </el-col>
1404
           </el-col>
1370
 
1405
 
1371
           <el-col :span="8" v-if="isShow('抗凝剂')">
1406
           <el-col :span="8" v-if="isShow('抗凝剂')">
1372
-            <el-form-item label="抗凝剂:">
1407
+            <el-form-item label="抗凝剂:" :prop="isName('抗凝剂')"
1408
+              :rules="isCheckmust('抗凝剂')">
1373
               <div style="display: flex">
1409
               <div style="display: flex">
1374
                 <el-select
1410
                 <el-select
1375
                   v-model="form.monitor_anticoagulant"
1411
                   v-model="form.monitor_anticoagulant"
1392
           </el-col>
1428
           </el-col>
1393
 
1429
 
1394
           <el-col :span="8" v-if="isShow('血压监测部位')">
1430
           <el-col :span="8" v-if="isShow('血压监测部位')">
1395
-            <el-form-item label="血压监测部位:">
1431
+            <el-form-item label="血压监测部位:" :prop="isName('血压监测部位')"
1432
+              :rules="isCheckmust('血压监测部位')">
1396
               <div style="display: flex">
1433
               <div style="display: flex">
1397
                 <el-select
1434
                 <el-select
1398
                   v-model="form.blood_pressure_monitoring_site"
1435
                   v-model="form.blood_pressure_monitoring_site"
1411
           </el-col>
1448
           </el-col>
1412
 
1449
 
1413
           <el-col :span="8" v-if="isShow('并发症')">
1450
           <el-col :span="8" v-if="isShow('并发症')">
1414
-            <el-form-item label="并发症">
1451
+            <el-form-item label="并发症" :prop="isName('并发症')"
1452
+              :rules="isCheckmust('并发症')">
1415
               <div style="display: flex">
1453
               <div style="display: flex">
1416
                 <el-select
1454
                 <el-select
1417
                   v-model="form.complication"
1455
                   v-model="form.complication"
1430
           </el-col>
1468
           </el-col>
1431
 
1469
 
1432
           <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340)">
1470
           <el-col :span="8" v-if="isShow('累计血容量') && (template_id == 41 || org_id == 9671 || org_id == 9538 || org_id == 10340)">
1433
-            <el-form-item label="累计血容量(L):">
1471
+            <el-form-item label="累计血容量(L):" :prop="isName('累计血容量')"
1472
+              :rules="isCheckmust('累计血容量')">
1434
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1473
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1435
             </el-form-item>
1474
             </el-form-item>
1436
           </el-col>
1475
           </el-col>
1437
 
1476
 
1438
           <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340)">
1477
           <el-col :span="8" v-if="isShow('累计血容量') && (template_id  != 41 && template_id !=9671 && org_id!=9538 && org_id!=10340)">
1439
-            <el-form-item label="累计血容量(ml):">
1478
+            <el-form-item label="累计血容量(ml):" :prop="isName('累计血容量')"
1479
+              :rules="isCheckmust('累计血容量')">
1440
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1480
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1441
             </el-form-item>
1481
             </el-form-item>
1442
           </el-col>
1482
           </el-col>
1443
 
1483
 
1444
           <el-col :span="8" v-if="isShow('血容量')">
1484
           <el-col :span="8" v-if="isShow('血容量')">
1445
-            <el-form-item label="血容量(L):">
1485
+            <el-form-item label="血容量(L):" :prop="isName('血容量')"
1486
+              :rules="isCheckmust('血容量')">
1446
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1487
               <el-input v-model="form.accumulated_blood_volume"></el-input>
1447
             </el-form-item>
1488
             </el-form-item>
1448
           </el-col>
1489
           </el-col>
1449
 
1490
 
1450
           <el-col :span="8" v-if="isShow('血温监测')">
1491
           <el-col :span="8" v-if="isShow('血温监测')">
1451
-            <el-form-item label="血温监测">
1492
+            <el-form-item label="血温监测" :prop="isName('血温监测')"
1493
+              :rules="isCheckmust('血温监测')">
1452
               <el-input v-model="form.blood_temperature"></el-input>
1494
               <el-input v-model="form.blood_temperature"></el-input>
1453
             </el-form-item>
1495
             </el-form-item>
1454
           </el-col>
1496
           </el-col>
1455
 
1497
 
1456
           <el-col :span="8" v-if="isShow('尿素监测')">
1498
           <el-col :span="8" v-if="isShow('尿素监测')">
1457
-            <el-form-item label="尿素监测">
1499
+            <el-form-item label="尿素监测" :prop="isName('尿素监测')"
1500
+              :rules="isCheckmust('尿素监测')">
1458
               <el-input v-model="form.urea_monitoring"></el-input>
1501
               <el-input v-model="form.urea_monitoring"></el-input>
1459
             </el-form-item>
1502
             </el-form-item>
1460
           </el-col>
1503
           </el-col>
1461
 
1504
 
1462
           <el-col :span="8" v-if="isShow('血浓量')">
1505
           <el-col :span="8" v-if="isShow('血浓量')">
1463
-            <el-form-item label="血浓量">
1506
+            <el-form-item label="血浓量" :prop="isName('血浓量')"
1507
+              :rules="isCheckmust('血浓量')">
1464
               <el-input v-model="form.blood_thickness"></el-input>
1508
               <el-input v-model="form.blood_thickness"></el-input>
1465
             </el-form-item>
1509
             </el-form-item>
1466
           </el-col>
1510
           </el-col>
1467
 
1511
 
1468
           <el-col :span="8" v-if="isShow('血压监测')">
1512
           <el-col :span="8" v-if="isShow('血压监测')">
1469
-            <el-form-item label="血压监测">
1513
+            <el-form-item label="血压监测" :prop="isName('血压监测')"
1514
+              :rules="isCheckmust('血压监测')">
1470
               <el-input v-model="form.blood_monitor"></el-input>
1515
               <el-input v-model="form.blood_monitor"></el-input>
1471
             </el-form-item>
1516
             </el-form-item>
1472
           </el-col>
1517
           </el-col>
1473
 
1518
 
1474
           <el-col :span="8" v-if="isShow('脱水')">
1519
           <el-col :span="8" v-if="isShow('脱水')">
1475
-            <el-form-item label="脱水(L):">
1520
+            <el-form-item label="脱水(L):" :prop="isName('脱水')"
1521
+              :rules="isCheckmust('脱水')">
1476
               <el-input v-model="form.dehydration"></el-input>
1522
               <el-input v-model="form.dehydration"></el-input>
1477
             </el-form-item>
1523
             </el-form-item>
1478
           </el-col>
1524
           </el-col>
1481
 
1527
 
1482
           <el-row :gutter="20"> -->
1528
           <el-row :gutter="20"> -->
1483
           <el-col :span="24" v-if="isShow('KT/V')">
1529
           <el-col :span="24" v-if="isShow('KT/V')">
1484
-            <el-form-item label="KT/V(在线):">
1530
+            <el-form-item label="KT/V(在线):" :prop="isName('KT/V')"
1531
+              :rules="isCheckmust('KT/V')">
1485
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
1532
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
1486
             </el-form-item>
1533
             </el-form-item>
1487
           </el-col>
1534
           </el-col>
1488
 
1535
 
1489
           <el-col :span="24" v-if="isShow('URR')">
1536
           <el-col :span="24" v-if="isShow('URR')">
1490
-            <el-form-item label="URR:">
1537
+            <el-form-item label="URR:" :prop="isName('URR')"
1538
+              :rules="isCheckmust('URR')">
1491
               <el-input type="textarea" :rows="4" v-model="form.urr"></el-input>
1539
               <el-input type="textarea" :rows="4" v-model="form.urr"></el-input>
1492
             </el-form-item>
1540
             </el-form-item>
1493
           </el-col>
1541
           </el-col>
1495
 
1543
 
1496
           <el-row :gutter="20"> -->
1544
           <el-row :gutter="20"> -->
1497
           <el-col :span="24" v-if="isShow('病情变化')">
1545
           <el-col :span="24" v-if="isShow('病情变化')">
1498
-            <el-form-item label="病情变化:">
1546
+            <el-form-item label="病情变化:" :prop="isName('病情变化')"
1547
+              :rules="isCheckmust('病情变化')">
1499
               <el-select
1548
               <el-select
1500
                 v-model="symptom_selecteds"
1549
                 v-model="symptom_selecteds"
1501
                 style="width: 100%"
1550
                 style="width: 100%"
1515
           <!-- </el-row>
1564
           <!-- </el-row>
1516
           <el-row :gutter="20"> -->
1565
           <el-row :gutter="20"> -->
1517
           <el-col :span="24" v-if="isShow('病情变化')">
1566
           <el-col :span="24" v-if="isShow('病情变化')">
1518
-            <el-form-item>
1567
+            <el-form-item :prop="isName('病情变化')"
1568
+              :rules="isCheckmust('病情变化')">
1519
               <el-input
1569
               <el-input
1520
                 type="textarea"
1570
                 type="textarea"
1521
                 :rows="4"
1571
                 :rows="4"
1529
           <el-row :gutter="20"> -->
1579
           <el-row :gutter="20"> -->
1530
 
1580
 
1531
           <el-col :span="24" v-if="isShow('处理')">
1581
           <el-col :span="24" v-if="isShow('处理')">
1532
-            <el-form-item label="处理:">
1582
+            <el-form-item label="处理:" :prop="isName('处理')"
1583
+              :rules="isCheckmust('处理')">
1533
               <el-select
1584
               <el-select
1534
                 v-model="dispose_selecteds"
1585
                 v-model="dispose_selecteds"
1535
                 style="width: 100%"
1586
                 style="width: 100%"
1550
           <!-- </el-row>
1601
           <!-- </el-row>
1551
           <el-row :gutter="20"> -->
1602
           <el-row :gutter="20"> -->
1552
           <el-col :span="24" v-if="isShow('处理')">
1603
           <el-col :span="24" v-if="isShow('处理')">
1553
-            <el-form-item>
1604
+            <el-form-item :prop="isName('处理')"
1605
+              :rules="isCheckmust('处理')">
1554
               <el-input
1606
               <el-input
1555
                 type="textarea"
1607
                 type="textarea"
1556
                 :rows="4"
1608
                 :rows="4"
1564
 
1616
 
1565
           <el-row :gutter="20"> -->
1617
           <el-row :gutter="20"> -->
1566
           <el-col :span="24" v-if="isShow('结果')">
1618
           <el-col :span="24" v-if="isShow('结果')">
1567
-            <el-form-item label="结果:">
1619
+            <el-form-item label="结果:" :prop="isName('结果')"
1620
+              :rules="isCheckmust('结果')">
1568
               <el-select
1621
               <el-select
1569
                 v-model="result_selecteds"
1622
                 v-model="result_selecteds"
1570
                 style="width: 100%"
1623
                 style="width: 100%"
1584
           <!-- </el-row>
1637
           <!-- </el-row>
1585
           <el-row :gutter="20"> -->
1638
           <el-row :gutter="20"> -->
1586
           <el-col :span="24" v-if="isShow('结果')">
1639
           <el-col :span="24" v-if="isShow('结果')">
1587
-            <el-form-item>
1640
+            <el-form-item :prop="isName('结果')"
1641
+              :rules="isCheckmust('结果')">
1588
               <el-input
1642
               <el-input
1589
                 type="textarea"
1643
                 type="textarea"
1590
                 :rows="4"
1644
                 :rows="4"
1598
 
1652
 
1599
       <div slot="footer" class="dialog-footer" v-show="edit">
1653
       <div slot="footer" class="dialog-footer" v-show="edit">
1600
         <el-button @click="cancelEditAction">取 消</el-button>
1654
         <el-button @click="cancelEditAction">取 消</el-button>
1601
-        <el-button :loading="loading" type="primary"  @click="submitAction">保 存</el-button>
1655
+        <el-button :loading="loading" type="primary"  @click="submitAction('form')">保 存</el-button>
1602
       </div>
1656
       </div>
1603
       <!--</div>-->
1657
       <!--</div>-->
1604
     </el-dialog>
1658
     </el-dialog>
1743
    
1797
    
1744
   },
1798
   },
1745
   methods: {
1799
   methods: {
1800
+      isName(name) {
1801
+      let filedList = store.getters.xt_user.fileds;
1802
+      for (let i = 0; i < filedList.length; i++) {
1803
+        if (filedList[i].module == 4 && filedList[i].filed_name_cn == name) {
1804
+          return filedList[i].filed_name;
1805
+        }
1806
+      }
1807
+    },
1808
+
1809
+    isCheckmust(name) {
1810
+      let filedList = store.getters.xt_user.fileds;
1811
+      for (let i = 0; i < filedList.length; i++) {
1812
+        if (
1813
+          filedList[i].module == 4
1814
+          &&filedList[i].filed_name_cn == name 
1815
+          &&filedList[i].is_write == 1
1816
+        ) {
1817
+          // console.log(filedList[i].is_write,'false')
1818
+          // console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1819
+          return [{ required: true ,message:`请输入${name}` }];
1820
+        } 
1821
+        // else {
1822
+        //   console.log(name,filedList[i].filed_name_cn,'难道不一样吗')
1823
+        //   // console.log(filedList[i].is_write,'true')
1824
+        //   return [{ required:false}];
1825
+        // }
1826
+      }
1827
+    },
1746
     venousPressureChange(type) {
1828
     venousPressureChange(type) {
1747
       if (type == 1) {
1829
       if (type == 1) {
1748
         this.form.venous_pressure = Math.ceil(
1830
         this.form.venous_pressure = Math.ceil(
2203
       }
2285
       }
2204
     },
2286
     },
2205
 
2287
 
2206
-    submitAction: function () {
2288
+    submitAction: function (form) {
2207
       // TODO loading
2289
       // TODO loading
2208
-      this.loading = true
2290
+        this.$refs[form].validate((valid) => {
2291
+          if (valid) {
2292
+            this.loading = true
2209
       console.log("aaaa")
2293
       console.log("aaaa")
2210
       var is_new = this.form.id;
2294
       var is_new = this.form.id;
2211
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2295
       this.form.operate_time = parseInt(this.form.operate_time / 1000);
2500
         }
2584
         }
2501
       );
2585
       );
2502
       this.loading = false
2586
       this.loading = false
2587
+          } else {
2588
+            console.log('error submit!!');
2589
+            return false;
2590
+          }
2591
+        });
2592
+
2593
+      
2503
     },
2594
     },
2504
 
2595
 
2505
     symptomTextareaBlur: function () {
2596
     symptomTextareaBlur: function () {

+ 229 - 170
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

7
     :modal-append-to-body="false"
7
     :modal-append-to-body="false"
8
   >
8
   >
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
9
     <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
10
-    <el-form :model="treatmentSummary">
10
+    <el-form :model="treatmentSummary" ref="treatmentSummary">
11
       <el-row :gutter="20">
11
       <el-row :gutter="20">
12
         <el-col :span="24" v-if="isShow('宣教知识')">
12
         <el-col :span="24" v-if="isShow('宣教知识')">
13
-          <el-form-item label="宣教知识:">
13
+          <el-form-item
14
+            label="宣教知识:"
15
+            :prop="isName('宣教知识')"
16
+            :rules="isCheckmust('宣教知识')"
17
+          >
14
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
18
             <el-select @change="dialysisAfterTeachSelectChange" v-model="value">
15
               <el-option
19
               <el-option
16
                 v-for="(item, index) in education"
20
                 v-for="(item, index) in education"
24
       </el-row>
28
       </el-row>
25
       <el-row :gutter="20">
29
       <el-row :gutter="20">
26
         <el-col v-if="isShow('宣教知识')">
30
         <el-col v-if="isShow('宣教知识')">
27
-          <el-form-item>
31
+          <el-form-item
32
+            :prop="isName('宣教知识')"
33
+            :rules="isCheckmust('宣教知识')"
34
+          >
28
             <el-input
35
             <el-input
29
               type="textarea"
36
               type="textarea"
30
               v-model="treatmentSummary.mission"
37
               v-model="treatmentSummary.mission"
35
       </el-row>
42
       </el-row>
36
       <el-row :gutter="20">
43
       <el-row :gutter="20">
37
         <el-col :span="24" v-if="isShow('透析小结')">
44
         <el-col :span="24" v-if="isShow('透析小结')">
38
-          <el-form-item label="透析小结:">
45
+          <el-form-item
46
+            label="透析小结:"
47
+            :prop="isName('透析小结')"
48
+            :rules="isCheckmust('透析小结')"
49
+          >
39
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
50
             <el-select @change="dialysisSummarySelectChange" v-model="value2">
40
               <el-option
51
               <el-option
41
                 v-for="(item, index) in summary"
52
                 v-for="(item, index) in summary"
49
       </el-row>
60
       </el-row>
50
       <el-row :gutter="20">
61
       <el-row :gutter="20">
51
         <el-col v-if="isShow('透析小结')">
62
         <el-col v-if="isShow('透析小结')">
52
-          <el-form-item>
63
+          <el-form-item
64
+            :prop="isName('透析小结')"
65
+            :rules="isCheckmust('透析小结')"
66
+          >
53
             <el-input
67
             <el-input
54
               type="textarea"
68
               type="textarea"
55
               v-model="treatmentSummary.dialysis_summary"
69
               v-model="treatmentSummary.dialysis_summary"
60
       </el-row>
74
       </el-row>
61
       <el-row :gutter="20">
75
       <el-row :gutter="20">
62
         <el-col :span="24" v-if="isShow('透析护理记录')">
76
         <el-col :span="24" v-if="isShow('透析护理记录')">
63
-          <el-form-item label="透析护理记录:">
77
+          <el-form-item
78
+            label="透析护理记录:"
79
+            :prop="isName('透析护理记录')"
80
+            :rules="isCheckmust('透析护理记录')"
81
+          >
64
             <el-select
82
             <el-select
65
               @change="dialysisNusingRecordSelectChange"
83
               @change="dialysisNusingRecordSelectChange"
66
               v-model="value3"
84
               v-model="value3"
77
       </el-row>
95
       </el-row>
78
       <el-row :gutter="20">
96
       <el-row :gutter="20">
79
         <el-col v-if="isShow('透析护理记录')">
97
         <el-col v-if="isShow('透析护理记录')">
80
-          <el-form-item>
98
+          <el-form-item
99
+            :prop="isName('透析护理记录')"
100
+            :rules="isCheckmust('透析护理记录')"
101
+          >
81
             <el-input
102
             <el-input
82
               type="textarea"
103
               type="textarea"
83
               v-model="treatmentSummary.nursing_record"
104
               v-model="treatmentSummary.nursing_record"
88
       </el-row>
109
       </el-row>
89
       <el-row :gutter="20">
110
       <el-row :gutter="20">
90
         <el-col :span="24" v-if="isShow('特殊记录')">
111
         <el-col :span="24" v-if="isShow('特殊记录')">
91
-          <el-form-item label="特殊记录:">
112
+          <el-form-item
113
+            label="特殊记录:"
114
+            :prop="isName('特殊记录')"
115
+            :rules="isCheckmust('特殊记录')"
116
+          >
92
             <el-select
117
             <el-select
93
               @change="dialysisSpecialRecordSelectChange"
118
               @change="dialysisSpecialRecordSelectChange"
94
               v-model="value4"
119
               v-model="value4"
105
       </el-row>
130
       </el-row>
106
       <el-row :gutter="20">
131
       <el-row :gutter="20">
107
         <el-col v-if="isShow('特殊记录')">
132
         <el-col v-if="isShow('特殊记录')">
108
-          <el-form-item>
133
+          <el-form-item
134
+            :prop="isName('特殊记录')"
135
+            :rules="isCheckmust('特殊记录')"
136
+          >
109
             <el-input
137
             <el-input
110
               type="textarea"
138
               type="textarea"
111
               v-model="treatmentSummary.special_record"
139
               v-model="treatmentSummary.special_record"
117
     </el-form>
145
     </el-form>
118
     <div slot="footer" class="dialog-footer">
146
     <div slot="footer" class="dialog-footer">
119
       <el-button @click="handleCancle">取 消</el-button>
147
       <el-button @click="handleCancle">取 消</el-button>
120
-      <el-button type="primary" @click="handleComfirm" v-if="hasPermission"
148
+      <el-button
149
+        type="primary"
150
+        @click="handleComfirm('treatmentSummary')"
151
+        v-if="hasPermission"
121
         >保 存</el-button
152
         >保 存</el-button
122
       >
153
       >
123
     </div>
154
     </div>
125
 </template>
156
 </template>
126
 
157
 
127
 <script>
158
 <script>
128
-import { getDataConfig } from '@/utils/data'
129
-import { postTreatmentsummary } from '@/api/dialysis'
130
-import { uParseTime } from '@/utils/tools'
131
-import store from '@/store'
132
-import request from '@/utils/request'
133
-import { parseTime } from '@/utils'
159
+import { getDataConfig } from "@/utils/data";
160
+import { postTreatmentsummary } from "@/api/dialysis";
161
+import { uParseTime } from "@/utils/tools";
162
+import store from "@/store";
163
+import request from "@/utils/request";
164
+import { parseTime } from "@/utils";
134
 
165
 
135
 export default {
166
 export default {
136
-  name: 'treatmentSummaryDialog',
167
+  name: "treatmentSummaryDialog",
137
 
168
 
138
   props: {
169
   props: {
139
     treatment_summary: {
170
     treatment_summary: {
140
       // 治疗小结
171
       // 治疗小结
141
       type: Object,
172
       type: Object,
142
       default: () => {
173
       default: () => {
143
-        return { id: 0 }
144
-      }
174
+        return { id: 0 };
175
+      },
145
     },
176
     },
146
     patient: {
177
     patient: {
147
       // 患者信息
178
       // 患者信息
148
       type: Object,
179
       type: Object,
149
       default: () => {
180
       default: () => {
150
-        return { id: 0 }
151
-      }
181
+        return { id: 0 };
182
+      },
152
     },
183
     },
153
   },
184
   },
154
   data() {
185
   data() {
155
     return {
186
     return {
156
-      showTxt: '',
187
+      showTxt: "",
157
       hasPermission: true,
188
       hasPermission: true,
158
-      value: '',
159
-      value2: '',
160
-      value3: '',
161
-      value4: '',
189
+      value: "",
190
+      value2: "",
191
+      value3: "",
192
+      value4: "",
162
       isVisibility: false,
193
       isVisibility: false,
163
-      record_date: '',
194
+      record_date: "",
164
       education: [],
195
       education: [],
165
       summary: [],
196
       summary: [],
166
       nursingRecord: [],
197
       nursingRecord: [],
167
       specialRecord: [],
198
       specialRecord: [],
168
       treatmentSummary: {
199
       treatmentSummary: {
169
-        mission: '',
170
-        dialysis_summary: '',
171
-        sj_nurse: '',
172
-        zl_nurse: '',
173
-        hd_nurse: '',
174
-        xj_nurse: '',
175
-        zl_doctor: '',
176
-        nursing_record: '',
177
-        special_record: ''
200
+        mission: "",
201
+        dialysis_summary: "",
202
+        sj_nurse: "",
203
+        zl_nurse: "",
204
+        hd_nurse: "",
205
+        xj_nurse: "",
206
+        zl_doctor: "",
207
+        nursing_record: "",
208
+        special_record: "",
178
       },
209
       },
179
       //
210
       //
180
-      date:''
181
-    }
211
+      date: "",
212
+    };
182
   },
213
   },
183
   methods: {
214
   methods: {
184
-    show(record,date) {
185
-      this.isVisibility = true
186
-      this.record = record
187
-      
188
-      if(date){
189
-        this.date = date
190
-        this.record_date = uParseTime(this.date, '{y}-{m}-{d}')
191
-       
215
+    isName(name) {
216
+      let filedList = store.getters.xt_user.fileds;
217
+      for (let i = 0; i < filedList.length; i++) {
218
+        if (filedList[i].module == 6 && filedList[i].filed_name_cn == name) {
219
+          return filedList[i].filed_name;
220
+        }
192
       }
221
       }
193
-      
194
-      console.log('治疗小结', record)
195
-      this.getPermission()
222
+    },
223
+
224
+    isCheckmust(name) {
225
+      let filedList = store.getters.xt_user.fileds;
226
+      for (let i = 0; i < filedList.length; i++) {
227
+        if (
228
+          filedList[i].module == 6 &&
229
+          filedList[i].filed_name_cn == name &&
230
+          filedList[i].is_write == 1
231
+        ) {
232
+          return [{ required: true, message: `请输入${name}` }];
233
+        }
234
+      }
235
+    },
236
+    show(record, date) {
237
+      this.isVisibility = true;
238
+      this.record = record;
239
+
240
+      if (date) {
241
+        this.date = date;
242
+        this.record_date = uParseTime(this.date, "{y}-{m}-{d}");
243
+      }
244
+
245
+      console.log("治疗小结", record);
246
+      this.getPermission();
196
     },
247
     },
197
     hide() {
248
     hide() {
198
-      this.isVisibility = false
249
+      this.isVisibility = false;
199
     },
250
     },
200
-    dialysisAfterTeachSelectChange: function(values) {
201
-      if (this.treatmentSummary.mission == '') {
202
-        this.treatmentSummary.mission = values
251
+    dialysisAfterTeachSelectChange: function (values) {
252
+      if (this.treatmentSummary.mission == "") {
253
+        this.treatmentSummary.mission = values;
203
       } else {
254
       } else {
204
         if (this.treatmentSummary.mission.indexOf(values) == -1) {
255
         if (this.treatmentSummary.mission.indexOf(values) == -1) {
205
           if (
256
           if (
206
             this.treatmentSummary.mission
257
             this.treatmentSummary.mission
207
               .charAt(this.treatmentSummary.mission.length - 1)
258
               .charAt(this.treatmentSummary.mission.length - 1)
208
-              .indexOf('。') == -1
259
+              .indexOf("。") == -1
209
           ) {
260
           ) {
210
             this.treatmentSummary.mission =
261
             this.treatmentSummary.mission =
211
-              this.treatmentSummary.mission + ',' + values
262
+              this.treatmentSummary.mission + "," + values;
212
           } else {
263
           } else {
213
             this.treatmentSummary.mission =
264
             this.treatmentSummary.mission =
214
-              this.treatmentSummary.mission + values
265
+              this.treatmentSummary.mission + values;
215
           }
266
           }
216
         }
267
         }
217
       }
268
       }
218
     },
269
     },
219
-    dialysisSummarySelectChange: function(values) {
220
-      if (this.treatmentSummary.dialysis_summary == '') {
221
-        this.treatmentSummary.dialysis_summary = values
270
+    dialysisSummarySelectChange: function (values) {
271
+      if (this.treatmentSummary.dialysis_summary == "") {
272
+        this.treatmentSummary.dialysis_summary = values;
222
       } else {
273
       } else {
223
        
274
        
224
         if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
275
         if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
225
           if (
276
           if (
226
             this.treatmentSummary.dialysis_summary
277
             this.treatmentSummary.dialysis_summary
227
               .charAt(this.treatmentSummary.dialysis_summary.length - 1)
278
               .charAt(this.treatmentSummary.dialysis_summary.length - 1)
228
-              .indexOf('。') == -1
279
+              .indexOf("。") == -1
229
           ) {
280
           ) {
230
             this.treatmentSummary.dialysis_summary =
281
             this.treatmentSummary.dialysis_summary =
231
-              this.treatmentSummary.dialysis_summary + ',' + values
282
+              this.treatmentSummary.dialysis_summary + "," + values;
232
           } else {
283
           } else {
233
             this.treatmentSummary.dialysis_summary =
284
             this.treatmentSummary.dialysis_summary =
234
-              this.treatmentSummary.dialysis_summary + ',' + values
285
+              this.treatmentSummary.dialysis_summary + "," + values;
235
             this.treatmentSummary.dialysis_summary =
286
             this.treatmentSummary.dialysis_summary =
236
-              this.treatmentSummary.dialysis_summary + values
287
+              this.treatmentSummary.dialysis_summary + values;
237
           }
288
           }
238
         }
289
         }
239
       }
290
       }
240
     },
291
     },
241
-    dialysisNusingRecordSelectChange: function(values) {
242
-      if (this.treatmentSummary.nursing_record == '') {
243
-        this.treatmentSummary.nursing_record = values
292
+    dialysisNusingRecordSelectChange: function (values) {
293
+      if (this.treatmentSummary.nursing_record == "") {
294
+        this.treatmentSummary.nursing_record = values;
244
       } else {
295
       } else {
245
         if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
296
         if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
246
           if (
297
           if (
247
             this.treatmentSummary.nursing_record
298
             this.treatmentSummary.nursing_record
248
               .charAt(this.treatmentSummary.nursing_record.length - 1)
299
               .charAt(this.treatmentSummary.nursing_record.length - 1)
249
-              .indexOf('。') == -1
300
+              .indexOf("。") == -1
250
           ) {
301
           ) {
251
             this.treatmentSummary.nursing_record =
302
             this.treatmentSummary.nursing_record =
252
-              this.treatmentSummary.nursing_record + ',' + values
303
+              this.treatmentSummary.nursing_record + "," + values;
253
           } else {
304
           } else {
254
             this.treatmentSummary.nursing_record =
305
             this.treatmentSummary.nursing_record =
255
-              this.treatmentSummary.nursing_record + ',' + values
306
+              this.treatmentSummary.nursing_record + "," + values;
256
             this.treatmentSummary.nursing_record =
307
             this.treatmentSummary.nursing_record =
257
-              this.treatmentSummary.nursing_record + values
308
+              this.treatmentSummary.nursing_record + values;
258
           }
309
           }
259
         }
310
         }
260
       }
311
       }
261
     },
312
     },
262
     dialysisSpecialRecordSelectChange(values) {
313
     dialysisSpecialRecordSelectChange(values) {
263
-      if (this.treatmentSummary.special_record == '') {
264
-        this.treatmentSummary.special_record = values
314
+      if (this.treatmentSummary.special_record == "") {
315
+        this.treatmentSummary.special_record = values;
265
       } else {
316
       } else {
266
         if (this.treatmentSummary.special_record.indexOf(values) == -1) {
317
         if (this.treatmentSummary.special_record.indexOf(values) == -1) {
267
           if (
318
           if (
268
             this.treatmentSummary.special_record
319
             this.treatmentSummary.special_record
269
               .charAt(this.treatmentSummary.special_record.length - 1)
320
               .charAt(this.treatmentSummary.special_record.length - 1)
270
-              .indexOf('。') == -1
321
+              .indexOf("。") == -1
271
           ) {
322
           ) {
272
             this.treatmentSummary.special_record =
323
             this.treatmentSummary.special_record =
273
-              this.treatmentSummary.special_record + ',' + values
324
+              this.treatmentSummary.special_record + "," + values;
274
           } else {
325
           } else {
275
             this.treatmentSummary.special_record =
326
             this.treatmentSummary.special_record =
276
-              this.treatmentSummary.special_record + ',' + values
327
+              this.treatmentSummary.special_record + "," + values;
277
             this.treatmentSummary.special_record =
328
             this.treatmentSummary.special_record =
278
-              this.treatmentSummary.special_record + values
329
+              this.treatmentSummary.special_record + values;
279
           }
330
           }
280
         }
331
         }
281
       }
332
       }
282
     },
333
     },
283
-    handleCancle: function() {
284
-      this.isVisibility = false
334
+    handleCancle: function () {
335
+      this.isVisibility = false;
285
     },
336
     },
286
-    handleComfirm: function() {
287
-      const ParamsQuery = this.treatmentSummary
288
-      ParamsQuery['patient'] = this.patient.id
289
-      ParamsQuery['record_date'] = this.record_date
290
-      ParamsQuery['mode'] = '1'
291
-      if (this.treatment_summary.id > 0) {
292
-        ParamsQuery['mode'] = '2'
293
-        if (
294
-          this.treatment_summary.creater != this.$store.getters.xt_user.user.id
295
-        ) {
296
-          ParamsQuery['mode'] = '3'
297
-        }
298
-      }
299
-      postTreatmentsummary(ParamsQuery).then(response => {
300
-        if (response.data.state == 0) {
301
-          this.$message.error(response.data.msg)
302
-          return false
303
-        } else {
304
-          this.$notify({
305
-            title: '成功',
306
-            message: '提交成功',
307
-            type: 'success',
308
-            duration: 2000
309
-          })
310
-
311
-          const summary_resp = response.data.data.summary
312
-          // prop
313
-          var treatment_summary = this.treatment_summary
314
-          for (var index in summary_resp) {
315
-            // treatment_summary[index] = summary_resp[index];
316
-            this.$set(treatment_summary, index, summary_resp[index])
337
+    handleComfirm(formName) {
338
+      this.$refs[formName].validate((valid) => {
339
+        if (valid) {
340
+          const ParamsQuery = this.treatmentSummary;
341
+          ParamsQuery["patient"] = this.patient.id;
342
+          ParamsQuery["record_date"] = this.record_date;
343
+          ParamsQuery["mode"] = "1";
344
+          if (this.treatment_summary.id > 0) {
345
+            ParamsQuery["mode"] = "2";
346
+            if (
347
+              this.treatment_summary.creater !=
348
+              this.$store.getters.xt_user.user.id
349
+            ) {
350
+              ParamsQuery["mode"] = "3";
351
+            }
317
           }
352
           }
353
+          postTreatmentsummary(ParamsQuery).then((response) => {
354
+            if (response.data.state == 0) {
355
+              this.$message.error(response.data.msg);
356
+              return false;
357
+            } else {
358
+              this.$notify({
359
+                title: "成功",
360
+                message: "提交成功",
361
+                type: "success",
362
+                duration: 2000,
363
+              });
318
 
364
 
319
-          this.hide()
365
+              const summary_resp = response.data.data.summary;
366
+              // prop
367
+              var treatment_summary = this.treatment_summary;
368
+              for (var index in summary_resp) {
369
+                // treatment_summary[index] = summary_resp[index];
370
+                this.$set(treatment_summary, index, summary_resp[index]);
371
+              }
372
+
373
+              this.hide();
374
+            }
375
+          });
376
+        } else {
377
+          console.log("error submit!!");
378
+          return false;
320
         }
379
         }
321
-      })
380
+      });
322
     },
381
     },
323
     getPermission() {
382
     getPermission() {
324
-      request.get('/api/func_per/get', {
383
+      request
384
+        .get("/api/func_per/get", {
325
           params: {
385
           params: {
326
-            create_url: '/api/dialysis/treatmentsummary?mode=1',
327
-            modify_url: '/api/dialysis/treatmentsummary?mode=2',
328
-            modify_other_url: '/api/dialysis/treatmentsummary?mode=3',
329
-            module: 9
330
-          }
331
-        }).then(res => {
386
+            create_url: "/api/dialysis/treatmentsummary?mode=1",
387
+            modify_url: "/api/dialysis/treatmentsummary?mode=2",
388
+            modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
389
+            module: 9,
390
+          },
391
+        })
392
+        .then((res) => {
332
           if (res.data.state == 0) {
393
           if (res.data.state == 0) {
333
-            this.hasPermission = false
394
+            this.hasPermission = false;
334
           } else if (res.data.state == 1) {
395
           } else if (res.data.state == 1) {
335
-            if (this.record.id != '' && this.record.creater != 0) {
396
+            if (this.record.id != "" && this.record.creater != 0) {
336
               // 有数据
397
               // 有数据
337
               if (this.record.creater == this.$store.getters.user.admin.id) {
398
               if (this.record.creater == this.$store.getters.user.admin.id) {
338
                 // 创建人是自己
399
                 // 创建人是自己
339
                 if (res.data.data.is_has_modify == false) {
400
                 if (res.data.data.is_has_modify == false) {
340
-                  this.hasPermission = false
341
-                  this.showTxt = '你没有修改治疗小结权限'
401
+                  this.hasPermission = false;
402
+                  this.showTxt = "你没有修改治疗小结权限";
342
                 }
403
                 }
343
               } else {
404
               } else {
344
                 // 创建人不是自己
405
                 // 创建人不是自己
345
                 if (res.data.data.is_has_modify_other == false) {
406
                 if (res.data.data.is_has_modify_other == false) {
346
-                  this.hasPermission = false
347
-                  this.showTxt = '你没有修改他人治疗小结权限'
407
+                  this.hasPermission = false;
408
+                  this.showTxt = "你没有修改他人治疗小结权限";
348
                 }
409
                 }
349
               }
410
               }
350
-            } else if (this.record.id == '' || this.record.creater == 0) {
411
+            } else if (this.record.id == "" || this.record.creater == 0) {
351
               if (res.data.data.is_has_create == false) {
412
               if (res.data.data.is_has_create == false) {
352
-                this.hasPermission = false
353
-                this.showTxt = '你没有新增治疗小结权限'
413
+                this.hasPermission = false;
414
+                this.showTxt = "你没有新增治疗小结权限";
354
               }
415
               }
355
             }
416
             }
356
           }
417
           }
357
-        })
418
+        });
358
     },
419
     },
359
     isShow(name) {
420
     isShow(name) {
360
-      var filedList = store.getters.xt_user.fileds
421
+      var filedList = store.getters.xt_user.fileds;
361
 
422
 
362
       for (let i = 0; i < filedList.length; i++) {
423
       for (let i = 0; i < filedList.length; i++) {
363
         if (
424
         if (
365
           filedList[i].filed_name_cn == name &&
426
           filedList[i].filed_name_cn == name &&
366
           filedList[i].is_show == 1
427
           filedList[i].is_show == 1
367
         ) {
428
         ) {
368
-          return true
429
+          return true;
369
         }
430
         }
370
       }
431
       }
371
-      return false
372
-    }
432
+      return false;
433
+    },
373
   },
434
   },
374
   watch: {
435
   watch: {
375
     isVisibility(val) {},
436
     isVisibility(val) {},
376
-    'treatment_summary.id': {
437
+    "treatment_summary.id": {
377
       immediate: true,
438
       immediate: true,
378
-      deep:true,
379
-      handler(oldVal,newVal) {
380
-        if(oldVal == newVal){
439
+      deep: true,
440
+      handler(oldVal, newVal) {
441
+        if (oldVal == newVal) {
381
           for (var index in this.treatmentSummary) {
442
           for (var index in this.treatmentSummary) {
382
-            this.treatmentSummary[index] = this.treatment_summary[index]
443
+            this.treatmentSummary[index] = this.treatment_summary[index];
383
           }
444
           }
384
         }
445
         }
385
         if (this.treatment_summary.id > 0) {
446
         if (this.treatment_summary.id > 0) {
386
           for (var index in this.treatmentSummary) {
447
           for (var index in this.treatmentSummary) {
387
-            this.value = ''
388
-            this.value2 = ''
389
-            this.value3 = ''
390
-            this.value4 = ''
391
-            this.treatmentSummary[index] = this.treatment_summary[index]
448
+            this.value = "";
449
+            this.value2 = "";
450
+            this.value3 = "";
451
+            this.value4 = "";
452
+            this.treatmentSummary[index] = this.treatment_summary[index];
392
           }
453
           }
393
-        }else if(this.treatment_summary.id == 0){
454
+        } else if (this.treatment_summary.id == 0) {
394
           for (var index in this.treatmentSummary) {
455
           for (var index in this.treatmentSummary) {
395
             // this.treatmentSummary[index] = this.treatment_summary[index]
456
             // this.treatmentSummary[index] = this.treatment_summary[index]
396
-            this.value = ''
397
-            this.value2 = ''
398
-            this.value3 = ''
399
-            this.value4 = ''
457
+            this.value = "";
458
+            this.value2 = "";
459
+            this.value3 = "";
460
+            this.value4 = "";
400
             this.treatmentSummary = {
461
             this.treatmentSummary = {
401
-              mission: '',
402
-              dialysis_summary: '',
403
-              sj_nurse: '',
404
-              zl_nurse: '',
405
-              hd_nurse: '',
406
-              xj_nurse: '',
407
-              zl_doctor: '',
408
-              nursing_record: '',
409
-              special_record: ''
410
-            }
462
+              mission: "",
463
+              dialysis_summary: "",
464
+              sj_nurse: "",
465
+              zl_nurse: "",
466
+              hd_nurse: "",
467
+              xj_nurse: "",
468
+              zl_doctor: "",
469
+              nursing_record: "",
470
+              special_record: "",
471
+            };
411
           }
472
           }
412
-          
413
         }
473
         }
414
-      }
415
-    }
474
+      },
475
+    },
416
   },
476
   },
417
   created() {
477
   created() {
418
-    this.education = getDataConfig('education', 'education')
419
-    this.summary = getDataConfig('summary', 'summary')
478
+    this.education = getDataConfig("education", "education");
479
+    this.summary = getDataConfig("summary", "summary");
420
 
480
 
421
-    this.nursingRecord = getDataConfig('nursing_record', 'nursing_record')
481
+    this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
422
 
482
 
423
-    this.specialRecord = getDataConfig('special_record', 'special_record')
483
+    this.specialRecord = getDataConfig("special_record", "special_record");
424
 
484
 
425
     // var date = this.$route.query && this.$route.query.date
485
     // var date = this.$route.query && this.$route.query.date
426
     // this.record_date = uParseTime(date, '{y}-{m}-{d}')
486
     // this.record_date = uParseTime(date, '{y}-{m}-{d}')
427
 
487
 
428
-    if(this.$route.query && this.$route.query.date){
429
-      var date = this.$route.query && this.$route.query.date
430
-      this.record_date = uParseTime(date, '{y}-{m}-{d}')
488
+    if (this.$route.query && this.$route.query.date) {
489
+      var date = this.$route.query && this.$route.query.date;
490
+      this.record_date = uParseTime(date, "{y}-{m}-{d}");
431
     }
491
     }
432
-    
433
-  }
434
-}
492
+  },
493
+};
435
 </script>
494
 </script>
436
 
495
 
437
 <style scoped>
496
 <style scoped>

+ 791 - 0
src/xt_pages/dialysis/doctorAdvicePrintOne.vue 查看文件

1
+<template>
2
+    <div class="main-contain">
3
+        <div class="position">
4
+        <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+        <el-row style="float:right;">
6
+            <el-col :span="24">
7
+            <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+            </el-col>
9
+        </el-row>
10
+        </div>
11
+        <div class="app-container" style="background-color: white;" v-show="show">
12
+            <div id="dialysisTable">
13
+                <div class="order_title_panl">
14
+                    <span class="main_title">透析医嘱</span>
15
+                </div>
16
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
17
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
18
+                    <tr>
19
+                    <th width="20px">姓名</th>
20
+                    <th width="100px">医嘱内容</th>
21
+                     <th width="50px">执行护士</th>
22
+                    </tr>
23
+                    <template v-for="(schedules, zone_name, index) in scheduleMap">
24
+                    <tr :key="index">
25
+                        <td>{{ zone_name }}</td>
26
+                        <td></td>
27
+                        <td></td>
28
+                       
29
+                    </tr>
30
+                    <template v-for="schedule in schedules">
31
+                        <template v-for="(group, group_index) in schedule.new_advice">
32
+                        <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
33
+                            <td
34
+                            v-if="advice_index == 0"
35
+                            :rowspan="group.advices.length"
36
+                            >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}
37
+                            <br>
38
+                            ({{ advice.parent_id == 0 ? schedule.dialysis_no : ""}})
39
+                             {{getAge(schedule) }}岁
40
+                            <br>
41
+                            <span v-if="schedule.mode_id == 1">(HD)</span>
42
+                            <span v-if="schedule.mode_id == 2">(HDF)</span>
43
+                            <span v-if="schedule.mode_id == 3">(HD+HP)</span>
44
+                            <span v-if="schedule.mode_id == 4">(HP)</span>
45
+                            <span v-if="schedule.mode_id == 5">(HF)</span>
46
+                            <span v-if="schedule.mode_id == 6">(SCUF)</span>
47
+                            <span v-if="schedule.mode_id == 7">(IUF)</span>
48
+                            <span v-if="schedule.mode_id == 8">(HFHD)</span>
49
+                            <span v-if="schedule.mode_id == 9">(HFHD+HP)</span>
50
+                            <span v-if="schedule.mode_id == 10">(PHF)</span>
51
+                            <span v-if="schedule.mode_id == 11">(HFR)</span>
52
+                            <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
53
+                            <span v-if="schedule.mode_id == 13">(CRRT)</span>
54
+                            <span v-if="schedule.mode_id == 14">(腹水回输)</span>
55
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>
56
+                            </td>
57
+                          
58
+                   
59
+                            <td
60
+                            :class="
61
+                                advice.parent_id == 0
62
+                                ? 'advice_content'
63
+                                : 'subadvice_content'
64
+                            "
65
+                            >
66
+                            <span>{{ advice.advice_name }}</span>
67
+                           
68
+                            <span v-if="advice.single_dose">
69
+                                单次用量 {{ advice.single_dose
70
+                                }}{{ advice.single_dose_unit }}
71
+                            </span>
72
+                            <span v-if="advice.prescribing_number>0">总量:</span>
73
+                            <span v-if="advice.prescribing_number">
74
+                                {{ advice.prescribing_number
75
+                                }}{{ advice.prescribing_number_unit }}
76
+                            </span>
77
+                            <span>{{ advice.delivery_way }}</span>
78
+                            <span>{{ advice.execution_frequency }}</span>
79
+                           
80
+                            </td>
81
+                            <td>{{ getName(advice.execution_staff) }}</td>
82
+                           
83
+                        </tr>
84
+                        </template>
85
+                    </template>
86
+                    </template>
87
+                </table>
88
+            </div>
89
+        </div>
90
+
91
+          <div class="app-container" style="background-color: white;" v-show="showOne">
92
+            <div id="dialysisTable">
93
+                <div class="order_title_panl">
94
+                    <span class="main_title">透析医嘱</span>
95
+                </div>
96
+                <p style="width: 960px;text-align: right;margin: 0 auto 10px;">日期:{{ time }}</p>
97
+                <table class="table dialysisTable" border="1" cellspacing="0" cellpadding="0">
98
+                    <tr>
99
+                    <th width="20px">姓名</th>
100
+                    <th width="100px">医嘱内容</th>
101
+                    <th width="20px">执行护士</th>
102
+                    </tr>
103
+                    <template v-for="(schedules, zone_name, index) in scheduleMap">
104
+                    <tr :key="index">
105
+                        <td>{{ zone_name }}</td>
106
+                        <td></td>
107
+                        <td></td>
108
+                    </tr>
109
+                    <template v-for="schedule in schedules">
110
+                        <template v-for="(group, group_index) in schedule.new_advice">
111
+                        <tr v-for="(advice, advice_index) in group.advices" :key="advice_index">
112
+                            <td
113
+                            v-if="advice_index == 0"
114
+                            :rowspan="group.advices.length"
115
+                            >{{ advice.parent_id == 0 ? schedule.patient.name : "" }}
116
+                            <br>
117
+                            ({{ advice.parent_id == 0 ? schedule.dialysis_no : ""}})
118
+                            {{getAge(schedule) }}岁
119
+                            <br>
120
+                            <span v-if="schedule.mode_id == 1">(HD)</span>
121
+                            <span v-if="schedule.mode_id == 2">(HDF)</span>
122
+                            <span v-if="schedule.mode_id == 3">(HD+HP)</span>
123
+                            <span v-if="schedule.mode_id == 4">(HP)</span>
124
+                            <span v-if="schedule.mode_id == 5">(HF)</span>
125
+                            <span v-if="schedule.mode_id == 6">(SCUF)</span>
126
+                            <span v-if="schedule.mode_id == 7">(IUF)</span>
127
+                            <span v-if="schedule.mode_id == 8">(HFHD)</span>
128
+                            <span v-if="schedule.mode_id == 9">(HFHD+HP)</span>
129
+                            <span v-if="schedule.mode_id == 10">(PHF)</span>
130
+                            <span v-if="schedule.mode_id == 11">(HFR)</span>
131
+                            <span v-if="schedule.mode_id == 12">(HDF+HP)</span>
132
+                            <span v-if="schedule.mode_id == 13">(CRRT)</span>
133
+                            <span v-if="schedule.mode_id == 14">(腹水回输)</span>
134
+                            <span v-if="schedule.mode_id == 24">I-HDF</span>
135
+                            </td>
136
+                           
137
+                           
138
+                            <td v-if="advice_index == 0" :rowspan="group.advices.length">
139
+                            {{
140
+                            advice.parent_id == 0
141
+                            ? parseTime(advice.start_time, "{m}-{d} {h}:{i}")
142
+                            : ""
143
+                            }}
144
+                            </td>
145
+                            <td
146
+                            :class="
147
+                                advice.parent_id == 0
148
+                                ? 'advice_content'
149
+                                : 'subadvice_content'
150
+                            "
151
+                            >
152
+                            <span>{{ advice.advice_name }}</span>
153
+                            
154
+                            <span v-if="advice.single_dose">
155
+                                单次用量 {{ advice.single_dose
156
+                                }}{{ advice.single_dose_unit }}
157
+                            </span>
158
+                            <span v-if="advice.prescribing_number>0">总量:</span>
159
+                            <span v-if="advice.prescribing_number">
160
+                                {{ advice.prescribing_number
161
+                                }}{{ advice.prescribing_number_unit }}
162
+                            </span>
163
+                            <span>{{ advice.delivery_way }}</span>
164
+                            <span>{{ advice.execution_frequency }}</span>
165
+                           
166
+                            </td>
167
+                            <td>{{ getName(advice.execution_staff) }}</td>
168
+                        </tr>
169
+                        </template>
170
+                    </template>
171
+                    </template>
172
+                </table>
173
+            </div>
174
+        </div>
175
+    </div>
176
+</template>
177
+
178
+<script>
179
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
180
+import { getSchedualDoctors } from '@/api/advice'
181
+import { parseTime } from '@/utils'
182
+import { jsGetAge } from "@/utils/tools";
183
+import print from 'print-js'
184
+const moment = require('moment')
185
+export default {
186
+    components:{
187
+        BreadCrumb
188
+    },
189
+    data(){
190
+        return{
191
+            crumbs: [
192
+                { path: false, name: '药品' },
193
+                { path: false, name: '打印' }
194
+            ],
195
+            tableData:[],
196
+            start_time:"",
197
+            end_time:"",
198
+            print_time:moment(new Date()).add('year', 0).format('YYYY-MM-DD'),
199
+
200
+            zone_selected: 0,
201
+            scheduleMap:[],
202
+            time:'',
203
+            show:true,
204
+            showOne:false,
205
+            delivery_way:"",
206
+            org_id:0,
207
+        }
208
+    },
209
+    methods:{
210
+        getAge: function (val) {
211
+            var thisLen = val.patient.id_card_no.length;
212
+            var birth = "";
213
+            if (thisLen == 15) {
214
+                birth = "19" + val.patient.id_card_no.substr(6, 6);
215
+            } else {
216
+                birth = val.patient.id_card_no.substr(6, 8);
217
+            }
218
+            var birthtwo =
219
+                birth.substr(0, 4) +
220
+                "-" +
221
+                birth.substr(4, 2) +
222
+                "-" +
223
+                birth.substr(6, 2);
224
+
225
+            var age = jsGetAge(birthtwo, "-");
226
+            return age;
227
+        },
228
+        printAction: function() {
229
+            const style = '@media print { .dialysisTable{width:960px;margin: 0 auto;text-align: center;border-collapse: collapse;}.order_title_panl {text-align: center;.main_title {font-size: 18px;line-height: 40px;font-weight: 500;}}.dialysisTable tr{padding: 10px 0;}.dialysisTable th {color: #000;padding: 0;margin: 0;height: 30px;}.dialysisTable tr td {padding: 12px 0;}.subadvice_content {text-align: left;padding-left: 25px !important;padding-right: 5px !important;}.advice_content {text-align: left;padding-left: 5px !important;padding-right: 5px !important;padding: 15px 5px !important;} }'
230
+
231
+            printJS({
232
+            printable: 'dialysisTable',
233
+            type: 'html',
234
+            documentTitle: '  ',
235
+            style: style,
236
+            scanStyles: false
237
+            })
238
+        },
239
+        requestSchedualDoctors (time) {
240
+            let newTime =  moment(time).format('YYYY-MM-DD')
241
+            getSchedualDoctors({
242
+            date: newTime,
243
+            patient_type: 0,
244
+            advice_type: 2,
245
+            delivery_way:this.delivery_way,
246
+            }).then(rs => {
247
+                var resp = rs.data
248
+                if (resp.state == 1) {
249
+                this.admin_user = resp.data.adminUser
250
+                var config = resp.data.config
251
+                let project_config = resp.data.project_config
252
+                // console.log('project_config',resp.data.project_config)
253
+                if(project_config.is_open == 1){
254
+                    this.project = resp.data.project
255
+                    resp.data.hisAdvices.map((item,index) => {
256
+                    item.new_advice = item.new_advice ? item.new_advice : []
257
+                      if(this.org_id!=9671 && this.org_id!= 10318){
258
+                        if(this.project[index].project.length > 0){
259
+                            this.project[index].project.map(it => {
260
+                            let obj = {
261
+                                advice_doctor: it.doctor,
262
+                                start_time:it.start_time,
263
+                                advice_name: it.type == 2 ? it.project.project_name : it.good_info.good_name,
264
+                                execution_time:it.execution_time,
265
+                                execution_state:it.execution_state,
266
+                                execution_staff:it.execution_staff,
267
+                                check_time:it.check_time,
268
+                                check_state:it.check_state,
269
+                                checker:it.checker,
270
+                                created_time:it.ctime,
271
+                                remark:'',
272
+                                id:it.id,
273
+                                parent_id:0,
274
+                                groupno:0
275
+                            }
276
+                        
277
+                            item.doctor_advice.push(obj)
278
+                            })
279
+                        }
280
+                    }
281
+                   })
282
+                }
283
+                if(config.is_open == 0 || config.is_open == 2){
284
+
285
+                   var schedulesArr = resp.data.scheduals
286
+                   let schedules = []
287
+                   var ids = this.$store.getters.temp_params.advice_ids
288
+                   console.log('ids',ids)
289
+                   schedulesArr.map(item => {
290
+                    if(ids.indexOf(item.patient_id) > -1){
291
+                        schedules.push(item)
292
+                    }
293
+
294
+                })
295
+
296
+                for (let i = 0; i < schedules.length; i++) {
297
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
298
+                }
299
+
300
+
301
+                var arr = []
302
+                for (let j = 0; j < schedules.length; j++) {
303
+                    arr.push(schedules[j].dialysis_no)
304
+                }
305
+                arr.sort(function (a, b) {
306
+                    return a - b
307
+                })
308
+
309
+
310
+                var arrTwo = []
311
+                for (let i = 0; i < arr.length; i++) {
312
+                    for (let j = 0; j < schedules.length; j++) {
313
+                    if (arr[i] == schedules[j].dialysis_no) {
314
+                        arrTwo.push(schedules[j])
315
+                    }
316
+                    }
317
+                }
318
+
319
+                arrTwo.map((item, index) => {
320
+
321
+                    item.doctor_advice.sort(this.compare('start_time'))
322
+                })
323
+
324
+
325
+                const res = new Map()
326
+                let a = arrTwo.filter(
327
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
328
+                )
329
+
330
+
331
+
332
+                schedules = a
333
+                var zoneMap = {}
334
+                var scheduleMap = {}
335
+                for (let index = 0; index < schedules.length; index++) {
336
+                    const schedule = schedules[index]
337
+                    if (schedule.doctor_advice.length == 0) {
338
+                    continue
339
+                    }
340
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
341
+                    scheduleMap[schedule.device_number.zone.name] = []
342
+                    }
343
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
344
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
345
+                    zoneMap[schedule.device_number.zone.name] =
346
+                        schedule.device_number.zone
347
+                    }
348
+                }
349
+
350
+                var zones = []
351
+                zones.push({ value: 0, text: '全部分区' })
352
+                for (var zoneName in zoneMap) {
353
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
354
+                }
355
+
356
+                zones = zones.sort(function (a, b) {
357
+                    return a.value > b.value
358
+                })
359
+                this.zones = zones
360
+                for (var key in scheduleMap) {
361
+                    let mapArr = scheduleMap[key]
362
+                    for (let i = 0; i < mapArr.length; i++) {
363
+                    mapArr[i]['new_advice'] = []
364
+                    }
365
+                }
366
+
367
+                for (var key in scheduleMap) {
368
+                    let mapArr = scheduleMap[key]
369
+                    for (let i = 0; i < mapArr.length; i++) {
370
+                    var maps = mapArr[i]
371
+                    var resp_advices = maps.doctor_advice
372
+                    if (resp_advices.length > 0) {
373
+                        var newGroupObject = function () {
374
+                        return Object.assign(
375
+                            {},
376
+                            {
377
+                            group_no: 0,
378
+                            advices: []
379
+                            }
380
+                        )
381
+                        }
382
+                        var initGroupBlock = function (group, advice) {
383
+                        group.group_no = advice.groupno
384
+                        }
385
+
386
+                        var advice_groups = []
387
+                        var group = newGroupObject()
388
+                        for (let index = 0; index < resp_advices.length; index++) {
389
+                        const advice = resp_advices[index]
390
+                        if (advice.groupno == 0) {
391
+                            // 老版本的医嘱
392
+                            if (advice.parent_id > 0) {
393
+                            if (advice_groups.length > 0) {
394
+                                var parent_group = advice_groups[advice_groups.length - 1]
395
+                                if (parent_group.advices.length > 0) {
396
+                                if (parent_group.advices[0].id == advice.parent_id) {
397
+                                    parent_group.advices.push(advice)
398
+                                }
399
+                                }
400
+                            }
401
+                            continue
402
+                            } else {
403
+                            if (group.group_no > 0) {
404
+                                advice_groups.push(group)
405
+                                group = newGroupObject()
406
+                            }
407
+
408
+                            initGroupBlock(group, advice)
409
+                            group.advices.push(advice)
410
+                            advice_groups.push(group)
411
+                            group = newGroupObject()
412
+                            continue
413
+                            }
414
+                        } else {
415
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
416
+                            advice_groups.push(group)
417
+                            group = newGroupObject()
418
+                            }
419
+                            if (group.group_no == 0) {
420
+                            initGroupBlock(group, advice)
421
+                            }
422
+                            if (group.group_no == advice.groupno) {
423
+                            group.advices.push(advice)
424
+                            }
425
+                        }
426
+                        }
427
+                        if (group.group_no > 0) {
428
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
429
+                        advice_groups.push(group)
430
+                        }
431
+                        advice_groups = advice_groups
432
+                    } else {
433
+                        advice_groups = []
434
+                    }
435
+                    maps.new_advice = advice_groups
436
+                    }
437
+                 }
438
+
439
+
440
+                 this.scheduleMap = scheduleMap
441
+                }
442
+
443
+                 if(config.is_open == 1){
444
+                   var schedulesArr = resp.data.hisAdvices
445
+                   let schedules = []
446
+                   var ids = this.$store.getters.temp_params.advice_ids
447
+                   console.log('ids',ids)
448
+                   schedulesArr.map(item => {
449
+                    if(ids.indexOf(item.patient_id) > -1){
450
+                        schedules.push(item)
451
+                    }
452
+
453
+                })
454
+
455
+                for (let i = 0; i < schedules.length; i++) {
456
+                    schedules[i].dialysis_no = schedules[i].patient.dialysis_no
457
+                }
458
+
459
+
460
+                var arr = []
461
+                for (let j = 0; j < schedules.length; j++) {
462
+                    arr.push(schedules[j].dialysis_no)
463
+                }
464
+                arr.sort(function (a, b) {
465
+                    return a - b
466
+                })
467
+
468
+
469
+                var arrTwo = []
470
+                for (let i = 0; i < arr.length; i++) {
471
+                    for (let j = 0; j < schedules.length; j++) {
472
+                    if (arr[i] == schedules[j].dialysis_no) {
473
+                        arrTwo.push(schedules[j])
474
+                    }
475
+                    }
476
+                }
477
+
478
+                arrTwo.map((item, index) => {
479
+
480
+                    item.doctor_advice.sort(this.compare('start_time'))
481
+                })
482
+
483
+
484
+                const res = new Map()
485
+                let a = arrTwo.filter(
486
+                    a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
487
+                )
488
+
489
+
490
+
491
+                schedules = a
492
+                var zoneMap = {}
493
+                var scheduleMap = {}
494
+                for (let index = 0; index < schedules.length; index++) {
495
+                    const schedule = schedules[index]
496
+                    if (schedule.doctor_advice.length == 0) {
497
+                    continue
498
+                    }
499
+                    if (scheduleMap[schedule.device_number.zone.name] == null) {
500
+                    scheduleMap[schedule.device_number.zone.name] = []
501
+                    }
502
+                    scheduleMap[schedule.device_number.zone.name].push(schedule)
503
+                    if (zoneMap[schedule.device_number.zone.name] == null) {
504
+                    zoneMap[schedule.device_number.zone.name] =
505
+                        schedule.device_number.zone
506
+                    }
507
+                }
508
+
509
+                var zones = []
510
+                zones.push({ value: 0, text: '全部分区' })
511
+                for (var zoneName in zoneMap) {
512
+                    zones.push({ value: zoneMap[zoneName].id, text: zoneName })
513
+                }
514
+
515
+                zones = zones.sort(function (a, b) {
516
+                    return a.value > b.value
517
+                })
518
+                this.zones = zones
519
+                for (var key in scheduleMap) {
520
+                    let mapArr = scheduleMap[key]
521
+                    for (let i = 0; i < mapArr.length; i++) {
522
+                    mapArr[i]['new_advice'] = []
523
+                    }
524
+                }
525
+
526
+                for (var key in scheduleMap) {
527
+                    let mapArr = scheduleMap[key]
528
+                    for (let i = 0; i < mapArr.length; i++) {
529
+                    var maps = mapArr[i]
530
+                    var resp_advices = maps.doctor_advice
531
+                    if (resp_advices.length > 0) {
532
+                        var newGroupObject = function () {
533
+                        return Object.assign(
534
+                            {},
535
+                            {
536
+                            group_no: 0,
537
+                            advices: []
538
+                            }
539
+                        )
540
+                        }
541
+                        var initGroupBlock = function (group, advice) {
542
+                        group.group_no = advice.groupno
543
+                        }
544
+
545
+                        var advice_groups = []
546
+                        var group = newGroupObject()
547
+                        for (let index = 0; index < resp_advices.length; index++) {
548
+                        const advice = resp_advices[index]
549
+                        if (advice.groupno == 0) {
550
+                            // 老版本的医嘱
551
+                            if (advice.parent_id > 0) {
552
+                            if (advice_groups.length > 0) {
553
+                                var parent_group = advice_groups[advice_groups.length - 1]
554
+                                if (parent_group.advices.length > 0) {
555
+                                if (parent_group.advices[0].id == advice.parent_id) {
556
+                                    parent_group.advices.push(advice)
557
+                                }
558
+                                }
559
+                            }
560
+                            continue
561
+                            } else {
562
+                            if (group.group_no > 0) {
563
+                                advice_groups.push(group)
564
+                                group = newGroupObject()
565
+                            }
566
+
567
+                            initGroupBlock(group, advice)
568
+                            group.advices.push(advice)
569
+                            advice_groups.push(group)
570
+                            group = newGroupObject()
571
+                            continue
572
+                            }
573
+                        } else {
574
+                            if (group.group_no > 0 && group.group_no != advice.groupno) {
575
+                            advice_groups.push(group)
576
+                            group = newGroupObject()
577
+                            }
578
+                            if (group.group_no == 0) {
579
+                            initGroupBlock(group, advice)
580
+                            }
581
+                            if (group.group_no == advice.groupno) {
582
+                            group.advices.push(advice)
583
+                            }
584
+                        }
585
+                        }
586
+                        if (group.group_no > 0) {
587
+                        // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
588
+                        advice_groups.push(group)
589
+                        }
590
+                        advice_groups = advice_groups
591
+                    } else {
592
+                        advice_groups = []
593
+                    }
594
+                    maps.new_advice = advice_groups
595
+                    }
596
+                 }
597
+
598
+
599
+                     this.scheduleMap = scheduleMap
600
+                 }
601
+
602
+
603
+                }
604
+            })
605
+        },
606
+        compare (property) {
607
+            return function (a, b) {
608
+                var value1 = a[property]
609
+                var value2 = b[property]
610
+                return value1 - value2
611
+            }
612
+        },
613
+        parseTime: function (time, layout) {
614
+            if (time == 0) {
615
+                return ''
616
+            }
617
+            return parseTime(time, layout)
618
+        },
619
+        getName (val) {
620
+            for (let i = 0; i < this.admin_user.length; i++) {
621
+                if (this.admin_user[i].id == val) {
622
+                    return this.admin_user[i].name
623
+                }
624
+            }
625
+        },
626
+    },
627
+    computed: {
628
+    filtedScheduals: function () {
629
+        var scheduleMap = new Object()
630
+        if (this.zone_selected == 0) {
631
+            for (const key in this.scheduleMap) {
632
+            scheduleMap[key] = this.scheduleMap[key]
633
+            }
634
+        } else {
635
+            var zone_name = this.zones[this.zone_selected].text
636
+            scheduleMap[zone_name] = this.scheduleMap[zone_name]
637
+        }
638
+
639
+        if (this.schedule_type_selected != 0) {
640
+            var _scheduleMap = {}
641
+            for (const key in scheduleMap) {
642
+            var origin_schedules = scheduleMap[key]
643
+            var schedules = []
644
+            for (let index = 0; index < origin_schedules.length; index++) {
645
+                const schedule = origin_schedules[index]
646
+                if (schedule.schedule_type == this.schedule_type_selected) {
647
+                schedules.push(schedule)
648
+                }
649
+            }
650
+            if (schedules.length > 0) {
651
+                _scheduleMap[key] = schedules
652
+            }
653
+            }
654
+
655
+            scheduleMap = _scheduleMap
656
+        }
657
+        for (var key in scheduleMap) {
658
+            let mapArr = scheduleMap[key]
659
+            for (let i = 0; i < mapArr.length; i++) {
660
+            mapArr[i]['new_advice'] = []
661
+            }
662
+        }
663
+
664
+        for (var key in scheduleMap) {
665
+            let mapArr = scheduleMap[key]
666
+            for (let i = 0; i < mapArr.length; i++) {
667
+            var maps = mapArr[i]
668
+            var resp_advices = maps.doctor_advice
669
+            if (resp_advices.length > 0) {
670
+                var newGroupObject = function () {
671
+                return Object.assign(
672
+                    {},
673
+                    {
674
+                    group_no: 0,
675
+                    advices: []
676
+                    }
677
+                )
678
+                }
679
+                var initGroupBlock = function (group, advice) {
680
+                group.group_no = advice.groupno
681
+                }
682
+
683
+                var advice_groups = []
684
+                var group = newGroupObject()
685
+                for (let index = 0; index < resp_advices.length; index++) {
686
+                const advice = resp_advices[index]
687
+                if (advice.groupno == 0) {
688
+                    // 老版本的医嘱
689
+                    if (advice.parent_id > 0) {
690
+                    if (advice_groups.length > 0) {
691
+                        var parent_group = advice_groups[advice_groups.length - 1]
692
+                        if (parent_group.advices.length > 0) {
693
+                        if (parent_group.advices[0].id == advice.parent_id) {
694
+                            parent_group.advices.push(advice)
695
+                        }
696
+                        }
697
+                    }
698
+                    continue
699
+                    } else {
700
+                    if (group.group_no > 0) {
701
+                        advice_groups.push(group)
702
+                        group = newGroupObject()
703
+                    }
704
+
705
+                    initGroupBlock(group, advice)
706
+                    group.advices.push(advice)
707
+                    advice_groups.push(group)
708
+                    group = newGroupObject()
709
+                    continue
710
+                    }
711
+                } else {
712
+                    if (group.group_no > 0 && group.group_no != advice.groupno) {
713
+                    advice_groups.push(group)
714
+                    group = newGroupObject()
715
+                    }
716
+                    if (group.group_no == 0) {
717
+                    initGroupBlock(group, advice)
718
+                    }
719
+                    if (group.group_no == advice.groupno) {
720
+                    group.advices.push(advice)
721
+                    }
722
+                }
723
+                }
724
+                if (group.group_no > 0) {
725
+                // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加
726
+                advice_groups.push(group)
727
+                }
728
+                advice_groups = advice_groups
729
+            } else {
730
+                advice_groups = []
731
+            }
732
+            maps.new_advice = advice_groups
733
+            }
734
+        }
735
+        console.log("222222",scheduleMap)
736
+        return scheduleMap
737
+        }
738
+    },
739
+    created(){
740
+      var time = this.$route.query.time
741
+      var delivery_way = this.$route.query.delivery_way
742
+      this.delivery_way = delivery_way
743
+      this.time = moment(time).format('YYYY-MM-DD')
744
+      console.log(11,this.$route.query)
745
+      this.requestSchedualDoctors(time)
746
+      this.org_id = this.$store.getters.xt_user.template_info.org_id;
747
+    }
748
+}
749
+</script>
750
+
751
+
752
+<style rel="stylesheet/scss" lang="scss" scoped>
753
+.dialysisTable{
754
+    width:960px;
755
+    margin: 0 auto;
756
+    text-align: center;
757
+    border-collapse: collapse;
758
+}
759
+.order_title_panl {
760
+    text-align: center;
761
+
762
+    .main_title {
763
+      font-size: 18px;
764
+      line-height: 40px;
765
+      font-weight: 500;
766
+    }
767
+}
768
+.dialysisTable tr{
769
+    padding: 10px 0;
770
+}
771
+.dialysisTable th {
772
+    color: #000;
773
+    padding: 0;
774
+    margin: 0;
775
+    height: 30px;
776
+}
777
+.dialysisTable tr td {
778
+    padding: 12px 0;
779
+}
780
+.subadvice_content {
781
+    text-align: left;
782
+    padding-left: 25px !important;
783
+    padding-right: 5px !important;
784
+}
785
+.advice_content {
786
+    text-align: left;
787
+    padding-left: 5px !important;
788
+    padding-right: 5px !important;
789
+    padding: 15px 5px !important;
790
+}
791
+</style>

+ 13 - 3
src/xt_pages/dialysis/newDoctorAdvice.vue 查看文件

1088
         if(name == '全部'){
1088
         if(name == '全部'){
1089
           name = ""
1089
           name = ""
1090
        }
1090
        }
1091
-      this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1091
+      
1092
+       if(this.org_id == 9671 || this.org_id == 10340 || this.org_id == 0){
1093
+        this.$router.push({ path: "/dialysis/doctorAdvicePrint/one",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1094
+       }
1095
+
1096
+       if(this.org_id != 9671 && this.org_id != 10340 && this.org_id!=0){
1097
+        this.$router.push({ path: "/dialysis/doctorAdvicePrint",query:{time: new Date(this.time).getTime(),delivery_way:name} });
1098
+       }
1099
+
1100
+
1101
+    
1092
 
1102
 
1093
     },
1103
     },
1094
     signPrintAction:function(){
1104
     signPrintAction:function(){
1468
        this.requestSchedualDoctors(this.time);
1478
        this.requestSchedualDoctors(this.time);
1469
      },
1479
      },
1470
     handleRowClick (row) {
1480
     handleRowClick (row) {
1471
-     console.log("row232323232",row)
1481
+    
1472
     },
1482
     },
1473
     tableRowClassName({row, rowIndex}) {
1483
     tableRowClassName({row, rowIndex}) {
1474
         row.index = rowIndex
1484
         row.index = rowIndex
1478
        
1488
        
1479
       },
1489
       },
1480
     handleCurrentChangeList(row){
1490
     handleCurrentChangeList(row){
1481
-      console.log("row233232232332",row)
1491
+     
1482
       this.selecting_schs.push(row)
1492
       this.selecting_schs.push(row)
1483
       this.current_row= row
1493
       this.current_row= row
1484
       this.is_status = 2
1494
       this.is_status = 2

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue 查看文件

1097
                               </div>
1097
                               </div>
1098
                               mmol/L
1098
                               mmol/L
1099
                             </div>
1099
                             </div>
1100
-                            <div class="inline_block" style="margin-left: 10px">
1100
+                            <!-- <div class="inline_block" style="margin-left: 10px">
1101
                              透析液流量:
1101
                              透析液流量:
1102
                               <div
1102
                               <div
1103
                                 class="under_line"
1103
                                 class="under_line"
1110
                                 }}
1110
                                 }}
1111
                               </div>
1111
                               </div>
1112
                               ml/min
1112
                               ml/min
1113
-                            </div>
1113
+                            </div> -->
1114
                           </div>
1114
                           </div>
1115
                           <div
1115
                           <div
1116
                             class="row"
1116
                             class="row"

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

827
             </td>
827
             </td>
828
           </tr>
828
           </tr>
829
 
829
 
830
-          <tr>
830
+          <!-- <tr>
831
             <td style="text-align: left" colspan="8">
831
             <td style="text-align: left" colspan="8">
832
               <span style="display: inline-block; margin-left: 15px">
832
               <span style="display: inline-block; margin-left: 15px">
833
                 血管通路皮肤情况:
833
                 血管通路皮肤情况:
866
                   "
866
                   "
867
                   showValue="肿"
867
                   showValue="肿"
868
                 ></label-box>
868
                 ></label-box>
869
-                <!-- 其他: -->
870
               </span>
869
               </span>
871
             </td>
870
             </td>
872
-          </tr>
871
+          </tr> -->
873
 
872
 
874
-          <tr>
873
+          <!-- <tr>
875
             <td style="text-align: left" colspan="8">
874
             <td style="text-align: left" colspan="8">
876
               <span style="display: inline-block; margin-left: 15px"
875
               <span style="display: inline-block; margin-left: 15px"
877
                 >出血影响因素:</span
876
                 >出血影响因素:</span
924
               >其他:
923
               >其他:
925
               <span>{{ predialysis.hemorrhage_other }}</span>
924
               <span>{{ predialysis.hemorrhage_other }}</span>
926
             </td>
925
             </td>
927
-          </tr>
926
+          </tr> -->
928
         </table>
927
         </table>
929
 
928
 
930
         <table class="print-table" border="1" style="line-height: 30px">
929
         <table class="print-table" border="1" style="line-height: 30px">
1084
                   showValue="3级"
1083
                   showValue="3级"
1085
                   :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1084
                   :isChecked="afterdialysis.cruor.indexOf('透析器-3级') > -1"
1086
                 ></label-box
1085
                 ></label-box
1086
+                ><label-box
1087
+                  showValue="无"
1088
+                  :isChecked="afterdialysis.cruor.indexOf('透析器-3级') <= -1&&
1089
+                  afterdialysis.cruor.indexOf('透析器-2级') <= -1&&
1090
+                  afterdialysis.cruor.indexOf('透析器-1级') <= -1&&
1091
+                  afterdialysis.cruor.indexOf('透析器-0级') <= -1"
1092
+                ></label-box
1087
                 >&nbsp;&nbsp;
1093
                 >&nbsp;&nbsp;
1088
                 {{ getCruor(afterdialysis.cruor) }}
1094
                 {{ getCruor(afterdialysis.cruor) }}
1089
               </span>
1095
               </span>

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

80
              <td width="40">透析备注:</td>
80
              <td width="40">透析备注:</td>
81
              <td width="500">
81
              <td width="500">
82
                <div class="under-line">
82
                <div class="under-line">
83
-                {{prescription.dialysis_remark?prescription.dialysis_remark:"" }}
83
+                 {{prescription.dialysis_remark?prescription.dialysis_remark:prescription.remark }}
84
               </div>
84
               </div>
85
              </td>
85
              </td>
86
            
86
            

+ 1 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue 查看文件

2400
                 }
2400
                 }
2401
               }
2401
               }
2402
 
2402
 
2403
-la
2403
+
2404
 
2404
 
2405
               let prescription = []
2405
               let prescription = []
2406
 
2406
 

+ 2 - 3
src/xt_pages/stock/drugs/components/drugQuery.vue 查看文件

1053
           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1053
           this.tableList[i].manufacturer_name = this.getManufacturName(this.tableList[i].manufacturer)
1054
 
1054
 
1055
           this.tableList[i].stock_in_count = this.getStockIn(this.tableList[i].drug_stock_count, this.tableList[i].max_unit, this.tableList[i].min_unit,this.tableList[i].min_number);
1055
           this.tableList[i].stock_in_count = this.getStockIn(this.tableList[i].drug_stock_count, this.tableList[i].max_unit, this.tableList[i].min_unit,this.tableList[i].min_number);
1056
-
1057
-          this.tableList[i].stock_out_count = this.getStockOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number,this.tableList[i].drug_cancel_stock_info)
1056
+          this.tableList[i].stock_out_count =  this.getActCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1058
           this.tableList[i].cancle_out_count = this.getCancleOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1057
           this.tableList[i].cancle_out_count = this.getCancleOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1059
-          this.tableList[i].act_cout =  this.getActCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1058
+          this.tableList[i].act_cout =  this.getStockOut(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number,this.tableList[i].drug_cancel_stock_info)
1060
           this.tableList[i].over_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1059
           this.tableList[i].over_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1061
           this.tableList[i].sum_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1060
           this.tableList[i].sum_count = this.getOverCount(this.tableList[i].drug_stock_count,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
1062
         }
1061
         }

+ 292 - 2
src/xt_pages/workforce/components/editTableData.vue 查看文件

2257
         name: null,
2257
         name: null,
2258
       },
2258
       },
2259
       cellflag: 0,
2259
       cellflag: 0,
2260
+      schedulesGroup:[],
2260
     };
2261
     };
2261
   },
2262
   },
2262
 
2263
 
3943
       this.$nextTick(() => {
3944
       this.$nextTick(() => {
3944
         this.$refs.table.doLayout();
3945
         this.$refs.table.doLayout();
3945
       });
3946
       });
3947
+      
3948
+      if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877){
3949
+
3950
+        //灌流 HD+HP
3951
+        var Mon_M = 0
3952
+        var Mon_A = 0
3953
+        var Mon_N = 0
3954
+
3955
+        var Tue_M =0
3956
+        var Tue_A = 0
3957
+        var Tue_N = 0
3958
+
3959
+        var Wed_M = 0
3960
+        var Wed_A = 0
3961
+        var Wed_N = 0
3962
+
3963
+        var Thurs_M = 0
3964
+        var Thurs_A = 0
3965
+        var Thurs_N = 0
3966
+
3967
+        var Fri_M = 0
3968
+        var Fri_A = 0
3969
+        var Fri_N = 0
3970
+
3971
+        var Sat_M = 0
3972
+        var Sat_A = 0
3973
+        var Sat_N = 0
3974
+
3975
+        var Sun_M = 0
3976
+        var Sun_A = 0
3977
+        var Sun_N = 0
3978
+
3979
+        //血滤 HDF
3980
+        var Mon_M_One = 0
3981
+        var Mon_A_One = 0
3982
+        var Mon_N_One = 0
3983
+
3984
+        var Tue_M_One =0
3985
+        var Tue_A_One = 0
3986
+        var Tue_N_One = 0
3987
+
3988
+        var Wed_M_One = 0
3989
+        var Wed_A_One = 0
3990
+        var Wed_N_One = 0
3991
+
3992
+        var Thurs_M_One = 0
3993
+        var Thurs_A_One = 0
3994
+        var Thurs_N_One = 0
3995
+
3996
+        var Fri_M_One = 0
3997
+        var Fri_A_One = 0
3998
+        var Fri_N_One = 0
3999
+
4000
+        var Sat_M_One = 0
4001
+        var Sat_A_One = 0
4002
+        var Sat_N_One = 0
4003
+
4004
+        var Sun_M_One = 0
4005
+        var Sun_A_One = 0
4006
+        var Sun_N_One= 0
4007
+
4008
+        if(this.schedulesGroup!=null && this.schedulesGroup.length >0){
4009
+          
4010
+          for(let i=0;i<this.schedulesGroup.length;i++){
4011
+            //灌流
4012
+            //礼拜一上午
4013
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4014
+              Mon_M = this.schedulesGroup[i].Count
4015
+            }
4016
+            //礼拜一下午
4017
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4018
+              Mon_A = this.schedulesGroup[i].Count
4019
+            }
4020
+            //礼拜一晚上
4021
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4022
+              Mon_N = this.schedulesGroup[i].Count
4023
+            }
4024
+
4025
+            //礼拜二上午
4026
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4027
+              Tue_M = this.schedulesGroup[i].Count
4028
+            }
4029
+            //礼拜二下午
4030
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 3){
4031
+              Tue_A = this.schedulesGroup[i].Count
4032
+            }
4033
+            //礼拜二晚上
4034
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4035
+              Tue_N = this.schedulesGroup[i].Count
4036
+            }
4037
+
3946
 
4038
 
3947
-      return sums;
4039
+            //礼拜三上午
4040
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4041
+              Wed_M = this.schedulesGroup[i].Count
4042
+            }
4043
+            //礼拜三下午
4044
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4045
+              Wed_A = this.schedulesGroup[i].Count
4046
+            }
4047
+            //礼拜三晚上
4048
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4049
+              Wed_N = this.schedulesGroup[i].Count
4050
+            }
4051
+
4052
+            //礼拜四上午
4053
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4054
+              Thurs_M = this.schedulesGroup[i].Count
4055
+            }
4056
+            //礼拜四下午
4057
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4058
+              Thurs_A = this.schedulesGroup[i].Count
4059
+            }
4060
+            //礼拜四晚上
4061
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4062
+              Thurs_N = this.schedulesGroup[i].Count
4063
+            }
4064
+
4065
+            //礼拜五上午
4066
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
4067
+              Fri_M = this.schedulesGroup[i].Count
4068
+            }
4069
+            //礼拜五下午
4070
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
4071
+              Fri_A = this.schedulesGroup[i].Count
4072
+            }
4073
+            //礼拜五晚上
4074
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
4075
+              Fri_N = this.schedulesGroup[i].Count
4076
+            }
4077
+
4078
+
4079
+            //礼拜六上午
4080
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
4081
+              Sat_M = this.schedulesGroup[i].Count
4082
+            }
4083
+            //礼拜六下午
4084
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
4085
+              Sat_A = this.schedulesGroup[i].Count
4086
+            }
4087
+            //礼拜六晚上
4088
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
4089
+              Sat_N  = this.schedulesGroup[i].Count
4090
+            }
4091
+
4092
+            //礼拜日上午
4093
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
4094
+              Sun_M = this.schedulesGroup[i].Count
4095
+            }
4096
+            //礼拜日下午
4097
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
4098
+              Sun_A = this.schedulesGroup[i].Count
4099
+            }
4100
+            //礼拜日晚上
4101
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
4102
+              Sun_N = this.schedulesGroup[i].Count
4103
+            }
4104
+
4105
+
4106
+            //血滤
4107
+              //礼拜一上午
4108
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4109
+              Mon_M_One = this.schedulesGroup[i].Count
4110
+            }
4111
+            //礼拜一下午
4112
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4113
+              Mon_A_One = this.schedulesGroup[i].Count
4114
+            }
4115
+            //礼拜一晚上
4116
+            if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4117
+              Mon_N_One = this.schedulesGroup[i].Count
4118
+            }
4119
+
4120
+            //礼拜二上午
4121
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4122
+              Tue_M_One = this.schedulesGroup[i].Count
4123
+            }
4124
+            //礼拜二下午
4125
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 2){
4126
+              Tue_A_One = this.schedulesGroup[i].Count
4127
+            }
4128
+            //礼拜二晚上
4129
+            if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4130
+              Tue_N_One = this.schedulesGroup[i].Count
4131
+            }
4132
+
4133
+
4134
+            //礼拜三上午
4135
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4136
+              Wed_M_One = this.schedulesGroup[i].Count
4137
+            }
4138
+            //礼拜三下午
4139
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4140
+              Wed_A_One = this.schedulesGroup[i].Count
4141
+            }
4142
+            //礼拜三晚上
4143
+            if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4144
+              Wed_N_One = this.schedulesGroup[i].Count
4145
+            }
4146
+
4147
+            //礼拜四上午
4148
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4149
+              Thurs_M_One = this.schedulesGroup[i].Count
4150
+              
4151
+            }
4152
+            //礼拜四下午
4153
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4154
+              Thurs_A_One = this.schedulesGroup[i].Count
4155
+            }
4156
+            //礼拜四晚上
4157
+            if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4158
+              Thurs_N_One = this.schedulesGroup[i].Count
4159
+            }
4160
+
4161
+            //礼拜五上午
4162
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4163
+              Fri_M_One = this.schedulesGroup[i].Count
4164
+            }
4165
+            //礼拜五下午
4166
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4167
+              Fri_A_One = this.schedulesGroup[i].Count
4168
+            }
4169
+            //礼拜五晚上
4170
+            if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4171
+              Fri_N_One = this.schedulesGroup[i].Count
4172
+            }
4173
+
4174
+
4175
+            //礼拜六上午
4176
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4177
+              Sat_M_One = this.schedulesGroup[i].Count
4178
+            }
4179
+            //礼拜六下午
4180
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4181
+              Sat_A_One = this.schedulesGroup[i].Count
4182
+            }
4183
+            //礼拜六晚上
4184
+            if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4185
+             Sat_N_One  = this.schedulesGroup[i].Count
4186
+            }
4187
+
4188
+            //礼拜日上午
4189
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
4190
+              Sun_M_One = this.schedulesGroup[i].Count
4191
+            }
4192
+            //礼拜日下午
4193
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
4194
+              Sun_A_One = this.schedulesGroup[i].Count
4195
+            }
4196
+            //礼拜日晚上
4197
+            if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
4198
+              Sun_N_One = this.schedulesGroup[i].Count
4199
+            }
4200
+
4201
+        }
4202
+      }
4203
+
4204
+            sums[2] = "总人数:"+ sums[2]  +"人"+ " " + "灌流:"+Mon_M +"人" +" "+ "血滤:" + Mon_M_One +"人"
4205
+            sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "灌流:"+Mon_A +"人" +" "+ "血滤:" + Mon_A_One  +"人" 
4206
+            sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "灌流:"+Mon_N +"人" +" "+ "血滤:" + Mon_N_One +"人"  
4207
+
4208
+            sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "灌流:"+Tue_M +"人" +" "+ "血滤:" + Tue_M_One +"人"  
4209
+            sums[6] = "总人数:"+ sums[6]  +"人"+ " " + "灌流:"+Tue_A +"人" +" "+ "血滤:" + Tue_A_One +"人"  
4210
+            sums[7] = "总人数:"+ sums[7]  +"人"+ " " + "灌流:"+Tue_N +"人" +" "+ "血滤:" + Tue_N_One +"人"  
4211
+
4212
+            sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "灌流:"+Wed_M +"人" +" "+ "血滤:" + Wed_M_One +"人"  
4213
+            sums[9] = "总人数:"+ sums[9]  +"人"+ " " + "灌流:"+Wed_A +"人" +" "+ "血滤:" + Wed_A_One  +"人"  
4214
+            sums[10] = "总人数:"+ sums[10]  +"人"+ " " + "灌流:"+Wed_N +"人" +" "+ "血滤:" +Wed_N_One +"人"  
4215
+
4216
+            sums[11] = "总人数:"+ sums[11]  +"人"+ " " + "灌流:"+Thurs_M +"人" +" "+ "血滤:" + Thurs_M_One +"人"  
4217
+            sums[12] = "总人数:"+ sums[12]  +"人"+ " " + "灌流:"+Thurs_A +"人" +" "+ "血滤:" + Thurs_A_One  +"人"  
4218
+            sums[13] = "总人数:"+ sums[13]  +"人"+ " " + "灌流:"+Thurs_N +"人" +" "+ "血滤:" + Thurs_N_One +"人"  
4219
+
4220
+            sums[14] = "总人数:"+ sums[14]  +"人"+ " " + "灌流:"+Fri_M +"人" +" "+ "血滤:" + Fri_M_One +"人"  
4221
+            sums[15] = "总人数:"+ sums[15]  +"人"+ " " + "灌流:"+Fri_A +"人" +" "+ "血滤:" + Fri_A_One +"人"  
4222
+            sums[16] = "总人数:"+ sums[16]  +"人"+ " " + "灌流:"+Fri_N +"人" +" "+ "血滤:" + Fri_N_One +"人"  
4223
+
4224
+            sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "灌流:"+Sat_M +"人" +" "+ "血滤:" + Sat_M_One +"人"  
4225
+            sums[18] = "总人数:"+ sums[18]  +"人"+ " " + "灌流:"+Sat_A +"人" +" "+ "血滤:" + Sat_A_One +"人"  
4226
+            sums[19] = "总人数:"+ sums[19]  +"人"+ " " + "灌流:"+Sat_N +"人" +" "+ "血滤:" + Sat_N_One +"人"  
4227
+
4228
+            sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "灌流:"+Sun_M +"人" +" "+ "血滤:" + Sun_M_One +"人"  
4229
+            sums[21] = "总人数:"+ sums[21]  +"人"+ " " + "灌流:"+Sun_A +"人" +" "+ "血滤:" + Sun_A_One +"人"  
4230
+            sums[22] = "总人数:"+ sums[22]  +"人"+ " " + "灌流:"+Sun_N +"人" +" "+ "血滤:" + Sun_N_One +"人"  
4231
+            return sums;
4232
+        }
4233
+
4234
+      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877){
4235
+        return sums;
4236
+      }
3948
     },
4237
     },
3949
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
4238
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
3950
       var that = this;
4239
       var that = this;
4013
           this.weekDays = response.data.data.days;
4302
           this.weekDays = response.data.data.days;
4014
           this.toDay = response.data.data.today;
4303
           this.toDay = response.data.data.today;
4015
           var theSchedules = response.data.data.schdules;
4304
           var theSchedules = response.data.data.schdules;
4016
-
4305
+          var schedulesGroup = response.data.data.schedulesGroup
4306
+          this.schedulesGroup = schedulesGroup
4017
           var that = this;
4307
           var that = this;
4018
 
4308
 
4019
           this.scheduleZone.forEach(function (zone, index) {
4309
           this.scheduleZone.forEach(function (zone, index) {

+ 14 - 14
src/xt_pages/workforce/components/nextTableWeeks.vue 查看文件

344
           return value1 - value2;
344
           return value1 - value2;
345
       }
345
       }
346
      },
346
      },
347
+     getTimestamp(time) { //把时间日期转成时间戳
348
+      return (new Date(time)).getTime()
349
+    },
347
     getNextScheduleWeekDay() {
350
     getNextScheduleWeekDay() {
348
        this.loading = true
351
        this.loading = true
349
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
352
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
363
           str = zone.join(",")
366
           str = zone.join(",")
364
         }
367
         }
365
 
368
 
366
-        var now_time = parseInt(this.week_type) * 86400 + this.start_time
367
-        
369
+       
368
         let weekOfDay = parseInt(moment().format('E'))
370
         let weekOfDay = parseInt(moment().format('E'))
369
         let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
371
         let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
370
-        console.log("卡 is h2323233232",new Date(next_monday))
372
+        
371
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
373
         let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
372
-        console.log("下周日",next_sunday.valueOf())
373
-        // const params = {
374
-        //   start_time:moment().week(moment().week() + 1).startOf('week').unix(),
375
-        //   end_time:moment().week(moment().week() + 1).endOf('week').unix(),
376
-        //   week_type:this.week_type,
377
-        //   week_time:this.week_time,
378
-        //   zone:str,
379
-        //   record_date:this.getTime(now_time)
380
-        // }
381
 
374
 
375
+        console.log("开始时间++++++++",(this.getTimestamp(next_monday)/1000)-28800)
376
+
377
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
378
+        console.log("now_time------------------",now_time)
379
+
380
+       
381
+      
382
        const params = {
382
        const params = {
383
           start_time:next_monday,
383
           start_time:next_monday,
384
           end_time:next_sunday,
384
           end_time:next_sunday,
665
     },
665
     },
666
     signPrint() {
666
     signPrint() {
667
         
667
         
668
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
668
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 0){
669
          var zone = this.zone
669
          var zone = this.zone
670
           var newArr = []
670
           var newArr = []
671
           for(let i=0;i<this.zoneList.length;i++){
671
           for(let i=0;i<this.zoneList.length;i++){
683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
683
             path: '/schedule/remind/print/setting/one?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
684
           })
684
           })
685
           }
685
           }
686
-        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340){
686
+        if(this.org_id!=9671 && this.org_id!=9675 && this.org_id!=10340 && this.org_id!=0){
687
           var zone = this.zone
687
           var zone = this.zone
688
         var newArr = []
688
         var newArr = []
689
         for(let i=0;i<this.zoneList.length;i++){
689
         for(let i=0;i<this.zoneList.length;i++){

+ 400 - 30
src/xt_pages/workforce/components/tableData.vue 查看文件

387
           ></schedule-item>
387
           ></schedule-item>
388
         </el-table-column>
388
         </el-table-column>
389
       </el-table-column>
389
       </el-table-column>
390
-
390
+    
391
 <!--      <el-table-column-->
391
 <!--      <el-table-column-->
392
 <!--        prop="total"-->
392
 <!--        prop="total"-->
393
 <!--        label="总数"-->
393
 <!--        label="总数"-->
870
       isShowShangWu:true,
870
       isShowShangWu:true,
871
       isShowXiaWu:true,
871
       isShowXiaWu:true,
872
       isShowWanShang:true,
872
       isShowWanShang:true,
873
-
873
+      schedulesGroup:[]
874
 
874
 
875
     };
875
     };
876
   },
876
   },
895
         this.isShowXiaWu = true
895
         this.isShowXiaWu = true
896
         this.isShowWanShang = true
896
         this.isShowWanShang = true
897
       }
897
       }
898
-      console.log(this.source_scheduleZone)
898
+      // console.log(this.source_scheduleZone)
899
       //删除对应数据
899
       //删除对应数据
900
       var list = this.source_scheduleZone
900
       var list = this.source_scheduleZone
901
       var list1 = this.source_scheduleZone
901
       var list1 = this.source_scheduleZone
968
 
968
 
969
 
969
 
970
     }, week_type:function () {
970
     }, week_type:function () {
971
-      console.log(this.week_type)
972
-      console.log(this.schedule_type)
973
-      console.log(this.scheduleZone)
971
+      // console.log(this.week_type)
972
+      // console.log(this.schedule_type)
973
+      // console.log(this.scheduleZone)
974
 
974
 
975
       this.isShowOne = false
975
       this.isShowOne = false
976
       this.isShowTwo = false
976
       this.isShowTwo = false
1064
           var partitions = response.data.data.partitions
1064
           var partitions = response.data.data.partitions
1065
           console.log("partitions",partitions)
1065
           console.log("partitions",partitions)
1066
           this.theWeek.thisWeek = response.data.data.theWeek
1066
           this.theWeek.thisWeek = response.data.data.theWeek
1067
-          console.log("这个周",response.data.data.theWeek)
1067
+          
1068
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1068
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
1069
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1069
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
1070
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
1070
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
1086
                   cut: jihao.number,
1086
                   cut: jihao.number,
1087
                   jihao_id: jihao.id,
1087
                   jihao_id: jihao.id,
1088
                   sort:jihao.sort,
1088
                   sort:jihao.sort,
1089
+
1089
                   Mon_M: {
1090
                   Mon_M: {
1090
                     schedule_id: 0,
1091
                     schedule_id: 0,
1091
                     mode_id: 0,
1092
                     mode_id: 0,
1093
                     patient_id: 0,
1094
                     patient_id: 0,
1094
                     patient: '',
1095
                     patient: '',
1095
                     dialysis_machine_name:'',
1096
                     dialysis_machine_name:'',
1097
+                    schedule_date:"",
1098
+                    Count:0,
1096
                   },
1099
                   },
1097
                   Mon_A: {
1100
                   Mon_A: {
1098
                     schedule_id: 0,
1101
                     schedule_id: 0,
1101
                     patient_id: 0,
1104
                     patient_id: 0,
1102
                     patient: '',
1105
                     patient: '',
1103
                     dialysis_machine_name:'',
1106
                     dialysis_machine_name:'',
1107
+                    schedule_date:"",
1108
+                    Count:0,
1104
                   },
1109
                   },
1105
                   Mon_N: {
1110
                   Mon_N: {
1106
                     schedule_id: 0,
1111
                     schedule_id: 0,
1109
                     patient_id: 0,
1114
                     patient_id: 0,
1110
                     patient: '',
1115
                     patient: '',
1111
                     dialysis_machine_name:'',
1116
                     dialysis_machine_name:'',
1117
+                    schedule_date:"",
1118
+                    Count:0,
1112
                   },
1119
                   },
1113
                   Tue_M: {
1120
                   Tue_M: {
1114
                     schedule_id: 0,
1121
                     schedule_id: 0,
1117
                     patient_id: 0,
1124
                     patient_id: 0,
1118
                     patient: '',
1125
                     patient: '',
1119
                     dialysis_machine_name:'',
1126
                     dialysis_machine_name:'',
1127
+                    schedule_date:"",
1128
+                    Count:0,
1120
                   },
1129
                   },
1121
                   Tue_A: {
1130
                   Tue_A: {
1122
                     schedule_id: 0,
1131
                     schedule_id: 0,
1125
                     patient_id: 0,
1134
                     patient_id: 0,
1126
                     patient: '',
1135
                     patient: '',
1127
                     dialysis_machine_name:'',
1136
                     dialysis_machine_name:'',
1137
+                    schedule_date:"",
1138
+                    Count:0,
1128
                   },
1139
                   },
1129
                   Tue_N: {
1140
                   Tue_N: {
1130
                     schedule_id: 0,
1141
                     schedule_id: 0,
1133
                     patient_id: 0,
1144
                     patient_id: 0,
1134
                     patient: '',
1145
                     patient: '',
1135
                     dialysis_machine_name:'',
1146
                     dialysis_machine_name:'',
1147
+                    schedule_date:"",
1148
+                    Count:0,
1136
                   },
1149
                   },
1137
                   Wed_M: {
1150
                   Wed_M: {
1138
                     schedule_id: 0,
1151
                     schedule_id: 0,
1141
                     patient_id: 0,
1154
                     patient_id: 0,
1142
                     patient: '',
1155
                     patient: '',
1143
                     dialysis_machine_name:'',
1156
                     dialysis_machine_name:'',
1157
+                    schedule_date:"",
1158
+                    Count:0,
1144
                   },
1159
                   },
1145
                   Wed_A: {
1160
                   Wed_A: {
1146
                     schedule_id: 0,
1161
                     schedule_id: 0,
1149
                     patient_id: 0,
1164
                     patient_id: 0,
1150
                     patient: '',
1165
                     patient: '',
1151
                     dialysis_machine_name:'',
1166
                     dialysis_machine_name:'',
1167
+                    schedule_date:"",
1168
+                    Count:0,
1152
                   },
1169
                   },
1153
                   Wed_N: {
1170
                   Wed_N: {
1154
                     schedule_id: 0,
1171
                     schedule_id: 0,
1157
                     patient_id: 0,
1174
                     patient_id: 0,
1158
                     patient: '',
1175
                     patient: '',
1159
                     dialysis_machine_name:'',
1176
                     dialysis_machine_name:'',
1177
+                    schedule_date:"",
1178
+                    Count:0,
1160
                   },
1179
                   },
1161
                   Thurs_M: {
1180
                   Thurs_M: {
1162
                     schedule_id: 0,
1181
                     schedule_id: 0,
1165
                     patient_id: 0,
1184
                     patient_id: 0,
1166
                     patient: '',
1185
                     patient: '',
1167
                     dialysis_machine_name:'',
1186
                     dialysis_machine_name:'',
1187
+                    schedule_date:"",
1188
+                    Count:0,
1168
                   },
1189
                   },
1169
                   Thurs_A: {
1190
                   Thurs_A: {
1170
                     schedule_id: 0,
1191
                     schedule_id: 0,
1173
                     patient_id: 0,
1194
                     patient_id: 0,
1174
                     patient: '',
1195
                     patient: '',
1175
                     dialysis_machine_name:'',
1196
                     dialysis_machine_name:'',
1197
+                    schedule_date:"",
1198
+                    Count:0,
1176
                   },
1199
                   },
1177
                   Thurs_N: {
1200
                   Thurs_N: {
1178
                     schedule_id: 0,
1201
                     schedule_id: 0,
1181
                     patient_id: 0,
1204
                     patient_id: 0,
1182
                     patient: '',
1205
                     patient: '',
1183
                     dialysis_machine_name:'',
1206
                     dialysis_machine_name:'',
1207
+                    schedule_date:"",
1208
+                    Count:0,
1184
                   },
1209
                   },
1185
                   Fri_M: {
1210
                   Fri_M: {
1186
                     schedule_id: 0,
1211
                     schedule_id: 0,
1189
                     patient_id: 0,
1214
                     patient_id: 0,
1190
                     patient: '',
1215
                     patient: '',
1191
                     dialysis_machine_name:'',
1216
                     dialysis_machine_name:'',
1217
+                    schedule_date:"",
1218
+                    Count:0,
1192
                   },
1219
                   },
1193
                   Fri_A: {
1220
                   Fri_A: {
1194
                     schedule_id: 0,
1221
                     schedule_id: 0,
1197
                     patient_id: 0,
1224
                     patient_id: 0,
1198
                     patient: '',
1225
                     patient: '',
1199
                     dialysis_machine_name:'',
1226
                     dialysis_machine_name:'',
1227
+                    schedule_date:"",
1228
+                    Count:0,
1200
                   },
1229
                   },
1201
                   Fri_N: {
1230
                   Fri_N: {
1202
                     schedule_id: 0,
1231
                     schedule_id: 0,
1205
                     patient_id: 0,
1234
                     patient_id: 0,
1206
                     patient: '',
1235
                     patient: '',
1207
                     dialysis_machine_name:'',
1236
                     dialysis_machine_name:'',
1237
+                    schedule_date:"",
1238
+                    Count:0,
1208
                   },
1239
                   },
1209
                   Sat_M: {
1240
                   Sat_M: {
1210
                     schedule_id: 0,
1241
                     schedule_id: 0,
1213
                     patient_id: 0,
1244
                     patient_id: 0,
1214
                     patient: '',
1245
                     patient: '',
1215
                     dialysis_machine_name:'',
1246
                     dialysis_machine_name:'',
1247
+                    schedule_date:"",
1248
+                    Count:0,
1216
                   },
1249
                   },
1217
                   Sat_A: {
1250
                   Sat_A: {
1218
                     schedule_id: 0,
1251
                     schedule_id: 0,
1221
                     patient_id: 0,
1254
                     patient_id: 0,
1222
                     patient: '',
1255
                     patient: '',
1223
                     dialysis_machine_name:'',
1256
                     dialysis_machine_name:'',
1257
+                    schedule_date:"",
1258
+                    Count:0,
1224
                   },
1259
                   },
1225
                   Sat_N: {
1260
                   Sat_N: {
1226
                     schedule_id: 0,
1261
                     schedule_id: 0,
1229
                     patient_id: 0,
1264
                     patient_id: 0,
1230
                     patient: '',
1265
                     patient: '',
1231
                     dialysis_machine_name:'',
1266
                     dialysis_machine_name:'',
1267
+                    schedule_date:"",
1268
+                    Count:0,
1232
                   },
1269
                   },
1233
                   Sun_A: {
1270
                   Sun_A: {
1234
                     schedule_id: 0,
1271
                     schedule_id: 0,
1237
                     patient_id: 0,
1274
                     patient_id: 0,
1238
                     patient: '',
1275
                     patient: '',
1239
                     dialysis_machine_name:'',
1276
                     dialysis_machine_name:'',
1277
+                    schedule_date:"",
1278
+                    Count:0,
1240
                   },
1279
                   },
1241
                   Sun_N: {
1280
                   Sun_N: {
1242
                     schedule_id: 0,
1281
                     schedule_id: 0,
1245
                     patient_id: 0,
1284
                     patient_id: 0,
1246
                     patient: '',
1285
                     patient: '',
1247
                     dialysis_machine_name:'',
1286
                     dialysis_machine_name:'',
1287
+                    schedule_date:"",
1288
+                    Count:0,
1248
                   },
1289
                   },
1249
                   Sun_M: {
1290
                   Sun_M: {
1250
                     schedule_id: 0,
1291
                     schedule_id: 0,
1253
                     patient_id: 0,
1294
                     patient_id: 0,
1254
                     patient: '',
1295
                     patient: '',
1255
                     dialysis_machine_name:'',
1296
                     dialysis_machine_name:'',
1297
+                    schedule_date:"",
1298
+                    Count:0,
1256
                   },
1299
                   },
1257
                   total: 0
1300
                   total: 0
1258
                 }
1301
                 }
1262
               })
1305
               })
1263
             })
1306
             })
1264
           }
1307
           }
1265
-          console.log("34455555566666",this.scheduleZone)
1308
+          
1266
           this.scheduleZone.sort(this.compare('sort'))
1309
           this.scheduleZone.sort(this.compare('sort'))
1267
           this.source_scheduleZone = this.scheduleZone
1310
           this.source_scheduleZone = this.scheduleZone
1311
+          console.log("34455555566666",this.source_scheduleZone)
1268
         })
1312
         })
1269
      },
1313
      },
1270
 
1314
 
1312
       this.getSchedulePatients();
1356
       this.getSchedulePatients();
1313
     },
1357
     },
1314
     getSummaries(param) {
1358
     getSummaries(param) {
1359
+    
1360
+     
1315
       const { columns, data } = param;
1361
       const { columns, data } = param;
1316
       const sums = [];
1362
       const sums = [];
1363
+    
1317
       columns.forEach((column, index) => {
1364
       columns.forEach((column, index) => {
1365
+       
1318
         if (index === 0 ) {
1366
         if (index === 0 ) {
1319
           sums[index] = "总数";
1367
           sums[index] = "总数";
1320
           return;
1368
           return;
1325
         }
1373
         }
1326
 
1374
 
1327
         const values = data.map(item => item[column.property]);
1375
         const values = data.map(item => item[column.property]);
1328
-        console.log(values)
1329
-        // if (index === 23) {
1330
-        //   sums[index] = values.reduce((prev, curr) => {
1331
-        //     const value = Number(curr);
1332
-        //     if (!isNaN(value)) {
1333
-        //       return prev + curr;
1334
-        //     } else {
1335
-        //       return prev;
1336
-        //     }
1337
-        //   }, 0);
1338
-        //   sums[index];
1339
-        //   return;
1340
-        // }
1341
-
1376
+        
1342
         sums[index] = values.reduce((prev, curr) => {
1377
         sums[index] = values.reduce((prev, curr) => {
1343
           if (typeof curr["mode_id"] === "undefined") {
1378
           if (typeof curr["mode_id"] === "undefined") {
1344
             return prev;
1379
             return prev;
1355
       this.$nextTick(() => {
1390
       this.$nextTick(() => {
1356
         this.$refs.table.doLayout();
1391
         this.$refs.table.doLayout();
1357
       });
1392
       });
1393
+    if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id == 0 || this.$store.getters.xt_user.template_info.org_id == 3877){
1394
+
1395
+      //灌流 HD+HP
1396
+      var Mon_M = 0
1397
+      var Mon_A = 0
1398
+      var Mon_N = 0
1399
+
1400
+      var Tue_M =0
1401
+      var Tue_A = 0
1402
+      var Tue_N = 0
1403
+
1404
+      var Wed_M = 0
1405
+      var Wed_A = 0
1406
+      var Wed_N = 0
1407
+
1408
+      var Thurs_M = 0
1409
+      var Thurs_A = 0
1410
+      var Thurs_N = 0
1411
+
1412
+      var Fri_M = 0
1413
+      var Fri_A = 0
1414
+      var Fri_N = 0
1415
+
1416
+      var Sat_M = 0
1417
+      var Sat_A = 0
1418
+      var Sat_N = 0
1419
+
1420
+      var Sun_M = 0
1421
+      var Sun_A = 0
1422
+      var Sun_N = 0
1423
+
1424
+      //血滤 HDF
1425
+      var Mon_M_One = 0
1426
+      var Mon_A_One = 0
1427
+      var Mon_N_One = 0
1428
+
1429
+      var Tue_M_One =0
1430
+      var Tue_A_One = 0
1431
+      var Tue_N_One = 0
1432
+
1433
+      var Wed_M_One = 0
1434
+      var Wed_A_One = 0
1435
+      var Wed_N_One = 0
1436
+
1437
+      var Thurs_M_One = 0
1438
+      var Thurs_A_One = 0
1439
+      var Thurs_N_One = 0
1440
+
1441
+      var Fri_M_One = 0
1442
+      var Fri_A_One = 0
1443
+      var Fri_N_One = 0
1444
+
1445
+      var Sat_M_One = 0
1446
+      var Sat_A_One = 0
1447
+      var Sat_N_One = 0
1448
+
1449
+      var Sun_M_One = 0
1450
+      var Sun_A_One = 0
1451
+      var Sun_N_One= 0
1452
+
1453
+      if(this.schedulesGroup!=null && this.schedulesGroup.length >0){
1454
+        
1455
+        for(let i=0;i<this.schedulesGroup.length;i++){
1456
+          //灌流
1457
+          //礼拜一上午
1458
+          if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1459
+            Mon_M = this.schedulesGroup[i].Count
1460
+          }
1461
+           //礼拜一下午
1462
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1463
+            Mon_A = this.schedulesGroup[i].Count
1464
+          }
1465
+           //礼拜一晚上
1466
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1467
+            Mon_N = this.schedulesGroup[i].Count
1468
+          }
1469
+
1470
+           //礼拜二上午
1471
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1472
+            Tue_M = this.schedulesGroup[i].Count
1473
+          }
1474
+           //礼拜二下午
1475
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 3){
1476
+            Tue_A = this.schedulesGroup[i].Count
1477
+          }
1478
+           //礼拜二晚上
1479
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1480
+            Tue_N = this.schedulesGroup[i].Count
1481
+          }
1482
+
1483
+
1484
+          //礼拜三上午
1485
+          if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1486
+            Wed_M = this.schedulesGroup[i].Count
1487
+          }
1488
+           //礼拜三下午
1489
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1490
+            Wed_A = this.schedulesGroup[i].Count
1491
+          }
1492
+           //礼拜三晚上
1493
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1494
+            Wed_N = this.schedulesGroup[i].Count
1495
+          }
1496
+
1497
+           //礼拜四上午
1498
+          if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1499
+            Thurs_M = this.schedulesGroup[i].Count
1500
+          }
1501
+           //礼拜四下午
1502
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1503
+            Thurs_A = this.schedulesGroup[i].Count
1504
+          }
1505
+           //礼拜四晚上
1506
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1507
+            Thurs_N = this.schedulesGroup[i].Count
1508
+          }
1509
+
1510
+           //礼拜五上午
1511
+          if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 3){
1512
+            Fri_M = this.schedulesGroup[i].Count
1513
+          }
1514
+           //礼拜五下午
1515
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 3){
1516
+            Fri_A = this.schedulesGroup[i].Count
1517
+          }
1518
+           //礼拜五晚上
1519
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 3){
1520
+            Fri_N = this.schedulesGroup[i].Count
1521
+          }
1522
+
1523
+
1524
+          //礼拜六上午
1525
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
1526
+            Sat_M = this.schedulesGroup[i].Count
1527
+          }
1528
+           //礼拜六下午
1529
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
1530
+            Sat_A = this.schedulesGroup[i].Count
1531
+          }
1532
+           //礼拜六晚上
1533
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
1534
+            Sat_N = this.schedulesGroup[i].Count
1535
+          }
1536
+
1537
+           //礼拜日上午
1538
+          if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1  && this.schedulesGroup[i].mode_id == 3){
1539
+            Sun_M = this.schedulesGroup[i].Count
1540
+          }
1541
+           //礼拜日下午
1542
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2  && this.schedulesGroup[i].mode_id == 3){
1543
+            Sun_A = this.schedulesGroup[i].Count
1544
+          }
1545
+           //礼拜日晚上
1546
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3  && this.schedulesGroup[i].mode_id == 3){
1547
+            Sun_N = this.schedulesGroup[i].Count
1548
+          }
1549
+
1550
+
1551
+           //血滤
1552
+            //礼拜一上午
1553
+          if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1554
+            Mon_M_One = this.schedulesGroup[i].Count
1555
+          }
1556
+           //礼拜一下午
1557
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1558
+            Mon_A_One = this.schedulesGroup[i].Count
1559
+          }
1560
+           //礼拜一晚上
1561
+           if(this.schedulesGroup[i].schedule_week == 1 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1562
+            Mon_N_One = this.schedulesGroup[i].Count
1563
+          }
1564
+
1565
+           //礼拜二上午
1566
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1567
+            Tue_M_One = this.schedulesGroup[i].Count
1568
+          }
1569
+           //礼拜二下午
1570
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 2&& this.schedulesGroup[i].mode_id == 2){
1571
+            Tue_A_One = this.schedulesGroup[i].Count
1572
+          }
1573
+           //礼拜二晚上
1574
+           if(this.schedulesGroup[i].schedule_week == 2 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1575
+            Tue_N_One = this.schedulesGroup[i].Count
1576
+          }
1577
+
1578
+
1579
+          //礼拜三上午
1580
+          if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1581
+            Wed_M_One = this.schedulesGroup[i].Count
1582
+          }
1583
+           //礼拜三下午
1584
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1585
+            Wed_A_One = this.schedulesGroup[i].Count
1586
+          }
1587
+           //礼拜三晚上
1588
+           if(this.schedulesGroup[i].schedule_week == 3 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1589
+            Wed_N_One = this.schedulesGroup[i].Count
1590
+          }
1358
 
1591
 
1592
+           //礼拜四上午
1593
+          if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1594
+            Thurs_M_One = this.schedulesGroup[i].Count
1595
+            
1596
+          }
1597
+           //礼拜四下午
1598
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1599
+            Thurs_A_One = this.schedulesGroup[i].Count
1600
+          }
1601
+           //礼拜四晚上
1602
+           if(this.schedulesGroup[i].schedule_week == 4 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1603
+            Thurs_N_One = this.schedulesGroup[i].Count
1604
+          }
1605
+
1606
+           //礼拜五上午
1607
+          if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1608
+            Fri_M_One = this.schedulesGroup[i].Count
1609
+          }
1610
+           //礼拜五下午
1611
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1612
+            Fri_A_One = this.schedulesGroup[i].Count
1613
+          }
1614
+           //礼拜五晚上
1615
+           if(this.schedulesGroup[i].schedule_week == 5 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1616
+            Fri_N_One = this.schedulesGroup[i].Count
1617
+          }
1618
+
1619
+
1620
+          //礼拜六上午
1621
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1622
+            Sat_M_One = this.schedulesGroup[i].Count
1623
+          }
1624
+           //礼拜六下午
1625
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1626
+            Sat_A_One = this.schedulesGroup[i].Count
1627
+          }
1628
+           //礼拜六晚上
1629
+           if(this.schedulesGroup[i].schedule_week == 6 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1630
+            Sat_N_One = this.schedulesGroup[i].Count
1631
+          }
1632
+
1633
+           //礼拜日上午
1634
+          if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 1 && this.schedulesGroup[i].mode_id == 2){
1635
+            Sun_M_One = this.schedulesGroup[i].Count
1636
+          }
1637
+           //礼拜日下午
1638
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 2 && this.schedulesGroup[i].mode_id == 2){
1639
+            Sun_A_One = this.schedulesGroup[i].Count
1640
+          }
1641
+           //礼拜日晚上
1642
+           if(this.schedulesGroup[i].schedule_week == 7 && this.schedulesGroup[i].schedule_type == 3 && this.schedulesGroup[i].mode_id == 2){
1643
+            Sun_N_One = this.schedulesGroup[i].Count
1644
+          }
1645
+  
1646
+        }
1647
+      }
1648
+
1649
+      sums[2] = "总人数:"+ sums[2]  +"人"+ " " + "灌流:"+Mon_M +"人" +" "+ "血滤:" + Mon_M_One +"人"
1650
+      sums[3] = "总人数:"+ sums[3]  +"人"+ " " + "灌流:"+Mon_A +"人" +" "+ "血滤:" + Mon_A_One +"人" 
1651
+      sums[4] = "总人数:"+ sums[4]  +"人"+ " " + "灌流:"+Mon_N +"人" +" "+ "血滤:" + Mon_N_One +"人"  
1652
+
1653
+      sums[5] = "总人数:"+ sums[5]  +"人"+ " " + "灌流:"+Tue_M +"人" +" "+ "血滤:" + Tue_M_One +"人"  
1654
+      sums[6] = "总人数:"+ sums[6]  +"人"+ " " + "灌流:"+Tue_A +"人" +" "+ "血滤:" + Tue_A_One +"人"  
1655
+      sums[7] = "总人数:"+ sums[7]  +"人"+ " " + "灌流:"+Tue_N +"人" +" "+ "血滤:" + Tue_N_One +"人"  
1656
+
1657
+      sums[8] = "总人数:"+ sums[8]  +"人"+ " " + "灌流:"+Wed_M +"人" +" "+ "血滤:" + Wed_M_One +"人"  
1658
+      sums[9] = "总人数:"+ sums[9]  +"人"+ " " + "灌流:"+ Wed_A +"人" +" "+ "血滤:" + Wed_A_One +"人"  
1659
+      sums[10] = "总人数:"+ sums[10]  +"人"+ " " + "灌流:"+Wed_N +"人" +" "+ "血滤:" +Wed_N_One +"人"  
1660
+
1661
+      sums[11] = "总人数:"+ sums[11]  +"人"+ " " + "灌流:"+Thurs_M +"人" +" "+ "血滤:" + Thurs_M_One +"人"  
1662
+      sums[12] = "总人数:"+ sums[12]  +"人"+ " " + "灌流:"+Thurs_A +"人" +" "+ "血滤:" + Thurs_A_One +"人"  
1663
+      sums[13] = "总人数:"+ sums[13]  +"人"+ " " + "灌流:"+Thurs_N +"人" +" "+ "血滤:" + Thurs_N_One +"人"  
1664
+
1665
+      sums[14] = "总人数:"+ sums[14]  +"人"+ " " + "灌流:"+Fri_M +"人" +" "+ "血滤:" + Fri_M_One +"人"  
1666
+      sums[15] = "总人数:"+ sums[15]  +"人"+ " " + "灌流:"+Fri_A +"人" +" "+ "血滤:" + Fri_A_One +"人"  
1667
+      sums[16] = "总人数:"+ sums[16]  +"人"+ " " + "灌流:"+Fri_N +"人" +" "+ "血滤:" + Fri_N_One +"人"  
1668
+
1669
+      sums[17] = "总人数:"+ sums[17]  +"人"+ " " + "灌流:"+Sat_M +"人" +" "+ "血滤:" + Sat_M_One +"人"  
1670
+      sums[18] = "总人数:"+ sums[18]  +"人"+ " " + "灌流:"+Sat_A +"人" +" "+ "血滤:" + Sat_A_One +"人"  
1671
+      sums[19] = "总人数:"+ sums[19]  +"人"+ " " + "灌流:"+Sat_N +"人" +" "+ "血滤:" + Sat_N_One +"人"  
1672
+
1673
+      sums[20] = "总人数:"+ sums[20]  +"人"+ " " + "灌流:"+Sun_M +"人" +" "+ "血滤:" + Sun_M_One +"人"  
1674
+      sums[21] = "总人数:"+ sums[21]  +"人"+ " " + "灌流:"+Sun_A +"人" +" "+ "血滤:" + Sun_A_One +"人"  
1675
+      sums[22] = "总人数:"+ sums[22]  +"人"+ " " + "灌流:"+Sun_N +"人" +" "+ "血滤:" + Sun_N_One +"人"  
1359
       return sums;
1676
       return sums;
1677
+
1678
+      }
1679
+      
1680
+      if(this.$store.getters.xt_user.template_info.org_id != 9671 && this.$store.getters.xt_user.template_info.org_id != 0 && this.$store.getters.xt_user.template_info.org_id != 3877){
1681
+        return sums;
1682
+      }
1360
     },
1683
     },
1361
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1684
     objectSpanMethod({ row, column, rowIndex, columnIndex }) {
1362
 
1685
 
1426
           this.weekDays = response.data.data.days;
1749
           this.weekDays = response.data.data.days;
1427
           this.toDay = response.data.data.today;
1750
           this.toDay = response.data.data.today;
1428
           var theSchedules = response.data.data.schdules;
1751
           var theSchedules = response.data.data.schdules;
1752
+        
1753
+          var schedulesGroup = response.data.data.schedulesGroup
1754
+          this.schedulesGroup = schedulesGroup
1755
+
1756
+
1429
 
1757
 
1758
+     
1430
           var that = this;
1759
           var that = this;
1431
 
1760
 
1432
           this.scheduleZone.forEach(function(zone, index) {
1761
           this.scheduleZone.forEach(function(zone, index) {
1437
               patient_id: 0,
1766
               patient_id: 0,
1438
               patient: "",
1767
               patient: "",
1439
               dialysis_machine_name:"",
1768
               dialysis_machine_name:"",
1769
+              schedule_date:"",
1770
+              Count:0,
1440
             };
1771
             };
1441
             that.scheduleZone[index].Mon_A = {
1772
             that.scheduleZone[index].Mon_A = {
1442
               mode_id: 0,
1773
               mode_id: 0,
1444
               patient_id: 0,
1775
               patient_id: 0,
1445
               patient: "",
1776
               patient: "",
1446
               dialysis_machine_name:"",
1777
               dialysis_machine_name:"",
1778
+              schedule_date:"",
1779
+              Count:0,
1447
             };
1780
             };
1448
             that.scheduleZone[index].Mon_N = {
1781
             that.scheduleZone[index].Mon_N = {
1449
               mode_id: 0,
1782
               mode_id: 0,
1451
               patient_id: 0,
1784
               patient_id: 0,
1452
               patient: "",
1785
               patient: "",
1453
               dialysis_machine_name:"",
1786
               dialysis_machine_name:"",
1787
+              schedule_date:"",
1788
+              Count:0,
1454
             };
1789
             };
1455
             that.scheduleZone[index].Tue_M = {
1790
             that.scheduleZone[index].Tue_M = {
1456
               mode_id: 0,
1791
               mode_id: 0,
1458
               patient_id: 0,
1793
               patient_id: 0,
1459
               patient: "",
1794
               patient: "",
1460
               dialysis_machine_name:"",
1795
               dialysis_machine_name:"",
1796
+              schedule_date:"",
1797
+              Count:0,
1461
             };
1798
             };
1462
             that.scheduleZone[index].Tue_A = {
1799
             that.scheduleZone[index].Tue_A = {
1463
               mode_id: 0,
1800
               mode_id: 0,
1465
               patient_id: 0,
1802
               patient_id: 0,
1466
               patient: "",
1803
               patient: "",
1467
               dialysis_machine_name:"",
1804
               dialysis_machine_name:"",
1805
+              schedule_date:"",
1806
+              Count:0,
1468
             };
1807
             };
1469
             that.scheduleZone[index].Tue_N = {
1808
             that.scheduleZone[index].Tue_N = {
1470
               mode_id: 0,
1809
               mode_id: 0,
1472
               patient_id: 0,
1811
               patient_id: 0,
1473
               patient: "",
1812
               patient: "",
1474
               dialysis_machine_name:"",
1813
               dialysis_machine_name:"",
1814
+              schedule_date:"",
1815
+              Count:0,
1475
             };
1816
             };
1476
             that.scheduleZone[index].Wed_M = {
1817
             that.scheduleZone[index].Wed_M = {
1477
               mode_id: 0,
1818
               mode_id: 0,
1479
               patient_id: 0,
1820
               patient_id: 0,
1480
               patient: "",
1821
               patient: "",
1481
               dialysis_machine_name:"",
1822
               dialysis_machine_name:"",
1823
+              schedule_date:"",
1824
+              Count:0,
1482
             };
1825
             };
1483
             that.scheduleZone[index].Wed_A = {
1826
             that.scheduleZone[index].Wed_A = {
1484
               mode_id: 0,
1827
               mode_id: 0,
1486
               patient_id: 0,
1829
               patient_id: 0,
1487
               patient: "",
1830
               patient: "",
1488
               dialysis_machine_name:"",
1831
               dialysis_machine_name:"",
1832
+              schedule_date:"",
1833
+              Count:0,
1489
             };
1834
             };
1490
             that.scheduleZone[index].Wed_N = {
1835
             that.scheduleZone[index].Wed_N = {
1491
               mode_id: 0,
1836
               mode_id: 0,
1493
               patient_id: 0,
1838
               patient_id: 0,
1494
               patient: "",
1839
               patient: "",
1495
               dialysis_machine_name:"",
1840
               dialysis_machine_name:"",
1841
+              schedule_date:"",
1842
+              Count:0,
1843
+              
1496
             };
1844
             };
1497
             that.scheduleZone[index].Thurs_M = {
1845
             that.scheduleZone[index].Thurs_M = {
1498
               mode_id: 0,
1846
               mode_id: 0,
1500
               patient_id: 0,
1848
               patient_id: 0,
1501
               patient: "",
1849
               patient: "",
1502
               dialysis_machine_name:"",
1850
               dialysis_machine_name:"",
1851
+              schedule_date:"",
1852
+              Count:0,
1503
             };
1853
             };
1504
             that.scheduleZone[index].Thurs_A = {
1854
             that.scheduleZone[index].Thurs_A = {
1505
               mode_id: 0,
1855
               mode_id: 0,
1507
               patient_id: 0,
1857
               patient_id: 0,
1508
               patient: "",
1858
               patient: "",
1509
               dialysis_machine_name:"",
1859
               dialysis_machine_name:"",
1860
+              schedule_date:"",
1861
+              Count:0,
1510
             };
1862
             };
1511
             that.scheduleZone[index].Thurs_N = {
1863
             that.scheduleZone[index].Thurs_N = {
1512
               mode_id: 0,
1864
               mode_id: 0,
1514
               patient_id: 0,
1866
               patient_id: 0,
1515
               patient: "",
1867
               patient: "",
1516
               dialysis_machine_name:"",
1868
               dialysis_machine_name:"",
1869
+              schedule_date:"",
1870
+              Count:0,
1517
             };
1871
             };
1518
             that.scheduleZone[index].Fri_M = {
1872
             that.scheduleZone[index].Fri_M = {
1519
               mode_id: 0,
1873
               mode_id: 0,
1521
               patient_id: 0,
1875
               patient_id: 0,
1522
               patient: "",
1876
               patient: "",
1523
               dialysis_machine_name:"",
1877
               dialysis_machine_name:"",
1878
+              schedule_date:"",
1879
+              Count:0,
1524
             };
1880
             };
1525
             that.scheduleZone[index].Fri_A = {
1881
             that.scheduleZone[index].Fri_A = {
1526
               mode_id: 0,
1882
               mode_id: 0,
1528
               patient_id: 0,
1884
               patient_id: 0,
1529
               patient: "",
1885
               patient: "",
1530
               dialysis_machine_name:"",
1886
               dialysis_machine_name:"",
1887
+              schedule_date:"",
1888
+              Count:0,
1531
             };
1889
             };
1532
             that.scheduleZone[index].Fri_N = {
1890
             that.scheduleZone[index].Fri_N = {
1533
               mode_id: 0,
1891
               mode_id: 0,
1535
               patient_id: 0,
1893
               patient_id: 0,
1536
               patient: "",
1894
               patient: "",
1537
               dialysis_machine_name:"",
1895
               dialysis_machine_name:"",
1896
+              schedule_date:"",
1897
+              Count:0,
1538
             };
1898
             };
1539
             that.scheduleZone[index].Sat_M = {
1899
             that.scheduleZone[index].Sat_M = {
1540
               mode_id: 0,
1900
               mode_id: 0,
1542
               patient_id: 0,
1902
               patient_id: 0,
1543
               patient: "",
1903
               patient: "",
1544
               dialysis_machine_name:"",
1904
               dialysis_machine_name:"",
1905
+              schedule_date:"",
1906
+              Count:0,
1545
             };
1907
             };
1546
             that.scheduleZone[index].Sat_A = {
1908
             that.scheduleZone[index].Sat_A = {
1547
               mode_id: 0,
1909
               mode_id: 0,
1549
               patient_id: 0,
1911
               patient_id: 0,
1550
               patient: "",
1912
               patient: "",
1551
               dialysis_machine_name:"",
1913
               dialysis_machine_name:"",
1914
+              schedule_date:"",
1915
+              Count:0,
1552
             };
1916
             };
1553
             that.scheduleZone[index].Sat_N = {
1917
             that.scheduleZone[index].Sat_N = {
1554
               mode_id: 0,
1918
               mode_id: 0,
1556
               patient_id: 0,
1920
               patient_id: 0,
1557
               patient: "",
1921
               patient: "",
1558
               dialysis_machine_name:"",
1922
               dialysis_machine_name:"",
1923
+              schedule_date:"",
1924
+              Count:0,
1559
             };
1925
             };
1560
             that.scheduleZone[index].Sun_A = {
1926
             that.scheduleZone[index].Sun_A = {
1561
               mode_id: 0,
1927
               mode_id: 0,
1563
               patient_id: 0,
1929
               patient_id: 0,
1564
               patient: "",
1930
               patient: "",
1565
               dialysis_machine_name:"",
1931
               dialysis_machine_name:"",
1932
+              schedule_date:"",
1933
+              Count:0,
1566
             };
1934
             };
1567
             that.scheduleZone[index].Sun_N = {
1935
             that.scheduleZone[index].Sun_N = {
1568
               mode_id: 0,
1936
               mode_id: 0,
1570
               patient_id: 0,
1938
               patient_id: 0,
1571
               patient: "",
1939
               patient: "",
1572
               dialysis_machine_name:"",
1940
               dialysis_machine_name:"",
1941
+              schedule_date:"",
1942
+              Count:0,
1573
             };
1943
             };
1574
             that.scheduleZone[index].Sun_M = {
1944
             that.scheduleZone[index].Sun_M = {
1575
               mode_id: 0,
1945
               mode_id: 0,
1577
               patient_id: 0,
1947
               patient_id: 0,
1578
               patient: "",
1948
               patient: "",
1579
               dialysis_machine_name:"",
1949
               dialysis_machine_name:"",
1950
+              schedule_date:"",
1951
+              Count:0,
1580
             };
1952
             };
1581
 
1953
 
1582
 
1954
 
1583
 
1955
 
1584
 
1956
 
1957
+
1585
             that.scheduleZone[index].total = 0;
1958
             that.scheduleZone[index].total = 0;
1586
 
1959
 
1587
             if (response.data.data.schdules.length > 0) {
1960
             if (response.data.data.schdules.length > 0) {
1605
                       patient: schedule.patient,
1978
                       patient: schedule.patient,
1606
                       dialysis_machine_name:schedule.dialysis_machine_name,
1979
                       dialysis_machine_name:schedule.dialysis_machine_name,
1607
                       patient_contagions: schedule.patient_contagions,
1980
                       patient_contagions: schedule.patient_contagions,
1608
-                      mode_name:
1609
-                        typeof that.modeOptions[schedule.mode_id] ===
1610
-                        "undefined"
1611
-                          ? ""
1612
-                          : that.modeOptions[schedule.mode_id].name
1981
+                      schedule_date:schedule.schedule_date,
1982
+                      mode_name: typeof that.modeOptions[schedule.mode_id] ==="undefined"? "": that.modeOptions[schedule.mode_id].name
1613
                     };
1983
                     };
1614
                     that.scheduleZone[index].total += 1;
1984
                     that.scheduleZone[index].total += 1;
1615
 
1985
 
1621
           });
1991
           });
1622
 
1992
 
1623
           this.source_scheduleZone = this.scheduleZone
1993
           this.source_scheduleZone = this.scheduleZone
1624
-
1994
+          console.log("------------aaaa",this.source_scheduleZone)
1625
         } else {
1995
         } else {
1626
           this.$message.error("网络错误");
1996
           this.$message.error("网络错误");
1627
           return false;
1997
           return false;
2457
         start_sch:first_monday,
2827
         start_sch:first_monday,
2458
         end_sch:end_monday,
2828
         end_sch:end_monday,
2459
       };
2829
       };
2460
-      console.log("params",params)
2830
+      // console.log("params",params)
2461
       getSearchResult(params).then(response => {
2831
       getSearchResult(params).then(response => {
2462
         if (response.data.state == 1) {
2832
         if (response.data.state == 1) {
2463
           this.schedulePatients = response.data.data.schdules;
2833
           this.schedulePatients = response.data.data.schdules;
2676
     }
3046
     }
2677
     var nowDate = year + "-" + month + "-" + day
3047
     var nowDate = year + "-" + month + "-" + day
2678
     var date = new Date(nowDate + " 00:00:00")
3048
     var date = new Date(nowDate + " 00:00:00")
2679
-    console.log("date23232323232323",date.getTime()/1000)
3049
+   
2680
     this.now_time = date.getTime()/1000
3050
     this.now_time = date.getTime()/1000
2681
     this.getAllZones()
3051
     this.getAllZones()
2682
 
3052
 

+ 1 - 1
src/xt_pages/workforce/components/tableDataModeTwo.vue 查看文件

1039
             })
1039
             })
1040
           })
1040
           })
1041
         }
1041
         }
1042
-        console.log("34455555566666",this.scheduleZone)
1042
+        // console.log("34455555566666",this.scheduleZone)
1043
         this.scheduleZone.sort(this.compare('sort'))
1043
         this.scheduleZone.sort(this.compare('sort'))
1044
       })
1044
       })
1045
     },
1045
     },

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

888
       ,
888
       ,
889
       signPrint() {
889
       signPrint() {
890
 
890
 
891
-        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340){
891
+        if(this.org_id == 9671 || this.org_id == 9675 || this.org_id == 10340 || this.org_id == 0){
892
          var zone = this.zone
892
          var zone = this.zone
893
           console.log("zone23232",zone)
893
           console.log("zone23232",zone)
894
           var newArr = []
894
           var newArr = []

+ 66 - 56
src/xt_pages/workforce/next_remind_print.vue 查看文件

155
       this.modeOptions = this.$store.getters.treatment_mode
155
       this.modeOptions = this.$store.getters.treatment_mode
156
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
156
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
157
       this.week_type = this.$route.query.week_type
157
       this.week_type = this.$route.query.week_type
158
-      var now_time = parseInt(this.week_type) * 86400 + this.start_time
159
-      // console.log("now_time23233232322323",now_time)
160
-      this.now_time = now_time
158
+      // var now_time = parseInt(this.week_type) * 86400 + this.start_time
159
+      // // console.log("now_time23233232322323",now_time)
160
+      // this.now_time = now_time
161
       this.week_time  = this.$route.query.week_time
161
       this.week_time  = this.$route.query.week_time
162
       this.zone = this.$route.query.zone
162
       this.zone = this.$route.query.zone
163
       this.pre_status = this.$route.query.prestatus
163
       this.pre_status = this.$route.query.prestatus
164
       this.loading = true;
164
       this.loading = true;
165
-      let weekOfDay = parseInt(moment().format('E'))
166
-      let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
167
-      let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
168
-      const params = {
169
-          week_type:this.week_type,
170
-          week_time:this.week_time,
171
-          start_time:next_monday,
172
-          end_time:next_sunday,
173
-          zone:this.zone,
174
-          record_date:this.getTime(now_time)
175
-        }
176
-    //  console.log("下周打印时间",params)
177
-      getNextScheduleWeekDay(params).then(rs => {
178
-        var resp = rs.data
179
-        console.log(resp)
180
-        if (resp.state == 1) {
181
-         var scheduleData = resp.data.schedule
182
-
183
-          if(this.pre_status == 0){
184
-              for(let i=0;i<scheduleData.length;i++){
185
-              scheduleData[i].sort = scheduleData[i].number.sort
186
-            }
187
-            var arr =   scheduleData.sort(this.compare('sort'))
188
-           
189
-            this.scheduleData = arr
165
+
166
+      this.getNextScheduleWeekDay()
167
+
168
+    
169
+    },
170
+    methods: {
171
+      getTimestamp(time) { //把时间日期转成时间戳
172
+        return (new Date(time)).getTime()
173
+      },
174
+      getNextScheduleWeekDay(){
175
+        let weekOfDay = parseInt(moment().format('E'))
176
+        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
177
+        let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
178
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
179
+        const params = {
180
+            week_type:this.week_type,
181
+            week_time:this.week_time,
182
+            start_time:next_monday,
183
+            end_time:next_sunday,
184
+            zone:this.zone,
185
+            record_date:this.getTime(now_time)
190
           }
186
           }
191
-          if(this.pre_status == 1){
192
-            var newList = []
193
-            for(let i=0;i<scheduleData.length;i++){
194
-              if(scheduleData.prescription.id > 0){
195
-                 newList.push(scheduleData[i])
187
+      console.log("下周打印时间",params)
188
+        getNextScheduleWeekDay(params).then(rs => {
189
+          var resp = rs.data
190
+          console.log(resp)
191
+          if (resp.state == 1) {
192
+          var scheduleData = resp.data.schedule
193
+
194
+            if(this.pre_status == 0){
195
+                for(let i=0;i<scheduleData.length;i++){
196
+                scheduleData[i].sort = scheduleData[i].number.sort
196
               }
197
               }
198
+              var arr =   scheduleData.sort(this.compare('sort'))
199
+            
200
+              this.scheduleData = arr
197
             }
201
             }
198
-            var arr =   newList.sort(this.compare('sort'))
199
-           
200
-            this.scheduleData = arr
201
-          }
202
-
203
-          if(this.pre_status == 2){
204
-            var newList = []
205
-            for(let i=0;i<scheduleData.length;i++){
206
-              if(scheduleData.prescription.id == 0){
207
-                 newList.push(scheduleData[i])
202
+            if(this.pre_status == 1){
203
+              var newList = []
204
+              for(let i=0;i<scheduleData.length;i++){
205
+                if(scheduleData.prescription.id > 0){
206
+                  newList.push(scheduleData[i])
207
+                }
208
               }
208
               }
209
+              var arr =   newList.sort(this.compare('sort'))
210
+            
211
+              this.scheduleData = arr
209
             }
212
             }
210
-            var arr =   newList.sort(this.compare('sort'))
211
-           
212
-            this.scheduleData = arr
213
+
214
+            if(this.pre_status == 2){
215
+              var newList = []
216
+              for(let i=0;i<scheduleData.length;i++){
217
+                if(scheduleData.prescription.id == 0){
218
+                  newList.push(scheduleData[i])
219
+                }
220
+              }
221
+              var arr =   newList.sort(this.compare('sort'))
213
             
222
             
223
+              this.scheduleData = arr
224
+              
225
+            }
226
+            this.loading = false
227
+          } else {
228
+            this.$message.error(resp.msg)
214
           }
229
           }
215
-          this.loading = false
216
-        } else {
217
-          this.$message.error(resp.msg)
218
-        }
219
-      }).catch(err => {
220
-        this.$message.error(err)
221
-      })
230
+        }).catch(err => {
231
+          this.$message.error(err)
232
+        })
222
 
233
 
223
-    
224
-    },
225
-    methods: {
234
+      },
235
+   
226
       getAdvice:function(doctor_advice) {
236
       getAdvice:function(doctor_advice) {
227
         if (doctor_advice != null) {
237
         if (doctor_advice != null) {
228
 
238
 

+ 230 - 1
src/xt_pages/workforce/printOne.vue 查看文件

46
                   <td :width="td_1_width">分区</td>
46
                   <td :width="td_1_width">分区</td>
47
 
47
 
48
                   <td :width="td_3_width">病人姓名</td>
48
                   <td :width="td_3_width">病人姓名</td>
49
+
50
+                  <td :width="td_3_width">统计</td>
49
                 </tr>
51
                 </tr>
50
               </thead>
52
               </thead>
51
               <tbody>
53
               <tbody>
52
                 <tr v-for="(it, i) in item.zones" :key="i">
54
                 <tr v-for="(it, i) in item.zones" :key="i">
53
                   <td :width="td_1_width">
55
                   <td :width="td_1_width">
56
+                    总人数: {{getZonePatient(it.partition_id)}}<span v-if="getZonePatient(it.partition_id)>0">人</span><br>
54
                     {{ getZoneName(it.partition_id) }}
57
                     {{ getZoneName(it.partition_id) }}
55
                   </td>
58
                   </td>
56
                   <td :width="td_3_width" valign="top">
59
                   <td :width="td_3_width" valign="top">
64
                       </div>
67
                       </div>
65
                     </div>
68
                     </div>
66
                   </td>
69
                   </td>
70
+                  <td :width="td_3_width">
71
+                     
72
+                    <span v-if="getMonPatient(it.partition_id)>0 || getMonAfterPatient(it.partition_id)>0 || getNightPatient(it.partition_id) >0"></span> 血滤(HDF):<br>
73
+                     <span v-if="getMonPatient(it.partition_id)>0">上午:{{getMonPatient(it.partition_id)}}人</span><br>
74
+                      {{getMonPatientName(it.partition_id)}} <br>
75
+                     <span v-if="getMonAfterPatient(it.partition_id)>0">下午:{{getMonAfterPatient(it.partition_id)}}人</span>  <br>
76
+                       {{getMonAfterPatientName(it.partition_id) }} <br>
77
+                     <span v-if="getNightPatient(it.partition_id) >0">晚上:{{getNightPatient(it.partition_id)}}人 </span> <br>
78
+                        {{getNightPatientName(it.partition_id) }}
79
+
80
+
81
+                     <br>
82
+                     <span v-if="getMonPatientOne(it.partition_id)>0 || getMonAfterPatientOne(it.partition_id)>0 || getNightPatientOne(it.partition_id) >0">灌流(HD+HP):</span><br>
83
+                     <span v-if="getMonPatientOne(it.partition_id)>0">上午:{{getMonPatientOne(it.partition_id)}}人</span><br>
84
+                      {{getMonPatientNameOne(it.partition_id)}} <br>
85
+                     <span v-if="getMonAfterPatientOne(it.partition_id)>0">下午:{{getMonAfterPatientOne(it.partition_id)}}人</span>  <br>
86
+                       {{getMonAfterPatientNameOne(it.partition_id) }} <br>
87
+                     <span v-if="getNightPatientOne(it.partition_id) >0">晚上:{{getNightPatientOne(it.partition_id)}}人 </span> <br>
88
+                      {{getNightPatientNameOne(it.partition_id) }}
89
+                  </td>
67
                 </tr>
90
                 </tr>
68
               </tbody>
91
               </tbody>
69
             </table>
92
             </table>
491
                 }
514
                 }
492
               }
515
               }
493
             }
516
             }
494
-            console.log('arr23322332', arr)
517
+            console.log('排班数据------------------', arr)
495
 
518
 
496
             this.tableData = arr
519
             this.tableData = arr
497
           }
520
           }
684
         }
707
         }
685
       }
708
       }
686
       return name
709
       return name
710
+    },
711
+    getZonePatient(partition_id){
712
+       
713
+      var arr = []
714
+      if(this.list!=null && this.list.length >0){
715
+        for(let i=0;i<this.list.length;i++){
716
+           if(partition_id == this.list[i].partition_id){
717
+               arr.push(this.list[i])
718
+           }
719
+        }
720
+      }
721
+
722
+      if(arr.length >0){
723
+         return arr.length
724
+      }else{
725
+        return ""
726
+      }
727
+
728
+    },
729
+    getMonPatient(partition_id){
730
+      var arr = []
731
+      if(this.list!=null && this.list.length >0){
732
+        for(let i=0;i<this.list.length;i++){
733
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
734
+               arr.push(this.list[i])
735
+           }
736
+        }
737
+      }
738
+      if(arr.length >0){
739
+         return arr.length
740
+      }else{
741
+        return ""
742
+      }
743
+    },
744
+    getMonPatientOne(partition_id){
745
+      var arr = []
746
+      if(this.list!=null && this.list.length >0){
747
+        for(let i=0;i<this.list.length;i++){
748
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
749
+               arr.push(this.list[i])
750
+           }
751
+        }
752
+      }
753
+      if(arr.length >0){
754
+         return arr.length
755
+      }else{
756
+        return ""
757
+      }
758
+    },
759
+    getMonPatientName(partition_id){
760
+      var arr = []
761
+      if(this.list!=null && this.list.length >0){
762
+        for(let i=0;i<this.list.length;i++){
763
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==1){
764
+               arr.push(this.list[i].name)
765
+           }
766
+        }
767
+      }
768
+      if(arr.length >0){
769
+        var str = arr.join(",")
770
+        return str
771
+      }else{
772
+        return ""
773
+      }
774
+    },
775
+    getMonPatientNameOne(partition_id){
776
+      var arr = []
777
+      if(this.list!=null && this.list.length >0){
778
+        for(let i=0;i<this.list.length;i++){
779
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==1){
780
+               arr.push(this.list[i].name)
781
+           }
782
+        }
783
+      }
784
+      if(arr.length >0){
785
+        var str = arr.join(",")
786
+        return str
787
+      }else{
788
+        return ""
789
+      }
790
+    },
791
+    getMonAfterPatient(partition_id){
792
+      var arr = []
793
+      if(this.list!=null && this.list.length >0){
794
+        for(let i=0;i<this.list.length;i++){
795
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
796
+               arr.push(this.list[i])
797
+           }
798
+        }
799
+      }
800
+      if(arr.length >0){
801
+         return arr.length
802
+      }else{
803
+        return ""
804
+      }
805
+    },
806
+    getMonAfterPatientOne(partition_id){
807
+      var arr = []
808
+      if(this.list!=null && this.list.length >0){
809
+        for(let i=0;i<this.list.length;i++){
810
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
811
+               arr.push(this.list[i])
812
+           }
813
+        }
814
+      }
815
+      if(arr.length >0){
816
+         return arr.length
817
+      }else{
818
+        return ""
819
+      }
820
+    },
821
+    getMonAfterPatientName(partition_id){
822
+      var arr = []
823
+      if(this.list!=null && this.list.length >0){
824
+        for(let i=0;i<this.list.length;i++){
825
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==2){
826
+               arr.push(this.list[i].name)
827
+           }
828
+        }
829
+      }
830
+      if(arr.length >0){
831
+        var str = arr.join(",")
832
+        return str
833
+      }else{
834
+        return ""
835
+      }
836
+    },
837
+
838
+    getMonAfterPatientNameOne(partition_id){
839
+      var arr = []
840
+      if(this.list!=null && this.list.length >0){
841
+        for(let i=0;i<this.list.length;i++){
842
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==2){
843
+               arr.push(this.list[i].name)
844
+           }
845
+        }
846
+      }
847
+      if(arr.length >0){
848
+        var str = arr.join(",")
849
+        return str
850
+      }else{
851
+        return ""
852
+      }
853
+    },
854
+
855
+    getNightPatient(partition_id){
856
+      var arr = []
857
+      if(this.list!=null && this.list.length >0){
858
+        for(let i=0;i<this.list.length;i++){
859
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
860
+               arr.push(this.list[i])
861
+           }
862
+        }
863
+      }
864
+      if(arr.length >0){
865
+         return arr.length
866
+      }else{
867
+        return ""
868
+      }
869
+    },
870
+    getNightPatientOne(partition_id){
871
+      var arr = []
872
+      if(this.list!=null && this.list.length >0){
873
+        for(let i=0;i<this.list.length;i++){
874
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
875
+               arr.push(this.list[i])
876
+           }
877
+        }
878
+      }
879
+      if(arr.length >0){
880
+         return arr.length
881
+      }else{
882
+        return ""
883
+      }
884
+    },
885
+    getNightPatientName(partition_id){
886
+      var arr = []
887
+      if(this.list!=null && this.list.length >0){
888
+        for(let i=0;i<this.list.length;i++){
889
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 2 && this.list[i].schedule_type ==3){
890
+               arr.push(this.list[i].name)
891
+           }
892
+        }
893
+      }
894
+      if(arr.length >0){
895
+        var str = arr.join(",")
896
+        return str
897
+      }else{
898
+        return ""
899
+      }
900
+    },
901
+    getNightPatientNameOne(partition_id){
902
+      var arr = []
903
+      if(this.list!=null && this.list.length >0){
904
+        for(let i=0;i<this.list.length;i++){
905
+           if(partition_id == this.list[i].partition_id && this.list[i].mode_id == 3 && this.list[i].schedule_type ==3){
906
+               arr.push(this.list[i].name)
907
+           }
908
+        }
909
+      }
910
+      if(arr.length >0){
911
+        var str = arr.join(",")
912
+        return str
913
+      }else{
914
+        return ""
915
+      }
687
     }
916
     }
688
   }
917
   }
689
 }
918
 }

+ 7 - 1
src/xt_pages/workforce/remind_print_setting.vue 查看文件

501
          }
501
          }
502
       })
502
       })
503
      },
503
      },
504
+     getTimestamp(time) { //把时间日期转成时间戳
505
+        return (new Date(time)).getTime()
506
+    },
504
     getNextScheduleWeekDay() {
507
     getNextScheduleWeekDay() {
505
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
508
         const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
506
         const end = moment().weekday(7).format('YYYY-MM-DD')
509
         const end = moment().weekday(7).format('YYYY-MM-DD')
517
         // if(zone != 0){
520
         // if(zone != 0){
518
         //   str = zone.join(",")
521
         //   str = zone.join(",")
519
         // }
522
         // }
520
-        var now_time = parseInt(this.week_type) * 86400 + this.start_time
523
+        // var now_time = parseInt(this.week_type) * 86400 + this.start_time
524
+        let weekOfDay = parseInt(moment().format('E'))
525
+        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
526
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
521
         const params = {
527
         const params = {
522
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
528
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
523
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),
529
           end_time:moment().week(moment().week() + 1).endOf('week').unix(),

+ 25 - 5
src/xt_pages/workforce/remind_print_setting_one.vue 查看文件

154
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
154
                     <span>上次脱水量:{{ main_collection.prescription.target_ultrafiltration }}ml</span>
155
                 </div>
155
                 </div>
156
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
156
                 <div class="printCell" v-if="org_id==9671 || org_id==9675 || org_id==10340">
157
-                    <span>上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
157
+                    <span v-if="main_collection.lastafterweight!=undefined">上次透析时长:{{ main_collection.lastafterweight.actual_treatment_hour }}小时{{ main_collection.lastafterweight.actual_treatment_minute }}分钟</span>
158
                 </div>
158
                 </div>
159
                 <div class="printCell">身份证:
159
                 <div class="printCell">身份证:
160
                     <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
160
                     <span v-if="type ==1">{{main_collection.patient.id_card_no}} </span>
183
                 
183
                 
184
                 <div class="printCell">
184
                 <div class="printCell">
185
                   <span>
185
                   <span>
186
-                    分区/床号
186
+                    分区/床号
187
                     <span  style="width:auto;">{{main_collection.zone.name}}/</span>
187
                     <span  style="width:auto;">{{main_collection.zone.name}}/</span>
188
                     {{ main_collection.number.number }}
188
                     {{ main_collection.number.number }}
189
                     <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
189
                     <!-- <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
192
                   </span>
192
                   </span>
193
                  
193
                  
194
                 </div>
194
                 </div>
195
+
196
+                <div class="printCell">
197
+                  <span>
198
+                    排班备注:
199
+                    <span  style="width:auto;">
200
+                      {{ main_collection.dialysis_order.schedule_remark }}
201
+                    </span>
202
+                  </span>
203
+                 
204
+                </div>
195
               
205
               
196
               </div>
206
               </div>
197
            </div>
207
            </div>
498
         // if(zone != 0){
508
         // if(zone != 0){
499
         //   str = zone.join(",")
509
         //   str = zone.join(",")
500
         // }
510
         // }
501
-        var now_time = parseInt(this.week_type) * 86400 + this.start_time
511
+        const loading = this.$loading({
512
+          lock: true,
513
+          text: "加载中...",
514
+          spinner: "el-icon-loading",
515
+          background: "rgba(0, 0, 0, 0.7)"
516
+        });
517
+        // var now_time = parseInt(this.week_type) * 86400 + this.start_time
502
 
518
 
503
         const weekOfDay = parseInt(moment().format('E'))
519
         const weekOfDay = parseInt(moment().format('E'))
504
         const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
520
         const next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD')
505
         console.log('卡 is h2323233232', this.toStamp(next_monday))
521
         console.log('卡 is h2323233232', this.toStamp(next_monday))
506
         const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
522
         const next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
507
         console.log('下周日', this.toStamp(next_sunday))
523
         console.log('下周日', this.toStamp(next_sunday))
508
-
524
+        var now_time = parseInt(this.week_type - 1)*86400 + (this.getTimestamp(next_monday)/1000 -28800)
509
         const params = {
525
         const params = {
510
           start_time: this.toStamp(next_monday),
526
           start_time: this.toStamp(next_monday),
511
           end_time: this.toStamp(next_sunday),
527
           end_time: this.toStamp(next_sunday),
524
         getNextScheduleWeekDayOne(params).then(response => {
540
         getNextScheduleWeekDayOne(params).then(response => {
525
           this.scheduleData = []
541
           this.scheduleData = []
526
           if (response.data.state == 1) {
542
           if (response.data.state == 1) {
543
+            loading.close()
527
             var scheduleData = response.data.data.schedule
544
             var scheduleData = response.data.data.schedule
528
 
545
 
529
             for (let i = 0; i < scheduleData.length; i++) {
546
             for (let i = 0; i < scheduleData.length; i++) {
716
         const myDate = new Date(date).getTime() / 1000 - 28800
733
         const myDate = new Date(date).getTime() / 1000 - 28800
717
         // const stmapEg = Date.parse(myDate) / 1000
734
         // const stmapEg = Date.parse(myDate) / 1000
718
         return myDate
735
         return myDate
719
-      }
736
+      },
737
+      getTimestamp(time) { //把时间日期转成时间戳
738
+      return (new Date(time)).getTime()
739
+    },
720
 
740
 
721
     }
741
     }
722
   }
742
   }

+ 13 - 13
src/xt_permission.js 查看文件

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))