Browse Source

按钮优化

lining 5 năm trước cách đây
mục cha
commit
c8563d3b6b

+ 7 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/basisdataopera.vue

@@ -498,7 +498,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -532,7 +532,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="分配" :visible.sync="dialogAllocation">
@@ -550,7 +550,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -605,7 +605,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -682,6 +682,7 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
         }
       }
       return {
+        btnloading: false,
         activeName: '0',
         supplierId: '',
         backRemark: '',
@@ -1630,6 +1631,7 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
           SecondAudit: this.fushenauditer,
           ThirdAudit: this.selectDept
         }
+        this.btnloading = true
         api2.auditEntityFir(this.formData.Id, params, this.shenheForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // this.getEntityById()
@@ -1648,6 +1650,7 @@ import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/goodsdataopera.vue

@@ -579,7 +579,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -612,7 +612,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="分配" :visible.sync="dialogAllocation">
@@ -630,7 +630,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -685,7 +685,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -761,6 +761,7 @@
         }
       }
       return {
+        btnloading: false,
         activeName: '0',
         supplierId: '',
         backRemark: '',
@@ -1709,6 +1710,7 @@
           SecondAudit: this.fushenauditer,
           ThirdAudit: this.selectDept
         }
+        this.btnloading = true
         api2.auditEntityFir(this.formData.Id, params, this.shenheForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // this.getEntityById()
@@ -1727,6 +1729,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 4
src/dashoo.cn/frontend_web/src/pages/oilsupplier/addtionaudit/_opera/techdataopera.vue

@@ -485,7 +485,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -517,7 +517,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="分配" :visible.sync="dialogAllocation">
@@ -535,7 +535,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -590,7 +590,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -664,6 +664,7 @@
         }
       }
       return {
+        btnloading: false,
         activeName: '0',
         supplierId: '',
         backRemark: '',
@@ -1633,6 +1634,7 @@
           SecondAudit: this.fushenauditer,
           ThirdAudit: this.selectDept
         }
+        this.btnloading = true
         api2.auditEntityFir(this.formData.Id, params, this.shenheForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // this.getEntityById()
@@ -1651,6 +1653,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/auditoperation.vue

@@ -622,7 +622,7 @@
       </el-form>
       <span style="float: right;margin-top:-10px;">
         <el-button size="small" @click="commitshow = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="btnloading">确 定</el-button>
       </span>
       <br>
     </el-dialog>
@@ -669,7 +669,7 @@
       </el-form>
       <span style="float: right;margin-top:-10px;">
         <el-button size="small" @click="commitshowfen = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="addInfoChangeAudit()">确 定</el-button>
+        <el-button type="primary" size="small" @click="addInfoChangeAudit()" :loading="btnloading">确 定</el-button>
       </span>
       <br>
     </el-dialog>
@@ -711,6 +711,7 @@
     },
     data() {
       return {
+        btnloading: false,
         sizeProject: 10,
         currentItemCount: 0,
         currentPageProject: 1,
@@ -1067,6 +1068,7 @@
         this.shenheForm.FirstAudit = parseInt(this.auditer)
         this.shenheForm.InfoId = parseInt(this.infoId)
         this.shenheForm.SuppId = parseInt(this.SuppId)
+        this.btnloading = true
         api.infoAudit(this.shenheForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -1083,6 +1085,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })
@@ -1669,6 +1672,7 @@
       infoChangeAuditLaw() {
         this.shenheForm.InfoId = parseInt(this.infoId)
         this.shenheForm.SuppId = parseInt(this.SuppId)
+        this.btnloading = true
         api.infoAudit(this.shenheForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -1685,6 +1689,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/infochangech/_opera/operation.vue

@@ -702,7 +702,7 @@
       </el-form>
       <span style="float: right;margin-top:-10px;">
         <el-button size="small" @click="commitshow = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="addInfoChangeAudit()">确 定</el-button>
+        <el-button type="primary" size="small" @click="addInfoChangeAudit()" :loading="btnloading">确 定</el-button>
       </span>
       <br>
     </el-dialog>
@@ -741,7 +741,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="SubpEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
     <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
@@ -902,6 +902,7 @@
         }
       }
       return {
+        btnloading: false,
         lineheightpx: '23',
         IsMust: false,
         Grade: '',
@@ -1467,6 +1468,7 @@
         }
         this.entityForm.auditer = this.UnitOrg
         this.entityForm.MInfoId = this.MInfoId
+        this.btnloading = true
         api.commitAuditEntity(this.supplierId, this.entityForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -1483,6 +1485,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })
@@ -2420,6 +2423,7 @@
         this.entityForm.fushenauditer = this.fushenauditer
         this.entityForm.auditer = this.auditer
         this.entityForm.MInfoId = this.MInfoId
+        this.btnloading = true
         api.commitAuditEntity(this.supplierId, this.entityForm, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -2436,6 +2440,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 4 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/basisedit.vue

@@ -439,7 +439,7 @@
                    @click="dialogVisible = false">取 消</el-button>
         <el-button size="mini"
                    type="primary"
-                   @click="AuditEntity">确定</el-button>
+                   @click="AuditEntity" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
     <el-dialog title="提交"
@@ -578,6 +578,7 @@ export default {
       }
     }
     return {
+      loading: false,
       WorkerTotal: 0,
       allowpre: true,
       totalTab: 3,
@@ -1554,6 +1555,7 @@ export default {
       this.auditform.CertId = this.certId
       this.auditform.SecondAudit = this.fushenauditer
       this.auditform.ThirdAudit = this.selectDept // this.majorDept[this.majorDept.length - 1]
+      this.loading = true
       apiCert.auditEntity(this.certId, this.auditform, this.$axios).then(res => {
         if (res.data.code === 0) {
           // 保存成功后,初始化数据,变成修改
@@ -1570,6 +1572,7 @@ export default {
           })
         }
         this.applyLoading = false
+        this.loading = false
       }).catch(err => {
         console.error(err)
       })

+ 4 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/goodsedit.vue

@@ -449,7 +449,7 @@
                    @click="dialogVisible = false">取 消</el-button>
         <el-button size="mini"
                    type="primary"
-                   @click="AuditEntity">确定</el-button>
+                   @click="AuditEntity" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
     <el-dialog title="提交"
@@ -584,6 +584,7 @@ export default {
       }
     }
     return {
+      loading: false,
       WorkerTotal: 0,
       isInvestigate: false,
       goodsloading: false,
@@ -1720,6 +1721,7 @@ export default {
       this.auditform.CertId = this.certId
       this.auditform.SecondAudit = this.fushenauditer
       this.auditform.ThirdAudit = this.selectDept // this.majorDept[this.majorDept.length - 1]
+      this.loading = true
       apiCert
         .auditEntity(this.certId, this.auditform, this.$axios)
         .then(res => {
@@ -1738,6 +1740,7 @@ export default {
             })
           }
           this.applyLoading = false
+          this.loading = false
         })
         .catch(err => {
           console.error(err)

+ 4 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplier/_opera/techedit.vue

@@ -434,7 +434,7 @@
                    @click="dialogVisible = false">取 消</el-button>
         <el-button size="mini"
                    type="primary"
-                   @click="AuditEntity">确定</el-button>
+                   @click="AuditEntity" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
     <el-dialog title="提交"
@@ -570,6 +570,7 @@ export default {
       }
     }
     return {
+      loading: false,
       WorkerTotal: 0,
       allowpre: true,
       totalTab: 3,
@@ -1552,6 +1553,7 @@ export default {
       this.auditform.CertId = this.certId
       this.auditform.SecondAudit = this.fushenauditer
       this.auditform.ThirdAudit = this.selectDept // this.majorDept[this.majorDept.length - 1]
+      this.loading = true
       apiCert.auditEntity(this.certId, this.auditform, this.$axios).then(res => {
         if (res.data.code === 0) {
           // 保存成功后,初始化数据,变成修改
@@ -1568,6 +1570,7 @@ export default {
           })
         }
         this.applyLoading = false
+        this.loading = false
       }).catch(err => {
         console.error(err)
       })

+ 6 - 8
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -664,7 +664,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="AuditEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -703,7 +703,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="SubpEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -916,6 +916,7 @@
         }
       }
       return {
+        btnloading: false,
         fileList: [],
         myitemsshow: false,
         selectDept: 100000151,
@@ -1621,10 +1622,10 @@
           })
           return
         }
-        this.applyLoading = true
         this.auditform.FirstAuditName = this.UnitOrg
         this.auditform.CertId = this.formData.Id
         this.auditform.TypeCode = '02'
+        this.btnloading = true
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -1640,7 +1641,7 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })
@@ -2655,11 +2656,11 @@
             return
           }
         }
-        this.applyLoading = true
         this.auditform.FirstAuditName = this.auditer
         this.auditform.CertId = this.formData.Id
         this.auditform.SecondAudit = this.fushenauditer
         this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
+        this.btnloading = true
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -2675,7 +2676,6 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
         }).catch(err => {
           console.error(err)
         })
@@ -2689,7 +2689,6 @@
           })
           return
         }
-        this.applyLoading = true
         this.auditform.FirstAuditName = this.auditer
         this.auditform.CertId = this.formData.Id
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
@@ -2707,7 +2706,6 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -908,7 +908,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="AuditEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -947,7 +947,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="SubpEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -1177,6 +1177,7 @@
       }
       return {
         // 456
+        btnloading: false,
         fileList: [],
         myitemsshow: false,
         disabled: false,
@@ -3089,11 +3090,11 @@
             return
           }
         }
-        this.applyLoading = true
         this.auditform.FirstAuditName = this.auditer
         this.auditform.CertId = this.formData.Id
         this.auditform.SecondAudit = this.fushenauditer
         this.auditform.ThirdAudit = this.selectDept
+        this.btnloading = true
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -3109,6 +3110,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })
@@ -3145,10 +3147,10 @@
           })
           return
         }
-        this.applyLoading = true
         this.auditform.FirstAuditName = this.UnitOrg
         this.auditform.CertId = this.formData.Id
         this.auditform.TypeCode = '01'
+        this.btnloading = true
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -3164,7 +3166,7 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
+          this.btnloading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -632,7 +632,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="AuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="AuditEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="AuditEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -671,7 +671,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="ComAuditdialogShow = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="SubpEntity">确定</el-button>
+        <el-button size="mini" type="primary" @click="SubpEntity" :loading="btnloading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -894,6 +894,7 @@
         }
       }
       return {
+        btnloading: false,
         myitemsshow: false,
         disabled: false,
         activeName: '0',
@@ -2563,6 +2564,7 @@
         this.auditform.CertId = this.formData.Id
         this.auditform.SecondAudit = this.fushenauditer
         this.auditform.ThirdAudit = this.selectDept
+        this.btnloading = true
         api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改
@@ -2578,6 +2580,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = false
           this.applyLoading = false
         }).catch(err => {
           console.error(err)
@@ -2615,6 +2618,7 @@
           })
           return
         }
+        this.btnloading = true
         this.applyLoading = true
         this.auditform.FirstAuditName = this.UnitOrg
         this.auditform.CertId = this.formData.Id
@@ -2634,6 +2638,7 @@
               message: res.data.message
             })
           }
+          this.btnloading = true
           this.applyLoading = false
         }).catch(err => {
           console.error(err)

+ 7 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/basisedit.vue

@@ -216,7 +216,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -258,7 +258,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交领导审核" :visible.sync="dialogAllocation">
@@ -281,7 +281,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -336,7 +336,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
     <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
@@ -391,6 +391,7 @@
 
     data() {
       return {
+        loading: false,
         btnstatus: '',
         backRemark: '',
         chooseAuditorVisible: false,
@@ -1052,6 +1053,7 @@
           ThirdAudit: this.selectDept, // this.majorDept[this.majorDept.length - 1],
           AuditRemark: this.auditform.AuditRemark
         }
+        this.loading = true
         apiCert.auditEntityFir(this.certId, audit, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             if (this.btnstatus == '5') {
@@ -1074,7 +1076,7 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
+          this.loading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/goodsedit.vue

@@ -227,7 +227,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -269,7 +269,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交领导审核" :visible.sync="dialogAllocation">
@@ -293,7 +293,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -348,7 +348,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
 
@@ -404,6 +404,7 @@
 
     data() {
       return {
+        loading: false,
         btnstatus: '',
         backRemark: '',
         textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
@@ -1071,6 +1072,7 @@
           ThirdAudit: this.selectDept, // this.majorDept[this.majorDept.length - 1],
           AuditRemark: this.auditform.AuditRemark
         }
+        this.loading = true
         apiCert.auditEntityFir(this.certId, audit, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             if (this.btnstatus == '5') {
@@ -1093,7 +1095,7 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
+          this.loading = false
         }).catch(err => {
           console.error(err)
         })

+ 7 - 5
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplieraudit/_opera/techedit.vue

@@ -214,7 +214,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="审核" :visible.sync="dialogMakeSure2">
@@ -256,7 +256,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogMakeSure2 = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交领导审核" :visible.sync="dialogAllocation">
@@ -279,7 +279,7 @@
       </el-form>
       <div slot="footer" class="dialog-footer" style="margin-top: -25px">
         <el-button size="small" @click="dialogAllocation = false">取 消</el-button>
-        <el-button type="primary" size="small" @click="makeSure()">确 定</el-button>
+        <el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
       </div>
     </el-dialog>
     <el-dialog title="提交初审" :visible.sync="dialogVisible" width="520px">
@@ -334,7 +334,7 @@
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
-        <el-button size="mini" type="primary" @click="makeSure()">确定</el-button>
+        <el-button size="mini" type="primary" @click="makeSure()" :loading="loading">确定</el-button>
       </span>
     </el-dialog>
     <choose-auditor ref="chooseAuditor" @close="setAuditer" @hideChooseAuditer="chooseAuditorVisible=false"
@@ -389,6 +389,7 @@
 
     data() {
       return {
+        loading: false,
         btnstatus: '',
         backRemark: '',
         textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
@@ -1050,6 +1051,7 @@
           ThirdAudit: this.selectDept, // this.majorDept[this.majorDept.length - 1],
           AuditRemark: this.auditform.AuditRemark
         }
+        this.loading = true
         apiCert.auditEntityFir(this.certId, audit, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             if (this.btnstatus == '5') {
@@ -1072,7 +1074,7 @@
               message: res.data.message
             })
           }
-          this.applyLoading = false
+          this.loading = false
         }).catch(err => {
           console.error(err)
         })