Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
73e33a92
Commit
73e33a92
authored
Dec 09, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1209
parent
93d59b73
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
columns.js
src/pages/device/model/columns.js
+2
-2
columns.js
src/pages/device/type/columns.js
+0
-1
index.jsx
src/pages/repair/order/index.jsx
+19
-4
No files found.
src/pages/device/model/columns.js
View file @
73e33a92
...
@@ -8,7 +8,7 @@ function getcolumns(setdrawer) {
...
@@ -8,7 +8,7 @@ function getcolumns(setdrawer) {
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'此项为必填项'
,
message
:
'此项为必填项'
,
},
},
],
],
...
@@ -34,7 +34,7 @@ function getcolumns(setdrawer) {
...
@@ -34,7 +34,7 @@ function getcolumns(setdrawer) {
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
required
:
tru
e
,
required
:
fals
e
,
message
:
'此项为必填项'
,
message
:
'此项为必填项'
,
},
},
],
],
...
...
src/pages/device/type/columns.js
View file @
73e33a92
...
@@ -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
:
[
{
{
...
...
src/pages/repair/order/index.jsx
View file @
73e33a92
...
@@ -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 1
1:07:32
* @Last Modified time: 2022-12-09 1
3: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
.
fault
Type
,
faultType
:
vals
.
fault
SettingId
,
faultName
:
vals
.
fault
Name
,
faultName
:
vals
.
fault
DetailId
,
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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment