Browse Source

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

XMLWAN 3 years ago
parent
commit
06f1a7b688

+ 12 - 0
src/api/his/his_hospital.js View File

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

File diff suppressed because it is too large
+ 1924 - 2597
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue


+ 1 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -111,6 +111,7 @@
111 111
             <!--平车-->
112 112
             <!--</div>-->
113 113
           </div>
114
+          
114 115
           <div class="inline_block" style="margin-left: 10px;">
115 116
             诊断:
116 117
             <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">

+ 74 - 42
src/xt_pages/hospitalStation/chargeDetailManagement.vue View File

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

+ 228 - 124
src/xt_pages/hospitalStation/components/settlePrescriptionTable.vue View File

@@ -1,54 +1,85 @@
1 1
 <template>
2 2
   <div class="prescriptionTable">
3
-    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
-              :row-style="{ color: '#303133' }"
5
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
3
+    <el-table
4
+      v-if="prescription.type == 1"
5
+      :data="prescription.advices"
6
+      border
7
+      style="width: 99%"
8
+      :row-style="changColor"
9
+      :header-cell-style="{
10
+        backgroundColor: 'rgb(245, 247, 250)',
11
+        color: '#606266',
12
+      }"
13
+      highlight-current-row
14
+    >
15
+      <el-table-column
16
+        align="center"
17
+        type="index"
18
+        width="40"
19
+        label="序号"
20
+      ></el-table-column>
7 21
       <el-table-column align="center" prop="name" label="名称">
8
-        <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
22
+        <template slot-scope="scope"
23
+          ><span :title="scope.row.drug_name">{{
24
+            scope.row.drug_name
25
+          }}</span></template
26
+        >
9 27
       </el-table-column>
10 28
 
11 29
       <el-table-column align="center" prop="name" width="90" label="单次用量">
12 30
         <template slot-scope="scope">
13 31
           <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
14
-          <div>{{scope.row.single_dose}}&nbsp;&nbsp;{{scope.row.single_dose_unit}}</div>
32
+          <div>
33
+            {{ scope.row.single_dose }}&nbsp;&nbsp;{{
34
+              scope.row.single_dose_unit
35
+            }}
36
+          </div>
15 37
         </template>
16 38
       </el-table-column>
17 39
       <el-table-column align="center" prop="name" width="100" label="用法">
18 40
         <template slot-scope="scope">
19 41
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
20
-          <div> {{scope.row.delivery_way}}</div>
21
-
42
+          <div>{{ scope.row.delivery_way }}</div>
22 43
         </template>
23 44
       </el-table-column>
24 45
       <el-table-column align="center" prop="name" width="100" label="频率">
25 46
         <template slot-scope="scope">
26
-          <div> {{scope.row.execution_frequency}}</div>
47
+          <div>{{ scope.row.execution_frequency }}</div>
27 48
 
28 49
           <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
29 50
         </template>
30 51
       </el-table-column>
31 52
 
32 53
       <el-table-column align="center" prop="day" width="50" label="天数">
33
-        <template slot-scope="scope">{{scope.row.day}}天</template>
54
+        <template slot-scope="scope">{{ scope.row.day }}天</template>
34 55
       </el-table-column>
35 56
 
36 57
       <el-table-column align="center" prop="name" width="100" label="总量">
37 58
         <template slot-scope="scope">
38 59
           <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
39
-          <div>{{scope.row.prescribing_number}}&nbsp;&nbsp;{{scope.row.prescribing_number_unit}}</div>
60
+          <div>
61
+            {{ scope.row.prescribing_number }}&nbsp;&nbsp;{{
62
+              scope.row.prescribing_number_unit
63
+            }}
64
+          </div>
40 65
         </template>
41 66
       </el-table-column>
42 67
       <el-table-column align="center" prop="name" width="60" label="单价">
43 68
         <template slot-scope="scope">
44
-          <div> {{scope.row.retail_price}}元</div>
69
+          <div>{{ scope.row.retail_price }}元</div>
45 70
 
46 71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
47 72
         </template>
48 73
       </el-table-column>
49 74
       <el-table-column align="center" prop="name" width="60" label="总价">
50 75
         <template slot-scope="scope">
51
-          <div> {{(scope.row.prescribing_number * scope.row.retail_price).toFixed(2)}}元</div>
76
+          <div>
77
+            {{
78
+              (scope.row.prescribing_number * scope.row.retail_price).toFixed(
79
+                2
80
+              )
81
+            }}元
82
+          </div>
52 83
 
53 84
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
54 85
         </template>
@@ -56,98 +87,137 @@
56 87
 
57 88
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
58 89
         <template slot-scope="scope">
59
-          <div> {{scope.row.fulamt_ownpay_amt}}元</div>
90
+          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
60 91
         </template>
61 92
       </el-table-column>
62 93
 
63
-
64
-
65 94
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
66 95
         <template slot-scope="scope">
67
-          <div> {{scope.row.overlmt_amt}}元</div>
96
+          <div>{{ scope.row.overlmt_amt }}元</div>
68 97
         </template>
69 98
       </el-table-column>
70 99
 
71
-
72
-      <el-table-column align="center" prop="name" width="60" label="先行自付金额">
100
+      <el-table-column
101
+        align="center"
102
+        prop="name"
103
+        width="60"
104
+        label="先行自付金额"
105
+      >
73 106
         <template slot-scope="scope">
74
-          <div> {{scope.row.preselfpay_amt}}元</div>
107
+          <div>{{ scope.row.preselfpay_amt }}元</div>
75 108
         </template>
76 109
       </el-table-column>
77 110
 
78
-
79
-      <el-table-column align="center" prop="name" width="60" label="符合正常范围金额">
111
+      <el-table-column
112
+        align="center"
113
+        prop="name"
114
+        width="60"
115
+        label="符合正常范围金额"
116
+      >
80 117
         <template slot-scope="scope">
81
-          <div> {{scope.row.inscp_scp_amt}}元</div>
118
+          <div>{{ scope.row.inscp_scp_amt }}元</div>
82 119
         </template>
83 120
       </el-table-column>
84 121
 
85
-
86
-
87
-
88 122
       <el-table-column align="center" prop="name" width="50" label="备注">
89 123
         <template slot-scope="scope">
90 124
           <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
91
-          <div> {{scope.row.remark}}</div>
125
+          <div>{{ scope.row.remark }}</div>
92 126
         </template>
93 127
       </el-table-column>
94 128
     </el-table>
95
-    <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
96
-              :row-style="{ color: '#303133' }"
97
-              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
98
-      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
129
+    <el-table
130
+      v-if="prescription.type == 2"
131
+      :data="prescription.project"
132
+      border
133
+      style="width: 99%"
134
+      :row-style="changColor"
135
+      :header-cell-style="{
136
+        backgroundColor: 'rgb(245, 247, 250)',
137
+        color: '#606266',
138
+      }"
139
+      highlight-current-row
140
+    >
141
+      <el-table-column
142
+        align="center"
143
+        type="index"
144
+        width="40"
145
+        label="序号"
146
+      ></el-table-column>
99 147
       <el-table-column align="center" prop="project_name" label="名称">
100 148
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
101 149
       </el-table-column>
102
-      <el-table-column align="center" prop="statistical_classification" width="100" label="组">
103
-        <template slot-scope="scope">{{getGroup(scope.row.statistical_classification)}}</template>
150
+      <el-table-column
151
+        align="center"
152
+        prop="statistical_classification"
153
+        width="100"
154
+        label="组"
155
+      >
156
+        <template slot-scope="scope">{{
157
+          getGroup(scope.row.statistical_classification)
158
+        }}</template>
104 159
       </el-table-column>
105
-      <el-table-column align="center" prop="single_dose" width="80" label="单次用量">
106
-        <template slot-scope="scope">{{scope.row.single_dose}}{{scope.row.unit}}</template>
107
-
160
+      <el-table-column
161
+        align="center"
162
+        prop="single_dose"
163
+        width="80"
164
+        label="单次用量"
165
+      >
166
+        <template slot-scope="scope"
167
+          >{{ scope.row.single_dose }}{{ scope.row.unit }}</template
168
+        >
108 169
       </el-table-column>
109
-      <el-table-column align="center" prop="delivery_way" width="80" label="用法">
170
+      <el-table-column
171
+        align="center"
172
+        prop="delivery_way"
173
+        width="80"
174
+        label="用法"
175
+      >
110 176
         <template slot-scope="scope">
111 177
           <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
112
-          {{scope.row.delivery_way}}
113
-
178
+          {{ scope.row.delivery_way }}
114 179
         </template>
115 180
       </el-table-column>
116
-      <el-table-column align="center" prop="execution_frequency" width="80" label="频率">
181
+      <el-table-column
182
+        align="center"
183
+        prop="execution_frequency"
184
+        width="80"
185
+        label="频率"
186
+      >
117 187
         <template slot-scope="scope">
118 188
           <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
119
-          {{scope.row.execution_frequency}}
120
-
189
+          {{ scope.row.execution_frequency }}
121 190
         </template>
122 191
       </el-table-column>
123
-      <el-table-column align="center" prop="number_days" width="50" label="天数">
192
+      <el-table-column
193
+        align="center"
194
+        prop="number_days"
195
+        width="50"
196
+        label="天数"
197
+      >
124 198
         <template slot-scope="scope">
125 199
           <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
126
-          {{scope.row.number_days}}天
127
-
200
+          {{ scope.row.number_days }}天
128 201
         </template>
129
-
130 202
       </el-table-column>
131 203
       <el-table-column align="center" prop="total" width="50" label="总量">
132 204
         <template slot-scope="scope">
133
-          <div style="display:flex;">
205
+          <div style="display: flex">
134 206
             <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
135
-            {{scope.row.total}} {{scope.row.unit}}
136
-
207
+            {{ scope.row.total }} {{ scope.row.unit }}
137 208
           </div>
138 209
         </template>
139 210
       </el-table-column>
140 211
       <el-table-column align="center" prop="name" width="50" label="单价">
141 212
         <template slot-scope="scope">
142 213
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
143
-          {{scope.row.price}}元
144
-
214
+          {{ scope.row.price }}元
145 215
         </template>
146 216
       </el-table-column>
147 217
 
148 218
       <el-table-column align="center" prop="name" width="60" label="总价">
149 219
         <template slot-scope="scope">
150
-          <div> {{(scope.row.total * scope.row.price).toFixed(2)}}元</div>
220
+          <div>{{ (scope.row.total * scope.row.price).toFixed(2) }}元</div>
151 221
 
152 222
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
153 223
         </template>
@@ -155,49 +225,66 @@
155 225
 
156 226
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
157 227
         <template slot-scope="scope">
158
-          <div> {{scope.row.fulamt_ownpay_amt}}元</div>
228
+          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
159 229
         </template>
160 230
       </el-table-column>
161 231
 
162
-
163
-
164 232
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
165 233
         <template slot-scope="scope">
166
-          <div> {{scope.row.overlmt_amt}}元</div>
234
+          <div>{{ scope.row.overlmt_amt }}元</div>
167 235
         </template>
168 236
       </el-table-column>
169 237
 
170
-
171
-      <el-table-column align="center" prop="name" width="60" label="先行自付金额">
238
+      <el-table-column
239
+        align="center"
240
+        prop="name"
241
+        width="60"
242
+        label="先行自付金额"
243
+      >
172 244
         <template slot-scope="scope">
173
-          <div> {{scope.row.preselfpay_amt}}元</div>
245
+          <div>{{ scope.row.preselfpay_amt }}元</div>
174 246
         </template>
175 247
       </el-table-column>
176 248
 
177
-
178
-      <el-table-column align="center" prop="name" width="60" label="符合正常范围金额">
249
+      <el-table-column
250
+        align="center"
251
+        prop="name"
252
+        width="60"
253
+        label="符合正常范围金额"
254
+      >
179 255
         <template slot-scope="scope">
180
-          <div> {{scope.row.inscp_scp_amt}}元</div>
256
+          <div>{{ scope.row.inscp_scp_amt }}元</div>
181 257
         </template>
182 258
       </el-table-column>
183 259
 
184
-
185
-
186 260
       <el-table-column align="center" prop="name" width="50" label="备注">
187 261
         <template slot-scope="scope">
188 262
           <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
189
-          {{scope.row.remark}}
190
-
263
+          {{ scope.row.remark }}
191 264
         </template>
192 265
       </el-table-column>
193 266
     </el-table>
194 267
 
195 268
     <div class="additionalBox">
196
-      <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
197
-        <span :title="item.item_name">{{item.item_name}}</span>
198
-        <el-input v-model="item.price" placeholder="" style="width:50px;" readonly></el-input>
269
+      <div
270
+        class="additionalOne"
271
+        v-for="(item, index) in prescription.addition"
272
+        :key="index"
273
+      >
274
+        <span :title="item.item_name">{{ item.item_name }}</span>
275
+        <el-input
276
+          v-model="item.price"
277
+          placeholder=""
278
+          style="width: 50px"
279
+          readonly
280
+        ></el-input>
199 281
200
-        <el-input v-model="item.count" placeholder="" style="width:50px;" readonly></el-input>
282
+        <el-input
283
+          v-model="item.count"
284
+          placeholder=""
285
+          style="width: 50px"
286
+          readonly
287
+        ></el-input>
201 288
202 289
         <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
203 290
       </div>
@@ -206,79 +293,96 @@
206 293
 </template>
207 294
 
208 295
 <script>
209
-import { getInitData } from '@/api/his/his'
210
-import { getDictionaryDataConfig} from "@/utils/data";
296
+import { getInitData } from "@/api/his/his";
297
+import { getDictionaryDataConfig } from "@/utils/data";
211 298
 
212 299
 export default {
213 300
   props: {
214
-    prescription: Object
301
+    prescription: Object,
215 302
   },
216 303
   data() {
217 304
     return {
218 305
       drugways: [],
219
-      efs: []
220
-    }
221
-  }, mounted() {
222
-    getInitData().then(response => {
306
+      efs: [],
307
+    };
308
+  },
309
+  mounted() {
310
+    getInitData().then((response) => {
223 311
       if (response.data.state == 0) {
224 312
         this.$message.error(response.data.msg);
225
-        return false
313
+        return false;
226 314
       } else {
227 315
         this.drugways = response.data.data.drugways;
228
-        this.efs = response.data.data.efs
316
+        this.efs = response.data.data.efs;
229 317
       }
230
-    })
231
-  }, methods:  {
232
-
318
+    });
319
+  },
320
+  methods: {
321
+    changColor({ row, rowIndex }) {
322
+      if (rowIndex % 2 == 1) {
323
+        // 变颜色的条件
324
+        return {
325
+          backgroundColor: "#C4E1FF",
326
+          color: "#303133", // 这个return的就是样式 可以是color 也可以是backgroundColor
327
+        };
328
+      } else {
329
+        return {
330
+          backgroundColor: "#ACD6FF",
331
+          color: "#303133",
332
+        };
333
+      }
334
+    },
233 335
 
234
-    getGroup(id){
336
+    getGroup(id) {
235 337
       var name = "";
236
-      var statistics_category =  getDictionaryDataConfig('system','statistics_category');
237
-      console.log("2235",statistics_category);
238
-      for(let i=0;i<statistics_category.length;i++){
239
-        if(id == statistics_category[i].id){
240
-          name = statistics_category[i].name
338
+      var statistics_category = getDictionaryDataConfig(
339
+        "system",
340
+        "statistics_category"
341
+      );
342
+      console.log("2235", statistics_category);
343
+      for (let i = 0; i < statistics_category.length; i++) {
344
+        if (id == statistics_category[i].id) {
345
+          name = statistics_category[i].name;
241 346
         }
242 347
       }
243
-      return name
348
+      return name;
244 349
     },
245
-
246
-
247
-  }
248
-}
350
+  },
351
+};
249 352
 </script>
250 353
 
251 354
 <style lang="scss">
252
-.prescriptionTable{
253
-.additionalBox{
254
-  margin-top: 20px;
255
-  display: flex;
256
-  flex-wrap: wrap;
257
-.additionalOne{
258
-  margin-right:20px;
259
-  margin-bottom:10px;
260
-  display: flex;
261
-  align-items: center;
262
->span{
263
-  white-space: nowrap;
264
-  overflow: hidden;
265
-  text-overflow: ellipsis;
266
-  width:80px;
267
-  display: inline-block;
268
-  font-size: 14px;
269
-}
270
-}
271
-.deleteIcon{
272
-  color:red;
273
-  margin-left:5px;
274
-}
275
-}
276
-.el-table th .cell, .el-table td .cell{
277
-  padding: 0 2px;
278
-  white-space: pre-line;
279
-}
280
-.el-icon-delete{
281
-  color:red;
282
-}
355
+.prescriptionTable {
356
+  .additionalBox {
357
+    margin-top: 20px;
358
+    display: flex;
359
+    flex-wrap: wrap;
360
+    .additionalOne {
361
+      margin-right: 20px;
362
+      margin-bottom: 10px;
363
+      display: flex;
364
+      align-items: center;
365
+      > span {
366
+        white-space: nowrap;
367
+        overflow: hidden;
368
+        text-overflow: ellipsis;
369
+        width: 80px;
370
+        display: inline-block;
371
+        font-size: 14px;
372
+      }
373
+    }
374
+    .deleteIcon {
375
+      color: red;
376
+      margin-left: 5px;
377
+    }
378
+  }
379
+  .el-table th .cell,
380
+  .el-table td .cell {
381
+    padding: 0 2px;
382
+    white-space: pre-line;
383
+  }
384
+  .el-icon-delete {
385
+    color: red;
386
+  }
283 387
 }
284 388
 </style>

+ 2 - 2
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -188,8 +188,8 @@ export default {
188 188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
189 189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
190 190
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
191
-                this.in_hosptial_time = this.list.order.his_hospital_patient.in_hosptial_time
192
-                this.out_hosptial_time = this.list.order.his_hospital_patient.out_hosptial_time
191
+                this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
192
+                this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
193 193
             })
194 194
         },
195 195
         smalltoBIG(n) {

+ 2 - 2
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -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 View File

@@ -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 View File

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