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
1161dc97
Commit
1161dc97
authored
Jan 02, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库内管理
parent
86ebb4bc
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
608 additions
and
13 deletions
+608
-13
index.js
src/router/index.js
+31
-1
index.vue
src/views/ccgl/kngl/zt/index.vue
+93
-0
mx.vue
src/views/ccgl/kngl/zt/mx.vue
+116
-0
index.vue
src/views/ccgl/kngl/zt/top/index.vue
+149
-0
ztDialog.vue
src/views/ccgl/kngl/zt/top/ztDialog.vue
+151
-0
edit.vue
src/views/jcsj/wl/wlxx/edit.vue
+20
-10
index.vue
src/views/jcsj/wl/wlxx/index.vue
+2
-2
wlxx.js
src/views/jcsj/wl/wlxx/wlxx.js
+46
-0
No files found.
src/router/index.js
View file @
1161dc97
...
@@ -606,8 +606,38 @@ export const powerRoutes = [
...
@@ -606,8 +606,38 @@ export const powerRoutes = [
path
:
"kcyhd"
,
path
:
"kcyhd"
,
}
}
]
]
},
/* 库内管理*/
{
erpComponent
:
false
,
component
:
'template/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"库内管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920070000'
,
},
redirect
:
'zt'
,
name
:
'kngl'
,
path
:
"kngl"
,
children
:
[{
component
:
'ccgl/kngl/zt/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"组托"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920070200
,
},
name
:
'zt'
,
path
:
"zt"
,
}
}
]
]
},
]
}
}
...
...
src/views/ccgl/kngl/zt/index.vue
0 → 100644
View file @
1161dc97
<
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
:
true
})
},
}
}
</
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/zt/mx.vue
0 → 100644
View file @
1161dc97
<
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/rqdj'
,
queryUrl
:
'wms/kcgl/rqdj/query/detail'
,
tableTitle
:
[{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
/* 分割*/
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
140
},
{
title
:
"原托盘数量"
,
field
:
"ytpsl"
,
width
:
140
},
{
title
:
"增加数量"
,
field
:
"zjsl"
,
width
:
140
}
],
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
>
\ No newline at end of file
src/views/ccgl/kngl/zt/top/index.vue
0 → 100644
View file @
1161dc97
<
template
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<ztDialog
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='组托'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"zt(ctx.basePage)"
size=
'mini'
type=
"primary"
>
组托
</el-button>
<el-button
@
click=
"ct(ctx.basePage)"
size=
'mini'
type=
"primary"
>
拆托
</el-button>
</
template
>
</BasePage>
</template>
<
script
>
import
ztDialog
from
'./ztDialog.vue'
;
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/kcgl/rqdj'
,
tableTitle
:
[{
title
:
"类型"
,
field
:
"djlx"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"wms/kcgl/rqdj/init/djlx"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"单据号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
"transform"
:
{
"url"
:
"wms/kcgl/rqdj/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"来源单据号"
,
field
:
"lydjid"
,
width
:
200
,
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
140
,
"transform"
:
{
"url"
:
"wms/kcgl/rqdj/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
12
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'容器'
,
prop
:
'rqCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
zt
(
ctx
){
ctx
.
DialogWidth
=
'70vw'
ctx
.
DialogTitle
=
'组托'
ctx
.
showDialog
=
true
},
ct
(){
},
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
ztDialog
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kngl/zt/top/ztDialog.vue
0 → 100644
View file @
1161dc97
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
ref=
"basePage"
:toolButton=
'false'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
/>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
true
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* Dialog*/
// queryDetail: true,
/* 基本配置*/
url
:
'wms/kcgl/rqdj/queryPackmxWithoutRq'
,
queryUrl
:
'wms/kcgl/rqdj/queryPackmxWithoutRq'
,
tableTitle
:
[{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"数量"
,
field
:
"sl"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"原托盘数量"
,
field
:
"ytpsl"
,
width
:
140
}
],
queryParams
:
[
[{
label
:
'容器'
,
prop
:
'kqid'
,
span
:
6
,
required
:
false
,
type
:
'AuxInput'
,
typeConfig
:
{
give
:(
row
)
=>
{
console
.
log
(
row
)
},
isRequest
:
false
,
code
:
'MATERIAL'
,
label
:
'kqName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
{
label
:
'唯一码'
,
prop
:
'packCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
!=
0
)
{
this
.
$post
(
'lxyl/zlgl/kccj/doGenerate'
,
list
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
}
})
}
else
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/jcsj/wl/wlxx/edit.vue
View file @
1161dc97
<
template
>
<
template
>
<RelDialog
width=
"
8
0%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<RelDialog
width=
"
6
0%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
>
<el-row
:gutter=
"20"
:app=
"this"
>
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
let
colItem
=
{
let
colItem
=
{
label
:
item
.
name
,
label
:
item
.
name
,
prop
:
item
.
field
,
prop
:
item
.
field
,
span
:
6
,
span
:
12
,
type
:
map
[
item
.
type
]
||
'input'
,
type
:
map
[
item
.
type
]
||
'input'
,
}
}
if
(
item
.
show
==
'Y'
){
if
(
item
.
show
==
'Y'
){
...
@@ -47,20 +47,20 @@
...
@@ -47,20 +47,20 @@
editColItemList
:
[{
editColItemList
:
[{
label
:
'物料编码'
,
label
:
'物料编码'
,
prop
:
'code'
,
prop
:
'code'
,
span
:
6
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'物料名称'
,
label
:
'物料名称'
,
prop
:
'name'
,
prop
:
'name'
,
span
:
6
,
span
:
12
,
type
:
'input'
,
type
:
'input'
,
required
:
true
,
required
:
true
,
},
},
{
{
label
:
'物料分类'
,
label
:
'物料分类'
,
prop
:
'flid'
,
prop
:
'flid'
,
span
:
6
,
span
:
12
,
type
:
'RelSelect'
,
type
:
'RelSelect'
,
typeConfig
:
{
typeConfig
:
{
src
:
"jcsj/wlxx/init/wlfl"
src
:
"jcsj/wlxx/init/wlfl"
...
@@ -69,13 +69,13 @@
...
@@ -69,13 +69,13 @@
{
{
label
:
'规格'
,
label
:
'规格'
,
prop
:
'gg'
,
prop
:
'gg'
,
span
:
6
,
span
:
12
,
type
:
'input'
type
:
'input'
},
},
{
{
label
:
'计量单位'
,
label
:
'计量单位'
,
prop
:
'jldw'
,
prop
:
'jldw'
,
span
:
6
,
span
:
12
,
type
:
'RelSelect'
,
type
:
'RelSelect'
,
typeConfig
:
{
typeConfig
:
{
src
:
"jcsj/jldw/query"
src
:
"jcsj/jldw/query"
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
{
{
label
:
'辅计量单位'
,
label
:
'辅计量单位'
,
prop
:
'fjldw'
,
prop
:
'fjldw'
,
span
:
6
,
span
:
12
,
type
:
'RelSelect'
,
type
:
'RelSelect'
,
typeConfig
:
{
typeConfig
:
{
src
:
"jcsj/jldw/query"
src
:
"jcsj/jldw/query"
...
@@ -96,16 +96,26 @@
...
@@ -96,16 +96,26 @@
{
{
label
:
'批号管理'
,
label
:
'批号管理'
,
prop
:
'phgl'
,
prop
:
'phgl'
,
span
:
6
,
span
:
12
,
type
:
'checkbox'
,
type
:
'checkbox'
,
value
:
'N'
value
:
'N'
},
},
{
{
label
:
'库存期限'
,
label
:
'库存期限'
,
prop
:
'kcqx'
,
prop
:
'kcqx'
,
span
:
6
,
span
:
12
,
type
:
'input'
type
:
'input'
},
},
/* 定制物料组*/
{
label
:
'物料组'
,
prop
:
'wlzid'
,
span
:
12
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
"lxyl/jcsj/wlxx/init/wlz"
}
},
{
{
label
:
'备注'
,
label
:
'备注'
,
prop
:
'bz'
,
prop
:
'bz'
,
...
...
src/views/jcsj/wl/wlxx/index.vue
View file @
1161dc97
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
doDelete
,
doDelete
,
apiTreeQuery
,
apiTreeQuery
,
qt
qt
}
from
'
common/src/erpApi/baseData/material/info
.js'
;
}
from
'
./wlxx
.js'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'jcsj/wlxx'
,
baseUrl
:
'
lxyl/
jcsj/wlxx'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
condition
:
''
condition
:
''
...
...
src/views/jcsj/wl/wlxx/wlxx.js
0 → 100644
View file @
1161dc97
import
request
from
'common/src/utils/request'
/* query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlxx/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlxx/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlxx/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlxx/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
qt
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlxx/record/qt'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
apiTreeQuery
(
query
)
{
return
request
({
url
:
'lxyl/jcsj/wlfl/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
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