Commit 72fc86d5 authored by TZW's avatar TZW

点检计划

parent fd466937
...@@ -140,10 +140,7 @@ function Order(props) { ...@@ -140,10 +140,7 @@ function Order(props) {
title: '操作', title: '操作',
valueType: 'option', valueType: 'option',
width: 120, width: 120,
render: (text, row, _, action) => [ render: (text, row, _, action) => [order(text, row, _, action), close(text, row, _, action)],
order(text, row, _, action),
close(text, row, _, action)
],
}); });
}, []); }, []);
...@@ -168,7 +165,7 @@ function Order(props) { ...@@ -168,7 +165,7 @@ function Order(props) {
hideInForm: true, hideInForm: true,
}, },
]; ];
if (drawer?.val == "detail") { if (drawer?.val == 'detail') {
return [ return [
{ {
title: '计划信息', title: '计划信息',
...@@ -222,7 +219,7 @@ function Order(props) { ...@@ -222,7 +219,7 @@ function Order(props) {
title: '点检截止日期', title: '点检截止日期',
dataIndex: 'checkCloseDate', dataIndex: 'checkCloseDate',
key: 'checkCloseDate', key: 'checkCloseDate',
span: 2 span: 2,
}, },
{ {
title: '点检项目', title: '点检项目',
...@@ -245,15 +242,15 @@ function Order(props) { ...@@ -245,15 +242,15 @@ function Order(props) {
/> />
); );
}, },
} },
] ];
} }
}, [drawer?.val, drawer?.item?.id]); }, [drawer?.val, drawer?.item?.id]);
return ( return (
<div style={{ position: 'relative' }}> <div style={{ position: 'relative' }}>
<AutoTable <AutoTable
pagetitle="点检接单" pagetitle={<h3 className="page-title">点检接单</h3>}
columns={columns} columns={columns}
actionRef={actionRef} actionRef={actionRef}
path={pathconfig?.list || '/ngic-auth/sysUser/query/page'} path={pathconfig?.list || '/ngic-auth/sysUser/query/page'}
...@@ -277,7 +274,7 @@ function Order(props) { ...@@ -277,7 +274,7 @@ function Order(props) {
/> />
<DrawerPro <DrawerPro
fields={drawer.val == "detail" ? detailsColumns : columns} fields={drawer.val == 'detail' ? detailsColumns : columns}
params={{ id: drawer?.item?.id }} params={{ id: drawer?.item?.id }}
formRef={formRef} formRef={formRef}
placement="right" placement="right"
...@@ -303,4 +300,4 @@ function Order(props) { ...@@ -303,4 +300,4 @@ function Order(props) {
); );
} }
export default Order; export default Order;
\ No newline at end of file
This diff is collapsed.
...@@ -38,6 +38,7 @@ function getcolumns(id) { ...@@ -38,6 +38,7 @@ function getcolumns(id) {
title: '设备型号', title: '设备型号',
dataIndex: 'equipmentModelName', dataIndex: 'equipmentModelName',
key: 'equipmentModelId', key: 'equipmentModelId',
hideInSearch: true,
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
...@@ -60,6 +61,30 @@ function getcolumns(id) { ...@@ -60,6 +61,30 @@ function getcolumns(id) {
showSearch: true, showSearch: true,
}, },
}, },
{
title: '设备型号',
dataIndex: 'equipmentModelName',
key: 'equipmentModelId',
hideInForm: true,
hideInTable: true,
formItemProps: {
rules: [
{
required: true,
message: '此项为必填项',
},
],
},
valueType: 'select',
mode: 'radio',
options: {
path: '/asset/equipmentModel/query/selection',
},
fieldProps: {
placeholder: '请选择',
showSearch: true,
},
},
{ {
title: '备注', title: '备注',
dataIndex: 'remark', dataIndex: 'remark',
......
...@@ -135,7 +135,7 @@ function Standard(props) { ...@@ -135,7 +135,7 @@ function Standard(props) {
return ( return (
<div style={{ position: 'relative' }}> <div style={{ position: 'relative' }}>
<AutoTable <AutoTable
pagetitle=" 点检标准" pagetitle={<h3 className="page-title">点检标准</h3>}
columns={columns} columns={columns}
actionRef={actionRef} actionRef={actionRef}
path={pathconfig?.list || '/ngic-auth/sysUser/query/page'} path={pathconfig?.list || '/ngic-auth/sysUser/query/page'}
......
This diff is collapsed.
...@@ -40,6 +40,7 @@ function getcolumns(equipmentModelId) { ...@@ -40,6 +40,7 @@ function getcolumns(equipmentModelId) {
dataIndex: 'equipmentModelName', dataIndex: 'equipmentModelName',
key: 'equipmentModelId', key: 'equipmentModelId',
valueType: 'select', valueType: 'select',
hideInSearch: true,
fieldProps: { fieldProps: {
showSearch: true, showSearch: true,
}, },
...@@ -55,13 +56,36 @@ function getcolumns(equipmentModelId) { ...@@ -55,13 +56,36 @@ function getcolumns(equipmentModelId) {
options: { options: {
path: '/maintain/umMaintainStandard/selected/queryList', path: '/maintain/umMaintainStandard/selected/queryList',
linkParams: { linkParams: {
maintainType: 'maintainType', maintainType: '',
}, },
extraParams: { extraParams: {
equipmentModelId, equipmentModelId,
}, },
}, },
}, },
{
title: '设备型号',
dataIndex: 'equipmentModelName',
key: 'equipmentModelId',
hideInForm: true,
hideInTable: true,
valueType: 'select',
fieldProps: {
showSearch: true,
},
formItemProps: {
rules: [
{
required: true,
message: '此项为必填项',
},
],
},
mode: 'radio',
options: {
path: '/asset/equipmentModel/query/selection',
},
},
{ {
title: '备注', title: '备注',
dataIndex: 'remark', dataIndex: 'remark',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-08 11:45:14 * @Last Modified time: 2023-02-08 14:50:40
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -18,8 +18,9 @@ import Addform from '@/components/Addform'; ...@@ -18,8 +18,9 @@ import Addform from '@/components/Addform';
import { Menu, Dropdown, Button, message } from 'antd'; import { Menu, Dropdown, Button, message } from 'antd';
import InitForm from '@/components/InitForm'; import InitForm from '@/components/InitForm';
import Detail from '@/components/RepaireDetail/Detail'; import Detail from '@/components/RepaireDetail/Detail';
import { useModel } from '@umijs/max';
function Failure(props) { function Failure(props) {
const { initialState, setInitialState } = useModel('@@initialState');
const actionRef = useRef(), const actionRef = useRef(),
containderef = useRef(), containderef = useRef(),
formRef = useRef(); formRef = useRef();
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03 * @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2023-02-08 13:30:00 * @Last Modified time: 2023-02-08 14:50:08
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -19,8 +19,9 @@ import { Menu, Dropdown, Button, message } from 'antd'; ...@@ -19,8 +19,9 @@ import { Menu, Dropdown, Button, message } from 'antd';
import InitForm from '@/components/InitForm'; import InitForm from '@/components/InitForm';
import Detail from '@/components/RepaireDetail/Detail'; import Detail from '@/components/RepaireDetail/Detail';
import OrderHandle from '../platform/RepairOrderHandle'; import OrderHandle from '../platform/RepairOrderHandle';
import { useModel } from '@umijs/max';
function Failure(props) { function Failure(props) {
const { initialState, setInitialState } = useModel('@@initialState');
const actionRef = useRef(), const actionRef = useRef(),
containderef = useRef(), containderef = useRef(),
formRef = useRef(); formRef = useRef();
......
...@@ -107,6 +107,35 @@ function getcolumns(changeState) { ...@@ -107,6 +107,35 @@ function getcolumns(changeState) {
title: '状态', title: '状态',
dataIndex: 'statusName', dataIndex: 'statusName',
key: 'status', key: 'status',
hideInSearch: true,
hideInTable: true,
hideInForm: true,
valueType: 'select',
mode: 'radio',
options: [
{
label: '启用',
value: 1,
},
{
label: '停用',
value: 2,
},
],
formItemProps: {
rules: [
{
required: true,
message: '此项为必填项',
},
],
},
},
{
title: '状态',
dataIndex: 'statusName',
key: 'status',
hideInDescriptions: true,
valueType: 'select', valueType: 'select',
mode: 'radio', mode: 'radio',
options: [ options: [
...@@ -140,10 +169,12 @@ function getcolumns(changeState) { ...@@ -140,10 +169,12 @@ function getcolumns(changeState) {
); );
}, },
}, },
{ {
title: '联系信息', title: '联系信息',
valueType: 'formList', valueType: 'formList',
dataIndex: 'userList', dataIndex: 'userList',
span: 3,
colProps: { colProps: {
xs: 24, xs: 24,
sm: 24, sm: 24,
......
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