Explorar el Código

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

csx hace 3 años
padre
commit
8dadcde63d

+ 12 - 0
src/api/his/his_hospital.js Ver fichero

@@ -0,0 +1,12 @@
1
+import request from "@/utils/request";
2
+
3
+
4
+
5
+export function upLoadChargeInfo(params) {
6
+  return request({
7
+    url: "/api/hospital/upload",
8
+    method: "get",
9
+    params:params
10
+  });
11
+}
12
+

+ 74 - 42
src/xt_pages/hospitalStation/chargeDetailManagement.vue Ver fichero

@@ -6,19 +6,19 @@
6 6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8 8
 
9
-                <el-date-picker
10
-                    v-model="record_date"
11
-                    prefix-icon="el-icon-date"
12
-                    @change="changeTimeTwo"
13
-                    :editable="false"
14
-                    style="width: 100%;"
15
-                    type="date"
16
-                    :picker-options="pickerOptions"
17
-                    placeholder="选择开始时间"
18
-                    align="right"
19
-                    format="yyyy-MM-dd"
20
-                    value-format="yyyy-MM-dd">
21
-                </el-date-picker>
9
+        <el-date-picker
10
+            v-model="record_date"
11
+            prefix-icon="el-icon-date"
12
+            @change="changeTimeTwo"
13
+            :editable="false"
14
+            style="width: 100%;"
15
+            type="date"
16
+            :picker-options="pickerOptions"
17
+            placeholder="选择开始时间"
18
+            align="right"
19
+            format="yyyy-MM-dd"
20
+            value-format="yyyy-MM-dd">
21
+        </el-date-picker>
22 22
 
23 23
         <div class="mainCell">
24 24
           <el-radio-group v-model="schedule_type" @change="changeScheduleType">
@@ -158,12 +158,17 @@
158 158
                   </div>
159 159
                   <div class="costBox">
160 160
                     <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
161
-                    <span v-if="this.radio == 2">处方总价:<span style="color:red;">{{all_total+'元' + ' = 全自费总金额:'+fulamt_ownpay_amt + '元+'  + '超限价总金额:' + overlmt_amt  + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' +  inscp_scp_amt + '元'   }}</span></span>
162
-                    <span v-if="this.radio == 1">处方总价:<span style="color:red;">{{all_total }}元</span></span>
161
+                    <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type != 2">处方总价:<span style="color:red;">{{
162
+                        all_total + '元' + ' = 全自费总金额:' + fulamt_ownpay_amt + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
163
+                      }}</span></span>
164
+                    <span v-if="this.radio == 2&&this.hisPatientInfo.balance_accounts_type == 2">处方总价:<span style="color:red;">{{
165
+                        all_total + '元' + ' = 全自费总金额:' + all_total + '元+' + '超限价总金额:' + overlmt_amt + '元+' + '先行自付金额:' + preselfpay_amt + '元+' + '符合正常范围总金额:' + inscp_scp_amt + '元'
166
+                      }}</span></span>
167
+                    <span v-if="this.radio == 1">处方总价:<span style="color:red;">{{ all_total }}元</span></span>
163 168
 
164 169
                     <!--                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>-->
165
-<!--                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>-->
166
-<!--                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>-->
170
+                    <!--                    <span v-if="this.curPrescriptions.order_status  == 2">已结算</span>-->
171
+                    <!--                    <span v-if="this.curPrescriptions.order_status  == 3">已退费</span>-->
167 172
                   </div>
168 173
                 </div>
169 174
                 <!--                <div class="centerRight">-->
@@ -326,6 +331,8 @@ import charged from './components/charged'
326 331
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
327 332
 import additionalCharges from './components/additionalCharges'
328 333
 import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
334
+import { upLoadChargeInfo } from '@/api/his/his_hospital'
335
+
329 336
 import { uParseTime } from '@/utils/tools'
330 337
 
331 338
 import RegisterDialog from './components/registerDialog'
@@ -416,8 +423,8 @@ export default {
416 423
       settle_prescriptions: [],
417 424
 
418 425
       settle_total: 0,
419
-      all_total:0,
420
-      all_month_total:0,
426
+      all_total: 0,
427
+      all_month_total: 0,
421 428
       record_date: '',
422 429
       tableData: [],
423 430
       editableTabsValue: '处方1',
@@ -464,10 +471,10 @@ export default {
464 471
       department: [],
465 472
       invoiceVisible: false,
466 473
       invoiceParams: {},
467
-      fulamt_ownpay_amt:'',
468
-      overlmt_amt:'',
469
-      preselfpay_amt:'',
470
-      inscp_scp_amt:'',
474
+      fulamt_ownpay_amt: '',
475
+      overlmt_amt: '',
476
+      preselfpay_amt: '',
477
+      inscp_scp_amt: ''
471 478
     }
472 479
   },
473 480
   created() {
@@ -589,7 +596,7 @@ export default {
589 596
           case 2:
590 597
             let arr2 = []
591 598
             for (let i = 0; i < this.all_table_data.length; i++) {
592
-              if (this.all_table_data[i].name.indexOf(this.search_input) != -1 ){
599
+              if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
593 600
                 arr2 = arr2.concat(this.all_table_data[i])
594 601
               }
595 602
             }
@@ -863,7 +870,7 @@ export default {
863 870
           params['settle_accounts_type'] = 2
864 871
 
865 872
         }
866
-        if (this.hisPatientInfo.balance_accounts_type != 2){
873
+        if (this.hisPatientInfo.balance_accounts_type != 2) {
867 874
           axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
868 875
             params: params
869 876
           })
@@ -891,12 +898,40 @@ export default {
891 898
               })
892 899
               .catch(function(error) {
893 900
               })
894
-        }else  if (this.hisPatientInfo.balance_accounts_type == 2){
901
+        } else if (this.hisPatientInfo.balance_accounts_type == 2) {
902
+          var that = this
903
+          let params = {
904
+            'in_hospital_id': that.hisPatientInfo.id,
905
+            'id': that.hisPatientInfo.patient_id,
906
+            'admin_user_id': that.$store.getters.xt_user.user.id,
907
+            'record_time': that.record_date
908
+
909
+          }
910
+          if (this.activeName == 'first') {
911
+            params['settle_accounts_type'] = 1
912
+
913
+          } else {
914
+            params['start_time'] = that.other_start_time
915
+            params['end_time'] = that.other_end_time
916
+            params['settle_accounts_type'] = 2
917
+
918
+          }
919
+          upLoadChargeInfo(params).then(response => {
920
+            if (response.data.state == 0) {
921
+              this.loading = false
922
+              this.$message.error(response.data.msg)
923
+              return false
924
+            } else {
925
+              that.$message.success('上传明细成功')
926
+              that.radio = 2
927
+              that.changePatientInfo()
928
+            }
929
+          })
895 930
 
896 931
 
897 932
         }
898 933
       }
899
-    },changePatientInfo(){
934
+    }, changePatientInfo() {
900 935
       let params = {
901 936
         'record_date': this.record_date,
902 937
         'sch_type': this.schedule_type
@@ -925,7 +960,7 @@ export default {
925 960
             case 1:
926 961
               this.all_table_data = response.data.data.list
927 962
               this.patientTableData = response.data.data.list
928
-              if (this.hisPatientInfo.id > 0){
963
+              if (this.hisPatientInfo.id > 0) {
929 964
                 for (let i = 0; i < this.patientTableData.length; i++) {
930 965
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
931 966
                     this.current_index = i
@@ -934,7 +969,7 @@ export default {
934 969
 
935 970
                   }
936 971
                 }
937
-              }else{
972
+              } else {
938 973
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
939 974
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
940 975
               }
@@ -943,8 +978,7 @@ export default {
943 978
               this.all_table_data = response.data.data.list_two
944 979
               this.patientTableData = response.data.data.list_two
945 980
 
946
-
947
-              if (this.hisPatientInfo.id > 0){
981
+              if (this.hisPatientInfo.id > 0) {
948 982
                 for (let i = 0; i < this.patientTableData.length; i++) {
949 983
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
950 984
                     this.current_index = i
@@ -953,7 +987,7 @@ export default {
953 987
 
954 988
                   }
955 989
                 }
956
-              }else{
990
+              } else {
957 991
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
958 992
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
959 993
               }
@@ -1017,7 +1051,7 @@ export default {
1017 1051
 
1018 1052
                   }
1019 1053
                 }
1020
-              }else{
1054
+              } else {
1021 1055
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1022 1056
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1023 1057
               }
@@ -1034,7 +1068,7 @@ export default {
1034 1068
 
1035 1069
                   }
1036 1070
                 }
1037
-              }else{
1071
+              } else {
1038 1072
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1039 1073
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1040 1074
               }
@@ -1262,7 +1296,7 @@ export default {
1262 1296
                 overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
1263 1297
                 preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
1264 1298
                 inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
1265
-                execution_state: prescription.advices[b].execution_state,
1299
+                execution_state: prescription.advices[b].execution_state
1266 1300
 
1267 1301
               }
1268 1302
               tempAdvice.push(obj)
@@ -1289,8 +1323,7 @@ export default {
1289 1323
                 overlmt_amt: prescription.project[b].order_info.overlmt_amt,
1290 1324
                 preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
1291 1325
                 inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt,
1292
-                execution_state: prescription.project[b].execution_state,
1293
-
1326
+                execution_state: prescription.project[b].execution_state
1294 1327
 
1295 1328
               }
1296 1329
 
@@ -1353,10 +1386,9 @@ export default {
1353 1386
           this.preselfpay_amt = this.getPreselfpayAmtTotal()
1354 1387
           this.inscp_scp_amt = this.getInscpScpAmtTotal()
1355 1388
 
1356
-
1357 1389
         }
1358 1390
       })
1359
-    },getFulamtOwnpayAmtTotal(){
1391
+    }, getFulamtOwnpayAmtTotal() {
1360 1392
       var total = 0
1361 1393
       for (let i = 0; i < this.prescriptions.length; i++) {
1362 1394
         if (this.prescriptions[i].advices != null) {
@@ -1374,7 +1406,7 @@ export default {
1374 1406
       }
1375 1407
       return total.toFixed(2)
1376 1408
 
1377
-    },getOverlmtAmtTotal(){
1409
+    }, getOverlmtAmtTotal() {
1378 1410
       var total = 0
1379 1411
       for (let i = 0; i < this.prescriptions.length; i++) {
1380 1412
         if (this.prescriptions[i].advices != null) {
@@ -1392,7 +1424,7 @@ export default {
1392 1424
       }
1393 1425
       return total.toFixed(2)
1394 1426
 
1395
-    },getPreselfpayAmtTotal(){
1427
+    }, getPreselfpayAmtTotal() {
1396 1428
       var total = 0
1397 1429
       for (let i = 0; i < this.prescriptions.length; i++) {
1398 1430
         if (this.prescriptions[i].advices != null) {
@@ -1410,7 +1442,7 @@ export default {
1410 1442
       }
1411 1443
       return total.toFixed(2)
1412 1444
 
1413
-    },getInscpScpAmtTotal(){
1445
+    }, getInscpScpAmtTotal() {
1414 1446
       var total = 0
1415 1447
       for (let i = 0; i < this.prescriptions.length; i++) {
1416 1448
         if (this.prescriptions[i].advices != null) {

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Ver fichero

@@ -732,7 +732,7 @@
732 732
         width="30%"
733 733
     >
734 734
       <span>是否修改医疗类型</span>
735
-      <el-select v-if="this.$store.getters.xt_user.org_id == 10188" style="width:50%;" v-model="temp_med_type"
735
+      <el-select v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217" style="width:50%;" v-model="temp_med_type"
736 736
                  placeholder="医疗类型" @change="changevalue">
737 737
         <el-option
738 738
             v-for="(item,index) in registerThree"
@@ -742,7 +742,7 @@
742 742
         </el-option>
743 743
       </el-select>
744 744
 
745
-      <el-select v-if="this.$store.getters.xt_user.org_id != 10188" style="width:50%;" v-model="temp_med_type"
745
+      <el-select v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217" style="width:50%;" v-model="temp_med_type"
746 746
                  placeholder="医疗类型" @change="changevalue">
747 747
         <el-option
748 748
             v-for="(item,index) in register"

+ 3 - 4
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue Ver fichero

@@ -1,9 +1,8 @@
1 1
 <template>
2 2
   <div id="statement-print" class="statement-print">
3
-    <div class="statementTitle" v-if="info.fixmedins_code == 'H32092103007'">江苏省社会医疗保险医疗费用结算单</div>
4
-    <div class="statementTitle" v-if="info.fixmedins_code == 'H42138100547'">广水源生堂社会医疗保险医疗费用结算单</div>
5
-
6
-    <div class="statementTitle" v-else>广东省社会医疗保险医疗费用结算单</div>
3
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10188 || this.$store.getters.xt_user.org_id == 10217">江苏省社会医疗保险医疗费用结算单</div>
4
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id == 10088">广水源生堂社会医疗保险医疗费用结算单</div>
5
+    <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10088">广东省社会医疗保险医疗费用结算单</div>
7 6
 
8 7
     <table class="statementTable" border="1">
9 8
       <tr>

+ 1 - 1
src/xt_pages/outpatientCharges/summaryDetail.vue Ver fichero

@@ -58,7 +58,7 @@
58 58
               <el-table-column align="center" prop="name" width="60" label="总价">
59 59
                 <template slot-scope="scope">
60 60
                   <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
61
-                  {{scope.row.price.toFixed(2)}}元
61
+                  {{(scope.row.count * scope.row.price).toFixed(2)}}元
62 62
 
63 63
                 </template>
64 64
               </el-table-column>