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
595a4b82
Commit
595a4b82
authored
Jan 10, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
2e72ef25
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
482 additions
and
22 deletions
+482
-22
App.vue
src/App.vue
+31
-0
main.js
src/main.js
+1
-1
index.js
src/router/index.js
+14
-1
mx.vue
src/views/ccgl/kngl/kwtzd/mx.vue
+10
-0
index.vue
src/views/ccgl/kngl/kwtzd/top/index.vue
+40
-20
index.vue
src/views/ccgl/kngl/kwtzdj/index.vue
+99
-0
mx.vue
src/views/ccgl/kngl/kwtzdj/mx.vue
+127
-0
index.vue
src/views/ccgl/kngl/kwtzdj/top/index.vue
+160
-0
No files found.
src/App.vue
0 → 100644
View file @
595a4b82
<
template
>
<div
id=
"app"
>
<router-view
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'App'
,
metaInfo
()
{
return
{
title
:
localStorage
.
getItem
(
'appName'
)
||
this
.
$store
.
state
.
settings
.
dynamicTitle
&&
this
.
$store
.
state
.
settings
.
title
,
titleTemplate
:
title
=>
{
// return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
return
title
}
}
}
}
</
script
>
<
style
>
#app
{
font-family
:
"SimHei"
,
Arial
,
sans-serif
;
}
#app
.sidebar-container
{
width
:
210px
!important
;
}
#app
.main-container
{
margin-left
:
210px
}
</
style
>
src/main.js
View file @
595a4b82
...
@@ -14,7 +14,7 @@ import store from './store'
...
@@ -14,7 +14,7 @@ import store from './store'
import
router
from
'./router'
import
router
from
'./router'
import
plugins
from
'./plugins'
// plugins
import
plugins
from
'./plugins'
// plugins
/* 引入公用主页面 */
/* 引入公用主页面 */
import
{
App
}
from
'common
'
import
App
from
'./App.vue
'
/* 注册common */
/* 注册common */
import
framework
from
"common"
import
framework
from
"common"
...
...
src/router/index.js
View file @
595a4b82
...
@@ -704,6 +704,19 @@ export const powerRoutes = [
...
@@ -704,6 +704,19 @@ export const powerRoutes = [
},
},
name
:
'kwtzd'
,
name
:
'kwtzd'
,
path
:
"kwtzd"
,
path
:
"kwtzd"
,
},
{
component
:
'ccgl/kngl/kwtzdj/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"库位调整登记"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920070700'
,
},
name
:
'kwtzdj'
,
path
:
"kwtzdj"
,
}
}
...
...
src/views/ccgl/kngl/kwtzd/mx.vue
View file @
595a4b82
...
@@ -64,6 +64,16 @@
...
@@ -64,6 +64,16 @@
field
:
"mbkwCode"
,
field
:
"mbkwCode"
,
width
:
120
,
width
:
120
,
},
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/kcgl/kwtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
],
],
...
...
src/views/ccgl/kngl/kwtzd/top/index.vue
View file @
595a4b82
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
template
#
toolbar=
"ctx"
>
<!--
<el-button
@
click=
"doConfirm(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
-->
<el-button
@
click=
"doConfirm(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"cancelConfirm(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
</
template
>
</
template
>
</BasePage>
</BasePage>
...
@@ -105,25 +106,44 @@
...
@@ -105,25 +106,44 @@
}
}
},
},
methods
:
{
methods
:
{
// doConfirm(ctx){
doConfirm
(
ctx
){
// if(ctx.singleItem&&ctx.singleItem.id){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
// this.$confirm('是否确认?', '提示', {
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
// confirmButtonText: '确定',
confirmButtonText
:
'确定'
,
// cancelButtonText: '取消',
cancelButtonText
:
'取消'
,
// type: 'warning'
type
:
'warning'
// }).then(res=>{
}).
then
(
res
=>
{
// this.$post('lxyl/kcgl/zlhbg/doConfirm',{
this
.
$post
(
'wms/kcgl/kwtz/confirm'
,{
// id:ctx.singleItem.id
id
:
ctx
.
singleItem
.
id
// }).then(res=>{
}).
then
(
res
=>
{
// if(res.success){
if
(
res
.
success
){
// ctx.refresh()
ctx
.
refresh
()
// }
}
// })
})
// })
})
// }else{
}
else
{
// this.$warning('请选中一条数据')
this
.
$warning
(
'请选中一条数据'
)
// }
}
// },
},
cancelConfirm
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/kcgl/kwtz/cancelConfirm'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
)
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
}
}
...
...
src/views/ccgl/kngl/kwtzdj/index.vue
0 → 100644
View file @
595a4b82
<
template
>
<div
class=
"outer"
>
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"明细"
name=
"first"
>
<Mx
ref=
"mx"
class=
"full"
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
Top
from
'./top/index.vue'
import
Mx
from
'./mx.vue'
export
default
{
components
:
{
Top
,
Mx
},
data
(){
return
{
activeName
:
'first'
}
},
methods
:
{
topGetRow
(
row
)
{
/* dom赋值*/
let
mid
=
row
.
id
this
.
$refs
.
mx
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
mx
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
false
})
this
.
$refs
.
qd
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
qd
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
false
})
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.outer
{
overflow
:
auto
;
height
:
calc
(
100vh
-
84px
);
width
:
100%
;
.top
{
width
:
100%
;
height
:
45%
;
}
.bottom
{
width
:
100%
;
height
:
55%
;
.left
{
width
:
50%
;
height
:
100%
;
}
.right
{
width
:
50%
;
height
:
100%
;
}
}
}
.higher
{
height
:
140vh
;
}
.flex-column
{
display
:
flex
;
flex-direction
:
column
;
}
::v-deep
.el-tabs__content
{
height
:
calc
(
100%
-
40px
);
}
::v-deep
.el-tabs__nav-scroll
{
padding-left
:
10px
;
}
</
style
>
src/views/ccgl/kngl/kwtzdj/mx.vue
0 → 100644
View file @
595a4b82
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
</
template
>
</BasePage>
</template>
<
script
>
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'wms/kcgl/kwtzdj/query/detail'
,
queryUrl
:
'wms/kcgl/kwtzdj/query/detail'
,
tableTitle
:
[{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
120
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
120
,
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
120
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
120
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
120
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
120
,
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
120
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
120
,
},
// {
// title: "库区",
// field: "kqName",
// width: 120,
// },
// {
// title: "目标库区",
// field: "mbkqName",
// width: 120,
// },
{
title
:
"库位"
,
field
:
"kwCode"
,
width
:
120
,
},
{
title
:
"目标库位"
,
field
:
"mbkwCode"
,
width
:
120
,
},
],
queryParams
:
[],
}
}
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kngl/kwtzdj/top/index.vue
0 → 100644
View file @
595a4b82
<
template
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!--
<el-button
@
click=
"doConfirm(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
true
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/kcgl/kwtzdj'
,
tableTitle
:
[{
title
:
"单据号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"调整单号"
,
field
:
"lydjCode"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"负责人"
,
field
:
"fzrName"
,
width
:
140
},
{
title
:
"维护人"
,
field
:
"whr"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[
{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
6
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'负责人'
,
prop
:
'fzr'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'调整单号'
,
prop
:
'lydjCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
// doConfirm(ctx){
// if(ctx.singleItem&&ctx.singleItem.id){
// this.$confirm('是否确认?', '提示', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// }).then(res=>{
// this.$post('lxyl/kcgl/zlhbg/doConfirm',{
// id:ctx.singleItem.id
// }).then(res=>{
// if(res.success){
// ctx.refresh()
// }
// })
// })
// }else{
// this.$warning('请选中一条数据')
// }
// },
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
}
}
</
script
>
<
style
>
</
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