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
c6fc5899
Commit
c6fc5899
authored
Dec 26, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拣货单/检验单调整
parent
dfd98b05
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
41 deletions
+66
-41
index.vue
src/views/ccgl/ckgl/jhd/index.vue
+6
-1
jg.vue
src/views/ccgl/ckgl/jhd/jg.vue
+6
-7
mx.vue
src/views/ccgl/ckgl/jhd/mx.vue
+1
-1
qd.vue
src/views/ccgl/ckgl/jhd/qd.vue
+1
-1
tzqd.vue
src/views/ccgl/ckgl/jhd/tzqd.vue
+52
-31
No files found.
src/views/ccgl/ckgl/jhd/index.vue
View file @
c6fc5899
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</div>
</div>
<div
class=
"bottom flex"
>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tabs
@
tab-click=
"handleClick"
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"拣货明细"
name=
"first"
>
<el-tab-pane
class=
"full"
label=
"拣货明细"
name=
"first"
>
<Mx
ref=
"mx"
class=
"full"
/>
<Mx
ref=
"mx"
class=
"full"
/>
</el-tab-pane>
</el-tab-pane>
...
@@ -49,6 +49,11 @@
...
@@ -49,6 +49,11 @@
}
}
},
},
methods
:
{
methods
:
{
handleClick
(
val
){
val
.
$children
[
0
].
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
topGetRow
(
row
)
{
topGetRow
(
row
)
{
/* dom赋值*/
/* dom赋值*/
let
mid
=
row
.
id
let
mid
=
row
.
id
...
...
src/views/ccgl/ckgl/jhd/jg.vue
View file @
c6fc5899
...
@@ -37,19 +37,18 @@
...
@@ -37,19 +37,18 @@
url
:
'wms/ckgl/llck'
,
url
:
'wms/ckgl/llck'
,
queryUrl
:
'wms/ckgl/jhtz/query/jhtzjg'
,
queryUrl
:
'wms/ckgl/jhtz/query/jhtzjg'
,
tableTitle
:
[{
tableTitle
:
[{
title
:
"物料编号"
,
title
:
"物料编码"
,
field
:
"wlcode"
,
field
:
"wlxxCode"
,
fieldType
:
"upper"
,
width
:
140
width
:
140
},
},
{
{
title
:
"物料名称"
,
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
140
width
:
140
},
},
{
{
title
:
"物料规格"
,
title
:
"物料规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
width
:
140
},
},
{
{
...
@@ -71,7 +70,7 @@
...
@@ -71,7 +70,7 @@
{
{
title
:
"唯一码"
,
title
:
"唯一码"
,
field
:
"packCode"
,
field
:
"packCode"
,
width
:
1
0
0
,
width
:
1
4
0
,
},
},
{
{
title
:
"容器"
,
title
:
"容器"
,
...
@@ -80,7 +79,7 @@
...
@@ -80,7 +79,7 @@
},
},
{
{
title
:
"已拣货数量"
,
title
:
"已拣货数量"
,
field
:
"
y
jhsl"
,
field
:
"jhsl"
,
width
:
100
,
width
:
100
,
}
}
],
],
...
...
src/views/ccgl/ckgl/jhd/mx.vue
View file @
c6fc5899
...
@@ -105,7 +105,7 @@
...
@@ -105,7 +105,7 @@
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
ctx
.
singleItem
.
$ckid
=
this
.
$ckid
ctx
.
singleItem
.
$ckid
=
this
.
$ckid
ctx
.
singleItem
.
$id
=
this
.
$id
ctx
.
singleItem
.
$id
=
this
.
$id
ctx
.
DialogWidth
=
'
70
vw'
ctx
.
DialogWidth
=
'
85
vw'
ctx
.
DialogTitle
=
'调整清单'
ctx
.
DialogTitle
=
'调整清单'
ctx
.
showDialog
=
true
ctx
.
showDialog
=
true
}
else
{
}
else
{
...
...
src/views/ccgl/ckgl/jhd/qd.vue
View file @
c6fc5899
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
{
{
title
:
"唯一码"
,
title
:
"唯一码"
,
field
:
"packCode"
,
field
:
"packCode"
,
width
:
1
0
0
,
width
:
1
4
0
,
},
},
{
{
title
:
"容器"
,
title
:
"容器"
,
...
...
src/views/ccgl/ckgl/jhd/tzqd.vue
View file @
c6fc5899
...
@@ -113,7 +113,28 @@
...
@@ -113,7 +113,28 @@
},
},
editTableConfig
:
{
editTableConfig
:
{
editTableTitle
:
[{
editTableTitle
:
[
{
label
:
'拣货数量'
,
prop
:
'jhsl'
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
100
,
blur
:
toFixed
(
null
),
change
:
(
row
)
=>
{
/* row.jhsl=>拣货数量
row.packid=>包装id
*/
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
packid
==
row
.
packid
)
{
/* 判定初始数量*/
this
.
jsbc
(
row
.
jhsl
,
this
.
sljl
[
row
.
packid
],
item
)
}
})
}
},
{
label
:
'唯一码'
,
label
:
'唯一码'
,
prop
:
'packCode'
,
prop
:
'packCode'
,
width
:
130
,
width
:
130
,
...
@@ -129,34 +150,21 @@
...
@@ -129,34 +150,21 @@
width
:
100
,
width
:
100
,
},
},
{
{
label
:
'
库位
'
,
label
:
'
容器
'
,
prop
:
'
kwNam
e'
,
prop
:
'
rqCod
e'
,
width
:
100
,
width
:
100
,
},
},
{
{
label
:
'拣货数量'
,
label
:
'制令号'
,
prop
:
'jhsl'
,
prop
:
'zlh'
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
100
,
width
:
100
,
blur
:
toFixed
(
null
),
},
change
:
(
row
)
=>
{
{
/* row.jhsl=>拣货数量
label
:
'库位'
,
row.packid=>包装id
prop
:
'kwName'
,
*/
width
:
100
,
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
tableData
.
forEach
(
item
=>
{
},
if
(
item
.
packid
==
row
.
packid
)
{
/* 判定初始数量*/
if
(
this
.
sljl
[
row
.
packid
])
{
this
.
jsbc
(
row
.
jhsl
,
this
.
sljl
[
row
.
packid
],
item
)
}
else
{
this
.
sljl
[
row
.
packid
]
=
row
.
jhsl
}
}
})
}
}
],
],
editTableData
:
[]
editTableData
:
[]
},
},
...
@@ -182,6 +190,11 @@
...
@@ -182,6 +190,11 @@
field
:
"wlxxGg"
,
field
:
"wlxxGg"
,
width
:
140
width
:
140
},
},
{
title
:
"数量"
,
field
:
"packmxSl"
,
width
:
140
},
{
{
title
:
"制令号"
,
title
:
"制令号"
,
field
:
"zlh"
,
field
:
"zlh"
,
...
@@ -202,11 +215,7 @@
...
@@ -202,11 +215,7 @@
field
:
"packCode"
,
field
:
"packCode"
,
width
:
140
width
:
140
},
},
{
title
:
"数量"
,
field
:
"packmxSl"
,
width
:
140
},
{
{
title
:
"维护人"
,
title
:
"维护人"
,
field
:
"whr"
field
:
"whr"
...
@@ -256,7 +265,7 @@
...
@@ -256,7 +265,7 @@
this
.
editTableConfig
.
editTableData
.
forEach
(
item
=>
{
this
.
editTableConfig
.
editTableData
.
forEach
(
item
=>
{
if
(
originalList
.
includes
(
item
.
packid
)){
if
(
originalList
.
includes
(
item
.
packid
)){
/* 如果新数据在源数据也有*/
/* 如果新数据在源数据也有*/
if
(
item
.
jhsl
==
originalMap
.
jhsl
){
if
(
item
.
jhsl
==
originalMap
[
item
.
packid
]
){
noeditArr
.
push
(
item
)
noeditArr
.
push
(
item
)
}
else
{
}
else
{
item
.
flag
=
'U'
item
.
flag
=
'U'
...
@@ -269,7 +278,16 @@
...
@@ -269,7 +278,16 @@
}
}
})
})
let
finList
=
[...
delArr
,...
editArr
,...
addArr
,...
noeditArr
]
let
finList
=
[...
delArr
,...
editArr
,...
addArr
,...
noeditArr
]
console
.
log
(
finList
)
/* 开始保存*/
this
.
$post
(
'wms/ckgl/jhtz/jhtzqd/save'
,{
id
:
this
.
app
.
singleItem
.
$id
,
datas
:
finList
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
}
})
},
},
/* 计算保存
/* 计算保存
n为新值
n为新值
...
@@ -314,6 +332,7 @@
...
@@ -314,6 +332,7 @@
this
.
$warning
(
'已存在该数据'
)
this
.
$warning
(
'已存在该数据'
)
}
else
{
}
else
{
this
.
editTableConfig
.
editTableData
.
push
(
_
.
cloneDeep
({
this
.
editTableConfig
.
editTableData
.
push
(
_
.
cloneDeep
({
zlh
:
row
.
zlh
,
packid
:
row
.
packid
,
packid
:
row
.
packid
,
packCode
:
row
.
packCode
,
packCode
:
row
.
packCode
,
wlph
:
row
.
wlph
,
wlph
:
row
.
wlph
,
...
@@ -322,6 +341,8 @@
...
@@ -322,6 +341,8 @@
wlxxName
:
row
.
wlxxName
,
wlxxName
:
row
.
wlxxName
,
kwid
:
row
.
kwid
,
kwid
:
row
.
kwid
,
kwName
:
row
.
kwName
,
kwName
:
row
.
kwName
,
rqCode
:
row
.
rqCode
,
rqid
:
row
.
rqid
,
jhsl
:
0
jhsl
:
0
}))
}))
this
.
sljl
[
row
.
packid
]
=
0
this
.
sljl
[
row
.
packid
]
=
0
...
...
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