Kaynağa Gözat

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 yıl önce
ebeveyn
işleme
15b49d7ebf

+ 2 - 1
src/store/modules/globalConfig.js Dosyayı Görüntüle

@@ -187,7 +187,8 @@ const global_config = {
187 187
       {
188 188
         id: 12,
189 189
         name: '退休人员'
190
-      }
190
+      },
191
+    
191 192
     ],
192 193
     induction_options: [ // 诱导期
193 194
       {

+ 9 - 3
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -1159,8 +1159,7 @@
1159 1159
         }
1160 1160
 
1161 1161
         this.assessmentBeforeDislysis.pathway_formation_time = moment(new Date()).format('YYYY-MM-DD')
1162
-        console.log(" this.assessmentBeforeDislysis.pathway_formation_time", moment(new Date()).format('YYYY-MM-DD'))
1163
-        console.log("hhahhahahah",assessment)
1162
+        
1164 1163
         if(assessment!=null){
1165 1164
           if(assessment.pathway_formation_time >0){
1166 1165
             this.assessmentBeforeDislysis.pathway_formation_time =  this.getTimeOne(assessment.pathway_formation_time)
@@ -1175,7 +1174,7 @@
1175 1174
             this.assessmentBeforeDislysis.lien_necessary = assessment.lien_necessary.toString()
1176 1175
           }
1177 1176
         }
1178
-
1177
+       
1179 1178
 
1180 1179
 
1181 1180
 
@@ -1256,6 +1255,13 @@
1256 1255
             }
1257 1256
           }
1258 1257
 
1258
+        console.log("hhahhahahah",lastAssessment)
1259
+        if (lastAssessment !=null) {
1260
+          this.assessmentBeforeDislysis.blood_access_part_opera_id = lastAssessment.blood_access_part_opera_id
1261
+          this.assessmentBeforeDislysis.blood_access_part_id = lastAssessment.blood_access_part_id
1262
+           
1263
+        }
1264
+
1259 1265
         } else {
1260 1266
           console.log("为首务2322323",this.assessmentBeforeDislysis.period)
1261 1267
           this.assessmentBeforeDislysis.period = this.assessmentBeforeDislysis.period.toString()

+ 11 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -138,7 +138,7 @@
138 138
                     </el-col>
139 139
 
140 140
                     <el-col :span="8"
141
-                            v-if="isShows('处方脱水量')">
141
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id != 10597">
142 142
                         <el-form-item label="处方脱水量(ml):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
143 143
                             <el-input
144 144
                                     type="number"
@@ -147,6 +147,16 @@
147 147
                         </el-form-item>
148 148
                     </el-col>
149 149
 
150
+                    <el-col :span="8"
151
+                            v-if="isShows('处方脱水量') && this.$store.getters.xt_user.template_info.org_id == 10597">
152
+                        <el-form-item label="处方脱水量(L):" prop="prescription_water" :rules="isCheckmust('处方脱水量')">
153
+                            <el-input
154
+                                    type="number"
155
+                                    v-model="dialysisPrescription.prescription_water"
156
+                            ></el-input>
157
+                        </el-form-item>
158
+                    </el-col>
159
+
150 160
                     <el-col :span="8"
151 161
                             v-if="isShows('加糖')">
152 162
                         <el-form-item label="加糖:" prop="prescription_water" :rules="isCheckmust('加糖')">

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Dosyayı Görüntüle

@@ -84,9 +84,9 @@
84 84
               </el-form>
85 85
               <div class="tabsBox">
86 86
 
87
-                  <el-button v-if="dayorMonth == 'day'" type="text" class="addTab" @click="addCharges"
88
-                             icon="el-icon-circle-plus">附加收费
89
-                  </el-button>
87
+<!--                  <el-button v-if="dayorMonth == 'day'" type="text" class="addTab" @click="addCharges"-->
88
+<!--                             icon="el-icon-circle-plus">附加收费-->
89
+<!--                  </el-button>-->
90 90
                   <div class="RP" v-if="dayorMonth == 'month'">Rp
91 91
                       <el-date-picker
92 92
                               v-model="start_time"

+ 154 - 12
src/xt_pages/outpatientTool/components/detail.vue Dosyayı Görüntüle

@@ -33,7 +33,7 @@
33 33
                       value-format="yyyy-MM-dd"
34 34
                       range-separator="至"
35 35
                       start-placeholder="开始日期"
36
-                      @change="changeDate"
36
+                      @change="handleDateChangetwo"
37 37
                       end-placeholder="结束日期">
38 38
               </el-date-picker>
39 39
               <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
@@ -115,6 +115,19 @@ export default {
115 115
   },
116 116
   data() {
117 117
     return {
118
+      pickerOptions: {
119
+        disabledDate(time) {
120
+          // 获取当前日期
121
+          const now = new Date();
122
+
123
+          // 设置一个月后的日期
124
+          const oneMonthLater = new Date();
125
+          oneMonthLater.setMonth(oneMonthLater.getMonth() + 1);
126
+
127
+          // 如果当前日期在一个月后之后,则禁用
128
+          return time.getTime() > oneMonthLater.getTime() || time.getTime() < now.getTime();
129
+        },
130
+      },
118 131
       detail_loading: false,
119 132
       tempArr: [],
120 133
       pos: 0,
@@ -134,6 +147,51 @@ export default {
134 147
     }
135 148
   },
136 149
   methods: {
150
+    handleDateChangetwo(value) {
151
+      this.$confirm('提示', '接口优化升级,如有数据需要,请联系客服!', {
152
+        confirmButtonText: '确 定',
153
+        cancelButtonText: '取 消',
154
+        type: 'warning'
155
+      }).then(() => {
156
+
157
+
158
+      }).catch(() => {
159
+      })
160
+
161
+      // let start_time = this.chargeDate[0]
162
+      // let end_time = this.chargeDate[1]
163
+      // const dateObj1 = new Date(start_time);
164
+      // const dateObj2 = new Date(end_time);
165
+      //
166
+      // // 计算两个日期之间的月份差
167
+      // const monthDifference = (dateObj2.getFullYear() - dateObj1.getFullYear()) * 12 +
168
+      //   (dateObj2.getMonth() - dateObj1.getMonth());
169
+      // if (monthDifference >= 1){
170
+      //   this.$message.error("时间间隔不能超出一个月")
171
+      //   return
172
+      // }else{
173
+      //   this.getSummaryDetailList()
174
+      // }
175
+
176
+    },
177
+
178
+    handleDateChange(value) {
179
+      let start_time = this.chargeDate[0]
180
+      let end_time = this.chargeDate[1]
181
+      const dateObj1 = new Date(start_time);
182
+      const dateObj2 = new Date(end_time);
183
+
184
+      // 计算两个日期之间的月份差
185
+      const monthDifference = (dateObj2.getFullYear() - dateObj1.getFullYear()) * 12 +
186
+        (dateObj2.getMonth() - dateObj1.getMonth());
187
+      if (monthDifference >= 1){
188
+        this.$message.error("时间间隔不能超出一个月")
189
+        return
190
+      }else{
191
+        this.getSummaryDetailListtwo()
192
+      }
193
+
194
+    },
137 195
     Action(){
138 196
       var that = this
139 197
       axios.get('http://127.0.0.1:9531/handelExcel', {
@@ -219,15 +277,106 @@ export default {
219 277
       return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
220 278
     },
221 279
     changeDate() {
222
-      this.getSummaryDetailList()
280
+      this.getSummaryDetailListtwo()
223 281
     },
224 282
     changeItem() {
225
-      this.getSummaryDetailList()
283
+      this.getSummaryDetailListtwo()
226 284
     },
227 285
     searchAction() {
228 286
       this.item_type = '0'
229
-      this.getSummaryDetailList()
287
+      this.getSummaryDetailListtwo()
288
+
289
+    },  getSummaryDetailListtwo() {
290
+      this.detail_loading = true
291
+      let start_time = this.chargeDate[0]
292
+      let end_time = this.chargeDate[1]
293
+      let params = {
294
+        start_time: start_time,
295
+        end_time: end_time,
296
+        type: this.item_type,
297
+        keyword: this.keywords
298
+      }
299
+      GetSummaryDetail(params).then(response => {
300
+        if (response.data.state == 0) {
301
+          this.detail_loading = false
302
+
303
+          this.$message.error(response.data.msg)
304
+          return false
305
+        } else {
306
+          this.detail_loading = false
307
+
308
+          this.$confirm('提示', '接口优化升级,如有数据需要,请联系客服!', {
309
+            confirmButtonText: '确 定',
310
+            cancelButtonText: '取 消',
311
+            type: 'warning'
312
+          }).then(() => {
313
+
314
+
315
+          }).catch(() => {
316
+          })
317
+
318
+
319
+        }
320
+
321
+
322
+
323
+
324
+        //
325
+        // console.log('去重前')
326
+        // console.log(advice)
327
+        // console.log(project)
328
+        // //
329
+        // //
330
+
331
+        // //
332
+        // console.log('去重后')
333
+        //
334
+        // console.log(advice.length)
335
+        // console.log(project.length)
336
+        //
337
+        // for (let i = 0; i < project.length; i++) {
338
+        //   let obj = {}
339
+        //   let count = 0
340
+        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
341
+        //     if (project[i].patient_id == tempPatientsTwo[a].patient_id && project[i].item_id == tempPatientsTwo[a].item_id && project[i].price == tempPatientsTwo[a].price) {
342
+        //       count = count + tempPatientsTwo[a].count
343
+        //       obj['count'] = count
344
+        //
345
+        //     }
346
+        //     obj['price'] = project[i].price
347
+        //     obj['type'] = project[i].type
348
+        //     obj['item_name'] = project[i].item_name
349
+        //     obj['item_id'] = project[i].item_id
350
+        //     obj['name'] = project[i].name
351
+        //     obj['patient_id'] = project[i].patient_id
352
+        //     obj['count'] = count
353
+        //     this.tableData.push(obj)
354
+        //   }
355
+        // }
356
+        //
357
+        //
358
+        // for (let i = 0; i < advice.length; i++) {
359
+        //   let obj = {}
360
+        //   let count = 0
361
+        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
362
+        //     if (advice[i].patient_id == tempPatientsTwo[a].patient_id && advice[i].item_id == tempPatientsTwo[a].item_id && advice[i].price == tempPatientsTwo[a].price) {
363
+        //       count = count + tempPatientsTwo[a].count
364
+        //       obj['count'] = count
365
+        //
366
+        //     }
367
+        //     obj['price'] = advice[i].price
368
+        //     obj['type'] = advice[i].type
369
+        //     obj['item_name'] = advice[i].item_name
370
+        //     obj['item_id'] = advice[i].item_id
371
+        //     obj['name'] = advice[i].name
372
+        //     obj['patient_id'] = advice[i].patient_id
373
+        //     this.tableData.push(obj)
374
+        //   }
375
+        // }
376
+        // console.log(this.tableData.length)
377
+        // this.tableData = this.sort(this.tableData)
230 378
 
379
+      })
231 380
     },
232 381
     getSummaryDetailList() {
233 382
       this.detail_loading = true
@@ -402,7 +551,6 @@ export default {
402 551
             }
403 552
             tempPatientsTwo[i]['total'] = total
404 553
           }
405
-          console.log('tempPatientsTwo', tempPatientsTwo)
406 554
           for (let i = 0; i < tempPatientsTwo.length; i++) {
407 555
             // console.log(111,tempPatientsTwo[i].total)
408 556
             if (tempPatientsTwo[i].new_order_info.length > 0) {
@@ -442,12 +590,10 @@ export default {
442 590
 
443 591
           // console.log(tempPatientsTwo.length)
444 592
           //
445
-          console.log(order_infos)
446 593
           let advices = []
447 594
           let projects = []
448 595
           let goods = []
449 596
           for(let i = 0; i < order_infos.length; i++){
450
-            console.log(order_infos[i])
451 597
             if(order_infos[i].advice_id > 0 && order_infos[i].project_id == 0){
452 598
               advices.push(order_infos[i].advice)
453 599
             }
@@ -463,9 +609,6 @@ export default {
463 609
             }
464 610
           }
465 611
 
466
-          console.log(advices)
467
-          console.log(projects)
468
-          console.log(goods)
469 612
 
470 613
         }
471 614
 
@@ -642,7 +785,6 @@ export default {
642 785
           sums[index] = '合计'
643 786
           return
644 787
         }
645
-        console.log(data)
646 788
         const values = data.map(item => Number(item[column.property]))
647 789
         if (column.property === 'total') {
648 790
           // sums[index] = values.reduce((prev, curr) => {
@@ -668,7 +810,7 @@ export default {
668 810
     }
669 811
   },
670 812
   created() {
671
-    this.getSummaryDetailList()
813
+    this.getSummaryDetailListtwo()
672 814
 
673 815
   }
674 816
 }

+ 122 - 5
src/xt_pages/outpatientTool/components/gather.vue Dosyayı Görüntüle

@@ -30,7 +30,7 @@
30 30
             value-format="yyyy-MM-dd"
31 31
             range-separator="至"
32 32
             start-placeholder="开始日期"
33
-            @change="changeDate"
33
+            @change="changeDatetwo"
34 34
             end-placeholder="结束日期">
35 35
         </el-date-picker>
36 36
         <!--<el-radio v-model="radio" label="1">明细</el-radio>-->
@@ -142,17 +142,122 @@ export default {
142 142
     uniqueTwo(arr) {
143 143
       const res = new Map()
144 144
       return arr.filter((arr) => !res.has(arr) && res.set(arr, 1))
145
+    },  changeDatetwo() {
146
+      // console.log(this.chargeDate)
147
+      this.$confirm('提示', '接口优化升级,如有数据需要,请联系客服!', {
148
+        confirmButtonText: '确 定',
149
+        cancelButtonText: '取 消',
150
+        type: 'warning'
151
+      }).then(() => {
152
+
153
+
154
+      }).catch(() => {
155
+      })
145 156
     },
146 157
     changeDate() {
147 158
       // console.log(this.chargeDate)
148
-      this.getSummaryDetailList()
159
+      this.getSummaryDetailListtwo()
149 160
     },
150 161
     changeItem() {
151
-      this.getSummaryDetailList()
162
+      this.getSummaryDetailListtwo()
152 163
     },
153 164
     searchAction() {
154 165
       this.item_type = '0'
155
-      this.getSummaryDetailList()
166
+      this.getSummaryDetailListtwo()
167
+    },getSummaryDetailListtwo() {
168
+      this.gather_loading = true
169
+      let start_time = this.chargeDate[0]
170
+      let end_time = this.chargeDate[1]
171
+      let params = {
172
+        start_time: start_time,
173
+        end_time: end_time,
174
+        type: this.item_type,
175
+        keyword: this.keywords
176
+      }
177
+      GetSummaryDetail(params).then(response => {
178
+        if (response.data.state == 0) {
179
+          this.gather_loading = false
180
+
181
+          this.$message.error(response.data.msg)
182
+          return false
183
+        } else {
184
+          this.gather_loading = false
185
+
186
+          this.$confirm('提示', '接口优化升级,如有数据需要,请联系客服!', {
187
+            confirmButtonText: '确 定',
188
+            cancelButtonText: '取 消',
189
+            type: 'warning'
190
+          }).then(() => {
191
+
192
+
193
+          }).catch(() => {
194
+          })
195
+
196
+
197
+
198
+
199
+          // this.tableData = tempPatientsTwo
200
+
201
+          // console.log(tempPatientsTwo.length)
202
+          //
203
+
204
+        }
205
+        //
206
+        // console.log('去重前')
207
+        // console.log(advice)
208
+        // console.log(project)
209
+        // //
210
+        // //
211
+
212
+        // //
213
+        // console.log('去重后')
214
+        //
215
+        // console.log(advice.length)
216
+        // console.log(project.length)
217
+        //
218
+        // for (let i = 0; i < project.length; i++) {
219
+        //   let obj = {}
220
+        //   let count = 0
221
+        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
222
+        //     if (project[i].patient_id == tempPatientsTwo[a].patient_id && project[i].item_id == tempPatientsTwo[a].item_id && project[i].price == tempPatientsTwo[a].price) {
223
+        //       count = count + tempPatientsTwo[a].count
224
+        //       obj['count'] = count
225
+        //
226
+        //     }
227
+        //     obj['price'] = project[i].price
228
+        //     obj['type'] = project[i].type
229
+        //     obj['item_name'] = project[i].item_name
230
+        //     obj['item_id'] = project[i].item_id
231
+        //     obj['name'] = project[i].name
232
+        //     obj['patient_id'] = project[i].patient_id
233
+        //     obj['count'] = count
234
+        //     this.tableData.push(obj)
235
+        //   }
236
+        // }
237
+        //
238
+        //
239
+        // for (let i = 0; i < advice.length; i++) {
240
+        //   let obj = {}
241
+        //   let count = 0
242
+        //   for (let a = 0; a < tempPatientsTwo.length; a++) {
243
+        //     if (advice[i].patient_id == tempPatientsTwo[a].patient_id && advice[i].item_id == tempPatientsTwo[a].item_id && advice[i].price == tempPatientsTwo[a].price) {
244
+        //       count = count + tempPatientsTwo[a].count
245
+        //       obj['count'] = count
246
+        //
247
+        //     }
248
+        //     obj['price'] = advice[i].price
249
+        //     obj['type'] = advice[i].type
250
+        //     obj['item_name'] = advice[i].item_name
251
+        //     obj['item_id'] = advice[i].item_id
252
+        //     obj['name'] = advice[i].name
253
+        //     obj['patient_id'] = advice[i].patient_id
254
+        //     this.tableData.push(obj)
255
+        //   }
256
+        // }
257
+        // console.log(this.tableData.length)
258
+        // this.tableData = this.sort(this.tableData)
259
+
260
+      })
156 261
     },
157 262
     getSummaryDetailList() {
158 263
       this.gather_loading = true
@@ -171,6 +276,18 @@ export default {
171 276
           this.$message.error(response.data.msg)
172 277
           return false
173 278
         } else {
279
+
280
+          this.$confirm('提示', '接口优化升级,如有数据需要,请联系客服!', {
281
+            confirmButtonText: '确 定',
282
+            cancelButtonText: '取 消',
283
+            type: 'warning'
284
+          }).then(() => {
285
+
286
+
287
+          }).catch(() => {
288
+          })
289
+
290
+
174 291
           this.gather_loading = false
175 292
 
176 293
           let tempPatients = []
@@ -672,7 +789,7 @@ export default {
672 789
 
673 790
   },
674 791
   created() {
675
-    this.getSummaryDetailList()
792
+    this.getSummaryDetailListtwo()
676 793
 
677 794
   }
678 795
 }

+ 4 - 0
src/xt_pages/user/components/PatientDetail.vue Dosyayı Görüntüle

@@ -1499,6 +1499,10 @@ export default {
1499 1499
     this.rhOptions = this.$store.getters.rh;
1500 1500
     this.educationOptions = getDataConfig("patient", "education_types");
1501 1501
     this.professionOptions = getDataConfig("patient", "profession_options");
1502
+    var obj ={id:11,name:"退休"}
1503
+    var objOne = {id:12,name:"灵活就业人员"}
1504
+    this.professionOptions.push(obj)
1505
+    this.professionOptions.push(objOne)
1502 1506
     this.inductionOptions = this.$store.getters.induction_options;
1503 1507
     this.contagionList = this.$store.getters.contagions;
1504 1508
     this.checkDisease = this.$store.getters.disease;

+ 5 - 0
src/xt_pages/user/components/PatientForm.vue Dosyayı Görüntüle

@@ -1541,7 +1541,12 @@ export default {
1541 1541
     // this.typeOptions = this.$store.getters.blood_types;
1542 1542
     // this.rhOptions = this.$store.getters.rh;
1543 1543
     this.educationOptions = getDataConfig("patient", "education_types");
1544
+
1544 1545
     this.professionOptions = getDataConfig("patient", "profession_options");
1546
+    var obj ={id:11,name:"退休"}
1547
+    var objOne = {id:12,name:"灵活就业人员"}
1548
+    this.professionOptions.push(obj)
1549
+    this.professionOptions.push(objOne)
1545 1550
 
1546 1551
   
1547 1552
     // this.inductionOptions = this.$store.getters.induction_options;