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
6d9425ff
Commit
6d9425ff
authored
Jul 01, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存验货前端调整
parent
8c1c7464
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
214 additions
and
65 deletions
+214
-65
akck.vue
src/views/ccgl/ckgl/lkckrw/top/akck.vue
+32
-36
mx.vue
src/views/ccgl/zlgl/kcyhd/mx.vue
+23
-2
add.vue
src/views/ccgl/zlgl/kcyhd/top/add.vue
+53
-21
index.vue
src/views/ccgl/zlgl/kcyhd/top/index.vue
+24
-6
xzgw.vue
src/views/ccgl/zlgl/kcyhd/top/xzgw.vue
+82
-0
No files found.
src/views/ccgl/ckgl/lkckrw/top/akck.vue
View file @
6d9425ff
...
...
@@ -68,21 +68,24 @@
url
:
'lxyl/ckgl/ckrw/lkck/query/kc'
,
queryUrl
:
'lxyl/ckgl/ckrw/lkck/query/kc'
,
tableTitle
:
[{
title
:
"
库位
"
,
field
:
"
kwCod
e"
,
width
:
1
00
,
title
:
"
仓库
"
,
field
:
"
ckNam
e"
,
width
:
1
40
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
title
:
"库位"
,
field
:
"kwCode"
,
width
:
140
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
180
,
width
:
140
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"物料编码"
,
...
...
@@ -92,49 +95,42 @@
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
1
6
0
width
:
1
4
0
},
{
title
:
"规格"
,
title
:
"
物料
规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
120
,
fieldType
:
'float'
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
1
40
,
width
:
1
80
},
{
title
:
"
计量单位
"
,
field
:
"
jldw
Name"
,
title
:
"
货主
"
,
field
:
"
hz
Name"
,
width
:
140
},
// {
// title: "库位名称",
// field: "wlxxName",
// width: 120,
// },
{
title
:
"
制令号
"
,
field
:
"
zlh
"
,
width
:
1
80
,
title
:
"
数量
"
,
field
:
"
sl
"
,
width
:
1
40
},
// {
// title: "货主",
// field: "hzName",
// width: 180,
// },
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[
...
...
src/views/ccgl/zlgl/kcyhd/mx.vue
View file @
6d9425ff
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
...
...
@@ -35,6 +35,27 @@
url
:
'lxyl/ukcyhd'
,
queryUrl
:
'lxyl/ukcyhd/query/detail'
,
tableTitle
:
[{
title
:
"下架状态"
,
field
:
"zt"
,
width
:
100
,
transform
:
{
"url"
:
"lxyl/wcszy/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"上架状态"
,
field
:
"sjzt"
,
width
:
100
,
transform
:
{
"url"
:
"lxyl/wcszy/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
...
...
src/views/ccgl/zlgl/kcyhd/top/add.vue
View file @
6d9425ff
<
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%;"
<BasePage
:toolButtonConfig=
"
{
showExcel:false,
showPrint:false,
showField:true
}" :changeQueryParams='changeQueryParams' ref="basePage" :toolButton='false' :power='power' class="min_full" style="height: 100%;"
:config="config" />
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
...
...
@@ -51,8 +55,8 @@
/* Dialog*/
// queryDetail: true,
/* 基本配置*/
url
:
'lxyl/
zlgl/kccj/queryZkPackOrRq
'
,
queryUrl
:
'lxyl/
zlgl/kccj/queryZkPackOrRq
'
,
url
:
'lxyl/
ckgl/ckrw/lkck/query/kc
'
,
queryUrl
:
'lxyl/
ckgl/ckrw/lkck/query/kc
'
,
tableTitle
:
[{
title
:
"仓库"
,
field
:
"ckName"
,
...
...
@@ -119,34 +123,54 @@
}
],
queryParams
:
[
[{
[
{
label
:
"仓库"
,
prop
:
"ckid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"lxyl/jcsj/uck/ck/queryCjckid"
,
match
:
{
value
:
"id"
,
label
:
"name"
}
}
},
{
label
:
"巷道"
,
prop
:
"hjid"
,
span
:
6
,
type
:
"RelSelect"
,
value
:
""
,
typeConfig
:
{
src
:
"wms/jcsj/hj/query"
,
}
},
{
label
:
'物料信息'
,
prop
:
'
wlxxInfo
'
,
prop
:
'
condition
'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'
物料批号
'
,
prop
:
'
wlph
Info'
,
label
:
'
库位
'
,
prop
:
'
kw
Info'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
],
[
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/jcsj/uck/ck/queryCjckid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
label
:
'容器信息'
,
prop
:
'rqInfos'
,
span
:
24
,
type
:
'input'
,
value
:
''
},
]
],
...
...
@@ -157,6 +181,14 @@
}
},
methods
:
{
changeQueryParams
(
queryParams
){
let
str
=
queryParams
.
rqInfos
let
trimmedStr
=
str
.
replace
(
/
\s
/g
,
''
);
// 使用正则表达式去除空格
trimmedStr
=
trimmedStr
.
replace
(
/,/
s
,
','
)
let
arr
=
trimmedStr
.
split
(
","
);
queryParams
.
rqInfos
=
arr
console
.
log
(
queryParams
.
rqInfos
)
},
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
!=
0
)
{
...
...
src/views/ccgl/zlgl/kcyhd/top/index.vue
View file @
6d9425ff
<
template
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
ref=
"basePage"
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Add
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
<Add
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='新增'"
/>
<Xzgw
@
saveGw=
'saveGw'
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='选择工位'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
v-if=
"ctx.basePage.powerObj['01']"
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
...
...
@@ -17,6 +18,7 @@
<
script
>
// import Edit from './edit.vue'
import
Add
from
'./add.vue'
import
Xzgw
from
'./xzgw.vue'
export
default
{
data
()
{
return
{
...
...
@@ -103,7 +105,7 @@
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
cxjyrw
(
ctx
)
{
/*
cxjyrw(ctx) {
if (ctx.singleItem && ctx.singleItem.id) {
this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
...
...
@@ -123,10 +125,25 @@
this.$warning('请选中一条数据')
}
}, */
saveGw
(
form
){
let
ctx
=
this
.
$refs
.
basePage
this
.
$post
(
'lxyl/ukcyhd/genXjrw'
,
{
id
:
ctx
.
singleItem
.
id
,
gwid
:
form
.
gwid
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
},
cjxjrw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
ctx
.
DialogTitle
=
'选择工位'
ctx
.
DialogWidth
=
'40vw'
ctx
.
showDialog
=
true
/* this.$confirm('是否继续操作, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
...
...
@@ -139,7 +156,7 @@
ctx.refresh()
}
})
})
})
*/
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
...
...
@@ -147,7 +164,8 @@
}
},
components
:
{
Add
Add
,
Xzgw
// Edit
}
...
...
src/views/ccgl/zlgl/kcyhd/top/xzgw.vue
0 → 100644
View file @
6d9425ff
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList "
:value=
"item.value"
:span=
"item.span"
:label=
"item.label"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
</el-form>
</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
>
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
},
data
()
{
return
{
isLoading
:
false
,
text
:
'加载中'
,
readonly
:
false
,
editColItemList
:
[{
label
:
'工位'
,
prop
:
'gwid'
,
span
:
24
,
required
:
true
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/common/queryXlk'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
]
}
},
methods
:
{
save
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$emit
(
'saveGw'
,
this
.
form
)
this
.
app
.
showDialog
=
false
}
})
}
}
}
</
script
>
<
style
scoped
>
</
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