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
6d48a037
Commit
6d48a037
authored
Mar 01, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
托盘入库
parent
cb457a2a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1553 additions
and
1 deletion
+1553
-1
index.js
src/router/index.js
+14
-1
index.vue
src/views/ccgl/kngl/tprk/index.vue
+102
-0
mx.vue
src/views/ccgl/kngl/tprk/mx.vue
+159
-0
rkqd.vue
src/views/ccgl/kngl/tprk/rkqd.vue
+121
-0
edit.vue
src/views/ccgl/kngl/tprk/top/edit.vue
+405
-0
index.vue
src/views/ccgl/kngl/tprk/top/index.vue
+320
-0
pack.vue
src/views/ccgl/kngl/tprk/top/pack.vue
+172
-0
rq.vue
src/views/ccgl/kngl/tprk/top/rq.vue
+140
-0
shd.vue
src/views/ccgl/kngl/tprk/top/shd.vue
+120
-0
No files found.
src/router/index.js
View file @
6d48a037
...
@@ -843,7 +843,20 @@ export const powerRoutes = [
...
@@ -843,7 +843,20 @@ export const powerRoutes = [
},
},
name
:
'tpck'
,
name
:
'tpck'
,
path
:
"tpck"
,
path
:
"tpck"
,
}
},
{
component
:
'ccgl/kngl/tprk/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"托盘入库"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920070900
,
},
name
:
'tprk'
,
path
:
"tprk"
,
}
]
]
...
...
src/views/ccgl/kngl/tprk/index.vue
0 → 100644
View file @
6d48a037
<
template
>
<div
class=
"outer"
>
<div
class=
" higher flex-column"
>
<!-- 分层-->
<div
class=
"top"
>
<Top
@
getRow=
'topGetRow'
ref=
"top"
></Top>
</div>
<div
class=
"bottom flex"
>
<div
class=
"full"
>
<el-tabs
class=
"full"
v-model=
"activeName"
>
<el-tab-pane
class=
"full"
label=
"入库单明细"
name=
"first"
>
<Mx
ref=
"mx"
class=
"full"
/>
</el-tab-pane>
<el-tab-pane
class=
"full"
label=
"入库清单"
name=
"second"
>
<Rkqd
ref=
"rkqd"
class=
"full"
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
Top
from
'./top/index.vue'
import
Mx
from
'./mx.vue'
import
Rkqd
from
'./rkqd.vue'
export
default
{
components
:
{
Top
,
Mx
,
Rkqd
},
data
(){
return
{
activeName
:
'first'
}
},
methods
:
{
topGetRow
(
row
)
{
/* dom赋值*/
let
mid
=
row
.
id
this
.
$refs
.
mx
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
mx
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
queryParams
.
mid
=
mid
this
.
$refs
.
rkqd
.
$refs
.
basePage
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.outer
{
overflow
:
auto
;
height
:
calc
(
100vh
-
84px
);
width
:
100%
;
.top
{
width
:
100%
;
height
:
45%
;
}
.bottom
{
width
:
100%
;
height
:
55%
;
.left
{
width
:
50%
;
height
:
100%
;
}
.right
{
width
:
50%
;
height
:
100%
;
}
}
}
.higher
{
height
:
140vh
;
}
.flex-column
{
display
:
flex
;
flex-direction
:
column
;
}
::v-deep
.el-tabs__content
{
height
:
calc
(
100%
-
40px
);
}
::v-deep
.el-tabs__nav-scroll
{
padding-left
:
10px
;
}
</
style
>
src/views/ccgl/kngl/tprk/mx.vue
0 → 100644
View file @
6d48a037
<
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"
>
</
template
>
</BasePage>
</template>
<
script
>
import
wlsx
from
'common/src/mixin/wlsx.js'
import
wlphsx
from
'common/src/mixin/wlphsx.js'
export
default
{
mixins
:[
wlphsx
,
wlsx
],
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'lxyl/rkgl/tprk'
,
queryUrl
:
'lxyl/rkgl/tprk/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/tprk/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
:
{
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/kngl/tprk/rkqd.vue
0 → 100644
View file @
6d48a037
<
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
>
export
default
{
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
false
,
/* 手动控制编辑按钮权限 */
editButton
:
false
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
false
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'lxyl/rkgl/tprk'
,
queryUrl
:
'lxyl/rkgl/tprk/query/rkqd'
,
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
:
"yssl"
,
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/kngl/tprk/top/edit.vue
0 → 100644
View file @
6d48a037
<
template
>
<RelDialog
@
beforeCopyDetail=
'beforeCopyDetail'
bigTitle
detailTable=
'RKTZMX'
@
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"
>
<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"
v-if=
"(item.show==false)?false:true"
:prop=
'item.prop'
:key=
"item.prop"
:type=
"item.type"
:typeConfig=
'item.typeConfig'
:rule=
"item.rule"
/>
<!-- 额外数据 -->
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
@
getPhsx=
'getPhsx'
:indexApp=
'app'
code=
'WMSWLXX'
:type=
'type'
@
save=
'save'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
v-if=
"type!='view'"
#
toolbar=
"ctx"
>
<!--
<AuxButton
:queryParams=
"
{
ckid:form.ckid
}" rename='按码盘单开' code='MPD' @save="save" /> -->
</
template
>
</editTableForEdit>
</div>
<el-row
:gutter=
"20"
:app=
"this"
class=
"editRow bottomInfo"
>
<EditColItem
:required=
"item.required||false"
:readonly=
"item.readonly?true:false "
v-for=
"(item,index) in editColItemList2 "
: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-row class="bottomInfo" :gutter="20">
<el-col class="center" :span="12">
创建人:{{
form.cjr||localUser
}}
</el-col>
<el-col class="center" :span="12">
创建时间:{{
$moment(form.cjsj).format('YYYY-MM-DD HH:mm:ss')||$moment().format('YYYY-MM-DD HH:mm:ss')
}}
</el-col>
</el-row> -->
</el-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<
script
>
import
{
toFixed
,
doLxwmsrkd
}
from
'common/src/utils/blur.js'
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
beforeCopyDetail
(
list
){
let
dl
=
[
'wlphScrq'
,
'wlphGqrq'
,
'wlphJyrq'
,
'wlphRkrq'
]
list
.
forEach
(
item
=>
{
dl
.
forEach
(
dit
=>
{
if
(
!
item
[
dit
]){
item
[
dit
]
=
''
}
})
item
.
ztsl
=
0
})
this
.
form
.
mpzt
=
'I'
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
getPhsx
(
arr
){
let
pushArr
=
[
{
prop
:
"wlphScrq"
,
label
:
"生产日期"
,
type
:
'inputDate'
,
width
:
120
,
allowEdit
:
true
,
blur
:
toFixed
(
null
),
change
:
row
=>
doLxwmsrkd
(
row
,
'wlphScrq'
)
},
{
prop
:
"wlphGqrq"
,
label
:
"过期日期"
,
type
:
'inputDate'
,
width
:
120
,
allowEdit
:
true
},
{
prop
:
"wlphJyrq"
,
label
:
"检验日期"
,
type
:
'inputDate'
,
width
:
120
,
allowEdit
:
true
},
{
prop
:
"wlphRkrq"
,
label
:
"入库日期"
,
type
:
'inputDate'
,
width
:
120
,
allowEdit
:
false
},
]
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
prop
==
'wlphScrq'
){
// item=
arr
.
splice
(
index
,
1
)
}
})
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
prop
==
'wlphGqrq'
){
arr
.
splice
(
index
,
1
)
}
})
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
prop
==
'wlphJyrq'
){
arr
.
splice
(
index
,
1
)
}
})
arr
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
prop
==
'wlphRkrq'
){
arr
.
splice
(
index
,
1
)
}
})
pushArr
.
forEach
(
item
=>
{
arr
.
push
(
item
)
})
},
/* 选择list时的回调 */
save
(
list
)
{
list
.
forEach
(
item
=>
{
// 转换并且push
item
.
wlid
=
item
.
id
item
.
wlxxName
=
item
.
name
item
.
wlxxCode
=
item
.
code
item
.
wlxxGg
=
item
.
gg
item
.
xqsl
=
0
item
.
xqrq
=
new
Date
().
getTime
()
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
form
.
whr
=
this
.
username
// this.form.rkr = this.username
})
},
data
()
{
return
{
editColItemList2
:
[{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
readonly
:
true
,
"typeConfig"
:
{
"src"
:
"lxyl/rkgl/tprk/init/zt"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'维护人'
,
prop
:
'whr'
,
type
:
'input'
,
span
:
8
,
readonly
:
true
,
},
{
label
:
'维护时间'
,
prop
:
'whsj'
,
span
:
8
,
type
:
'datetime'
,
readonly
:
true
,
value
:
new
Date
().
getTime
()
}
],
/* 常规edit数据 */
editColItemList
:
[{
label
:
'入库单号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
},
{
label
:
'业务日期'
,
prop
:
'ywrq'
,
span
:
8
,
type
:
'date'
,
value
:
new
Date
().
getTime
(),
"required"
:
true
,
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"事务类型"
,
"prop"
:
"swlxid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
"typeConfig"
:
{
"src"
:
"lxyl/rkgl/tprk/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
:
'hzid'
,
span
:
8
,
type
:
'AuxInput'
,
// required: true,
typeConfig
:
{
isRequest
:
true
,
code
:
'HZID'
,
label
:
'hzName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
{
label
:
'供应商'
,
prop
:
'gysid'
,
span
:
8
,
type
:
'input'
,
readonly
:
true
,
show
:
this
.
type
==
'view'
?
true
:
false
},
{
label
:
'入库人'
,
prop
:
'rkrid'
,
span
:
8
,
type
:
'AuxInput'
,
typeConfig
:
{
code
:
'USER'
,
label
:
'rkrName'
,
transform
:
{
value
:
'id'
,
label
:
'username'
}
},
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
16
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
180
,
type
:
'AuxInput'
,
typeConfig
:
{
"code"
:
"MATERIAL"
,
"label"
:
"wlxxCode"
,
"transform"
:
{
"value"
:
"code"
,
"label"
:
"code"
},
give
(
data
)
{
this
.
form
.
wlid
=
data
.
id
this
.
form
.
wlxxName
=
data
.
name
this
.
form
.
wlxxCode
=
data
.
code
this
.
form
.
wlxxGg
=
data
.
gg
}
}
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
},
// {
// title: "计量单位",
// field: "jldwname",
// width: 100,
// allowEdit: false
// },
/* 不可编辑*/
{
title
:
"物料批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
width
:
180
,
// show: JSON.parse(localStorage.getItem('isPhgl'))
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
180
,
allowEdit
:
true
},
{
title
:
"数量"
,
field
:
"yssl"
,
allowEdit
:
true
,
type
:
'inputNumber'
,
blur
:
toFixed
(
null
),
},
{
title
:
"已入库数量"
,
field
:
"rksl"
,
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
200
,
type
:
'inputText'
,
allowEdit
:
true
}
]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
url("~common/src/assets/styles/editDetail.scss")
;
</
style
>
src/views/ccgl/kngl/tprk/top/index.vue
0 → 100644
View file @
6d48a037
<
template
>
<BasePage
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Shd
v-if=
"ctx.basePage.showDialog"
:app=
'ctx.basePage'
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!--
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'/lxyl/rkgl/tprk/import'" /> -->
<el-button
style=
"margin-left: 10px;"
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
<!--
<el-button
@
click=
"sapgz(ctx.basePage)"
size=
'mini'
type=
"primary"
>
SAP过账
</el-button>
<el-button
@
click=
"tbshd(ctx.basePage)"
size=
'mini'
type=
"primary"
>
同步送货单
</el-button>
-->
<!--
<el-button
@
click=
"qktjkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空推荐库位
</el-button>
-->
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
import
Shd
from
'./shd.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'lxyl/rkgl/tprk'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"lxyl/rkgl/tprk/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"入库单号"
,
field
:
"djid"
,
width
:
140
},
{
title
:
"业务日期"
,
field
:
"ywrq"
,
fieldType
:
'ftDate'
},
// {
// title: "入库人",
// field: "rkr",
// width: 140
// },
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"事务类型"
,
field
:
"swlxName"
,
width
:
100
},
{
title
:
"入库人"
,
field
:
"rkrName"
,
width
:
100
},
{
title
:
"仓库"
,
field
:
"ckid"
,
width
:
140
,
hidden
:
true
},
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
140
},
{
title
:
"码盘状态"
,
field
:
"mpzt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/rkgl/rktz/init/mpzt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"包装状态"
,
field
:
"bzzt"
,
width
:
100
,
"transform"
:
{
"url"
:
"wms/rkgl/rktz/init/bzzt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"过账状态"
,
field
:
"gzzt"
,
width
:
100
,
"transform"
:
{
"url"
:
"lxyl/common/init/gzzt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"部门"
,
field
:
"bmName"
,
width
:
140
},
{
title
:
"单据来源"
,
field
:
"djly"
,
width
:
140
,
"transform"
:
{
"url"
:
"lxyl/rkgl/tprk/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
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
endValue
:
new
Date
().
getTime
(),
},
{
"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/rkgl/tprk/init/zt'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
8
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'lxyl/rkgl/tprk/init/swlx'
}
},
{
label
:
'来源单号'
,
prop
:
'lydh'
,
span
:
8
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
}
}
},
methods
:
{
tbshd
(
ctx
){
ctx
.
DialogWidth
=
'35vw'
ctx
.
DialogTitle
=
'同步送货单'
ctx
.
showDialog
=
true
},
qktjkw
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/sjtz/cleanKw '
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
sapgz
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续该操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/tprk/sap/gz'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
getRow
(
val
){
this
.
$emit
(
'getRow'
,
val
)
},
qr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/tprk/confirm'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据进行操作'
)
}
},
qxqr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
){
this
.
$confirm
(
'是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'lxyl/rkgl/tprk/unconfirm'
,{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据进行操作'
)
}
}
},
components
:
{
Edit
,
Shd
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kngl/tprk/top/pack.vue
0 → 100644
View file @
6d48a037
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
:auxInput=
"false"
ref=
"basePage"
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
ref="basePage"
:power='power' class="min_full" :config="config">
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</
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
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* 基本配置*/
url
:
'wms/rkgl/cskc/query/packinfo'
,
queryUrl
:
'wms/rkgl/cskc/query/packinfo'
,
tableTitle
:
[
// {
// title: "类型",
// field: "djlx",
// width: 80,
// "transform": {
// "url": "wms/kcgl/bzdj/init/djlx",
// "label": "name",
// "value": "id"
// }
// },
// {
// title: "单据号",
// field: "djid",
// fieldType: "ftString",
// width: 160
// },
// {
// title: "业务日期",
// field: "ywrq",
// fieldType: "ftDate"
// },
{
title
:
"包号"
,
field
:
"packCode"
,
fieldType
:
"ftString"
,
width
:
260
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
140
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"物料规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
180
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
},
{
title
:
"原包装数量"
,
field
:
"bzsl"
,
width
:
140
},
{
title
:
"装包数量"
,
field
:
"zbsl"
,
width
:
140
},
],
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
:
'packCode'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
],
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
)
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
let
obj
=
{
list
:
list
}
this
.
$emit
(
'save'
,
obj
)
this
.
app
.
showDialog
=
false
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kngl/tprk/top/rq.vue
0 → 100644
View file @
6d48a037
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
:auxInput=
"false"
ref=
"basePage"
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
ref="basePage"
:power='power' class="min_full" :config="config">
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<!--
<el-button
@
click=
"demo(ctx.basePage)"
size=
'mini'
type=
"primary"
>
示例按钮
</el-button>
-->
</
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
{}
}
}
},
async
mounted
()
{
},
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
true
,
saveSelected
:
true
},
config
:
{
/* 基本配置*/
url
:
'lxyl/ckgl/dbck/query/ukcjyqd'
,
queryUrl
:
'lxyl/ckgl/dbck/query/ukcjyqd'
,
tableTitle
:
[
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
,
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
180
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"数量"
,
field
:
"packmxSl"
,
width
:
80
,
},
{
title
:
"装拖数量"
,
field
:
"ztsl"
,
width
:
80
,
}
],
queryParams
:
[
[{
label
:
'托盘编号'
,
prop
:
'code'
,
span
:
6
,
type
:
'input'
,
value
:
''
}
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
save
()
{
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
)
{
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
let
obj
=
{
list
:
list
}
/* 判定wlxx rqCode packid 是否一致全部一致的判定为重复*/
/* */
this
.
$emit
(
'save'
,
obj
)
this
.
app
.
showDialog
=
false
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kngl/tprk/top/shd.vue
0 → 100644
View file @
6d48a037
<
template
>
<DefaultDialog
v-loading=
'isLoading'
:element-loading-text=
"text"
:app=
'app'
>
<div
slot=
"form"
style=
""
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
v-if=
"loading"
: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"
v-if=
"(item.show==false)?false:true"
: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
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
props
:
{
app
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
}
}
},
async
mounted
()
{
/* 初始化数据 */
this
.
$post
(
'common/datetime'
,{}).
then
(
res
=>
{
let
nowTime
=
res
.
data
.
data
||
new
Date
().
getTime
()
/* 初始赋值*/
this
.
nowTime
=
nowTime
this
.
editColItemList
[
0
].
value
=
nowTime
-
120
*
60
*
1000
this
.
editColItemList
[
1
].
value
=
nowTime
this
.
loading
=
true
})
},
data
()
{
return
{
isLoading
:
false
,
text
:
'正在请求中...'
,
readonly
:
false
,
loading
:
false
,
editColItemList
:[
{
label
:
'开始日期'
,
prop
:
'start'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
{
label
:
'结束日期'
,
prop
:
'end'
,
span
:
24
,
type
:
'datetime'
,
value
:
''
,
"required"
:
true
,
},
]
}
},
methods
:
{
save
(){
this
.
$refs
[
'form'
].
validate
((
valid
)
=>
{
if
(
valid
){
/* 判定开始参数不能大于30天*/
if
(
this
.
form
.
start
<
this
.
nowTime
-
30
*
24
*
60
*
60
*
1000
){
this
.
$warning
(
'最早开始时间不得超过30天'
)
return
}
/* 开始时间和结束时间不能大于120分钟*/
if
(
this
.
form
.
end
-
this
.
form
.
start
>
120
*
60
*
1000
){
this
.
$warning
(
'开始时间与结束时间间隔不能大于120分钟'
)
return
}
if
(
this
.
form
.
start
>
this
.
form
.
end
){
this
.
$warning
(
'开始时间不得晚于结束时间'
)
return
}
/* 构建参数*/
let
params
=
{
start
:
this
.
form
.
start
,
end
:
this
.
form
.
end
}
this
.
isLoading
=
true
this
.
$post
(
'lxyl/rkgl/tprk/scm/sync'
,
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
isLoading
=
false
this
.
$success
(
'操作成功'
)
this
.
app
.
showDialog
=
false
this
.
app
.
refresh
()
}
}).
finally
(
res
=>
{
this
.
isLoading
=
false
})
}
})
}
}
}
</
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