Selaa lähdekoodia

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

mainqaq 2 vuotta sitten
vanhempi
commit
66bbb9d162

+ 3 - 0
src/xt_pages/DepositManagement/Template/RechargeDetails.vue Näytä tiedosto

@@ -99,6 +99,7 @@
99 99
         </el-table-column>
100 100
         <el-table-column label="操作" align="center" width="350px">
101 101
           <template slot-scope="scope">
102
+            <span v-if="scope.row.trial_status != 1">
102 103
             <el-button
103 104
               size="small"
104 105
               type="primary"
@@ -106,6 +107,8 @@
106 107
             >
107 108
               审核
108 109
             </el-button>
110
+            </span>
111
+           
109 112
             <span v-if="scope.row.trial_status == 1">
110 113
             <el-button
111 114
               size="small"

+ 1 - 1
src/xt_pages/DepositManagement/print/printindex.vue Näytä tiedosto

@@ -36,7 +36,7 @@
36 36
                 >¥{{money}}</div>
37 37
               </div>
38 38
               <div style="display: flex; padding: 0 30px">
39
-                <div>收款由:</div>
39
+                <div>收款由:</div>
40 40
                 <div style="width: 86%; border-bottom: 1px solid #000"><span>预交押金</span></div>
41 41
               </div>
42 42
             </div>

+ 11 - 1
src/xt_pages/data/components/addDrugs.vue Näytä tiedosto

@@ -404,7 +404,7 @@
404 404
                 </div>
405 405
             </el-tab-pane>
406 406
             <el-tab-pane label="扩展数据" name="second">
407
-                <el-form :model="form" label-width="120px"
407
+                <el-form :model="form" label-width="130px"
408 408
                          style="display: flex;flex-wrap: wrap;justify-content: space-between;">
409 409
 
410 410
                     <el-form-item label="标签:" prop="label">
@@ -470,6 +470,16 @@
470 470
                             </el-option>
471 471
                         </el-select>
472 472
                     </el-form-item>
473
+                    <el-form-item label="是否通过药房发药:" prop="">
474
+                        <el-select v-model="form.is_charge_use" style="width:160px;" placeholder="请选择">
475
+                            <el-option
476
+                                    v-for="item,index in options"
477
+                                    :key="index"
478
+                                    :label="item.label"
479
+                                    :value="item.value">
480
+                            </el-option>
481
+                        </el-select>
482
+                    </el-form-item>
473 483
                     <el-form-item label="" style="visibility: hidden;">
474 484
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
475 485
                     </el-form-item>

+ 29 - 16
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Näytä tiedosto

@@ -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) {

+ 15 - 11
src/xt_pages/outpatientTool/components/detailStatistics.vue Näytä tiedosto

@@ -121,11 +121,11 @@
121 121
       </el-table-column>
122 122
      
123 123
     </el-table>
124
-    <div style="display:flex;justify-content: space-around;">
124
+    <div style="display:flex;justify-content: space-around;margin-top: 25px;">
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
     },

+ 15 - 15
src/xt_pages/outpatientTool/components/gatherStatistics.vue Näytä tiedosto

@@ -125,7 +125,7 @@
125 125
       </el-table-column>
126 126
 
127 127
     </el-table>
128
-     <div>
128
+     <div style="margin-top: 25px;">
129 129
       <div class="listInfo">
130 130
             <div>西药:{{getWesternMedicineCostTotal()}}</div>
131 131
             <div>中成药:{{getChineseTraditionalMedicineCostTotal()}}</div>
@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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){

+ 211 - 162
src/xt_pages/outpatientTool/statistics.vue Näytä tiedosto

@@ -1,34 +1,47 @@
1 1
 <template>
2 2
   <div class="main-contain new-main-contain">
3 3
     <div class="position">
4
-<!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
5
-      <bread-crumb :crumbs='crumbs'></bread-crumb>
4
+      <!--      <bread-crumb :crumbs='crumbs'></bread-crumb>-->
5
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
6 6
     </div>
7
-    <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7
+    <div
8
+      class="app-container"
9
+      style="display: flex; flex: 1; padding: 10px 20px 0px 20px"
10
+    >
8 11
       <div class="mainLeft">
9 12
         <div>
10
-         <el-input
11
-          size="small"
12
-          style="width: 130px"
13
-          v-model="keywords"
14
-          class="filter-item"
15
-          placeholder="请输入患者名称"
16
-        />
17
-        <el-button
18
-          size="small"
19
-          class="filter-item"
20
-          type="primary"
21
-          @click="searchAction"
22
-        >搜索
23
-        </el-button>
24
-          <el-table  :data="patientTableData" :height="tableHeight" border style="width: 100%;"
25
-                     :row-style="{ color: '#303133' }"
26
-                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
27
-                     highlight-current-row
28
-                     ref="singleTable"
29
-                     @current-change="handleCurrentChange"
30
-                   >
31
-            <el-table-column align="center" prop="name" label="姓名" wdith='89'>
13
+          <div style="margin:10px 0;display: flex;justify-content: space-between;">
14
+            <el-input
15
+              size="small"
16
+              style="width: 130px"
17
+              v-model="keywords"
18
+              class="filter-item"
19
+              placeholder="请输入患者名称"
20
+            />
21
+            <el-button
22
+              size="small"
23
+              class="filter-item"
24
+              type="primary"
25
+              @click="searchAction"
26
+              >搜索
27
+            </el-button>
28
+          </div>
29
+
30
+          <el-table
31
+            :data="patientTableData"
32
+            :height="tableHeight"
33
+            border
34
+            style="width: 100%"
35
+            :row-style="{ color: '#303133' }"
36
+            :header-cell-style="{
37
+              backgroundColor: 'rgb(245, 247, 250)',
38
+              color: '#606266',
39
+            }"
40
+            highlight-current-row
41
+            ref="singleTable"
42
+            @current-change="handleCurrentChange"
43
+          >
44
+            <el-table-column align="center" prop="name" label="姓名" wdith="89">
32 45
               <template slot-scope="scope">{{ scope.row.name }}</template>
33 46
             </el-table-column>
34 47
           </el-table>
@@ -39,21 +52,27 @@
39 52
           <el-tab-pane label="明细" name="明细"></el-tab-pane>
40 53
           <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
41 54
         </el-tabs>
42
-        <detail-statistics v-if="titleType == '明细'" :patient_id="patient_id" ref="child"></detail-statistics>
43
-        <gather-statistics v-if="titleType == '汇总'" :patient_id="patient_id" ref="childOne"></gather-statistics>
55
+        <detail-statistics
56
+          v-if="titleType == '明细'"
57
+          :patient_id="patient_id"
58
+          ref="child"
59
+        ></detail-statistics>
60
+        <gather-statistics
61
+          v-if="titleType == '汇总'"
62
+          :patient_id="patient_id"
63
+          ref="childOne"
64
+        ></gather-statistics>
44 65
       </div>
45 66
     </div>
46 67
   </div>
47 68
 </template>
48 69
 
49 70
 <script>
50
-import {
51
-  GetDetailPatients,
52
-} from '@/api/his/his_tools'
53
-import BreadCrumb from '@/xt_pages/components/bread-crumb'
71
+import { GetDetailPatients } from "@/api/his/his_tools";
72
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
54 73
 
55
-import DetailStatistics from './components/detailStatistics'
56
-import GatherStatistics from './components/gatherStatistics'
74
+import DetailStatistics from "./components/detailStatistics";
75
+import GatherStatistics from "./components/gatherStatistics";
57 76
 export default {
58 77
   components: {
59 78
     GatherStatistics,
@@ -61,58 +80,79 @@ export default {
61 80
     BreadCrumb,
62 81
   },
63 82
   data() {
64
-
65 83
     return {
66
-      patientTableData:[],
84
+      patientTableData: [],
67 85
       tableHeight: 400,
68 86
       crumbs: [
69
-        { path: false, name: 'His工具' },
70
-        { path: false, name: '明细汇总统计' }
87
+        { path: false, name: "His工具" },
88
+        { path: false, name: "明细汇总统计" },
71 89
       ],
72
-      titleType: '明细',
73
-      patient_id:0,
74
-      keywords:"",
90
+      titleType: "明细",
91
+      patient_id: 0,
92
+      keywords: "",
93
+    };
94
+  },
95
+  //判断列表页是否刷新
96
+  beforeRouteEnter(to, from, next) {
97
+    console.log(from, "beforeRouteEnter");
98
+    if (from.path == "/hisTool/detailPrint") {
99
+      next((vm) => {
100
+        vm.patient_id = vm.$store.getters.pagedata.list.patient_id;
101
+        // setTimeout(() => {
102
+        //   vm.getHisOrderList();
103
+        // },300)
104
+        
105
+      });
106
+    } else {
107
+      next((vm) => {
108
+        vm.getPatientList()
109
+        // setTimeout(() => {
110
+        //   vm.getHisOrderList();
111
+        // },300)
112
+        
113
+      });
75 114
     }
76 115
   },
116
+
77 117
   methods: {
78
-    getPatientList(){
79
-       var params = {
80
-         keyword:this.keywords,
81
-       }
82
-      GetDetailPatients(params).then(response => {
118
+    getPatientList() {
119
+      var params = {
120
+        keyword: this.keywords,
121
+      };
122
+      GetDetailPatients(params).then((response) => {
83 123
         if (response.data.state == 0) {
84
-          this.$message.error(response.data.msg)
85
-          return false
124
+          this.$message.error(response.data.msg);
125
+          return false;
86 126
         } else {
87
-          this.patientTableData = response.data.data.patient
88
-          this.patient_id =  this.patientTableData[0].id
89
-          this.$refs.singleTable.setCurrentRow(this.patientTableData[0])
127
+          this.patientTableData = response.data.data.patient;
128
+          this.patient_id = this.patientTableData[0].id;
129
+
130
+          this.$refs.singleTable.setCurrentRow(this.patientTableData[0]);
90 131
         }
91
-      })
132
+      });
92 133
     },
93
-    searchAction(){
94
-      this.getPatientList()
134
+    searchAction() {
135
+      this.getPatientList();
95 136
     },
96
-    handleCurrentChange(row){
97
-      this.patient_id = 0
98
-      this.patient_id = row.id
137
+    handleCurrentChange(row,index) {
138
+      this.patient_id = row.id;
99 139
       // this.$refs.child.getHisSummaryDetailList()
100 140
       // this.$refs.childOne.getGatherDetailList()
141
+      // this.$store.commit("SET_PAGEDATA",{
142
+      //   patient_id: row.id,
143
+      // })
144
+      console.log(index,'po')
101 145
     },
102
-
103 146
   },
104 147
   created() {
105
-    const tableHeight = document.body.clientHeight - 290
106
-    this.tableHeight = tableHeight
107
-    this.getPatientList()
108
-
148
+    const tableHeight = document.body.clientHeight - 290;
149
+    this.tableHeight = tableHeight;
150
+    this.getPatientList();
109 151
   },
110 152
 
111
-  mounted() {
112
-
113
-  },
114
-  watch: {}
115
-}
153
+  mounted() {},
154
+  watch: {},
155
+};
116 156
 </script>
117 157
 
118 158
 <style lang="scss" scoped>
@@ -138,10 +178,9 @@ export default {
138 178
   display: flex;
139 179
   flex-direction: column;
140 180
 
141
-.el-radio {
142
-  margin-right: 5px;
143
-}
144
-
181
+  .el-radio {
182
+    margin-right: 5px;
183
+  }
145 184
 }
146 185
 .mainRight {
147 186
   margin-left: 10px;
@@ -151,12 +190,11 @@ export default {
151 190
   flex-direction: column;
152 191
   overflow-y: auto;
153 192
 
154
-.cellSpan {
155
-  min-width: 80px;
156
-  display: inline-block;
157
-  margin-right: 10px;
158
-}
159
-
193
+  .cellSpan {
194
+    min-width: 80px;
195
+    display: inline-block;
196
+    margin-right: 10px;
197
+  }
160 198
 }
161 199
 .mainCenter {
162 200
   display: flex;
@@ -169,16 +207,15 @@ export default {
169 207
   flex-direction: column;
170 208
   position: relative;
171 209
 
172
-.el-form-item {
173
-  width: 32%;
174
-  margin-right: 1%;
175
-  float: left;
176
-}
177
-
178
-.el-form-item__label {
179
-  text-align: left;
180
-}
210
+  .el-form-item {
211
+    width: 32%;
212
+    margin-right: 1%;
213
+    float: left;
214
+  }
181 215
 
216
+  .el-form-item__label {
217
+    text-align: left;
218
+  }
182 219
 }
183 220
 .backColor {
184 221
   background: #f6f8f9;
@@ -192,21 +229,19 @@ export default {
192 229
   overflow-y: auto;
193 230
   margin-bottom: 60px;
194 231
 
195
-.el-tabs__item {
196
-  padding: 0 10px;
197
-}
198
-
232
+  .el-tabs__item {
233
+    padding: 0 10px;
234
+  }
199 235
 }
200 236
 .preTabs {
201 237
   height: 100%;
202 238
   display: flex;
203 239
   flex-direction: column;
204 240
 
205
-.el-tabs__content {
206
-  flex: 1;
207
-  overflow-y: auto;
208
-}
209
-
241
+  .el-tabs__content {
242
+    flex: 1;
243
+    overflow-y: auto;
244
+  }
210 245
 }
211 246
 
212 247
 .costBox {
@@ -240,25 +275,24 @@ export default {
240 275
   border: 1px solid #d2d2d2;
241 276
   box-sizing: border-box;
242 277
 
243
-p {
244
-  width: 50%;
245
-  height: 40px;
246
-  line-height: 40px;
247
-  text-align: center;
248
-  background: #eee;
249
-  float: left;
250
-}
251
-
252
-> p:last-child {
253
-  border-left: 1px solid #d2d2d2;
254
-  float: right;
255
-}
256
-
257
-.activeP {
258
-  background: #409EFF;
259
-  color: #fff;
260
-}
261
-
278
+  p {
279
+    width: 50%;
280
+    height: 40px;
281
+    line-height: 40px;
282
+    text-align: center;
283
+    background: #eee;
284
+    float: left;
285
+  }
286
+
287
+  > p:last-child {
288
+    border-left: 1px solid #d2d2d2;
289
+    float: right;
290
+  }
291
+
292
+  .activeP {
293
+    background: #409eff;
294
+    color: #fff;
295
+  }
262 296
 }
263 297
 .comfirmBox {
264 298
   width: 100%;
@@ -298,68 +332,83 @@ p {
298 332
 
299 333
 <style lang="scss">
300 334
 .centerLeft {
301
-
302
-.el-form-item__label {
303
-  text-align: left;
304
-}
305
-
335
+  .el-form-item__label {
336
+    text-align: left;
337
+  }
306 338
 }
307 339
 .tabsBox {
308
-
309
-.el-tabs__item {
310
-  padding: 0 10px;
311
-}
312
-
313
-.el-tabs--bottom .el-tabs--left > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom .el-tabs--right > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2), .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2) {
314
-  padding: 0 10px;
315
-}
316
-
317
-.el-tabs--bottom .el-tabs--left > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom .el-tabs--right > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom.el-tabs--border-card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:last-child, .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:last-child {
318
-  padding: 0 10px;
319
-}
320
-
321
-.el-tabs--card > .el-tabs__header .el-tabs__item.is-active.is-closable {
322
-  padding: 0 10px;
323
-}
324
-
340
+  .el-tabs__item {
341
+    padding: 0 10px;
342
+  }
343
+
344
+  .el-tabs--bottom
345
+    .el-tabs--left
346
+    > .el-tabs__header
347
+    .el-tabs__item:nth-child(2),
348
+  .el-tabs--bottom
349
+    .el-tabs--right
350
+    > .el-tabs__header
351
+    .el-tabs__item:nth-child(2),
352
+  .el-tabs--bottom.el-tabs--border-card
353
+    > .el-tabs__header
354
+    .el-tabs__item:nth-child(2),
355
+  .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2),
356
+  .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:nth-child(2),
357
+  .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:nth-child(2),
358
+  .el-tabs--top.el-tabs--border-card
359
+    > .el-tabs__header
360
+    .el-tabs__item:nth-child(2),
361
+  .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:nth-child(2) {
362
+    padding: 0 10px;
363
+  }
364
+
365
+  .el-tabs--bottom .el-tabs--left > .el-tabs__header .el-tabs__item:last-child,
366
+  .el-tabs--bottom .el-tabs--right > .el-tabs__header .el-tabs__item:last-child,
367
+  .el-tabs--bottom.el-tabs--border-card
368
+    > .el-tabs__header
369
+    .el-tabs__item:last-child,
370
+  .el-tabs--bottom.el-tabs--card > .el-tabs__header .el-tabs__item:last-child,
371
+  .el-tabs--top .el-tabs--left > .el-tabs__header .el-tabs__item:last-child,
372
+  .el-tabs--top .el-tabs--right > .el-tabs__header .el-tabs__item:last-child,
373
+  .el-tabs--top.el-tabs--border-card
374
+    > .el-tabs__header
375
+    .el-tabs__item:last-child,
376
+  .el-tabs--top.el-tabs--card > .el-tabs__header .el-tabs__item:last-child {
377
+    padding: 0 10px;
378
+  }
379
+
380
+  .el-tabs--card > .el-tabs__header .el-tabs__item.is-active.is-closable {
381
+    padding: 0 10px;
382
+  }
325 383
 }
326 384
 .centerRight {
385
+  .el-tabs__nav-scroll {
386
+    display: flex;
387
+  }
327 388
 
328
-.el-tabs__nav-scroll {
329
-  display: flex;
330
-}
331
-
332
-.el-tabs__nav {
333
-  margin: 0 auto;
334
-}
335
-
336
-.el-table th .cell, .el-table td .cell {
337
-  padding: 0 2px;
338
-}
389
+  .el-tabs__nav {
390
+    margin: 0 auto;
391
+  }
339 392
 
393
+  .el-table th .cell,
394
+  .el-table td .cell {
395
+    padding: 0 2px;
396
+  }
340 397
 }
341 398
 .preTabs {
342
-
343
-.el-tabs__content {
344
-
345
-}
346
-
399
+  .el-tabs__content {
400
+  }
347 401
 }
348 402
 .rightTabs {
349 403
   height: 100%;
350 404
 
351
-
352
-.el-tabs__content {
353
-
354
-}
355
-
405
+  .el-tabs__content {
406
+  }
356 407
 }
357 408
 .centerDialog {
358
-
359
-.el-dialog__body {
360
-  max-height: calc(100vh - 100px) !important;
361
-  padding: 0 20px;
362
-}
363
-
409
+  .el-dialog__body {
410
+    max-height: calc(100vh - 100px) !important;
411
+    padding: 0 20px;
412
+  }
364 413
 }
365 414
 </style>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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',