瀏覽代碼

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

28169 1 年之前
父節點
當前提交
588e7b00dc

+ 28 - 33
src/xt_pages/outpatientCharges/statementTemplate/printthirteen.vue 查看文件

1
 <template>
1
 <template>
2
   <div id="statement-print" class="statement-print">
2
   <div id="statement-print" class="statement-print">
3
-    
3
+
4
     <div class="statementTitle" >湖北省基本医疗保险门诊费用结算单</div>
4
     <div class="statementTitle" >湖北省基本医疗保险门诊费用结算单</div>
5
 
5
 
6
     <!-- <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 10387 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088 &&this.$store.getters.xt_user.org_id != 10510 &&this.$store.getters.xt_user.org_id != 0">广东省社会医疗保险医疗费用结算单</div> -->
6
     <!-- <div class="statementTitle" v-if="this.$store.getters.xt_user.org_id != 10375 && this.$store.getters.xt_user.org_id != 10387 && this.$store.getters.xt_user.org_id != 10191 && this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217 &&this.$store.getters.xt_user.org_id != 10088 &&this.$store.getters.xt_user.org_id != 10510 &&this.$store.getters.xt_user.org_id != 0">广东省社会医疗保险医疗费用结算单</div> -->
80
 
80
 
81
       </tr>
81
       </tr>
82
       <tr>
82
       <tr>
83
-        <td>单位名称</td>
84
-        <td colspan="5">{{info.emp_name}}</td>
83
+        <td>地址</td>
84
+        <td colspan="5">{{info.patient.home_address}}</td>
85
         <td width="80">联系电话</td>
85
         <td width="80">联系电话</td>
86
         <td width="110">{{info.patient.phone}}</td>
86
         <td width="110">{{info.patient.phone}}</td>
87
         <td width="80">身份证号</td>
87
         <td width="80">身份证号</td>
88
         <td colspan="3">{{info.certno}}</td>
88
         <td colspan="3">{{info.certno}}</td>
89
       </tr>
89
       </tr>
90
-      <tr v-if="this.$store.getters.xt_user.org_id != 10387">
91
-        <td>住院号</td>
92
-        <td>{{info.number}}</td>
93
-        <td>科别</td>
94
-        <td width="100"></td>
95
-        <td>床号</td>
96
-        <td></td>
97
-        <td>入院日期</td>
98
-        <td>{{info.begndate ? info.begndate.split(' ')[0] : ''}}</td>
99
-        <td>出院日期</td>
100
-        <td width="100">{{info.enddate ? info.enddate.split(' ')[0] : ''}}</td>
101
-        <td>住院天数</td>
102
-        <td>{{getDay(info.begndate,info.enddate)}}</td>
103
-
90
+      <tr>
91
+        <td>门诊号</td>
92
+        <td colspan="5">{{info.mdtrt_id}}</td>
93
+        <td>门诊日期</td>
94
+        <td colspan="5">{{getTime(info.date)}}</td>
104
       </tr>
95
       </tr>
105
       <tr>
96
       <tr>
106
         <td>险种</td>
97
         <td>险种</td>
107
-        <td colspan="2" v-if="info.insutype == '310'">职工基本医疗保险</td>
108
-        <td colspan="2" v-if="info.insutype == '320'">公务员医疗补助</td>
109
-        <td colspan="2" v-if="info.insutype == '330'">大额医疗费用补助</td>
110
-        <td colspan="2" v-if="info.insutype == '340'">离休人员医疗保障</td>
111
-        <td colspan="2" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
112
-        <td colspan="2" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
113
-        <td colspan="2" v-if="info.insutype == '510'">生育保险</td>
114
-
115
-        <td v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217">入院第一诊断</td>
116
-        <td v-else>病种名称</td>
117
-        <td v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217" colspan="3">{{info.dise_name}}</td>
118
-        <td v-else colspan="3">{{'慢性肾功能衰竭'}}</td>
119
-        <td v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217">出院第一诊断</td>
120
-        <td v-else>病种编码</td>
121
-        <td v-if="this.$store.getters.xt_user.org_id != 10188 && this.$store.getters.xt_user.org_id != 10217" colspan="6">{{info.dise_name}}</td>
122
-        <td v-else colspan="6">{{'M07800'}}</td>
98
+        <td colspan="5" v-if="info.insutype == '310'">职工基本医疗保险</td>
99
+        <td colspan="5" v-if="info.insutype == '320'">公务员医疗补助</td>
100
+        <td colspan="5" v-if="info.insutype == '330'">大额医疗费用补助</td>
101
+        <td colspan="5" v-if="info.insutype == '340'">离休人员医疗保障</td>
102
+        <td colspan="5" v-if="info.insutype == '390'">城乡居民基本医疗保险</td>
103
+        <td colspan="5" v-if="info.insutype == '392'">城乡居民大病医疗保险</td>
104
+        <td colspan="5" v-if="info.insutype == '510'">生育保险</td>
105
+        <td>诊断</td>
106
+        <td colspan="5">{{info.diagnosis}}</td>
123
       </tr>
107
       </tr>
124
       <tr>
108
       <tr>
125
         <td>业务类别</td>
109
         <td>业务类别</td>
325
   </div>
309
   </div>
326
 </template>
310
 </template>
327
 <script>
311
 <script>
312
+import { uParseTime } from '@/utils/tools'
328
   export default {
313
   export default {
329
     props: {
314
     props: {
330
       info: {
315
       info: {
344
         }
329
         }
345
       }
330
       }
346
     },methods:{
331
     },methods:{
332
+      getTime(val) {
333
+        if (val < 0) {
334
+          return ""
335
+        }
336
+        if (val == "") {
337
+          return ""
338
+        } else {
339
+          return uParseTime(val, '{y}-{m}-{d}')
340
+        }
341
+      },
347
       getBirth(idNo){
342
       getBirth(idNo){
348
         var year = idNo.substring(6, 10);
343
         var year = idNo.substring(6, 10);
349
         var month = idNo.substring(10, 12);
344
         var month = idNo.substring(10, 12);

+ 1 - 8
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

59
 
59
 
60
                   </el-form-item>
60
                   </el-form-item>
61
 
61
 
62
-
63
-
64
-
65
-
66
                   <el-form-item label="过敏病史: " prop="name" label-position="right">
62
                   <el-form-item label="过敏病史: " prop="name" label-position="right">
67
                       <el-autocomplete
63
                       <el-autocomplete
68
                               style="width:100%;"
64
                               style="width:100%;"
501
       <save-template ref='saveTemplate' v-on:save_template="saveTemplate"></save-template>
497
       <save-template ref='saveTemplate' v-on:save_template="saveTemplate"></save-template>
502
       <next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue"
498
       <next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue"
503
                                  v-on:cancel="cancel"></next-or-last-prescription>
499
                                  v-on:cancel="cancel"></next-or-last-prescription>
504
-
505
-
506
       <!--<next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue" v-on:cancel="cancel"></next-or-last-prescription>-->
500
       <!--<next-or-last-prescription ref='next_or_last_prescription' v-on:save="setValue" v-on:cancel="cancel"></next-or-last-prescription>-->
507
       <call-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-prescription>
501
       <call-prescription ref='call_prescription' v-on:call="call" v-on:call-cancel="callCancel"></call-prescription>
508
-
509
-
510
   </div>
502
   </div>
511
 </template>
503
 </template>
512
 
504
 
4047
       display: flex;
4039
       display: flex;
4048
       flex-direction: column;
4040
       flex-direction: column;
4049
       position: relative;
4041
       position: relative;
4042
+      width: 30%;
4050
 
4043
 
4051
   .el-form-item {
4044
   .el-form-item {
4052
       width: 33%;
4045
       width: 33%;

+ 6 - 7
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

3
         <el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;"
3
         <el-table v-if="activeType  == 1" :data="prescription.advices" border style="width: 99%;"
4
                   :row-style="{ color: '#303133' }"
4
                   :row-style="{ color: '#303133' }"
5
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
-            <el-table-column align="center" prop="day" width="70" label="序号">
6
+            <el-table-column align="center" prop="day" width="70" label="序号" fixed>
7
                 <template slot-scope="scope">
7
                 <template slot-scope="scope">
8
                     <div style="display:flex;align-items:center;">
8
                     <div style="display:flex;align-items:center;">
9
                         <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.groupno" placeholder=""></el-input>
9
                         <el-input :disabled="prescription.is_medicine_status" v-model="scope.row.groupno" placeholder=""></el-input>
12
             </el-table-column>
12
             </el-table-column>
13
 
13
 
14
 
14
 
15
-            <el-table-column align="center" prop="drug_name" label="名称">
15
+            <el-table-column align="center" prop="drug_name" label="名称" fixed>
16
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
16
                 <template slot-scope="scope"><span :title="scope.row.drug_name">{{ scope.row.drug_name }}</span>
17
                 </template>
17
                 </template>
18
             </el-table-column>
18
             </el-table-column>
61
                 </template>
61
                 </template>
62
             </el-table-column>
62
             </el-table-column>
63
 
63
 
64
-
65
             <el-table-column align="center" prop="day" width="70" label="天数">
64
             <el-table-column align="center" prop="day" width="70" label="天数">
66
                 <template slot-scope="scope">
65
                 <template slot-scope="scope">
67
                     <div style="display:flex;align-items:center;">
66
                     <div style="display:flex;align-items:center;">
132
                     <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
131
                     <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
133
                 </template>
132
                 </template>
134
             </el-table-column>
133
             </el-table-column>
135
-            <el-table-column align="center" width="40" prop="name" label="操作">
134
+            <el-table-column align="center" width="40" prop="name" label="操作" fixed="right">
136
                 <template slot-scope="scope">
135
                 <template slot-scope="scope">
137
                     <i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>
136
                     <i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>
138
                 </template>
137
                 </template>
142
         <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;"
141
         <el-table v-if="activeType == 2" :data="prescription.project" border style="width: 99%;"
143
                   :row-style="{ color: '#303133' }"
142
                   :row-style="{ color: '#303133' }"
144
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
143
                   :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
145
-            <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
146
-            <el-table-column align="center" prop="project_name" label="名称">
144
+            <el-table-column align="center" type="index" width="40" label="序号" fixed></el-table-column>
145
+            <el-table-column align="center" prop="project_name" label="名称" fixed>
147
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
146
                 <template slot-scope="scope"><span :title="scope.row.project_name">{{ scope.row.project_name }}</span>
148
                 </template>
147
                 </template>
149
             </el-table-column>
148
             </el-table-column>
218
                     <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
217
                     <el-input v-model="scope.row.remark" :title="scope.row.remark"></el-input>
219
                 </template>
218
                 </template>
220
             </el-table-column>
219
             </el-table-column>
221
-            <el-table-column align="center" width="40" prop="name" label="操作">
220
+            <el-table-column align="center" width="40" prop="name" label="操作" fixed="right">
222
                 <template slot-scope="scope">
221
                 <template slot-scope="scope">
223
                     <i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>
222
                     <i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>
224
                 </template>
223
                 </template>

+ 26 - 16
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

120
             </el-button>
120
             </el-button>
121
             <el-button size="small" ref="button_three" @click="open_two()" type="primary">处方调用</el-button>
121
             <el-button size="small" ref="button_three" @click="open_two()" type="primary">处方调用</el-button>
122
             <el-button size="small" @click="open_three()" type="primary">保存模板</el-button>
122
             <el-button size="small" @click="open_three()" type="primary">保存模板</el-button>
123
-
124
-            <!-- <el-popover
125
-                                placement="bottom"
126
-                                width="300"
127
-                                trigger="click">
128
-                            <el-button size="small" ref="button_two" @click="open(2)">处方单</el-button>
129
-                            <el-button size="small" ref="button_six" @click="open(6)">治疗单</el-button>
130
-                            <el-button size="small" ref="button_six" @click="open(20)">检验单</el-button>
131
-                            <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印
132
-                            </el-button>
133
-
134
-                        </el-popover> -->
135
             <el-button size="small" @click="openPrint" type="primary">打印</el-button>
123
             <el-button size="small" @click="openPrint" type="primary">打印</el-button>
136
-
137
-            <!-- <el-button size="small" ref="button_four"  @click="open(5)" type="primary" :disabled='prescriptions && prescriptions[0].advices && prescriptions[0].project ? prescriptions[0].advices.length == 0 && prescriptions[0].project.length == 0 : false'>存模板</el-button> -->
138
           </div>
124
           </div>
139
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
125
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
140
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
126
             <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
148
             </el-button>
134
             </el-button>
149
           </div>
135
           </div>
150
         </div>
136
         </div>
137
+
138
+        <!-- <div> -->
139
+          <desk-prescription v-on:setData="setData" :diagnoses="diagnoses" :loading="isloading"
140
+                        :sick="sick" :record_date="record_date"
141
+                        :drugs="drugs"
142
+                        :allDrugs="allDrugs"
143
+                        :advices_template="advices_template"
144
+                        :additions="additions"
145
+                        :doctors="doctors"
146
+                        :department="department"
147
+                        v-on:change="changeOther"
148
+                        v-on:month="changeMonth"
149
+                        v-on:day="changeDay"
150
+
151
+                        :month_prescriptions="month_prescriptions"
152
+                        :org_id="org_id"
153
+                        ref="prescriptions" :prescriptions="prescriptions" :patientInfo="patientInfo"
154
+                        v-on:getSunziValue="getSunziValue"
155
+                        :hisPatientInfo="hisPatientInfo" :patient_diagnoses="patient_diagnoses"
156
+                        @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
157
+                        v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
158
+        <!-- </div> -->
159
+
151
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
160
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
152
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
161
         <!--v-if="titleType == '处方'" style="flex:1;"></desk-prescription>-->
153
-        <desk-prescription v-on:setData="setData" :diagnoses="diagnoses" :loading="isloading"
162
+
163
+        <!-- <desk-prescription v-on:setData="setData" :diagnoses="diagnoses" :loading="isloading"
154
                            :sick="sick" :record_date="record_date"
164
                            :sick="sick" :record_date="record_date"
155
                            :drugs="drugs"
165
                            :drugs="drugs"
156
                            :allDrugs="allDrugs"
166
                            :allDrugs="allDrugs"
168
                            v-on:getSunziValue="getSunziValue"
178
                            v-on:getSunziValue="getSunziValue"
169
                            :hisPatientInfo="hisPatientInfo" :patient_diagnoses="patient_diagnoses"
179
                            :hisPatientInfo="hisPatientInfo" :patient_diagnoses="patient_diagnoses"
170
                            @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
180
                            @event1="changetwo($event)" @editKeepLoad="editKeepLoad"
171
-                           v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription>
181
+                           v-if="titleType == '电子处方'" style="flex:1;"></desk-prescription> -->
172
 
182
 
173
 
183
 
174
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
184
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"

+ 34 - 10
src/xt_pages/outpatientTool/detailPrint.vue 查看文件

39
           </tr>
39
           </tr>
40
           <tr>
40
           <tr>
41
             <td>总费用:{{ getAllPice() }}</td>
41
             <td>总费用:{{ getAllPice() }}</td>
42
-            <td>个人支付:
43
-             {{getActPay()}}
42
+            <td>个人支付金额
43
+             {{getPsnCashPay()}}
44
             <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
44
             <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
45
             <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
45
             <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
46
             </td>
46
             </td>
47
+
48
+            <td>个人账户支付金额:
49
+              {{getActPay()}}
50
+              <!-- <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
51
+              <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span> -->
52
+            </td>
47
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
53
             <td>基金支付记账:{{ getFundPaySumamt() }}</td>
48
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
54
             <td>补充医疗支付记账:{{ getHifesPay() }}</td>
49
           </tr>
55
           </tr>
414
       }
420
       }
415
       return total_price;
421
       return total_price;
416
     },
422
     },
417
-    getActPay() {
423
+    getPsnCashPay() {
418
       var act_pay = 0;
424
       var act_pay = 0;
419
       for (let i = 0; i < this.list.length; i++) {
425
       for (let i = 0; i < this.list.length; i++) {
420
         for (let j = 0; j < this.list[i].orders.length; j++) {
426
         for (let j = 0; j < this.list[i].orders.length; j++) {
428
       }
434
       }
429
 
435
 
430
       return act_pay.toFixed(2);
436
       return act_pay.toFixed(2);
431
-    },
432
-    getFundPaySumamt() {
433
-      var fund_pay_sumamt = 0;
437
+    },getActPay() {
438
+      var act_pay = 0;
434
       for (let i = 0; i < this.list.length; i++) {
439
       for (let i = 0; i < this.list.length; i++) {
435
         for (let j = 0; j < this.list[i].orders.length; j++) {
440
         for (let j = 0; j < this.list[i].orders.length; j++) {
436
-          fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
441
+            act_pay = act_pay + this.list[i].orders[j].acct_pay
442
+          }
443
+        }
444
+      return act_pay.toFixed(2);
445
+    },
446
+    getFundPaySumamt() {
447
+      if (this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10278 || this.$store.getters.xt_user.org_id ==10537){
448
+        var fund_pay_sumamt = 0;
449
+        for (let i = 0; i < this.list.length; i++) {
450
+          for (let j = 0; j < this.list[i].orders.length; j++) {
451
+            fund_pay_sumamt += this.list[i].orders[j].hifp_pay + this.list[i].orders[j].maf_pay + this.list[i].orders[j].hifmi_pay;
452
+          }
453
+        }
454
+        return fund_pay_sumamt.toFixed(2);
455
+      }else{
456
+        var fund_pay_sumamt = 0;
457
+        for (let i = 0; i < this.list.length; i++) {
458
+          for (let j = 0; j < this.list[i].orders.length; j++) {
459
+            fund_pay_sumamt += this.list[i].orders[j].fund_pay_sumamt;
460
+          }
437
         }
461
         }
462
+        return fund_pay_sumamt.toFixed(2);
438
       }
463
       }
439
-      return fund_pay_sumamt;
440
     },
464
     },
441
     getHifesPay() {
465
     getHifesPay() {
442
       var hifes_pay = 0;
466
       var hifes_pay = 0;
445
           hifes_pay += this.list[i].orders[j].hifes_pay;
469
           hifes_pay += this.list[i].orders[j].hifes_pay;
446
         }
470
         }
447
       }
471
       }
448
-      return hifes_pay;
472
+      return hifes_pay.toFixed(2);
449
     },
473
     },
450
     getMafPay() {
474
     getMafPay() {
451
       var maf_pay = 0;
475
       var maf_pay = 0;
454
           maf_pay += this.list[i].orders[j].maf_pay;
478
           maf_pay += this.list[i].orders[j].maf_pay;
455
         }
479
         }
456
       }
480
       }
457
-      return maf_pay;
481
+      return maf_pay.toFixed(2);
458
     },
482
     },
459
     getDepartment(id) {
483
     getDepartment(id) {
460
       var name = "";
484
       var name = "";