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
f1a85900
Commit
f1a85900
authored
Jan 05, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
码盘调整
parent
6ffe60e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
175 additions
and
217 deletions
+175
-217
index.vue
src/views/ccgl/kngl/zlhbg/top/index.vue
+95
-150
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+0
-1
mp.vue
src/views/ccgl/rkgl/mpzy/top/mp.vue
+80
-66
No files found.
src/views/ccgl/kngl/zlhbg/top/index.vue
View file @
f1a85900
<
template
>
<BasePage
@
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
@
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>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/kcgl/zlhbg'
,
tableTitle
:
[
{
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/kcgl/zlhbg'
,
tableTitle
:
[{
title
:
"变更单号"
,
field
:
"
bgdh
"
,
field
:
"
djid
"
,
width
:
140
},
{
title
:
"变更日期"
,
field
:
"bg
rq"
,
fieldType
:
'ftDate'
title
:
"变更日期"
,
field
:
"yw
rq"
,
fieldType
:
'ftDate'
},
{
title
:
"SAP变更类型"
,
field
:
"sap
bglx"
,
fieldType
:
'ftDate'
title
:
"SAP变更类型"
,
field
:
"
bglx"
,
width
:
140
},
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"入库日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
{
title
:
"入库人"
,
field
:
"rkr"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
{
title
:
"入库部门"
,
field
:
"bmName"
,
width
:
140
},
{
title
:
"单据来源
"
,
field
:
"djly
"
,
width
:
14
0
,
title
:
"状态
"
,
field
:
"zt
"
,
width
:
10
0
,
"transform"
:
{
"url"
:
"wms/rkgl/rktz/init/djly
"
,
"label"
:
"name"
,
"value"
:
"id"
"url"
:
"lxyl/kcgl/zlhbg/init/zt
"
,
"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
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'单据编号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
],[
{
label
:
'状态'
,
prop
:
'zt'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/rkgl/rktz/init/zt'
}
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[{
label
:
'日期'
,
startProp
:
"start"
,
endProp
:
"end"
,
span
:
8
,
type
:
'RelDaterangeV2'
,
startValue
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/rkgl/rktz/init/swlx'
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'变更单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
label
:
'负责人'
,
prop
:
'fzr'
,
span
:
4
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
]
],
/* 默认启停用 */
}
}
}
}
},
methods
:
{
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
},
methods
:
{
getRow
(
val
)
{
this
.
$emit
(
'getRow'
,
val
)
}
},
components
:
{
Edit
}
},
components
:
{
Edit
}
}
}
</
script
>
<
style
>
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
f1a85900
...
...
@@ -97,7 +97,6 @@
this
.
$warning
(
'请选择一条入库单'
)
}
else
{
this
.
showDialog
=
true
console
.
log
(
this
.
form
.
lydjid
)
/* 开启弹框*/
}
},
...
...
src/views/ccgl/rkgl/mpzy/top/mp.vue
View file @
f1a85900
...
...
@@ -27,24 +27,26 @@
label:'packCode'}" :match="{
label:'packCode',
value:'packid'
}" code='WMSBZGLMX' :form='form' />
}" :queryParams='{
id:app.app.singleItem.id
}' code='WMSBZGLMXMPZY' :form='form' />
</div>
</el-col>
</el-row>
<!-- -->
</div>
<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
>
</el-table-column>
</template>
<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
>
</el-table-column>
</template>
</EditTable>
...
...
@@ -80,9 +82,8 @@
},
data
()
{
return
{
editTableConfig
:{
editTableTitle
:[
{
editTableConfig
:
{
editTableTitle
:
[{
label
:
"容器"
,
prop
:
"rqCode"
,
width
:
170
...
...
@@ -122,14 +123,14 @@
prop
:
"packCode"
,
width
:
240
}
],
editTableData
:[]
],
editTableData
:
[]
},
form
:
{
rqid
:
''
,
rqCode
:
''
,
id
:
''
,
code
:
''
id
:
''
,
code
:
''
}
...
...
@@ -137,76 +138,89 @@
},
methods
:
{
/* 重新渲染表格 */
del
(
index
){
del
(
index
)
{
this
.
editTableConfig
.
editTableData
.
splice
(
index
,
1
)
this
.
editTableConfig
.
editTableData
.
splice
(
index
,
1
)
},
save
()
{
if
(
this
.
editTableConfig
.
editTableData
.
length
>
0
){
let
list
=
this
.
editTableConfig
.
editTableData
||
[]
list
.
forEach
(
item
=>
item
.
mpsl
=
item
.
sl
)
this
.
$emit
(
'save'
,
list
)
this
.
app
.
showDialog
=
false
if
(
this
.
editTableConfig
.
editTableData
.
length
>
0
)
{
let
list
=
this
.
editTableConfig
.
editTableData
||
[]
list
.
forEach
(
item
=>
item
.
mpsl
=
item
.
sl
)
this
.
$emit
(
'save'
,
list
)
this
.
app
.
showDialog
=
false
/* 触发传递事件*/
}
else
{
}
else
{
this
.
$warning
(
'请添加数据后保存'
)
}
},
search
()
{
/* 卡下数据*/
if
(
this
.
form
.
packCode
&&
this
.
form
.
rqid
)
{
if
(
this
.
form
.
packCode
&&
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
))
this
.
$post
(
'wms/rkgl/mpzy/checkRqAndPack'
,
{
id
:
this
.
app
.
app
.
singleItem
.
id
,
rqid
:
this
.
form
.
rqid
,
packid
:
this
.
form
.
packid
}).
then
(
res
=>
{
if
(
res
.
success
)
{
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
(
'存在重复数据,已自动过滤'
)
}
})
/* 添加完毕要做的*/
if
(
iscf
){
this
.
$warning
(
'存在重复数据,已自动过滤'
)
}
/* 清除数据*/
this
.
form
[
'rqCode'
]
=
''
this
.
form
[
'rqid'
]
=
''
this
.
form
[
'packid'
]
=
''
this
.
form
[
'packCode'
]
=
''
this
.
$forceUpdate
()
/* 清除数据*/
this
.
form
[
'rqCode'
]
=
''
this
.
form
[
'rqid'
]
=
''
this
.
form
[
'packid'
]
=
''
this
.
form
[
'packCode'
]
=
''
this
.
$forceUpdate
()
}
}
})
}
})
let
params
=
{
code
:
this
.
form
.
packCode
}
}
else
{
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