Browse Source

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

csx 2 years ago
parent
commit
4c2110d4eb

+ 0 - 8
src/xt_pages/hospitalStation/allListTemplate/printOne.vue View File

@@ -118,14 +118,6 @@
118 118
       }
119 119
 
120 120
     },
121
-    watch:{
122
-        list: {
123
-            handler(newVal) {
124
-                this.getPage()
125
-            },
126
-            deep: true
127
-        }
128
-    }
129 121
   }
130 122
 
131 123
 

+ 5 - 5
src/xt_pages/hospitalStation/invoicePrint.vue View File

@@ -13,9 +13,9 @@
13 13
     </template>
14 14
     <div class="app-container" style="padding-top:40px;">
15 15
         <div class='dialysisPage'>
16
-            <printOne v-if="org_id!=10215 && org_id!=10265 && org_id!=0" :paramsObj="invoiceParams"></printOne>
17
-            <printTwo v-if="org_id == 10215" :paramsObj="invoiceParams"></printTwo>
18
-            <printThree v-if="org_id == 0 || org_id == 10265 ||org_id == 4" :paramsObj="invoiceParams"></printThree>
16
+            <printOne v-if="org_id != 10215 && org_id != 10265 && org_id !=0" :paramsObj="invoiceParams"></printOne>
17
+            <printTwo v-if="org_id == 10215  " :paramsObj="invoiceParams"></printTwo>
18
+            <printThree v-if="org_id == 10265" :paramsObj="invoiceParams"></printThree>
19 19
         </div>
20 20
     </div>
21 21
   </div>
@@ -95,7 +95,7 @@ export default {
95 95
     paramsObj:{//深度监听,可监听到对象、数组的变化
96 96
       handler(val, oldVal){
97 97
         this.invoiceParams = val
98
-        
98
+
99 99
       },
100 100
       deep:true
101 101
     }
@@ -149,7 +149,7 @@ export default {
149 149
 }
150 150
 .actionBar{
151 151
     display: flex;
152
-    justify-content: space-between; 
152
+    justify-content: space-between;
153 153
     line-height: 24px;
154 154
     padding:0 10px;
155 155
 }

+ 50 - 31
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue View File

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
     <div id='invoice-print'>
3
-       
3
+
4 4
         <div style="display:flex;justify-content: space-between;">
5 5
             <!-- 机构名称 -->
6
-            <div>{{ list.department_name }}</div>
6
+            <div>{{ list.org_name }}</div>
7 7
             <!-- 单据号 -->
8 8
             <div  style="position: absolute;top:70px;left:300px">{{ list.number }}</div>
9 9
             <div></div>
@@ -18,20 +18,20 @@
18 18
             <!-- 个人电脑编号 -->
19 19
             <div style="position: absolute;top:90px;left:240px;"></div>
20 20
             <!-- 科室 -->
21
-            <div style="position: absolute;top:90px;left:240px;"></div>
21
+            <div style="position: absolute;top:90px;left:240px;">{{'血透'}}</div>
22 22
             <!-- 床号 -->
23 23
             <div style="position: absolute;top:90px;left:240px;"></div>
24 24
         </div>
25 25
 
26 26
         <div style="display:flex;justify-content: space-between;">
27 27
             <!-- 住院号 -->
28
-            <div style="position: absolute;top:90px;left:120px;"> {{ list.number }}</div>
28
+            <div style="position: absolute;top:90px;left:120px;"> {{ list.his_hospital_record.number?list.order.mdtrt_id:'' }}</div>
29 29
             <!-- 入院日期 -->
30
-            <div style="position: absolute;top:90px;left:240px;"></div>
30
+            <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.in_hosptial_time?list.his_hospital_record.in_hosptial_time.spilt(' ')[0]:''}}</div>
31 31
             <!-- 出院日期 -->
32
-            <div style="position: absolute;top:90px;left:240px;"></div>
32
+            <div style="position: absolute;top:90px;left:240px;">{{list.his_hospital_record.out_hosptial_time?list.his_hospital_record.out_hosptial_time.spilt(' ')[0]:''}}</div>
33 33
             <!-- 住院天数 -->
34
-            <div style="position: absolute;top:90px;left:240px;"></div>
34
+          <div style="position: absolute;top:90px;left:240px;">{{getDay(list.his_hospital_record.in_hosptial_time.split(' ')[0] ,list.his_hospital_record.out_hosptial_time.split(' ')[0])}}</div>
35 35
         </div>
36 36
 
37 37
         <!-- <div style="display:flex;justify-content: space-between;">
@@ -47,37 +47,37 @@
47 47
             <div style="position: absolute;top:160px;left:180px">检查费</div>
48 48
             <div style="position: absolute;top:160px;left:260px">{{ list.checkCostTotal }}</div>
49 49
             <div style="position: absolute;top:160px;left:340px">护理费</div>
50
-            <div style="position: absolute;top:160px;left:420px">{{ list.treatCostTotal }}</div>
50
+            <div style="position: absolute;top:160px;left:420px"></div>
51 51
             <div style="position: absolute;top:160px;left:500px">麻醉费</div>
52
-            <div style="position: absolute;top:160px;left:580px">{{ list.bedCostTotal }}</div>
52
+            <div style="position: absolute;top:160px;left:580px"></div>
53 53
         </div>
54 54
         <div style="display:flex;justify-content: space-between;">
55 55
             <div style="position: absolute;top:190px;left:40px">中成药费</div>
56
-            <div style="position: absolute;top:190px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
56
+            <div style="position: absolute;top:190px;left:110px"></div>
57 57
             <div style="position: absolute;top:190px;left:180px">治疗费</div>
58
-            <div style="position: absolute;top:190px;left:260px">{{ list.laboratoryCostTotal }}</div>
58
+            <div style="position: absolute;top:190px;left:260px">{{list.treatCostTotal}}</div>
59 59
             <div style="position: absolute;top:190px;left:340px">CT核磁</div>
60
-            <div style="position: absolute;top:190px;left:420px">{{ list.operationCostTotal }}</div>
60
+            <div style="position: absolute;top:190px;left:420px"></div>
61 61
             <div style="position: absolute;top:190px;left:500px">床位费</div>
62
-            <div style="position: absolute;top:190px;left:580px">{{ list.otherCostTotal }}</div>
62
+            <div style="position: absolute;top:190px;left:580px"></div>
63 63
         </div>
64 64
         <div style="display:flex;justify-content: space-between;">
65 65
             <div style="position: absolute;top:220px;left:40px">中草药费</div>
66
-            <div style="position: absolute;top:220px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
66
+            <div style="position: absolute;top:220px;left:110px"></div>
67 67
             <div style="position: absolute;top:220px;left:180px">手术费</div>
68
-            <div style="position: absolute;top:220px;left:260px">{{ list.laboratoryCostTotal }}</div>
68
+            <div style="position: absolute;top:220px;left:260px">{{ list.operationCostTotal }}</div>
69 69
             <div style="position: absolute;top:220px;left:340px">输血费</div>
70
-            <div style="position: absolute;top:220px;left:420px">{{ list.operationCostTotal }}</div>
70
+            <div style="position: absolute;top:220px;left:420px"></div>
71 71
             <div style="position: absolute;top:220px;left:500px">取暖费</div>
72
-            <div style="position: absolute;top:220px;left:580px">{{ list.otherCostTotal }}</div>
72
+            <div style="position: absolute;top:220px;left:580px"></div>
73 73
         </div>
74 74
         <div style="display:flex;justify-content: space-between;">
75 75
             <div style="position: absolute;top:250px;left:40px">高压氧费</div>
76
-            <div style="position: absolute;top:250px;left:110px">{{ list.chineseTraditionalMedicineCostTotal }}</div>
76
+            <div style="position: absolute;top:250px;left:110px"></div>
77 77
             <div style="position: absolute;top:250px;left:180px">化验费</div>
78 78
             <div style="position: absolute;top:250px;left:260px">{{ list.laboratoryCostTotal }}</div>
79 79
             <div style="position: absolute;top:250px;left:340px">氧气费</div>
80
-            <div style="position: absolute;top:250px;left:420px">{{ list.operationCostTotal }}</div>
80
+            <div style="position: absolute;top:250px;left:420px"></div>
81 81
             <div style="position: absolute;top:250px;left:500px">其他</div>
82 82
             <div style="position: absolute;top:250px;left:580px">{{ list.otherCostTotal }}</div>
83 83
         </div>
@@ -139,57 +139,63 @@
139 139
 
140 140
         <div style="position: absolute;top:310px;left:320px">
141 141
             <!-- 个人账户支付 -->
142
+          {{list.order.acct_pay?list.order.acct_pay:''}}
142 143
         </div>
143 144
         <div style="position: absolute;top:310px;left:380px">
144 145
             <!-- 统筹支付 -->
145
-           
146
+          {{list.order.hifp_pay?list.order.hifp_pay:''}}
146 147
         </div>
147 148
         <div style="position: absolute;top:310px;left:500px">
148
-            <!-- 现金支付 -->
149
+          {{list.order.psn_cash_pay?list.order.psn_cash_pay:''}}
150
+          <!-- 现金支付 -->
149 151
         </div>
150 152
         <div style="position: absolute;top:340px;left:320px">
151
-            <!-- 公务员补助 -->
153
+          {{list.order.cvlserv_pay?list.order.cvlserv_pay:''}}
154
+          <!-- 公务员补助 -->
152 155
         </div>
153 156
         <div style="position: absolute;top:340px;left:380px">
154
-            <!-- 医疗救助 -->
155
-            
157
+          {{list.order.maf_pay?list.order.maf_pay:''}}
158
+          <!-- 医疗救助 -->
156 159
         </div>
157 160
         <div style="position: absolute;top:340px;left:500px">
158 161
             <!-- 大病 -->
159
-            
162
+          {{list.order.hifmi_pay?list.order.hifmi_pay:''}}
163
+
164
+
160 165
         </div>
161 166
         <div style="position: absolute;top:340px;left:560px">
162 167
             <!-- 其他基金支付 -->
163
-            
168
+          {{list.order.oth_pay?list.order.oth_pay:''}}
169
+
164 170
         </div>
165 171
         <div style="position: absolute;top:370px;left:320px">
166 172
             <!-- 预交款合计 -->
167
-            
173
+
168 174
         </div>
169 175
         <div style="position: absolute;top:370px;left:380px">
170 176
             <!-- 补交款 -->
171
-            
172 177
         </div>
173 178
         <div style="position: absolute;top:370px;left:500px">
174 179
             <!-- 应退款 -->
175
-            
176 180
         </div>
177 181
         <div>
178 182
             <div style="position: absolute;top:400px;left:40px">
179 183
                 <!-- 开票日期 -->
180
-                
184
+              {{printDate}}
185
+
181 186
             </div>
182 187
             <div style="position: absolute;top:400px;left:280px">
183 188
                 <!-- 结算日期: -->
189
+              {{list.order.setl_time?list.order.setl_time.split(' ')[0]:''}}
184 190
             </div>
185 191
             <div style="position: absolute;top:400px;left:580px">
186 192
                 <!-- 经手人: -->
193
+              {{list.admin_user_name}}
187 194
             </div>
188 195
         </div>
189 196
     </div>
190 197
 </template>
191 198
 
192
-
193 199
 <script>
194 200
 import { getInvoice } from '@/api/project/project'
195 201
 export default {
@@ -222,6 +228,19 @@ export default {
222 228
         this.org_name = this.$store.getters.xt_user.org.org_name
223 229
     },
224 230
     methods:{
231
+      getDay(dateString1,dateString2){
232
+        var  startDate = Date.parse(dateString1);
233
+        var  endDate = Date.parse(dateString2);
234
+        if (startDate>endDate){
235
+          return 0;
236
+        }
237
+        if (startDate==endDate){
238
+          return 1;
239
+        }
240
+        var days=(endDate - startDate)/(1*24*60*60*1000);
241
+        return  days;
242
+
243
+      },
225 244
         getInvoice(params){
226 245
             getInvoice(params).then((res) => {
227 246
                 console.log('res',res)

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

@@ -35,8 +35,8 @@
35 35
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
36 36
             <div v-if="paramsObj.gend == 1" style="position: absolute;top:110px;left:100px;">√</div>
37 37
             <div v-else style="position: absolute;top:110px;left:140px;">√</div>
38
-            <div style="position: absolute;top:110px;left:260px;">{{ list.his_hospital_record.number.length <= 13 ? (totalPrice - list.order.psn_cash_money).toFixed(2) : '0.00' }}</div>
39
-            <div style="position: absolute;top:110px;left:420px;">{{ list.his_hospital_record.number.length <= 13 ? list.order.psn_cash_money.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
38
+            <div style="position: absolute;top:110px;left:260px;">{{ list.his_hospital_record.number.length <= 13 ? (totalPrice - list.order.psn_cash_pay).toFixed(2) : '0.00' }}</div>
39
+            <div style="position: absolute;top:110px;left:420px;">{{ list.his_hospital_record.number.length <= 13 ? list.order.psn_cash_pay.toFixed(2) : (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
40 40
             <div style="position: absolute;top:110px;left:540px;">现金</div>
41 41
         </div>
42 42
         <div style="display:flex;justify-content: space-between;">

+ 5 - 6
src/xt_pages/hospitalStation/outpatientChargesManagement.vue View File

@@ -98,7 +98,6 @@
98 98
 
99 99
             <el-button v-loading="loadingone" size="small"
100 100
                        v-if="(this.activeName == 'third' &&this.hisPatientInfo.balance_accounts_type != 2 && this.hisPatientInfo.id > 0 && this.hisPatientInfo.in_hospital_status == 1 && this.hisPatientInfo.out_hospital_status == 0)"
101
-
102 101
                        @click="open(2)"
103 102
                        type="primary">出院
104 103
             </el-button>
@@ -129,11 +128,11 @@
129 128
                        type="primary">收费
130 129
             </el-button>
131 130
 
132
-            <el-button v-loading="loadingtwo"
133
-                       size="small"
134
-                       @click="open(3)"
135
-                       type="primary">收费
136
-            </el-button>
131
+<!--            <el-button v-loading="loadingtwo"-->
132
+<!--                       size="small"-->
133
+<!--                       @click="open(3)"-->
134
+<!--                       type="primary">收费-->
135
+<!--            </el-button>-->
137 136
             <el-button size="small" @click="open(4)" type="primary"
138 137
                        v-if="this.activeName == 'third' &&this.hisPatientInfo.id > 0 && this.order.id > 0 &&  this.order.order_status == 2">
139 138
               退费

+ 0 - 1
src/xt_pages/hospitalStation/summaryDetail.vue View File

@@ -63,7 +63,6 @@
63 63
                                 </template>
64 64
                             </el-table-column>
65 65
 
66
-
67 66
                             <el-table-column align="center" prop="name" width="80" label="备注">
68 67
                                 <template slot-scope="scope">
69 68
                                     <!--<el-input v-model="scope.row.remark" readonly></el-input>-->

+ 1 - 1
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/index.vue View File

@@ -14,7 +14,7 @@
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16 16
         <printOne v-if="org_id != 10138 && org_id != 10278 && org_id != 0" :printData="printData" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
17
-        <printTwo v-else :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
17
+<!--        <printTwo v-else :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>-->
18 18
       </div>
19 19
   </div>
20 20
 </template>

+ 1 - 11
src/xt_pages/outpatientDoctorStation/batch_print_treatTemplate/printOne.vue View File

@@ -410,17 +410,7 @@ export default {
410 410
     this.orgname = xtuser.org.org_name
411 411
 
412 412
   },
413
-  watch: {
414
-    // patient_id: function(val) {
415
-    //   console.log('101000010101010', this.patient_id, this.record_date, this.prescription_id)
416
-    //   //    this.getPrescriptionPrint()
417
-    // },
418
-    // ids: function(val) {
419
-    //   this.ids = val
420
-    //   console.log('this.idsids', this.ids)
421
-    //   this.getPrescriptionPrint()
422
-    // }
423
-  }
413
+
424 414
 }
425 415
 </script>
426 416
 

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))