浏览代码

请假申请-自动生成单据号

jbb 2 年之前
父节点
当前提交
471c9a70fd
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/views/activiti/form/demoForm2.vue

+ 7 - 0
src/views/activiti/form/demoForm2.vue

@@ -1808,6 +1808,13 @@ export default {
                             formData.document_number=res
                         }) 
                     }
+                }
+                if(this.processData.businessTable == 'leave_apply'){//技能博物馆-请假申请-自动生成单据号
+                    if( this.processData.tableId==''|| !this.processData.tableId){
+                         await  this.getAction('/sys/user/getNextNo',{name:' QJSQ'}).then(res => {
+                            formData.document_number=res
+                        }) 
+                    }
                 }
                     this.btndisabled = true
                    await postFormDataAction(url, formData, { jsonContent: jsonPamats })