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

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
             <!--平车-->
111
             <!--平车-->
112
             <!--</div>-->
112
             <!--</div>-->
113
           </div>
113
           </div>
114
+          
114
           <div class="inline_block" style="margin-left: 10px;">
115
           <div class="inline_block" style="margin-left: 10px;">
115
             诊断:
116
             诊断:
116
             <div class="under_line" style="width: 640px;text-align: left;word-wrap: break-word;white-space: inherit;">
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
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
6
     <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7
       <div class="mainLeft">
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
         <div class="mainCell">
23
         <div class="mainCell">
24
           <el-radio-group v-model="schedule_type" @change="changeScheduleType">
24
           <el-radio-group v-model="schedule_type" @change="changeScheduleType">
158
                   </div>
158
                   </div>
159
                   <div class="costBox">
159
                   <div class="costBox">
160
                     <span>当前处方总费用:<span style="color:red;">{{ total }}元</span></span>
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
                     <!--                    <span v-if="this.curPrescriptions.order_status  == 1">待结算</span>-->
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
                   </div>
172
                   </div>
168
                 </div>
173
                 </div>
169
                 <!--                <div class="centerRight">-->
174
                 <!--                <div class="centerRight">-->
326
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
331
 import medicalInsuranceRefund from './components/medicalInsuranceRefund'
327
 import additionalCharges from './components/additionalCharges'
332
 import additionalCharges from './components/additionalCharges'
328
 import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
333
 import { getHisHospitalDetailInfo, getHisHospitalDetailList, getMonthHisHospitalDetailInfo } from '@/api/his/his'
334
+import { upLoadChargeInfo } from '@/api/his/his_hospital'
335
+
329
 import { uParseTime } from '@/utils/tools'
336
 import { uParseTime } from '@/utils/tools'
330
 
337
 
331
 import RegisterDialog from './components/registerDialog'
338
 import RegisterDialog from './components/registerDialog'
416
       settle_prescriptions: [],
423
       settle_prescriptions: [],
417
 
424
 
418
       settle_total: 0,
425
       settle_total: 0,
419
-      all_total:0,
420
-      all_month_total:0,
426
+      all_total: 0,
427
+      all_month_total: 0,
421
       record_date: '',
428
       record_date: '',
422
       tableData: [],
429
       tableData: [],
423
       editableTabsValue: '处方1',
430
       editableTabsValue: '处方1',
464
       department: [],
471
       department: [],
465
       invoiceVisible: false,
472
       invoiceVisible: false,
466
       invoiceParams: {},
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
   created() {
480
   created() {
589
           case 2:
596
           case 2:
590
             let arr2 = []
597
             let arr2 = []
591
             for (let i = 0; i < this.all_table_data.length; i++) {
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
                 arr2 = arr2.concat(this.all_table_data[i])
600
                 arr2 = arr2.concat(this.all_table_data[i])
594
               }
601
               }
595
             }
602
             }
863
           params['settle_accounts_type'] = 2
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
           axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
874
           axios.get('http://127.0.0.1:9532/zh/api/uploadinfo/get', {
868
             params: params
875
             params: params
869
           })
876
           })
891
               })
898
               })
892
               .catch(function(error) {
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
       let params = {
935
       let params = {
901
         'record_date': this.record_date,
936
         'record_date': this.record_date,
902
         'sch_type': this.schedule_type
937
         'sch_type': this.schedule_type
925
             case 1:
960
             case 1:
926
               this.all_table_data = response.data.data.list
961
               this.all_table_data = response.data.data.list
927
               this.patientTableData = response.data.data.list
962
               this.patientTableData = response.data.data.list
928
-              if (this.hisPatientInfo.id > 0){
963
+              if (this.hisPatientInfo.id > 0) {
929
                 for (let i = 0; i < this.patientTableData.length; i++) {
964
                 for (let i = 0; i < this.patientTableData.length; i++) {
930
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
965
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
931
                     this.current_index = i
966
                     this.current_index = i
934
 
969
 
935
                   }
970
                   }
936
                 }
971
                 }
937
-              }else{
972
+              } else {
938
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
973
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
939
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
974
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
940
               }
975
               }
943
               this.all_table_data = response.data.data.list_two
978
               this.all_table_data = response.data.data.list_two
944
               this.patientTableData = response.data.data.list_two
979
               this.patientTableData = response.data.data.list_two
945
 
980
 
946
-
947
-              if (this.hisPatientInfo.id > 0){
981
+              if (this.hisPatientInfo.id > 0) {
948
                 for (let i = 0; i < this.patientTableData.length; i++) {
982
                 for (let i = 0; i < this.patientTableData.length; i++) {
949
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
983
                   if (this.hisPatientInfo.patient_id == this.patientTableData[i].patient_id) {
950
                     this.current_index = i
984
                     this.current_index = i
953
 
987
 
954
                   }
988
                   }
955
                 }
989
                 }
956
-              }else{
990
+              } else {
957
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
991
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
958
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
992
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
959
               }
993
               }
1017
 
1051
 
1018
                   }
1052
                   }
1019
                 }
1053
                 }
1020
-              }else{
1054
+              } else {
1021
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1055
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1022
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1056
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1023
               }
1057
               }
1034
 
1068
 
1035
                   }
1069
                   }
1036
                 }
1070
                 }
1037
-              }else{
1071
+              } else {
1038
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1072
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
1039
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1073
                 this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].patient_id)
1040
               }
1074
               }
1262
                 overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
1296
                 overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
1263
                 preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
1297
                 preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
1264
                 inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
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
               tempAdvice.push(obj)
1302
               tempAdvice.push(obj)
1289
                 overlmt_amt: prescription.project[b].order_info.overlmt_amt,
1323
                 overlmt_amt: prescription.project[b].order_info.overlmt_amt,
1290
                 preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
1324
                 preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
1291
                 inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt,
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
           this.preselfpay_amt = this.getPreselfpayAmtTotal()
1386
           this.preselfpay_amt = this.getPreselfpayAmtTotal()
1354
           this.inscp_scp_amt = this.getInscpScpAmtTotal()
1387
           this.inscp_scp_amt = this.getInscpScpAmtTotal()
1355
 
1388
 
1356
-
1357
         }
1389
         }
1358
       })
1390
       })
1359
-    },getFulamtOwnpayAmtTotal(){
1391
+    }, getFulamtOwnpayAmtTotal() {
1360
       var total = 0
1392
       var total = 0
1361
       for (let i = 0; i < this.prescriptions.length; i++) {
1393
       for (let i = 0; i < this.prescriptions.length; i++) {
1362
         if (this.prescriptions[i].advices != null) {
1394
         if (this.prescriptions[i].advices != null) {
1374
       }
1406
       }
1375
       return total.toFixed(2)
1407
       return total.toFixed(2)
1376
 
1408
 
1377
-    },getOverlmtAmtTotal(){
1409
+    }, getOverlmtAmtTotal() {
1378
       var total = 0
1410
       var total = 0
1379
       for (let i = 0; i < this.prescriptions.length; i++) {
1411
       for (let i = 0; i < this.prescriptions.length; i++) {
1380
         if (this.prescriptions[i].advices != null) {
1412
         if (this.prescriptions[i].advices != null) {
1392
       }
1424
       }
1393
       return total.toFixed(2)
1425
       return total.toFixed(2)
1394
 
1426
 
1395
-    },getPreselfpayAmtTotal(){
1427
+    }, getPreselfpayAmtTotal() {
1396
       var total = 0
1428
       var total = 0
1397
       for (let i = 0; i < this.prescriptions.length; i++) {
1429
       for (let i = 0; i < this.prescriptions.length; i++) {
1398
         if (this.prescriptions[i].advices != null) {
1430
         if (this.prescriptions[i].advices != null) {
1410
       }
1442
       }
1411
       return total.toFixed(2)
1443
       return total.toFixed(2)
1412
 
1444
 
1413
-    },getInscpScpAmtTotal(){
1445
+    }, getInscpScpAmtTotal() {
1414
       var total = 0
1446
       var total = 0
1415
       for (let i = 0; i < this.prescriptions.length; i++) {
1447
       for (let i = 0; i < this.prescriptions.length; i++) {
1416
         if (this.prescriptions[i].advices != null) {
1448
         if (this.prescriptions[i].advices != null) {

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

1
 <template>
1
 <template>
2
   <div class="prescriptionTable">
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
       <el-table-column align="center" prop="name" label="名称">
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
       </el-table-column>
27
       </el-table-column>
10
 
28
 
11
       <el-table-column align="center" prop="name" width="90" label="单次用量">
29
       <el-table-column align="center" prop="name" width="90" label="单次用量">
12
         <template slot-scope="scope">
30
         <template slot-scope="scope">
13
           <!--<el-input v-model="scope.row.single_dose" readonly style="width:65%;"></el-input>-->
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
         </template>
37
         </template>
16
       </el-table-column>
38
       </el-table-column>
17
       <el-table-column align="center" prop="name" width="100" label="用法">
39
       <el-table-column align="center" prop="name" width="100" label="用法">
18
         <template slot-scope="scope">
40
         <template slot-scope="scope">
19
           <!--<el-input v-model="scope.row.delivery_way" readonly></el-input>-->
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
         </template>
43
         </template>
23
       </el-table-column>
44
       </el-table-column>
24
       <el-table-column align="center" prop="name" width="100" label="频率">
45
       <el-table-column align="center" prop="name" width="100" label="频率">
25
         <template slot-scope="scope">
46
         <template slot-scope="scope">
26
-          <div> {{scope.row.execution_frequency}}</div>
47
+          <div>{{ scope.row.execution_frequency }}</div>
27
 
48
 
28
           <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
49
           <!--<el-input v-model="scope.row.execution_frequency" readonly></el-input>-->
29
         </template>
50
         </template>
30
       </el-table-column>
51
       </el-table-column>
31
 
52
 
32
       <el-table-column align="center" prop="day" width="50" label="天数">
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
       </el-table-column>
55
       </el-table-column>
35
 
56
 
36
       <el-table-column align="center" prop="name" width="100" label="总量">
57
       <el-table-column align="center" prop="name" width="100" label="总量">
37
         <template slot-scope="scope">
58
         <template slot-scope="scope">
38
           <!--<el-input v-model="scope.row.prescribing_number" style="width:60%" readonly placeholder=""></el-input>-->
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
         </template>
65
         </template>
41
       </el-table-column>
66
       </el-table-column>
42
       <el-table-column align="center" prop="name" width="60" label="单价">
67
       <el-table-column align="center" prop="name" width="60" label="单价">
43
         <template slot-scope="scope">
68
         <template slot-scope="scope">
44
-          <div> {{scope.row.retail_price}}元</div>
69
+          <div>{{ scope.row.retail_price }}元</div>
45
 
70
 
46
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
71
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
47
         </template>
72
         </template>
48
       </el-table-column>
73
       </el-table-column>
49
       <el-table-column align="center" prop="name" width="60" label="总价">
74
       <el-table-column align="center" prop="name" width="60" label="总价">
50
         <template slot-scope="scope">
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
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
84
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
54
         </template>
85
         </template>
56
 
87
 
57
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
88
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
58
         <template slot-scope="scope">
89
         <template slot-scope="scope">
59
-          <div> {{scope.row.fulamt_ownpay_amt}}元</div>
90
+          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
60
         </template>
91
         </template>
61
       </el-table-column>
92
       </el-table-column>
62
 
93
 
63
-
64
-
65
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
94
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
66
         <template slot-scope="scope">
95
         <template slot-scope="scope">
67
-          <div> {{scope.row.overlmt_amt}}元</div>
96
+          <div>{{ scope.row.overlmt_amt }}元</div>
68
         </template>
97
         </template>
69
       </el-table-column>
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
         <template slot-scope="scope">
106
         <template slot-scope="scope">
74
-          <div> {{scope.row.preselfpay_amt}}元</div>
107
+          <div>{{ scope.row.preselfpay_amt }}元</div>
75
         </template>
108
         </template>
76
       </el-table-column>
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
         <template slot-scope="scope">
117
         <template slot-scope="scope">
81
-          <div> {{scope.row.inscp_scp_amt}}元</div>
118
+          <div>{{ scope.row.inscp_scp_amt }}元</div>
82
         </template>
119
         </template>
83
       </el-table-column>
120
       </el-table-column>
84
 
121
 
85
-
86
-
87
-
88
       <el-table-column align="center" prop="name" width="50" label="备注">
122
       <el-table-column align="center" prop="name" width="50" label="备注">
89
         <template slot-scope="scope">
123
         <template slot-scope="scope">
90
           <!--<el-input v-model="scope.row.remark" :title="scope.row.remark" placeholder="" readonly></el-input>-->
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
         </template>
126
         </template>
93
       </el-table-column>
127
       </el-table-column>
94
     </el-table>
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
       <el-table-column align="center" prop="project_name" label="名称">
147
       <el-table-column align="center" prop="project_name" label="名称">
100
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
148
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
101
       </el-table-column>
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
       </el-table-column>
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
       </el-table-column>
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
         <template slot-scope="scope">
176
         <template slot-scope="scope">
111
           <!--<el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>-->
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
         </template>
179
         </template>
115
       </el-table-column>
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
         <template slot-scope="scope">
187
         <template slot-scope="scope">
118
           <!--<el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>-->
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
         </template>
190
         </template>
122
       </el-table-column>
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
         <template slot-scope="scope">
198
         <template slot-scope="scope">
125
           <!--<el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>-->
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
         </template>
201
         </template>
129
-
130
       </el-table-column>
202
       </el-table-column>
131
       <el-table-column align="center" prop="total" width="50" label="总量">
203
       <el-table-column align="center" prop="total" width="50" label="总量">
132
         <template slot-scope="scope">
204
         <template slot-scope="scope">
133
-          <div style="display:flex;">
205
+          <div style="display: flex">
134
             <!--<el-input v-model="scope.row.total" placeholder="" readonly></el-input>-->
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
           </div>
208
           </div>
138
         </template>
209
         </template>
139
       </el-table-column>
210
       </el-table-column>
140
       <el-table-column align="center" prop="name" width="50" label="单价">
211
       <el-table-column align="center" prop="name" width="50" label="单价">
141
         <template slot-scope="scope">
212
         <template slot-scope="scope">
142
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
213
           <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
143
-          {{scope.row.price}}元
144
-
214
+          {{ scope.row.price }}元
145
         </template>
215
         </template>
146
       </el-table-column>
216
       </el-table-column>
147
 
217
 
148
       <el-table-column align="center" prop="name" width="60" label="总价">
218
       <el-table-column align="center" prop="name" width="60" label="总价">
149
         <template slot-scope="scope">
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
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
222
           <!--<el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>-->
153
         </template>
223
         </template>
155
 
225
 
156
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
226
       <el-table-column align="center" prop="name" width="60" label="全自费金额">
157
         <template slot-scope="scope">
227
         <template slot-scope="scope">
158
-          <div> {{scope.row.fulamt_ownpay_amt}}元</div>
228
+          <div>{{ scope.row.fulamt_ownpay_amt }}元</div>
159
         </template>
229
         </template>
160
       </el-table-column>
230
       </el-table-column>
161
 
231
 
162
-
163
-
164
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
232
       <el-table-column align="center" prop="name" width="60" label="超限价金额">
165
         <template slot-scope="scope">
233
         <template slot-scope="scope">
166
-          <div> {{scope.row.overlmt_amt}}元</div>
234
+          <div>{{ scope.row.overlmt_amt }}元</div>
167
         </template>
235
         </template>
168
       </el-table-column>
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
         <template slot-scope="scope">
244
         <template slot-scope="scope">
173
-          <div> {{scope.row.preselfpay_amt}}元</div>
245
+          <div>{{ scope.row.preselfpay_amt }}元</div>
174
         </template>
246
         </template>
175
       </el-table-column>
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
         <template slot-scope="scope">
255
         <template slot-scope="scope">
180
-          <div> {{scope.row.inscp_scp_amt}}元</div>
256
+          <div>{{ scope.row.inscp_scp_amt }}元</div>
181
         </template>
257
         </template>
182
       </el-table-column>
258
       </el-table-column>
183
 
259
 
184
-
185
-
186
       <el-table-column align="center" prop="name" width="50" label="备注">
260
       <el-table-column align="center" prop="name" width="50" label="备注">
187
         <template slot-scope="scope">
261
         <template slot-scope="scope">
188
           <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
262
           <!--<el-input v-model="scope.row.remark" readonly></el-input>-->
189
-          {{scope.row.remark}}
190
-
263
+          {{ scope.row.remark }}
191
         </template>
264
         </template>
192
       </el-table-column>
265
       </el-table-column>
193
     </el-table>
266
     </el-table>
194
 
267
 
195
     <div class="additionalBox">
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
         <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
289
         <!--<i class="el-icon-delete deleteIcon" @click="delAddition(index,item)"></i>-->
203
       </div>
290
       </div>
206
 </template>
293
 </template>
207
 
294
 
208
 <script>
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
 export default {
299
 export default {
213
   props: {
300
   props: {
214
-    prescription: Object
301
+    prescription: Object,
215
   },
302
   },
216
   data() {
303
   data() {
217
     return {
304
     return {
218
       drugways: [],
305
       drugways: [],
219
-      efs: []
220
-    }
221
-  }, mounted() {
222
-    getInitData().then(response => {
306
+      efs: [],
307
+    };
308
+  },
309
+  mounted() {
310
+    getInitData().then((response) => {
223
       if (response.data.state == 0) {
311
       if (response.data.state == 0) {
224
         this.$message.error(response.data.msg);
312
         this.$message.error(response.data.msg);
225
-        return false
313
+        return false;
226
       } else {
314
       } else {
227
         this.drugways = response.data.data.drugways;
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
       var name = "";
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
 </script>
352
 </script>
250
 
353
 
251
 <style lang="scss">
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
 </style>
388
 </style>

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

188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
188
                 var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
189
                 var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
190
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
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
         smalltoBIG(n) {
195
         smalltoBIG(n) {

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

732
         width="30%"
732
         width="30%"
733
     >
733
     >
734
       <span>是否修改医疗类型</span>
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
                  placeholder="医疗类型" @change="changevalue">
736
                  placeholder="医疗类型" @change="changevalue">
737
         <el-option
737
         <el-option
738
             v-for="(item,index) in registerThree"
738
             v-for="(item,index) in registerThree"
742
         </el-option>
742
         </el-option>
743
       </el-select>
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
                  placeholder="医疗类型" @change="changevalue">
746
                  placeholder="医疗类型" @change="changevalue">
747
         <el-option
747
         <el-option
748
             v-for="(item,index) in register"
748
             v-for="(item,index) in register"

+ 3 - 4
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

1
 <template>
1
 <template>
2
   <div id="statement-print" class="statement-print">
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
     <table class="statementTable" border="1">
7
     <table class="statementTable" border="1">
9
       <tr>
8
       <tr>

+ 1 - 1
src/xt_pages/outpatientCharges/summaryDetail.vue View File

58
               <el-table-column align="center" prop="name" width="60" label="总价">
58
               <el-table-column align="center" prop="name" width="60" label="总价">
59
                 <template slot-scope="scope">
59
                 <template slot-scope="scope">
60
                   <!--<el-input v-model="scope.row.price" placeholder="" readonly></el-input>-->
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
                 </template>
63
                 </template>
64
               </el-table-column>
64
               </el-table-column>