Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lxyl-vue
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
李苏
lxyl-vue
Commits
97d1513a
Commit
97d1513a
authored
May 23, 2024
by
周毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改任务界面
parent
b8e84220
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
64 deletions
+136
-64
index.vue
src/views/ccgl/wcsrwgl/lkrw/index.vue
+90
-20
index.vue
src/views/ccgl/wcsrwgl/wcsrw/index.vue
+46
-44
No files found.
src/views/ccgl/wcsrwgl/lkrw/index.vue
View file @
97d1513a
...
...
@@ -33,6 +33,34 @@
saveSelected
:
false
},
config
:
{
cellStyle
({
row
,
column
,
})
{
// 定义样式变量
let
cellStyle
;
switch
(
row
.
zt
)
{
case
'W'
:
cellStyle
=
'color:#dcc40e'
;
break
;
case
'D'
:
cellStyle
=
'color:#11b95c'
;
break
;
case
'C'
:
cellStyle
=
'color:#e6a700'
;
break
;
case
'CF'
:
cellStyle
=
'color:#ff4949'
;
break
;
default
:
cellStyle
=
''
;
}
if
(
column
.
label
)
{
return
cellStyle
}
},
/* 基本配置*/
url
:
'lxyl/wcs/lkrw'
,
tableTitle
:
[{
...
...
@@ -53,8 +81,7 @@
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
width
:
80
},
{
title
:
"任务号"
,
field
:
"djid"
,
...
...
@@ -129,25 +156,40 @@
}
},
{
title
:
"异常消息"
,
field
:
"message"
,
width
:
200
},
{
title
:
"设备"
,
title
:
"巷道"
,
field
:
"hjName"
,
width
:
140
},
{
title
:
"
单据来源
"
,
field
:
"
djly
"
,
title
:
"
业务类型
"
,
field
:
"
ywlx
"
,
"transform"
:
{
"url"
:
"lxyl/wcs/lkrw/init/
djly
"
,
"url"
:
"lxyl/wcs/lkrw/init/
ywlx
"
,
"label"
:
"name"
,
"value"
:
"id"
},
width
:
120
},
{
title
:
"业务单号"
,
field
:
"lydjCode"
,
width
:
140
},
{
title
:
"异常消息"
,
field
:
"message"
,
width
:
200
},
// {
// title: "单据来源",
// field: "djly",
// "transform": {
// "url": "lxyl/wcs/lkrw/init/djly",
// "label": "name",
// "value": "id"
// },
// width: 120
// },
{
title
:
"创建人"
,
field
:
"cjr"
...
...
@@ -160,6 +202,41 @@
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
6
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
7
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'任务号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'业务单号'
,
prop
:
'lydjCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
"巷道"
,
prop
:
"hjid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/wcs/lkrw/init/hj"
,
}
},
],
[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
6
,
...
...
@@ -174,15 +251,8 @@
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/wcs/lkrw/init/
zt
'
src
:
'lxyl/wcs/lkrw/init/
type
'
}
},
{
label
:
'单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
...
...
src/views/ccgl/wcsrwgl/wcsrw/index.vue
View file @
97d1513a
...
...
@@ -46,19 +46,19 @@
cellStyle
=
'color:#dcc40e'
;
break
;
case
'D'
:
cellStyle
=
'color:#
76b82a
'
;
cellStyle
=
'color:#
11b95c
'
;
break
;
case
'C'
:
cellStyle
=
'color:#
60b5ff
'
;
cellStyle
=
'color:#
e6a700
'
;
break
;
case
'CF'
:
cellStyle
=
'color:#
666
'
;
cellStyle
=
'color:#
ff4949
'
;
break
;
default
:
cellStyle
=
''
;
}
if
(
column
.
label
==
"状态"
)
{
if
(
column
.
label
)
{
return
cellStyle
}
...
...
@@ -111,6 +111,14 @@
field
:
"rqCode"
,
width
:
140
,
},
{
title
:
"设备"
,
field
:
"hjName"
,
formatter
(
row
,
b
,
v
)
{
return
row
.
hjName
||
"运输线"
},
width
:
140
},
{
title
:
"开始时间"
,
field
:
"kssj"
,
...
...
@@ -154,10 +162,10 @@
},
{
title
:
"业务类型"
,
field
:
"
djly
"
,
field
:
"
ywlx
"
,
width
:
140
,
transform
:
{
"url"
:
"lxyl/wcs/wcsTask/init/
djly
"
,
"url"
:
"lxyl/wcs/wcsTask/init/
ywlx
"
,
"label"
:
"name"
,
"value"
:
"id"
}
...
...
@@ -187,15 +195,41 @@
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
span
:
6
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
7
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'任务号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'立库任务单号'
,
prop
:
'lydjDjid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
"巷道"
,
prop
:
"deviceid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/wcs/wcsTask/init/hj"
,
}
},
],
[
{
label
:
'任务类型'
,
prop
:
'type'
,
span
:
8
,
span
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
...
...
@@ -209,7 +243,7 @@
{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
8
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
...
...
@@ -219,39 +253,7 @@
"label"
:
"name"
}
}
},
],
[{
label
:
'任务号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
{
"label"
:
"业务类型"
,
"prop"
:
"djly"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/wcs/wcsTask/init/djly"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'业务单号'
,
prop
:
'lydjDjid'
,
span
:
8
,
type
:
'input'
,
value
:
''
},
]
],
...
...
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