浏览代码

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

csx 4 年前
父节点
当前提交
928bff8ef5

+ 2 - 2
src/api/his/his.js 查看文件

410
 
410
 
411
 
411
 
412
 
412
 
413
-export function GetHisHospitalPrescriptionList (params) {
413
+export function getHisHospitalPrescriptionList (params) {
414
   return request({
414
   return request({
415
-    url: '/api/hospotalcharge/info',
415
+    url: '/api/hospitalprescription/list',
416
     method: 'get',
416
     method: 'get',
417
     params:params,
417
     params:params,
418
   })
418
   })

+ 5 - 6
src/api/project/project.js 查看文件

437
 }
437
 }
438
 
438
 
439
 export function getHisPatientDetail(params){
439
 export function getHisPatientDetail(params){
440
-  console.log("params99999",params)
440
+  console.log("params99999",params);
441
   return request({
441
   return request({
442
     url:"/api/hispatient/gethispatientdetail",
442
     url:"/api/hispatient/gethispatientdetail",
443
     method:"Get",
443
     method:"Get",
454
   })
454
   })
455
 }
455
 }
456
 
456
 
457
-export function getPrescriptionList(id,params){
457
+export function getPrescriptionList(id,p_type){
458
 
458
 
459
   return request({
459
   return request({
460
-    url:"/api/hispatient/getprescription?patient_id="+id,
460
+    url:"/api/hispatient/getprescription?patient_id="+id+"&p_type="+p_type,
461
     method:"Get",
461
     method:"Get",
462
-    params:params
463
   })
462
   })
464
 }
463
 }
465
 
464
 
527
 
526
 
528
 
527
 
529
 export function postProjectInformation(params){
528
 export function postProjectInformation(params){
530
-  
529
+
531
   return request({
530
   return request({
532
     url:"/api/postprojectinformation",
531
     url:"/api/postprojectinformation",
533
     method:"post",
532
     method:"post",
541
     method:"get",
540
     method:"get",
542
     params:params
541
     params:params
543
   })
542
   })
544
-}
543
+}

+ 6 - 0
src/router/modules/outpatientRecord.js 查看文件

41
       name: 'hospitalChargesManagement',
41
       name: 'hospitalChargesManagement',
42
       meta: { title: 'hospitalChargesManagement', noCache: true }
42
       meta: { title: 'hospitalChargesManagement', noCache: true }
43
     },
43
     },
44
+    {
45
+      path: '/outpatientRecord/summary',
46
+      component: () => import('@/xt_pages/hospitalStation/summary'),
47
+      name: 'summary',
48
+      meta: { title: 'summary', noCache: true }
49
+    },
44
 
50
 
45
 
51
 
46
   ]
52
   ]

+ 1 - 1
src/xt_pages/hospitalStation/doctorDesk.vue 查看文件

1934
       },
1934
       },
1935
 
1935
 
1936
       getPrescriptionList(id) {
1936
       getPrescriptionList(id) {
1937
-        getPrescriptionList(id).then(response => {
1937
+        getPrescriptionList(id,1).then(response => {
1938
           if (response.data.state == 1) {
1938
           if (response.data.state == 1) {
1939
             this.centerDialogVisible = true;
1939
             this.centerDialogVisible = true;
1940
             var list = response.data.data.list;
1940
             var list = response.data.data.list;

+ 8 - 8
src/xt_pages/hospitalStation/pastInquiries.vue 查看文件

22
           <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
22
           <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template>
23
         </el-table-column>
23
         </el-table-column>
24
         <el-table-column align="center" prop="name" label="处方日期" width="200">
24
         <el-table-column align="center" prop="name" label="处方日期" width="200">
25
-          <template slot-scope="scope"> {{scope.row.info?getTimes(scope.row.info.ctime):''}}</template>
25
+          <template slot-scope="scope"> {{scope.row.ctime?getTimes(scope.row.ctime):''}}</template>
26
 
26
 
27
         </el-table-column>
27
         </el-table-column>
28
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
28
         <!--<el-table-column align="center" prop="name" label="患者类型">-->
29
           <!--<template slot-scope="scope">{{}}</template>-->
29
           <!--<template slot-scope="scope">{{}}</template>-->
30
         <!--</el-table-column>-->
30
         <!--</el-table-column>-->
31
         <el-table-column align="center" prop="name" label="处方号">
31
         <el-table-column align="center" prop="name" label="处方号">
32
-          <template slot-scope="scope">{{scope.row.info?scope.row.info.prescription_number:''}}</template>
32
+          <template slot-scope="scope">{{scope.row.prescription_number?scope.row.prescription_number:''}}</template>
33
         </el-table-column>
33
         </el-table-column>
34
         <el-table-column align="center" prop="name" label="开立医生">
34
         <el-table-column align="center" prop="name" label="开立医生">
35
-          <template slot-scope="scope">{{scope.row.info?scope.row.info.doctor:''}}</template>
35
+          <template slot-scope="scope">{{scope.row.doctor?scope.row.doctor:''}}</template>
36
         </el-table-column>
36
         </el-table-column>
37
         <el-table-column align="center" prop="name" label="诊断">
37
         <el-table-column align="center" prop="name" label="诊断">
38
-          <template slot-scope="scope">{{getDiagnosis(scope.row.info.diagnosis)}}</template>
38
+          <template slot-scope="scope">{{getDiagnosis(scope.row.diagnosis)}}</template>
39
         </el-table-column>
39
         </el-table-column>
40
         <el-table-column align="center" prop="name" label="状态" width="100">
40
         <el-table-column align="center" prop="name" label="状态" width="100">
41
           <template slot-scope="scope">
41
           <template slot-scope="scope">
42
-            <div v-if=" scope.row.info && scope.row.info.id > 0">已就诊</div>
42
+            <div v-if="  scope.row.id > 0">已就诊</div>
43
             <div v-else>未就诊</div>
43
             <div v-else>未就诊</div>
44
           </template>
44
           </template>
45
         </el-table-column>
45
         </el-table-column>
121
         return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
121
         return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
122
       },
122
       },
123
       handerShowDetail(row) {
123
       handerShowDetail(row) {
124
-        if(row.info.id == 0){
124
+        if(row.id == 0){
125
           this.$message.error("未就诊");
125
           this.$message.error("未就诊");
126
           return
126
           return
127
         }
127
         }
128
-        this.$refs.inquiriesDetail.show(row.info.id)
128
+        this.$refs.inquiriesDetail.show(row.id)
129
       }, getHisPrescriptionList() {
129
       }, getHisPrescriptionList() {
130
         let params = {
130
         let params = {
131
           record_date:this.record_date,
131
           record_date:this.record_date,
133
           limit: this.limit,
133
           limit: this.limit,
134
           keywords: this.keywords,
134
           keywords: this.keywords,
135
         };
135
         };
136
-        getHisPrescriptionList(params).then(response => {
136
+        getHisHospitalPrescriptionList(params).then(response => {
137
           if (response.data.state == 0) {
137
           if (response.data.state == 0) {
138
             this.$message.error(response.data.msg);
138
             this.$message.error(response.data.msg);
139
             return false
139
             return false

+ 8 - 9
src/xt_pages/hospitalStation/summary.vue 查看文件

66
         >
66
         >
67
         </el-table-column>
67
         </el-table-column>
68
         <el-table-column align="center" prop="name" label="就诊号">
68
         <el-table-column align="center" prop="name" label="就诊号">
69
-          <template slot-scope="scope">{{ scope.row.his_patient.number }}</template>
69
+          <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
70
         </el-table-column>
70
         </el-table-column>
71
         <el-table-column align="center" prop="name" label="患者名字">
71
         <el-table-column align="center" prop="name" label="患者名字">
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
72
           <template slot-scope="scope">{{ scope.row.patient.name }}</template>
104
               结算单
104
               结算单
105
             </el-button>
105
             </el-button>
106
             <el-button size="mini" type="primary" @click="toRefund(scope.row)"
106
             <el-button size="mini" type="primary" @click="toRefund(scope.row)"
107
-                       v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106  || $store.getters.xt_user.org_id== 9990)">
107
+                       v-if="(scope.row.order_status == 2 || $store.getters.xt_user.org_id== 9990)">
108
               退费
108
               退费
109
             </el-button>
109
             </el-button>
110
             <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
110
             <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
294
           }).then(() => {
294
           }).then(() => {
295
             let params = {
295
             let params = {
296
               'order_id': row.id,
296
               'order_id': row.id,
297
-              'patient_id': row.patient_id,
298
-              'record_time': that.getTimes(row.settle_accounts_date),
299
-              'admin_user_id': that.$store.getters.xt_user.user.id,
297
+              'admin_user_id': this.$store.getters.xt_user.user.id,
300
             };
298
             };
301
-            axios.get('http://127.0.0.1:9532/api/refund/post', {
299
+            axios.get('http://127.0.0.1:9532/zh/api/refund', {
302
               params: params
300
               params: params
303
             })
301
             })
304
               .then(function (response) {
302
               .then(function (response) {
377
       export_detail() {
375
       export_detail() {
378
         let params = {
376
         let params = {
379
           start_time: this.start_time,
377
           start_time: this.start_time,
380
-          end_time: this.end_time
378
+          end_time: this.end_time,
379
+          p_type: 1,
381
         };
380
         };
382
         getExportConsumeDetailList(params).then(response => {
381
         getExportConsumeDetailList(params).then(response => {
383
           if (response.data.state == 0) {
382
           if (response.data.state == 0) {
534
           keywords: this.keywords,
533
           keywords: this.keywords,
535
           start_time: this.start_time,
534
           start_time: this.start_time,
536
           end_time: this.end_time,
535
           end_time: this.end_time,
537
-          type: this.admin_user_id
536
+          type: this.admin_user_id,
537
+          p_type: 1,
538
         };
538
         };
539
         getHisOrderList(params).then(response => {
539
         getHisOrderList(params).then(response => {
540
           if (response.data.state == 0) {
540
           if (response.data.state == 0) {
564
         }
564
         }
565
       },
565
       },
566
       invoicePrint(obj){
566
       invoicePrint(obj){
567
-        console.log(obj);
568
         let paramsObj = {
567
         let paramsObj = {
569
           order_id: obj.id,
568
           order_id: obj.id,
570
           patient_id: obj.patient_id,
569
           patient_id: obj.patient_id,

+ 29 - 15
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue 查看文件

83
       </tr>
83
       </tr>
84
       <tr>
84
       <tr>
85
         <td>住院号</td>
85
         <td>住院号</td>
86
-        <td></td>
86
+        <td>{{info.number}}</td>
87
         <td>科别</td>
87
         <td>科别</td>
88
         <td width="100"></td>
88
         <td width="100"></td>
89
         <td>床号</td>
89
         <td>床号</td>
90
         <td></td>
90
         <td></td>
91
         <td>入院日期</td>
91
         <td>入院日期</td>
92
-        <td></td>
92
+        <td>{{info.begndate}}</td>
93
         <td>出院日期</td>
93
         <td>出院日期</td>
94
-        <td width="100"></td>
94
+        <td width="100">{{info.enddate}}</td>
95
         <td>住院天数</td>
95
         <td>住院天数</td>
96
-        <td></td>
96
+        <td>{{getDay(info.begndate,info.enddate)}}</td>
97
+
97
       </tr>
98
       </tr>
98
       <tr>
99
       <tr>
99
         <td>险种</td>
100
         <td>险种</td>
278
       </tr>
279
       </tr>
279
       <tr>
280
       <tr>
280
         <td>收款人:</td>
281
         <td>收款人:</td>
281
-        <td colspan="2">{{charge_admin.user_name}}</td>
282
+        <td colspan="2">{{info.charge_admin.user_name}}</td>
282
         <td>审核人:</td>
283
         <td>审核人:</td>
283
-        <td colspan="2"></td>
284
+        <td colspan="2">{{info.p_admin.user_name}}</td>
284
         <td>制单人:</td>
285
         <td>制单人:</td>
285
-        <td colspan="2">{{p_admin.user_name}}</td>
286
+        <td colspan="2">{{info.p_admin.user_name}}</td>
286
         <td>打印日期</td>
287
         <td>打印日期</td>
287
         <td colspan="2">{{getNowTime()}}</td>
288
         <td colspan="2">{{getNowTime()}}</td>
288
       </tr>
289
       </tr>
321
         }
322
         }
322
       }
323
       }
323
     },methods:{
324
     },methods:{
325
+      getDay(dateString1,dateString2){
326
+          var  startDate = Date.parse(dateString1);
327
+          var  endDate = Date.parse(dateString2);
328
+          if (startDate>endDate){
329
+            return 0;
330
+          }
331
+          if (startDate==endDate){
332
+            return 1;
333
+          }
334
+          var days=(endDate - startDate)/(1*24*60*60*1000);
335
+          return  days;
336
+
337
+        },
324
       getNowTime: function () {
338
       getNowTime: function () {
325
-        let dateTime
326
-        let yy = new Date().getFullYear()
327
-        let mm = new Date().getMonth() + 1
328
-        let dd = new Date().getDate()
329
-        let hh = new Date().getHours()
339
+        let dateTime;
340
+        let yy = new Date().getFullYear();
341
+        let mm = new Date().getMonth() + 1;
342
+        let dd = new Date().getDate();
343
+        let hh = new Date().getHours();
330
         let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
344
         let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
331
           :
345
           :
332
-          new Date().getMinutes()
346
+          new Date().getMinutes();
333
         let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
347
         let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
334
           :
348
           :
335
-          new Date().getSeconds()
336
-        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
349
+          new Date().getSeconds();
350
+        dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss;
337
         return dateTime
351
         return dateTime
338
       },
352
       },
339
 
353
 

+ 50 - 48
src/xt_pages/outpatientCharges/summary.vue 查看文件

104
                             结算单
104
                             结算单
105
                         </el-button>
105
                         </el-button>
106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
106
                         <el-button size="mini" type="primary" v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106" @click="settlementPrint(scope.row)">结算单</el-button>
107
-                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
107
+                        <el-button size="mini" type="primary" @click="toRefund(scope.row)" v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106)">
108
                             退费
108
                             退费
109
                         </el-button>
109
                         </el-button>
110
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
110
                         <el-button size="mini" type="primary" @click="invoicePrint(scope.row)">打印发票</el-button>
248
 
248
 
249
       },toRefund(row){
249
       },toRefund(row){
250
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
250
         if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106) {
251
-          var that = this
251
+          var that = this;
252
           this.$confirm('是否退费', '退费', {
252
           this.$confirm('是否退费', '退费', {
253
             confirmButtonText: '确 定',
253
             confirmButtonText: '确 定',
254
             cancelButtonText: '取 消',
254
             cancelButtonText: '取 消',
259
               'patient_id': row.patient_id,
259
               'patient_id': row.patient_id,
260
               'record_time': that.getTimes(row.settle_accounts_date),
260
               'record_time': that.getTimes(row.settle_accounts_date),
261
               'admin_user_id': that.$store.getters.xt_user.user.id,
261
               'admin_user_id': that.$store.getters.xt_user.user.id,
262
-            }
262
+            };
263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
263
             axios.get('http://127.0.0.1:9532/api/refund/post', {
264
               params: params
264
               params: params
265
             })
265
             })
266
               .then(function(response) {
266
               .then(function(response) {
267
                 if (response.data.state == 0) {
267
                 if (response.data.state == 0) {
268
-                  that.$message.error(response.data.msg)
268
+                  that.$message.error(response.data.msg);
269
                   return false
269
                   return false
270
                 } else {
270
                 } else {
271
                   if (response.data.data.failed_code == -10) {
271
                   if (response.data.data.failed_code == -10) {
278
                     }).catch(() => {
278
                     }).catch(() => {
279
                     })
279
                     })
280
                   } else {
280
                   } else {
281
-                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
281
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 });
282
                     that.getHisOrderList()
282
                     that.getHisOrderList()
283
 
283
 
284
                   }
284
                   }
300
               'patient_id': this.patientInfo.id,
300
               'patient_id': this.patientInfo.id,
301
               'record_time': this.record_date
301
               'record_time': this.record_date
302
 
302
 
303
-            }
303
+            };
304
             Refund(params).then(response => {
304
             Refund(params).then(response => {
305
               if (response.data.state == 0) {
305
               if (response.data.state == 0) {
306
-                this.$message.error(response.data.msg)
306
+                this.$message.error(response.data.msg);
307
                 return false
307
                 return false
308
               } else {
308
               } else {
309
-                this.$message({ message: '退费成功', type: 'success' })
309
+                this.$message({ message: '退费成功', type: 'success' });
310
                 this.getHisOrderList()
310
                 this.getHisOrderList()
311
               }
311
               }
312
             })
312
             })
316
       },
316
       },
317
       toPrint(row) {
317
       toPrint(row) {
318
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
318
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028) {
319
-          this.statementVisible9504 = true
319
+          this.statementVisible9504 = true;
320
           let obj = {
320
           let obj = {
321
             order_id: row.id,
321
             order_id: row.id,
322
             patient_id: row.patient_id,
322
             patient_id: row.patient_id,
323
             record_time: this.getTimes(row.settle_accounts_date),
323
             record_time: this.getTimes(row.settle_accounts_date),
324
             admin_user_id: this.$store.getters.xt_user.user.id
324
             admin_user_id: this.$store.getters.xt_user.user.id
325
-          }
325
+          };
326
           this.orderObj9504 = obj
326
           this.orderObj9504 = obj
327
         } else {
327
         } else {
328
-          this.statementVisible = true
328
+          this.statementVisible = true;
329
           let obj = {
329
           let obj = {
330
             order_id: row.id
330
             order_id: row.id
331
-          }
331
+          };
332
           this.orderObj = obj
332
           this.orderObj = obj
333
         }
333
         }
334
 
334
 
335
       },
335
       },
336
       settlementPrint(row){
336
       settlementPrint(row){
337
-        this.settlementVisible = true
337
+        this.settlementVisible = true;
338
         let obj = {
338
         let obj = {
339
           order_id: row.id
339
           order_id: row.id
340
-        }
340
+        };
341
         this.settlementObj = obj
341
         this.settlementObj = obj
342
       },
342
       },
343
       export_detail() {
343
       export_detail() {
344
         let params = {
344
         let params = {
345
           start_time: this.start_time,
345
           start_time: this.start_time,
346
-          end_time: this.end_time
347
-        }
346
+          end_time: this.end_time,
347
+          p_type: 2,
348
+        };
348
         getExportConsumeDetailList(params).then(response => {
349
         getExportConsumeDetailList(params).then(response => {
349
           if (response.data.state == 0) {
350
           if (response.data.state == 0) {
350
-            this.$message.error(response.data.msg)
351
+            this.$message.error(response.data.msg);
351
             return false
352
             return false
352
           } else {
353
           } else {
353
 
354
 
354
-            let list = []
355
+            let list = [];
355
             for (let i = 0; i < response.data.data.order.length; i++) {
356
             for (let i = 0; i < response.data.data.order.length; i++) {
356
-              let order = response.data.data.order[i]
357
-              let number = ''
358
-              let name = ''
359
-              let department = ''
360
-              let doctor_name = ''
361
-              let balance_accounts = ''
357
+              let order = response.data.data.order[i];
358
+              let number = '';
359
+              let name = '';
360
+              let department = '';
361
+              let doctor_name = '';
362
+              let balance_accounts = '';
362
 
363
 
363
-              let order_status = ''
364
+              let order_status = '';
364
 
365
 
365
               if (order.his_patient != null && order.his_patient.number.length > 0) {
366
               if (order.his_patient != null && order.his_patient.number.length > 0) {
366
                 number = order.his_patient.number
367
                 number = order.his_patient.number
421
                 '收费日期': '',
422
                 '收费日期': '',
422
                 '收费状态': order_status,
423
                 '收费状态': order_status,
423
                 '退费日期': ''
424
                 '退费日期': ''
424
-              }
425
+              };
425
               list.push(obj)
426
               list.push(obj)
426
             }
427
             }
427
             import('@/vendor/Export2Excel').then(excel => {
428
             import('@/vendor/Export2Excel').then(excel => {
428
-              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
429
-              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期']
430
-              const data = this.formatJson(filterVal, list)
429
+              const tHeader = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
430
+              const filterVal = ['就诊号', '患者姓名', '应收金额', '实收金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费日期', '收费状态', '退费日期'];
431
+              const data = this.formatJson(filterVal, list);
431
               excel.export_json_to_excel({
432
               excel.export_json_to_excel({
432
                 header: tHeader,
433
                 header: tHeader,
433
                 data,
434
                 data,
442
         return jsonData.map(v => filterVal.map(j => v[j]))
443
         return jsonData.map(v => filterVal.map(j => v[j]))
443
       },
444
       },
444
       changeDoctor() {
445
       changeDoctor() {
445
-        this.page = 1
446
-        this.keywords = ''
446
+        this.page = 1;
447
+        this.keywords = '';
447
         this.getHisOrderList()
448
         this.getHisOrderList()
448
       },
449
       },
449
       handleSizeChange(limit) {
450
       handleSizeChange(limit) {
450
-        this.limit = limit
451
+        this.limit = limit;
451
         this.getHisOrderList()
452
         this.getHisOrderList()
452
 
453
 
453
       }, handleCurrentChange(page) {
454
       }, handleCurrentChange(page) {
454
-        this.page = page
455
+        this.page = page;
455
         this.getHisOrderList()
456
         this.getHisOrderList()
456
 
457
 
457
       },
458
       },
458
       handleStartTimeChange() {
459
       handleStartTimeChange() {
459
-        this.page = 1
460
-        this.keywords = ''
460
+        this.page = 1;
461
+        this.keywords = '';
461
         this.getHisOrderList()
462
         this.getHisOrderList()
462
       }, handleEndTimeChange() {
463
       }, handleEndTimeChange() {
463
-        this.page = 1
464
-        this.keywords = ''
464
+        this.page = 1;
465
+        this.keywords = '';
465
         this.getHisOrderList()
466
         this.getHisOrderList()
466
       },
467
       },
467
       searchAction() {
468
       searchAction() {
468
-        this.page = 1
469
+        this.page = 1;
469
         this.getHisOrderList()
470
         this.getHisOrderList()
470
 
471
 
471
       },
472
       },
486
           keywords: this.keywords,
487
           keywords: this.keywords,
487
           start_time: this.start_time,
488
           start_time: this.start_time,
488
           end_time: this.end_time,
489
           end_time: this.end_time,
489
-          type: this.admin_user_id
490
-        }
490
+          type: this.admin_user_id,
491
+          p_type: 2,
492
+        };
491
         getHisOrderList(params).then(response => {
493
         getHisOrderList(params).then(response => {
492
           if (response.data.state == 0) {
494
           if (response.data.state == 0) {
493
-            this.$message.error(response.data.msg)
495
+            this.$message.error(response.data.msg);
494
             return false
496
             return false
495
           } else {
497
           } else {
496
-            this.tableData = response.data.data.order
498
+            this.tableData = response.data.data.order;
497
             this.total = response.data.data.total
499
             this.total = response.data.data.total
498
           }
500
           }
499
         })
501
         })
501
       }, getDoctorList() {
503
       }, getDoctorList() {
502
         getDoctorList().then(response => {
504
         getDoctorList().then(response => {
503
           if (response.data.state == 0) {
505
           if (response.data.state == 0) {
504
-            this.$message.error(response.data.msg)
506
+            this.$message.error(response.data.msg);
505
             return false
507
             return false
506
           } else {
508
           } else {
507
             this.doctors = response.data.data.doctors
509
             this.doctors = response.data.data.doctors
516
         }
518
         }
517
       },
519
       },
518
       invoicePrint(obj){
520
       invoicePrint(obj){
519
-        console.log(obj)
521
+        console.log(obj);
520
         let paramsObj = {
522
         let paramsObj = {
521
           order_id: obj.id,
523
           order_id: obj.id,
522
           patient_id: obj.patient_id,
524
           patient_id: obj.patient_id,
524
           age:obj.age,
526
           age:obj.age,
525
           gend:obj.gend,
527
           gend:obj.gend,
526
           setl_time:obj.setl_time
528
           setl_time:obj.setl_time
527
-        }
528
-        this.invoiceParams = paramsObj
529
+        };
530
+        this.invoiceParams = paramsObj;
529
         this.invoiceVisible = true
531
         this.invoiceVisible = true
530
       }
532
       }
531
     }, created() {
533
     }, created() {
532
 
534
 
533
 
535
 
534
-      this.fetchAllAdminUsers()
535
-      this.getDoctorList()
536
+      this.fetchAllAdminUsers();
537
+      this.getDoctorList();
536
       this.getHisOrderList()
538
       this.getHisOrderList()
537
 
539
 
538
 
540
 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

1938
       },
1938
       },
1939
 
1939
 
1940
       getPrescriptionList(id) {
1940
       getPrescriptionList(id) {
1941
-        getPrescriptionList(id).then(response => {
1941
+        getPrescriptionList(id,2).then(response => {
1942
           if (response.data.state == 1) {
1942
           if (response.data.state == 1) {
1943
             this.centerDialogVisible = true;
1943
             this.centerDialogVisible = true;
1944
             var list = response.data.data.list;
1944
             var list = response.data.data.list;