Browse Source

用车申请-自动生成单据号

jbb 2 năm trước cách đây
mục cha
commit
b294470bb1
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      src/views/activiti/form/demoForm2.vue

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

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