Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
38c0b19780

+ 29 - 16
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -1663,7 +1663,7 @@
1663 1663
         this.isVisibility = true
1664 1664
       },
1665 1665
       handleAdviceCommit() {
1666
-        //
1666
+       
1667 1667
           let results = []
1668 1668
           for (let i = 0; i < this.targetAdvices.length; i++) {
1669 1669
             for (let a = 0; a < this.checkedCities.length; a++) {
@@ -1680,9 +1680,8 @@
1680 1680
 
1681 1681
           var date = new Date()
1682 1682
           var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
1683
-          var minute =
1684
-            date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1685
-
1683
+          var minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
1684
+         
1686 1685
           if (results.length > 0) {
1687 1686
             if(!this.isLoading){
1688 1687
               if (this.is_pre == 1) {
@@ -1693,14 +1692,17 @@
1693 1692
                 }
1694 1693
 
1695 1694
                 var arr = this.dialysisPrescription
1696
-                // console.log('arr', arr)
1695
+               
1697 1696
 
1698 1697
                 const ParamsQuery = arr
1699
-                // console.log('医嘱推送2', ParamsQuery)
1698
+                
1700 1699
 
1701 1700
                 ParamsQuery['patient'] = this.patient.id
1702 1701
                 ParamsQuery['record_date'] = this.record_date
1703
-                 ParamsQuery['patient_id'] = this.$route.query.patient_id
1702
+                ParamsQuery['patient_id'] = this.$route.query.patient_id
1703
+                if(this.$route.query.patient_id ==undefined){
1704
+                  ParamsQuery['patient_id'] = this.patient.id
1705
+                }
1704 1706
                 if (this.prescription.creater <= 0) {
1705 1707
                   ParamsQuery['mode'] = '1'
1706 1708
                 } else {
@@ -1713,6 +1715,8 @@
1713 1715
                   }
1714 1716
                 }
1715 1717
                 this.isLoading = true
1718
+                console.log("ParamsQuery233232322323322332232323",ParamsQuery)
1719
+
1716 1720
                 postPrescription(ParamsQuery).then(response => {
1717 1721
                   if (response.data.state == 0) {
1718 1722
                     this.$message.error(response.data.msg)
@@ -1726,9 +1730,7 @@
1726 1730
                       duration: 2000
1727 1731
                     })
1728 1732
                     var date = new Date()
1729
-
1730
-                    // console.log(this.start_time)
1731
-
1733
+                    
1732 1734
                     const params = {
1733 1735
                       advices: results,
1734 1736
                       advice_date: this.start_time.split(' ')[0],
@@ -1738,7 +1740,14 @@
1738 1740
                       start_time: this.start_time,
1739 1741
                       remark: ''
1740 1742
                     }
1741
-                    CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
1743
+                    var patient_id = 0
1744
+                    if(this.$route.query.patient_id == undefined){
1745
+                       patient_id = this.patient.id
1746
+                    }else{
1747
+                      patient_id = this.$route.query.patient_id
1748
+                    }
1749
+                  
1750
+                    CreateGroupAdvice(patient_id, 0, params).then(
1742 1751
                       rs => {
1743 1752
                         var resp = rs.data
1744 1753
                         if (resp.state == 1) {
@@ -1767,11 +1776,9 @@
1767 1776
                   return
1768 1777
                 }
1769 1778
                 var arr = this.dialysisPrescription
1770
-                // console.log('arr', arr)
1771
-
1779
+                
1772 1780
                 const ParamsQuery = arr
1773
-                // console.log('医嘱推送3', ParamsQuery)
1774
-
1781
+              
1775 1782
                 ParamsQuery['patient'] = this.patient.id
1776 1783
                 ParamsQuery['record_date'] = this.record_date
1777 1784
                 ParamsQuery['mode'] = 1
@@ -1806,7 +1813,13 @@
1806 1813
                       start_time: this.start_time,
1807 1814
                       remark: ''
1808 1815
                     }
1809
-                    CreateGroupAdvice(this.$route.query.patient_id, 0, params).then(
1816
+                    var patient_id = 0
1817
+                    if(this.$route.query.patient_id == undefined){
1818
+                       patient_id = this.patient.id
1819
+                    }else{
1820
+                      patient_id = this.$route.query.patient_id
1821
+                    }
1822
+                    CreateGroupAdvice(patient_id, 0, params).then(
1810 1823
                       rs => {
1811 1824
                         var resp = rs.data
1812 1825
                         if (resp.state == 1) {

+ 14 - 10
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -124,8 +124,8 @@
124 124
     <div style="display:flex;justify-content: space-around;">
125 125
       <div>总费用:{{getAllPice()}}</div>
126 126
      <div>个人支付:
127
-        <span v-if="his_patient.balance_accounts_type == 2"></span> {{getAllPice()}}
128
-        <span v-if="his_patient.balance_accounts_type != 2"></span> {{getActPay()}}
127
+        <span v-if="his_record_patient.balance_accounts_type == 2">{{getAllPice()}}</span>
128
+        <span v-if="his_record_patient.balance_accounts_type != 2">{{getActPay()}}</span>
129 129
     </div>
130 130
      <div>基金支付记账:{{getFundPaySumamt()}}</div>
131 131
      <div>补充医疗支付记账:{{getHifesPay()}}</div>
@@ -179,6 +179,8 @@ export default {
179 179
       id:0,
180 180
       start_time:"",
181 181
       end_time:"",
182
+      his_record_patient:{},
183
+      orderList:[],
182 184
     }
183 185
   },
184 186
   methods: {
@@ -220,6 +222,11 @@ export default {
220 222
        if(response.data.state == 1){
221 223
           var list =  response.data.data.list
222 224
           this.his_patient = response.data.data.his_patient
225
+          this.his_record_patient = response.data.data.his_record_patient
226
+          console.log("his_record_patient",this.his_record_patient)
227
+
228
+          this.orderList = response.data.data.orderList
229
+          console.log("orderlist2332322333232323232",this.orderList)
223 230
           this.list = list
224 231
           this.tableData = []
225 232
           for(let i=0;i<list.length;i++){
@@ -297,11 +304,10 @@ export default {
297 304
                 }
298 305
               } 
299 306
             }
300
-            // console.log("项目new_arr",new_arr)
307
+           
301 308
             this.tableData = []
302 309
             obj.total_price = this.getPrice(new_arr)
303
-            // console.log("ar3233223232",new_arr)
304
-            // new_arr.push(obj)
310
+           
305 311
             this.tableData = new_arr
306 312
             }
307 313
 
@@ -322,7 +328,7 @@ export default {
322 328
             this.tableData = new_arr
323 329
           }      
324 330
           
325
-          // console.log("hh233223233232323232322332",this.tableData)
331
+         
326 332
        }
327 333
      })
328 334
     },
@@ -335,10 +341,8 @@ export default {
335 341
     },
336 342
     getActPay(){
337 343
       var act_pay = 0
338
-      for(let i=0;i<this.list.length;i++){
339
-        for(let j=0;j<this.list[i].orders.length;j++){
340
-           act_pay +=this.list[i].orders[j].acct_pay
341
-        }
344
+      for(let i=0;i<this.orderList.length;i++){
345
+         act_pay += this.orderList[i].psn_part_amt
342 346
       }
343 347
       return act_pay
344 348
     },

+ 14 - 14
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

@@ -214,6 +214,7 @@ export default {
214 214
       start_time:"",
215 215
       end_time:"",
216 216
       his_record_patient:{},
217
+      orderList:[],
217 218
     }
218 219
   },
219 220
   methods: {
@@ -269,8 +270,8 @@ export default {
269 270
           this.drugTypeList =response.data.data.drugTypeList
270 271
           this.costClassifyList = response.data.data.costClassifyList 
271 272
           var list = response.data.data.list
272
-          console.log("listw3232323223",list)
273
-
273
+          
274
+          
274 275
           var new_arr = []
275 276
 
276 277
           for(let i=0;i<list.length;i++){
@@ -278,7 +279,7 @@ export default {
278 279
                new_arr.push(list[i].orders[j])
279 280
             }
280 281
           }
281
-          console.log("new_arr2332323232",new_arr)
282
+         
282 283
 
283 284
           var order_info = []
284 285
           for(let i=0;i<new_arr.length;i++){
@@ -301,7 +302,7 @@ export default {
301 302
             }
302 303
           }
303 304
 
304
-          console.log("order_info222222222222",order_info)
305
+        
305 306
           
306 307
           //合并,相同的合并在一起
307 308
 
@@ -331,7 +332,7 @@ export default {
331 332
             dataInfo[item_id].child.push(item)
332 333
           })
333 334
           let arr = Object.values(dataInfo) 
334
-          console.log("中欧地区3323323223322332322323323232",arr)
335
+         
335 336
           for(let i=0;i<arr.length;i++){
336 337
             for(let j=0;j<arr[i].child.length;j++){
337 338
                if(arr[i].advice_id >0){
@@ -366,7 +367,7 @@ export default {
366 367
                arr[i].count_number +=arr[i].child[j].cnt
367 368
             }
368 369
           }
369
-          console.log("arr2323233232322332",arr)
370
+       
370 371
           for(let i=0;i<arr.length;i++){
371 372
             if(arr[i].advice_id >0){
372 373
                arr[i].cost_type = this.getDrugType(arr[i].cost_type)
@@ -377,15 +378,15 @@ export default {
377 378
             arr[i].total_all = (arr[i].count_number * arr[i].pric).toFixed(2)
378 379
           }
379 380
           this.tableList = arr
380
-          console.log("tabl233232323232323232323232",this.tableList)
381
+    
381 382
           this.patient = response.data.data.patient
382
-          console.log("patient_2323322332",this.patient)
383
+          
383 384
           this.his_patient = response.data.data.his_patient
384 385
           this.hisDepatment =  response.data.data.hisDepatment
385 386
           this.order =  response.data.data.order
386 387
           this.his_record_patient = response.data.data.his_record_patient
387 388
           this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList  
388
-          
389
+         
389 390
           if(this.id == 1){
390 391
              var new_arr = []
391 392
              for(let i=0;i<this.tableList.length;i++){
@@ -758,8 +759,7 @@ export default {
758 759
         let new_drug_ids = this.unique(drug_ids)
759 760
         let new_project_ids = this.unique(project_ids)
760 761
         let list = []
761
-         
762
-         console.log("new_drug_ids232323323232332332233223",new_drug_ids)
762
+     
763 763
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
764 764
           for (let i = 0; i < new_drug_ids.length; i++) {
765 765
             let obj = {}
@@ -782,7 +782,7 @@ export default {
782 782
             list.push(obj)
783 783
 
784 784
           }
785
-          console.log("list23323232233232",list)
785
+        
786 786
 
787 787
         }
788 788
         if (new_drug_ids.length == 0 && new_project_ids.length > 0) {
@@ -1101,7 +1101,7 @@ export default {
1101 1101
         obj['count'] = count
1102 1102
         this.tableList.push(obj)
1103 1103
       }
1104
-     console.log("表格 2323323232323323323232323232323",this.tableList)
1104
+    
1105 1105
            
1106 1106
       var objOne = {index:"合计",is_total:1,total:0}
1107 1107
       objOne.total = this.getTotalPrice(this.tableList)
@@ -1300,7 +1300,7 @@ export default {
1300 1300
       return total_price.toFixed(2)
1301 1301
     },
1302 1302
     getDrugType(id){
1303
-      console.log("id2332323232233232232323",id)
1303
+
1304 1304
       var name = ""
1305 1305
       for(let i=0;i<this.drugTypeList.length;i++){
1306 1306
          if(id == this.drugTypeList[i].value){

+ 16 - 17
src/xt_pages/outpatientTool/detailPrint.vue View File

@@ -33,8 +33,8 @@
33 33
       <div class="listInfo">
34 34
         <div>总费用:{{ getAllPice() }}</div>
35 35
         <div>个人支付:
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>
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 38
           
39 39
           <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
40 40
           <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
@@ -142,6 +142,7 @@ export default {
142 142
       ],
143 143
       order:{},
144 144
       his_record_patient:{},
145
+      orderList:[],
145 146
     };
146 147
   },
147 148
   methods: {
@@ -197,8 +198,9 @@ export default {
197 198
          
198 199
          this.his_record_patient = response.data.data.his_record_patient
199 200
 
200
-          this.hisDepatment = response.data.data.hisDepatment;
201
-
201
+         this.hisDepatment = response.data.data.hisDepatment;
202
+          
203
+         this.orderList = response.data.data.orderList
202 204
           this.order = response.data.data.order
203 205
           this.tableData = [];
204 206
           for (let i = 0; i < list.length; i++) {
@@ -225,7 +227,7 @@ export default {
225 227
           this.tableData.push(obj);
226 228
 
227 229
 
228
-          console.log("表哥233232323232233232322323",this.tableData)
230
+         
229 231
           if (this.$route.query.keyword != "") {
230 232
             var new_arr = []
231 233
             for (let i = 0; i < this.tableData.length; i++) {
@@ -268,7 +270,7 @@ export default {
268 270
             objs.total_price = this.getPrice(new_arr)
269 271
             new_arr.push(objs)
270 272
             this.tableData = new_arr;
271
-            console.log("表哥2333333333333333333333333333",this.tableData)
273
+           
272 274
           }
273 275
 
274 276
           if(this.$route.query.id == 1){
@@ -301,10 +303,10 @@ export default {
301 303
                 }
302 304
               }
303 305
             }
304
-            console.log("项目new_arr",new_arr)
306
+         
305 307
             this.tableData = []
306 308
             obj.total_price = this.getPrice(new_arr)
307
-            console.log("ar3233223232",new_arr)
309
+           
308 310
             for(let i=0;i<new_arr.length;i++){
309 311
               new_arr[i].is_total = 1
310 312
             }
@@ -330,7 +332,7 @@ export default {
330 332
               new_arr[i].is_total = 1
331 333
             }
332 334
             new_arr.push(obj)
333
-            console.log("new_arr2332323232",new_arr)
335
+           
334 336
             this.tableData = new_arr
335 337
           }
336 338
 
@@ -346,15 +348,12 @@ export default {
346 348
       }
347 349
       return total_price;
348 350
     },
349
-    getActPay() {
350
-      console.log("hh23h323223323", this.list);
351
-      var act_pay = 0;
352
-      for (let i = 0; i < this.list.length; i++) {
353
-        for (let j = 0; j < this.list[i].orders.length; j++) {
354
-          act_pay += this.list[i].orders[j].acct_pay;
355
-        }
351
+    getActPay(){
352
+      var act_pay = 0
353
+      for(let i=0;i<this.orderList.length;i++){
354
+         act_pay += this.orderList[i].psn_part_amt
356 355
       }
357
-      return act_pay;
356
+      return act_pay
358 357
     },
359 358
     getFundPaySumamt() {
360 359
       var fund_pay_sumamt = 0;

+ 9 - 10
src/xt_pages/outpatientTool/gatherPrint.vue View File

@@ -189,7 +189,7 @@
189 189
           this.drugTypeList =response.data.data.drugTypeList
190 190
           this.costClassifyList = response.data.data.costClassifyList 
191 191
           var list = response.data.data.list
192
-          console.log("listw3232323223",list)
192
+          
193 193
 
194 194
           var new_arr = []
195 195
 
@@ -198,7 +198,7 @@
198 198
                new_arr.push(list[i].orders[j])
199 199
             }
200 200
           }
201
-          console.log("new_arr2332323232",new_arr)
201
+          
202 202
 
203 203
           var order_info = []
204 204
           for(let i=0;i<new_arr.length;i++){
@@ -220,7 +220,7 @@
220 220
               }
221 221
             }
222 222
           }
223
-          console.log("order_info222222222222",order_info)
223
+          
224 224
           
225 225
           //合并,相同的合并在一起
226 226
 
@@ -285,7 +285,7 @@
285 285
                arr[i].count_number +=arr[i].child[j].cnt
286 286
             }
287 287
           }
288
-          console.log("arr2323233232322332",arr)
288
+          
289 289
           var obj = {is_total:1,total:0}
290 290
           obj.total = this.getAllPiceTwo(arr)
291 291
           for(let i=0;i<arr.length;i++){
@@ -299,9 +299,9 @@
299 299
           arr.push(obj)
300 300
 
301 301
           this.tableList = arr
302
-          console.log("打印",this.tableList)
302
+         
303 303
           this.patient = response.data.data.patient
304
-          console.log("patinet",this.patient)
304
+         
305 305
           this.his_patient = response.data.data.his_patient
306 306
           this.hisDepatment =  response.data.data.hisDepatment
307 307
           this.order =  response.data.data.order
@@ -310,8 +310,7 @@
310 310
           this.schedule = response.data.data.schedule
311 311
           this.bedNumber = response.data.data.bedNumber
312 312
           if(this.$route.query.keyword !=""){
313
-            console.log("金拉风3322323232323",this.$route.query.keyword)
314
-            console.log("Ar23233232323223",this.tableList)
313
+           
315 314
             var new_arr = []
316 315
             for(let i=0;i<this.tableList.length;i++){
317 316
               if(this.tableList[i].is_total!=1){
@@ -525,7 +524,7 @@
525 524
           
526 525
           }
527 526
          }
528
-         console.log("list232332322323332233223232323",list)
527
+       
529 528
         return list
530 529
       }, 
531 530
     
@@ -1034,7 +1033,7 @@
1034 1033
       return total_price.toFixed(2)
1035 1034
     },
1036 1035
     getDrugType(id){
1037
-      console.log("id2332323232233232232323",id)
1036
+    
1038 1037
       var name = ""
1039 1038
       for(let i=0;i<this.drugTypeList.length;i++){
1040 1039
          if(id == this.drugTypeList[i].value){

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue View File

@@ -761,7 +761,7 @@
761 761
             const params = {
762 762
               'stockIn': this.recordInfo.recordData
763 763
             }
764
-           
764
+            
765 765
             postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type,this.storehouse_id).then(response => {
766 766
               if (response.data.state == 0) {
767 767
                 this.loading = false

+ 2 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue View File

@@ -595,7 +595,8 @@ export default {
595 595
             stockOut: this.recordInfo.recordData
596 596
           };
597 597
        
598
-         
598
+          console.log("parasm2233223233232233232",params)
599
+        
599 600
           const loading = this.$loading({
600 601
             lock: true,
601 602
             text: 'Loading',