see999 3 vuotta sitten
vanhempi
commit
81d4fa1d96

+ 1 - 1
src/views/layout/Layout.vue Näytä tiedosto

123
   },
123
   },
124
   created(){
124
   created(){
125
     console.log('permission_routers',this.permission_routers);
125
     console.log('permission_routers',this.permission_routers);
126
-    let menzhen = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord','hospitalStation'];
126
+    let menzhen = ['hospitalStation','outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord',];
127
     let bingli = ['User','createPatient'];
127
     let bingli = ['User','createPatient'];
128
     let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control'];
128
     let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control'];
129
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','otherManagement'];
129
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','otherManagement'];

+ 1 - 1
src/views/layout/components/Sidebar/index.vue Näytä tiedosto

69
     navTitle:{
69
     navTitle:{
70
       handler(newVal,oldVal){
70
       handler(newVal,oldVal){
71
         if(newVal == '门诊管理'){
71
         if(newVal == '门诊管理'){
72
-          let nameArr = ['outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord','hospitalStation'];
72
+          let nameArr = ['hospitalStation','outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord',];
73
           // console.log('permission_routers',this.permission_routers)
73
           // console.log('permission_routers',this.permission_routers)
74
           let routerArr = [];
74
           let routerArr = [];
75
           this.permission_routers.map(item => {
75
           this.permission_routers.map(item => {

+ 1 - 1
src/xt_pages/outpatientCharges/listPrint.vue Näytä tiedosto

464
   .newContainer::-webkit-scrollbar {
464
   .newContainer::-webkit-scrollbar {
465
     height: 15px !important;
465
     height: 15px !important;
466
   }
466
   }
467
-</style>
467
+</style>

+ 61 - 4
src/xt_pages/outpatientCharges/summary.vue Näytä tiedosto

85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
85
           <template slot-scope="scope">{{scope.row.department_name}}</template>
86
         </el-table-column>
86
         </el-table-column>
87
         <el-table-column align="center" prop="name" label="收费日期">
87
         <el-table-column align="center" prop="name" label="收费日期">
88
-          <template slot-scope="scope"> {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}</template>
88
+          <template slot-scope="scope">
89
+            {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
90
+          </template>
89
         </el-table-column>
91
         </el-table-column>
90
         <el-table-column align="center" prop="name" label="收费员">
92
         <el-table-column align="center" prop="name" label="收费员">
91
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
93
           <template slot-scope="scope">{{ getName(scope.row.creator) }}</template>
104
                        v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
106
                        v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
105
               结算单
107
               结算单
106
             </el-button>
108
             </el-button>
109
+            <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
110
+                       v-if="scope.row.order_status == 2&& scope.row.result.id == 0">
111
+              上传结算清单
112
+            </el-button>
107
             <el-button size="mini" type="primary"
113
             <el-button size="mini" type="primary"
108
                        v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
114
                        v-if="scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10106"
109
                        @click="settlementPrint(scope.row)">结算单
115
                        @click="settlementPrint(scope.row)">结算单
235
       }
241
       }
236
     },
242
     },
237
     methods: {
243
     methods: {
244
+      uploadInfo(row) {
245
+        var that = this;
246
+        axios.get('http://127.0.0.1:9532/api/settlelist/get', {
247
+          params: {
248
+            order_id: row.id,
249
+            admin_user_id: this.$store.getters.xt_user.user.id
250
+          }
251
+        }).then(function (response) {
252
+          if (response.data.state == 0) {
253
+            that.$message.error(response.data.msg);
254
+            return false
255
+          } else {
256
+
257
+            if (response.data.data.failed_code == -10) {
258
+              // that.$message.error(response.data.data.msg)
259
+              that.$confirm(response.data.data.msg, '医保错误信息', {
260
+                confirmButtonText: '确 定',
261
+                type: 'warning'
262
+              }).then(() => {
263
+
264
+              }).catch(() => {
265
+              })
266
+
267
+            } else {
268
+              that.$message.success("上传成功");
269
+              row.result.id = response.data.data.result.id
270
+            }
271
+
272
+
273
+          }
274
+        }).catch(function (error) {
275
+        })
276
+      },
277
+
238
       fetchAllAdminUsers() {
278
       fetchAllAdminUsers() {
239
         fetchAllAdminUsers().then(response => {
279
         fetchAllAdminUsers().then(response => {
240
           if (response.data.state == 1) {
280
           if (response.data.state == 1) {
431
                 time = this.getTimes(order.settle_accounts_date)
471
                 time = this.getTimes(order.settle_accounts_date)
432
               }
472
               }
433
 
473
 
474
+              var hifmi_pay = 0.00;
475
+
476
+              if(order.setl_detail.length > 0){
477
+                var jsonObj = JSON.parse(order.setl_detail);
478
+                for (let i = 0; i < jsonObj.length; i++) {
479
+                  if (order.insutype == '310') {
480
+                    if (jsonObj[i].fund_pay_type == '310300') {
481
+                      hifmi_pay = jsonObj[i].fund_payamt
482
+                    }
483
+
484
+                  } else if (order.insutype == '390')
485
+                    if (order.fund_pay_type == '390200') {
486
+                      hifmi_pay = jsonObj[i].fund_payamt
487
+                    }
488
+                }
489
+              }
434
 
490
 
435
               let obj = {
491
               let obj = {
436
                 '就诊号': order.mdtrt_id,
492
                 '就诊号': order.mdtrt_id,
441
                 '实收金额': order.medfee_sumamt,
497
                 '实收金额': order.medfee_sumamt,
442
                 '医保统筹金额': order.fund_pay_sumamt,
498
                 '医保统筹金额': order.fund_pay_sumamt,
443
                 '大额基金金额': order.hifob_pay,
499
                 '大额基金金额': order.hifob_pay,
444
-                '大病基金金额': order.hifmi_pay,
500
+                '大病基金金额': hifmi_pay,
445
                 '补充保险基金金额': order.hifes_pay,
501
                 '补充保险基金金额': order.hifes_pay,
446
                 '医疗救助基金金额': order.maf_pay,
502
                 '医疗救助基金金额': order.maf_pay,
447
                 '公务员基金': order.cvlserv_pay,
503
                 '公务员基金': order.cvlserv_pay,
461
                 '收费状态': order_status,
517
                 '收费状态': order_status,
462
                 '退费日期': ''
518
                 '退费日期': ''
463
               };
519
               };
520
+
464
               list.push(obj)
521
               list.push(obj)
465
             }
522
             }
466
             import('@/vendor/Export2Excel').then(excel => {
523
             import('@/vendor/Export2Excel').then(excel => {
467
-              const tHeader = ['就诊号', '患者姓名', '开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
468
-              const filterVal = ['就诊号', '患者姓名','开处时间','险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
524
+              const tHeader = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
525
+              const filterVal = ['就诊号', '患者姓名', '开处时间', '险种类型', '应收金额', '实收金额', '医保统筹金额', '大额基金金额', '大病基金金额', '补充保险基金金额', '医疗救助基金金额', '公务员基金', '个人支付基金', '个人账户支付金额', '科室', '医生姓名', '收费类别', '收费者姓名', '总金额', '现金支付', '账户支付', '支付宝支付', '微信支付', '其他支付', '收费时间', '收费状态', '退费日期'];
469
               const data = this.formatJson(filterVal, list);
526
               const data = this.formatJson(filterVal, list);
470
               excel.export_json_to_excel({
527
               excel.export_json_to_excel({
471
                 header: tHeader,
528
                 header: tHeader,

+ 8 - 5
src/xt_pages/workforce/remind_print.vue Näytä tiedosto

83
                 </td>
83
                 </td>
84
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
84
                 <td :width="td_4_width" style="text-align:left"  v-if="printObj.doctor_advice == 1">
85
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
85
                   <span style="white-space: pre" v-if="main_collection.doctoradvice.length>0">{{getAdvice(main_collection.doctoradvice)}}</span>
86
-                   <span v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
86
+                   <span style="white-space: pre" v-if="main_collection.hisdoctoradviceinfo.length>0">{{ getAdviceOne(main_collection.hisdoctoradviceinfo)}}</span>
87
                 </td>
87
                 </td>
88
               </tr>
88
               </tr>
89
               </tbody>
89
               </tbody>
121
         currentDate:'',
121
         currentDate:'',
122
         org_id:0,
122
         org_id:0,
123
         printObj:{},
123
         printObj:{},
124
-        zone:"",
124
+        week_time:0,
125
+        zone:0,
125
       }
126
       }
126
     },
127
     },
127
     components: {
128
     components: {
129
     },
130
     },
130
     created() {
131
     created() {
131
       this.getPrintList()
132
       this.getPrintList()
132
-     this.org_id = this.$store.getters.xt_user.org.id
133
+      this.org_id = this.$store.getters.xt_user.org.id
133
     //  this.currentDate = this.getCurrentDate()
134
     //  this.currentDate = this.getCurrentDate()
134
       this.modeOptions = this.$store.getters.treatment_mode
135
       this.modeOptions = this.$store.getters.treatment_mode
135
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
136
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
149
               list[i].sort = list[i].number.sort
150
               list[i].sort = list[i].number.sort
150
            }
151
            }
151
            var arr = list.sort(this.compare('sort'))
152
            var arr = list.sort(this.compare('sort'))
152
-             console.log("888888",list)
153
+            
153
              this.scheduleData = arr
154
              this.scheduleData = arr
155
+            
154
              let a = response.data.data.day
156
              let a = response.data.data.day
155
               console.log("a",a)
157
               console.log("a",a)
156
               var myDate = new Date(a);
158
               var myDate = new Date(a);
266
 
268
 
267
           name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
269
           name = name + doctor_advice[i].advice_name + " " + drug_spec + " " + prescribing_number + " " + single_dose + " " + doctor_advice[i].delivery_way + " " + doctor_advice[i].execution_frequency + " " + doctor_advice[i].remark + "\n"
268
 
270
 
271
+        
269
         }
272
         }
270
           return name
273
           return name
271
 
274
 
273
         }
276
         }
274
 
277
 
275
       },
278
       },
279
+     
276
       printAction: function() {
280
       printAction: function() {
277
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
281
         const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
278
 
282
 
356
       getPrintList().then(response=>{
360
       getPrintList().then(response=>{
357
          if(response.data.state == 1){
361
          if(response.data.state == 1){
358
            var list = response.data.data.list
362
            var list = response.data.data.list
359
-           console.log("list222222222",list)
360
            this.printObj = list
363
            this.printObj = list
361
          }
364
          }
362
       })
365
       })

+ 45 - 43
src/xt_pages/workforce/remind_print_setting.vue Näytä tiedosto

45
 </template>
45
 </template>
46
 
46
 
47
 <script>
47
 <script>
48
-  import { getNextScheduleWeekDay,getPrintList } from '@/api/schedule'
48
+  import { getScheduleList,getPrintList } from '@/api/schedule'
49
   import { parseTime } from '@/utils'
49
   import { parseTime } from '@/utils'
50
   import { uParseTime } from '@/utils/tools'
50
   import { uParseTime } from '@/utils/tools'
51
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
51
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
92
       this.week_time  = this.$route.query.week_time
92
       this.week_time  = this.$route.query.week_time
93
       this.zone = this.$route.query.zone
93
       this.zone = this.$route.query.zone
94
       this.pre_status = this.$route.query.prestatus
94
       this.pre_status = this.$route.query.prestatus
95
-      const params = {
95
+     const params = {
96
           week_type:this.week_type,
96
           week_type:this.week_type,
97
           week_time:this.week_time,
97
           week_time:this.week_time,
98
-          start_time:this.start_time,
99
-          end_time:this.end_time,
100
           zone:this.zone,
98
           zone:this.zone,
101
         }
99
         }
102
-      getNextScheduleWeekDay(params).then(rs => {
103
-        var resp = rs.data
104
-        console.log(resp)
105
-        if (resp.state == 1) {
106
-         var scheduleData = resp.data.schedule
107
-
108
-          if(this.pre_status == 0){
109
-              for(let i=0;i<scheduleData.length;i++){
110
-              scheduleData[i].sort = scheduleData[i].number.sort
111
-            }
112
-            var arr = scheduleData.sort(this.compare('sort'))
113
-            this.scheduleData = arr
114
-            console.log("数据类型",this.scheduleData)
115
-          }
116
-          if(this.pre_status == 1){
117
-            var newList = []
118
-            for(let i=0;i<scheduleData.length;i++){
119
-              if(scheduleData.prescription.id > 0){
120
-                 newList.push(scheduleData[i])
121
-              } 
122
-            }
123
-            var arr = newList.sort(this.compare('sort'))
124
-            this.scheduleData = arr
100
+       console.log("params",params)
101
+       getScheduleList(params).then(response=>{
102
+         if(response.data.state ==1){
103
+           var list = response.data.data.list
104
+           for(let i=0;i<list.length;i++){
105
+              list[i].sort = list[i].number.sort
106
+           }
107
+           var arr = list.sort(this.compare('sort'))
108
+            
109
+             this.scheduleData = arr
110
+            
111
+             let a = response.data.data.day
112
+              console.log("a",a)
113
+              var myDate = new Date(a);
114
+              var year = myDate.getFullYear(); //年
115
+              var month = myDate.getMonth() + 1; //月
116
+              var day = myDate.getDate(); //日
117
+              var days = myDate.getDay();
118
+              switch(days) {
119
+              case 1:
120
+                days = '星期一';
121
+                break;
122
+              case 2:
123
+                days = '星期二';
124
+                break;
125
+              case 3:
126
+                days = '星期三';
127
+                break;
128
+              case 4:
129
+                days = '星期四';
130
+                break;
131
+              case 5:
132
+                days = '星期五';
133
+                break;
134
+              case 6:
135
+                days = '星期六';
136
+                break;
137
+              case 0:
138
+                days = '星期日';
139
+                break;
125
           }
140
           }
126
-
127
-          if(this.pre_status == 2){
128
-            var newList = []
129
-            for(let i=0;i<scheduleData.length;i++){
130
-              if(scheduleData.prescription.id == 0){
131
-                 newList.push(scheduleData[i])
132
-              } 
133
-            }
134
-            var arr =   newList.sort(this.compare('sort'))
135
-            this.scheduleData = arr
141
+          var str = year + "年" + month + "月" + day + "日  " + days;
142
+          this.currentDate = str
136
           }
143
           }
137
-        } else {
138
-          this.$message.error(resp.msg)
139
-        }
140
-      }).catch(err => {
141
-        this.$message.error(err)
142
-      })
144
+       })
143
 
145
 
144
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
146
       var now_time = parseInt(this.week_type) * 86400 + this.start_time
145
       console.log("now",now_time)
147
       console.log("now",now_time)