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
60cddee0
Commit
60cddee0
authored
Dec 27, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
质量重检测
parent
57e0bd47
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
112 deletions
+148
-112
hz.vue
src/views/ccgl/ckgl/jhd/hz.vue
+27
-17
index.vue
src/views/ccgl/ckgl/jhd/index.vue
+1
-1
index.vue
src/views/ccgl/ckgl/jhd/top/index.vue
+3
-3
tzqd.vue
src/views/ccgl/ckgl/jhd/tzqd.vue
+104
-89
add.vue
src/views/ccgl/zlgl/kccjd/top/add.vue
+1
-1
index.vue
src/views/ccgl/zlgl/kccjd/top/index.vue
+12
-1
No files found.
src/views/ccgl/ckgl/jhd/hz.vue
View file @
60cddee0
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
:config=
"config"
>
<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
>
...
...
@@ -36,8 +36,7 @@
/* 基本配置*/
url
:
'wms/ckgl/llck'
,
queryUrl
:
'wms/ckgl/jhtz/query/jhtzzy'
,
tableTitle
:
[
{
tableTitle
:
[{
title
:
"库位"
,
field
:
"kwName"
,
width
:
100
,
...
...
@@ -47,11 +46,22 @@
field
:
"rqCode"
,
width
:
100
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
,
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/ckgl/jhtz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
],
queryParams
:
[],
...
...
@@ -60,13 +70,13 @@
},
methods
:
{
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
...
...
src/views/ccgl/ckgl/jhd/index.vue
View file @
60cddee0
...
...
@@ -14,7 +14,7 @@
<el-tab-pane
class=
"full"
label=
"拣货清单"
name=
"second"
>
<Qd
ref=
"qd"
class=
"full"
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"拣货
汇总
"
name=
"third"
>
<el-tab-pane
class=
"full"
label=
"拣货
作业
"
name=
"third"
>
<Hz
ref=
"hz"
class=
"full"
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"拣货结果"
name=
"fourth"
>
...
...
src/views/ccgl/ckgl/jhd/top/index.vue
View file @
60cddee0
...
...
@@ -108,7 +108,7 @@
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"span"
:
4
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
...
...
@@ -122,7 +122,7 @@
{
"label"
:
"库区"
,
"prop"
:
"kqid"
,
"span"
:
6
,
"span"
:
4
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
...
...
@@ -138,7 +138,7 @@
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
6
,
span
:
4
,
type
:
'input'
,
value
:
''
}
...
...
src/views/ccgl/ckgl/jhd/tzqd.vue
View file @
60cddee0
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<div
slot=
"form"
>
<div
style=
"height: 50px;width: 100%;display: flex;"
>
<div
class=
"tzqdItem"
>
物料名称:
{{
app
.
singleItem
.
wlxxName
}}
</div>
<div
class=
"tzqdItem"
>
物料编码:
{{
app
.
singleItem
.
wlxxCode
}}
</div>
<div
class=
"tzqdItem"
>
物料规格:
{{
app
.
singleItem
.
wlxxGg
}}
</div>
<div
class=
"tzqdItem"
>
物料批号:
{{
app
.
singleItem
.
wlph
}}
</div>
<div
class=
"tzqdItem"
>
制令号:
{{
app
.
singleItem
.
zlh
}}
</div>
</div>
<div
style=
"display: flex;height: 60vh;"
>
<!-- 左表数据-->
<div
class=
"tzqdLeft"
>
<BasePage
ref=
"basePage"
@
getRow=
'getRow'
:autoQuery=
'false'
:power=
"
{
<BasePage
@
pageQueryFinally
.
once=
'pageQueryFinally'
ref=
"basePage"
@
getRow=
'getRow'
:autoQuery=
'false'
:power=
"
{
add: false,
copy: false,
/* 手动控制删除 */
...
...
@@ -49,6 +67,8 @@
</EditTable>
</div>
</div>
</div>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
...
...
@@ -83,24 +103,7 @@
this
.
$refs
.
basePage
.
queryParams
.
wlph
=
this
.
app
.
singleItem
.
wlph
this
.
$refs
.
basePage
.
refresh
()
/* 清单查询*/
let
params
=
{
zlh
:
this
.
app
.
singleItem
.
zlh
,
wlid
:
wlid
,
wlph
:
this
.
app
.
singleItem
.
wlph
,
mid
:
this
.
app
.
singleItem
.
$id
,
ckid
:
this
.
app
.
singleItem
.
$ckid
}
this
.
$post
(
'wms/ckgl/jhtz/query/jhtzqd'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
res
.
data
.
records
.
forEach
(
item
=>
{
this
.
editTableConfig
[
'editTableData'
].
push
(
_
.
cloneDeep
(
item
))
/* 原始数据保留*/
this
.
original
.
push
(
_
.
cloneDeep
(
item
))
this
.
sljl
[
item
.
packid
]
=
item
.
jhsl
})
}
})
})
...
...
@@ -139,14 +142,9 @@
width
:
130
,
},
{
label
:
'名称'
,
prop
:
'wlxxName'
,
width
:
100
,
},
{
label
:
'物料批号'
,
prop
:
'wlph'
,
width
:
100
,
label
:
"物料批号"
,
prop
:
"wlph"
,
width
:
140
},
{
label
:
'容器'
,
...
...
@@ -173,25 +171,11 @@
/* 基本配置*/
url
:
'lxyl/zlgl/ukcjyd'
,
// url: 'wms/ckgl/jhtz',
queryUrl
:
'wms/common/queryZkPackOrRq'
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
queryUrl
:
'wms/common/query/kcfp'
,
tableTitle
:
[
{
title
:
"数量"
,
field
:
"
packmxS
l"
,
title
:
"
库存
数量"
,
field
:
"
kcs
l"
,
width
:
140
},
{
...
...
@@ -214,7 +198,6 @@
field
:
"packCode"
,
width
:
140
},
{
title
:
"维护人"
,
field
:
"whr"
...
...
@@ -236,6 +219,33 @@
}
},
methods
:
{
pageQueryFinally
(){
/* 只执行意思*/
let
params
=
{
zlh
:
this
.
app
.
singleItem
.
zlh
,
wlid
:
this
.
app
.
singleItem
.
wlid
,
wlph
:
this
.
app
.
singleItem
.
wlph
,
mid
:
this
.
app
.
singleItem
.
$id
,
ckid
:
this
.
app
.
singleItem
.
$ckid
}
this
.
$post
(
'wms/ckgl/jhtz/query/jhtzqd'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
res
.
data
.
records
.
forEach
(
item
=>
{
this
.
editTableConfig
[
'editTableData'
].
push
(
_
.
cloneDeep
(
item
))
/* 原始数据保留*/
this
.
original
.
push
(
_
.
cloneDeep
(
item
))
this
.
sljl
[
item
.
packid
]
=
item
.
jhsl
/* 延迟修改右侧原始数据*/
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
tableData
.
forEach
(
ritem
=>
{
if
(
ritem
.
packid
==
item
.
packid
)
{
/* 减少初始数量*/
ritem
.
kcsl
=
ritem
.
kcsl
-
item
.
jhsl
}
})
})
}
})
},
save
()
{
/* 源数据*/
let
originalMap
=
{}
...
...
@@ -297,7 +307,7 @@
let
slc
=
o
-
n
/* 数量记录为新*/
this
.
sljl
[
item
.
packid
]
=
n
item
.
packmxSl
=
item
.
packmxS
l
+
slc
item
.
kcsl
=
item
.
kcs
l
+
slc
},
getRow
(
val
)
{
...
...
@@ -354,6 +364,11 @@
</
script
>
<
style
scoped
>
.tzqdItem
{
flex
:
1
;
line-height
:
50px
;
font-weight
:
800
;
}
.tzqdLeft
{
width
:
50%
;
height
:
100%
;
...
...
src/views/ccgl/zlgl/kccjd/top/add.vue
View file @
60cddee0
...
...
@@ -128,7 +128,7 @@
save
(){
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
!=
0
){
this
.
$post
(
'lxyl/zlgl/
ukcjyd/add
'
,
list
).
then
(
res
=>
{
this
.
$post
(
'lxyl/zlgl/
kccj/doGenerate
'
,
list
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
...
...
src/views/ccgl/zlgl/kccjd/top/index.vue
View file @
60cddee0
...
...
@@ -6,6 +6,7 @@
</
template
>
<
template
#
toolbar=
"ctx"
>
<el-button
@
click=
"showAdd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
新增
</el-button>
<el-button
@
click=
"cxjyrw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
创建检验任务
</el-button>
</
template
>
...
...
@@ -95,6 +96,16 @@
},
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
cxjyrw
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$post
(
'lxyl/zlgl/kccj/genJyd'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
(
'操作成功'
)){
ctx
.
refresh
()
}
})
}
}
},
components
:
{
...
...
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