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
d64c90dc
Commit
d64c90dc
authored
Dec 19, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段变更,部分操作改动
parent
8bce84ab
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
446 additions
and
431 deletions
+446
-431
ckdmx.vue
src/views/ccgl/ckgl/dbckd/ckdmx.vue
+52
-52
edit.vue
src/views/ccgl/ckgl/dbckd/top/edit.vue
+235
-234
index.vue
src/views/ccgl/ckgl/dbckd/top/index.vue
+12
-2
edit.vue
src/views/ccgl/ckgl/jhd/top/edit.vue
+0
-2
rkdmx.vue
src/views/ccgl/rkgl/dbrkd/rkdmx.vue
+3
-3
rkqd.vue
src/views/ccgl/rkgl/dbrkd/rkqd.vue
+3
-3
edit.vue
src/views/ccgl/rkgl/dbrkd/top/edit.vue
+10
-8
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+23
-54
mp.vue
src/views/ccgl/rkgl/mpzy/top/mp.vue
+108
-73
No files found.
src/views/ccgl/ckgl/dbckd/ckdmx.vue
View file @
d64c90dc
<
template
>
<
template
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
:config=
"config"
>
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
</
template
>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
},
},
mixins
:
[
wlsx
,
wlphsx
],
mixins
:
[
wlsx
,
wlphsx
],
data
()
{
data
()
{
return
{
return
{
power
:
{
power
:
{
...
@@ -44,55 +44,55 @@
...
@@ -44,55 +44,55 @@
queryUrl
:
'wms/ckgl/dbck/query/detail'
,
queryUrl
:
'wms/ckgl/dbck/query/detail'
,
tableTitle
:
[{
tableTitle
:
[{
title
:
"物料编号"
,
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
fieldType
:
"upper"
,
width
:
140
width
:
140
},
},
{
{
title
:
"物料名称"
,
title
:
"物料名称"
,
field
:
"wlmc"
,
field
:
"wlxxName"
,
width
:
140
width
:
140
},
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
120
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"调拨数量"
,
field
:
"bcsl"
,
width
:
100
,
},
{
title
:
"出库数量"
,
field
:
"rksl"
,
width
:
100
,
},
{
title
:
"过账数量"
,
field
:
"cksl"
,
width
:
100
,
},
{
{
title
:
"物料规格"
,
title
:
"状态"
,
field
:
"gg"
,
field
:
"zt"
,
width
:
140
width
:
100
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
120
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"调拨数量"
,
field
:
"bcsl"
,
width
:
100
,
},
{
title
:
"出库数量"
,
field
:
"rksl"
,
width
:
100
,
},
{
title
:
"过账数量"
,
field
:
"cksl"
,
width
:
100
,
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
100
,
"transform"
:
{
"transform"
:
{
"url"
:
"wms/ckgl/dbck/init/zt"
,
"url"
:
"wms/ckgl/dbck/init/zt"
,
"label"
:
"name"
,
"label"
:
"name"
,
"value"
:
"id"
"value"
:
"id"
}
}
}
}
],
],
queryParams
:
[],
queryParams
:
[],
...
@@ -101,13 +101,13 @@
...
@@ -101,13 +101,13 @@
},
},
methods
:
{
methods
:
{
getRow
(
val
){
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
this
.
$emit
(
'getRow'
,
val
)
},
},
demo
(
ctx
){
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
console
.
log
(
ctx
.
singleItem
)
}
else
{
}
else
{
this
.
$warning
(
'请选中一条数据'
)
this
.
$warning
(
'请选中一条数据'
)
}
}
}
}
...
@@ -121,4 +121,4 @@
...
@@ -121,4 +121,4 @@
</
script
>
</
script
>
<
style
>
<
style
>
</
style
>
</
style
>
\ No newline at end of file
src/views/ccgl/ckgl/dbckd/top/edit.vue
View file @
d64c90dc
<
template
>
<
template
>
<RelDialog
bigTitle
detailTable=
'DBCKMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
<RelDialog
bigTitle
detailTable=
'DBCKMX'
@
getFormDetail=
'getFormDetail'
width=
"70%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
:app=
'app'
:buttonApp=
'buttonApp'
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
<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-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'
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
:rule=
"item.rule"
/>
<!-- 额外数据 -->
<!-- 额外数据 -->
</el-row>
</el-row>
<div
class=
"editTab"
>
<div
class=
"editTab"
>
<editTableForEdit
:indexApp=
'app'
:type=
'type'
@
save=
'save'
ref=
"editTableForEdit"
<editTableForEdit
:indexApp=
'app'
:type=
'type'
@
save=
'save'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
/>
:editTableData=
"formDetail"
/>
</div>
</div>
<el-row
class=
"bottomInfo"
:gutter=
"20"
>
<el-row
class=
"bottomInfo"
:gutter=
"20"
>
<el-col
class=
"center"
:span=
"12"
>
<el-col
class=
"center"
:span=
"12"
>
创建人:
{{
创建人:
{{
form
.
cjr
||
localUser
form
.
cjr
||
localUser
}}
}}
</el-col>
</el-col>
<el-col
class=
"center"
:span=
"12"
>
<el-col
class=
"center"
:span=
"12"
>
创建时间:
{{
创建时间:
{{
$moment
(
form
.
cjsj
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
||
$moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
$moment
(
form
.
cjsj
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
||
$moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
}}
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<!-- editTab数据 -->
<!-- editTab数据 -->
</RelDialog>
</RelDialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
toFixed
,
toFixed
,
doRkdChange
doRkdChange
}
from
'common/src/utils/blur.js'
}
from
'common/src/utils/blur.js'
import
{
import
{
editMixin
,
editMixin
,
editMixin_expand
editMixin_expand
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
methods
:
{
/* 需要整体row时的回调 */
/* 需要整体row时的回调 */
computedRow
(
row
)
{
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
// this.$refs.editTableForEdit.$forceUpdate()
},
},
/* 选择list时的回调 */
/* 选择list时的回调 */
save
(
list
)
{
save
(
list
)
{
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
// 转换并且push
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlid
=
item
.
id
item
.
wlmc
=
item
.
name
item
.
wlxxName
=
item
.
name
item
.
wlcode
=
item
.
code
item
.
wlxxCode
=
item
.
code
item
.
xqsl
=
0
item
.
wlxxGg
=
item
.
gg
item
.
xqrq
=
new
Date
().
getTime
()
item
.
xqsl
=
0
delete
item
.
id
item
.
xqrq
=
new
Date
().
getTime
()
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
})
}
}
},
},
data
()
{
data
()
{
return
{
return
{
/* 常规edit数据 */
/* 常规edit数据 */
editColItemList
:
[{
editColItemList
:
[{
label
:
'入库单号'
,
label
:
'入库单号'
,
prop
:
'djid'
,
prop
:
'djid'
,
span
:
8
,
span
:
8
,
type
:
'input'
,
type
:
'input'
,
},
},
{
{
label
:
'入库日期'
,
label
:
'入库日期'
,
prop
:
'ywrq'
,
prop
:
'ywrq'
,
span
:
8
,
span
:
8
,
type
:
'date'
,
type
:
'date'
,
value
:
new
Date
().
getTime
(),
value
:
new
Date
().
getTime
(),
"required"
:
true
,
"required"
:
true
,
},
},
{
{
"label"
:
"仓库"
,
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"required"
:
true
,
"required"
:
true
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
}
}
}
}
},
},
{
"label"
:
"调入仓库"
,
"prop"
:
"dfckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
{
"label"
:
"调入仓库"
,
"label"
:
"事务类型"
,
"prop"
:
"dfckid"
,
"prop"
:
"swlxid"
,
"span"
:
8
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"value"
:
""
,
"required"
:
true
,
"required"
:
true
,
"typeConfig"
:
{
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"src"
:
"wms/ckgl/dbck/init/swlx"
,
"match"
:
{
"match"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
}
}
}
}
},
{
"label"
:
"部门"
,
"prop"
:
"bmid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/bm/query"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"bmmc"
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
,
},
},
{
"label"
:
"事务类型"
,
"prop"
:
"swlxid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"wms/ckgl/dbck/init/swlx"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"部门"
,
"prop"
:
"bmid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/bm/query"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"bmmc"
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
,
},
],
],
/* 从表编辑数据 */
/* 从表编辑数据 */
editTableTitle
:
[{
editTableTitle
:
[{
title
:
"序号"
,
title
:
"序号"
,
field
:
"xh"
,
field
:
"xh"
,
width
:
50
,
width
:
50
,
align
:
"center"
align
:
"center"
},
},
{
{
title
:
"物料编号"
,
title
:
"物料编号"
,
field
:
"code"
,
field
:
"wlxxCode"
,
width
:
240
,
width
:
240
,
type
:
'AuxInput'
,
type
:
'AuxInput'
,
typeConfig
:
{
typeConfig
:
{
"code"
:
"MATERIAL"
,
"code"
:
"MATERIAL"
,
"label"
:
"wlcode"
,
"label"
:
"wlxxCode"
,
"transform"
:
{
"transform"
:
{
"value"
:
"code"
,
"value"
:
"code"
,
"label"
:
"code"
"label"
:
"code"
},
},
give
(
data
)
{
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
this
.
form
.
wlxxCode
=
data
.
code
this
.
form
.
wlxxGg
=
data
.
gg
}
}
}
}
},
},
{
title
:
"物料名称"
,
field
:
"wlmc"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"gg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwname"
,
width
:
100
,
allowEdit
:
false
},
{
{
title
:
"制令号"
,
title
:
"物料名称"
,
field
:
"zlh"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwname"
,
width
:
100
,
allowEdit
:
false
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
type
:
'inputText'
,
width
:
100
,
width
:
100
,
allowEdit
:
true
allowEdit
:
true
},
{
title
:
"调拨数量"
,
field
:
"bcsl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
200
,
blur
:
toFixed
(
null
),
},
},
{
title
:
"调拨数量"
,
field
:
"bcsl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
width
:
200
,
blur
:
toFixed
(
null
),
},
/* 不可编辑*/
/* 不可编辑*/
{
{
title
:
"出库数量"
,
title
:
"出库数量"
,
field
:
"cksl"
,
field
:
"cksl"
,
width
:
200
,
width
:
200
,
},
},
{
{
title
:
"物料批号"
,
title
:
"物料批号"
,
field
:
"wlph"
,
field
:
"wlph"
,
type
:
'inputText'
,
type
:
'inputText'
,
width
:
200
,
width
:
200
,
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isPhgl'
))
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isPhgl'
))
},
},
{
{
title
:
"库位"
,
title
:
"库位"
,
field
:
"kwid"
,
field
:
"kwid"
,
width
:
240
,
width
:
240
,
type
:
'AuxInput'
,
type
:
'AuxInput'
,
typeConfig
:
{
typeConfig
:
{
isRequest
:
false
,
isRequest
:
false
,
"code"
:
"KWWH"
,
"code"
:
"KWWH"
,
"label"
:
"kwName"
,
"label"
:
"kwName"
,
queryParams
:
(
row
)
=>
{
queryParams
:
(
row
)
=>
{
return
{
return
{
ckid
:
this
.
form
.
ckid
ckid
:
this
.
form
.
ckid
}
}
},
},
"transform"
:
{
"transform"
:
{
"value"
:
"id"
,
"value"
:
"id"
,
"label"
:
"name"
"label"
:
"name"
}
}
},
},
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isKwgl'
)),
show
:
JSON
.
parse
(
localStorage
.
getItem
(
'isKwgl'
)),
},
},
{
{
title
:
"备注"
,
title
:
"备注"
,
field
:
"bz"
,
field
:
"bz"
,
width
:
200
,
width
:
200
,
type
:
'inputText'
,
type
:
'inputText'
,
allowEdit
:
true
allowEdit
:
true
}
}
]
]
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("~common/src/assets/styles/editDetail.scss")
;
@import
url("~common/src/assets/styles/editDetail.scss")
;
</
style
>
</
style
>
src/views/ccgl/ckgl/dbckd/top/index.vue
View file @
d64c90dc
...
@@ -69,12 +69,22 @@
...
@@ -69,12 +69,22 @@
{
{
title
:
"单据来源"
,
title
:
"单据来源"
,
field
:
"djly"
,
field
:
"djly"
,
width
:
140
width
:
140
,
"transform"
:
{
"url"
:
"wms/ckgl/dbck/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
},
{
{
title
:
"状态"
,
title
:
"状态"
,
field
:
"zt"
,
field
:
"zt"
,
width
:
140
width
:
140
,
"transform"
:
{
"url"
:
"wms/ckgl/dbck/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
},
{
{
title
:
"备注"
,
title
:
"备注"
,
...
...
src/views/ccgl/ckgl/jhd/top/edit.vue
View file @
d64c90dc
...
@@ -167,8 +167,6 @@
...
@@ -167,8 +167,6 @@
}
}
}
}
},
},
{
{
"label"
:
"领料部门"
,
"label"
:
"领料部门"
,
"prop"
:
"bmid"
,
"prop"
:
"bmid"
,
...
...
src/views/ccgl/rkgl/dbrkd/rkdmx.vue
View file @
d64c90dc
...
@@ -44,18 +44,18 @@
...
@@ -44,18 +44,18 @@
queryUrl
:
'wms/rkgl/dbrk/query/detail'
,
queryUrl
:
'wms/rkgl/dbrk/query/detail'
,
tableTitle
:
[{
tableTitle
:
[{
title
:
"物料编号"
,
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
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
},
},
{
{
...
...
src/views/ccgl/rkgl/dbrkd/rkqd.vue
View file @
d64c90dc
...
@@ -42,18 +42,18 @@
...
@@ -42,18 +42,18 @@
queryUrl
:
'wms/rkgl/dbrk/query/dbrkqd'
,
queryUrl
:
'wms/rkgl/dbrk/query/dbrkqd'
,
tableTitle
:
[{
tableTitle
:
[{
title
:
"物料编号"
,
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
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
},
},
{
{
...
...
src/views/ccgl/rkgl/dbrkd/top/edit.vue
View file @
d64c90dc
...
@@ -54,8 +54,9 @@
...
@@ -54,8 +54,9 @@
list
.
forEach
(
item
=>
{
list
.
forEach
(
item
=>
{
// 转换并且push
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlid
=
item
.
id
item
.
wlmc
=
item
.
name
item
.
wlxxName
=
item
.
name
item
.
wlcode
=
item
.
code
item
.
wlxxCode
=
item
.
code
item
.
wlxxGg
=
item
.
gg
item
.
xqsl
=
0
item
.
xqsl
=
0
item
.
xqrq
=
new
Date
().
getTime
()
item
.
xqrq
=
new
Date
().
getTime
()
delete
item
.
id
delete
item
.
id
...
@@ -161,20 +162,21 @@
...
@@ -161,20 +162,21 @@
},
},
{
{
title
:
"物料编号"
,
title
:
"物料编号"
,
field
:
"
c
ode"
,
field
:
"
wlxxC
ode"
,
width
:
240
,
width
:
240
,
type
:
'AuxInput'
,
type
:
'AuxInput'
,
typeConfig
:
{
typeConfig
:
{
"code"
:
"MATERIAL"
,
"code"
:
"MATERIAL"
,
"label"
:
"wl
c
ode"
,
"label"
:
"wl
xxC
ode"
,
"transform"
:
{
"transform"
:
{
"value"
:
"code"
,
"value"
:
"code"
,
"label"
:
"code"
"label"
:
"code"
},
},
give
(
data
)
{
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
this
.
form
.
wlxxCode
=
data
.
code
this
.
form
.
wlxxGg
=
data
.
gg
}
}
...
@@ -182,12 +184,12 @@
...
@@ -182,12 +184,12 @@
},
},
{
{
title
:
"物料名称"
,
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
160
width
:
160
},
},
{
{
title
:
"规格"
,
title
:
"规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
width
:
140
},
},
{
{
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
d64c90dc
...
@@ -55,15 +55,20 @@
...
@@ -55,15 +55,20 @@
},
},
methods
:
{
methods
:
{
mpSave
(
list
)
{
mpSave
(
list
)
{
let
length
=
this
.
formDetail
.
length
/* 可持续添加*/
this
.
formDetail
.
splice
(
0
,
length
)
let
iscf
=
false
list
.
forEach
(
item
=>
{
let
lydjidList
=
this
.
formDetail
.
map
(
item
=>
item
.
lydjid
)
item
.
lydjid
=
item
.
id
list
.
forEach
(
item
=>
{
delete
item
.
id
if
(
lydjidList
.
includes
(
item
.
lydjid
)){
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
iscf
=
true
}
else
{
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
}
})
})
if
(
iscf
){
this
.
$warning
(
'存在重复数据,已自动过滤'
)
}
this
.
$forceUpdate
()
},
},
mp
()
{
mp
()
{
if
(
!
this
.
form
.
lydjid
)
{
if
(
!
this
.
form
.
lydjid
)
{
...
@@ -76,45 +81,9 @@
...
@@ -76,45 +81,9 @@
},
},
/* 需要整体row时的回调 */
/* 需要整体row时的回调 */
computedRow
(
row
)
{
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
},
/* 选择list时的回调 */
/* 选择list时的回调 */
// save(list) {
// list[0]['lydjid'] = list[0]['djid']
// delete list[0]['djid']
// if (list.length > 1) {
// this.$warning('只能选取一条数据')
// } else {
// /* 清空数据*/
// let length = this.formDetail.length
// this.formDetail.splice(0, length)
// for (var key in this.form) {
// key != 'id' && (() => {
// list[0][key] && (this.form[key] = list[0][key])
// })()
// }
// this.$post('wms/rkgl/rktz/query/detail', {
// mid: list[0].id
// }).then(res => {
// if (res.data && res.data.records) {
// res.data.records.forEach(item => {
// item.yrksl = item.yrksl || 0
// item.rksl = item.yssl;
// item.frksl = item.fyssl;
// item.rkje = item.wsje || 0;
// item["lydjid"] = item["id"];
// delete item["id"];
// delete item[
// "mid"];
// this.formDetail.push(_.cloneDeep(item))
// })
// }
// })
// }
// }
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -288,15 +257,15 @@
...
@@ -288,15 +257,15 @@
field
:
"packCode"
,
field
:
"packCode"
,
width
:
240
width
:
240
},
},
{
//
{
title
:
"维护人"
,
//
title: "维护人",
field
:
"whr"
//
field: "whr"
},
//
},
{
//
{
title
:
"维护时间"
,
//
title: "维护时间",
field
:
"whsj"
,
//
field: "whsj",
fieldType
:
"ftDateTime"
//
fieldType: "ftDateTime"
},
//
},
]
]
...
...
src/views/ccgl/rkgl/mpzy/top/mp.vue
View file @
d64c90dc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
class=
"full"
>
<div
class=
"full"
>
<div
class=
"mpSearch"
style=
"position: relative;"
>
<div
class=
"mpSearch"
style=
"position: relative;"
>
<el-button
@
click=
"search"
size=
"mini"
style=
"position: absolute;right: 10px;z-index: 999999; "
<el-button
@
click=
"search"
size=
"mini"
style=
"position: absolute;right: 10px;z-index: 999999; "
type=
"primary"
>
搜索
</el-button>
type=
"primary"
>
添加
</el-button>
<!-- 选择容器-->
<!-- 选择容器-->
<!-- 选择包装码-->
<!-- 选择包装码-->
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
...
@@ -34,17 +34,19 @@
...
@@ -34,17 +34,19 @@
<!-- -->
<!-- -->
</div>
</div>
<BasePage
ref=
"basePage"
:toolButton=
'false'
:power=
'power'
class=
"min_full"
:config=
"config"
<EditTable
staticHeader
ref=
"editTable"
:app=
'editTableConfig'
>
style=
"height:calc(100% - 45px) ;width: 100%;"
>
<template
slot=
"tabCustom"
>
<template
#
dialog=
"ctx"
>
<el-table-column
label=
"操作"
width=
"90"
header-align=
"center"
fixed=
"right"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<template
slot-scope=
"scope"
>
</
template
>
<el-button
style=
"text-align: center;color: red;width: 100%;"
<
template
#
toolbar=
"ctx"
>
@
click
.
native
.
prevent=
"del(scope.$index)"
type=
"text"
size=
"small"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<i
class=
"el-icon-delete"
></i>
删除
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</el-button>
</
template
>
</
template
>
</el-table-column>
</template>
</
BasePag
e>
</
EditTabl
e>
</div>
</div>
</div>
</div>
...
@@ -57,6 +59,10 @@
...
@@ -57,6 +59,10 @@
</DefaultDialog>
</DefaultDialog>
</template>
</template>
<
script
>
<
script
>
/* 逻辑变更
容器+唯一码搜索并添加,清除容器+唯一码,可单条删除
可继续添加,可删除
*/
export
default
{
export
default
{
props
:
{
props
:
{
...
@@ -74,101 +80,130 @@
...
@@ -74,101 +80,130 @@
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{
editTableConfig
:{
rqid
:
''
,
editTableTitle
:[
rqCode
:
''
},
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'wms/common/queryPackByCode'
,
queryUrl
:
"wms/common/queryPackmxByCode"
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
{
title
:
"物料名称
"
,
label
:
"容器
"
,
field
:
"wlxxNam
e"
,
prop
:
"rqCod
e"
,
width
:
1
4
0
width
:
1
7
0
},
},
{
{
title
:
"物料规格
"
,
label
:
"物料编码
"
,
field
:
"wlxxGg
"
,
prop
:
"wlxxCode
"
,
width
:
1
4
0
width
:
1
7
0
},
},
{
{
title
:
"物料批号
"
,
label
:
"物料名称
"
,
field
:
"wlph
"
,
prop
:
"wlxxName
"
,
width
:
1
4
0
width
:
1
7
0
},
},
{
{
title
:
"物料数量
"
,
label
:
"物料规格
"
,
field
:
"sl
"
,
prop
:
"wlxxGg
"
,
width
:
1
4
0
width
:
1
7
0
},
},
{
{
title
:
"制令
号"
,
label
:
"物料批
号"
,
field
:
"zl
h"
,
prop
:
"wlp
h"
,
width
:
1
4
0
width
:
1
7
0
},
},
{
{
title
:
"唯一码
"
,
label
:
"物料数量
"
,
field
:
"packCode
"
,
prop
:
"sl
"
,
width
:
2
40
width
:
1
40
},
},
{
{
title
:
"维护人"
,
label
:
"制令号"
,
field
:
"whr"
prop
:
"zlh"
,
width
:
140
},
},
{
{
title
:
"维护时间"
,
label
:
"唯一码"
,
field
:
"whsj"
,
prop
:
"packCode"
,
fieldType
:
"ftDateTime"
width
:
240
},
}
],
],
queryParams
:
[]
editTableData
:[]
},
form
:
{
rqid
:
''
,
rqCode
:
''
,
id
:
''
,
code
:
''
}
}
}
}
},
},
methods
:
{
methods
:
{
/* 重新渲染表格 */
del
(
index
){
this
.
editTableConfig
.
editTableData
.
splice
(
index
,
1
)
},
save
()
{
save
()
{
if
(
this
.
form
.
rqid
){
if
(
let
list
=
this
.
$refs
.
basePage
.
tabData
||
[]
this
.
editTableConfig
.
editTableData
.
length
>
0
list
.
forEach
(
item
=>
{
){
item
.
rqid
=
this
.
form
.
rqid
let
list
=
this
.
editTableConfig
.
editTableData
||
[]
item
.
rqCode
=
this
.
form
.
rqCode
})
this
.
$emit
(
'save'
,
list
)
this
.
$emit
(
'save'
,
list
)
this
.
app
.
showDialog
=
false
this
.
app
.
showDialog
=
false
/* 触发传递事件*/
/* 触发传递事件*/
}
else
{
}
else
{
this
.
$warning
(
'请
选择容器
后保存'
)
this
.
$warning
(
'请
添加数据
后保存'
)
}
}
},
},
search
()
{
search
()
{
/* 卡下数据*/
/* 卡下数据*/
if
(
this
.
form
.
packid
)
{
if
(
this
.
form
.
packid
&&
this
.
form
.
rqid
)
{
this
.
$refs
.
basePage
.
queryParams
.
code
=
this
.
form
.
packcode
//
this.$refs.basePage.queryParams.code = this.form.packcode
this
.
$refs
.
basePage
.
refresh
()
//
this.$refs.basePage.refresh()
/* 查询*/
/* 查询*/
let
params
=
{
code
:
this
.
form
.
packcode
}
this
.
$post
(
'wms/common/queryPackmxByCode'
,
params
).
then
(
res
=>
{
if
(
res
.
success
){
let
list
=
res
.
data
.
records
||
[]
/* 判定1*/
if
(
list
.
length
==
0
){
this
.
$warning
(
'暂未查询到数据'
)
}
else
{
let
newList
=
list
.
map
(
item
=>
{
item
.
rqid
=
this
.
form
.
rqid
item
.
rqCode
=
this
.
form
.
rqCode
item
.
lydjid
=
item
.
id
delete
item
.
id
return
item
})
/* 判定重复*/
let
iscf
=
false
let
lydjidList
=
this
.
editTableConfig
.
editTableData
.
map
(
item
=>
item
.
lydjid
)
newList
.
forEach
(
item
=>
{
if
(
lydjidList
.
includes
(
item
.
lydjid
)){
iscf
=
true
}
else
{
this
.
editTableConfig
.
editTableData
.
push
(
_
.
cloneDeep
(
item
))
}
})
/* 添加完毕要做的*/
if
(
iscf
){
this
.
$warning
(
'存在重复数据,已自动过滤'
)
}
/* 清除数据*/
this
.
form
[
'rqCode'
]
=
''
this
.
form
[
'rqid'
]
=
''
this
.
form
[
'packid'
]
=
''
this
.
form
[
'packcode'
]
=
''
this
.
$forceUpdate
()
}
}
})
}
else
{
}
else
{
this
.
$warning
(
'请选择唯一码'
)
this
.
$warning
(
'请选择唯一码
和容器
'
)
}
}
}
}
...
...
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