Przeglądaj źródła

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

csx 3 lat temu
rodzic
commit
7f51e523ea

+ 14 - 18
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue Wyświetl plik

873
     methods: {
873
     methods: {
874
       //调试
874
       //调试
875
       lili(index,row){
875
       lili(index,row){
876
-        // console.log("==index==",index)
877
-        // console.log("==row==",row)
878
         console.log("==doctor_advices==",this.doctor_advices)
876
         console.log("==doctor_advices==",this.doctor_advices)
879
         console.log("==this.form==",this.form)
877
         console.log("==this.form==",this.form)
880
       },
878
       },
990
       },
988
       },
991
       submitEditAdvice() {
989
       submitEditAdvice() {
992
         // console.log()
990
         // console.log()
993
-        console.log("==this.form==",this.form)
994
-        console.log("==this.src_type==",this.src_type)
995
         if (this.form.advice_name.length == 0) {
991
         if (this.form.advice_name.length == 0) {
996
           this.$message.error('请填写医嘱名称')
992
           this.$message.error('请填写医嘱名称')
997
           return
993
           return
1350
                     }
1346
                     }
1351
                   }
1347
                   }
1352
                   this.execTimeDialogVisible = false
1348
                   this.execTimeDialogVisible = false
1349
+                  
1353
                   return false
1350
                   return false
1354
               }
1351
               }
1355
 
1352
 
1386
         }
1383
         }
1387
         let mode = '1'
1384
         let mode = '1'
1388
 
1385
 
1389
-        console.log("==this.form==",this.form)
1390
-        console.log("==this.src_type==",this.src_type)
1391
-
1392
        if(this.src_type == ""){
1386
        if(this.src_type == ""){
1393
           this.form.way = 1
1387
           this.form.way = 1
1394
        }
1388
        }
1398
           this.form.advice_name = arr[0]
1392
           this.form.advice_name = arr[0]
1399
        }
1393
        }
1400
 
1394
 
1401
-
1402
         CreateDoctorAdvice(this.patient.id, this.form, mode).then(response => {
1395
         CreateDoctorAdvice(this.patient.id, this.form, mode).then(response => {
1403
-          console("保存!!!!!!!!!!!!!!!this.form",this.form)
1404
             this.loading = false
1396
             this.loading = false
1405
             if (response.data.state == 0) {
1397
             if (response.data.state == 0) {
1406
               this.$message.error(response.data.msg)
1398
               this.$message.error(response.data.msg)
1417
               this.currentRow = null
1409
               this.currentRow = null
1418
               this.setCurrent()
1410
               this.setCurrent()
1419
               this.hideForm()
1411
               this.hideForm()
1420
-              console.log("保存",this.form.parent_id)
1421
               if (this.form.parent_id > 0) {
1412
               if (this.form.parent_id > 0) {
1422
                 var spliceIndex = -1
1413
                 var spliceIndex = -1
1423
                 for (let index = this.doctor_advices.length - 1; ; index--) {
1414
                 for (let index = this.doctor_advices.length - 1; ; index--) {
1424
-                  console.log("====this.doctor_advices[index].origin====",this.doctor_advices[index].origin)
1425
                   if (this.doctor_advices[index].parent_id === this.form.parent_id) {
1415
                   if (this.doctor_advices[index].parent_id === this.form.parent_id) {
1426
                     spliceIndex = index
1416
                     spliceIndex = index
1427
                     break
1417
                     break
1850
           })
1840
           })
1851
           .catch(() => {
1841
           .catch(() => {
1852
           })
1842
           })
1853
-        // this.handleSpanTempArr()
1854
       }
1843
       }
1855
       ,
1844
       ,
1856
       openDelete(index, row) {
1845
       openDelete(index, row) {
2027
             }
2016
             }
2028
           }
2017
           }
2029
         })
2018
         })
2030
-
2031
-        // this.handleSpanTempArr()
2032
-        // this.handleStyle()
2033
       }
2019
       }
2034
       ,
2020
       ,
2035
       getXuserName(id) {
2021
       getXuserName(id) {
2061
       }
2047
       }
2062
       ,
2048
       ,
2063
       show(his_is_open,is_advice_open) {
2049
       show(his_is_open,is_advice_open) {
2064
-        console.log("this.doctor_advices",this.doctor_advices)
2065
-        console.log("++++his_is_open++++++",his_is_open)
2066
-        console.log("++++is_advice_open++++++",is_advice_open)
2067
         this.his_is_open = his_is_open
2050
         this.his_is_open = his_is_open
2068
         this.is_advice_open = is_advice_open
2051
         this.is_advice_open = is_advice_open
2069
         this.isVisibility = true
2052
         this.isVisibility = true
2374
                  this.doctor_advices.push(his_advices[i])
2357
                  this.doctor_advices.push(his_advices[i])
2375
               }
2358
               }
2376
             }
2359
             }
2360
+
2361
+            this.$notify({
2362
+              title: '成功',
2363
+              message: '新增医嘱成功',
2364
+              type: 'success',
2365
+              duration: 2000
2366
+            })
2367
+
2368
+            this.currentIndex = -1
2369
+            this.currentRow = null
2370
+            this.setCurrent()
2371
+            this.hideForm()
2372
+
2377
           }
2373
           }
2378
         })
2374
         })
2379
       }
2375
       }

+ 10 - 9
src/xt_pages/hospitalStation/components/chargeDialog.vue Wyświetl plik

93
           <el-form-item class="specialFormItem">
93
           <el-form-item class="specialFormItem">
94
             <div style="display: flex">
94
             <div style="display: flex">
95
               <!--            这里不要改成el-input,因为使用el-input会导致一个奇怪的bug,千万不要改!!!!!!!!!!!!!!!!!!!!-->
95
               <!--            这里不要改成el-input,因为使用el-input会导致一个奇怪的bug,千万不要改!!!!!!!!!!!!!!!!!!!!-->
96
-              <el-input v-model="form.tmp_decimal" onkeyup="this.value = this.value.replace(/[^\d.]/g,'');" @change="lilili">
97
-
98
-              </el-input>元
96
+              <input  v-model="form.tmp_decimal" class="input_style" onkeyup="this.value = this.value.replace(/[^\d.]/g,'');" @change="lilili">元
99
             </div>
97
             </div>
100
           </el-form-item>
98
           </el-form-item>
101
         </span>
99
         </span>
102
       </el-form-item>
100
       </el-form-item>
103
 
101
 
104
 
102
 
105
-      <el-form-item label="付款金额:" prop="id_card" :validate-event="is_Name">
103
+      <el-form-item label="付款金额:" prop="id_card">
106
         <el-input
104
         <el-input
107
           style="color: black"
105
           style="color: black"
108
           type="number"
106
           type="number"
112
       </el-form-item>
110
       </el-form-item>
113
 
111
 
114
 
112
 
115
-      <el-form-item label="付款卡号:" prop="id_card" :validate-event="is_Name">
113
+      <el-form-item label="付款卡号:" prop="id_card">
116
         <el-input v-model="form.pay_card_no"></el-input>
114
         <el-input v-model="form.pay_card_no"></el-input>
117
       </el-form-item>
115
       </el-form-item>
118
 
116
 
364
             this.form.acct_pay = this.order.acct_pay
362
             this.form.acct_pay = this.order.acct_pay
365
             this.form.psn_pay = this.order.psn_cash_pay
363
             this.form.psn_pay = this.order.psn_cash_pay
366
             this.form.total = this.order.medfee_sumamt
364
             this.form.total = this.order.medfee_sumamt
367
-            this.form.pay_price = this.order.medfee_sumamt
365
+            this.form.pay_price = (this.order.medfee_sumamt).toFixed(2)
368
             this.form.medical_insurance_price = this.order.fund_pay_sumamt
366
             this.form.medical_insurance_price = this.order.fund_pay_sumamt
369
             this.form.private_price = this.order.psn_part_amt
367
             this.form.private_price = this.order.psn_part_amt
370
           }
368
           }
466
     width: 50%;
464
     width: 50%;
467
   }
465
   }
468
 }
466
 }
469
-
470
-.input_style{
467
+.input_style {
471
   border-radius: 5px;
468
   border-radius: 5px;
472
-  border: 1px solid #dbdbdb;
469
+  border: 1px solid #dddddd;
470
+}
471
+.input_style:focus {
472
+outline:none;
473
+border: 1px solid #66b1ff;
473
 }
474
 }
474
 </style>
475
 </style>

+ 4 - 4
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue Wyświetl plik

107
         <div>
107
         <div>
108
             <span>
108
             <span>
109
             <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
109
             <span style="position: absolute;top:280px;left:40px">合计金额(大写):</span>
110
-            <span  style="position: absolute;top:280px;left:180px">
110
+            <!-- <span  style="position: absolute;top:280px;left:180px">
111
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
111
                 <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
112
                     {{ zhongwen.substring(0,1) }}十万
112
                     {{ zhongwen.substring(0,1) }}十万
113
                 </span>
113
                 </span>
133
             </span>
133
             </span>
134
             <span style="position: absolute;top:280px;left:350px">
134
             <span style="position: absolute;top:280px;left:350px">
135
                 <span v-if="zhongwen.indexOf('拾') > -1">
135
                 <span v-if="zhongwen.indexOf('拾') > -1">
136
-<!--                    {{ // zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}拾-->
137
-                        {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
136
+                {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
138
 
137
 
139
                 </span>
138
                 </span>
140
                 <span v-else>零拾</span>
139
                 <span v-else>零拾</span>
156
                     {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}分
155
                     {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}分
157
                 </span>
156
                 </span>
158
                 <span v-else>零分</span>
157
                 <span v-else>零分</span>
159
-            </span>
158
+            </span> -->
159
+            <span style="position: absolute;top:280px;left:190px;letter-spacing: 20px;">{{zhongwen}}</span>
160
             </span>
160
             </span>
161
             <span style="position: absolute;top:280px;left:510px">合计:{{ list.order.medfee_sumamt }}</span>
161
             <span style="position: absolute;top:280px;left:510px">合计:{{ list.order.medfee_sumamt }}</span>
162
         </div>
162
         </div>

+ 3 - 2
src/xt_pages/outpatientCharges/components/chargeDialog.vue Wyświetl plik

289
           this.form.acct_pay = this.order.acct_pay
289
           this.form.acct_pay = this.order.acct_pay
290
           this.form.psn_pay = this.order.psn_cash_pay
290
           this.form.psn_pay = this.order.psn_cash_pay
291
           this.form.total = this.order.medfee_sumamt
291
           this.form.total = this.order.medfee_sumamt
292
-          this.form.pay_price = this.order.medfee_sumamt
292
+          this.form.pay_price = (this.order.medfee_sumamt).toFixed(2)
293
           this.form.medical_insurance_price = this.order.fund_pay_sumamt
293
           this.form.medical_insurance_price = this.order.fund_pay_sumamt
294
           this.form.private_price =  this.order.psn_part_amt
294
           this.form.private_price =  this.order.psn_part_amt
295
         }
295
         }
347
         }
347
         }
348
         this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
348
         this.form.reality_price = parseInt(this.form.total) - parseInt(val) - parseInt(this.form.discount_price)
349
       }
349
       }
350
-    },mounted() {
350
+    },
351
+    mounted() {
351
       var nowDate = new Date()
352
       var nowDate = new Date()
352
       var nowYear = nowDate.getFullYear()
353
       var nowYear = nowDate.getFullYear()
353
       var nowMonth = nowDate.getMonth() + 1
354
       var nowMonth = nowDate.getMonth() + 1

+ 14 - 9
src/xt_pages/outpatientTool/components/detailStatistics.vue Wyświetl plik

177
       list:[],
177
       list:[],
178
       his_patient:{},
178
       his_patient:{},
179
       id:0,
179
       id:0,
180
+      start_time:"",
181
+      end_time:"",
180
     }
182
     }
181
   },
183
   },
182
   methods: {
184
   methods: {
194
      this.getHisSummaryDetailList()
196
      this.getHisSummaryDetailList()
195
     },
197
     },
196
     changeDate() {
198
     changeDate() {
199
+      this.start_time = this.chargeDate[0]
200
+      this.end_time = this.chargeDate[1]
197
       this.getHisSummaryDetailList()
201
       this.getHisSummaryDetailList()
198
     },
202
     },
199
     changeItem(id) {
203
     changeItem(id) {
204
     getHisSummaryDetailList() {
208
     getHisSummaryDetailList() {
205
       let start_time = this.chargeDate[0]
209
       let start_time = this.chargeDate[0]
206
       let end_time = this.chargeDate[1]
210
       let end_time = this.chargeDate[1]
211
+      
207
       let params = {
212
       let params = {
208
         patient_id:this.patient_id,
213
         patient_id:this.patient_id,
209
         start_time: start_time,
214
         start_time: start_time,
234
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
239
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
235
           }
240
           }
236
           obj.total_price = (obj.total_price).toFixed(2)
241
           obj.total_price = (obj.total_price).toFixed(2)
237
-          // this.tableData.push(obj)cccc
238
-          // console.log("tabledata23233232233232",this.tableData)
242
+          
239
           var new_arr = []
243
           var new_arr = []
240
-       
244
+           
245
+        
241
           if(this.keywords!=""){
246
           if(this.keywords!=""){
242
             for(let i=0;i<this.tableData.length;i++){
247
             for(let i=0;i<this.tableData.length;i++){
243
               if(this.tableData[i].index!="合计"){
248
               if(this.tableData[i].index!="合计"){
262
             }
267
             }
263
             var objs = {index:"合计",total_price:0,record_date:"0"}
268
             var objs = {index:"合计",total_price:0,record_date:"0"}
264
             objs.total_price = this.getPrice(new_arr)
269
             objs.total_price = this.getPrice(new_arr)
265
-            // new_arr.push(objs)
266
-            
267
             this.tableData = new_arr
270
             this.tableData = new_arr
268
           }
271
           }
269
 
272
 
316
             }
319
             }
317
             this.tableData = []
320
             this.tableData = []
318
             obj.total_price = this.getPrice(new_arr)
321
             obj.total_price = this.getPrice(new_arr)
319
-            // new_arr.push(obj)
320
-            // console.log("new_arr2332323232",new_arr)
321
             this.tableData = new_arr
322
             this.tableData = new_arr
322
-          }          
323
+          }      
324
+          
325
+          console.log("hh233223233232323232322332",this.tableData)
323
        }
326
        }
324
      })
327
      })
325
     },
328
     },
367
       return maf_pay
370
       return maf_pay
368
     },
371
     },
369
     toPrint(){
372
     toPrint(){
370
-      this.$router.push({path:"/hisTool/detailPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id+"&balance_accounts_type="+this.his_patient.balance_accounts_type})
373
+      this.$router.push({path:"/hisTool/detailPrint?patient_id="+this.patient_id+"&start_time="+this.start_time+"&end_time="+this.end_time+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id+"&balance_accounts_type="+this.his_patient.balance_accounts_type})
371
     },
374
     },
372
     getPrice(val){
375
     getPrice(val){
373
       var total_price = 0
376
       var total_price = 0
379
 
382
 
380
   },
383
   },
381
   created() {
384
   created() {
385
+    this.start_time = this.chargeDate[0]
386
+    this.end_time = this.chargeDate[1]
382
     this.getHisSummaryDetailList()
387
     this.getHisSummaryDetailList()
383
   },
388
   },
384
   watch:{
389
   watch:{

+ 103 - 15
src/xt_pages/outpatientTool/components/gatherStatistics.vue Wyświetl plik

53
               v-loading="detail_loading"
53
               v-loading="detail_loading"
54
               highlight-current-row>
54
               highlight-current-row>
55
       <el-table-column type="index" label="序号" width="60px" align="center">
55
       <el-table-column type="index" label="序号" width="60px" align="center">
56
-           <template slot-scope="scope">{{scope.row.index}}</template>
56
+           <template slot-scope="scope">
57
+           {{scope.row.index}}
58
+           </template>
57
       </el-table-column>
59
       </el-table-column>
58
       <el-table-column align="center" label="处方日期">
60
       <el-table-column align="center" label="处方日期">
59
         <template slot-scope="scope">
61
         <template slot-scope="scope">
121
     </el-table>
123
     </el-table>
122
      <div>
124
      <div>
123
       <div class="listInfo">
125
       <div class="listInfo">
124
-            <!-- <div>西药:{{westernMedicineCostTotal}}</div> -->
125
             <div>西药:{{getWesternMedicineCostTotal()}}</div>
126
             <div>西药:{{getWesternMedicineCostTotal()}}</div>
126
             <div>中成药:{{getChineseTraditionalMedicineCostTotal()}}</div>
127
             <div>中成药:{{getChineseTraditionalMedicineCostTotal()}}</div>
127
             <div>中草药:{{getChineseTotal()}}</div>
128
             <div>中草药:{{getChineseTotal()}}</div>
204
       balanceAccountsType:0,
205
       balanceAccountsType:0,
205
       medicalInsuranceLevelList:[],
206
       medicalInsuranceLevelList:[],
206
       id:0,
207
       id:0,
208
+      start_time:"",
209
+      end_time:"",
207
     }
210
     }
208
   },
211
   },
209
   methods: {
212
   methods: {
219
         }
222
         }
220
         var obj ={index:"合计",is_total:1,total:0}
223
         var obj ={index:"合计",is_total:1,total:0}
221
         obj.total = this.getPrice(new_arr)
224
         obj.total = this.getPrice(new_arr)
222
-        // new_arr.push(obj)
223
         this.tableList = []
225
         this.tableList = []
224
         this.tableList = new_arr
226
         this.tableList = new_arr
225
       }else{
227
       }else{
235
       return total_price.toFixed(2)
237
       return total_price.toFixed(2)
236
     },
238
     },
237
     changeDate() {
239
     changeDate() {
240
+      this.start_time = this.chargeDate[0]
241
+      this.end_time = this.chargeDate[1]
238
       this.getGatherDetailList()
242
       this.getGatherDetailList()
239
     },
243
     },
240
     changeItem(id) {
244
     changeItem(id) {
263
             this.his_hospital = response.data.data.his_hospital
267
             this.his_hospital = response.data.data.his_hospital
264
 
268
 
265
             var order_info = response.data.data.order_info
269
             var order_info = response.data.data.order_info
270
+
266
             if(order_info!=null){
271
             if(order_info!=null){
267
               for(let i=0;i<order_info.length;i++){
272
               for(let i=0;i<order_info.length;i++){
268
                 order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
273
                 order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
269
                 order_info[i].chrgitm_lv  = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
274
                 order_info[i].chrgitm_lv  = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
270
              }
275
              }
271
-              var prescription = response.data.data.prescription
276
+             var prescription = response.data.data.prescription
277
+            //  console.log("prescription2332232323233223",prescription)
272
               this.setMonthPrescription(prescription)
278
               this.setMonthPrescription(prescription)
273
             }
279
             }
280
+            // console.log("order_info233232323232323232",order_info)
274
             this.order_info_list = order_info
281
             this.order_info_list = order_info
275
-          
282
+             
276
             this.balanceAccountsType = response.data.data.balanceAccountsType
283
             this.balanceAccountsType = response.data.data.balanceAccountsType
277
 
284
 
278
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
285
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
435
              
442
              
436
     
443
     
437
           }
444
           }
438
-
445
+ 
439
            if(this.id == 1){
446
            if(this.id == 1){
440
              var new_arr = []
447
              var new_arr = []
441
              for(let i=0;i<this.tableList.length;i++){
448
              for(let i=0;i<this.tableList.length;i++){
474
              this.tableList = []
481
              this.tableList = []
475
              this.tableList = new_arr
482
              this.tableList = new_arr
476
             }
483
             }
484
+          
485
+            var new_arr_two = []
486
+            for(let i=0;i<this.tableList.length;i++){
487
+                if(this.tableList[i].advice_id > 0){
488
+                  this.tableList[i].const_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
489
+                }
490
+                if(this.tableList[i].project_id > 0){
491
+                  this.tableList[i].const_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
492
+                }
493
+               
494
+               if(this.tableList[i].const_type!=''){
495
+                  new_arr_two.push(this.tableList[i])
496
+               }
497
+
498
+             }
499
+           
500
+            this.tableList = []
501
+            this.tableList = new_arr_two
502
+          
503
+            console.log("分解死23232332332323223322332323232",this.tableList)
504
+            let dataInfo = {}
505
+            this.tableList.forEach((item, index) => {
506
+              let { item_id } = item
507
+              if (!dataInfo[item_id]) {
508
+                dataInfo[item_id] = {
509
+                  item_id,
510
+                  child: [],
511
+                  count_number:0,
512
+                  name:item.name,
513
+                  price:item.price,
514
+                  record_date:item.record_date,
515
+                }
516
+              }
517
+              dataInfo[item_id].child.push(item)
518
+            })
519
+            
520
+            let list = Object.values(dataInfo)
521
+            
522
+
523
+            list.forEach((it,index)=>{
524
+              for(let i=0;i<this.tableList.length;i++){
525
+                if(it.item_id == this.tableList[i].item_id){
526
+                    it.child.push(this.tableList[i])
527
+                }
528
+              }
529
+            })
530
+           console.log("list23232332323223322323",list)
531
+           for(let i=0;i<list.length;i++){
532
+            for(let j=0;j<list[i].child.length;j++){
533
+                list[i].count_number += list[i].child[j].count
534
+            }
535
+           }
536
+
537
+            console.log("我的list23223233223322323",list)
538
+             
477
         }
539
         }
478
      })
540
      })
479
     },
541
     },
496
      return project_name
558
      return project_name
497
     },
559
     },
498
     setNewData(details) {
560
     setNewData(details) {
499
-     
500
         let drug_ids = []
561
         let drug_ids = []
501
         let project_ids = []
562
         let project_ids = []
502
 
563
 
503
         for (let i = 0; i < details.length; i++) {
564
         for (let i = 0; i < details.length; i++) {
504
           if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
565
           if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
566
+            
505
             let obj = {
567
             let obj = {
506
               id: details[i].advice.drug_id,
568
               id: details[i].advice.drug_id,
507
               price: details[i].advice.price,
569
               price: details[i].advice.price,
519
           }
581
           }
520
 
582
 
521
         }
583
         }
584
+        
522
         let new_drug_ids = this.unique(drug_ids)
585
         let new_drug_ids = this.unique(drug_ids)
523
         let new_project_ids = this.unique(project_ids)
586
         let new_project_ids = this.unique(project_ids)
524
         let list = []
587
         let list = []
525
-       
588
+         
589
+         console.log("new_drug_ids232323323232332332233223",new_drug_ids)
526
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
590
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
527
           for (let i = 0; i < new_drug_ids.length; i++) {
591
           for (let i = 0; i < new_drug_ids.length; i++) {
528
             let obj = {}
592
             let obj = {}
545
             list.push(obj)
609
             list.push(obj)
546
 
610
 
547
           }
611
           }
612
+          console.log("list23323232233232",list)
613
+
614
+          // let dataInfo = {}
615
+          // list.forEach((item, index) => {
616
+          //   let { name } = item
617
+          //   if (!dataInfo[name]) {
618
+          //     dataInfo[name] = {
619
+          //       name,
620
+          //       child: []
621
+          //     }
622
+          //   }
623
+          // })
624
+          // let listOne = Object.values(dataInfo)
625
+          // listOne.forEach((item,index)=>{
626
+          //   for(let i=0;i<list.length;i++){
627
+          //      if(listOne[i].name == list[i].name){
628
+          //          listOne[i].child.push(list[i])
629
+          //      }
630
+          //   }
631
+          // })
632
+          // console.log("listONE2322323322323",listOne)
633
+         
548
         }
634
         }
549
         if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
635
         if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
550
           for (let i = 0; i < new_project_ids.length; i++) {
636
           for (let i = 0; i < new_project_ids.length; i++) {
746
        }
832
        }
747
      },
833
      },
748
      toPrint(){
834
      toPrint(){
749
-        this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id})
835
+        this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.start_time+"&end_time="+this.end_time+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id})
750
      },
836
      },
751
      toPrintInvoice(){
837
      toPrintInvoice(){
752
-       this.$router.push({path:"/hisTool/gatherPrintInvoice?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
838
+       this.$router.push({path:"/hisTool/gatherPrintInvoice?patient_id="+this.patient_id+"&start_time="+this.start_time+"&end_time="+this.end_time+"&type="+this.item_type +"&keyword="+this.keywords})
753
      },
839
      },
754
      setMonthPrescription(month_prescriptions) {
840
      setMonthPrescription(month_prescriptions) {
755
       let drug_month_prescriptions = {
841
       let drug_month_prescriptions = {
811
             obj['is_total'] = 2
897
             obj['is_total'] = 2
812
             obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level 
898
             obj['chrgitm_lv'] =  drug_month_prescriptions.advices[a].drug.medical_insurance_level 
813
             obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
899
             obj['unit'] = drug_month_prescriptions.advices[a].prescribing_number_unit
900
+            obj['item_id'] = drug_ids[i].id + "/" + drug_ids[i].price
814
             count = count + drug_month_prescriptions.advices[a].prescribing_number
901
             count = count + drug_month_prescriptions.advices[a].prescribing_number
815
 
902
 
816
           }
903
           }
818
         obj['count'] = count
905
         obj['count'] = count
819
         this.tableList.push(obj)
906
         this.tableList.push(obj)
820
       }
907
       }
821
-
822
       for (let i = 0; i < project_ids.length; i++) {
908
       for (let i = 0; i < project_ids.length; i++) {
823
         let obj = {}
909
         let obj = {}
824
         let count = 0
910
         let count = 0
833
               obj['spec'] =  project_month_prescriptions.project[a].project.project_name
919
               obj['spec'] =  project_month_prescriptions.project[a].project.project_name
834
               obj['unit'] = project_month_prescriptions.project[a].unit
920
               obj['unit'] = project_month_prescriptions.project[a].unit
835
               obj['chrgitm_lv'] =  project_month_prescriptions.project[a].project.medical_coverage
921
               obj['chrgitm_lv'] =  project_month_prescriptions.project[a].project.medical_coverage
922
+              obj['item_id'] = project_ids[i].id +"/"+ project_ids[i].price
836
             }else if (project_month_prescriptions.project[a].type == 3){
923
             }else if (project_month_prescriptions.project[a].type == 3){
837
               obj['project_id'] = project_month_prescriptions.project[a].id
924
               obj['project_id'] = project_month_prescriptions.project[a].id
838
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
925
               obj['name'] = project_month_prescriptions.project[a].good_info.good_name
841
               obj['spec'] = project_month_prescriptions.project[a].good_info.specification_name
928
               obj['spec'] = project_month_prescriptions.project[a].good_info.specification_name
842
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
929
               obj['unit'] = project_month_prescriptions.project[a].good_info.packing_unit
843
               obj['chrgitm_lv'] =  project_month_prescriptions.project[a].good_info.medical_insurance_level
930
               obj['chrgitm_lv'] =  project_month_prescriptions.project[a].good_info.medical_insurance_level
931
+              obj['item_id'] = project_ids[i].id + "/" + project_ids[i].price
844
             }
932
             }
845
             obj['single_dose'] = project_month_prescriptions.project[a].single_dose
933
             obj['single_dose'] = project_month_prescriptions.project[a].single_dose
846
             obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
934
             obj['delivery_way'] = project_month_prescriptions.project[a].delivery_way
859
         }
947
         }
860
         obj['count'] = count
948
         obj['count'] = count
861
         this.tableList.push(obj)
949
         this.tableList.push(obj)
862
-
863
       }
950
       }
951
+     console.log("表格 2323323232323323323232323232323",this.tableList)
952
+           
864
       var objOne = {index:"合计",is_total:1,total:0}
953
       var objOne = {index:"合计",is_total:1,total:0}
865
       objOne.total = this.getTotalPrice(this.tableList)
954
       objOne.total = this.getTotalPrice(this.tableList)
866
       for(let i=0;i<this.tableList.length;i++){
955
       for(let i=0;i<this.tableList.length;i++){
867
         this.tableList[i].index = i + 1
956
         this.tableList[i].index = i + 1
868
         this.tableList[i].total_all = (this.tableList[i].count * this.tableList[i].price).toFixed(2)
957
         this.tableList[i].total_all = (this.tableList[i].count * this.tableList[i].price).toFixed(2)
869
-        // console.log(this.tableList[i].count,'opop')
870
       }
958
       }
871
-      // this.tableList.push(objOne)
872
     },
959
     },
873
 
960
 
874
     getTotalPrice(val){
961
     getTotalPrice(val){
1028
         if(this.tableList[i].project_id > 0){
1115
         if(this.tableList[i].project_id > 0){
1029
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1116
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
1030
          }
1117
          }
1031
-         console.log("化验23233223322323",this.tableList[i].drug_type)
1032
          if(this.tableList[i].drug_type == "化验费"){
1118
          if(this.tableList[i].drug_type == "化验费"){
1033
             total_price += this.tableList[i].count * this.tableList[i].price
1119
             total_price += this.tableList[i].count * this.tableList[i].price
1034
          }
1120
          }
1168
 
1254
 
1169
   },
1255
   },
1170
   created() {
1256
   created() {
1257
+    this.start_time = this.chargeDate[0]
1258
+    this.end_time = this.chargeDate[1]
1171
     this.tableList = []
1259
     this.tableList = []
1172
     this.getGatherDetailList()
1260
     this.getGatherDetailList()
1173
 
1261
 

+ 24 - 7
src/xt_pages/outpatientTool/detailPrint.vue Wyświetl plik

10
       <div class="listInfo">
10
       <div class="listInfo">
11
         <div>患者姓名:{{ patient.name }}</div>
11
         <div>患者姓名:{{ patient.name }}</div>
12
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
12
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
13
-        <div>结算类别:{{ getType(his_patient.balance_accounts_type) }}</div>
13
+        <div>结算类别:
14
+          {{ getType(his_patient.balance_accounts_type) }}
15
+          {{getType(his_record_patient.balance_accounts_type)}}
16
+        </div>
14
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
17
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
15
       </div>
18
       </div>
16
       <div class="listInfo">
19
       <div class="listInfo">
17
-        <div>住院/门诊号:{{his_patient.number}}</div>
18
-        <div>科室:{{ getDepartment(his_patient.departments) }}</div>
19
-        <div style="min-width:350px;">就诊流水号:{{ his_patient.number }}</div>
20
+        <div>住院/门诊号:
21
+          {{his_patient.number}}
22
+          {{his_record_patient.ipt_otp_no}}
23
+        </div>
24
+        <div>科室:
25
+          {{ getDepartment(his_patient.departments) }}
26
+          {{ getDepartment(his_record_patient.departments) }}
27
+        </div>
28
+        <div style="min-width:350px;">就诊流水号:
29
+          {{ his_patient.number }}
30
+          {{his_record_patient.number}}
31
+        </div>
20
       </div>
32
       </div>
21
       <div class="listInfo">
33
       <div class="listInfo">
22
         <div>总费用:{{ getAllPice() }}</div>
34
         <div>总费用:{{ getAllPice() }}</div>
23
         <div>个人支付:
35
         <div>个人支付:
24
-          <span v-if="this.$route.query.balance_accounts_type == 2">{{ getAllPice() }}</span>
25
-          <span v-if="this.$route.query.balance_accounts_type != 2">{{ getActPay() }}</span>
36
+          <span v-if="this.$route.query.balance_accounts_type == 2 && his_patient.id >0">{{ getAllPice() }}</span>
37
+          <span v-if="this.$route.query.balance_accounts_type != 2 && his_patient.id >0">{{ getActPay() }}</span>
38
+          
39
+          <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
40
+          <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
26
 
41
 
27
         </div>
42
         </div>
28
         <div>基金支付记账:{{ getFundPaySumamt() }}</div>
43
         <div>基金支付记账:{{ getFundPaySumamt() }}</div>
126
         { value: 8, label: "医保自费" },
141
         { value: 8, label: "医保自费" },
127
       ],
142
       ],
128
       order:{},
143
       order:{},
144
+      his_record_patient:{},
129
     };
145
     };
130
   },
146
   },
131
   methods: {
147
   methods: {
178
           this.patient = response.data.data.patient;
194
           this.patient = response.data.data.patient;
179
 
195
 
180
           this.his_patient = response.data.data.his_patient;
196
           this.his_patient = response.data.data.his_patient;
181
-
197
+         
198
+         this.his_record_patient = response.data.data.his_record_patient
182
 
199
 
183
           this.hisDepatment = response.data.data.hisDepatment;
200
           this.hisDepatment = response.data.data.hisDepatment;
184
 
201
 

+ 20 - 2
src/xt_pages/outpatientTool/gatherPrint.vue Wyświetl plik

139
     methods:{
139
     methods:{
140
       printtpage() {
140
       printtpage() {
141
       const style =
141
       const style =
142
-        '@media print {.list-print{width:960px;margin:0 auto} .listTitle {font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo {display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;}.listTable {width: 100%;text-align: center;border-collapse: collapse;line-height: 25px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}.tableBottom {font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne {margin-right: 40px;}';
142
+        '@media print {.list-print{width:960px;margin:0 auto} .listTitle {font-size: 24px;text-align: center;font-weight: bold;margin-bottom: 10px;}.listInfo {display: flex;font-size: 16px;justify-content: space-between;margin: 10px 0;} .listInfo div{width:400px;} .listTable {width: 100%;text-align: center;border-collapse: collapse;line-height: 25px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}.tableBottom {font-size: 16px;display: flex;margin-top: 20px;}.tableBottomOne {margin-right: 40px;}';
143
       printJS({
143
       printJS({
144
         printable: "list-print",
144
         printable: "list-print",
145
         type: "html",
145
         type: "html",
375
           this.tableList = []
375
           this.tableList = []
376
           this.tableList = new_arr
376
           this.tableList = new_arr
377
         }
377
         }
378
+
379
+      
380
+        var new_arr_two = []
381
+        for(let i=0;i<this.tableList.length;i++){
382
+            if(this.tableList[i].advice_id > 0){
383
+              this.tableList[i].const_type = this.getAdviceMedChrgintmType(this.tableList[i].name)
384
+            }
385
+            if(this.tableList[i].project_id > 0){
386
+              this.tableList[i].const_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
387
+            }
388
+            
389
+            if(this.tableList[i].const_type!=''){
390
+              new_arr_two.push(this.tableList[i])
391
+            }
392
+
393
+          }
394
+          this.tableList = []
395
+          this.tableList = new_arr_two
378
      })
396
      })
379
     },
397
     },
380
      getAdviceName(id){
398
      getAdviceName(id){
1125
     justify-content: space-between;
1143
     justify-content: space-between;
1126
     margin: 10px 0;
1144
     margin: 10px 0;
1127
     div{
1145
     div{
1128
-      width: 200px;
1146
+      width: 400px;
1129
     }
1147
     }
1130
 }
1148
 }
1131
 .listTable{
1149
 .listTable{

+ 0 - 1
src/xt_pages/outpatientTool/gatherPrintInvoice.vue Wyświetl plik

901
         if(this.tableList[i].project_id > 0){
901
         if(this.tableList[i].project_id > 0){
902
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
902
            this.tableList[i].drug_type = this.getProjectMedChrgintmType(this.tableList[i].project_id)
903
          }
903
          }
904
-         console.log("化验23233223322323",this.tableList[i].drug_type)
905
          if(this.tableList[i].drug_type == "化验费"){
904
          if(this.tableList[i].drug_type == "化验费"){
906
             total_price += this.tableList[i].count * this.tableList[i].price
905
             total_price += this.tableList[i].count * this.tableList[i].price
907
          }
906
          }