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
e3ddf442
Commit
e3ddf442
authored
Feb 20, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function for bzzy
parent
70981a95
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
543 additions
and
172 deletions
+543
-172
edit.vue
src/views/ccgl/kngl/bzzy/top/edit.vue
+317
-18
index.vue
src/views/ccgl/kngl/bzzy/top/index.vue
+31
-12
mp.vue
src/views/ccgl/kngl/bzzy/top/mp.vue
+195
-0
zb.vue
src/views/ccgl/kngl/bzzy/top/zb.vue
+0
-142
No files found.
src/views/ccgl/kngl/bzzy/top/edit.vue
View file @
e3ddf442
This diff is collapsed.
Click to expand it.
src/views/ccgl/kngl/bzzy/top/index.vue
View file @
e3ddf442
<
template
>
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<BasePage
addRename=
'装包'
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<zb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'"
/
>
<!--
<zb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='装包'"
/>
--
>
<cb
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog&&ctx.basePage.DialogTitle=='调整'"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<
el-button
@
click=
"zb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
装包
</el-button
>
<el-button
@
click=
"cb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
调整
</el-button
>
<
!--
<el-button
@
click=
"zb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
装包
</el-button>
--
>
<!--
<el-button
@
click=
"cb(ctx.basePage)"
size=
'mini'
type=
"primary"
>
调整
</el-button>
--
>
</
template
>
</BasePage>
</template>
<
script
>
import
zb
from
'./zb.vue'
;
//
import zb from './zb.vue';
import
cb
from
'./cb.vue'
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
power
:
{
add
:
fals
e
,
add
:
tru
e
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
...
...
@@ -39,6 +40,7 @@
queryDetail
:
true
,
/* 基本配置*/
url
:
'wms/kcgl/bzdj'
,
// addUrl:'wms/kcgl/bzdj/install',
tableTitle
:
[{
title
:
"类型"
,
field
:
"djlx"
,
...
...
@@ -66,6 +68,21 @@
fieldType
:
"ftString"
,
width
:
260
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
{
title
:
"部门"
,
field
:
"bmName"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
...
...
@@ -146,11 +163,11 @@
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
zb
(
ctx
){
ctx
.
DialogWidth
=
'50vw'
ctx
.
DialogTitle
=
'装包'
ctx
.
showDialog
=
true
},
//
zb(ctx){
//
ctx.DialogWidth='50vw'
//
ctx.DialogTitle='装包'
//
ctx.showDialog=true
//
},
cb
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
ctx
.
DialogWidth
=
'50vw'
...
...
@@ -163,7 +180,9 @@
},
},
components
:
{
zb
,
cb
// zb,
Edit
,
cb
}
}
...
...
src/views/ccgl/kngl/bzzy/top/mp.vue
0 → 100644
View file @
e3ddf442
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</BasePage>
</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
>
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$refs
.
basePage
.
queryParams
.
mid
=
this
.
app
.
form
.
lydjid
this
.
$refs
.
basePage
.
refresh
()
})
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* 基本配置*/
url
:
'lxyl/rkgl/rktz/query/detail'
,
queryUrl
:
'lxyl/rkgl/rktz/query/detail'
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
},
{
title
:
"应收数量"
,
field
:
"yssl"
,
width
:
100
,
},
{
title
:
"码盘数量"
,
field
:
"ztsl"
,
width
:
120
,
},
{
title
:
"包装数量"
,
field
:
"bzsl"
,
width
:
120
,
},
{
title
:
"入库数量"
,
field
:
"rksl"
,
width
:
100
,
},
{
title
:
"过账数量"
,
field
:
"gzsl"
,
width
:
120
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
120
,
"transform"
:
{
"url"
:
"lxyl/rkgl/rktz/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"来源单号"
,
field
:
"lydjid"
,
width
:
120
,
},
{
title
:
"关闭人"
,
field
:
"gbr"
,
width
:
120
,
},
{
title
:
"关闭原因"
,
field
:
"gbyy"
,
width
:
200
,
},
{
title
:
"关闭时间"
,
field
:
"gbsj"
,
fieldType
:
'ftDateTime'
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
200
}
],
queryParams
:
[
],
}
}
},
methods
:
{
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
){
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
this
.
$emit
(
'save'
,
list
)
this
.
app
.
showDialog
=
false
}
// if()
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kngl/bzzy/top/zb.vue
deleted
100644 → 0
View file @
70981a95
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
>
<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
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
source
:{},
readonly
:
false
,
editColItemList
:
[
{
label
:
'物料'
,
prop
:
'wlid'
,
span
:
12
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
false
,
code
:
'WMSWLXX'
,
label
:
'wlxxName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
},
give
:(
row
)
=>
{
this
.
form
.
wlxxCode
=
row
.
code
this
.
form
.
wlxxGg
=
row
.
gg
}
}
},
{
label
:
'物料编码'
,
prop
:
'wlxxCode'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'物料规格'
,
prop
:
'wlxxGg'
,
span
:
12
,
type
:
'input'
,
},
{
label
:
'制令号'
,
prop
:
'zlh'
,
span
:
12
,
type
:
'input'
,
required
:
true
,
},
{
label
:
'批号'
,
prop
:
'wlph'
,
span
:
12
,
type
:
'input'
,
// required: true,
},
{
label
:
'装包数量'
,
prop
:
'zbsl'
,
span
:
12
,
type
:
'inputNumber'
,
required
:
true
,
},
{
label
:
'货主'
,
prop
:
'hzid'
,
span
:
12
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
true
,
code
:
'HZID'
,
label
:
'hzName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
}
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
let
params
=
{
"djly"
:
"M"
,
"datas"
:[
this
.
form
]
}
this
.
$post
(
'wms/kcgl/bzdj/install'
,
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
}
})
}
})
}
}
}
</
script
>
<
style
scoped
>
</
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