Bladeren bron

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 jaren geleden
bovenliggende
commit
32bb238fc7

+ 70 - 80
src/api/schedule.js Bestand weergeven

@@ -1,18 +1,15 @@
1 1
 import request from '@/utils/request'
2 2
 
3
-export function getWeekPanels(t,patitionId) {
4
-  
3
+export function getWeekPanels(t, patitionId) {
5 4
   return request({
6
-    url: '/api/schedule/weekpanel?data=' + t+"&patitionid="+patitionId,
5
+    url: '/api/schedule/weekpanel?data=' + t + '&patitionid=' + patitionId,
7 6
     method: 'get'
8 7
   })
9 8
 }
10 9
 
11
-
12
-export function getWeekPanelsOne(t,patitionId){
13
-  
10
+export function getWeekPanelsOne(t, patitionId) {
14 11
   return request({
15
-    url: '/api/schedule/weekpanelone?data=' + t+"&patitionid="+patitionId,
12
+    url: '/api/schedule/weekpanelone?data=' + t + '&patitionid=' + patitionId,
16 13
     method: 'get'
17 14
   })
18 15
 }
@@ -21,15 +18,15 @@ export function getSchedules(params) {
21 18
   return request({
22 19
     url: '/api/schedule/schedules',
23 20
     method: 'get',
24
-    params:params,
21
+    params: params
25 22
   })
26 23
 }
27 24
 
28
-export function getSchedulesOne(params){
25
+export function getSchedulesOne(params) {
29 26
   return request({
30 27
     url: '/api/schedule/schedulesone',
31 28
     method: 'get',
32
-    params:params,
29
+    params: params
33 30
   })
34 31
 }
35 32
 
@@ -72,12 +69,12 @@ export function GetPatientSchedules(id) {
72 69
   })
73 70
 }
74 71
 
75
-export function GetWeekSchedulePrintInitData(date,type) {
72
+export function GetWeekSchedulePrintInitData(date, type) {
76 73
   return request({
77 74
     url: '/api/schedule/print/initdata',
78 75
     method: 'get',
79 76
     params: {
80
-      date: date,
77
+      date: date
81 78
     }
82 79
   })
83 80
 }
@@ -106,24 +103,21 @@ export function getScheduleWeekDay(params) {
106 103
   })
107 104
 }
108 105
 
109
-
110
-export function exportSchedule(params,date) {
106
+export function exportSchedule(params, date) {
111 107
   return request({
112
-    url: '/api/schedule/export?date='+date,
108
+    url: '/api/schedule/export?date=' + date,
113 109
     method: 'Post',
114 110
     data: params
115 111
   })
116 112
 }
117 113
 
118
-
119 114
 export function initDate() {
120 115
   return request({
121 116
     url: '/api/excel_date/init',
122
-    method: 'Get',
117
+    method: 'Get'
123 118
   })
124 119
 }
125 120
 
126
-
127 121
 export function exportScheduleTemplate(params) {
128 122
   return request({
129 123
     url: '/api/schedule_template/export',
@@ -132,110 +126,106 @@ export function exportScheduleTemplate(params) {
132 126
   })
133 127
 }
134 128
 
135
-
136
-export function getNextScheduleWeekDay(params){
137
-  
129
+export function getNextScheduleWeekDay(params) {
138 130
   return request({
139
-    url:"/api/schedule/getnextscheduleweekday",
140
-    method:"get",
141
-    params:params
131
+    url: '/api/schedule/getnextscheduleweekday',
132
+    method: 'get',
133
+    params: params
142 134
   })
143 135
 }
144 136
 
137
+export function getThreeWeekList(params) {
138
+  return request({
139
+    url: '/api/schedule/getthreeweeklist',
140
+    method: 'get',
141
+    params: params
142
+  })
143
+}
145 144
 
146
-export function getThreeWeekList(params){
147
-  
145
+export function getAllZones(params) {
148 146
   return request({
149
-    url:"/api/schedule/getthreeweeklist",
150
-    method:"get",
151
-    params:params
147
+    url: '/api/schedule/getallzones',
148
+    method: 'get',
149
+    params: params
152 150
   })
153 151
 }
154 152
 
155
-export function getAllZones(params){
156
-  
153
+export function copyPatientSchedule(params) {
157 154
   return request({
158
-    url:"/api/schedule/getallzones",
159
-    method:"get",
160
-    params:params
155
+    url: '/api/schedule/copypatientschedules',
156
+    method: 'Get',
157
+    params: params
161 158
   })
162 159
 }
163 160
 
164
-export function copyPatientSchedule(params){
161
+export function saveRemindPrint(params) {
165 162
   return request({
166
-    url:"/api/schedule/copypatientschedules",
167
-    method:"Get",
168
-    params:params
163
+    url: '/api/schedule/saveremindprint',
164
+    method: 'get',
165
+    params: params
169 166
   })
170 167
 }
171 168
 
172
-export function saveRemindPrint(params){
173
-   return request({
174
-     url:"/api/schedule/saveremindprint",
175
-     method:"get",
176
-     params:params
177
-   })
169
+export function getRemindPrintList(params) {
170
+  return request({
171
+    url: '/api/schedule/getremindprintlist',
172
+    method: 'get',
173
+    params: params
174
+  })
178 175
 }
179 176
 
180
-export function getRemindPrintList(params){
181
-   
177
+export function getScheduleList(params) {
182 178
   return request({
183
-    url:"/api/schedule/getremindprintlist",
184
-    method:"get",
185
-    params:params
179
+    url: '/api/schedule/getbloodschedulelist',
180
+    method: 'get',
181
+    params: params
186 182
   })
187 183
 }
188 184
 
189
-export function getScheduleList(params){
190
-  
185
+export function getPrintList(params) {
191 186
   return request({
192
-    url:"/api/schedule/getbloodschedulelist",
193
-    method:"get",
194
-    params:params,
187
+    url: '/api/schedule/getprintlist',
188
+    method: 'Get',
189
+    params: params
195 190
   })
196 191
 }
197 192
 
198
-export function getPrintList(params){
199
-   
193
+export function getAllZoneList(params) {
200 194
   return request({
201
-    url:"/api/schedule/getprintlist",
202
-    method:"Get",
203
-    params:params,
195
+    url: '/api/schedule/getallzonelist',
196
+    method: 'get',
197
+    params: params
204 198
   })
205 199
 }
206 200
 
207
-export function getAllZoneList(params){
208
-  
201
+export function getPatientSheduleCount(params) {
209 202
   return request({
210
-    url:"/api/schedule/getallzonelist",
211
-    method:"get",
212
-    params:params
203
+    url: '/api/schedule/getpatientschedulecount',
204
+    method: 'get',
205
+    params: params
213 206
   })
214 207
 }
215 208
 
216
-export function getPatientSheduleCount(params){
217
-   
209
+export function postScheduleTemplate(params) {
218 210
   return request({
219
-    url:"/api/schedule/getpatientschedulecount",
220
-    method:"get",
221
-    params:params
211
+    url: '/api/schedule/postscheduletemplate',
212
+    method: 'get',
213
+    params: params
222 214
   })
223 215
 }
224 216
 
225
-export function postScheduleTemplate(params){
226
-   
217
+export function getScheduleTemplate(params) {
227 218
   return request({
228
-    url:"/api/schedule/postscheduletemplate",
229
-    method:"get",
230
-    params:params
219
+    url: '/api/schedule/getscheduletemplate',
220
+    method: 'get',
221
+    params: params
231 222
   })
232 223
 }
233 224
 
234
-export function getScheduleTemplate(params){
235
-  
225
+export function getNextWeekPanels(params) {
236 226
   return request({
237
-    url:"/api/schedule/getscheduletemplate",
238
-    method:"get",
239
-    params:params,
227
+    url: '/api/schedule/getnextweekpanels',
228
+    method: 'get',
229
+    params: params
240 230
   })
241
-}
231
+}

+ 69 - 57
src/xt_pages/dialysis/batch_print/batch_print_order_fortyOne.vue Bestand weergeven

@@ -18,7 +18,7 @@
18 18
           :key="record.id"
19 19
           class="print_page_main_content"
20 20
         >
21
-          <div id="dialysis-print-box">
21
+          <div id="dialysis-print-box"  style="page-break-after:always">
22 22
               <div class="dialysis-print-order print-template-two print_page_main_content">
23 23
                 <div style="display:inline-block;width:100%;text-align:center;">
24 24
                     <div
@@ -588,45 +588,58 @@
588 588
 
589 589
                                 <tr v-for="(advice, advice_index) in record.advices" :key="advice_index">
590 590
                                 <td height="30px" style="padding:4px 5px;">
591
-                                    <span v-if="advice.start_time">
592
-                                    {{ getTime(advice.start_time, "{h}:{i}") }}
591
+                                    <span v-if="advice[0].start_time">
592
+                                        {{ getTime(advice[0].start_time, "{h}:{i}") }}
593 593
                                     </span>
594 594
                                 </td>
595 595
                                 <td height="30px" colspan="2" class="advice-name" style="padding:4px 5px;">
596
-                                    <span v-if="advice.parent_id > 0">---></span>
597
-                                    <span>{{ advice.advice_name }}</span>
598
-                                    <span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
599
-                                    <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
600
-                                    <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
601
-                                    <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
602
-                                    <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
603
-                                    <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
596
+                                    <span v-for="(item,index) in advice" :key="index">
597
+                                      <!-- <span v-if="item.children.length > 0"> -->
598
+                                          <span v-if="item.parent_id > 0">---></span>
599
+                                          <span v-if="item.advice_name">&nbsp;&nbsp;&nbsp;&nbsp;{{ item.advice_name }}</span>
600
+                                          <span v-if="item && item.advice_desc">({{ item.advice_desc }}{{ item.drug_spec_unit }})</span>
601
+                                          <span v-if="item.prescribing_number">&nbsp;&nbsp; {{ item.prescribing_number }}{{ item.prescribing_number_unit }}</span>
602
+                                          <span v-if="item.single_dose != 0">{{ item.single_dose }}{{ item.single_dose_unit }}</span>
603
+                                          <span v-if="item.parent_id == 0">{{ item.delivery_way }}</span>
604
+                                          <span v-if="item.parent_id == 0">{{ item.execution_frequency }}</span>
605
+                                          <span v-if="item.parent_id == 0 && item.remark.length > 0">({{ item.remark }})</span>
606
+                                          <span v-if="item.children && !Array.isArray(item)" style="display:block;border-top: 1px solid #000;" v-for="(child, childindex) in item.children" :key="childindex" class="advice-children">
607
+                                              <span style="padding-left: 20px !important;">---></span>
608
+                                              <span>
609
+                                              <span>{{ child.advice_name }}</span>
610
+                                              <span v-if="child.advice_desc">{{ child.advice_desc }}{{ child.drug_spec_unit }}</span>
611
+                                              <span v-if="child.prescribing_number">* {{ child.prescribing_number }}{{ child.prescribing_number_unit }}</span>
612
+                                              <span v-if="child.single_dose != 0">单次用量 {{ child.single_dose }}{{ child.single_dose_unit }}</span>
613
+                                              </span>
614
+                                          </span>
615
+                                      <!-- </span> -->
616
+                                  </span>
604 617
                                 </td>
605 618
                                 
606 619
                                 <td height="30px" style="padding:4px 5px;">
607
-                                    <span v-if="setAdminUserES(advice, 'advice_doctor') == ''">
608
-                                        {{getAdminUser(advice, 'advice_doctor')}}
620
+                                    <span v-if="setAdminUserES(advice[0], 'advice_doctor') == ''">
621
+                                        {{getAdminUser(advice[0], 'advice_doctor')}}
609 622
                                     </span>
610 623
                                     <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
611
-                                        <img style="height:30px;" :src="setAdminUserES(advice, 'advice_doctor')" alt srcset />
624
+                                        <img style="height:30px;" :src="setAdminUserES(advice[0], 'advice_doctor')" alt srcset />
612 625
                                     </span>
613 626
                                 </td>
614 627
                                 
615 628
                                 <td height="30px" style="padding:4px 5px;">
616
-                                    <span v-if="advice.execution_time">{{ getTime(advice.execution_time, "{h}:{i}") }}</span>
629
+                                    <span v-if="advice[0].execution_time">{{ getTime(advice[0].execution_time, "{h}:{i}") }}</span>
617 630
                                 </td>
618 631
                                 <td height="30px" style="padding:4px 5px;">
619
-                                    <span v-if="setAdminUserES(advice, 'execution_staff') == ''">
620
-                                        {{getAdminUser(advice, 'execution_staff')}}
632
+                                    <span v-if="setAdminUserES(advice[0], 'execution_staff') == ''">
633
+                                        {{getAdminUser(advice[0], 'execution_staff')}}
621 634
                                     </span>
622 635
                                     <span v-else>
623
-                                        <img style="height:30px;" :src="setAdminUserES(advice, 'execution_staff')" alt srcset />
636
+                                        <img style="height:30px;" :src="setAdminUserES(advice[0], 'execution_staff')" alt srcset />
624 637
                                     </span>
625 638
                                 </td>
626 639
                                 <td height="30px" style="padding:4px 5px;">
627
-                                    <span v-if="setAdminUserES(advice, 'checker') == ''">{{ getAdminUser(advice, "checker") }}</span>
640
+                                    <span v-if="setAdminUserES(advice[0], 'checker') == ''">{{ getAdminUser(advice[0], "checker") }}</span>
628 641
                                     <span v-else>
629
-                                        <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" style="height: 30px;" />
642
+                                      <img class="es-img" :src="setAdminUserES(advice[0], 'checker')" alt="" srcset="" style="height: 30px;" />
630 643
                                     </span>
631 644
                                 </td>
632 645
                                 </tr>
@@ -789,7 +802,7 @@
789 802
                 </div>
790 803
                 </div>
791 804
           </div>
792
-          <div style="page-break-after:always"></div>
805
+          <!-- <div style="page-break-after:always"></div> -->
793 806
         </div>
794 807
       </div>
795 808
     </div>
@@ -991,8 +1004,8 @@ export default {
991 1004
             }
992 1005
 
993 1006
             var delghTwo = 0
994
-            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 6) {
995
-              delghTwo = 6 - this.records[recordIndex].advices.length
1007
+            if (this.records[recordIndex].advices && this.records[recordIndex].advices.length < 12) {
1008
+              delghTwo = 12 - this.records[recordIndex].advices.length
996 1009
             } else {
997 1010
               delghTwo = 0
998 1011
             }
@@ -1006,42 +1019,42 @@ export default {
1006 1019
               }
1007 1020
             }
1008 1021
 
1009
-            // var childMap = {}
1010
-            // for (const index in this.records[recordIndex].advices) {
1011
-            //   if (this.records[recordIndex].advices[index].parent_id == 0) {
1012
-            //     continue
1013
-            //   }
1014
-            //   if (
1015
-            //     !(
1016
-            //       this.records[recordIndex].advices[index].parent_id in childMap
1017
-            //     )
1018
-            //   ) {
1019
-            //     childMap[
1020
-            //       this.records[recordIndex].advices[index].parent_id
1021
-            //     ] = []
1022
-            //   }
1023
-            //   childMap[this.records[recordIndex].advices[index].parent_id].push(
1024
-            //     this.records[recordIndex].advices[index]
1025
-            //   )
1026
-            // }
1027
-
1028
-            // var advices = []
1029
-            // for (const index in this.records[recordIndex].advices) {
1030
-            //   if (this.records[recordIndex].advices[index].parent_id > 0) {
1031
-            //     continue
1032
-            //   }
1033
-            //   var item = this.records[recordIndex].advices[index]
1034
-            //   if (item.id in childMap) {
1035
-            //     item.children = childMap[item.id]
1036
-            //   } else {
1037
-            //     item.children = []
1038
-            //   }
1039
-            //   advices.push(item)
1040
-            // }
1022
+            var childMap = {}
1023
+            for (const index in this.records[recordIndex].advices) {
1024
+              if (this.records[recordIndex].advices[index].parent_id == 0) {
1025
+                continue
1026
+              }
1027
+              if (
1028
+                !(
1029
+                  this.records[recordIndex].advices[index].parent_id in childMap
1030
+                )
1031
+              ) {
1032
+                childMap[
1033
+                  this.records[recordIndex].advices[index].parent_id
1034
+                ] = []
1035
+              }
1036
+              childMap[this.records[recordIndex].advices[index].parent_id].push(
1037
+                this.records[recordIndex].advices[index]
1038
+              )
1039
+            }
1040
+
1041
+            var advices = []
1042
+            for (const index in this.records[recordIndex].advices) {
1043
+              if (this.records[recordIndex].advices[index].parent_id > 0) {
1044
+                continue
1045
+              }
1046
+              var item = this.records[recordIndex].advices[index]
1047
+              if (item.id in childMap) {
1048
+                item.children = childMap[item.id]
1049
+              } else {
1050
+                item.children = []
1051
+              }
1052
+              advices.push(item)
1053
+            }
1041 1054
 
1042 1055
             var leftAdvice = []
1043 1056
             var rightAdvice = []
1044
-            var adlen = this.records[recordIndex].advices.length
1057
+            var adlen = advices.length
1045 1058
 
1046 1059
             var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
1047 1060
             for (var i = 0; i < halfLen; i++) {
@@ -1142,7 +1155,6 @@ export default {
1142 1155
     QueryPartById: function(val) {
1143 1156
       let vascular_access_part_name = '/'
1144 1157
       const vascular_access = getDataConfig('hemodialysis', 'vascular_access_desc')
1145
-        console.log('哈哈哈哈哈哈',vascular_access)
1146 1158
       for (let i = 0; i < vascular_access.length; i++) {
1147 1159
         if (vascular_access[i].id == val) {
1148 1160
           vascular_access_part_name = vascular_access[i].name

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFortyTwo.vue Bestand weergeven

@@ -187,7 +187,7 @@
187 187
           <td style="text-align:left;" colspan="1">
188 188
             <span style="display:inline-block;margin-left:15px; display: flex;align-items: center;">
189 189
                 医生签名:
190
-                <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(prescription.creater) == ''">
190
+                <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(prescription.creater) == ''">
191 191
                 {{ getAdminUser(prescription.creater) }}
192 192
                 </span>
193 193
                 <img style="height:30px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else />
@@ -385,7 +385,7 @@
385 385
             <td style="text-align:left;" colspan="4">
386 386
                 <span style="margin-left:15px;align-items: center;display: flex;">
387 387
                     责任护士:
388
-                    <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
388
+                    <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) == ''">
389 389
                         {{ getAdminUser(dialysisOrder == null ? 0 : dialysisOrder.start_nurse) }}</span>
390 390
                     <img style="height:30px;" :src="setAdminUserES(dialysisOrder == null ? 0 : dialysisOrder.start_nurse)" alt="" srcset="" v-else />
391 391
                 </span>
@@ -394,25 +394,25 @@
394 394
                 <span style="margin-left:15px;align-items: center;display: flex;">
395 395
                     核对护士:
396 396
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder == null">
397
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
397
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
398 398
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
399 399
                       </span>
400 400
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
401 401
                     </span>
402 402
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
403
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
403
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
404 404
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
405 405
                       </span>
406 406
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />
407 407
                     </span>
408 408
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
409
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
409
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
410 410
                         {{ getAdminUser(check == null ? 0 : check.modifier) }}
411 411
                       </span>
412 412
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt="" srcset="" v-else />
413 413
                     </span>
414 414
                     <span style="width: 80px;text-align: center;display: flex;align-items: center;" v-if="dialysisOrder != null && dialysisOrder.start_nurse != check.creater && dialysisOrder.start_nurse != check.modifier">
415
-                      <span style="height: 30px;display: inline-block;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
415
+                      <span style="height: 30px;display: flex;align-items: center;" v-if="setAdminUserES(check == null ? 0 : check.creater) == ''">
416 416
                         {{ getAdminUser(check == null ? 0 : check.creater) }}
417 417
                       </span>
418 418
                       <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.creater)" alt="" srcset="" v-else />

+ 8 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Bestand weergeven

@@ -30,6 +30,7 @@
30 30
                     <div>检验项目:</div>
31 31
                     <div>
32 32
                         <div v-for="item in projectPrint" style="margin-bottom:10px;">{{ item.team.project_team }}</div>
33
+                        <div v-for="item in singleProjectPrint" style="margin-bottom:10px;">{{ item.project.project_name }}</div>
33 34
                     </div>
34 35
                 </div>
35 36
                 <div style="display:flex;justify-content: space-between;border-top:1px solid #000;line-height:40px;padding:0 10px;">
@@ -75,7 +76,8 @@ export default {
75 76
         projectPrint:[],
76 77
         time:'',
77 78
         doctor:'',
78
-        org_id:''
79
+        org_id:'',
80
+        singleProjectPrint:[]
79 81
       }
80 82
     },
81 83
    methods:{
@@ -153,6 +155,7 @@ export default {
153 155
               }
154 156
             })
155 157
             let data = []
158
+            let data2 = []
156 159
             projectPrint.map(item => {
157 160
               if(item.team.id != 0){
158 161
                 let status = data.some(it => (it.team.id == item.team.id))
@@ -160,6 +163,9 @@ export default {
160 163
                   data.push(item)
161 164
                 }
162 165
               }
166
+              if(item.team.id == 0){
167
+                data2.push(item)
168
+              }
163 169
               
164 170
             })
165 171
           
@@ -167,6 +173,7 @@ export default {
167 173
             this.pre_time = this.advicePrint[0].pre_time
168 174
             this.doctor = this.advicePrint[0].doctor
169 175
             this.projectPrint = data
176
+            this.singleProjectPrint = data2
170 177
             console.log('99999999999999999',projectPrint)
171 178
             var projectlist =  response.data.data.projectlist
172 179
 

+ 63 - 15
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Bestand weergeven

@@ -1266,7 +1266,7 @@
1266 1266
       },
1267 1267
 
1268 1268
       comfirm() {
1269
-        console.log('222222222222', this.curPrescriptions)
1269
+        console.log('222222222222', this.teamList)
1270 1270
 
1271 1271
         // if (this.curPrescriptions.order_status == 2) {
1272 1272
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
@@ -1278,24 +1278,70 @@
1278 1278
         //   this.$refs.multipleTable.clearSelection()
1279 1279
         //   return
1280 1280
         // }
1281
-       if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1282
-            for (let i = 0; i < this.curDrugs.length; i++) {
1283
-              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1284
-                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1285
-                return
1286
-              }
1281
+      //  if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1282
+      //     if (this.$store.getters.xt_user.org_id == 10138) {
1283
+      //       for (let i = 0; i < this.curDrugs.length; i++) {
1284
+      //         if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1285
+      //           this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1286
+      //           return
1287
+      //         }
1288
+
1289
+      //       }
1290
+      //     }
1291
+      //   }
1292
+
1293
+      //   if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1294
+      //     if (this.$store.getters.xt_user.org_id == 10138) {
1295
+      //       for (let i = 0; i < this.curDrugs.length; i++) {
1296
+      //         if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1297
+      //           this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1298
+      //           return
1299
+      //         }
1300
+
1301
+      //       }
1302
+      //     }
1303
+      //   }
1304
+      if (this.curDrugs.length > 0) {
1305
+          for (let i = 0; i < this.curDrugs.length; i++) {
1306
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1307
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1308
+              return
1309
+            }
1310
+
1311
+          }
1312
+        }
1313
+        if (this.teamList.length > 0) {
1314
+          for (let i = 0; i < this.teamList.length; i++) {
1315
+            if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
1316
+              this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
1317
+              // return
1318
+            }
1319
+
1320
+          }
1287 1321
 
1322
+          let arr = this.teamList
1323
+          let newArr = []
1324
+          arr.map(item => {
1325
+            if(this.curPrescriptions.med_type != 14){
1326
+              newArr.push(item)
1288 1327
             }
1328
+            if(this.curPrescriptions.med_type == 14 && item.is_special_diseases == 1){
1329
+              newArr.push(item)
1330
+            }
1331
+          })
1332
+          this.teamList = newArr
1289 1333
         }
1290 1334
 
1291
-        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1292
-            for (let i = 0; i < this.curDrugs.length; i++) {
1293
-              if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1294
-                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1295
-                return
1296
-              }
1297 1335
 
1336
+
1337
+        if (this.curDrugs.length == 0) {
1338
+          for (let i = 0; i < this.curDrugs.length; i++) {
1339
+            if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
1340
+              this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1341
+              return
1298 1342
             }
1343
+
1344
+          }
1299 1345
         }
1300 1346
         if (this.curStatus == 1 && this.rightTab == 2) {
1301 1347
           this.$message.error('改处方是药品,无法添加项目')
@@ -1615,7 +1661,8 @@
1615 1661
                 price: project[i].price,
1616 1662
                 medical_code: project[i].medical_code,
1617 1663
                 unit: project[i].unit,
1618
-                type: 2
1664
+                type: 2,
1665
+                is_special_diseases: project[i].disease_directory
1619 1666
               }
1620 1667
 
1621 1668
               this.tabProject.push(obj)
@@ -1635,7 +1682,8 @@
1635 1682
                 price: good_info[i].retail_price,
1636 1683
                 medical_code: good_info[i].medical_insurance_number,
1637 1684
                 unit: this.getGoodUnit(good_info[i].good_unit),
1638
-                type: 3
1685
+                type: 3,
1686
+                is_special_diseases: good_info[i].is_special_diseases
1639 1687
               }
1640 1688
               this.tabProject.push(obj)
1641 1689
             }

+ 1 - 1
src/xt_pages/user/templateSummary.vue Bestand weergeven

@@ -1574,7 +1574,7 @@
1574 1574
                  this.form.template_summary_id = list.template_summary_id
1575 1575
                }
1576 1576
 
1577
-               this.projectIndate = list.inspect_date
1577
+              //  this.projectIndate = list.inspect_date
1578 1578
                this.projectStr = list.project_id
1579 1579
            }
1580 1580
         })

+ 24 - 0
src/xt_pages/workforce/components/nextTableWeeks.vue Bestand weergeven

@@ -167,6 +167,10 @@
167 167
           <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
168 168
           <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
169 169
           <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
170
+          <span v-if="scope.row.dialysissolution.anticoagulant === 8">伊诺肝素</span>
171
+          <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
172
+          <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
173
+          <span v-if="scope.row.dialysissolution.anticoagulant === 11">那曲肝素</span>
170 174
          <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
171 175
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
172 176
           </span>
@@ -209,6 +213,26 @@
209 213
               ? scope.row.prescription.anticoagulant_zongliang + "iu"
210 214
               : ""
211 215
           }}</span>
216
+          <span v-if="scope.row.prescription.anticoagulant == 8">{{
217
+            scope.row.prescription.anticoagulant_zongliang
218
+              ? scope.row.prescription.anticoagulant_zongliang + "iu"
219
+              : ""
220
+          }}</span>
221
+         <span v-if="scope.row.prescription.anticoagulant == 9">{{
222
+            scope.row.prescription.anticoagulant_zongliang
223
+              ? scope.row.prescription.anticoagulant_zongliang + "iu"
224
+              : ""
225
+          }}</span>
226
+          <span v-if="scope.row.prescription.anticoagulant == 10">{{
227
+            scope.row.prescription.anticoagulant_zongliang
228
+              ? scope.row.prescription.anticoagulant_zongliang + "iu"
229
+              : ""
230
+          }}</span>
231
+          <span v-if="scope.row.prescription.anticoagulant == 11">{{
232
+            scope.row.prescription.anticoagulant_zongliang
233
+              ? scope.row.prescription.anticoagulant_zongliang + "iu"
234
+              : ""
235
+          }}</span>
212 236
         </template>
213 237
       </el-table-column>
214 238
 

+ 28 - 24
src/xt_pages/workforce/components/tableWeeks.vue Bestand weergeven

@@ -241,6 +241,11 @@
241 241
                     <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
242 242
                     <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
243 243
                     <span v-if="scope.row.dialysissolution.anticoagulant === 7">低分子肝素钠</span>
244
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 8">伊诺肝素</span>
245
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 9">达肝素</span>
246
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 10">体外抗凝</span>
247
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 11">那曲肝素</span>
248
+                       
244 249
                     <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
245 250
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
246 251
           </span>
@@ -248,42 +253,41 @@
248 253
             </el-table-column>
249 254
             <el-table-column label="总量" min-width="100" align="center">
250 255
                 <template slot-scope="scope">
251
-          <span v-if="scope.row.prescription.anticoagulant == 1">{{
252
-            scope.row.prescription.anticoagulant_zongliang
253
-              ? scope.row.prescription.anticoagulant_zongliang + 'mg'
256
+          <span v-if="scope.row.dialysissolution.anticoagulant == 1">{{
257
+            scope.row.dialysissolution.anticoagulant_zongliang
258
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'mg'
254 259
               : ''
255 260
           }}</span>
256
-                    <span v-if="scope.row.prescription.anticoagulant == 2">{{
257
-            scope.row.prescription.anticoagulant_zongliang
258
-              ? scope.row.prescription.anticoagulant_zongliang + 'iu'
261
+                    <span v-if="scope.row.dialysissolution.anticoagulant == 2">{{
262
+            scope.row.dialysissolution.anticoagulant_zongliang
263
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'iu'
259 264
               : ''
260 265
           }}</span>
261
-                    <span v-if="scope.row.prescription.anticoagulant == 3">{{
262
-            scope.row.prescription.anticoagulant_zongliang
263
-              ? scope.row.prescription.anticoagulant_zongliang + 'iu'
266
+                    <span v-if="scope.row.dialysissolution.anticoagulant == 3">{{
267
+            scope.row.dialysissolution.anticoagulant_zongliang
268
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'iu'
264 269
               : ''
265 270
           }}</span>
266
-                    <span v-if="scope.row.prescription.anticoagulant == 4">{{
267
-            scope.row.prescription.anticoagulant_zongliang
268
-              ? scope.row.prescription.anticoagulant_zongliang + 'mg'
271
+                    <span v-if="scope.row.dialysissolution.anticoagulant == 4">{{
272
+            scope.row.dialysissolution.anticoagulant_zongliang
273
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'mg'
269 274
               : ''
270 275
           }}</span>
271
-                    <span v-if="scope.row.prescription.anticoagulant == 5">{{
272
-            scope.row.prescription.anticoagulant_zongliang
273
-              ? scope.row.prescription.anticoagulant_zongliang + 'mg'
276
+                    <span v-if="scope.row.dialysissolution.anticoagulant == 5">{{
277
+            scope.row.dialysissolution.anticoagulant_zongliang
278
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'mg'
274 279
               : ''
275 280
           }}</span>
276
-                    <span v-if="scope.row.prescription.anticoagulant == 6">{{
277
-            scope.row.prescription.anticoagulant_zongliang
278
-              ? scope.row.prescription.anticoagulant_zongliang + 'iu'
281
+                    <span v-if="scope.row.dialysissolution.anticoagulant == 6">{{
282
+            scope.row.dialysissolution.anticoagulant_zongliang
283
+              ? scope.row.dialysissolution.anticoagulant_zongliang + 'iu'
279 284
               : ''
280 285
           }}</span>
281
-                    <span v-if="scope.row.prescription.anticoagulant == 7">{{
282
-            scope.row.prescription.anticoagulant_zongliang
283
-              ? scope.row.prescription.anticoagulant_zongliang + 'iu'
284
-              : ''
285
-          }}</span>
286
-
286
+            <span v-if="scope.row.dialysissolution.anticoagulant == 7">{{scope.row.dialysissolution.anticoagulant_zongliang? scope.row.dialysissolution.anticoagulant_zongliang + 'iu': ''}}</span>
287
+            <span v-if="scope.row.dialysissolution.anticoagulant == 8">{{scope.row.dialysissolution.anticoagulant_zongliang? scope.row.dialysissolution.anticoagulant_zongliang + 'iu': ''}}</span>
288
+            <span v-if="scope.row.dialysissolution.anticoagulant == 9">{{scope.row.dialysissolution.anticoagulant_zongliang? scope.row.dialysissolution.anticoagulant_zongliang + 'iu': ''}}</span>
289
+            <span v-if="scope.row.dialysissolution.anticoagulant == 10">{{scope.row.dialysissolution.anticoagulant_zongliang? scope.row.dialysissolution.anticoagulant_zongliang + 'iu': ''}}</span>
290
+             <span v-if="scope.row.dialysissolution.anticoagulant == 11">{{scope.row.dialysissolution.anticoagulant_zongliang? scope.row.dialysissolution.anticoagulant_zongliang + 'iu': ''}}</span>
287 291
                 </template>
288 292
             </el-table-column>
289 293
 

+ 5 - 1
src/xt_pages/workforce/next_remind_print.vue Bestand weergeven

@@ -88,9 +88,13 @@
88 88
                   <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
89 89
                   <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
90 90
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
91
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 8">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
92
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 9">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
93
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
94
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
91 95
                 </td>
92 96
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
93
-                  <span style="white-space: pre" v-if="main_collection.doctor_advice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
97
+                  <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctor_advice)}}</span>
94 98
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
95 99
                 </td>
96 100
               </tr>

+ 17 - 1
src/xt_pages/workforce/remind.vue Bestand weergeven

@@ -24,11 +24,12 @@
24 24
 </template>
25 25
 
26 26
 <script>
27
-import {getWeekPanels} from '@/api/schedule';
27
+import {getWeekPanels,getNextWeekPanels} from '@/api/schedule';
28 28
 import tableWeeks from './components/tableWeeks'
29 29
 import nextTableWeeks from './components/nextTableWeeks'
30 30
 import tablePush from './components/tablePush'
31 31
 import BreadCrumb from '../components/bread-crumb'
32
+const moment = require('moment')
32 33
 export default {
33 34
     name:'remind',
34 35
      data() {
@@ -69,10 +70,25 @@ export default {
69 70
       },
70 71
       changeActiveName(val){
71 72
         this.activeName = val
73
+      },
74
+      getNextWeekPanels(){
75
+        var parasms = {
76
+          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
77
+          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
78
+        }
79
+        console.log("params222",parasms)
80
+       getNextWeekPanels(parasms).then(response=>{
81
+          if(response.data.state ==1){
82
+            var schedule =  response.data.data.schedule
83
+            console.log("schedule",schedule)
84
+            this.theWeek.nextWeek = schedule.length
85
+          }
86
+       })
72 87
       }
73 88
     },
74 89
     created(){
75 90
         this.getWeekPanels();
91
+        this.getNextWeekPanels()
76 92
     },
77 93
     watch:{
78 94
       activeName:function(val){

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

@@ -87,6 +87,10 @@
87 87
                   <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
88 88
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
89 89
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
90
+                   <span v-if="main_collection.prescription.anticoagulant == 8">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
91
+                    <span v-if="main_collection.prescription.anticoagulant == 9">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
92
+                     <span v-if="main_collection.prescription.anticoagulant == 10">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
93
+                      <span v-if="main_collection.prescription.anticoagulant == 11">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
90 94
                 </td>
91 95
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
92 96
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>