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
d502d8aa
Commit
d502d8aa
authored
Apr 23, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拣货单 新增=》调拨 添加仓库
parent
4ab729fc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
123 additions
and
4 deletions
+123
-4
dbtbsapck.vue
src/views/ccgl/ckgl/jhd/top/dbtbsapck.vue
+101
-0
edit.vue
src/views/ccgl/ckgl/jhd/top/edit.vue
+20
-2
tbsapck.vue
src/views/ccgl/ckgl/jhd/top/tbsapck.vue
+2
-2
No files found.
src/views/ccgl/ckgl/jhd/top/dbtbsapck.vue
0 → 100644
View file @
d502d8aa
<
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"
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
{
readonly
:
false
,
editColItemList
:
[
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
24
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"lxyl/common/ck/queryCkidByCktzid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
},
params
:{
cktzid
:
this
.
app
.
form
.
lydjid
},
change
:
(
row
)
=>
{
this
.
form
.
hzName
=
row
.
hzName
this
.
form
.
hzid
=
row
.
hzid
}
}
},
// {
// 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/edit.vue
View file @
d502d8aa
...
...
@@ -6,6 +6,8 @@
<xzckd
@
save=
'xzckdSave'
:app=
'this'
v-if=
"showDialog&&DialogTitle=='选择出库单'"
/>
<xzdbckd
@
save=
'xzdbckdSave'
:app=
'this'
v-if=
"showDialog&&DialogTitle=='选择调拨出库单'"
/>
<Tbsapck
@
save=
'tbsapckdSave'
:app=
'this'
v-if=
"showDialog&&DialogTitle=='选择仓库'"
/>
<Dbtbsapck
@
save=
'dbtbsapckdSave'
:app=
'this'
v-if=
"showDialog&&DialogTitle=='调拨出库选择仓库'"
/>
<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"
...
...
@@ -39,6 +41,7 @@
import
xzckd
from
'./xzckd.vue'
import
xzdbckd
from
'./xzdbckd.vue'
import
Tbsapck
from
'./tbsapck.vue'
import
Dbtbsapck
from
'./dbtbsapck.vue'
import
{
toFixed
,
digit
,
...
...
@@ -54,7 +57,8 @@
components
:
{
xzckd
,
xzdbckd
,
Tbsapck
Tbsapck
,
Dbtbsapck
},
methods
:
{
/* 需要整体row时的回调 */
...
...
@@ -140,6 +144,14 @@
delete
item
.
zt
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
/* 回填后重新选择仓库*/
this
.
$nextTick
(()
=>
{
this
.
showDialog
=
true
this
.
DialogTitle
=
'调拨出库选择仓库'
this
.
DialogWidth
=
'30vw'
})
},
xzckd
()
{
this
.
DialogTitle
=
'选择出库单'
...
...
@@ -157,6 +169,12 @@
this
.
form
.
hzid
=
val
.
hzid
this
.
form
.
hzName
=
val
.
hzName
},
dbtbsapckdSave
(
val
){
/* 赋值回调*/
this
.
form
.
ckid
=
val
.
ckid
this
.
form
.
hzid
=
val
.
hzid
this
.
form
.
hzName
=
val
.
hzName
},
save
()
{},
/* 选择库存回调 */
savekc
(
list
)
{
...
...
@@ -204,7 +222,7 @@
"required"
:
true
,
},
{
//
readonly: false,
readonly
:
false
,
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
...
...
src/views/ccgl/ckgl/jhd/top/tbsapck.vue
View file @
d502d8aa
...
...
@@ -53,13 +53,13 @@
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"lxyl/common/ck/queryCkidBy
Cktz
id"
,
"src"
:
"lxyl/common/ck/queryCkidBy
Dbck
id"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
},
params
:{
cktz
id
:
this
.
app
.
form
.
lydjid
dbck
id
:
this
.
app
.
form
.
lydjid
},
change
:
(
row
)
=>
{
this
.
form
.
hzName
=
row
.
hzName
...
...
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