Commit 73e33a92 authored by TZW's avatar TZW

1209

parent 93d59b73
...@@ -8,7 +8,7 @@ function getcolumns(setdrawer) { ...@@ -8,7 +8,7 @@ function getcolumns(setdrawer) {
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
required: false, required: true,
message: '此项为必填项', message: '此项为必填项',
}, },
], ],
...@@ -34,7 +34,7 @@ function getcolumns(setdrawer) { ...@@ -34,7 +34,7 @@ function getcolumns(setdrawer) {
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
required: true, required: false,
message: '此项为必填项', message: '此项为必填项',
}, },
], ],
......
...@@ -4,7 +4,6 @@ function getcolumns(setdrawer) { ...@@ -4,7 +4,6 @@ function getcolumns(setdrawer) {
title: '设备类型', title: '设备类型',
dataIndex: 'title', dataIndex: 'title',
key: 'title', key: 'title',
search: false,
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,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: 2022-12-09 11:07:32 * @Last Modified time: 2022-12-09 13:50:18
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -388,7 +388,12 @@ function Failure(props) { ...@@ -388,7 +388,12 @@ function Failure(props) {
dataIndex: 'repairType', dataIndex: 'repairType',
key: 'repairType', key: 'repairType',
valueType: 'select', valueType: 'select',
options: { path: '/asset/equipment/selection/user/shop', params: {} }, options: {
path: '/base/sysInitData/queryChildrenSelection',
params: {
parentId: 1,
},
},
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
...@@ -454,10 +459,11 @@ function Failure(props) { ...@@ -454,10 +459,11 @@ function Failure(props) {
<InitForm <InitForm
fields={columns} fields={columns}
onFinish={async (vals) => { onFinish={async (vals) => {
console.log(vals);
let params = { let params = {
repairComplete: { repairComplete: {
faultType: vals.faultType, faultType: vals.faultSettingId,
faultName: vals.faultName, faultName: vals.faultDetailId,
faultCause: vals.faultCause, faultCause: vals.faultCause,
repairType: vals.repairType, repairType: vals.repairType,
isShutdown: vals.isShutdown, isShutdown: vals.isShutdown,
...@@ -585,6 +591,12 @@ function Failure(props) { ...@@ -585,6 +591,12 @@ function Failure(props) {
dataIndex: 'reviewerType', dataIndex: 'reviewerType',
key: 'reviewerType', key: 'reviewerType',
valueType: 'select', valueType: 'select',
options: {
path: '/base/sysInitData/queryChildrenSelection',
params: {
parentId: 2,
},
},
formItemProps: { formItemProps: {
rules: [ rules: [
{ {
...@@ -686,6 +698,7 @@ function Failure(props) { ...@@ -686,6 +698,7 @@ function Failure(props) {
title: '故障描述', title: '故障描述',
dataIndex: 'faultDescription', dataIndex: 'faultDescription',
key: 'faultDescription', key: 'faultDescription',
valueType: 'textarea',
fieldProps: { fieldProps: {
disabled: true, disabled: true,
}, },
...@@ -699,6 +712,7 @@ function Failure(props) { ...@@ -699,6 +712,7 @@ function Failure(props) {
}, },
}, },
{ {
valueType: 'textarea',
title: '故障原因', title: '故障原因',
dataIndex: 'faultDescription', dataIndex: 'faultDescription',
key: 'faultDescription', key: 'faultDescription',
...@@ -715,6 +729,7 @@ function Failure(props) { ...@@ -715,6 +729,7 @@ function Failure(props) {
}, },
}, },
{ {
valueType: 'textarea',
title: '维修内容', title: '维修内容',
dataIndex: 'faultDescription', dataIndex: 'faultDescription',
key: 'faultDescription', key: 'faultDescription',
......
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