Browse Source

提交代码

陈少旭 1 year ago
parent
commit
156230e3ad

+ 2 - 1
src/lang/zh.js View File

299
     dialysis_index:'信息归档',
299
     dialysis_index:'信息归档',
300
     log_index:"日志查询",
300
     log_index:"日志查询",
301
     objectRegistration:"医疗器械登记",
301
     objectRegistration:"医疗器械登记",
302
-    Dialysisanalysis: '专业质控'
302
+    Dialysisanalysis: '专业质控',
303
+    queryData:"结算数据查询",
303
   },
304
   },
304
   navbar: {
305
   navbar: {
305
     logOut: '退出登录',
306
     logOut: '退出登录',

+ 5 - 0
src/router/modules/hisTool.js View File

95
       component: () => import('@/xt_pages/outpatientTool/yidiClear'),
95
       component: () => import('@/xt_pages/outpatientTool/yidiClear'),
96
       name: 'yidiClear',
96
       name: 'yidiClear',
97
       meta: { title: 'yidiClear', noCache: true }
97
       meta: { title: 'yidiClear', noCache: true }
98
+    }, {
99
+      path: '/hisTool/queryData',
100
+      component: () => import('@/xt_pages/outpatientTool/queryData'),
101
+      name: 'queryData',
102
+      meta: { title: 'queryData', noCache: true }
98
     },
103
     },
99
     {
104
     {
100
       path: '/hisTool/statistics',
105
       path: '/hisTool/statistics',

+ 14 - 322
src/xt_pages/outpatientCharges/newStatementPrintThree.vue View File

83
     printThisPage() {
83
     printThisPage() {
84
       var ptime = Math.round(new Date().getTime() / 1000)
84
       var ptime = Math.round(new Date().getTime() / 1000)
85
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
85
       this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
86
-
87
-      if (
88
-        this.$store.getters.xt_user.org_id == 10138 ||
89
-        this.$store.getters.xt_user.org_id == 4 ||
90
-        this.$store.getters.xt_user.org_id == 10278
91
-      ) {
92
-        setTimeout(() => {
93
-          const style =
94
-            '@media print {#statement-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 47%;}}}'
95
-          const style2 =
96
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 50%;}}}'
97
-          const style3 =
98
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 55%;}}}'
99
-          const style4 =
100
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 58%;}}}'
101
-          const style5 =
102
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 61%;}}}'
103
-          const style6 =
104
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 66%;}}}'
105
-          const style7 =
106
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 71%;}}}'
107
-          const style8 =
108
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 75%;}}}'
109
-          const style9 =
110
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 80%;}}}'
111
-          const style10 =
112
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 85%;}}}'
113
-          const style11 =
114
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 87%;}}}'
115
-          const style12 =
116
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 89%;}}}'
117
-          if (this.num >= 13) {
118
-            printJS({
119
-              printable: 'prescription-print',
120
-              type: 'html',
121
-              style: style,
122
-              scanStyles: false
123
-            })
124
-          } else if (this.num == 12) {
125
-            printJS({
126
-              printable: 'prescription-print',
127
-              type: 'html',
128
-              style: style2,
129
-              scanStyles: false
130
-            })
131
-          } else if (this.num == 11) {
132
-            printJS({
133
-              printable: 'prescription-print',
134
-              type: 'html',
135
-              style: style3,
136
-              scanStyles: false
137
-            })
138
-          } else if (this.num == 10) {
139
-            printJS({
140
-              printable: 'prescription-print',
141
-              type: 'html',
142
-              style: style4,
143
-              scanStyles: false
144
-            })
145
-          } else if (this.num == 9) {
146
-            printJS({
147
-              printable: 'prescription-print',
148
-              type: 'html',
149
-              style: style5,
150
-              scanStyles: false
151
-            })
152
-          } else if (this.num == 8) {
153
-            printJS({
154
-              printable: 'prescription-print',
155
-              type: 'html',
156
-              style: style6,
157
-              scanStyles: false
158
-            })
159
-          } else if (this.num == 7) {
160
-            printJS({
161
-              printable: 'prescription-print',
162
-              type: 'html',
163
-              style: style7,
164
-              scanStyles: false
165
-            })
166
-          } else if (this.num == 6) {
167
-            printJS({
168
-              printable: 'prescription-print',
169
-              type: 'html',
170
-              style: style8,
171
-              scanStyles: false
172
-            })
173
-          } else if (this.num == 5) {
174
-            printJS({
175
-              printable: 'prescription-print',
176
-              type: 'html',
177
-              style: style9,
178
-              scanStyles: false
179
-            })
180
-          } else if (this.num == 4) {
181
-            printJS({
182
-              printable: 'prescription-print',
183
-              type: 'html',
184
-              style: style10,
185
-              scanStyles: false
186
-            })
187
-          } else if (this.num == 3) {
188
-            printJS({
189
-              printable: 'prescription-print',
190
-              type: 'html',
191
-              style: style11,
192
-              scanStyles: false
193
-            })
194
-          } else if (this.num <= 2) {
195
-            printJS({
196
-              printable: 'prescription-print',
197
-              type: 'html',
198
-              style: style12,
199
-              scanStyles: false
200
-            })
201
-          }
202
-        }, 500)
203
-      } else if (
204
-        this.$store.getters.xt_user.org_id == 9504 ||
205
-        this.$store.getters.xt_user.org_id == 10028
206
-      ) {
207
-        const style =
208
-          '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}'
209
-        printJS({
210
-          printable: 'prescription-print',
211
-          type: 'html',
212
-          style: style,
213
-          scanStyles: false
214
-        })
215
-      } else {
216
-        // 医保环境打印格式
217
-        if (
218
-          this.$store.getters.xt_user.org_id == 9919 ||
219
-          this.$store.getters.xt_user.org_id == 10106
220
-        ) {
221
-          const style =
222
-            '@media print {.statementTitle{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;}.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 16px;border-color: #000;}}'
223
-          printJS({
224
-            printable: 'statement-print',
225
-            type: 'html',
226
-            style: style,
227
-            scanStyles: false
228
-          })
229
-        } else if (
230
-          // this.$store.getters.xt_user.org_id == 0 ||
231
-          this.$store.getters.xt_user.org_id == 10191
232
-        ) {
233
-          const style =
234
-            '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
235
-          printJS({
236
-            printable: 'statement-print',
237
-            type: 'html',
238
-            style: style,
239
-            scanStyles: false
240
-          })
241
-          // const style =
242
-          //     "@media print {.statementTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 40px;font-size: 14px;border-color: #000;} .statementTable thead{font-size: 28px;text-align: center;font-weight: bold;margin-bottom: 10px;} .statementTable tbody{text-align:left;} .statementTable tbody .view_tr{text-align:center;border: 1px solid;} tbody .dashed_tr{border: 1px dashed;text-align:center} .list_table{width: 100%;margin-bottom: 100px;} tbody tr td div{height:25px;}}";
243
-          // printJS({
244
-          //   printable: "statement-print",
245
-          //   type: "html",
246
-          //   style: style,
247
-          //   scanStyles: false,
248
-          // });
249
-        }  else {
250
-          const style =
251
-            '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
252
-          printJS({
253
-            printable: 'statement-print',
254
-            type: 'html',
255
-            style: style,
256
-            scanStyles: false
257
-          })
258
-        }
259
-      }
260
-
261
-      // if (this.org_template_info.template_id == 1) {
262
-      //   printJS({
263
-      //     printable: "dialysis-print-box",
264
-      //     type: "html",
265
-      //     style: style,
266
-      //     scanStyles: false
267
-      //   });
268
-      // }
269
-    },
270
-    getAllDoctorList() {
271
-      getAllDoctorList().then((response) => {
272
-        if (response.data.state == 1) {
273
-          var doctor = response.data.data.doctor
274
-
275
-          this.doctorList = doctor
276
-        }
86
+      const style =
87
+        '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
88
+      printJS({
89
+        printable: 'statement-print',
90
+        type: 'html',
91
+        style: style,
92
+        scanStyles: false
277
       })
93
       })
278
 
94
 
279
-    }, getType(med_chrgitm_type) {
280
-      switch (med_chrgitm_type) {
281
-        case '01':
282
-          return '床位费'
283
-          break
284
-        case '02':
285
-          return '诊察费'
286
-
287
-          break
288
-        case '03':
289
-          return '检查费'
290
-
291
-          break
292
-        case '04':
293
-          return '化验费'
294
-          break
295
-        case '05':
296
-          return '治疗费'
297
-
298
-          break
299
-        case '06':
300
-          return '手术费'
301
-
302
-          break
303
-        case '07':
304
-          return '护理费'
305
-          break
306
-        case '08':
307
-          return '材料费'
308
-
309
-          break
310
-        case '09':
311
-          return '西药费'
312
-
313
-          break
314
-        case '10':
315
-          return '中药饮片费'
316
-
317
-          break
318
-        case '11':
319
-          return '中成药费'
320
-
321
-          break
322
-        case '12':
323
-          return '一般诊疗费'
324
-
325
-          break
326
-        case '13':
327
-          return '挂号费'
328
-
329
-          break
330
-        case '14':
331
-          return '其他费'
332
-
333
-          break
334
-
335
-      }
336
-
337
-    },
338
-    getAllHisPatientList() {
339
-      const params = {
340
-        record_date: this.record_date
341
-      }
342
-      getAllHisPatientList(params).then((response) => {
343
-        if (response.data.state == 1) {
344
-          this.patientTableData = response.data.data.list
345
-          this.patientTableDataTwo = response.data.data.list
346
-
347
-          let cal_one = 0
348
-          let cal_two = 0
349
-          for (let i = 0; i < response.data.data.list.length; i++) {
350
-            if (
351
-              response.data.data.list[i].prescription == null ||
352
-              response.data.data.list[i].prescription.length == 0
353
-            ) {
354
-              cal_one = cal_one + 1
355
-            }
356
-            if (
357
-              response.data.data.list[i].prescription != null &&
358
-              response.data.data.list[i].prescription.length > 0
359
-            ) {
360
-              cal_two = cal_two + 1
361
-            }
362
-          }
363
-          // this.$refs.tab.setCurrentRow(this.patientTableData[0])
364
-          // console.log(this.patientTableData[0])
365
-          // this.choosePatient(this.patientTableData[0])
366
-          this.cal_one = cal_one
367
-          this.cal_two = cal_two
368
-        }
369
-      })
370
-    },
371
-
372
-    changePatient(row) {
373
-      console.log('row', row)
374
-      this.patient_id = row.patient_id
375
-      this.record_date = this.record_date
376
-      this.prescription_id = this.prescription_id
377
-      //   var params = {
378
-      //     patient_id:row.patient_id,
379
-      //     record_date:this.record_date,
380
-      //     prescription_id:this.prescription_id,
381
-      //   }
382
-      // getPrescriptionPrint(params).then(response=>{
383
-      //     if(response.data.state == 1){
384
-      //       var advicePrint =  response.data.data.advicePrint
385
-      //       console.log("adviceprint",advicePrint)
386
-      //       this.advicePrint = advicePrint
387
-      //       // var hisPatient =  response.data.data.hisPatient
388
-      //       // console.log("hispatient",hisPatient)
389
-      //       // this.hisPatient = hisPatient
390
-      //       var patient =  response.data.data.patient
391
-      //       console.log("patient",patient)
392
-      //       this.patient = patient
393
-      //       var doctorPorject = response.data.data.doctorPorject
394
-      //       console.log("doctorporject",doctorPorject)
395
-      //     }
396
-      // })
397
-    },
398
-    getTimes(time) {
399
-      return uParseTime(time, '{y}-{m}-{d}')
400
     }, getTotal: function(items) {
95
     }, getTotal: function(items) {
401
       let total = 0
96
       let total = 0
402
       for (let i = 0; i < items.length; i++) {
97
       for (let i = 0; i < items.length; i++) {
408
       var list = []
103
       var list = []
409
       for (let a = 0; a < details.length; a++) {
104
       for (let a = 0; a < details.length; a++) {
410
         let obj = {}
105
         let obj = {}
411
-        if(details[a].advice_id > 0 && details[a].project_id == 0) {
106
+        if (details[a].advice_id > 0 && details[a].project_id == 0) {
412
           obj['yibao_code'] = details[a].advice.drug.medical_insurance_number
107
           obj['yibao_code'] = details[a].advice.drug.medical_insurance_number
413
           obj['yiyuan_code'] = details[a].advice.drug.id
108
           obj['yiyuan_code'] = details[a].advice.drug.id
414
           obj['name'] = details[a].advice.advice_name
109
           obj['name'] = details[a].advice.advice_name
423
           list.push(obj)
118
           list.push(obj)
424
         }
119
         }
425
 
120
 
426
-        if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 2) {
121
+        if (details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 2) {
427
           obj['yibao_code'] = details[a].project.project.medical_code
122
           obj['yibao_code'] = details[a].project.project.medical_code
428
           obj['yiyuan_code'] = details[a].project.project.id
123
           obj['yiyuan_code'] = details[a].project.project.id
429
           obj['name'] = details[a].project.project.project_name
124
           obj['name'] = details[a].project.project.project_name
430
           obj['unit'] = details[a].project.project.unit
125
           obj['unit'] = details[a].project.project.unit
431
-          obj['spec'] = ""
126
+          obj['spec'] = ''
432
           obj['count'] = details[a].cnt
127
           obj['count'] = details[a].cnt
433
           obj['price'] = parseFloat(details[a].pric)
128
           obj['price'] = parseFloat(details[a].pric)
434
           obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
129
           obj['psn_pay'] = (details[a].selfpay_prop * details[a].det_item_fee_sumamt).toFixed(2)
436
           list.push(obj)
131
           list.push(obj)
437
         }
132
         }
438
 
133
 
439
-        if(details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 3) {
134
+        if (details[a].advice_id == 0 && details[a].project_id > 0 && details[a].project.type == 3) {
440
           obj['yibao_code'] = details[a].project.good_info.medical_insurance_number
135
           obj['yibao_code'] = details[a].project.good_info.medical_insurance_number
441
           obj['yiyuan_code'] = details[a].project.good_info.id
136
           obj['yiyuan_code'] = details[a].project.good_info.id
442
           obj['name'] = details[a].project.good_info.good_name
137
           obj['name'] = details[a].project.good_info.good_name
544
               console.log('this.num', this.num)
239
               console.log('this.num', this.num)
545
             }
240
             }
546
           })
241
           })
547
-        } else if (this.org_id == 10028  || this.org_id == 9504) {
242
+        } else if (this.org_id == 10028 || this.org_id == 9504) {
548
           getPrivateExpenses(params).then((response) => {
243
           getPrivateExpenses(params).then((response) => {
549
             if (response.data.state == 0) {
244
             if (response.data.state == 0) {
550
               // this.$message.error(response.data.msg)
245
               // this.$message.error(response.data.msg)
715
                 let obj9 = {
410
                 let obj9 = {
716
                   details: [],
411
                   details: [],
717
                   med_chrgitm_name: that.getType(med_chrgitm_types[i]),
412
                   med_chrgitm_name: that.getType(med_chrgitm_types[i]),
718
-                  total:0,
413
+                  total: 0
719
                 }
414
                 }
720
 
415
 
721
                 // if(med_chrgitm_types[i] == '09'){
416
                 // if(med_chrgitm_types[i] == '09'){
811
           })
506
           })
812
         }
507
         }
813
       } else {
508
       } else {
814
-        console.log(this.org_id)
815
         if (this.org_id == 0) {
509
         if (this.org_id == 0) {
816
           let params = {
510
           let params = {
817
             order_id: obj.order_id,
511
             order_id: obj.order_id,
1103
                 that.info['otherSelfTotal'] =
797
                 that.info['otherSelfTotal'] =
1104
                   response.data.data.otherSelfTotal
798
                   response.data.data.otherSelfTotal
1105
 
799
 
1106
-
1107
                 //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
800
                 //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
1108
                 var list = []
801
                 var list = []
1109
                 //获取所有项目类型进行去重
802
                 //获取所有项目类型进行去重
1121
                   let obj9 = {
814
                   let obj9 = {
1122
                     details: [],
815
                     details: [],
1123
                     med_chrgitm_name: that.getType(med_chrgitm_types[i]),
816
                     med_chrgitm_name: that.getType(med_chrgitm_types[i]),
1124
-                    total:0,
817
+                    total: 0
1125
                   }
818
                   }
1126
 
819
 
1127
                   let tempDetails = []
820
                   let tempDetails = []
1137
                 that.info['new_list'] = list
830
                 that.info['new_list'] = list
1138
                 //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
831
                 //org_id 10485,此代码为阳春恒健血液透析中心结算单模版数据处理逻辑
1139
 
832
 
1140
-
1141
                 let obj = {
833
                 let obj = {
1142
                   type: 1,
834
                   type: 1,
1143
                   details: [],
835
                   details: [],

src/xt_pages/outpatientTool/QueryData.vue → src/xt_pages/outpatientTool/queryData.vue View File

12
         "
12
         "
13
       >
13
       >
14
         <div>
14
         <div>
15
-          <el-select v-model="query_type" placeholder="退费标志" >
15
+          <el-select v-model="query_type" placeholder="类别" >
16
             <el-option label="本地" value="1"></el-option>
16
             <el-option label="本地" value="1"></el-option>
17
             <el-option label="异地" value="2"></el-option>
17
             <el-option label="异地" value="2"></el-option>
18
           </el-select>
18
           </el-select>
30
             <el-option label="门诊特殊病(14)" value="14"></el-option>
30
             <el-option label="门诊特殊病(14)" value="14"></el-option>
31
           </el-select>
31
           </el-select>
32
         </div>
32
         </div>
33
+        <div style="margin-bottom: 10px;">
34
+          <el-date-picker
35
+            size="small"
36
+            v-model="start_time"
37
+            prefix-icon="el-icon-date"
38
+            :editable="false"
39
+            :clearable="false"
40
+            style="width: 150px; "
41
+            type="date"
42
+            placeholder="选择开始日期"
43
+            format="yyyy-MM-dd"
44
+            value-format="yyyy-MM-dd"
45
+            align="right"
46
+          ></el-date-picker>
47
+          <span style="text-align: center;">-</span>
48
+          <el-date-picker
49
+            size="small"
50
+            v-model="end_time"
51
+            prefix-icon="el-icon-date"
52
+            :editable="false"
53
+            :clearable="false"
54
+            style="width: 150px; "
55
+            type="date"
56
+            placeholder="选择结束日期"
57
+            format="yyyy-MM-dd"
58
+            value-format="yyyy-MM-dd"
59
+            align="right"
60
+          ></el-date-picker>
61
+        </div>
33
         <div>
62
         <div>
34
-          <el-select placeholder="证件号码" >
35
-            <el-input v-model="certno" placeholder="" style="width:150px;"></el-input>
36
-          </el-select>
37
-          <el-button @click="queryPsn">获取人员信息</el-button>
63
+            <el-input v-model="certno" placeholder="证件号码" style="width:150px;"></el-input>
38
         </div>
64
         </div>
39
-
40
         <div>
65
         <div>
41
-          <el-select placeholder="人员编号" >
42
-            <el-input disabled v-model="psn_no" placeholder="" style="width:150px;"></el-input>
43
-          </el-select>
66
+          <el-button @click="queryData">查询</el-button>
44
         </div>
67
         </div>
45
-
46
-
47
-      </div>
48
-      <div style="margin-bottom: 10px;">
49
-        <el-date-picker
50
-          size="small"
51
-          v-model="start_time"
52
-          prefix-icon="el-icon-date"
53
-          @change="handleStartTimeChange"
54
-          :editable="false"
55
-          :clearable="false"
56
-          style="width: 196px; "
57
-          type="date"
58
-          placeholder="选择开始日期"
59
-          format="yyyy-MM-dd"
60
-          value-format="yyyy-MM-dd"
61
-          align="right"
62
-        ></el-date-picker>
63
-        <span style="text-align: center;">-</span>
64
-        <el-date-picker
65
-          size="small"
66
-          v-model="end_time"
67
-          prefix-icon="el-icon-date"
68
-          @change="handleEndTimeChange"
69
-          :editable="false"
70
-          :clearable="false"
71
-          style="width: 196px; "
72
-          type="date"
73
-          placeholder="选择结束日期"
74
-          format="yyyy-MM-dd"
75
-          value-format="yyyy-MM-dd"
76
-          align="right"
77
-        ></el-date-picker>
78
       </div>
68
       </div>
79
       <el-table
69
       <el-table
80
         :data="tableData"
70
         :data="tableData"
157
       zone_options: [
147
       zone_options: [
158
         { id: 0, text: '全部分区' }
148
         { id: 0, text: '全部分区' }
159
       ],
149
       ],
160
-      refd_setl_flag:"0",
161
-      med_type:"14",
150
+      refd_setl_flag:"",
151
+      med_type:"",
162
       certno:"",
152
       certno:"",
163
       psn_no:"",
153
       psn_no:"",
164
       start_time:"",
154
       start_time:"",
171
       tableData: [],
161
       tableData: [],
172
       limit: 10,
162
       limit: 10,
173
       page: 1,
163
       page: 1,
164
+      total:0,
174
     };
165
     };
175
   },
166
   },
176
   created() {
167
   created() {
178
   },
169
   },
179
 
170
 
180
   methods: {
171
   methods: {
181
-    queryData(row){
172
+    queryData(){
182
       var that = this;
173
       var that = this;
183
       axios
174
       axios
184
         .get("http://127.0.0.1:9532/api/querydata", {
175
         .get("http://127.0.0.1:9532/api/querydata", {
185
           params: {
176
           params: {
186
-            refd_setl_flag:this.refd_setl_flag,
187
-            med_type: this.med_type,
188
-            admin_user_id: this.$store.getters.xt_user.user.id,
189
-            certno:"",
190
-            psn_no:"",
191
-            start_time:this.start_time,
192
-            end_time: this.end_time,
177
+            type:that.query_type,
178
+            refd_setl_flag:that.refd_setl_flag,
179
+            med_type: that.med_type,
180
+            admin_user_id: that.$store.getters.xt_user.user.id,
181
+            certno:that.certno,
182
+            psn_no:that.psn_no,
183
+            start_time:that.start_time,
184
+            end_time: that.end_time,
185
+            page:this.page,
186
+            limit:this.limit
193
           },
187
           },
194
         })
188
         })
195
         .then(function (response) {
189
         .then(function (response) {
208
                 .catch(() => {
202
                 .catch(() => {
209
                 });
203
                 });
210
             } else {
204
             } else {
211
-                that.tableData = response.data.data.order
212
-            }
213
-          }
214
-        })
215
-        .catch(function (error) {
216
-        });
217
-
205
+              that.tableData = response.data.data.order
206
+              that.total = response.data.data.total
218
 
207
 
219
-    },
220
-    queryPsn(){
221
-      var that = this;
222
-      axios
223
-        .get("http://127.0.0.1:9532/api/querydata", {
224
-          params: {
225
-            admin_user_id: this.$store.getters.xt_user.user.id,
226
-            certno:this.certno,
227
-          },
228
-        })
229
-        .then(function (response) {
230
-          if (response.data.state == 0) {
231
-            that.$message.error(response.data.msg);
232
-            return false;
233
-          } else {
234
-            if (response.data.data.failed_code == -10) {
235
-              that
236
-                .$confirm(response.data.data.msg, "医保错误信息", {
237
-                  confirmButtonText: "确 定",
238
-                  type: "warning",
239
-                })
240
-                .then(() => {
241
-                })
242
-                .catch(() => {
243
-                });
244
-            } else {
245
-              that.psn_no = response.data.data.psn_no
246
             }
208
             }
247
           }
209
           }
248
         })
210
         })
249
         .catch(function (error) {
211
         .catch(function (error) {
250
         });
212
         });
251
-
252
     },
213
     },
253
     handleSizeChange(limit) {
214
     handleSizeChange(limit) {
254
       this.limit = limit;
215
       this.limit = limit;
255
-      this.getHisOrderList();
216
+      this.queryData();
256
     },
217
     },
257
     handleCurrentChange(page) {
218
     handleCurrentChange(page) {
258
       this.page = page;
219
       this.page = page;
259
-      this.getHisOrderList();
260
-    },
261
-    handleStartTimeChange() {
262
-      this.page = 1;
263
-      this.keywords = "";
264
-      this.getHisOrderList();
265
-    },
266
-    handleEndTimeChange() {
267
-      this.page = 1;
268
-      this.keywords = "";
269
-      this.getHisOrderList();
220
+      this.queryData();
270
     },
221
     },
271
     getTimes(time) {
222
     getTimes(time) {
272
       return uParseTime(time, "{y}-{m}-{d}");
223
       return uParseTime(time, "{y}-{m}-{d}");