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
7defc3d0
Commit
7defc3d0
authored
Feb 29, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库区管理定制页面
parent
60c2211a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
206 additions
and
1 deletion
+206
-1
index.js
src/router/index.js
+1
-1
edit.vue
src/views/ccgl/jcsj/kqgl/edit.vue
+77
-0
index.vue
src/views/ccgl/jcsj/kqgl/index.vue
+128
-0
No files found.
src/router/index.js
View file @
7defc3d0
...
@@ -74,7 +74,7 @@ export const powerRoutes = [
...
@@ -74,7 +74,7 @@ export const powerRoutes = [
path
:
"ckgl"
,
path
:
"ckgl"
,
},
},
{
{
erpComponent
:
true
,
//
erpComponent: true,
component
:
'ccgl/jcsj/kqgl/index'
,
component
:
'ccgl/jcsj/kqgl/index'
,
hidden
:
false
,
hidden
:
false
,
meta
:
{
meta
:
{
...
...
src/views/ccgl/jcsj/kqgl/edit.vue
0 → 100644
View file @
7defc3d0
<
template
>
<RelDialog
: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="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
v-rule=
"
{
required:true,
rules:rules,
}" 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="type" prop="type">
<RelSelect
style=
"width: 100%;"
src=
'lxyl/jcsj/kq/init/type'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.type' >
</RelSelect>
</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
:
''
,
bz
:
''
,
// type:'N'
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/ccgl/jcsj/kqgl/index.vue
0 → 100644
View file @
7defc3d0
<
template
>
<BasePage
class=
"min_full"
:config=
"config"
>
<template
#
dialog=
"ctx"
>
<!-- 嵌入默认页面额外弹框的插槽 ctx.pagePage来操作默认页面 -->
</
template
>
<
template
#
toolbar=
"ctx"
>
</
template
>
</BasePage>
</template>
<
script
>
import
Edit
from
'./edit.vue'
export
default
{
data
()
{
return
{
config
:
{
/* 基本配置*/
url
:
'lxyl/jcsj/kq'
,
tableTitle
:
[
{
title
:
"仓库"
,
field
:
"ckName"
,
width
:
120
},
{
title
:
"编码"
,
field
:
"code"
,
with
:
120
,
},
{
title
:
"名称"
,
field
:
"name"
,
width
:
140
,
},
{
title
:
"库区类型"
,
field
:
"type"
,
width
:
140
,
"transform"
:
{
"url"
:
"lxyl/jcsj/kq/init/type"
,
"label"
:
"name"
,
"value"
:
"id"
}
},
{
title
:
"状态"
,
field
:
"tybz"
,
fieldType
:
"tybz"
},
{
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"
:
"wms/common/query/kwgl/ck"
,
"match"
:
{
"value"
:
"id"
,
"label"
:
"name"
}
}
},
{
"label"
:
"库区编号"
,
"prop"
:
"code"
,
"type"
:
"input"
,
}
]
],
/* 默认启停用 */
showqt
:
true
,
}
}
},
methods
:
{
/* 示例*/
// demo(basePage){
// }
},
components
:
{
Edit
}
}
</
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