Browse Source

提交代码

陈少旭 1 year ago
parent
commit
4641b6c887
1 changed files with 14 additions and 1 deletions
  1. 14 1
      src/xt_pages/outpatientCharges/chargeDetailManagement.vue

+ 14 - 1
src/xt_pages/outpatientCharges/chargeDetailManagement.vue View File

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