diff --git a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue index 6927b8a..87f0735 100644 --- a/src/views/activiti/form/ProcessMaterialWarehousingForm.vue +++ b/src/views/activiti/form/ProcessMaterialWarehousingForm.vue @@ -550,6 +550,9 @@ }, /*提交申请*/ applySubmit(e) { + //puwwcId + let is_project = sessionStorage.getItem('IS_PROJECT') + let projcet= JSON.parse(is_project) this.getAllTable().then(tables => { return validateFormAndTables(this.form, tables) }).then(async allValues => { @@ -558,6 +561,9 @@ } let formData = this.classifyIntoFormData(allValues) formData.fileId = getStringArry(formData.fileId) + if (projcet.departId){ + formData.departCode=projcet.departId + } for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) { if (i == 0) { this.describes = formData.processMaterialWarehousingListList[i].materialName @@ -646,6 +652,8 @@ }, handleSubmit(e) { + let is_project=sessionStorage.getItem('IS_PROJECT'); + let projcet= JSON.parse(is_project) this.getAllTable().then(tables => { return validateFormAndTables(this.form, tables) }).then(async allValues => { @@ -661,6 +669,9 @@ } else {//总库没有目标库 formData.targetLibrary = null } + if (projcet.departId){ + formData.departCode=projcet.departId + } formData.fileId = getStringArry(formData.fileId) for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) { if (i == 0) {