陈少旭 1 年間 前
コミット
4641b6c887
共有1 個のファイルを変更した14 個の追加1 個の削除を含む
  1. 14 1
      src/xt_pages/outpatientCharges/chargeDetailManagement.vue

+ 14 - 1
src/xt_pages/outpatientCharges/chargeDetailManagement.vue ファイルの表示

@@ -83,6 +83,8 @@
83 83
           <div v-if="this.radio == 1">
84 84
             <el-button
85 85
               size="small"
86
+              v-loading="isloading"
87
+              :disabled="isdisabled"
86 88
               @click="open(1)"
87 89
               type="primary">上传明细
88 90
             </el-button>
@@ -261,6 +263,8 @@ export default {
261 263
   },
262 264
   data() {
263 265
     return {
266
+      isloading:false,
267
+      isdisabled:false,
264 268
       register: [
265 269
         { value: 11, label: '普通门诊' },
266 270
         // { value: 12, label: '门诊挂号' },
@@ -709,6 +713,8 @@ export default {
709 713
 
710 714
           })
711 715
       } else if (index == 1) {
716
+        this.isloading = true
717
+        this.isdisabled = true
712 718
         var that = this
713 719
         if (this.hisPatientInfo.id == 0) {
714 720
           this.$message.error("请选择需要记账的患者")
@@ -736,9 +742,13 @@ export default {
736 742
           .then(function(response) {
737 743
             if (response.data.state == 0) {
738 744
               that.$message.error(response.data.msg)
739
-              that.loadingtwo = false
745
+              that.isloading = false
746
+              that.isdisabled = false
747
+
740 748
               return false
741 749
             } else {
750
+              that.isloading = false
751
+              that.isdisabled = false
742 752
               if (response.data.data.failed_code == -10) {
743 753
                 that.$confirm(response.data.data.msg, '医保错误信息', {
744 754
                   confirmButtonText: '确 定',
@@ -748,7 +758,10 @@ export default {
748 758
                 }).catch(() => {
749 759
                 })
750 760
 
761
+
751 762
               } else {
763
+                that.isloading = false
764
+                that.isdisabled = false
752 765
                 that.radio = 2
753 766
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
754 767
                 that.getPatientList()