陈少旭 8 months ago
parent
commit
c0aeddecbd

+ 12 - 10
src/xt_pages/outpatientCharges/chargeDetailManagement.vue View File

@@ -119,7 +119,7 @@
119 119
 
120 120
                       </el-tab-pane>
121 121
 
122
-                      <charge-month-prescription-table v-if="this.radio == 1"
122
+                      <charge-month-prescription-table v-loading="loading_two" v-if="this.radio == 1"
123 123
                                                        :prescription="curPrescriptions"></charge-month-prescription-table>
124 124
 
125 125
                     </el-tabs>
@@ -232,23 +232,18 @@
232 232
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
233 233
                       <!--<month-prescription-table ref="prescription_tables"-->
234 234
                       <!--:activeType="activeType"  :prescription="curMonthPrescriptions"></month-prescription-table>-->
235
-                      <charge-month-prescription-table v-if="this.radio == 1"
235
+                      <charge-month-prescription-table v-loading="loading_two" v-if="this.radio == 1"
236 236
                                                        :prescription="curMonthPrescriptions"></charge-month-prescription-table>
237 237
 
238
-                      <settle-prescription-table v-if="this.radio == 2"
238
+                      <settle-prescription-table v-loading="loading_two"  v-if="this.radio == 2"
239 239
                                                  :prescription="curMonthPrescriptions"></settle-prescription-table>
240
-
241 240
                     </el-tabs>
242
-
243 241
                   </div>
244 242
                   <div class="costBox">
245 243
                     <span>当前处方总费用:<span style="color:red;">{{ month_total }}元</span></span>
246 244
                     <span>处方总价:<span style="color:red;">{{ all_month_total }}元</span></span>
247
-
248
-
249 245
                   </div>
250 246
                 </div>
251
-
252 247
               </div>
253 248
             </el-tab-pane>
254 249
           </el-tabs>
@@ -306,6 +301,7 @@ export default {
306 301
       dialogVisible:false,
307 302
       charge_type:1,
308 303
       isloading: false,
304
+      loading_two:false,
309 305
       isdisabled: false,
310 306
       register: [
311 307
         { value: 1, label: '门诊' },
@@ -822,7 +818,7 @@ export default {
822 818
           .catch(function(error) {
823 819
           })
824 820
       }
825
-    }, 
821
+    },
826 822
 
827 823
     changePatientInfo() {
828 824
       let params = {
@@ -894,6 +890,7 @@ export default {
894 890
       }
895 891
       getZuoBiaoPatientList(params).then(response => {
896 892
         if (response.data.state == 0) {
893
+
897 894
           this.$message.error(response.data.msg)
898 895
           return false
899 896
         } else {
@@ -1281,18 +1278,23 @@ export default {
1281 1278
         'is_upload': this.radio
1282 1279
       }
1283 1280
       this.loading = true
1281
+      this.loading_two = true
1284 1282
       getZuoBiaoPatientInfo(params).then(response => {
1285 1283
         if (response.data.state == 0) {
1286 1284
           this.loading = false
1285
+          this.loading_two = false
1286
+
1287 1287
           this.$message.error(response.data.msg)
1288 1288
           return false
1289 1289
         } else {
1290
+          this.loading_two = false
1291
+
1292
+          this.loading = false
1290 1293
 
1291 1294
           this.prescriptions = []
1292 1295
           this.month_prescriptions = []
1293 1296
           this.curPrescriptions = {}
1294 1297
           this.curMonthPrescriptions = {}
1295
-          this.loading = false
1296 1298
           this.hisPatientInfo = response.data.data.patient
1297 1299
           this.prescription_info = response.data.data.prescription_info
1298 1300
           this.sick_type = this.prescription_info.sick_type

+ 3 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue View File

@@ -334,7 +334,9 @@
334 334
       },getfapiaonumber(){
335 335
         getfapiaonumber().then((res) => {
336 336
           if (res.data.state == 1) {
337
-            this.form.fapiao_number = res.data.data.fapiao_number;
337
+            if(this.$store.getters.xt_user.org.id != 10644) {
338
+              this.form.fapiao_number = res.data.data.fapiao_number;
339
+            }
338 340
           }
339 341
         })
340 342
       },