baichengfei %!s(int64=5) %!d(string=hai) anos
pai
achega
c760d8a5f2

+ 8 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/paymentinfo/icbclist.vue

@@ -19,8 +19,8 @@
             </el-form-item>
 
             <el-form-item>
-              <el-button type="plain" plain icon="el-icon-search" @click="handleSearch">获取账单</el-button>
-              <el-button type="primary" icon="el-icon-money" @click="handleGetMoneyConfirm">确认收款</el-button>
+              <el-button type="plain" plain icon="el-icon-search" @click="handleSearch" :loading="btnLoading">获取账单</el-button>
+              <el-button type="primary" icon="el-icon-money" @click="handleGetMoneyConfirm" :loading="btnLoading">确认收款</el-button>
               <!--<el-button type="warning" size="mini" icon="el-icon-search" @click="handleCheckBill">对账功能</el-button>-->
             </el-form-item>
           </el-form>
@@ -79,6 +79,7 @@
 
     data () {
       return {
+        btnLoading: false,
         dialogVisible: false,
         delevisble: false,
         // 列表数据
@@ -212,6 +213,7 @@
             cancelButtonText: '取消',
             type: 'warning'
           }).then(() => {
+            this.btnLoading = true
             this.handleGetMoney()
           })
         } else {
@@ -220,9 +222,11 @@
             cancelButtonText: '取消',
             type: 'warning'
           }).then(() => {
+            this.btnLoading = true
             this.handleGetMoney()
           })
         }
+        this.btnLoading = false
       },
       handleGetMoney () {
         let idlist = ''
@@ -292,10 +296,12 @@
       },
 
       handleSearch () {
+        this.btnLoading = true
         this.currentPage = 1
         this.dialogVisible = false
         this.showSupplierInfo()
         this.initDatas()
+        this.btnLoading = false
       },
       showSupplierInfo () {
         apiSupplier.getEntityByCommercialNo(this.searchForm.commercialNo, this.$axios).then(res => {