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
6ac9e2dc
Commit
6ac9e2dc
authored
Apr 12, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乐心医疗库位定制
parent
1b6334bb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
503 additions
and
1 deletion
+503
-1
index.js
src/router/index.js
+1
-1
detail.vue
src/views/ccgl/jcsj/kwgl/detail.vue
+114
-0
edit.vue
src/views/ccgl/jcsj/kwgl/edit.vue
+159
-0
index.vue
src/views/ccgl/jcsj/kwgl/index.vue
+229
-0
No files found.
src/router/index.js
View file @
6ac9e2dc
...
...
@@ -88,7 +88,7 @@ export const powerRoutes = [
path
:
"kqgl"
,
},
{
erpComponent
:
tru
e
,
erpComponent
:
fals
e
,
component
:
'ccgl/jcsj/kwgl/index'
,
hidden
:
false
,
meta
:
{
...
...
src/views/ccgl/jcsj/kwgl/detail.vue
0 → 100644
View file @
6ac9e2dc
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
style=
"display: flex;height: 70vh;"
>
<BasePage
@
basePageMounted=
'basePageMounted'
:power=
'power'
class=
"min_full"
style=
"height: 100%;"
:config=
"config"
>
</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
:
false
,
saveSelected
:
false
},
config
:
{
/* 基本配置*/
url
:
'wms/cxfx/kwmx'
,
queryUrl
:
'wms/jcsj/kw/queryKwmx'
,
tableTitle
:
[
{
title
:
"容器编码"
,
field
:
"rqCode"
,
width
:
140
},
{
title
:
"唯一码"
,
field
:
"packCode"
,
width
:
140
},
{
title
:
"物料编码"
,
field
:
"wlxxCode"
,
width
:
140
},
{
title
:
"物料名称"
,
field
:
"wlxxName"
,
width
:
140
},
{
title
:
"规格"
,
field
:
"wlxxGg"
,
width
:
140
},
{
title
:
"物料批号"
,
field
:
"wlph"
,
width
:
140
},
{
title
:
"制令号"
,
field
:
"zlh"
,
width
:
140
},
{
title
:
"库存数量"
,
field
:
"kcsl"
,
width
:
140
}
],
queryParams
:
[
],
/* 默认启停用 */
showqt
:
false
,
}
}
},
methods
:
{
basePageMounted
(
ctx
){
ctx
.
queryParams
.
kwid
=
this
.
app
.
singleItem
.
id
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/ccgl/jcsj/kwgl/edit.vue
0 → 100644
View file @
6ac9e2dc
<
template
>
<RelDialog
@
getForm=
'getForm'
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="仓库" ref="ckid" prop="ckid">
<RelSelect
style=
"width: 100%;"
src=
'wms/common/query/kwgl/ck'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.ckid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="库区" ref="kqid" prop="kqid">
<RelSelect
style=
"width: 100%;"
linkage
:linkParams=
"
{ckid:form.ckid}" src='wms/common/query/kq' clearable :match="{value:'id',label:'name'}" v-model='form.kqid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="编码" ref="code" prop="code">
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="库区类型" ref="kwlx" prop="kwlx">
<RelSelect
style=
"width: 100%;"
src=
'jcsj/kw/init/kwfl'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.kwlx' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"外侧库位"
ref=
"wckwid"
prop=
"wckwid"
>
<RelSelect
filterable
style=
"width: 100%;"
src=
'jcsj/kw/query'
@
change=
"wckwidChange"
linkage
:linkParams=
"
{ckid:form.ckid}" :params="{tybz:'N'}" clearable :match="{value:'id',label:'code'}" v-model='form.wckwid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"ABC"
ref=
"abc"
prop=
"abc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.abc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"货架"
ref=
"hjid"
prop=
"hjid"
>
<RelSelect
style=
"width: 100%;"
linkage
:linkParams=
"
{ckid:form.ckid}" src='wms/jcsj/kw/init/hj' clearable :match="{value:'id',label:'name'}" v-model='form.hjid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="排" ref="kwx" prop="kwx">
<el-input
:readonly=
"readonly"
v-model=
"form.kwx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="列" ref="kwy" prop="kwy">
<el-input
:readonly=
"readonly"
v-model=
"form.kwy"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="层" ref="kwz" prop="kwz">
<el-input
:readonly=
"readonly"
v-model=
"form.kwz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
''
,
id
:
''
,
name
:
''
,
ckid
:
''
,
kqid
:
''
,
kwlx
:
''
,
nckwbz
:
'N'
,
wckwid
:
''
,
kwx
:
''
,
kwy
:
''
,
kwz
:
''
,
bz
:
''
,
abc
:
''
}
}
},
methods
:
{
getForm
(
form
){
if
(
this
.
type
==
'copy'
){
form
.
zt
=
''
form
.
name
=
''
form
.
kczt
=
''
}
},
wckwidChange
(
e
){
if
(
e
){
this
.
form
.
nckwbz
=
"Y"
}
else
{
this
.
form
.
nckwbz
=
"N"
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.wz-border
{
border
:
1px
solid
lightgray
;
padding
:
10px
;
width
:
96%
;
margin
:
0
2%
;
margin-bottom
:
15px
;
border-radius
:
5px
;
.el-form-item
{
margin-bottom
:
0
;
}
}
.wz-text
{
margin-bottom
:
0
;
}
</
style
>
src/views/ccgl/jcsj/kwgl/index.vue
0 → 100644
View file @
6ac9e2dc
<
template
>
<BasePage
:setFirstCurrent=
'false'
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
<Detail
:app=
'ctx.basePage'
v-if=
"ctx.basePage.showDialog"
/>
</
template
>
<
template
#
toolbar=
"ctx"
>
<ImportButton
@
success=
"()=>
{
ctx.basePage.refresh()
}" :url="'lxyl/jcsj/kw/import'" />
<el-button
style=
"margin-left: 10px;"
@
click=
"qkkw(ctx.basePage)"
size=
'mini'
type=
"primary"
>
清空库位
</el-button>
<el-button
style=
"margin-left: 10px;"
@
click=
"ckxq(ctx.basePage)"
size=
'mini'
type=
"primary"
>
查看详情
</el-button>
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
import
Detail
from
'./detail.vue'
export
default
{
data
()
{
return
{
config
:
{
/* 基本配置*/
url
:
'wms/jcsj/kw'
,
tableTitle
:
[{
title
:
"状态"
,
field
:
"zt"
,
width
:
80
,
"transform"
:
{
"url"
:
"wms/jcsj/kw/init/zt"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"库位编码"
,
field
:
"code"
,
width
:
120
},
{
title
:
"库位"
,
field
:
"name"
,
width
:
120
},
{
title
:
"仓库"
,
field
:
"ckName"
,
with
:
120
,
},
{
title
:
"库区"
,
field
:
"kqName"
,
width
:
140
,
},
{
title
:
"货架"
,
field
:
"hjName"
,
width
:
140
,
},
{
title
:
"排"
,
field
:
"kwx"
,
width
:
80
,
},
{
title
:
"列"
,
field
:
"kwy"
,
width
:
80
,
},
{
title
:
"层"
,
field
:
"kwz"
,
width
:
80
,
},
{
title
:
"存储状态"
,
field
:
"kczt"
,
"transform"
:
{
"url"
:
"wms/jcsj/kw/init/kczt "
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"外层库位"
,
field
:
"wcKwCode"
,
width
:
120
,
},
{
title
:
"ABC"
,
field
:
"abc"
,
width
:
170
},
{
title
:
"停用日期"
,
field
:
"tyrq"
,
fieldType
:
'ftDate'
},
{
title
:
"备注"
,
field
:
"bz"
,
width
:
240
},
{
title
:
"维护人"
,
field
:
"whr"
},
{
title
:
"维护时间"
,
field
:
"whsj"
,
fieldType
:
'ftDateTime'
},
{
title
:
"创建人"
,
field
:
"cjr"
,
hidden
:
true
},
{
title
:
"创建时间"
,
field
:
"cjsj"
,
fieldType
:
'ftDateTime'
,
hidden
:
true
}
],
queryParams
:
[
[{
"label"
:
"仓库"
,
"prop"
:
"ckid"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"lxyl/jcsj/uck/ck/queryCjckid"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"库位信息"
,
"prop"
:
"kwInfo"
,
"span"
:
6
,
"type"
:
"input"
,
"value"
:
""
,
},
{
"label"
:
"状态"
,
"prop"
:
"zt"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"wms/jcsj/kw/init/zt"
,
}
},
{
"label"
:
"存储状态"
,
"prop"
:
"kczt"
,
"span"
:
6
,
"type"
:
"RelSelect"
,
"value"
:
""
,
"typeConfig"
:
{
"src"
:
"wms/jcsj/kw/init/kczt"
,
}
},
]
],
/* 默认启停用 */
showqt
:
true
,
}
}
},
methods
:
{
qkkw
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
this
.
$confirm
(
'是否继续操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
res
=>
{
this
.
$post
(
'wms/jcsj/kw/clean'
,
{
ids
:
[
ctx
.
singleItem
.
id
]
}).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
ctx
.
refresh
()
}
})
})
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
},
ckxq
(
ctx
)
{
if
(
ctx
.
singleItem
&&
ctx
.
singleItem
.
id
)
{
ctx
.
DialogWidth
=
'80vw'
ctx
.
DialogTitle
=
'查看详情'
ctx
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选中一条数据'
)
}
}
/* 示例*/
// demo(basePage){
// }
},
components
:
{
Edit
,
Detail
}
}
</
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