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
Show 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
>
<BasePage
@
getRow=
'getRow'
ref=
"basePage"
:power=
'power'
:toolButton=
'false'
class=
"min_full"
style=
"height: 100%;border-top: 0px;"
:autoQuery=
'false'
:config=
"config"
>
<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
>
...
...
@@ -20,7 +20,7 @@
},
mixins
:
[
wlsx
,
wlphsx
],
mixins
:
[
wlsx
,
wlphsx
],
data
()
{
return
{
power
:
{
...
...
@@ -44,18 +44,18 @@
queryUrl
:
'wms/ckgl/dbck/query/detail'
,
tableTitle
:
[{
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlmc
"
,
field
:
"wlxxName
"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"g
g"
,
field
:
"wlxxG
g"
,
width
:
140
},
{
...
...
@@ -101,13 +101,13 @@
},
methods
:
{
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
},
demo
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
demo
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
console
.
log
(
ctx
.
singleItem
)
}
else
{
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
...
...
src/views/ccgl/ckgl/dbckd/top/edit.vue
View file @
d64c90dc
...
...
@@ -5,8 +5,7 @@
<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"
/>
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
...
...
@@ -54,8 +53,9 @@
list
.
forEach
(
item
=>
{
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlmc
=
item
.
name
item
.
wlcode
=
item
.
code
item
.
wlxxName
=
item
.
name
item
.
wlxxCode
=
item
.
code
item
.
wlxxGg
=
item
.
gg
item
.
xqsl
=
0
item
.
xqrq
=
new
Date
().
getTime
()
delete
item
.
id
...
...
@@ -161,20 +161,21 @@
},
{
title
:
"物料编号"
,
field
:
"c
ode"
,
field
:
"wlxxC
ode"
,
width
:
240
,
type
:
'AuxInput'
,
typeConfig
:
{
"code"
:
"MATERIAL"
,
"label"
:
"wlc
ode"
,
"label"
:
"wlxxC
ode"
,
"transform"
:
{
"value"
:
"code"
,
"label"
:
"code"
},
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
wlxxCode
=
data
.
code
this
.
form
.
wlxxGg
=
data
.
gg
}
...
...
@@ -182,12 +183,12 @@
},
{
title
:
"物料名称"
,
field
:
"wlmc
"
,
field
:
"wlxxName
"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"g
g"
,
field
:
"wlxxG
g"
,
width
:
140
},
{
...
...
src/views/ccgl/ckgl/dbckd/top/index.vue
View file @
d64c90dc
...
...
@@ -69,12 +69,22 @@
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
width
:
140
,
"transform"
:
{
"url"
:
"wms/ckgl/dbck/init/djly"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"状态"
,
field
:
"zt"
,
width
:
140
width
:
140
,
"transform"
:
{
"url"
:
"wms/ckgl/dbck/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"备注"
,
...
...
src/views/ccgl/ckgl/jhd/top/edit.vue
View file @
d64c90dc
...
...
@@ -167,8 +167,6 @@
}
}
},
{
"label"
:
"领料部门"
,
"prop"
:
"bmid"
,
...
...
src/views/ccgl/rkgl/dbrkd/rkdmx.vue
View file @
d64c90dc
...
...
@@ -44,18 +44,18 @@
queryUrl
:
'wms/rkgl/dbrk/query/detail'
,
tableTitle
:
[{
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
},
{
...
...
src/views/ccgl/rkgl/dbrkd/rkqd.vue
View file @
d64c90dc
...
...
@@ -42,18 +42,18 @@
queryUrl
:
'wms/rkgl/dbrk/query/dbrkqd'
,
tableTitle
:
[{
title
:
"物料编号"
,
field
:
"wl
c
ode"
,
field
:
"wl
xxC
ode"
,
fieldType
:
"upper"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
},
{
...
...
src/views/ccgl/rkgl/dbrkd/top/edit.vue
View file @
d64c90dc
...
...
@@ -54,8 +54,9 @@
list
.
forEach
(
item
=>
{
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlmc
=
item
.
name
item
.
wlcode
=
item
.
code
item
.
wlxxName
=
item
.
name
item
.
wlxxCode
=
item
.
code
item
.
wlxxGg
=
item
.
gg
item
.
xqsl
=
0
item
.
xqrq
=
new
Date
().
getTime
()
delete
item
.
id
...
...
@@ -161,20 +162,21 @@
},
{
title
:
"物料编号"
,
field
:
"
c
ode"
,
field
:
"
wlxxC
ode"
,
width
:
240
,
type
:
'AuxInput'
,
typeConfig
:
{
"code"
:
"MATERIAL"
,
"label"
:
"wl
c
ode"
,
"label"
:
"wl
xxC
ode"
,
"transform"
:
{
"value"
:
"code"
,
"label"
:
"code"
},
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlmc
=
data
.
name
this
.
form
.
wlcode
=
data
.
code
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
wlxxCode
=
data
.
code
this
.
form
.
wlxxGg
=
data
.
gg
}
...
...
@@ -182,12 +184,12 @@
},
{
title
:
"物料名称"
,
field
:
"wl
mc
"
,
field
:
"wl
xxName
"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"
g
g"
,
field
:
"
wlxxG
g"
,
width
:
140
},
{
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
d64c90dc
...
...
@@ -55,15 +55,20 @@
},
methods
:
{
mpSave
(
list
)
{
let
length
=
this
.
formDetail
.
length
this
.
formDetail
.
splice
(
0
,
length
)
list
.
forEach
(
item
=>
{
item
.
lydjid
=
item
.
id
delete
item
.
id
/* 可持续添加*/
let
iscf
=
false
let
lydjidList
=
this
.
formDetail
.
map
(
item
=>
item
.
lydjid
)
list
.
forEach
(
item
=>
{
if
(
lydjidList
.
includes
(
item
.
lydjid
)){
iscf
=
true
}
else
{
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
}
})
if
(
iscf
){
this
.
$warning
(
'存在重复数据,已自动过滤'
)
}
this
.
$forceUpdate
()
},
mp
()
{
if
(
!
this
.
form
.
lydjid
)
{
...
...
@@ -76,45 +81,9 @@
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择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
()
{
return
{
...
...
@@ -288,15 +257,15 @@
field
:
"packCode"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
//
{
//
title: "维护人",
//
field: "whr"
//
},
//
{
//
title: "维护时间",
//
field: "whsj",
//
fieldType: "ftDateTime"
//
},
]
...
...
src/views/ccgl/rkgl/mpzy/top/mp.vue
View file @
d64c90dc
...
...
@@ -4,7 +4,7 @@
<div
class=
"full"
>
<div
class=
"mpSearch"
style=
"position: relative;"
>
<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"
>
...
...
@@ -34,17 +34,19 @@
<!-- -->
</div>
<BasePage
ref=
"basePage"
:toolButton=
'false'
:power=
'power'
class=
"min_full"
:config=
"config"
style=
"height:calc(100% - 45px) ;width: 100%;"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<EditTable
staticHeader
ref=
"editTable"
:app=
'editTableConfig'
>
<template
slot=
"tabCustom"
>
<el-table-column
label=
"操作"
width=
"90"
header-align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<el-button
style=
"text-align: center;color: red;width: 100%;"
@
click
.
native
.
prevent=
"del(scope.$index)"
type=
"text"
size=
"small"
>
<i
class=
"el-icon-delete"
></i>
删除
</el-button>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</el-table-column>
</template>
</
BasePag
e>
</
EditTabl
e>
</div>
</div>
...
...
@@ -57,6 +59,10 @@
</DefaultDialog>
</template>
<
script
>
/* 逻辑变更
容器+唯一码搜索并添加,清除容器+唯一码,可单条删除
可继续添加,可删除
*/
export
default
{
props
:
{
...
...
@@ -74,101 +80,130 @@
},
data
()
{
return
{
form
:
{
rqid
:
''
,
rqCode
:
''
},
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
editTableConfig
:{
editTableTitle
:[
{
label
:
"容器"
,
prop
:
"rqCode"
,
width
:
170
},
config
:
{
/* 基本配置*/
url
:
'wms/common/queryPackByCode'
,
queryUrl
:
"wms/common/queryPackmxByCode"
,
tableTitle
:
[{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
{
label
:
"物料编码"
,
prop
:
"wlxxCode"
,
width
:
170
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
1
4
0
label
:
"物料名称"
,
prop
:
"wlxxName"
,
width
:
1
7
0
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
1
4
0
label
:
"物料规格"
,
prop
:
"wlxxGg"
,
width
:
1
7
0
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
1
4
0
label
:
"物料批号"
,
prop
:
"wlph"
,
width
:
1
7
0
},
{
title
:
"物料数量"
,
field
:
"sl"
,
label
:
"物料数量"
,
prop
:
"sl"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
label
:
"制令号"
,
prop
:
"zlh"
,
width
:
140
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
label
:
"唯一码"
,
prop
:
"packCode"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
},
}
],
queryParams
:
[]
editTableData
:[]
},
form
:
{
rqid
:
''
,
rqCode
:
''
,
id
:
''
,
code
:
''
}
}
},
methods
:
{
/* 重新渲染表格 */
del
(
index
){
this
.
editTableConfig
.
editTableData
.
splice
(
index
,
1
)
},
save
()
{
if
(
this
.
form
.
rqid
){
let
list
=
this
.
$refs
.
basePage
.
tabData
||
[]
list
.
forEach
(
item
=>
{
item
.
rqid
=
this
.
form
.
rqid
item
.
rqCode
=
this
.
form
.
rqCode
})
if
(
this
.
editTableConfig
.
editTableData
.
length
>
0
){
let
list
=
this
.
editTableConfig
.
editTableData
||
[]
this
.
$emit
(
'save'
,
list
)
this
.
app
.
showDialog
=
false
/* 触发传递事件*/
}
else
{
this
.
$warning
(
'请
选择容器
后保存'
)
this
.
$warning
(
'请
添加数据
后保存'
)
}
},
search
()
{
/* 卡下数据*/
if
(
this
.
form
.
packid
)
{
this
.
$refs
.
basePage
.
queryParams
.
code
=
this
.
form
.
packcode
this
.
$refs
.
basePage
.
refresh
()
if
(
this
.
form
.
packid
&&
this
.
form
.
rqid
)
{
//
this.$refs.basePage.queryParams.code = this.form.packcode
//
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
{
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