Browse Source

森语-质量事故单

jbb 2 years ago
parent
commit
eb371ea0b7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/activiti/form/demoForm2.vue

+ 5 - 2
src/views/activiti/form/demoForm2.vue

@@ -638,9 +638,12 @@ export default {
                              var that = this
                              var that = this
                                setTimeout(function(){
                                setTimeout(function(){
                                if(that.processData.businessTable == 'incident_ticket'){ // 森语-质量事故单-自动生成事故单号
                                if(that.processData.businessTable == 'incident_ticket'){ // 森语-质量事故单-自动生成事故单号
-                                 that.getAction('/sys/user/getNextNo',{name:'accidentCode'}).then(res => {
+                                if( that.processData.tableId==''|| !that.processData.tableId){
+                                   that.getAction('/sys/user/getNextNo',{name:'accidentCode'}).then(res => {
                                         that.$refs.KFB.setData({accident_number:res})
                                         that.$refs.KFB.setData({accident_number:res})
-                                  })
+                                  }) 
+                                }
+                                 
                                 }
                                 }
                              },200)
                              },200)
                            }
                            }