Bläddra i källkod

企业用户审批按钮loading

baichengfei 5 år sedan
förälder
incheckning
b68b5cfaf5

+ 5 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/companyaudit/index.vue

@@ -338,7 +338,7 @@
                    @click="Auditshow = false">取 消</el-button>
         <el-button type="primary"
                    size="small"
-                   @click="makeSure()">确 定</el-button>
+                   @click="makeSure()" :loading="btnLoading">确 定</el-button>
       </div>
     </el-dialog>
 
@@ -357,6 +357,7 @@ export default {
   name: 'companyaudit',
   data () {
     return {
+      btnLoading: false,
       btntitle: '查看',
       auditBtn: false,
       Auditshow: false,
@@ -538,6 +539,7 @@ export default {
     checkstatus () {
       let _this = this
       const params = _this.shenheForm
+      this.btnLoading = true
       _this.$axios.post('/register/comaudit/', _this.formData, { params })
         .then(res => {
           if (res.data.code === 0) {
@@ -548,7 +550,7 @@ export default {
             // 关闭dialog
             _this.Auditshow = false
             _this.dialogVisible = false
-            this.shenheForm.AuditorRemark = '',
+            this.shenheForm.AuditorRemark = ''
             this.shenheForm.SuccessStatus = 1
             // 更新列表
             _this.initData()
@@ -558,6 +560,7 @@ export default {
               message: res.data.message
             })
           }
+          this.btnLoading = false
         })
         .catch(err => {
           console.error(err)

+ 3 - 2
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -28,10 +28,10 @@
                      v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5" @click="saveinfochange">保存
           </el-button>
           <el-button type="primary" size="mini" style="margin-right: 8px" @click="separateUnitSubmitClick"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 0">提交审核
+            v-if="formData.Id !='' && formData.Status <= 0 && IsCompanyUser == 0">提交审核
           </el-button>
           <el-button type="primary" size="mini" style="margin-right: 8px" @click="comSubmitToSeparateUnitClick"
-            v-if="formData.Id !='' && formData.Status <= 0 && formData.Status != -5 && IsCompanyUser == 1">提交
+            v-if="formData.Id !='' && formData.Status <= 0 && IsCompanyUser == 1">提交
           </el-button>
           <router-link :to="'/oilsupplier/supplierappend/goodslist'">
             <el-button type="primary" size="mini" style="margin-left: 8px">返回</el-button>
@@ -3407,6 +3407,7 @@
           UnitId: this.UnitOrg,
           AuditRemark: this.auditform.AuditRemark
         }
+        console.log('实际的增项申请id', this.dialogFormData.SupplierCertAppendId, this.formData.id)
         api2.companyAuditEntity(this.formData.Id, params, this.$axios).then(res => {
           if (res.data.code === 0) {
             // 保存成功后,初始化数据,变成修改