|
|
@ -74,19 +74,28 @@ const Rest = (props) => { |
|
|
|
render: (text, record, index) => { |
|
|
|
return record?.pomsNeedData?.title?.value || '' |
|
|
|
} |
|
|
|
}, { |
|
|
|
title: '关联项目', |
|
|
|
}, |
|
|
|
// { |
|
|
|
// title: '关联项目', |
|
|
|
// dataIndex: 'pomsProject', |
|
|
|
// render: (text, record, index) => { |
|
|
|
// const pomsProjectId = record?.pomsNeedData?.pomsProjectId?.value |
|
|
|
// if (pomsProjectId) { |
|
|
|
// const corProject = pomsProjectBasicAll.find(p => p.value == pomsProjectId) |
|
|
|
// return corProject?.label || '' |
|
|
|
// } else { |
|
|
|
// return '' |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }, |
|
|
|
{ |
|
|
|
title: '项目名称', |
|
|
|
dataIndex: 'pomsProject', |
|
|
|
render: (text, record, index) => { |
|
|
|
const pomsProjectId = record?.pomsNeedData?.pomsProjectId?.value |
|
|
|
if (pomsProjectId) { |
|
|
|
const corProject = pomsProjectBasicAll.find(p => p.value == pomsProjectId) |
|
|
|
return corProject?.label || '' |
|
|
|
} else { |
|
|
|
return '' |
|
|
|
} |
|
|
|
return record?.pomsNeedData?.projectName?.value || '' |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '申请人', |
|
|
|
dataIndex: 'applyerName', |
|
|
|
}, { |
|
|
@ -132,7 +141,7 @@ const Rest = (props) => { |
|
|
|
layout="horizontal" |
|
|
|
style={{ position: "relative", width: "100%", flex: 1 }} |
|
|
|
onSubmit={(values) => { |
|
|
|
if (values?.applyTimes?.length) { |
|
|
|
if (values?.applyTimes?.length) { |
|
|
|
values.applyTimes = [moment(values?.applyTimes[0]).format('YYYY-MM-DD HH:mm:ss'), moment(values?.applyTimes[1]).endOf('day').format('YYYY-MM-DD HH:mm:ss')] |
|
|
|
} |
|
|
|
backlogData({ ...values, limit: 10, page: 0 }) |
|
|
|