Explorar o código

森语-质量事故单

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
eb371ea0b7
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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
                                setTimeout(function(){
                                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})
-                                  })
+                                  }) 
+                                }
+                                 
                                 }
                              },200)
                            }