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
85581c6e
Commit
85581c6e
authored
Mar 12, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbrkkd
parent
b1b34dfe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
463 additions
and
5 deletions
+463
-5
dbckd.vue
src/views/ccgl/rkgl/sjrw/top/dbckd.vue
+201
-0
dbckqd.vue
src/views/ccgl/rkgl/sjrw/top/dbckqd.vue
+124
-0
edit.vue
src/views/ccgl/rkgl/sjrw/top/edit.vue
+51
-4
index.vue
src/views/ccgl/rkgl/sjrw/top/index.vue
+1
-1
xzdbckd.vue
src/views/ccgl/rkgl/sjrw/top/xzdbckd.vue
+86
-0
No files found.
src/views/ccgl/rkgl/sjrw/top/dbckd.vue
0 → 100644
View file @
85581c6e
<
template
>
<BasePage
:setFirstCurrent=
'false'
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
直接入库
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
// import Edit from './edit.vue'
export
default
{
data
()
{
return
{
power
:{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/rkgl/sjtz/query/dbrk'
,
queryUrl
:
'lxyl/rkgl/sjtz/query/dbrk'
,
tableTitle
:
[
{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"lxyl/ckgl/cktz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"拨出仓库"
,
field
:
"dfckName"
,
width
:
140
},
{
title
:
"出库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
// {
// title: "需求日期",
// field: "xqrq",
// fieldType: 'ftDate'
// },
{
title
:
"领料部门"
,
field
:
"bmName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
"transform"
:
{
"url"
:
"lxyl/ckgl/cktz/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"来源单据号"
,
field
:
"lydjDjid"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
''
,
endValue
:
''
,
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
],
[{
label
:
'状态'
,
prop
:
'zt'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/ckgl/cktz/init/zt'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/ckgl/cktz/init/swlx'
}
},
{
label
:
'货主'
,
prop
:
'hzName'
,
span
:
8
,
type
:
'input'
,
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
// Edit
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/rkgl/sjrw/top/dbckqd.vue
0 → 100644
View file @
85581c6e
<
template
>
<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
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</BasePage>
</template>
<
script
>
import
wlsx
from
'common/src/mixin/wlphsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
mounted
()
{
},
mixins
:
[
wlsx
,
wlphsx
],
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* 基本配置*/
url
:
'lxyl/rkgl/sjtz/query/dbrkqd'
,
queryUrl
:
'lxyl/rkgl/sjtz/query/dbrkqd'
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
180
},
{
title
:
"拨入数量"
,
field
:
"brsl"
,
width
:
100
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
240
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
100
,
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/rkgl/dbrk/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
}
],
queryParams
:
[],
}
}
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/rkgl/sjrw/top/edit.vue
View file @
85581c6e
...
...
@@ -2,7 +2,8 @@
<RelDialog
bigTitle
detailTable=
'SJTZMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<Xzrkqd
@
save=
'xzrkqdSave'
:app=
'this'
v-if=
"showDialog"
/>
<Xzrkqd
@
save=
'xzrkqdSave'
:app=
'this'
v-if=
"showDialog&&DialogTitle=='选择入库单'"
/>
<Xzdbckd
@
save=
'xzdbckdSave'
: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"
...
...
@@ -15,8 +16,10 @@
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
v-if=
"type!='view'"
#
toolbar=
"ctx"
>
<el-button
@
click=
"xzrkqd"
size=
"mini"
style=
"display: inline-block;margin-right: 10px;"
type=
"primary"
>
选择入库清单
</el-button>
<el-button
@
click=
"xzrkqd"
size=
"mini"
style=
"display: inline-block;margin-right: 0px;"
type=
"primary"
>
选择入库单
</el-button>
<el-button
@
click=
"xzdbckd"
size=
"mini"
style=
"display: inline-block;margin-right: 0px;"
type=
"primary"
>
选择调拨入库单
</el-button>
</
template
>
</editTableForEdit>
</div>
...
...
@@ -32,6 +35,7 @@
</RelDialog>
</template>
<
script
>
import
{
toFixed
,
doRkdChange
...
...
@@ -41,16 +45,21 @@
editMixin_expand
}
from
'common'
import
Xzrkqd
from
'./xzrkqd.vue'
import
Xzdbckd
from
'./xzdbckd.vue'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
components
:
{
Xzrkqd
Xzrkqd
,
Xzdbckd
},
mounted
()
{
// this.form.sjrName=this.username
// this.form.sjrid=this.userid
},
methods
:
{
xzdbckd
()
{
this
.
DialogTitle
=
'选择调拨入库单'
this
.
showDialog
=
true
},
getFormDetail
()
{
if
(
this
.
type
!=
'add'
)
{
/* 1.@getFormDetail='getFormDetail' 存在触发时生效 */
...
...
@@ -62,6 +71,42 @@
this
.
formDetail
.
forEach
(
item
=>
item
.
kwid
=
''
)
}
},
xzdbckdSave
(
obj
){
let
{
list
,
row
}
=
obj
if
(
list
&&
list
[
0
]
&&
list
[
0
].
kqid
)
{
this
.
form
.
kqid
=
list
[
0
].
kqid
}
this
.
form
.
djly
=
'DBRK'
this
.
form
.
swlxid
=
row
.
swlxid
this
.
form
.
lydjid
=
row
.
id
this
.
form
.
ckid
=
row
.
ckid
this
.
form
.
rktzDjid
=
row
.
djid
this
.
form
.
hzid
=
row
.
hzid
this
.
form
.
hzName
=
row
.
hzName
// this.form.ywrq=row.ywrq
let
length
=
this
.
formDetail
.
length
this
.
formDetail
.
splice
(
0
,
length
)
list
.
forEach
(
item
=>
{
item
.
lydjid
=
item
.
id
item
.
sjsl
=
item
.
brsl
||
0
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
// 回填上架人
this
.
$post
(
'lxyl/rkgl/sjtz/default/sjr'
,
{
ckid
:
row
.
ckid
,
hzid
:
list
[
0
].
hzid
,
wlid
:
list
[
0
].
wlid
,
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
form
.
sjrName
=
res
.
data
.
records
.
username
this
.
form
.
sjrid
=
res
.
data
.
records
.
id
}
})
},
xzrkqdSave
(
obj
)
{
let
{
list
,
...
...
@@ -70,6 +115,7 @@
if
(
list
&&
list
[
0
]
&&
list
[
0
].
kqid
)
{
this
.
form
.
kqid
=
list
[
0
].
kqid
}
this
.
form
.
djly
=
'RKTZ'
this
.
form
.
swlxid
=
row
.
swlxid
this
.
form
.
lydjid
=
row
.
id
this
.
form
.
ckid
=
row
.
ckid
...
...
@@ -98,6 +144,7 @@
})
},
xzrkqd
()
{
this
.
DialogTitle
=
'选择入库单'
this
.
showDialog
=
true
},
/* 需要整体row时的回调 */
...
...
src/views/ccgl/rkgl/sjrw/top/index.vue
View file @
85581c6e
<
template
>
<BasePage
:copy=
'false'
addRename=
'
按入库清单开
'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
:copy=
'false'
addRename=
'
新增
'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
...
...
src/views/ccgl/rkgl/sjrw/top/xzdbckd.vue
0 → 100644
View file @
85581c6e
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"调拨入库单"
name=
"first"
>
<Rkd
@
getRow=
'getRow'
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"调拨入库单明细"
name=
"second"
>
<Rkqd
ref=
"rkqd"
/>
</el-tab-pane>
</el-tabs>
</div>
</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
Rkd
from
'./dbckd.vue'
import
Rkqd
from
'./dbckqd.vue'
export
default
{
components
:
{
Rkd
,
Rkqd
},
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
row
:{},
activeName
:
'first'
}
},
methods
:
{
save
()
{
let
list
=
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
){
this
.
$warning
(
'请勾选存在数据的入库单'
)
}
else
{
let
obj
=
{
list
:
list
,
row
:
this
.
row
}
this
.
$emit
(
'save'
,
obj
)
this
.
app
.
showDialog
=
false
}
// if()
},
getRow
(
val
)
{
this
.
row
=
val
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
queryParams
.
mid
=
val
.
id
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
// setFirstCurrent: true
})
this
.
activeName
=
'second'
}
}
}
</
script
>
<
style
scoped
>
::v-deep
.el-tabs__content
{
height
:
calc
(
100%
-
50px
);
}
::v-deep
.el-tabs__nav-scroll
{
padding-left
:
10px
;
}
</
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