提交 5a24c0f9 authored 作者: 钟是志's avatar 钟是志

29029 全系统所有审核页面,待处理-操作-为”审核“;已处理-操作-为”详情“(admin,cdzysoft@654321)

上级 10b0c5be
......@@ -39,19 +39,12 @@ class Index extends React.Component {
getFormDetail = (workId) => {
const { dataBaseId } = this.state;
service.getFormDetail(workId)
.then((response) => {
service.getFormDetail(workId).then((response) => {
if (typeof response.unifiedServicePatternModel === 'undefined') {
return false;
}
destructionFunc.destructionGetDetail(response)
.then((x) => {
const {
addFields,
tableInfo,
allConfigSetInfo,
searchCondition
} = x;
destructionFunc.destructionGetDetail(response).then((x) => {
const { addFields, tableInfo, allConfigSetInfo, searchCondition } = x;
this.setState(
{
addFields,
......@@ -68,13 +61,7 @@ class Index extends React.Component {
};
giveDetailColumns = () => {
const {
columns,
workId,
dataBaseId,
addFields,
tableInfo
} = this.state;
const { columns, workId, dataBaseId, addFields, tableInfo } = this.state;
const { showPrint, routerConfig } = this.props;
const process_status = columns.find((x) => {
return x.name === 'process_status';
......@@ -85,9 +72,8 @@ class Index extends React.Component {
};
}
columns.push({
dataIndex: 'operation',
dataIndex: 'operationDiy',
title: '操作',
// fixed: columns.length > 12 ? 'right' : false,
fixed: 'right',
render: (text, record) => {
return (
......@@ -103,7 +89,7 @@ class Index extends React.Component {
showPrint: showPrint || routerConfig.showPrint === '1',
},
}}>
详情
{text || '详情'}
</Link>
);
},
......@@ -115,8 +101,7 @@ class Index extends React.Component {
getColumn = () => {
const { workId } = this.state;
service.getColumns(workId)
.then((response) => {
service.getColumns(workId).then((response) => {
if (!response || !Array.isArray(response)) {
response = [];
}
......@@ -151,8 +136,7 @@ class Index extends React.Component {
if (workId) {
this.getColumn();
} else {
service.getId(pathname)
.then((x) => {
service.getId(pathname).then((x) => {
this.setState(
{
workId: x.workId,
......@@ -181,7 +165,7 @@ class Index extends React.Component {
batchAuditButtonName,
showPrint,
noNeedForm,
tab2Buttons = []
tab2Buttons = [],
} = this.props;
if (!workId) {
return null;
......@@ -207,7 +191,5 @@ class Index extends React.Component {
export default function Pr(props) {
const { routerConfig } = useContext(CreateC);
return (
<Index {...props} routerConfig={routerConfig}/>
);
return <Index {...props} routerConfig={routerConfig} />;
}
......@@ -189,6 +189,11 @@ const getDetailInfo = (id) => {
* */
const getWaitPage = (info) => {
return apiRequest('/UnifiedAppFormApi/getWaitPage', info).then((x) => {
if(x && x.rows){
for(let item of x.rows){
item.operationDiy = '审核';
}
}
return giveValue(x);
});
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论