|
@ -247,22 +247,26 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
if(formField === 'reasonCodeRequisition'){ |
|
|
if(formField === 'reasonCodeRequisition'){ |
|
|
setV['reasonCodeRequisition'] = val[0]['code'] |
|
|
setV['reasonCodeRequisition'] = val[0]['code'] |
|
|
let accountRes = await SubjectAccountApi.getSubjectAccountPage({ |
|
|
// let accountRes = await SubjectAccountApi.getSubjectAccountPage({ |
|
|
pageSize: 20, |
|
|
// pageSize: 20, |
|
|
pageNo: 1, |
|
|
// pageNo: 1, |
|
|
code: val[0]['code'], |
|
|
// code: val[0]['code'], |
|
|
costcentreType: formRef.formModel['costCenterType'], |
|
|
// costcentreType: formRef.formModel['costCenterType'], |
|
|
sort: '', |
|
|
// sort: '', |
|
|
by: 'ASC' |
|
|
// by: 'ASC' |
|
|
}) |
|
|
// }) |
|
|
console.log('UnplannedreceiptRequestMainRules',UnplannedreceiptRequestMainRules) |
|
|
// console.log('UnplannedreceiptRequestMainRules',UnplannedreceiptRequestMainRules) |
|
|
if( UnplannedreceiptRequestMainRules['projectCode']){ |
|
|
// if( UnplannedreceiptRequestMainRules['projectCode']){ |
|
|
UnplannedreceiptRequestMainRules['projectCode'][0]['required'] = false |
|
|
// UnplannedreceiptRequestMainRules['projectCode'][0]['required'] = false |
|
|
if(accountRes&&accountRes.list&&accountRes.list.length>0){ |
|
|
// if(accountRes&&accountRes.list&&accountRes.list.length>0){ |
|
|
if(accountRes.list[0]['isProject']=='TRUE'){ |
|
|
// if(accountRes.list[0]['isProject']=='TRUE'){ |
|
|
UnplannedreceiptRequestMainRules['projectCode'][0]['required'] = true |
|
|
// UnplannedreceiptRequestMainRules['projectCode'][0]['required'] = true |
|
|
} |
|
|
// } |
|
|
} |
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// 项目是否必填 |
|
|
|
|
|
if(UnplannedreceiptRequestMainRules['projectCode']){ |
|
|
|
|
|
UnplannedreceiptRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if(formField === 'projectCode'){ |
|
|
if(formField === 'projectCode'){ |
|
|