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
59c2dc94
Commit
59c2dc94
authored
Aug 28, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增sap库存对比
parent
fbe8af79
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
186 additions
and
1 deletion
+186
-1
AppMain.vue
src/layout/components/AppMain.vue
+4
-0
index.js
src/router/index.js
+14
-1
index.vue
src/views/ccgl/cxfx/sapkcdb/index.vue
+168
-0
No files found.
src/layout/components/AppMain.vue
View file @
59c2dc94
...
...
@@ -33,6 +33,10 @@
},
/* 监听路由*/
$route
(
val
)
{
if
(
val
.
meta
.
noCache
){
this
.
showCache
=
false
return
}
let
name
=
val
.
name
if
(
this
.
addBz
)
{
if
(
this
.
cacheList
.
includes
(
name
))
{
...
...
src/router/index.js
View file @
59c2dc94
...
...
@@ -1206,6 +1206,19 @@ export const powerRoutes = [
},
name
:
'kchzcx'
,
path
:
"kchzcx"
,
},
{
component
:
'ccgl/cxfx/sapkcdb/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"SAP库存对比"
,
"icon"
:
""
,
"noCache"
:
true
,
"link"
:
null
,
"mkid"
:
920191300
,
},
name
:
'sapkcdb'
,
path
:
"sapkcdb"
,
}
]
},
...
...
@@ -1371,7 +1384,7 @@ export const powerRoutes = [
component
:
'template/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"大屏看板
”
"
,
"title"
:
"大屏看板"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
...
...
src/views/ccgl/cxfx/sapkcdb/index.vue
0 → 100644
View file @
59c2dc94
<
template
>
<BasePage
@
pageQueryFinally=
'pageQueryFinally'
:power=
'power'
:fePage=
'true'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
<div
class=
"queryTime"
>
当前数据查询时间:
{{
queryTime
}}
</div>
</
template
>
</BasePage>
</template>
<
script
>
export
default
{
name
:
'sapkcdb'
,
data
()
{
return
{
queryTime
:
'暂无'
,
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
,
},
config
:
{
/* 基本配置*/
url
:
'lxyl/cxfx/sapKcdb'
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
350
},
{
title
:
"工厂"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"库存地点"
,
field
:
"sapCkid"
,
width
:
140
,
transform
:
{
"url"
:
"lxyl/cxfx/sapKcdb/initCk"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"WMS库存总数"
,
field
:
"kcsl "
,
fieldType
:
"float"
},
{
title
:
"SAP库存总数"
,
field
:
"sapKcsl"
,
fieldType
:
"float"
},
{
title
:
"库存差异数量"
,
field
:
"cysl"
,
fieldType
:
"float"
}
],
queryParams
:
[
[{
"label"
:
"工厂"
,
"prop"
:
"hzid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/cxfx/sapKcdb/initGc"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'库存地点'
,
prop
:
'sapCkid'
,
span
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/cxfx/sapKcdb/initCk"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'是否差异'
,
prop
:
'sfcy'
,
span
:
6
,
type
:
'RelSelect'
,
"typeConfig"
:
{
"optionsData"
:
[{
id
:
'Y'
,
name
:
'是'
},
{
id
:
'N'
,
name
:
'否'
}
],
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
},
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
/* 示例*/
pageQueryFinally
(
list
,
res
){
let
serverTime
=
res
.
data
.
serverTime
this
.
queryTime
=
this
.
$moment
(
serverTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
}
},
components
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.queryTime
{
font-size
:
13px
;
color
:
#999
;
float
:
right
;
margin-right
:
30px
;
line-height
:
28px
;
}
</
style
>
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