Browse Source

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

mainqaq 3 years ago
parent
commit
66bbb9d162

+ 3 - 0
src/xt_pages/DepositManagement/Template/RechargeDetails.vue View File

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

+ 1 - 1
src/xt_pages/DepositManagement/print/printindex.vue View File

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

+ 11 - 1
src/xt_pages/data/components/addDrugs.vue View File

404
                 </div>
404
                 </div>
405
             </el-tab-pane>
405
             </el-tab-pane>
406
             <el-tab-pane label="扩展数据" name="second">
406
             <el-tab-pane label="扩展数据" name="second">
407
-                <el-form :model="form" label-width="120px"
407
+                <el-form :model="form" label-width="130px"
408
                          style="display: flex;flex-wrap: wrap;justify-content: space-between;">
408
                          style="display: flex;flex-wrap: wrap;justify-content: space-between;">
409
 
409
 
410
                     <el-form-item label="标签:" prop="label">
410
                     <el-form-item label="标签:" prop="label">
470
                             </el-option>
470
                             </el-option>
471
                         </el-select>
471
                         </el-select>
472
                     </el-form-item>
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
                     <el-form-item label="" style="visibility: hidden;">
483
                     <el-form-item label="" style="visibility: hidden;">
474
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
484
                         <el-input style="width:160px;" placeholder="" maxlength="30"></el-input>
475
                     </el-form-item>
485
                     </el-form-item>

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

1663
         this.isVisibility = true
1663
         this.isVisibility = true
1664
       },
1664
       },
1665
       handleAdviceCommit() {
1665
       handleAdviceCommit() {
1666
-        //
1666
+       
1667
           let results = []
1667
           let results = []
1668
           for (let i = 0; i < this.targetAdvices.length; i++) {
1668
           for (let i = 0; i < this.targetAdvices.length; i++) {
1669
             for (let a = 0; a < this.checkedCities.length; a++) {
1669
             for (let a = 0; a < this.checkedCities.length; a++) {
1680
 
1680
 
1681
           var date = new Date()
1681
           var date = new Date()
1682
           var hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
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
           if (results.length > 0) {
1685
           if (results.length > 0) {
1687
             if(!this.isLoading){
1686
             if(!this.isLoading){
1688
               if (this.is_pre == 1) {
1687
               if (this.is_pre == 1) {
1693
                 }
1692
                 }
1694
 
1693
 
1695
                 var arr = this.dialysisPrescription
1694
                 var arr = this.dialysisPrescription
1696
-                // console.log('arr', arr)
1695
+               
1697
 
1696
 
1698
                 const ParamsQuery = arr
1697
                 const ParamsQuery = arr
1699
-                // console.log('医嘱推送2', ParamsQuery)
1698
+                
1700
 
1699
 
1701
                 ParamsQuery['patient'] = this.patient.id
1700
                 ParamsQuery['patient'] = this.patient.id
1702
                 ParamsQuery['record_date'] = this.record_date
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
                 if (this.prescription.creater <= 0) {
1706
                 if (this.prescription.creater <= 0) {
1705
                   ParamsQuery['mode'] = '1'
1707
                   ParamsQuery['mode'] = '1'
1706
                 } else {
1708
                 } else {
1713
                   }
1715
                   }
1714
                 }
1716
                 }
1715
                 this.isLoading = true
1717
                 this.isLoading = true
1718
+                console.log("ParamsQuery233232322323322332232323",ParamsQuery)
1719
+
1716
                 postPrescription(ParamsQuery).then(response => {
1720
                 postPrescription(ParamsQuery).then(response => {
1717
                   if (response.data.state == 0) {
1721
                   if (response.data.state == 0) {
1718
                     this.$message.error(response.data.msg)
1722
                     this.$message.error(response.data.msg)
1726
                       duration: 2000
1730
                       duration: 2000
1727
                     })
1731
                     })
1728
                     var date = new Date()
1732
                     var date = new Date()
1729
-
1730
-                    // console.log(this.start_time)
1731
-
1733
+                    
1732
                     const params = {
1734
                     const params = {
1733
                       advices: results,
1735
                       advices: results,
1734
                       advice_date: this.start_time.split(' ')[0],
1736
                       advice_date: this.start_time.split(' ')[0],
1738
                       start_time: this.start_time,
1740
                       start_time: this.start_time,
1739
                       remark: ''
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
                       rs => {
1751
                       rs => {
1743
                         var resp = rs.data
1752
                         var resp = rs.data
1744
                         if (resp.state == 1) {
1753
                         if (resp.state == 1) {
1767
                   return
1776
                   return
1768
                 }
1777
                 }
1769
                 var arr = this.dialysisPrescription
1778
                 var arr = this.dialysisPrescription
1770
-                // console.log('arr', arr)
1771
-
1779
+                
1772
                 const ParamsQuery = arr
1780
                 const ParamsQuery = arr
1773
-                // console.log('医嘱推送3', ParamsQuery)
1774
-
1781
+              
1775
                 ParamsQuery['patient'] = this.patient.id
1782
                 ParamsQuery['patient'] = this.patient.id
1776
                 ParamsQuery['record_date'] = this.record_date
1783
                 ParamsQuery['record_date'] = this.record_date
1777
                 ParamsQuery['mode'] = 1
1784
                 ParamsQuery['mode'] = 1
1806
                       start_time: this.start_time,
1813
                       start_time: this.start_time,
1807
                       remark: ''
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
                       rs => {
1823
                       rs => {
1811
                         var resp = rs.data
1824
                         var resp = rs.data
1812
                         if (resp.state == 1) {
1825
                         if (resp.state == 1) {

+ 15 - 11
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

121
       </el-table-column>
121
       </el-table-column>
122
      
122
      
123
     </el-table>
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
       <div>总费用:{{getAllPice()}}</div>
125
       <div>总费用:{{getAllPice()}}</div>
126
      <div>个人支付:
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
     </div>
129
     </div>
130
      <div>基金支付记账:{{getFundPaySumamt()}}</div>
130
      <div>基金支付记账:{{getFundPaySumamt()}}</div>
131
      <div>补充医疗支付记账:{{getHifesPay()}}</div>
131
      <div>补充医疗支付记账:{{getHifesPay()}}</div>
179
       id:0,
179
       id:0,
180
       start_time:"",
180
       start_time:"",
181
       end_time:"",
181
       end_time:"",
182
+      his_record_patient:{},
183
+      orderList:[],
182
     }
184
     }
183
   },
185
   },
184
   methods: {
186
   methods: {
220
        if(response.data.state == 1){
222
        if(response.data.state == 1){
221
           var list =  response.data.data.list
223
           var list =  response.data.data.list
222
           this.his_patient = response.data.data.his_patient
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
           this.list = list
230
           this.list = list
224
           this.tableData = []
231
           this.tableData = []
225
           for(let i=0;i<list.length;i++){
232
           for(let i=0;i<list.length;i++){
297
                 }
304
                 }
298
               } 
305
               } 
299
             }
306
             }
300
-            // console.log("项目new_arr",new_arr)
307
+           
301
             this.tableData = []
308
             this.tableData = []
302
             obj.total_price = this.getPrice(new_arr)
309
             obj.total_price = this.getPrice(new_arr)
303
-            // console.log("ar3233223232",new_arr)
304
-            // new_arr.push(obj)
310
+           
305
             this.tableData = new_arr
311
             this.tableData = new_arr
306
             }
312
             }
307
 
313
 
322
             this.tableData = new_arr
328
             this.tableData = new_arr
323
           }      
329
           }      
324
           
330
           
325
-          // console.log("hh233223233232323232322332",this.tableData)
331
+         
326
        }
332
        }
327
      })
333
      })
328
     },
334
     },
335
     },
341
     },
336
     getActPay(){
342
     getActPay(){
337
       var act_pay = 0
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
       return act_pay
347
       return act_pay
344
     },
348
     },

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

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

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

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

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

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

+ 211 - 162
src/xt_pages/outpatientTool/statistics.vue View File

1
 <template>
1
 <template>
2
   <div class="main-contain new-main-contain">
2
   <div class="main-contain new-main-contain">
3
     <div class="position">
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
     </div>
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
       <div class="mainLeft">
11
       <div class="mainLeft">
9
         <div>
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
               <template slot-scope="scope">{{ scope.row.name }}</template>
45
               <template slot-scope="scope">{{ scope.row.name }}</template>
33
             </el-table-column>
46
             </el-table-column>
34
           </el-table>
47
           </el-table>
39
           <el-tab-pane label="明细" name="明细"></el-tab-pane>
52
           <el-tab-pane label="明细" name="明细"></el-tab-pane>
40
           <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
53
           <el-tab-pane label="汇总" name="汇总"></el-tab-pane>
41
         </el-tabs>
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
       </div>
65
       </div>
45
     </div>
66
     </div>
46
   </div>
67
   </div>
47
 </template>
68
 </template>
48
 
69
 
49
 <script>
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
 export default {
76
 export default {
58
   components: {
77
   components: {
59
     GatherStatistics,
78
     GatherStatistics,
61
     BreadCrumb,
80
     BreadCrumb,
62
   },
81
   },
63
   data() {
82
   data() {
64
-
65
     return {
83
     return {
66
-      patientTableData:[],
84
+      patientTableData: [],
67
       tableHeight: 400,
85
       tableHeight: 400,
68
       crumbs: [
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
   methods: {
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
         if (response.data.state == 0) {
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
         } else {
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
       // this.$refs.child.getHisSummaryDetailList()
139
       // this.$refs.child.getHisSummaryDetailList()
100
       // this.$refs.childOne.getGatherDetailList()
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
   created() {
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
 </script>
156
 </script>
117
 
157
 
118
 <style lang="scss" scoped>
158
 <style lang="scss" scoped>
138
   display: flex;
178
   display: flex;
139
   flex-direction: column;
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
 .mainRight {
185
 .mainRight {
147
   margin-left: 10px;
186
   margin-left: 10px;
151
   flex-direction: column;
190
   flex-direction: column;
152
   overflow-y: auto;
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
 .mainCenter {
199
 .mainCenter {
162
   display: flex;
200
   display: flex;
169
   flex-direction: column;
207
   flex-direction: column;
170
   position: relative;
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
 .backColor {
220
 .backColor {
184
   background: #f6f8f9;
221
   background: #f6f8f9;
192
   overflow-y: auto;
229
   overflow-y: auto;
193
   margin-bottom: 60px;
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
 .preTabs {
236
 .preTabs {
201
   height: 100%;
237
   height: 100%;
202
   display: flex;
238
   display: flex;
203
   flex-direction: column;
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
 .costBox {
247
 .costBox {
240
   border: 1px solid #d2d2d2;
275
   border: 1px solid #d2d2d2;
241
   box-sizing: border-box;
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
 .comfirmBox {
297
 .comfirmBox {
264
   width: 100%;
298
   width: 100%;
298
 
332
 
299
 <style lang="scss">
333
 <style lang="scss">
300
 .centerLeft {
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
 .tabsBox {
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
 .centerRight {
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
 .preTabs {
398
 .preTabs {
342
-
343
-.el-tabs__content {
344
-
345
-}
346
-
399
+  .el-tabs__content {
400
+  }
347
 }
401
 }
348
 .rightTabs {
402
 .rightTabs {
349
   height: 100%;
403
   height: 100%;
350
 
404
 
351
-
352
-.el-tabs__content {
353
-
354
-}
355
-
405
+  .el-tabs__content {
406
+  }
356
 }
407
 }
357
 .centerDialog {
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
 </style>
414
 </style>

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

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

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

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