浏览代码

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

yq1 9 个月前
父节点
当前提交
e71abf4ee7

+ 19 - 1
src/api/fapiao.js 查看文件

@@ -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
+}

+ 2 - 2
src/xt_pages/fapiao/fapiao.vue 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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