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
e02a2378
Commit
e02a2378
authored
Dec 05, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20221205
parent
d432285b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
85 additions
and
9 deletions
+85
-9
RepairOrderHandle.jsx
src/pages/repair/platform/RepairOrderHandle.jsx
+62
-1
index.jsx
src/pages/repair/platform/index.jsx
+8
-6
columns.js
src/pages/setting/factory/columns.js
+2
-1
columns.js
src/pages/setting/organization/columns.js
+4
-0
columns.js
src/pages/setting/production/columns.js
+4
-1
columns.js
src/pages/setting/section/columns.js
+2
-0
columns.js
src/pages/setting/workshop/columns.js
+3
-0
No files found.
src/pages/repair/platform/RepairOrderHandle.jsx
View file @
e02a2378
...
@@ -2,7 +2,68 @@
...
@@ -2,7 +2,68 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-05 11:13:26
* @Date: 2022-12-05 11:13:26
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-05 1
1:15:35
* @Last Modified time: 2022-12-05 1
4:29:57
*/
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
InitForm
from
'@/components/InitForm'
;
const
App
=
({
type
,
id
})
=>
{
let
columns
=
[];
if
(
type
==
'jd'
)
{
columns
=
[
{
title
:
'协助维修人员'
,
dataIndex
:
'repairAssistList'
,
key
:
'repairAssistList'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
}
},
},
];
}
else
if
(
type
==
'pd'
)
{
columns
=
[
{
title
:
'维修人员'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysUser/selection'
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
{
title
:
'协助维修人员'
,
dataIndex
:
'faultDescription'
,
key
:
'faultDescription'
,
valueType
:
'select'
,
options
:
{
path
:
'/repair/umRepairOrder/selection'
,
params
:
{
id
}
},
},
];
}
return
(
<>
<
InitForm
fields=
{
columns
}
onFinish=
{
async
(
vals
)
=>
{
console
.
log
(
vals
);
let
params
=
{
...
vals
,
id
,
};
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'操作成功!'
);
setDrawer
((
s
)
=>
({
...
s
,
visible
:
false
,
}));
actionRef
.
current
.
reload
();
}
}
}
/>
</>
);
};
export
default
App
;
src/pages/repair/platform/index.jsx
View file @
e02a2378
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-12-05 10:13:42
* @Date: 2022-12-05 10:13:42
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-05 1
1:09:28
* @Last Modified time: 2022-12-05 1
3:17:26
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton';
...
@@ -13,6 +13,7 @@ import PremButton from '@/components/PremButton';
import
getcolumns
from
'./columns'
;
import
getcolumns
from
'./columns'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
useRequest
}
from
'ahooks'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
OrderHandle
from
'./RepairOrderHandle'
;
function
Platform
(
props
)
{
function
Platform
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
...
@@ -71,7 +72,8 @@ function Platform(props) {
...
@@ -71,7 +72,8 @@ function Platform(props) {
open
:
true
,
open
:
true
,
item
:
row
,
item
:
row
,
title
:
'接单'
,
title
:
'接单'
,
val
:
'add'
,
val
:
'only'
,
type
:
'jd'
,
}));
}));
},
},
}
}
}
}
...
@@ -128,10 +130,10 @@ function Platform(props) {
...
@@ -128,10 +130,10 @@ function Platform(props) {
function
selectType
(
type
)
{
function
selectType
(
type
)
{
switch
(
type
)
{
switch
(
type
)
{
case
'
rec
'
:
case
'
jd
'
:
return
;
return
<
OrderHandle
type=
"jd"
id=
{
drawer
?.
item
.
id
}
/>
;
break
;
case
'pd'
:
return
<
OrderHandle
type=
"pd"
id=
{
drawer
?.
item
.
id
}
/>;
default
:
default
:
break
;
break
;
}
}
...
...
src/pages/setting/factory/columns.js
View file @
e02a2378
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
)
{
return
[
return
[
{
title
:
'工厂编码'
,
dataIndex
:
'factoryCode'
,
key
:
'factoryCode'
},
{
title
:
'工厂编码'
,
dataIndex
:
'factoryCode'
,
key
:
'factoryCode'
,
width
:
200
},
{
{
title
:
'工厂名称'
,
title
:
'工厂名称'
,
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
key
:
'factoryName'
,
key
:
'factoryName'
,
width
:
200
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
},
];
];
...
...
src/pages/setting/organization/columns.js
View file @
e02a2378
...
@@ -3,6 +3,7 @@ function getcolumns(setdrawer) {
...
@@ -3,6 +3,7 @@ function getcolumns(setdrawer) {
{
{
title
:
'组织名称'
,
title
:
'组织名称'
,
dataIndex
:
'title'
,
dataIndex
:
'title'
,
width
:
180
,
key
:
'departmentName'
,
key
:
'departmentName'
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
...
@@ -15,6 +16,7 @@ function getcolumns(setdrawer) {
...
@@ -15,6 +16,7 @@ function getcolumns(setdrawer) {
},
},
{
{
title
:
'组织类型'
,
title
:
'组织类型'
,
width
:
180
,
dataIndex
:
'departmentTypeName'
,
dataIndex
:
'departmentTypeName'
,
key
:
'departmentTypeName'
,
key
:
'departmentTypeName'
,
valueType
:
'input'
,
valueType
:
'input'
,
...
@@ -25,6 +27,7 @@ function getcolumns(setdrawer) {
...
@@ -25,6 +27,7 @@ function getcolumns(setdrawer) {
},
},
{
{
title
:
'组织代码'
,
title
:
'组织代码'
,
width
:
180
,
dataIndex
:
'departmentCode'
,
dataIndex
:
'departmentCode'
,
key
:
'departmentCode'
,
key
:
'departmentCode'
,
formItemProps
:
{
formItemProps
:
{
...
@@ -38,6 +41,7 @@ function getcolumns(setdrawer) {
...
@@ -38,6 +41,7 @@ function getcolumns(setdrawer) {
},
},
{
{
title
:
'上级组织'
,
title
:
'上级组织'
,
width
:
180
,
dataIndex
:
'parentKey'
,
dataIndex
:
'parentKey'
,
key
:
'parentKey'
,
key
:
'parentKey'
,
formItemProps
:
{
formItemProps
:
{
...
...
src/pages/setting/production/columns.js
View file @
e02a2378
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
)
{
return
[
return
[
{
title
:
'产线代码'
,
dataIndex
:
'productionLineCode'
,
key
:
'productionLineCode'
},
{
title
:
'产线代码'
,
dataIndex
:
'productionLineCode'
,
key
:
'productionLineCode'
,
width
:
180
},
{
{
title
:
'产线名称'
,
title
:
'产线名称'
,
dataIndex
:
'productionLineName'
,
dataIndex
:
'productionLineName'
,
key
:
'productionLineName'
,
key
:
'productionLineName'
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
},
{
{
title
:
'所属工厂'
,
title
:
'所属工厂'
,
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
key
:
'factoryId'
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{}
},
options
:
{
path
:
'/auth/sysFactory/getAllFactorySelection'
,
params
:
{}
},
...
@@ -19,6 +21,7 @@ function getcolumns(setdrawer) {
...
@@ -19,6 +21,7 @@ function getcolumns(setdrawer) {
title
:
'所属车间'
,
title
:
'所属车间'
,
dataIndex
:
'shopName'
,
dataIndex
:
'shopName'
,
key
:
'shopId'
,
key
:
'shopId'
,
width
:
180
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
options
:
{
options
:
{
...
...
src/pages/setting/section/columns.js
View file @
e02a2378
...
@@ -10,6 +10,7 @@ function getcolumns(setdrawer) {
...
@@ -10,6 +10,7 @@ function getcolumns(setdrawer) {
{
{
title
:
'所属工厂'
,
title
:
'所属工厂'
,
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
width
:
180
,
key
:
'factoryId'
,
key
:
'factoryId'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
...
@@ -18,6 +19,7 @@ function getcolumns(setdrawer) {
...
@@ -18,6 +19,7 @@ function getcolumns(setdrawer) {
{
{
title
:
'所属车间'
,
title
:
'所属车间'
,
dataIndex
:
'shopName'
,
dataIndex
:
'shopName'
,
width
:
180
,
key
:
'shopId'
,
key
:
'shopId'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
valueType
:
'select'
,
valueType
:
'select'
,
...
...
src/pages/setting/workshop/columns.js
View file @
e02a2378
...
@@ -3,16 +3,19 @@ function getcolumns(setdrawer) {
...
@@ -3,16 +3,19 @@ function getcolumns(setdrawer) {
{
{
title
:
'车间代码'
,
title
:
'车间代码'
,
dataIndex
:
'shopCode'
,
dataIndex
:
'shopCode'
,
width
:
180
,
key
:
'shopCode'
,
key
:
'shopCode'
,
formItemProps
:
{
rules
:
[{
required
:
false
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
false
,
message
:
'此项为必填项'
}]
},
},
},
{
{
title
:
'车间名称'
,
title
:
'车间名称'
,
dataIndex
:
'shopName'
,
dataIndex
:
'shopName'
,
width
:
180
,
key
:
'shopName'
,
key
:
'shopName'
,
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
formItemProps
:
{
rules
:
[{
required
:
true
,
message
:
'此项为必填项'
}]
},
},
},
{
{
width
:
180
,
title
:
'所属工厂'
,
title
:
'所属工厂'
,
dataIndex
:
'factoryName'
,
dataIndex
:
'factoryName'
,
key
:
'factoryId'
,
key
:
'factoryId'
,
...
...
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