see999 3 years ago
parent
commit
8b0f220c2b

+ 70 - 80
src/api/schedule.js View File

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
-export function getWeekPanels(t,patitionId) {
4
-  
3
+export function getWeekPanels(t, patitionId) {
5
   return request({
4
   return request({
6
-    url: '/api/schedule/weekpanel?data=' + t+"&patitionid="+patitionId,
5
+    url: '/api/schedule/weekpanel?data=' + t + '&patitionid=' + patitionId,
7
     method: 'get'
6
     method: 'get'
8
   })
7
   })
9
 }
8
 }
10
 
9
 
11
-
12
-export function getWeekPanelsOne(t,patitionId){
13
-  
10
+export function getWeekPanelsOne(t, patitionId) {
14
   return request({
11
   return request({
15
-    url: '/api/schedule/weekpanelone?data=' + t+"&patitionid="+patitionId,
12
+    url: '/api/schedule/weekpanelone?data=' + t + '&patitionid=' + patitionId,
16
     method: 'get'
13
     method: 'get'
17
   })
14
   })
18
 }
15
 }
21
   return request({
18
   return request({
22
     url: '/api/schedule/schedules',
19
     url: '/api/schedule/schedules',
23
     method: 'get',
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
   return request({
26
   return request({
30
     url: '/api/schedule/schedulesone',
27
     url: '/api/schedule/schedulesone',
31
     method: 'get',
28
     method: 'get',
32
-    params:params,
29
+    params: params
33
   })
30
   })
34
 }
31
 }
35
 
32
 
72
   })
69
   })
73
 }
70
 }
74
 
71
 
75
-export function GetWeekSchedulePrintInitData(date,type) {
72
+export function GetWeekSchedulePrintInitData(date, type) {
76
   return request({
73
   return request({
77
     url: '/api/schedule/print/initdata',
74
     url: '/api/schedule/print/initdata',
78
     method: 'get',
75
     method: 'get',
79
     params: {
76
     params: {
80
-      date: date,
77
+      date: date
81
     }
78
     }
82
   })
79
   })
83
 }
80
 }
106
   })
103
   })
107
 }
104
 }
108
 
105
 
109
-
110
-export function exportSchedule(params,date) {
106
+export function exportSchedule(params, date) {
111
   return request({
107
   return request({
112
-    url: '/api/schedule/export?date='+date,
108
+    url: '/api/schedule/export?date=' + date,
113
     method: 'Post',
109
     method: 'Post',
114
     data: params
110
     data: params
115
   })
111
   })
116
 }
112
 }
117
 
113
 
118
-
119
 export function initDate() {
114
 export function initDate() {
120
   return request({
115
   return request({
121
     url: '/api/excel_date/init',
116
     url: '/api/excel_date/init',
122
-    method: 'Get',
117
+    method: 'Get'
123
   })
118
   })
124
 }
119
 }
125
 
120
 
126
-
127
 export function exportScheduleTemplate(params) {
121
 export function exportScheduleTemplate(params) {
128
   return request({
122
   return request({
129
     url: '/api/schedule_template/export',
123
     url: '/api/schedule_template/export',
132
   })
126
   })
133
 }
127
 }
134
 
128
 
135
-
136
-export function getNextScheduleWeekDay(params){
137
-  
129
+export function getNextScheduleWeekDay(params) {
138
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
   return request({
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
+}

+ 1 - 1
src/xt_pages/hospitalStation/components/registerDialog.vue View File

422
         }
422
         }
423
         let searchArray = [];
423
         let searchArray = [];
424
         PostSearch(key).then(response => {
424
         PostSearch(key).then(response => {
425
-          if (response.data.state == 1) {
425
+          if (response.data.state == 1) {balance_accounts_type
426
             searchArray = response.data.data.patient;
426
             searchArray = response.data.data.patient;
427
             cb(searchArray)
427
             cb(searchArray)
428
           } else {
428
           } else {

+ 9 - 9
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

117
         efs: []
117
         efs: []
118
       }
118
       }
119
     }, mounted() {
119
     }, mounted() {
120
-      getInitData().then(response => {
121
-        if (response.data.state == 0) {
122
-          this.$message.error(response.data.msg)
123
-          return false
124
-        } else {
125
-          this.drugways = response.data.data.drugways
126
-          this.efs = response.data.data.efs
127
-        }
128
-      })
120
+      // getInitData().then(response => {
121
+      //   if (response.data.state == 0) {
122
+      //     this.$message.error(response.data.msg)
123
+      //     return false
124
+      //   } else {
125
+      //     this.drugways = response.data.data.drugways
126
+      //     this.efs = response.data.data.efs
127
+      //   }
128
+      // })
129
     }, methods:  {
129
     }, methods:  {
130
 
130
 
131
 
131
 

+ 1 - 13
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

2
     <div class="main-contain outpatientChargesManagement" v-loading="newLoading"
2
     <div class="main-contain outpatientChargesManagement" v-loading="newLoading"
3
     element-loading-text="拼命加载中"
3
     element-loading-text="拼命加载中"
4
     element-loading-spinner="el-icon-loading"
4
     element-loading-spinner="el-icon-loading"
5
-    element-loading-background="rgba(0, 0, 0, 0.4)">
5
+    element-loading-background="rgba(0, 0, 0, 0.8)">
6
         <div class="position">
6
         <div class="position">
7
             <bread-crumb :crumbs='crumbs'></bread-crumb>
7
             <bread-crumb :crumbs='crumbs'></bread-crumb>
8
         </div>
8
         </div>
4252
     }
4252
     }
4253
 
4253
 
4254
     }
4254
     }
4255
-    .el-icon-loading{
4256
-      font-size: 30px;
4257
-    }
4258
-    .el-loading-spinner .el-loading-text{
4259
-      font-size: 30px;
4260
-    }
4261
-    // .outpatientChargesManagement{
4262
-    //   .el-loading-mask{
4263
-    //     z-index: 5000;
4264
-    //   }
4265
-    // }
4266
-    
4267
 </style>
4255
 </style>
4268
 
4256
 

+ 30 - 0
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue View File

224
         let allPrescriptions = [];
224
         let allPrescriptions = [];
225
         let targetPrescriptions = [];
225
         let targetPrescriptions = [];
226
         let prescriptions = [];
226
         let prescriptions = [];
227
+
228
+
229
+
230
+
231
+
232
+
227
         for (let i = 0; i < this.allPrescription.length; i++) {
233
         for (let i = 0; i < this.allPrescription.length; i++) {
228
           for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
234
           for (let a = 0; a < this.allPrescription[i].check_group.length; a++) {
229
             checkGroup.push(this.allPrescription[i].check_group[a])
235
             checkGroup.push(this.allPrescription[i].check_group[a])
240
           }
246
           }
241
         }
247
         }
242
 
248
 
249
+        for (let i = 0; i < targetPrescriptions.length; i++) {
250
+          var prescription = targetPrescriptions[i];
251
+          for (let b = 0; b < prescription.doctor_advice.length; b++) {
252
+            console.log(prescription.doctor_advice[b].drug.is_special_diseases)
253
+            if (prescription.med_type == "14" && prescription.doctor_advice[b].drug.is_special_diseases != 1) {
254
+              prescription.doctor_advice.splice(b--,1)
255
+            }
256
+          }
257
+          for (let b = 0; b < prescription.project.length; b++) {
258
+            if(prescription.project[b].type == 2){
259
+              if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
260
+                prescription.project.splice(b--,1)
261
+              }
262
+            }else if(prescription.project[b].type == 3){
263
+              if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
264
+                prescription.project.splice(b--,1)
265
+              }
266
+            }
267
+          }
268
+        }
269
+
270
+
271
+
243
         if (targetPrescriptions.length > 0) {
272
         if (targetPrescriptions.length > 0) {
244
           for (let i = 0; i < targetPrescriptions.length; i++) {
273
           for (let i = 0; i < targetPrescriptions.length; i++) {
245
             var prescription = targetPrescriptions[i];
274
             var prescription = targetPrescriptions[i];
264
                 id:prescription.doctor_advice[b].drug_id,
293
                 id:prescription.doctor_advice[b].drug_id,
265
                 drug:prescription.doctor_advice[b].drug,
294
                 drug:prescription.doctor_advice[b].drug,
266
                 groupno: index,
295
                 groupno: index,
296
+                hosp_appr_flag:"1",
267
               };
297
               };
268
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
298
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
269
                 obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
299
                 obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price

+ 10 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2185
       },
2185
       },
2186
       open(index, isLoading) {
2186
       open(index, isLoading) {
2187
         if (this.dayorMonth == 'day') {
2187
         if (this.dayorMonth == 'day') {
2188
-
2189
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2188
           if (this.prescriptions[0].advices.length == 0 && this.prescriptions[0].project.length == 0) {
2190
             this.$message.error('请先开处方')
2189
             this.$message.error('请先开处方')
2191
             return
2190
             return
2192
           }
2191
           }
2192
+
2193
         }
2193
         }
2194
 
2194
 
2195
         if (this.dayorMonth == 'day') {
2195
         if (this.dayorMonth == 'day') {
2233
               }
2233
               }
2234
           }
2234
           }
2235
           if (index == 1) {
2235
           if (index == 1) {
2236
+            for(let i =0; i < this.prescriptions.length; i++){
2237
+              if (this.prescriptions[i].advices.length == 0 && this.prescriptions[i].project.length == 0) {
2238
+                this.$message.error('处方内容不能为空')
2239
+                return
2240
+              }
2241
+            }
2242
+
2236
             let params = {
2243
             let params = {
2237
               p_type: 2,
2244
               p_type: 2,
2238
               patient_id: this.patientInfo.id,
2245
               patient_id: this.patientInfo.id,
2261
                 this.prescriptions[i].advices[b].day = parseInt(this.prescriptions[i].advices[b].day)
2268
                 this.prescriptions[i].advices[b].day = parseInt(this.prescriptions[i].advices[b].day)
2262
                 this.prescriptions[i].advices[b].groupno = parseInt(this.prescriptions[i].advices[b].groupno)
2269
                 this.prescriptions[i].advices[b].groupno = parseInt(this.prescriptions[i].advices[b].groupno)
2263
 
2270
 
2264
-
2265
               }
2271
               }
2266
 
2272
 
2267
               for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2273
               for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2656
       comfirm() {
2662
       comfirm() {
2657
 
2663
 
2658
         if (this.curDrugs.length > 0) {
2664
         if (this.curDrugs.length > 0) {
2659
-          if (this.$store.getters.xt_user.org_id == 10138) {
2660
             for (let i = 0; i < this.curDrugs.length; i++) {
2665
             for (let i = 0; i < this.curDrugs.length; i++) {
2661
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2666
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2662
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2667
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2664
               }
2669
               }
2665
 
2670
 
2666
             }
2671
             }
2667
-          }
2668
         }
2672
         }
2669
         if (this.teamList.length > 0) {
2673
         if (this.teamList.length > 0) {
2670
-          if (this.$store.getters.xt_user.org_id == 10138) {
2671
             for (let i = 0; i < this.teamList.length; i++) {
2674
             for (let i = 0; i < this.teamList.length; i++) {
2672
               if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
2675
               if (this.curPrescriptions.med_type == 14 && this.teamList[i].is_special_diseases != 1) {
2673
                 this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
2676
                 this.$message.error('该处方属于特病类型处方,请开特病类型的项目')
2675
               }
2678
               }
2676
 
2679
 
2677
             }
2680
             }
2678
-          }
2679
 
2681
 
2680
-          if(this.$store.getters.xt_user.org_id == 10138){
2681
             let arr = this.teamList
2682
             let arr = this.teamList
2682
             let newArr = []
2683
             let newArr = []
2683
             arr.map(item => {
2684
             arr.map(item => {
2689
               }
2690
               }
2690
             })
2691
             })
2691
             this.teamList = newArr
2692
             this.teamList = newArr
2692
-          }
2693
         }
2693
         }
2694
 
2694
 
2695
 
2695
 
2696
 
2696
 
2697
         if (this.curDrugs.length == 0) {
2697
         if (this.curDrugs.length == 0) {
2698
-          if (this.$store.getters.xt_user.org_id == 10138) {
2699
             for (let i = 0; i < this.curDrugs.length; i++) {
2698
             for (let i = 0; i < this.curDrugs.length; i++) {
2700
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2699
               if (this.curPrescriptions.med_type == 14 && this.curDrugs[i].is_special_diseases != 1) {
2701
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2700
                 this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2702
                 return
2701
                 return
2703
               }
2702
               }
2704
-
2705
             }
2703
             }
2706
-          }
2707
         }
2704
         }
2708
 
2705
 
2709
         // if (this.curPrescriptions.order_status == 2) {
2706
         // if (this.curPrescriptions.order_status == 2) {
2832
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2829
                   prescribing_number_unit: temp[b].prescribing_number_unit,
2833
                   medical_insurance_number: temp[b].medical_insurance_number,
2830
                   medical_insurance_number: temp[b].medical_insurance_number,
2834
                   drug: temp[b],
2831
                   drug: temp[b],
2835
-                  groupno: index + temp_index
2832
+                  groupno: index + temp_index,
2833
+                  hosp_appr_flag:"1",
2836
                 }
2834
                 }
2837
 
2835
 
2838
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
2836
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {

+ 23 - 0
src/xt_pages/outpatientDoctorStation/components/nextOrLastPrescription.vue View File

297
           }
297
           }
298
         }
298
         }
299
 
299
 
300
+        for (let i = 0; i < targetPrescriptions.length; i++) {
301
+          var prescription = targetPrescriptions[i];
302
+          for (let b = 0; b < prescription.doctor_advice.length; b++) {
303
+            console.log(prescription.doctor_advice[b].drug.is_special_diseases)
304
+            if (prescription.med_type == "14" && prescription.doctor_advice[b].drug.is_special_diseases != 1) {
305
+              prescription.doctor_advice.splice(b--,1)
306
+            }
307
+          }
308
+          for (let b = 0; b < prescription.project.length; b++) {
309
+            if(prescription.project[b].type == 2){
310
+              if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
311
+                prescription.project.splice(b--,1)
312
+              }
313
+            }else if(prescription.project[b].type == 3){
314
+              if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
315
+                prescription.project.splice(b--,1)
316
+              }
317
+            }
318
+          }
319
+        }
320
+
321
+
300
         if (targetPrescriptions.length > 0) {
322
         if (targetPrescriptions.length > 0) {
301
           for (let i = 0; i < targetPrescriptions.length; i++) {
323
           for (let i = 0; i < targetPrescriptions.length; i++) {
302
             var prescription = targetPrescriptions[i];
324
             var prescription = targetPrescriptions[i];
321
                 id:prescription.doctor_advice[b].drug_id,
343
                 id:prescription.doctor_advice[b].drug_id,
322
                 drug:prescription.doctor_advice[b].drug,
344
                 drug:prescription.doctor_advice[b].drug,
323
                 groupno:index,
345
                 groupno:index,
346
+                hosp_appr_flag:"1"
324
               };
347
               };
325
 
348
 
326
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
349
               if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){

File diff suppressed because it is too large
+ 439 - 411
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue


+ 171 - 18
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1353
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1353
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1354
                     id: prescription.advices[b].drug_id,
1354
                     id: prescription.advices[b].drug_id,
1355
                     drug: prescription.advices[b].drug,
1355
                     drug: prescription.advices[b].drug,
1356
-                    groupno: prescription.advices[b].groupno
1356
+                    groupno: prescription.advices[b].groupno,
1357
+                    hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1357
 
1358
 
1358
                   }
1359
                   }
1359
                   tempAdvice.push(obj)
1360
                   tempAdvice.push(obj)
1435
             } else {
1436
             } else {
1436
 
1437
 
1437
               if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1438
               if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1439
+                for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1440
+                  var prescription = response.data.data.sch_prescriptions[i];
1441
+                  for (let b = 0; b < prescription.advices.length; b++) {
1442
+                    console.log(prescription.advices[b].drug.is_special_diseases)
1443
+                    if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
1444
+                      prescription.advices.splice(b--,1)
1445
+                    }
1446
+                  }
1447
+                  for (let b = 0; b < prescription.project.length; b++) {
1448
+                    if(prescription.project[b].type == 2){
1449
+                      if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
1450
+                        prescription.project.splice(b--,1)
1451
+                      }
1452
+                    }else if(prescription.project[b].type == 3){
1453
+                      if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
1454
+                        prescription.project.splice(b--,1)
1455
+                      }
1456
+                    }
1457
+                  }
1458
+                }
1459
+
1460
+
1461
+
1438
 
1462
 
1439
                 for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1463
                 for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1440
                   var prescription = response.data.data.sch_prescriptions[i]
1464
                   var prescription = response.data.data.sch_prescriptions[i]
1460
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1484
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1461
                       id: prescription.advices[b].drug_id,
1485
                       id: prescription.advices[b].drug_id,
1462
                       drug: prescription.advices[b].drug,
1486
                       drug: prescription.advices[b].drug,
1463
-                      groupno: index
1487
+                      groupno: index,
1488
+                      hosp_appr_flag:"1",
1489
+
1464
 
1490
 
1465
                     }
1491
                     }
1466
 
1492
 
1625
 
1651
 
1626
                   this.month_prescriptions = []
1652
                   this.month_prescriptions = []
1627
 
1653
 
1628
-                  var month_prescriptions = response.data.data.month_prescriptions
1629
-                  this.setMonthPrescription(month_prescriptions)
1654
+                  // var month_prescriptions = response.data.data.month_prescriptions
1655
+                  // this.setMonthPrescription(month_prescriptions)
1630
 
1656
 
1631
                   this.patientInfo = response.data.data.xt_info
1657
                   this.patientInfo = response.data.data.xt_info
1632
                   this.hisPatientInfo = response.data.data.his_info
1658
                   this.hisPatientInfo = response.data.data.his_info
1710
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1736
                           medical_insurance_number: prescription.advices[b].med_list_codg,
1711
                           id: prescription.advices[b].drug_id,
1737
                           id: prescription.advices[b].drug_id,
1712
                           drug: prescription.advices[b].drug,
1738
                           drug: prescription.advices[b].drug,
1713
-                          groupno: prescription.advices[b].groupno
1739
+                          groupno: prescription.advices[b].groupno,
1740
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1741
+
1714
 
1742
 
1715
                         }
1743
                         }
1716
                         tempAdvice.push(obj)
1744
                         tempAdvice.push(obj)
1792
 
1820
 
1793
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1821
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
1794
 
1822
 
1823
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1824
+                        var prescription = response.data.data.sch_prescriptions[i];
1825
+                        for (let b = 0; b < prescription.advices.length; b++) {
1826
+                          console.log(prescription.advices[b].drug.is_special_diseases)
1827
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
1828
+                            prescription.advices.splice(b--,1)
1829
+                          }
1830
+                        }
1831
+                        for (let b = 0; b < prescription.project.length; b++) {
1832
+                          if(prescription.project[b].type == 2){
1833
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
1834
+                              prescription.project.splice(b--,1)
1835
+                            }
1836
+                          }else if(prescription.project[b].type == 3){
1837
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
1838
+                              prescription.project.splice(b--,1)
1839
+                            }
1840
+                          }
1841
+                        }
1842
+                      }
1843
+
1844
+
1795
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1845
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
1796
                         var prescription = response.data.data.sch_prescriptions[i]
1846
                         var prescription = response.data.data.sch_prescriptions[i]
1797
                         let tempAdvice = []
1847
                         let tempAdvice = []
1816
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1866
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1817
                             id: prescription.advices[b].drug_id,
1867
                             id: prescription.advices[b].drug_id,
1818
                             drug: prescription.advices[b].drug,
1868
                             drug: prescription.advices[b].drug,
1819
-                            groupno: index
1869
+                            groupno: index,
1870
+                            hosp_appr_flag: "1",
1871
+
1820
 
1872
 
1821
                           }
1873
                           }
1822
                           console.log('看看数据1:')
1874
                           console.log('看看数据1:')
2079
 
2131
 
2080
                   this.month_prescriptions = []
2132
                   this.month_prescriptions = []
2081
 
2133
 
2082
-                  var month_prescriptions = response.data.data.month_prescriptions
2083
-                  this.setMonthPrescription(month_prescriptions)
2134
+                  // var month_prescriptions = response.data.data.month_prescriptions
2135
+                  // this.setMonthPrescription(month_prescriptions)
2084
 
2136
 
2085
                   this.patientInfo = response.data.data.xt_info
2137
                   this.patientInfo = response.data.data.xt_info
2086
                   this.hisPatientInfo = response.data.data.his_info
2138
                   this.hisPatientInfo = response.data.data.his_info
2163
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2215
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2164
                           id: prescription.advices[b].drug_id,
2216
                           id: prescription.advices[b].drug_id,
2165
                           drug: prescription.advices[b].drug,
2217
                           drug: prescription.advices[b].drug,
2166
-                          groupno: prescription.advices[b].groupno
2218
+                          groupno: prescription.advices[b].groupno,
2219
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2220
+
2167
 
2221
 
2168
                         }
2222
                         }
2169
                         tempAdvice.push(obj)
2223
                         tempAdvice.push(obj)
2237
                   } else {
2291
                   } else {
2238
 
2292
 
2239
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2293
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2294
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2295
+                        var prescription = response.data.data.sch_prescriptions[i];
2296
+                        for (let b = 0; b < prescription.advices.length; b++) {
2297
+                          console.log(prescription.advices[b].drug.is_special_diseases)
2298
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
2299
+                            prescription.advices.splice(b--,1)
2300
+                          }
2301
+                        }
2302
+                        for (let b = 0; b < prescription.project.length; b++) {
2303
+                          if(prescription.project[b].type == 2){
2304
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
2305
+                              prescription.project.splice(b--,1)
2306
+                            }
2307
+                          }else if(prescription.project[b].type == 3){
2308
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
2309
+                              prescription.project.splice(b--,1)
2310
+                            }
2311
+                          }
2312
+                        }
2313
+                      }
2314
+
2240
 
2315
 
2241
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2316
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2242
                         var prescription = response.data.data.sch_prescriptions[i]
2317
                         var prescription = response.data.data.sch_prescriptions[i]
2262
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2337
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2263
                             id: prescription.advices[b].drug_id,
2338
                             id: prescription.advices[b].drug_id,
2264
                             drug: prescription.advices[b].drug,
2339
                             drug: prescription.advices[b].drug,
2265
-                            groupno: index
2340
+                            groupno: index,
2341
+                            hosp_appr_flag: "1",
2342
+
2343
+
2266
 
2344
 
2267
                           }
2345
                           }
2268
                           console.log('看看数据2:')
2346
                           console.log('看看数据2:')
2512
 
2590
 
2513
                 this.month_prescriptions = []
2591
                 this.month_prescriptions = []
2514
 
2592
 
2515
-                var month_prescriptions = response.data.data.month_prescriptions
2516
-                this.setMonthPrescription(month_prescriptions)
2593
+                // var month_prescriptions = response.data.data.month_prescriptions
2594
+                // this.setMonthPrescription(month_prescriptions)
2517
 
2595
 
2518
                 this.patientInfo = response.data.data.xt_info
2596
                 this.patientInfo = response.data.data.xt_info
2519
                 this.hisPatientInfo = response.data.data.his_info
2597
                 this.hisPatientInfo = response.data.data.his_info
2596
                         medical_insurance_number: prescription.advices[b].med_list_codg,
2674
                         medical_insurance_number: prescription.advices[b].med_list_codg,
2597
                         id: prescription.advices[b].drug_id,
2675
                         id: prescription.advices[b].drug_id,
2598
                         drug: prescription.advices[b].drug,
2676
                         drug: prescription.advices[b].drug,
2599
-                        groupno: prescription.advices[b].groupno
2677
+                        groupno: prescription.advices[b].groupno,
2678
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2679
+
2600
 
2680
 
2601
                       }
2681
                       }
2602
                       tempAdvice.push(obj)
2682
                       tempAdvice.push(obj)
2670
                 } else {
2750
                 } else {
2671
 
2751
 
2672
                   if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2752
                   if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
2753
+                    for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2754
+                      var prescription = response.data.data.sch_prescriptions[i];
2755
+                      for (let b = 0; b < prescription.advices.length; b++) {
2756
+                        console.log(prescription.advices[b].drug.is_special_diseases)
2757
+                        if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
2758
+                          prescription.advices.splice(b--,1)
2759
+                        }
2760
+                      }
2761
+                      for (let b = 0; b < prescription.project.length; b++) {
2762
+                        if(prescription.project[b].type == 2){
2763
+                          if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
2764
+                            prescription.project.splice(b--,1)
2765
+                          }
2766
+                        }else if(prescription.project[b].type == 3){
2767
+                          if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
2768
+                            prescription.project.splice(b--,1)
2769
+                          }
2770
+                        }
2771
+                      }
2772
+                    }
2773
+
2673
 
2774
 
2674
                     for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2775
                     for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
2675
                       var prescription = response.data.data.sch_prescriptions[i]
2776
                       var prescription = response.data.data.sch_prescriptions[i]
2695
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2796
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2696
                           id: prescription.advices[b].drug_id,
2797
                           id: prescription.advices[b].drug_id,
2697
                           drug: prescription.advices[b].drug,
2798
                           drug: prescription.advices[b].drug,
2698
-                          groupno: index
2799
+                          groupno: index,
2800
+                          hosp_appr_flag: "1",
2801
+
2699
                         }
2802
                         }
2700
                         console.log('看看数据3:')
2803
                         console.log('看看数据3:')
2701
                         console.log(obj.prescribing_number_unit)
2804
                         console.log(obj.prescribing_number_unit)
3090
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3193
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3091
                           id: prescription.advices[b].drug_id,
3194
                           id: prescription.advices[b].drug_id,
3092
                           drug: prescription.advices[b].drug,
3195
                           drug: prescription.advices[b].drug,
3093
-                          groupno: prescription.advices[b].groupno
3196
+                          groupno: prescription.advices[b].groupno,
3197
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3198
+
3094
 
3199
 
3095
                         }
3200
                         }
3096
                         tempAdvice.push(obj)
3201
                         tempAdvice.push(obj)
3171
                   } else {
3276
                   } else {
3172
 
3277
 
3173
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3278
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3279
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3280
+                        var prescription = response.data.data.sch_prescriptions[i];
3281
+                        for (let b = 0; b < prescription.advices.length; b++) {
3282
+                          console.log(prescription.advices[b].drug.is_special_diseases)
3283
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
3284
+                            prescription.advices.splice(b--,1)
3285
+                          }
3286
+                        }
3287
+                        for (let b = 0; b < prescription.project.length; b++) {
3288
+                          if(prescription.project[b].type == 2){
3289
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
3290
+                              prescription.project.splice(b--,1)
3291
+                            }
3292
+                          }else if(prescription.project[b].type == 3){
3293
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
3294
+                              prescription.project.splice(b--,1)
3295
+                            }
3296
+                          }
3297
+                        }
3298
+                      }
3299
+
3174
 
3300
 
3175
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3301
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3176
                         var prescription = response.data.data.sch_prescriptions[i]
3302
                         var prescription = response.data.data.sch_prescriptions[i]
3196
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3322
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3197
                             id: prescription.advices[b].drug_id,
3323
                             id: prescription.advices[b].drug_id,
3198
                             drug: prescription.advices[b].drug,
3324
                             drug: prescription.advices[b].drug,
3199
-                            groupno: index
3325
+                            groupno: index,
3326
+                            hosp_appr_flag: "1",
3327
+
3200
                           }
3328
                           }
3201
                           console.log('看看数据4:')
3329
                           console.log('看看数据4:')
3202
                           console.log(obj.prescribing_number_unit)
3330
                           console.log(obj.prescribing_number_unit)
3612
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3740
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3613
                           id: prescription.advices[b].drug_id,
3741
                           id: prescription.advices[b].drug_id,
3614
                           drug: prescription.advices[b].drug,
3742
                           drug: prescription.advices[b].drug,
3615
-                          groupno: prescription.advices[b].groupno
3743
+                          groupno: prescription.advices[b].groupno,
3744
+                          hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3745
+
3616
 
3746
 
3617
                         }
3747
                         }
3618
                         tempAdvice.push(obj)
3748
                         tempAdvice.push(obj)
3693
                   } else {
3823
                   } else {
3694
 
3824
 
3695
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3825
                     if (response.data.data.count <= 1 && response.data.data.schedule.id > 0 && response.data.data.sch_prescriptions.length > 0) {
3826
+                      for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3827
+                        var prescription = response.data.data.sch_prescriptions[i];
3828
+                        for (let b = 0; b < prescription.advices.length; b++) {
3829
+                          console.log(prescription.advices[b].drug.is_special_diseases)
3830
+                          if (prescription.med_type == "14" && prescription.advices[b].drug.is_special_diseases != 1) {
3831
+                            prescription.advices.splice(b--,1)
3832
+                          }
3833
+                        }
3834
+                        for (let b = 0; b < prescription.project.length; b++) {
3835
+                          if(prescription.project[b].type == 2){
3836
+                            if (prescription.med_type == "14" && prescription.project[b].project.specail_project != 1) {
3837
+                              prescription.project.splice(b--,1)
3838
+                            }
3839
+                          }else if(prescription.project[b].type == 3){
3840
+                            if (prescription.med_type == "14" && prescription.project[b].good_info.is_special_diseases != 1) {
3841
+                              prescription.project.splice(b--,1)
3842
+                            }
3843
+                          }
3844
+                        }
3845
+                      }
3846
+
3696
 
3847
 
3697
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3848
                       for (let i = 0; i < response.data.data.sch_prescriptions.length; i++) {
3698
                         var prescription = response.data.data.sch_prescriptions[i]
3849
                         var prescription = response.data.data.sch_prescriptions[i]
3718
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3869
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3719
                             id: prescription.advices[b].drug_id,
3870
                             id: prescription.advices[b].drug_id,
3720
                             drug: prescription.advices[b].drug,
3871
                             drug: prescription.advices[b].drug,
3721
-                            groupno: index
3872
+                            groupno: index,
3873
+                            hosp_appr_flag: "1",
3874
+
3722
                           }
3875
                           }
3723
                           console.log('看看数据5:')
3876
                           console.log('看看数据5:')
3724
                           console.log(obj.prescribing_number_unit)
3877
                           console.log(obj.prescribing_number_unit)

+ 1 - 1
src/xt_pages/qcd/officesControlAnalysis/time.vue View File

551
          }
551
          }
552
          //第四季度
552
          //第四季度
553
          if( this.modetype ==0 && this.quarterType == 3){
553
          if( this.modetype ==0 && this.quarterType == 3){
554
-             this.startime = moment().month(8).startOf('month').format("YYYY-MM-DD")
554
+             this.startime = moment().month(9).startOf('month').format("YYYY-MM-DD")
555
              this.endtime = moment().month(11).endOf('month').format("YYYY-MM-DD")
555
              this.endtime = moment().month(11).endOf('month').format("YYYY-MM-DD")
556
          }
556
          }
557
          
557
          

+ 1 - 1
src/xt_pages/qcd/workAnalysis/nurse.vue View File

394
         GetNurseWorkloadTableData(params)
394
         GetNurseWorkloadTableData(params)
395
           .then(rs => {
395
           .then(rs => {
396
             var resp = rs.data
396
             var resp = rs.data
397
-
397
+            console.log("resp232323",resp)
398
             if (resp.state == 1) {
398
             if (resp.state == 1) {
399
 
399
 
400
               let total_cure = 0
400
               let total_cure = 0

+ 63 - 33
src/xt_pages/user/templateSummary.vue View File

672
               <el-form-item>
672
               <el-form-item>
673
                 <span>选择检验检查时间:</span>
673
                 <span>选择检验检查时间:</span>
674
                 <div>
674
                 <div>
675
-                  <!-- <el-form-item
676
-                   label="时间:"
677
-                   prop="startYear"
678
-                   style="width:100%;"
679
-                 >
680
-                 <el-date-picker
681
-                    @change="changeYear"
682
-                    v-model="startYear"
683
-                    class="timePicker"
684
-                    type="month"
685
-                    placeholder=""
686
-                    format="yyyy-MM"
687
-                    value-format="yyyy-MM">
688
-	               </el-date-picker>
689
-                 </el-form-item> -->
690
-                 <el-form-item>
675
+                
676
+                 <el-form-item label="时间:">
677
+                   <el-radio-group style="padding: 10px;"  v-model="radio" @change="changeRadio">
678
+                      <el-radio :label="1">月份</el-radio>
679
+                      <el-radio :label="2">季度</el-radio>
680
+                    </el-radio-group>
681
+                 </el-form-item>
682
+                 <el-form-item v-show="showquarty">
691
                     <el-select v-model="quartype" placeholder="请选择" @change="changetype">
683
                     <el-select v-model="quartype" placeholder="请选择" @change="changetype">
692
                       <el-option
684
                       <el-option
693
                         v-for="item in quarterType"
685
                         v-for="item in quarterType"
697
                       </el-option>
689
                       </el-option>
698
                     </el-select>
690
                     </el-select>
699
                  </el-form-item>
691
                  </el-form-item>
692
+                 <el-form-item v-show="showtime">
693
+                   <el-date-picker
694
+                      @change="changeYear"
695
+                      v-model="startYear"
696
+                      class="timePicker"
697
+                      type="month"
698
+                      placeholder=""
699
+                      format="yyyy-MM"
700
+                      value-format="yyyy-MM">
701
+                    </el-date-picker>
702
+                 </el-form-item>
700
                  <!-- <el-form-item  label="月份:"
703
                  <!-- <el-form-item  label="月份:"
701
                    prop="startYear"
704
                    prop="startYear"
702
                    style="width:100%;">
705
                    style="width:100%;">
956
         { id: 4, name: "第四季度"}
959
         { id: 4, name: "第四季度"}
957
        ],
960
        ],
958
        quartype:1,
961
        quartype:1,
962
+       radio:1,
963
+       showtime:true,
964
+       showquarty:false,
959
       }
965
       }
960
     },
966
     },
961
     created() {
967
     created() {
1041
 
1047
 
1042
       },
1048
       },
1043
       changeCurrentRecord(val){
1049
       changeCurrentRecord(val){
1044
-
1050
+        this.tableData = []
1045
         this.getInspectionDetai(val)
1051
         this.getInspectionDetai(val)
1046
       },
1052
       },
1047
       selectionChangeOne(val){
1053
       selectionChangeOne(val){
1185
       },
1191
       },
1186
       //获取大项数据来源
1192
       //获取大项数据来源
1187
       getInspectionMajor(){
1193
       getInspectionMajor(){
1188
-          console.log("type23232232",this.quartype)
1189
           var start_time = ""
1194
           var start_time = ""
1190
           var end_time = ""
1195
           var end_time = ""
1191
-          if(this.quartype == 1){
1192
-             start_time =  moment().startOf('year').format('YYYY-MM-DD')
1193
-             end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1194
-          }
1195
-          if(this.quartype == 2){
1196
-            start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")   
1197
-            end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1196
+          console.log("radio2332322332",this.radio)
1197
+          if(this.radio == 1){
1198
+            console.log("start_year",this.startYear)
1199
+            console.log("endyaer",this.lastYear)
1200
+            end_time = this.startYear
1201
+            start_time = this.lastYear
1198
           }
1202
           }
1199
-          if(this.quartype == 3){
1200
-            start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
1201
-            end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
1202
-          }
1203
-          if(this.quartype == 4){
1204
-             start_time = moment().month(8).startOf('month').format("YYYY-MM-DD")
1205
-             end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1203
+          if(this.radio == 2){
1204
+            if(this.quartype == 1){
1205
+              start_time =  moment().startOf('year').format('YYYY-MM-DD')
1206
+              end_time = moment().month(2).endOf('month').format("YYYY-MM-DD")
1207
+            }
1208
+            if(this.quartype == 2){
1209
+              start_time = moment().month(3).startOf('month').format("YYYY-MM-DD")   
1210
+              end_time = moment().month(5).endOf('month').format("YYYY-MM-DD")
1211
+            }
1212
+            if(this.quartype == 3){
1213
+              start_time = moment().month(6).startOf('month').format("YYYY-MM-DD")
1214
+              end_time = moment().month(8).endOf('month').format("YYYY-MM-DD")
1215
+            }
1216
+            if(this.quartype == 4){
1217
+              start_time = moment().month(9).startOf('month').format("YYYY-MM-DD")
1218
+              end_time = moment().month(11).endOf('month').format("YYYY-MM-DD")
1219
+            }
1206
           }
1220
           }
1221
+         
1222
+        
1207
           console.log("start_time",start_time)
1223
           console.log("start_time",start_time)
1208
           console.log("end_time",end_time)
1224
           console.log("end_time",end_time)
1209
           var params = {
1225
           var params = {
1224
       },
1240
       },
1225
       //获取小项的值
1241
       //获取小项的值
1226
       getInspectionDetai(val){
1242
       getInspectionDetai(val){
1243
+        console.log("val2332232",val)
1227
         var params = {
1244
         var params = {
1228
           project_id:val.project_id,
1245
           project_id:val.project_id,
1229
           patient_id:val.patient_id,
1246
           patient_id:val.patient_id,
1407
         })
1424
         })
1408
       },
1425
       },
1409
       getTemplateSummaryList(){
1426
       getTemplateSummaryList(){
1427
+        
1410
           var params = {
1428
           var params = {
1411
             patient_id:this.patient_id,
1429
             patient_id:this.patient_id,
1412
             start_time:this.start_time,
1430
             start_time:this.start_time,
1556
                  this.form.template_summary_id = list.template_summary_id
1574
                  this.form.template_summary_id = list.template_summary_id
1557
                }
1575
                }
1558
 
1576
 
1559
-               this.projectIndate = list.inspect_date
1577
+              //  this.projectIndate = list.inspect_date
1560
                this.projectStr = list.project_id
1578
                this.projectStr = list.project_id
1561
            }
1579
            }
1562
         })
1580
         })
1859
           })
1877
           })
1860
           .catch(() => {
1878
           .catch(() => {
1861
           })
1879
           })
1880
+     },
1881
+     changeRadio(val){
1882
+       if(val == 1){
1883
+         this.showtime = true
1884
+         this.showquarty = false
1885
+         this.getInspectionMajor()
1886
+       }
1887
+       if(val == 2){
1888
+         this.showquarty = true
1889
+         this.showtime = false
1890
+         this.getInspectionMajor()
1891
+       }
1862
      }
1892
      }
1863
 
1893
 
1864
     },
1894
     },

+ 71 - 19
src/xt_pages/workforce/components/nextTableWeeks.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <div class="cell clearfix" style="float: right">
3
     <div class="cell clearfix" style="float: right">
4
+      <el-button
5
+        style="float: right"
6
+        size="small"
7
+        icon="el-icon-printer"
8
+        @click="signPrint()"
9
+        type="primary"
10
+       >标签打印
11
+      </el-button>
4
       <el-button
12
       <el-button
5
         style="float: right"
13
         style="float: right"
6
         size="small"
14
         size="small"
138
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
146
       <el-table-column label="透析器/灌流器" min-width="100" align="center">
139
         <template slot-scope="scope">
147
         <template slot-scope="scope">
140
           <span v-if="org_id!=9987" >
148
           <span v-if="org_id!=9987" >
141
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus!=''">
142
-                <span v-if="org_id!=10131">{{ scope.row.prescription.dialyzer_perfusion_apparatus }}</span>
143
-                <span v-if="org_id ==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span>
149
+             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus!=''">
150
+                <span v-if="org_id!=10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
151
+                <span v-if="org_id==10131">{{ scope.row.dialysissolution.dialyzer_perfusion_apparatus }}</span>
152
+                <!-- <span v-if="org_id ==10131">{{getDialysisDialyszerPerfusionOne(scope.row.patient_id)}}</span> -->
144
               </span> 
153
               </span> 
145
-             <span v-if="scope.row.prescription.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span> 
154
+             <span v-if="scope.row.dialysissolution.dialyzer_perfusion_apparatus =='' && scope.row.dialysissolution.length>0 ">{{ getDialysisDialyszerPerfusion(scope.row.patient_id) }}</span> 
146
           </span>
155
           </span>
147
-          {{scope.row.prescription.dialysis_dialyszers}}
148
-         <span v-if="scope.row.prescription.dialysis_dialyszers!='' && scope.row.prescription.dialysis_irrigation!=''">/</span>
149
-          <span v-if="scope.row.prescription.dialysis_irrigation!=''">{{scope.row.prescription.dialysis_irrigation}}</span>
156
+          {{scope.row.dialysissolution.dialysis_dialyszers}}
157
+         <span v-if="scope.row.dialysissolution.dialysis_dialyszers!='' && scope.row.dialysissolution.dialysis_irrigation!=''">/</span>
158
+          <span v-if="scope.row.dialysissolution.dialysis_irrigation!=''">{{scope.row.dialysissolution.dialysis_irrigation}}</span>
150
         </template>
159
         </template>
151
       </el-table-column>
160
       </el-table-column>
152
       <el-table-column label="抗凝剂(商品名称)" min-width="100" align="center">
161
       <el-table-column label="抗凝剂(商品名称)" min-width="100" align="center">
153
         <template slot-scope="scope">
162
         <template slot-scope="scope">
154
-          <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
155
-          <span v-if="scope.row.prescription.anticoagulant === 2">普通肝素</span>
156
-          <span v-if="scope.row.prescription.anticoagulant === 3" >低分子肝素</span>
157
-          <span v-if="scope.row.prescription.anticoagulant === 4">阿加曲班</span>
158
-          <span v-if="scope.row.prescription.anticoagulant === 5">枸橼酸钠</span>
159
-          <span v-if="scope.row.prescription.anticoagulant === 6">低分子肝素钙</span>
160
-          <span v-if="scope.row.prescription.anticoagulant === 7">低分子肝素钠</span>
163
+          <span v-if="scope.row.dialysissolution.anticoagulant === 1">无肝素</span>
164
+          <span v-if="scope.row.dialysissolution.anticoagulant === 2">普通肝素</span>
165
+          <span v-if="scope.row.dialysissolution.anticoagulant === 3" >低分子肝素</span>
166
+          <span v-if="scope.row.dialysissolution.anticoagulant === 4">阿加曲班</span>
167
+          <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
168
+          <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
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>
161
          <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
174
          <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
162
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
175
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
163
           </span>
176
           </span>
200
               ? scope.row.prescription.anticoagulant_zongliang + "iu"
213
               ? scope.row.prescription.anticoagulant_zongliang + "iu"
201
               : ""
214
               : ""
202
           }}</span>
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>
203
         </template>
236
         </template>
204
       </el-table-column>
237
       </el-table-column>
205
 
238
 
337
         //   week_type:this.week_type,
370
         //   week_type:this.week_type,
338
         //   week_time:this.week_time,
371
         //   week_time:this.week_time,
339
         // }
372
         // }
340
-     
373
+      console.log("params",params)
341
       getNextScheduleWeekDay(params).then(response => {
374
       getNextScheduleWeekDay(params).then(response => {
342
         this.scheduleData = [];
375
         this.scheduleData = [];
343
         if (response.data.state == 1) {
376
         if (response.data.state == 1) {
611
     changeZone(val){
644
     changeZone(val){
612
       this.zone = val
645
       this.zone = val
613
       this.getNextScheduleWeekDay()
646
       this.getNextScheduleWeekDay()
647
+    },
648
+    signPrint() {
649
+        var zone = this.zone
650
+        var newArr = []
651
+        for(let i=0;i<this.zoneList.length;i++){
652
+           newArr.push(this.zoneList[i].id)
653
+        }
654
+        var arr = newArr.join(",")
655
+        var str = ""
656
+        if(this.zone == 0){
657
+           str = arr  
658
+        }
659
+        if(zone != 0){
660
+          str = zone.join(",")
661
+        }
662
+        this.$router.push({
663
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+2
664
+        })
614
     }
665
     }
615
   },
666
   },
616
   components: {
667
   components: {
619
   created() {
670
   created() {
620
     this.modeOptions = this.$store.getters.treatment_mode;
671
     this.modeOptions = this.$store.getters.treatment_mode;
621
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
672
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
622
-    this.week_type = new Date().getDay();
623
-    if (this.week_type == 0) {
624
-      this.week_type = 7;
625
-    }
673
+    // this.week_type = new Date().getDay();
674
+    // console.log("hhhh23232332",this.week_type)
675
+    // if (this.week_type == 0) {
676
+    //   this.week_type = 7;
677
+    // }
626
     this.getAllZoneList()
678
     this.getAllZoneList()
627
     this.org_id = this.$store.getters.xt_user.org.id
679
     this.org_id = this.$store.getters.xt_user.org.id
628
    
680
    

+ 37 - 33
src/xt_pages/workforce/components/tableWeeks.vue View File

234
 
234
 
235
             <el-table-column label="抗凝剂(商品名称)" min-width="70" align="center">
235
             <el-table-column label="抗凝剂(商品名称)" min-width="70" align="center">
236
                 <template slot-scope="scope">
236
                 <template slot-scope="scope">
237
-                    <span v-if="scope.row.prescription.anticoagulant === 1">无肝素</span>
238
-                    <span v-if="scope.row.prescription.anticoagulant === 2">普通肝素</span>
239
-                    <span v-if="scope.row.prescription.anticoagulant === 3">低分子肝素</span>
240
-                    <span v-if="scope.row.prescription.anticoagulant === 4">阿加曲班</span>
241
-                    <span v-if="scope.row.prescription.anticoagulant === 5">枸橼酸钠</span>
242
-                    <span v-if="scope.row.prescription.anticoagulant === 6">低分子肝素钙</span>
243
-                    <span v-if="scope.row.prescription.anticoagulant === 7">低分子肝素钠</span>
244
-                    <span v-if="scope.row.prescription.antioxidant_commodity_name!=''">
237
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 1">无肝素</span>
238
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 2">普通肝素</span>
239
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 3">低分子肝素</span>
240
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 4">阿加曲班</span>
241
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 5">枸橼酸钠</span>
242
+                    <span v-if="scope.row.dialysissolution.anticoagulant === 6">低分子肝素钙</span>
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
+                       
249
+                    <span v-if="scope.row.dialysissolution.antioxidant_commodity_name!=''">
245
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
250
              (<span>{{scope.row.prescription.antioxidant_commodity_name}}</span>)
246
           </span>
251
           </span>
247
                 </template>
252
                 </template>
248
             </el-table-column>
253
             </el-table-column>
249
             <el-table-column label="总量" min-width="100" align="center">
254
             <el-table-column label="总量" min-width="100" align="center">
250
                 <template slot-scope="scope">
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
           }}</span>
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
           }}</span>
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
           }}</span>
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
           }}</span>
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
           }}</span>
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
           }}</span>
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
                 </template>
291
                 </template>
288
             </el-table-column>
292
             </el-table-column>
289
 
293
 
887
           str = zone.join(",")
891
           str = zone.join(",")
888
         }
892
         }
889
         this.$router.push({
893
         this.$router.push({
890
-          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status
894
+          path: '/schedule/remind/print/setting?week_type=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + str + '&prestatus=' + this.pre_status+"&type="+1
891
         })
895
         })
892
       }
896
       }
893
       ,
897
       ,

+ 14 - 10
src/xt_pages/workforce/next_remind_print.vue View File

64
                  <span v-if="org_id!=9987">
64
                  <span v-if="org_id!=9987">
65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> 
65
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus!=''"> 
66
                         <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
66
                         <span v-if="org_id!=10131">{{main_collection.prescription.dialyzer_perfusion_apparatus}}</span> 
67
-                        <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span> 
68
-                         <!-- <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span> -->
67
+                        <!-- <span v-if="org_id==10131">{{getDialysisDialyszerPerfusionOne(main_collection.prescription.patient_id)}}</span>  -->
68
+                         <span v-if="org_id==10131 || org_id==9671">{{main_collection.dialysissolution.dialyzer_perfusion_apparatus}}</span>
69
                      </span>
69
                      </span>
70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
70
                      <span v-if="main_collection.prescription.dialyzer_perfusion_apparatus ==''&& main_collection.dialysissolution.length>0">{{getDialysisDialyszerPerfusion(main_collection.patient_id)}}</span> 
71
                   </span>
71
                   </span>
81
                   </span>
81
                   </span>
82
                 </td>
82
                 </td>
83
                 <td :width="td_1_width"  v-if="printObj.anticoagulant_zongliang == 1">
83
                 <td :width="td_1_width"  v-if="printObj.anticoagulant_zongliang == 1">
84
-                  <span v-if="main_collection.prescription.anticoagulant == 1">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
85
-                  <span v-if="main_collection.prescription.anticoagulant == 2">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
86
-                  <span v-if="main_collection.prescription.anticoagulant == 3">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
87
-                  <span v-if="main_collection.prescription.anticoagulant == 4">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
88
-                  <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
89
-                  <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
90
-                  <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
84
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
85
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
86
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 3">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
87
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 4">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
88
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 5">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
89
+                  <span v-if="main_collection.dialysissolution.anticoagulant == 6">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
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
                 </td>
95
                 </td>
92
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
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
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
98
                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
95
                 </td>
99
                 </td>
96
               </tr>
100
               </tr>

+ 17 - 1
src/xt_pages/workforce/remind.vue View File

24
 </template>
24
 </template>
25
 
25
 
26
 <script>
26
 <script>
27
-import {getWeekPanels} from '@/api/schedule';
27
+import {getWeekPanels,getNextWeekPanels} from '@/api/schedule';
28
 import tableWeeks from './components/tableWeeks'
28
 import tableWeeks from './components/tableWeeks'
29
 import nextTableWeeks from './components/nextTableWeeks'
29
 import nextTableWeeks from './components/nextTableWeeks'
30
 import tablePush from './components/tablePush'
30
 import tablePush from './components/tablePush'
31
 import BreadCrumb from '../components/bread-crumb'
31
 import BreadCrumb from '../components/bread-crumb'
32
+const moment = require('moment')
32
 export default {
33
 export default {
33
     name:'remind',
34
     name:'remind',
34
      data() {
35
      data() {
69
       },
70
       },
70
       changeActiveName(val){
71
       changeActiveName(val){
71
         this.activeName = val
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
     created(){
89
     created(){
75
         this.getWeekPanels();
90
         this.getWeekPanels();
91
+        this.getNextWeekPanels()
76
     },
92
     },
77
     watch:{
93
     watch:{
78
       activeName:function(val){
94
       activeName:function(val){

+ 5 - 1
src/xt_pages/workforce/remind_print.vue View File

74
 
74
 
75
                 </td>
75
                 </td>
76
                 <td :width="td_1_width" v-if="printObj.anticoagulant == 1">
76
                 <td :width="td_1_width" v-if="printObj.anticoagulant == 1">
77
-                  {{ main_collection.prescription.anticoagulant ? anticoagulants_confit[main_collection.prescription.anticoagulant].name : ''}}
77
+                  {{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}
78
                   <span v-if="main_collection.prescription.antioxidant_commodity_name!=''">
78
                   <span v-if="main_collection.prescription.antioxidant_commodity_name!=''">
79
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
79
                     (<span>{{main_collection.prescription.antioxidant_commodity_name}}</span>)
80
                   </span>
80
                   </span>
87
                   <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
87
                   <span v-if="main_collection.prescription.anticoagulant == 5">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'mg':''}}</span>
88
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
88
                   <span v-if="main_collection.prescription.anticoagulant == 6">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
89
                   <span v-if="main_collection.prescription.anticoagulant == 7">{{main_collection.prescription.anticoagulant_zongliang?main_collection.prescription.anticoagulant_zongliang+'iu':''}}</span>
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
                 </td>
94
                 </td>
91
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
95
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
92
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
96
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>

+ 80 - 10
src/xt_pages/workforce/remind_print_setting.vue View File

21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
21
             <div v-for="(main_collection,index) in scheduleData" :key="index" style="page-break-after: always;">
22
               <div class="signPrint">
22
               <div class="signPrint">
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
23
                 <div>分区/床位号:{{main_collection.zone.name}}/{{main_collection.number.number}}</div> 
24
-                <div>姓名:{{main_collection.patient.name}}</div> 
24
+                <div>姓名:
25
+                  <span v-if="type ==1">{{main_collection.patient.name}} </span> 
26
+                  <span v-if="type ==2">{{main_collection.patient}} </span> 
27
+                </div> 
25
                 <div>抗凝剂: 
28
                 <div>抗凝剂: 
26
                   <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
29
                   <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
27
                   <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
30
                   <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
51
 </template>
54
 </template>
52
 
55
 
53
 <script>
56
 <script>
54
-  import { getScheduleList,getPrintList } from '@/api/schedule'
57
+  import { getScheduleList,getPrintList,getNextScheduleWeekDay } from '@/api/schedule'
55
   import { parseTime } from '@/utils'
58
   import { parseTime } from '@/utils'
56
   import { uParseTime } from '@/utils/tools'
59
   import { uParseTime } from '@/utils/tools'
57
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
60
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
81
         now_time:0,
84
         now_time:0,
82
         zone:"",
85
         zone:"",
83
         pre_status:0,
86
         pre_status:0,
84
-        printObj:{}
87
+        printObj:{},
88
+        type:1,
85
       }
89
       }
86
     },
90
     },
87
     components: {
91
     components: {
88
       BreadCrumb
92
       BreadCrumb
89
     },
93
     },
90
     created() {
94
     created() {
95
+      console.log("type2323233223232",this.$route.query.type)  
96
+     this.type = this.$route.query.type
91
      this.getPrintList()
97
      this.getPrintList()
92
      this.org_id = this.$store.getters.xt_user.org.id
98
      this.org_id = this.$store.getters.xt_user.org.id
93
      this.currentDate = this.getCurrentDate()
99
      this.currentDate = this.getCurrentDate()
94
    
100
    
95
-      this.modeOptions = this.$store.getters.treatment_mode
96
-      this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
97
-      this.week_type = this.$route.query.week_type
98
-      this.week_time  = this.$route.query.week_time
99
-      this.zone = this.$route.query.zone
100
-      this.pre_status = this.$route.query.prestatus
101
-     const params = {
101
+     this.modeOptions = this.$store.getters.treatment_mode
102
+     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
103
+    this.week_type = this.$route.query.week_type
104
+    this.week_time  = this.$route.query.week_time
105
+    this.zone = this.$route.query.zone
106
+    this.pre_status = this.$route.query.prestatus
107
+    
108
+    if(parseInt(this.$route.query.type) == 1){
109
+      const params = {
102
           week_type:this.week_type,
110
           week_type:this.week_type,
103
           week_time:this.week_time,
111
           week_time:this.week_time,
104
           zone:this.zone,
112
           zone:this.zone,
152
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
160
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
153
       console.log("now",now_time)
161
       console.log("now",now_time)
154
       this.now_time = now_time
162
       this.now_time = now_time
163
+    }
164
+    if(parseInt(this.$route.query.type) == 2){
165
+       this.getNextScheduleWeekDay()
166
+    }
167
+    
155
     },
168
     },
156
     methods: {
169
     methods: {
157
       getAdvice:function(doctor_advice) {
170
       getAdvice:function(doctor_advice) {
305
            this.printObj = list
318
            this.printObj = list
306
          }
319
          }
307
       })
320
       })
321
+     },
322
+    getNextScheduleWeekDay() {
323
+        const start = moment().weekday(1).format('YYYY-MM-DD'); //本周一
324
+        const end = moment().weekday(7).format('YYYY-MM-DD')
325
+        var zone = this.zone
326
+        // var newArr = []
327
+        // for(let i=0;i<this.zoneList.length;i++){
328
+        //    newArr.push(this.zoneList[i].id)
329
+        // }
330
+        // var arr = newArr.join(",")
331
+        // var str = ""
332
+        // if(this.zone == 0){
333
+        //    str = arr  
334
+        // }
335
+        // if(zone != 0){
336
+        //   str = zone.join(",")
337
+        // }
338
+        const params = {
339
+          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
340
+          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
341
+          week_type:this.week_type,
342
+          week_time:this.week_time,
343
+          zone:this.zone,
344
+        }
345
+        // const params = {
346
+        //   start_time:1609603200,
347
+        //   end_time:1610208000,
348
+        //   week_type:this.week_type,
349
+        //   week_time:this.week_time,
350
+        // }
351
+      console.log("params",params)
352
+      getNextScheduleWeekDay(params).then(response => {
353
+        this.scheduleData = [];
354
+        if (response.data.state == 1) {
355
+          var scheduleData = response.data.data.schedule;
356
+      
357
+          for(let i=0;i<scheduleData.length;i++){
358
+              scheduleData[i].sort = scheduleData[i].number.sort
359
+          }
360
+            var arr =   scheduleData.sort(this.compare('sort'))
361
+            console.log("元旦快乐",arr)
362
+            this.scheduleData = arr
363
+          
364
+            // var newList = []
365
+            // for(let i=0;i<scheduleData.length;i++){
366
+            //   if(scheduleData.prescription.id > 0){
367
+            //      newList.push(scheduleData[i])
368
+            //   } 
369
+            // }
370
+            // var arr =   newList.sort(this.compare('sort'))
371
+            // console.log("元旦快乐",arr)
372
+            // this.scheduleData = arr 
373
+        } else {
374
+          this.$message.error("网络错误");
375
+          return false;
376
+        }
377
+      });
308
      }
378
      }
309
     }
379
     }
310
   }
380
   }