Ver código fonte

年审资质

lining 6 anos atrás
pai
commit
e4c028e3a1

+ 8 - 1
src/dashoo.cn/frontend_web/src/pages/oilsupplier/annualaudit/_opera/goodsoperation.vue

@@ -682,7 +682,7 @@
         </el-tab-pane>
 
         <el-tab-pane label="企业资质" :disabled="!certId">
-          <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="false" height="360px" style="margin-top: 20px"></subfile-list>
+          <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="canadd" height="360px" style="margin-top: 20px"></subfile-list>
         </el-tab-pane>
 
         <el-tab-pane label="提交审批">
@@ -966,6 +966,8 @@
         }
       }
       return {
+        canadd: false,
+        newcanadd: false,
         InfoData: [],
         CurrencyOptions: [],
         CompanyTypeOptions: [],
@@ -1429,6 +1431,11 @@
             this.entrydetail.business = this.formannData.Id
             this.entrydetail.instance = this.formannData.WorkflowId
             this.entrydetail.Status = this.formannData.Status
+            console.log(this.Status, 'this.Statusthis.Status')
+            if (parseInt(this.Status) <= 0) {
+              this.canadd = true
+              this.newcanadd = true
+            }
           })
           .catch(err => {
             console.error(err)