Commit d47a343e authored by 左玲玲's avatar 左玲玲 😬

1730

parent b674812c
...@@ -59,9 +59,8 @@ function getcolumns(setdrawer) { ...@@ -59,9 +59,8 @@ function getcolumns(setdrawer) {
}, },
], ],
fieldProps: { fieldProps: {
placeholder: '请选择', dropdownMatchSelectWidth: 100
showSearch: true, }
},
}, },
{ {
title: '点检截止日期', title: '点检截止日期',
...@@ -69,7 +68,7 @@ function getcolumns(setdrawer) { ...@@ -69,7 +68,7 @@ function getcolumns(setdrawer) {
key: 'checkCloseDateList', key: 'checkCloseDateList',
valueType: 'dateRange', valueType: 'dateRange',
render: (text, row, _, action) => { render: (text, row, _, action) => {
return <span style={{ color: `${dayjs(row.checkCloseDate).valueOf() < dayjs().valueOf() ? "#f50" : "rgba(0, 0, 0, 0.85)"}` }}>{row.checkCloseDate}</span> return <span style={{ color: `${dayjs(row.checkCloseDate).valueOf() < dayjs().format("YYYY-MM-DD").valueOf() ? "#f50" : "rgba(0, 0, 0, 0.85)"}` }}>{row.checkCloseDate}</span>
} }
}, },
], ],
......
...@@ -214,8 +214,7 @@ function getcolumns(setdrawer) { ...@@ -214,8 +214,7 @@ function getcolumns(setdrawer) {
hideInForm: true, hideInForm: true,
valueType: 'select', valueType: 'select',
fieldProps: { fieldProps: {
placeholder: '请选择', dropdownMatchSelectWidth: 100
showSearch: true,
}, },
options: [ options: [
{ {
......
...@@ -31,9 +31,8 @@ function getcolumns(id) { ...@@ -31,9 +31,8 @@ function getcolumns(id) {
} }
], ],
fieldProps: { fieldProps: {
placeholder: '请选择', dropdownMatchSelectWidth: 100
showSearch: true, }
},
}, },
{ {
"title": "设备型号", "title": "设备型号",
......
...@@ -22,7 +22,7 @@ function procolumns(id) { ...@@ -22,7 +22,7 @@ function procolumns(id) {
}, },
{ {
title: '判断类型', title: '判断类型',
dataIndex: 'judgeType', dataIndex: 'judgeTypeName',
key: 'judgeType', key: 'judgeType',
formItemProps: { rules: [{ required: true, message: '此项为必填项' }] }, formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
valueType: 'select', valueType: 'select',
...@@ -40,6 +40,7 @@ function procolumns(id) { ...@@ -40,6 +40,7 @@ function procolumns(id) {
hideInForm: { judgeType: [1, null, undefined] }, hideInForm: { judgeType: [1, null, undefined] },
valueType: 'digit', valueType: 'digit',
hideInSearch: true, hideInSearch: true,
min: -10000000000000000
}, },
{ {
title: '上限值', title: '上限值',
...@@ -49,6 +50,7 @@ function procolumns(id) { ...@@ -49,6 +50,7 @@ function procolumns(id) {
valueType: 'digit', valueType: 'digit',
hideInForm: { judgeType: [1, null, undefined] }, hideInForm: { judgeType: [1, null, undefined] },
hideInSearch: true, hideInSearch: true,
min: -10000000000000000
}, },
{ {
title: '预计工时', title: '预计工时',
......
import dayjs from "dayjs";
import { doFetch } from '@/utils/doFetch';
function getcolumns(setdrawer) { function getcolumns(setdrawer) {
return [ return [
{ {
...@@ -9,6 +11,36 @@ function getcolumns(setdrawer) { ...@@ -9,6 +11,36 @@ function getcolumns(setdrawer) {
dataIndex: 'taskNo', dataIndex: 'taskNo',
key: 'taskNo', key: 'taskNo',
hideInForm: true, hideInForm: true,
render: (text, row, _, action) => {
return (
<a
onClick={async () => {
let res = await doFetch({ url: "/check/umEquipmentCheckTask/queryDetails", params: { id: row.id } });
if (res.code == "0000") {
const { taskNo, createTime, statusName, planNo, status } = res?.data?.basics;
setdrawer((s) => ({
...s,
open: true,
val: 'detail',
title: '详细信息',
item: {
task: {
taskNo,
createTime,
statusName,
planNo,
status
},
...res?.data
}
}));
}
}}
>
{row?.taskNo}
</a>
);
}
}, },
{ {
title: '设备编号', title: '设备编号',
...@@ -38,6 +70,9 @@ function getcolumns(setdrawer) { ...@@ -38,6 +70,9 @@ function getcolumns(setdrawer) {
value: '2', value: '2',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
{ {
title: '点检截止日期', title: '点检截止日期',
...@@ -45,6 +80,9 @@ function getcolumns(setdrawer) { ...@@ -45,6 +80,9 @@ function getcolumns(setdrawer) {
key: 'checkCloseDateList', key: 'checkCloseDateList',
hideInForm: true, hideInForm: true,
valueType: 'dateRange', valueType: 'dateRange',
render: (text, row, _, action) => {
return <span style={{ color: `${dayjs(row.checkCloseDate).valueOf() < dayjs().format("YYYY-MM-DD").valueOf() ? "#f50" : "rgba(0, 0, 0, 0.85)"}` }}>{row.checkCloseDate}</span>
}
}, },
{ {
title: '接单时间', title: '接单时间',
...@@ -54,7 +92,7 @@ function getcolumns(setdrawer) { ...@@ -54,7 +92,7 @@ function getcolumns(setdrawer) {
hideInSearch: true, hideInSearch: true,
}, },
{ {
title: '点检人', title: '点检人',
dataIndex: 'checkUserName', dataIndex: 'checkUserName',
key: 'checkUserName', key: 'checkUserName',
hideInForm: true, hideInForm: true,
...@@ -77,6 +115,9 @@ function getcolumns(setdrawer) { ...@@ -77,6 +115,9 @@ function getcolumns(setdrawer) {
value: '2', value: '2',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
], ],
pathconfig: { pathconfig: {
...@@ -100,6 +141,36 @@ function getcolumns(setdrawer) { ...@@ -100,6 +141,36 @@ function getcolumns(setdrawer) {
dataIndex: 'taskNo', dataIndex: 'taskNo',
key: 'taskNo', key: 'taskNo',
hideInForm: true, hideInForm: true,
render: (text, row, _, action) => {
return (
<a
onClick={async () => {
let res = await doFetch({ url: "/check/umEquipmentCheckTask/queryDetails", params: { id: row.id } });
if (res.code == "0000") {
const { taskNo, createTime, statusName, planNo, status } = res?.data?.basics;
setdrawer((s) => ({
...s,
open: true,
val: 'detail',
title: '详细信息',
item: {
task: {
taskNo,
createTime,
statusName,
planNo,
status
},
...res?.data
}
}));
}
}}
>
{row?.taskNo}
</a>
);
}
}, },
{ {
title: '设备编号', title: '设备编号',
...@@ -129,6 +200,9 @@ function getcolumns(setdrawer) { ...@@ -129,6 +200,9 @@ function getcolumns(setdrawer) {
value: '2', value: '2',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
{ {
title: '点检截止日期', title: '点检截止日期',
...@@ -136,6 +210,9 @@ function getcolumns(setdrawer) { ...@@ -136,6 +210,9 @@ function getcolumns(setdrawer) {
key: 'checkCloseDateList', key: 'checkCloseDateList',
hideInForm: true, hideInForm: true,
valueType: 'dateRange', valueType: 'dateRange',
render: (text, row, _, action) => {
return <span style={{ color: `${dayjs(row.checkCloseDate).valueOf() < dayjs().format("YYYY-MM-DD").valueOf() ? "#f50" : "rgba(0, 0, 0, 0.85)"}` }}>{row.checkCloseDate}</span>
}
}, },
{ {
title: '接单时间', title: '接单时间',
...@@ -144,7 +221,7 @@ function getcolumns(setdrawer) { ...@@ -144,7 +221,7 @@ function getcolumns(setdrawer) {
hideInForm: true, hideInForm: true,
}, },
{ {
title: '点检人', title: '点检人',
dataIndex: 'checkUserName', dataIndex: 'checkUserName',
key: 'checkUserId', key: 'checkUserId',
hideInSearch: false, hideInSearch: false,
...@@ -154,6 +231,9 @@ function getcolumns(setdrawer) { ...@@ -154,6 +231,9 @@ function getcolumns(setdrawer) {
path: '/auth/sysUser/selection', path: '/auth/sysUser/selection',
params: {}, params: {},
}, },
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
{ {
title: '状态', title: '状态',
...@@ -171,6 +251,9 @@ function getcolumns(setdrawer) { ...@@ -171,6 +251,9 @@ function getcolumns(setdrawer) {
value: '2', value: '2',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
], ],
pathconfig: { pathconfig: {
...@@ -194,6 +277,51 @@ function getcolumns(setdrawer) { ...@@ -194,6 +277,51 @@ function getcolumns(setdrawer) {
dataIndex: 'taskNo', dataIndex: 'taskNo',
key: 'taskNo', key: 'taskNo',
hideInForm: true, hideInForm: true,
render: (text, row, _, action) => {
return (
<a
onClick={async () => {
let res = await doFetch({ url: "/check/umEquipmentCheckTaskHis/queryDetails", params: { id: row.id } });
if (res.code == "0000") {
const { taskNo, createTime, statusName, planNo, endTime, status } = res?.data?.basics;
let newArr = [];
if (row.status == 4) {
newArr = res?.data?.delay?.item?.map(it => {
return {
...it,
result: it.judgeType == 1 ? it.judgeResultQualitative : it.judgeResultRation
}
});
}
setdrawer((s) => ({
...s,
open: true,
val: 'detail',
title: '详细信息',
item: {
task: {
taskNo,
createTime,
statusName,
planNo,
endTime,
status: row.status
},
...res?.data,
delay: res?.data?.delay && {
...res?.data?.delay,
itemlist: newArr
}
}
}));
}
}}
>
{row?.taskNo}
</a>
);
}
}, },
{ {
title: '设备编号', title: '设备编号',
...@@ -223,6 +351,9 @@ function getcolumns(setdrawer) { ...@@ -223,6 +351,9 @@ function getcolumns(setdrawer) {
value: '2', value: '2',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
{ {
title: '点检截止日期', title: '点检截止日期',
...@@ -230,6 +361,9 @@ function getcolumns(setdrawer) { ...@@ -230,6 +361,9 @@ function getcolumns(setdrawer) {
key: 'checkCloseDateList', key: 'checkCloseDateList',
hideInForm: true, hideInForm: true,
valueType: 'dateRange', valueType: 'dateRange',
render: (text, row, _, action) => {
return <span>{row.checkCloseDate}</span>
}
}, },
{ {
title: '接单时间', title: '接单时间',
...@@ -243,9 +377,12 @@ function getcolumns(setdrawer) { ...@@ -243,9 +377,12 @@ function getcolumns(setdrawer) {
key: 'endDateList', key: 'endDateList',
hideInForm: true, hideInForm: true,
valueType: 'dateRange', valueType: 'dateRange',
render: (text, row, _, action) => {
return <span>{row.endTime}</span>
}
}, },
{ {
title: '点检人', title: '点检人',
dataIndex: 'checkUserName', dataIndex: 'checkUserName',
key: 'checkUserId', key: 'checkUserId',
hideInForm: true, hideInForm: true,
...@@ -254,6 +391,9 @@ function getcolumns(setdrawer) { ...@@ -254,6 +391,9 @@ function getcolumns(setdrawer) {
path: '/auth/sysUser/selection', path: '/auth/sysUser/selection',
params: {}, params: {},
}, },
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
{ {
title: '状态', title: '状态',
...@@ -275,6 +415,9 @@ function getcolumns(setdrawer) { ...@@ -275,6 +415,9 @@ function getcolumns(setdrawer) {
value: '5', value: '5',
}, },
], ],
fieldProps: {
dropdownMatchSelectWidth: 100
}
}, },
], ],
pathconfig: { pathconfig: {
......
import * as React from 'react'; import * as React from 'react';
import { useState, useMemo, useRef } from 'react'; import { useState, useMemo, useRef } from 'react';
import { Radio, InputNumber, Input } from 'antd';
import DrawerPro from '@/components/DrawerPro'; import DrawerPro from '@/components/DrawerPro';
import AutoTable from '@/components/AutoTable'; import AutoTable from '@/components/AutoTable';
import AutoTables from '@/components/AutoTable/mtable';
import PremButton from '@/components/PremButton'; import PremButton from '@/components/PremButton';
import getcolumns from './columns'; import getcolumns from './columns';
import { useRequest } from 'ahooks'; import { useRequest } from 'ahooks';
...@@ -13,9 +15,10 @@ function Task(props) { ...@@ -13,9 +15,10 @@ function Task(props) {
const [drawer, setdrawer] = useState({ const [drawer, setdrawer] = useState({
open: false, open: false,
}), }),
[activeTabKey, setactiveTabKey] = useState("1"); [activeTabKey, setactiveTabKey] = useState("1"),
[detailData, cd] = useState({});
const { run, loading } = useRequest(doFetch, { const { run, loading, runAsync } = useRequest(doFetch, {
manual: true, manual: true,
onSuccess: (res, params) => { onSuccess: (res, params) => {
if (res?.code == '0000') { if (res?.code == '0000') {
...@@ -92,20 +95,450 @@ function Task(props) { ...@@ -92,20 +95,450 @@ function Task(props) {
</PremButton> </PremButton>
); );
}; };
const order = (text, row, _, action) => {
return (
<PremButton
pop={{
title: '是否接单?',
okText: '确认',
cancelText: '取消',
onConfirm: async () => {
await runAsync({ url: '/check/umEquipmentCheckTask/meet', params: { id: row?.id } });
},
}}
btn={{
size: 'small',
}}
>
接单
</PremButton>
);
};
const close = (text, row, _, action) => {
return (
<PremButton
pop={{
title: '是否关单?',
okText: '确认',
cancelText: '取消',
onConfirm: async () => {
await runAsync({ url: '/check/umEquipmentCheckTask/shut', params: { id: row?.id } });
},
}}
btn={{
size: 'small',
type: 'danger',
}}
>
关单
</PremButton>
);
};
const finish = (text, row, _, action) => {
return (
<PremButton
btn={{
size: 'small',
onClick: () => {
doFetch({ url: "/check/umEquipmentCheckTask/queryDetails", params: { id: row.id } }).then(res => {
if (res.code == "0000") {
setdrawer((s) => ({
...s,
open: true,
item: {
...res.data?.basics,
...res.data?.meet,
id: row.id
},
title: '点检工单',
val: 'detailaddon',
}));
}
})
},
}}
>
完成点检
</PremButton>
);
};
const detailaddonColumns = useMemo(() => {
if (activeTabKey == 1) {
const columnsc = [
{
title: '点检项目',
dataIndex: 'checkItem',
key: 'checkItem',
hideInForm: true,
},
{
title: '部位',
dataIndex: 'checkPosition',
key: 'checkPosition',
hideInForm: true,
},
{
title: '点检方法',
dataIndex: 'checkWay',
key: 'checkWay',
hideInForm: true,
},
{
title: '结果',
dataIndex: 'result',
key: 'result',
hideInForm: true,
render: (text, row, _, action) => {
return row.judgeType == 1 ?
<Radio.Group onChange={(e) => {
row.result = e.target.value;
}}>
<Radio value={1}>正常</Radio>
<Radio value={2}>异常</Radio>
</Radio.Group>
:
<InputNumber onChange={(value) => {
row.result = value;
}} min={row.lowerLimit} max={row.upperLimit} />
}
},
{
title: '下限值',
dataIndex: 'lowerLimit',
key: 'lowerLimit',
hideInForm: true,
},
{
title: '上限值',
dataIndex: 'upperLimit',
key: 'upperLimit',
hideInForm: true,
},
{
title: '备注',
dataIndex: 'remark',
key: 'remark',
hideInForm: true,
render: (text, row, _, action) => {
return <Input onChange={(e) => {
row.remark = e.target.value;
}} />
}
},
];
return [
{
title: '工单信息',
valueType: 'split',
},
{
title: '点检单号',
dataIndex: 'taskNo',
key: 'taskNo',
},
{
title: '创建时间',
dataIndex: 'createTime',
key: 'createTime',
},
{
title: '工单状态',
dataIndex: 'statusName',
key: 'statusName',
},
{
title: '点检计划单号',
dataIndex: 'planNo',
key: 'planNo',
},
{
title: '设备编号',
dataIndex: 'equipmentNo',
key: 'equipmentNo',
},
{
title: '设备名称',
dataIndex: 'equipmentName',
key: 'equipmentName',
},
{
title: '设备型号',
dataIndex: 'equipmentModelName',
key: 'equipmentModelName',
},
{
title: '点检类型',
dataIndex: 'checkTypeName',
key: 'checkTypeName',
},
{
title: '点检截止日期',
dataIndex: 'checkCloseDate',
key: 'checkCloseDate'
},
{
title: '接单时间',
dataIndex: 'checkStartTime',
key: 'checkStartTime'
},
{
title: '完成点检',
valueType: 'split',
},
{
title: '点检方法',
dataIndex: 'itemList',
key: 'itemList',
columns,
span: 3,
render: (text, row, _, action) => {
return (
<AutoTables
columns={columnsc?.map((it) => ({
...it,
hideInSearch: true,
}))}
dataSource={drawer?.item?.item ?? []}
/>
);
},
},
]
}
}, [drawer?.item, activeTabKey]);
const detailColumns = useMemo(() => {
if (drawer?.val == "detail") {
const columnsc = [
{
title: '点检项目',
dataIndex: 'checkItem',
key: 'checkItem',
hideInForm: true,
},
{
title: '部位',
dataIndex: 'checkPosition',
key: 'checkPosition',
hideInForm: true,
},
{
title: '点检方法',
dataIndex: 'checkWay',
key: 'checkWay',
hideInForm: true,
}
];
const allObj = {
task: [
{
title: '工单信息',
valueType: 'split',
},
{
title: '点检单号',
dataIndex: 'taskNo',
key: 'taskNo',
},
{
title: '创建时间',
dataIndex: 'createTime',
key: 'createTime',
},
{
title: '工单状态',
dataIndex: 'statusName',
key: 'statusName',
},
{
title: '点检计划单号',
dataIndex: 'planNo',
key: 'planNo',
span: activeTabKey == 3 ? 1 : 3,
},
{
title: '关单时间',
dataIndex: 'endTime',
key: 'endTime',
hideInDescriptions: activeTabKey == 3 ? false : true,
},
],
basics: [
{
title: '基础信息',
valueType: 'split',
},
{
title: '设备编号',
dataIndex: 'equipmentNo',
key: 'equipmentNo',
},
{
title: '设备名称',
dataIndex: 'equipmentName',
key: 'equipmentName',
},
{
title: '设备型号',
dataIndex: 'equipmentModelName',
key: 'equipmentModelName',
},
{
title: '点检类型',
dataIndex: 'checkTypeName',
key: 'checkTypeName',
},
{
title: '点检截止日期',
dataIndex: 'checkCloseDate',
key: 'checkCloseDate',
span: 2
},
{
title: '点检项目',
dataIndex: 'itemList',
key: 'itemList',
columns,
span: 3,
render: (text, row, _, action) => {
return (
<AutoTables
columns={columnsc?.map((it) => ({
...it,
hideInSearch: true,
}))}
dataSource={drawer?.item?.basics?.item ?? []}
/>
);
},
hideInDescriptions: drawer?.item?.task?.status != 4 ? false : true
},
],
meet: [
{
title: '接单信息',
valueType: 'split',
},
{
title: '点检人员',
dataIndex: 'checkUserName',
key: 'checkUserName',
},
{
title: '接单时间',
dataIndex: 'checkStartTime',
key: 'checkStartTime',
span: 2
},
],
delay: [
{
title: '完成点检',
valueType: 'split',
},
{
title: '完成点检时间',
dataIndex: 'checkEndTime',
key: 'checkEndTime',
span: 3
},
{
title: '点检项目',
dataIndex: 'itemList',
key: 'itemList',
columns,
span: 3,
render: (text, row, _, action) => {
return (
<AutoTables
columns={columnsc.concat([
{
title: '结果',
dataIndex: 'result',
key: 'result',
hideInForm: true,
},
{
title: '下限值',
dataIndex: 'lowerLimit',
key: 'lowerLimit',
hideInForm: true,
},
{
title: '上限值',
dataIndex: 'upperLimit',
key: 'upperLimit',
hideInForm: true,
},
{
title: '备注',
dataIndex: 'remark',
key: 'remark',
hideInForm: true,
},
])?.map((it) => ({
...it,
hideInSearch: true,
}))}
dataSource={drawer?.item?.delay?.itemlist ?? []}
/>
);
},
hideInDescriptions: drawer?.item?.task?.status == 4 ? false : true
},
],
shut: [
{
title: '关单信息',
valueType: 'split',
},
{
title: '关单人员',
dataIndex: 'shutUserName',
key: 'shutUserName',
},
{
title: '强制关单时间',
dataIndex: 'shutTime',
key: 'shutTime',
},
]
}, newObject = {};
let data = JSON.parse(JSON.stringify(drawer?.item)), objectData = {};
let dataKeys = Object.keys(data), allObjKeys = Object.keys(allObj), newObjKes = allObjKeys.filter(it => dataKeys.indexOf(it) > -1);
newObjKes.map(it => {
newObject[it] = allObj[it];
});
let newColumns = [];
for (let i in newObject) {
newColumns = [...newColumns, ...newObject[i]]
}
for (let i in data) {
objectData = Object.assign(objectData, data[i]);
}
cd(objectData);
return newColumns;
}
}, [drawer?.item, activeTabKey]);
const columns = useMemo(() => { const columns = useMemo(() => {
let defcolumn = getcolumns(setdrawer).filter((it) => it.key == activeTabKey)[0]?.columns; let defcolumn = getcolumns(setdrawer).filter((it) => it.key == activeTabKey)[0]?.columns;
let defpath = getcolumns(setdrawer).filter((it) => it.key == activeTabKey)[0]?.pathconfig ?? {}; let defpath = getcolumns(setdrawer).filter((it) => it.key == activeTabKey)[0]?.pathconfig ?? {};
return defcolumn.concat({ return activeTabKey == 1 ? defcolumn.concat({
title: '操作', title: '操作',
valueType: 'option', valueType: 'option',
width: 150, width: 150,
render: (text, row, _, action) => [ render: (text, row, _, action) => [
defpath?.enabledetail && detail(text, row, _, action), row.status == 1 && order(text, row, _, action),
defpath?.enableedit && edit(text, row, _, action), row.status == 1 && close(text, row, _, action),
defpath?.enabledelete && remove(text, row, _, action), row.status == 2 && finish(text, row, _, action)
], ],
}); }) :
defcolumn;
}, [activeTabKey]); }, [activeTabKey]);
const pathconfig = useMemo(() => { const pathconfig = useMemo(() => {
...@@ -121,7 +554,7 @@ function Task(props) { ...@@ -121,7 +554,7 @@ function Task(props) {
path={pathconfig?.list || '/ngic-auth/sysUser/query/page'} path={pathconfig?.list || '/ngic-auth/sysUser/query/page'}
actionRef={actionRef} actionRef={actionRef}
pageextra={pathconfig?.enableadd ? 'add' : null} pageextra={pathconfig?.enableadd ? 'add' : null}
resizeable={true} resizeable={false}
addconfig={{ addconfig={{
// access: 'sysDepartment_save', // access: 'sysDepartment_save',
btn: { btn: {
...@@ -145,9 +578,9 @@ function Task(props) { ...@@ -145,9 +578,9 @@ function Task(props) {
/> />
<DrawerPro <DrawerPro
fields={columns} fields={drawer?.val == "detailaddon" ? detailaddonColumns : detailColumns}
detailpath={pathconfig?.detail || null} detailpath={pathconfig?.detail || null}
detailData={drawer?.item} detailData={drawer.val == "detail" ? detailData : drawer?.item}
defaultFormValue={drawer?.item} defaultFormValue={drawer?.item}
params={{ id: drawer?.item?.id }} params={{ id: drawer?.item?.id }}
formRef={formRef} formRef={formRef}
...@@ -166,7 +599,36 @@ function Task(props) { ...@@ -166,7 +599,36 @@ function Task(props) {
run({ url: pathconfig?.edit || '/edit', params: { ...vals, id: drawer?.item?.id } }); run({ url: pathconfig?.edit || '/edit', params: { ...vals, id: drawer?.item?.id } });
} }
}} }}
/> >
<div>
<PremButton
btn={{
type: 'primary',
loading,
onClick: () => {
let itemList = drawer?.item?.item?.map(it => {
if (it.judgeType == 1) {
return {
id: it.id,
remark: it.remark,
judgeResultQualitative: it.result
}
} else {
return {
id: it.id,
remark: it.remark,
judgeResultRation: it.result
}
}
});
run({ url: "/check/umEquipmentCheckTask/complele", params: { id: drawer?.item?.id, itemList } })
},
}}
>
提交
</PremButton>
</div>
</DrawerPro>
</div> </div>
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment