Ver código fonte

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

28169 7 meses atrás
pai
commit
07583eb1d5

+ 19 - 1
src/api/fapiao.js Ver arquivo

@@ -11,9 +11,27 @@ export function getOrderFapiaoList(params){
11 11
 
12 12
 export function getFapiaoList(params){
13 13
   return request({
14
-    url:"/api/fapiao/list",
14
+    url:"/api/gdfapiao/list",
15 15
     methods:"get",
16 16
     params:params
17 17
   })
18 18
 }
19 19
 
20
+
21
+
22
+export function OpenBlueFapiao(params){
23
+  return request({
24
+    url:"/api/fapiao/blue",
25
+    methods:"get",
26
+    params:params
27
+  })
28
+}
29
+
30
+
31
+export function OpenRedFapiao(params){
32
+  return request({
33
+    url:"/api/fapiao/red",
34
+    methods:"get",
35
+    params:params
36
+  })
37
+}

+ 0 - 1
src/router/modules/Dialysisanalysis.js Ver arquivo

@@ -42,7 +42,6 @@ export default {
42 42
     //   }
43 43
     // },
44 44
 
45
-
46 45
     {//透析总量分析
47 46
       path: '/Dialysisanalysis/qualitycontrol/new_otherIndicators/Total_analysis',
48 47
       component: () => import('@/xt_pages/Dialysisanalysis/new_otherIndicators/components/Total_analysis'),

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventynine.vue Ver arquivo

@@ -60,7 +60,7 @@
60 60
                           }}
61 61
                         </div>
62 62
                         <div style="flex: 1;">
63
-                          透析次数:{{ record.patient.total_dialysis +
63
+                          透析次数{{ record.patient.total_dialysis +
64 64
                             record.patient.user_sys_before_count
65 65
                               ? record.patient.total_dialysis +
66 66
                                 record.patient.user_sys_before_count

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirtyTwo.vue Ver arquivo

@@ -580,7 +580,7 @@
580 580
                                 <span v-if="item.prescribing_number">&nbsp;&nbsp; {{ item.prescribing_number }}{{ item.prescribing_number_unit }}</span>
581 581
                                 <span v-if="item.single_dose != 0">{{ item.single_dose }}{{ item.single_dose_unit }}</span>
582 582
                                 <span v-if="item.parent_id == 0">{{ item.delivery_way }}</span>
583
-                                <span v-if="item.parent_id == 0">{{ item.execution_frequency }}</span>
583
+                                <!-- <span v-if="item.parent_id == 0">{{ item.execution_frequency }}</span> -->
584 584
                                 <span v-if="item.parent_id == 0 && item.remark.length > 0">({{ advice.remark }})</span>
585 585
                                 <span v-if="item.children && !Array.isArray(item)" style="display:block;border-top: 1px solid #000;" v-for="(child, childindex) in item.children" :key="childindex" class="advice-children">
586 586
                                     <span style="padding-left: 20px !important;">---></span>

+ 9 - 3
src/xt_pages/dialysis/details/index.vue Ver arquivo

@@ -297,7 +297,7 @@
297 297
                   <span>{{main_collection.patient.name}} </span>
298 298
                   ({{ main_collection.patient.dialysis_no }},{{getNewAge(main_collection.patient.id_card_no)  }}岁<span v-if="main_collection.patient.height>0">,{{ main_collection.patient.height }}cm</span>)
299 299
                 </div>
300
-                <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
300
+                <div class="printCell" style="display:flex;" v-if="org_id ==10598 ">
301 301
                   <div style="">透析模式:
302 302
                    <span>{{getModeName(main_collection.prescription.mode_id)  }}</span>
303 303
                   </div>
@@ -545,7 +545,7 @@
545 545
                   </span>
546 546
                   </span>
547 547
                 </div>
548
-                <div class="printCell" style="display:flex;"  v-if="org_id==10598 || org_id == 0">
548
+                <div class="printCell" style="display:flex;"  v-if="org_id==10598">
549 549
                   <span style="display: block;width: 45%;">处方脱水量:{{main_collection.prescription.prescription_water}}
550 550
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
551 551
                      <span v-else>L</span>
@@ -554,7 +554,7 @@
554 554
                     血流量:{{ main_collection.prescription.blood_flow_volume }} ml/min
555 555
                   </span>
556 556
                 </div>
557
-                <div class="printCell" style="display:flex;" v-if="org_id ==10598 || org_id == 0">
557
+                <div class="printCell" style="display:flex;" v-if="org_id ==10598">
558 558
                   <div style="">透析时长:
559 559
                    <span>{{main_collection.prescription.dialysis_duration_hour }}小时 <span v-if="main_collection.prescription.dialysis_duration_minute>0">{{main_collection.prescription.dialysis_duration_minute }}分 </span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
560 560
                   </div>
@@ -562,6 +562,12 @@
562 562
                     {{ getDisplaceLiquiPart(main_collection.prescription.displace_liqui_part) }}
563 563
                   </div>
564 564
                 </div>
565
+                <div class="printCell" style="display:flex;" v-if="org_id ==10635 || org_id == 0">
566
+                  <div>
567
+                    处方脱水量:{{main_collection.prescription.prescription_water}} L
568
+                  </div>
569
+                  <div></div>
570
+                </div>
565 571
               </div>
566 572
             </div>
567 573
 

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventynine.vue Ver arquivo

@@ -36,7 +36,7 @@
36 36
                     {{ dialysisOrder && dialysisOrder.DeviceNumber && dialysisOrder.DeviceNumber.number.length > 0 ? dialysisOrder.DeviceNumber.number : patientInfo.DialysisSchedule.device_number.number }}
37 37
                   </div>
38 38
                   <div style="flex: 1;">
39
-                    透析次数:{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
39
+                    透析次数{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count ? 
40 40
                                 patientInfo.total_dialysis + patientInfo.user_sys_before_count : "/" }}
41 41
                   </div>
42 42
                 </div>

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyTwo.vue Ver arquivo

@@ -666,7 +666,7 @@
666 666
               <span v-if="advice.prescribing_number"> &nbsp;&nbsp; {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
667 667
               <span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
668 668
               <span v-if="advice.parent_id == 0">{{ advice.delivery_way }}</span>
669
-              <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
669
+              <!-- <span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span> -->
670 670
               <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
671 671
             </td>
672 672
             <td height="40px">
@@ -1649,6 +1649,8 @@ export default {
1649 1649
               response.data.data.advices == null
1650 1650
                 ? []
1651 1651
                 : response.data.data.advices
1652
+                console.log('this.doctor_advices',this.doctor_advices);
1653
+                
1652 1654
             for (let index = 0; index < this.doctor_advices.length; index++) {
1653 1655
               this.doctor_advices[index]['isShow'] = 2
1654 1656
             }

+ 2 - 2
src/xt_pages/fapiao/fapiao.vue Ver arquivo

@@ -237,8 +237,8 @@ export default {
237 237
   },
238 238
 
239 239
   created() {
240
-    this.getInitData()
241
-    this.fetchAllAdminUsers()
240
+    // this.getInitData()
241
+    // this.fetchAllAdminUsers()
242 242
     // this.getDoctorList()
243 243
     this.getHisOrderList()
244 244
     // this.getAllstaff()

+ 44 - 8
src/xt_pages/fapiao/newSettleDetail.vue Ver arquivo

@@ -149,10 +149,10 @@
149 149
         <el-table-column align="center" prop="name" label="操作">
150 150
           <template slot-scope="scope">
151 151
             <el-button v-if="scope.row.result.id == 0" size="mini" type="primary"
152
-                       @click="blue(scope.row)">
152
+                       @click="blue()">
153 153
               开票
154 154
             </el-button>
155
-            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 1" size="mini" type="primary"
155
+            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0" size="mini" type="primary"
156 156
                        @click="hongchong(scope.row)">
157 157
               红冲
158 158
             </el-button>
@@ -197,7 +197,7 @@ import { fetchAllAdminUsers } from '@/api/doctor'
197 197
 import axios from 'axios'
198 198
 import { jsGetAge, uParseTime } from '@/utils/tools'
199 199
 import {
200
-  getOrderFapiaoList
200
+  getOrderFapiaoList, OpenBlueFapiao, OpenRedFapiao
201 201
 } from '../../api/fapiao'
202 202
 
203 203
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
@@ -280,6 +280,46 @@ export default {
280 280
   },
281 281
 
282 282
   methods: {
283
+    hongchong(row){
284
+      var  id = row.result.id
285
+      let params = {
286
+        "id":id,
287
+        "admin_user_id":this.$store.getters.xt_user.user.id,
288
+      }
289
+      OpenRedFapiao(params).then((response) => {
290
+        if (response.data.state == 0) {
291
+          this.$message.error(response.data.msg)
292
+          return false
293
+        } else {
294
+          this.$message.success(response.data.msg)
295
+          this.getHisOrderList()
296
+        }
297
+      })
298
+    },
299
+    blue(){
300
+      console.log(this.selecting_schs)
301
+      var order_ids = ""
302
+      for(let i = 0; i < this.selecting_schs.length;i++){
303
+        if(order_ids.length == 0){
304
+          order_ids = this.selecting_schs[i].id
305
+        }else{
306
+          order_ids =order_ids + ","+this.selecting_schs[i].id
307
+        }
308
+      }
309
+      let params = {
310
+        "order_ids":order_ids,
311
+        "admin_user_id":this.$store.getters.xt_user.user.id,
312
+      }
313
+      OpenBlueFapiao(params).then((response) => {
314
+        if (response.data.state == 0) {
315
+          this.$message.error(response.data.msg)
316
+          return false
317
+        } else {
318
+          this.$message.success(response.data.msg)
319
+          this.getHisOrderList()
320
+        }
321
+      })
322
+    },
283 323
     getData(patient_id){
284 324
       this.patient_id = patient_id
285 325
       this.getHisOrderList()
@@ -294,11 +334,7 @@ export default {
294 334
 
295 335
 
296 336
     },
297
-    blue(row){
298
-
299
-    }, yulan(row){
300
-
301
-    },hongchong(row){
337
+    yulan(row){
302 338
 
303 339
     },
304 340
     getAllstaff(){

+ 2 - 1
src/xt_pages/fapiao/patientSettleDetail.vue Ver arquivo

@@ -8,7 +8,7 @@
8 8
       class="app-container"
9 9
       style="display: flex; flex: 1; padding: 10px 20px 0px 20px"
10 10
     >
11
-      <div class="mainLeft">
11
+      <div class="mainLeft">d
12 12
         <div>
13 13
           <div
14 14
             style="
@@ -66,6 +66,7 @@
66 66
 import { GetDetailPatients } from "@/api/his/his_tools";
67 67
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
68 68
 import NewSettleDetail from './newSettleDetail.vue'
69
+import { OpenBlueFapiao, OpenRedFapiao } from '../../api/fapiao'
69 70
 export default {
70 71
   components: {
71 72
     NewSettleDetail,

+ 34 - 4
src/xt_pages/fapiao/settleDetail.vue Ver arquivo

@@ -150,7 +150,7 @@
150 150
                         @click="blue(scope.row)">
151 151
               开票
152 152
             </el-button>
153
-            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 1" size="mini" type="primary"
153
+            <el-button v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0" size="mini" type="primary"
154 154
                         @click="hongchong(scope.row)">
155 155
               红冲
156 156
             </el-button>
@@ -197,7 +197,9 @@ import { fetchAllAdminUsers } from '@/api/doctor'
197 197
 import axios from 'axios'
198 198
 import { jsGetAge, uParseTime } from '@/utils/tools'
199 199
 import {
200
-  getOrderFapiaoList
200
+  getOrderFapiaoList,
201
+  OpenBlueFapiao,
202
+  OpenRedFapiao
201 203
 } from '../../api/fapiao'
202 204
 
203 205
 import { getDialysisRecordInitData } from '@/api/dialysis_record'
@@ -286,11 +288,39 @@ export default {
286 288
 
287 289
     },
288 290
     blue(row){
289
-
291
+     var  ids = row.id
292
+      let params = {
293
+        "order_ids":ids,
294
+        "admin_user_id":this.$store.getters.xt_user.user.id,
295
+      }
296
+      OpenBlueFapiao(params).then((response) => {
297
+        if (response.data.state == 0) {
298
+          this.$message.error(response.data.msg)
299
+          return false
300
+        } else {
301
+          this.$message.success(response.data.msg)
302
+          this.getHisOrderList()
303
+        }
304
+      })
290 305
     }, yulan(row){
291 306
 
292
-    },hongchong(row){
293 307
 
308
+
309
+    },hongchong(row){
310
+      var  id = row.result.id
311
+      let params = {
312
+        "id":id,
313
+        "admin_user_id":this.$store.getters.xt_user.user.id,
314
+      }
315
+      OpenRedFapiao(params).then((response) => {
316
+        if (response.data.state == 0) {
317
+          this.$message.error(response.data.msg)
318
+          return false
319
+        } else {
320
+          this.$message.success(response.data.msg)
321
+          this.getHisOrderList()
322
+        }
323
+      })
294 324
     },
295 325
     getAllstaff(){
296 326
       adminMainView()

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver arquivo

@@ -3862,7 +3862,7 @@ export default {
3862 3862
             var that = this
3863 3863
             this.ws.onopen = function(event){
3864 3864
               if (that.$store.getters.xt_user.org_id == 10387){
3865
-                that.ws.send("{\"url\":\"http://10.93.33.243:20001/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
3865
+                that.ws.send("{\"url\":\"https://dvs.hun.hsip.gov.cn/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
3866 3866
               }
3867 3867
                 // else if(that.$store.getters.xt_user.org_id == 10318){
3868 3868
                 //   that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");

+ 2 - 1
src/xt_pages/outpatientCharges/summary.vue Ver arquivo

@@ -3355,7 +3355,8 @@ export default {
3355 3355
       let params = {
3356 3356
         start_time: this.start_time,
3357 3357
         end_time: this.end_time,
3358
-        p_type: 2
3358
+        p_type: 2,
3359
+        sort_type:this.sort_type
3359 3360
       }
3360 3361
       getExportConsumeDetailList(params).then((response) => {
3361 3362
         if (response.data.state == 0) {