Browse Source

添加项目部出库入库调拨报废根据自己的项目部节点审批

dev
long 2 years ago
parent
commit
4c053d6c66
  1. 11
      src/views/activiti/form/ProcessMaterialWarehousingForm.vue

11
src/views/activiti/form/ProcessMaterialWarehousingForm.vue

@ -550,6 +550,9 @@
}, },
/*提交申请*/ /*提交申请*/
applySubmit(e) { applySubmit(e) {
//puwwcId
let is_project = sessionStorage.getItem('IS_PROJECT')
let projcet= JSON.parse(is_project)
this.getAllTable().then(tables => { this.getAllTable().then(tables => {
return validateFormAndTables(this.form, tables) return validateFormAndTables(this.form, tables)
}).then(async allValues => { }).then(async allValues => {
@ -558,6 +561,9 @@
} }
let formData = this.classifyIntoFormData(allValues) let formData = this.classifyIntoFormData(allValues)
formData.fileId = getStringArry(formData.fileId) formData.fileId = getStringArry(formData.fileId)
if (projcet.departId){
formData.departCode=projcet.departId
}
for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) { for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) {
if (i == 0) { if (i == 0) {
this.describes = formData.processMaterialWarehousingListList[i].materialName this.describes = formData.processMaterialWarehousingListList[i].materialName
@ -646,6 +652,8 @@
}, },
handleSubmit(e) { handleSubmit(e) {
let is_project=sessionStorage.getItem('IS_PROJECT');
let projcet= JSON.parse(is_project)
this.getAllTable().then(tables => { this.getAllTable().then(tables => {
return validateFormAndTables(this.form, tables) return validateFormAndTables(this.form, tables)
}).then(async allValues => { }).then(async allValues => {
@ -661,6 +669,9 @@
} else {// } else {//
formData.targetLibrary = null formData.targetLibrary = null
} }
if (projcet.departId){
formData.departCode=projcet.departId
}
formData.fileId = getStringArry(formData.fileId) formData.fileId = getStringArry(formData.fileId)
for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) { for (let i = 0; i < formData.processMaterialWarehousingListList.length; i++) {
if (i == 0) { if (i == 0) {

Loading…
Cancel
Save