陈少旭 9 个月前
父节点
当前提交
c0aeddecbd

+ 12 - 10
src/xt_pages/outpatientCharges/chargeDetailManagement.vue 查看文件

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

+ 3 - 1
src/xt_pages/outpatientCharges/components/chargeDialog.vue 查看文件

334
       },getfapiaonumber(){
334
       },getfapiaonumber(){
335
         getfapiaonumber().then((res) => {
335
         getfapiaonumber().then((res) => {
336
           if (res.data.state == 1) {
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
       },