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
d863d867
Commit
d863d867
authored
May 08, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拣货按照出库开
parent
921f3472
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
148 additions
and
8 deletions
+148
-8
index.vue
src/views/ccgl/ckgl/jhd/top/ackdk/index.vue
+42
-4
jhr.vue
src/views/ccgl/ckgl/jhd/top/ackdk/jhr.vue
+94
-0
rkqd.vue
src/views/ccgl/ckgl/jhd/top/ackdk/rkqd.vue
+11
-3
index.vue
src/views/ccgl/ckgl/jhd/top/index.vue
+1
-1
No files found.
src/views/ccgl/ckgl/jhd/top/ackdk/index.vue
View file @
d863d867
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 78vh;"
>
<div
slot=
"form"
style=
"display: flex;height: 74vh;"
>
<Jhr
@
save=
'finSave'
:app=
'this'
v-if=
"showDialog"
/>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"出库单"
name=
"first"
>
...
...
@@ -23,10 +25,12 @@
<
script
>
import
Rkd
from
'./rkd.vue'
import
Rkqd
from
'./rkqd.vue'
import
Jhr
from
'./jhr.vue'
export
default
{
components
:
{
Rkd
,
Rkqd
Rkqd
,
Jhr
},
props
:
{
app
:
{
...
...
@@ -42,15 +46,49 @@
},
data
()
{
return
{
showDialog
:
false
,
DialogTitle
:
'选择拣货人'
,
DialogWidth
:
'30vw'
,
row
:{},
activeName
:
'first'
}
},
methods
:
{
finSave
(
form
){
let
map
=
this
.
$refs
.
rkqd
.
detailList
let
keyList
=
Object
.
keys
(
map
)
let
datas
=
[]
keyList
.
forEach
(
key
=>
{
map
[
key
].
forEach
(
item
=>
{
// item.lydjid=item.id
// delete item.id
datas
.
push
(
item
)
})
})
let
params
=
{
cktzid
:
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
queryParams
.
mid
,
datas
:
datas
,
jhrid
:
form
.
jhrid
}
this
.
$post
(
'test'
,
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
}
})
},
save
()
{
let
list
=
this
.
$refs
.
rkqd
.
detailList
console
.
log
(
list
)
let
map
=
this
.
$refs
.
rkqd
.
detailList
let
keyList
=
Object
.
keys
(
map
)
if
(
keyList
.
length
==
0
){
this
.
$warning
(
'请先选择明细'
)
return
}
this
.
showDialog
=
true
},
getRow
(
val
)
{
this
.
row
=
val
...
...
src/views/ccgl/ckgl/jhd/top/ackdk/jhr.vue
0 → 100644
View file @
d863d867
<
template
>
<DefaultDialog
: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"
: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
{
readonly
:
false
,
editColItemList
:
[
{
label
:
'拣货人'
,
prop
:
'jhrid'
,
span
:
24
,
type
:
'AuxInput'
,
typeConfig
:
{
code
:
'USER'
,
label
:
'jhrName'
,
transform
:
{
value
:
'id'
,
label
:
'username'
}
},
"required"
:
true
,
},
// {
// label: '退货单号',
// prop: 'ddh',
// span: 24,
// type: 'input',
// value: '',
// }
]
}
},
methods
:
{
save
()
{
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
app
.
showDialog
=
false
// this.app.DialogWidth='80vw'
this
.
$emit
(
'save'
,
this
.
form
)
}
})
}
}
}
</
script
>
<
style
scoped
>
::v-deep
.el-icon-close
{
/* display: none; */
}
</
style
>
src/views/ccgl/ckgl/jhd/top/ackdk/rkqd.vue
View file @
d863d867
...
...
@@ -118,7 +118,12 @@
editTableTitle
:[
{
label
:
'仓库'
,
prop
:
'ckName'
,
prop
:
'ckid'
,
width
:
130
,
},
{
label
:
'批号'
,
prop
:
'wlph'
,
width
:
130
,
},
{
...
...
@@ -144,6 +149,7 @@
type
:
'inputNumber'
,
blur
:
toFixed
(
null
),
change
:
(
row
)
=>
{
row
.
jhsl
=
parseInt
(
row
.
jhsl
)
/*row.oldJhsl
row.kcsl
*/
...
...
@@ -152,8 +158,8 @@
row
.
jhsl
=
row
.
oldJhsl
return
}
if
(
row
.
jhsl
>
row
.
k
csl
){
this
.
$warning
(
'数量不能大于库存数量'
)
if
(
row
.
jhsl
>
row
.
oldK
csl
){
this
.
$warning
(
'数量不能大于
原
库存数量'
)
row
.
jhsl
=
row
.
oldJhsl
return
}
...
...
@@ -183,6 +189,7 @@
pageQueryFinally
(
list
){
console
.
log
(
'清空明细list'
)
this
.
detailList
=
{}
this
.
editTableConfig
.
editTableData
=
[]
list
.
forEach
((
item
)
=>
{
/* 剩余拣货数量==yfsl*/
let
alljhsl
=
item
.
yfsl
...
...
@@ -196,6 +203,7 @@
let
kcList
=
this
.
detailList
[
item
.
id
]
/* 开始扣除库存 kcsl*/
kcList
.
forEach
(
kcitem
=>
{
kcitem
.
oldKcsl
=
kcitem
.
kcsl
kcitem
.
jhsl
=
0
kcitem
.
oldJhsl
=
0
if
(
alljhsl
==
0
){
...
...
src/views/ccgl/ckgl/jhd/top/index.vue
View file @
d863d867
...
...
@@ -223,7 +223,7 @@
methods
:
{
ackdk
(
ctx
)
{
ctx
.
DialogWidth
=
'70vw'
ctx
.
DialogTitle
=
'按出库单开'
ctx
.
DialogTitle
=
'按出库单开
(选择出库单明细会自动分配拣货数量)
'
ctx
.
showDialog
=
true
},
jhtj
(
ctx
)
{
...
...
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