|
@ -58,6 +58,7 @@ |
|
|
:isShowReduceButtonSelection="true" |
|
|
:isShowReduceButtonSelection="true" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@tableSelectionDelete="tableSelectionDelete" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@inputNumberChange="inputNumberChange" |
|
|
@inputNumberChange="inputNumberChange" |
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur"> |
|
|
@tableFormSelectOnBlur="tableFormSelectOnBlur"> |
|
@ -136,7 +137,15 @@ const updataTableColumns = (val) => { |
|
|
tableColumns.value = val |
|
|
tableColumns.value = val |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const clearSearchInput = (formField) => { |
|
|
|
|
|
if(formField == 'costCenterCode'){ |
|
|
|
|
|
formRef.value.formRef.setValues({ |
|
|
|
|
|
costCenterType:'', |
|
|
|
|
|
reasonCodeRequisition:'', |
|
|
|
|
|
projectCode:'', |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
nextTick(async () => { |
|
|
nextTick(async () => { |
|
@ -191,6 +200,28 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
} |
|
|
} |
|
|
if(formField === 'reasonCodeRequisition'){ |
|
|
if(formField === 'reasonCodeRequisition'){ |
|
|
setV['reasonCodeRequisition'] = val[0]['code'] |
|
|
setV['reasonCodeRequisition'] = val[0]['code'] |
|
|
|
|
|
// 项目是否必填 |
|
|
|
|
|
val[0]['isProject']='TRUE' |
|
|
|
|
|
if(UnplannedreceiptRequestMainRules['projectCode']){ |
|
|
|
|
|
UnplannedreceiptRequestMainRules['projectCode'][0].required = val[0]['isProject']=='TRUE' |
|
|
|
|
|
} |
|
|
|
|
|
UnplannedreceiptRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'projectCode') { |
|
|
|
|
|
//项目代码 |
|
|
|
|
|
if(val[0]['isProject']=='TRUE'){ |
|
|
|
|
|
//是-可编辑,可选择 |
|
|
|
|
|
item.componentProps.enterSearch = true |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
}else{ |
|
|
|
|
|
//否-不可编辑,内容为空 |
|
|
|
|
|
setV['projectCode'] = '' |
|
|
|
|
|
item.componentProps.enterSearch = false |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
if(formField === 'projectCode'){ |
|
|
if(formField === 'projectCode'){ |
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|
setV['projectCode'] = val[0]['projectCode'] |
|
|