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
bca613a6
Commit
bca613a6
authored
Feb 27, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a little pages
parent
244d7dea
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1410 additions
and
8 deletions
+1410
-8
index.js
src/router/index.js
+31
-1
ajydk.vue
src/views/ccgl/ckgl/dbckd/top/ajydk.vue
+299
-0
index.vue
src/views/ccgl/ckgl/dbckd/top/index.vue
+15
-5
jyd.vue
src/views/ccgl/ckgl/dbckd/top/jyd.vue
+184
-0
dialog.vue
src/views/ccgl/kcpd/pdd/dialog.vue
+45
-0
edit.vue
src/views/ccgl/kcpd/pdd/edit.vue
+261
-0
index.vue
src/views/ccgl/kcpd/pdd/index.vue
+176
-0
jyd.vue
src/views/ccgl/kcpd/pdd/jyd.vue
+213
-0
mp.vue
src/views/ccgl/kngl/bzzy/top/mp.vue
+1
-1
edit.vue
src/views/ccgl/rkgl/mpzy/top/edit.vue
+6
-1
index.vue
src/views/ccgl/rkgl/mpzy/top/wmsRkd/index.vue
+179
-0
No files found.
src/router/index.js
View file @
bca613a6
...
...
@@ -924,7 +924,7 @@ export const powerRoutes = [
]
},
{
erpComponent
:
tru
e
,
erpComponent
:
fals
e
,
component
:
'template/index'
,
hidden
:
false
,
meta
:
{
...
...
@@ -965,6 +965,36 @@ export const powerRoutes = [
}
]
},
/* 盘点*/
{
erpComponent
:
true
,
component
:
'template/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"库存盘点"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
'920090000'
,
},
redirect
:
'pdd'
,
name
:
'kcpd'
,
path
:
"kcpd"
,
children
:
[{
component
:
'ccgl/kcpd/pdd/index'
,
hidden
:
false
,
meta
:
{
"title"
:
"盘点单"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
920090100
,
},
name
:
'pdd'
,
path
:
"pdd"
,
},
]
},
]
}
...
...
src/views/ccgl/ckgl/dbckd/top/ajydk.vue
0 → 100644
View file @
bca613a6
<
template
>
<RelDialog
bigTitle
detailTable=
'DBCKQD'
@
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"
>
<Jyd
@
save=
'jydSave'
v-if=
"showDialog"
:app=
'this'
/>
<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"
/>
<!-- 额外数据 -->
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
:AuxButton=
'false'
code=
'WMSWLXX'
:indexApp=
'app'
:type=
'type'
@
save=
'save'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
#
toolbar=
"ctx"
>
<el-button
@
click=
"xzkc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按检验单开
</el-button>
<!--
<AuxButton
:queryParams=
"
{
ckid:form.ckid
}" rename='选择库存' code='WLKC' @save="savekc" /> -->
</
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-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<
script
>
import
Jyd
from
'./jyd.vue'
import
{
toFixed
,
doRkdChange
}
from
'common/src/utils/blur.js'
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
jydSave
(
obj
){
let
{
list
}
=
obj
this
.
form
.
ckid
=
list
[
0
].
ckid
this
.
form
.
hzid
=
list
[
0
].
hzid
this
.
form
.
hzName
=
list
[
0
].
hzName
// this.form.ywrq=row.ywrq
let
length
=
this
.
formDetail
.
length
this
.
formDetail
.
splice
(
0
,
length
)
list
.
forEach
(
item
=>
{
item
.
bcsl
=
item
.
kcsl
item
.
lydjid
=
item
.
id
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
},
xzkc
(){
this
.
showDialog
=
true
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择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
))
})
}
},
components
:{
Jyd
},
data
()
{
return
{
form
:{
djly
:
'JYD'
},
DialogWidth
:
'70vw'
,
DialogName
:
''
,
DialogTitle
:
'选择检验单'
,
showDialog
:
false
,
/* 常规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
,
readonly
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"拨入仓库"
,
"prop"
:
"dfckid"
,
"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"
:
"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
:
'货主'
,
readonly
:
true
,
prop
:
'hzid'
,
span
:
8
,
required
:
true
,
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
true
,
code
:
'HZID'
,
label
:
'hzName'
,
transform
:
{
value
:
'id'
,
label
:
'name'
}
}
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
16
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
240
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
allowEdit
:
false
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
180
,
allowEdit
:
false
},
{
title
:
"调拨数量"
,
field
:
"bcsl"
,
allowEdit
:
false
,
type
:
'inputNumber'
,
width
:
200
,
blur
:
toFixed
(
null
),
},
/* 不可编辑*/
// {
// title: "出库数量",
// field: "cksl",
// width: 200,
// },
{
title
:
"物料批号"
,
field
:
"wlph"
,
type
:
'inputText'
,
allowEdit
:
false
,
width
:
180
,
},
{
title
:
"库位"
,
field
:
"kwName"
,
width
:
240
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
160
,
},
// {
// 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/ckgl/dbckd/top/index.vue
View file @
bca613a6
...
...
@@ -2,11 +2,13 @@
<BasePage
:power=
'power'
@
getRow=
'getRow'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Akck
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='akck'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
<Ajydk
:type=
"'add'"
v-if=
"ctx.basePage.showAdd&&showName=='ajydk'"
:app=
'ctx.basePage'
:buttonApp=
'ctx.basePage'
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"akck(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按库存开
</el-button>
<el-button
@
click=
"ajydk(ctx.basePage)"
size=
'mini'
type=
"primary"
>
按检验单开
</el-button>
<el-button
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
</
template
>
...
...
@@ -17,19 +19,21 @@
<
script
>
import
Edit
from
'./edit.vue'
import
Akck
from
'./akck.vue'
import
Ajydk
from
'./ajydk.vue'
export
default
{
data
()
{
return
{
showName
:
''
,
showAdd
:
false
,
power
:
{
add
:
false
,
copy
:
false
,
/* 手动控制删除 */
delButton
:
fals
e
,
delButton
:
tru
e
,
/* 手动控制编辑按钮权限 */
editButton
:
fals
e
,
editButton
:
tru
e
,
/* 是否渲染右侧操作按钮 */
operateButtons
:
fals
e
,
operateButtons
:
tru
e
,
/* 是否开启工作流按钮 */
workFlow
:
false
,
/* 表格开启选择,以及记住选择 */
...
...
@@ -240,6 +244,11 @@
}
},
akck
(
ctx
){
this
.
showName
=
'akck'
ctx
.
showAdd
=
true
},
ajydk
(
ctx
){
this
.
showName
=
'ajydk'
ctx
.
showAdd
=
true
},
/* 示例*/
...
...
@@ -249,7 +258,8 @@
},
components
:
{
Edit
,
Akck
Akck
,
Ajydk
}
}
...
...
src/views/ccgl/ckgl/dbckd/top/jyd.vue
0 → 100644
View file @
bca613a6
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
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/ckgl/dbck/query/kc'
,
queryUrl
:
'wms/ckgl/dbck/query/kc'
,
tableTitle
:
[{
title
:
"库位"
,
field
:
"kwName"
,
width
:
100
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
180
,
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
,
},
{
title
:
"库位名称"
,
field
:
"wlxxName"
,
width
:
120
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
120
,
fieldType
:
'float'
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
180
,
},
],
queryParams
:
[
[{
label
:
'物料信息'
,
prop
:
'wlinfo'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
save
(){
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
){
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
let
obj
=
{
list
:
list
}
/* 判定list wlid是否重复*/
let
hzid
=
list
.
map
(
item
=>
item
.
hzid
)
hzid
=
[...
new
Set
(
hzid
)]
if
(
hzid
.
length
>
1
){
this
.
$warning
(
'所选项货主不唯一,请选择相同货主的数据。'
)
}
else
{
this
.
$emit
(
'save'
,
obj
)
this
.
app
.
showDialog
=
false
}
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kcpd/pdd/dialog.vue
0 → 100644
View file @
bca613a6
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
DialogTitle:'新增',
showDialog:false,
</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
{
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kcpd/pdd/edit.vue
0 → 100644
View file @
bca613a6
<
template
>
<RelDialog
bigTitle
detailTable=
'KCPDMX'
@
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"
>
<Jyd
@
save=
'jydSave'
v-if=
"showDialog"
:app=
'this'
/>
<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"
/>
<!-- 额外数据 -->
</el-row>
<div
class=
"editTab"
>
<editTableForEdit
:AuxButton=
'false'
code=
'WMSWLXX'
:indexApp=
'app'
:type=
'type'
@
save=
'save'
ref=
"editTableForEdit"
:editTableTitle=
'editTableTitle'
v-if=
"editTableForEdit"
:computedRow=
'computedRow'
:editTableData=
"formDetail"
>
<template
#
toolbar=
"ctx"
>
<el-button
@
click=
"xzkc(ctx.basePage)"
size=
'mini'
type=
"primary"
>
生成盘点明细
</el-button>
<!--
<AuxButton
:queryParams=
"
{
ckid:form.ckid
}" rename='选择库存' code='WLKC' @save="savekc" /> -->
</
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-form>
<!-- editTab数据 -->
</RelDialog>
</template>
<
script
>
import
Jyd
from
'./jyd.vue'
import
{
toFixed
,
doRkdChange
}
from
'common/src/utils/blur.js'
import
{
editMixin
,
editMixin_expand
}
from
'common'
export
default
{
mixins
:
[
editMixin
,
editMixin_expand
],
methods
:
{
jydSave
(
obj
){
let
{
list
}
=
obj
this
.
form
.
ckid
=
list
[
0
].
ckid
// this.form.hzid=list[0].hzid
// this.form.hzName=list[0].hzName
// this.form.ywrq=row.ywrq
let
length
=
this
.
formDetail
.
length
this
.
formDetail
.
splice
(
0
,
length
)
list
.
forEach
(
item
=>
{
// item.bcsl=item.kcsl
item
.
lydjid
=
item
.
id
delete
item
.
id
this
.
formDetail
.
push
(
_
.
cloneDeep
(
item
))
})
},
xzkc
(){
this
.
showDialog
=
true
},
/* 需要整体row时的回调 */
computedRow
(
row
)
{
// this.$refs.editTableForEdit.$forceUpdate()
},
/* 选择list时的回调 */
save
(
list
)
{
}
},
components
:{
Jyd
},
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
form
.
pdr
=
this
.
username
})
},
data
()
{
return
{
form
:{
// djly:'JYD'
},
DialogWidth
:
'70vw'
,
DialogName
:
''
,
DialogTitle
:
'生成盘点明细'
,
showDialog
:
false
,
/* 常规edit数据 */
editColItemList
:
[{
label
:
'盘点单号'
,
prop
:
'djid'
,
span
:
8
,
type
:
'input'
,
},
{
label
:
'盘点日期'
,
prop
:
'pdrq'
,
span
:
8
,
type
:
'date'
,
value
:
new
Date
().
getTime
(),
"required"
:
true
,
},
{
"label"
:
"盘点仓库"
,
"prop"
:
"ckid"
,
"span"
:
8
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"required"
:
true
,
readonly
:
true
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
label
:
'盘点人'
,
prop
:
'pdr'
,
span
:
8
,
type
:
'input'
,
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
16
,
type
:
'input'
,
},
],
/* 从表编辑数据 */
editTableTitle
:
[{
title
:
"序号"
,
field
:
"xh"
,
width
:
50
,
align
:
"center"
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
240
,
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
100
,
allowEdit
:
false
},
{
title
:
"制令号"
,
field
:
"zlh"
,
type
:
'inputText'
,
width
:
180
,
allowEdit
:
false
},
{
title
:
"库位"
,
field
:
"kwName"
,
width
:
240
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
160
,
},
{
title
:
"冻结数量"
,
field
:
"djsl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
false
},
{
title
:
"盘存数量"
,
field
:
"pcsl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
true
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
false
},
{
title
:
"盘盈数量"
,
field
:
"pysl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
false
},
{
title
:
"盘盈数量"
,
field
:
"pysl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
false
},
{
title
:
"盘亏数量"
,
field
:
"pksl"
,
width
:
200
,
type
:
'inputNumber'
,
allowEdit
:
false
},
{
title
:
"盈亏原因"
,
field
:
"ykyy"
,
width
:
300
,
type
:
'inputText'
,
allowEdit
:
true
},
{
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/kcpd/pdd/index.vue
0 → 100644
View file @
bca613a6
<
template
>
<BasePage
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
<!-- 嵌入默认页面工具栏的插槽 ctx.pagePage来操作默认页面 -->
<el-button
@
click=
"qr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
确认
</el-button>
<el-button
@
click=
"qxqr(ctx.basePage)"
size=
'mini'
type=
"primary"
>
取消确认
</el-button>
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
queryDetail
:
true
,
/* 基本配置*/
url
:
'kc/kcpd'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
width
:
70
,
"transform"
:
{
"url"
:
"kc/kcpd/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"盘点单号"
,
field
:
"djid"
,
fieldType
:
"ftString"
,
width
:
130
},
{
title
:
"盘点仓库"
,
field
:
"ckmc"
,
fieldType
:
"ftString"
,
width
:
160
},
{
title
:
"盘点日期"
,
field
:
"pdrq"
,
fieldType
:
"ftDate"
},
{
title
:
"盘点人"
,
field
:
"pdr"
,
fieldType
:
"ftString"
,
width
:
140
},
{
title
:
"备注"
,
field
:
"bz"
,
fieldType
:
"ftString"
,
width
:
200
},
{
title
:
"维护人"
,
field
:
"whr"
,
fieldType
:
"ftString"
,
width
:
120
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
"ftDateTime"
,
width
:
200
}
],
queryParams
:
[
[{
label
:
'年度'
,
prop
:
'year'
,
span
:
6
,
type
:
'year'
,
value
:
''
},
{
label
:
'盘点单号'
,
prop
:
'djid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"kc/kcpd/init/zt"
,
}
},
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
/* 示例*/
qr
(
ctx
){
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'kc/kcpd/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
(
'kc/kcpd/unconfirm'
,
{
id
:
ctx
.
singleItem
.
id
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
},
components
:
{
Edit
}
}
</
script
>
<
style
>
</
style
>
src/views/ccgl/kcpd/pdd/jyd.vue
0 → 100644
View file @
bca613a6
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
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
:
'kc/kcpd/getKchzmx'
,
queryUrl
:
'kc/kcpd/getKchzmx'
,
tableTitle
:
[{
title
:
"库位"
,
field
:
"kwName"
,
width
:
100
,
},
{
title
:
"容器"
,
field
:
"rqCode"
,
width
:
160
,
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
180
,
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
160
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"计量单位"
,
field
:
"jldwName"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
fieldType
:
'float'
},
{
title
:
"库位名称"
,
field
:
"wlxxName"
,
width
:
120
,
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
180
,
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
120
,
fieldType
:
'float'
},
{
title
:
"货主"
,
field
:
"hzName"
,
width
:
180
,
},
],
queryParams
:
[
[{
label
:
'盘点日期'
,
prop
:
'pdrq'
,
span
:
6
,
type
:
'date'
,
value
:
''
},
{
label
:
'物料'
,
prop
:
'wlid'
,
span
:
6
,
type
:
'input'
,
value
:
''
},
{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
this
.
app
.
form
.
ckid
,
"typeConfig"
:
{
"src"
:
"jcsj/common/ck/queryCkid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"含0库存"
,
"prop"
:
"zero"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
"N"
,
"typeConfig"
:
{
optionsData
:[{
id
:
'N'
,
name
:
'不包含0库存'
},
{
id
:
'Y'
,
name
:
'包含0库存'
}],
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
}
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
save
(){
let
list
=
this
.
$refs
.
basePage
.
$refs
.
TablePager
.
selectedList
||
[]
if
(
list
.
length
==
0
){
this
.
$warning
(
'请至少勾选一条数据'
)
}
else
{
let
obj
=
{
list
:
list
}
/* 判定list wlid是否重复*/
let
hzid
=
list
.
map
(
item
=>
item
.
hzid
)
hzid
=
[...
new
Set
(
hzid
)]
if
(
hzid
.
length
>
1
){
this
.
$warning
(
'所选项货主不唯一,请选择相同货主的数据。'
)
}
else
{
this
.
$emit
(
'save'
,
obj
)
this
.
app
.
showDialog
=
false
}
}
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/kngl/bzzy/top/mp.vue
View file @
bca613a6
...
...
@@ -41,7 +41,7 @@
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"selected()"
>
选 定
</el-button
>
<!-- <el-button type="primary" @click="selected()">选 定</el-button> --
>
<el-button
type=
"primary"
@
click=
"save()"
>
完 成
</el-button>
</span>
</div>
...
...
src/views/ccgl/rkgl/mpzy/top/edit.vue
View file @
bca613a6
...
...
@@ -39,6 +39,7 @@
toFixed
,
doRkdChange
}
from
'common/src/utils/blur.js'
import
wmsRkd
from
'./wmsRkd/index.vue'
import
{
editMixin
,
editMixin_expand
...
...
@@ -169,8 +170,12 @@
type
:
'AuxInput'
,
typeConfig
:
{
isRequest
:
false
,
code
:
'WMSRKD'
,
code
:
true
,
dynamic
:
true
,
label
:
'rktzDjid'
,
component
:
wmsRkd
,
label
:
'rktzDjid'
,
dialogTitle
:
'选择入库单'
,
transform
:
{
value
:
'id'
,
label
:
'djid'
...
...
src/views/ccgl/rkgl/mpzy/top/wmsRkd/index.vue
0 → 100644
View file @
bca613a6
<
template
>
<BasePage
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>
</template>
<
script
>
export
default
{
data
()
{
return
{
power
:
{
add
:
false
,
copy
:
false
,
delButton
:
false
,
editButton
:
false
,
operateButtons
:
false
,
workFlow
:
false
,
/* 表格 */
showSelection
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'wms/rkgl/mpzy/query/rktz'
,
queryUrl
:
'wms/rkgl/mpzy/query/rktz'
,
tableTitle
:
[
{
title
:
"状态"
,
field
:
"bzzt"
,
fieldType
:
"ftString"
,
align
:
'center'
,
width
:
80
,
"transform"
:
{
"url"
:
"wms/rkgl/rktz/init/bzzt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
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
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
}
],
queryParams
:
[
[
{
label
:
'开始日期'
,
prop
:
'start'
,
span
:
6
,
type
:
'date'
,
value
:
''
},
{
label
:
'开始日期'
,
prop
:
'end'
,
span
:
6
,
type
:
'date'
,
value
:
''
},
{
"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'
}
},
{
label
:
'事务类型'
,
prop
:
'swlxid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:
{
src
:
'wms/rkgl/rktz/init/swlx'
}
}
]
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
/* 示例*/
// demo(basePage){
// }
},
components
:
{
}
}
</
script
>
<
style
>
</
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