Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gavel-erp-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
李苏
gavel-erp-vue
Commits
c71e3edc
Commit
c71e3edc
authored
Jul 28, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新版edit 页面《未完》
parent
51acd15e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
249 additions
and
78 deletions
+249
-78
edit.vue
src/views/baseData/material/info/edit.vue
+247
-76
vue.config.js
vue.config.js
+2
-2
No files found.
src/views/baseData/material/info/edit.vue
View file @
c71e3edc
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<RelDialog
width=
"80%"
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"100px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="上级分类" ref="pid" prop="pid">
<RelSelect
:readonly=
"readonly"
filterable
style=
"width: 100%;"
src=
'/jcsj/wlfl/init/sjfl'
:match=
"
{value:'id',label:'name'}" v-model='form.pid' >
</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
label=
"增值税率(%)"
ref=
"zzsl"
prop=
"zzsl"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zzsl"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-rule=
"
{
required:true,
rules:rules,
}" label="流水号长度" ref="snlen" prop="snlen">
<el-input
:readonly=
"readonly"
v-model=
"form.snlen"
></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
:gutter=
"20"
:app=
"this"
>
<EditColItem
: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>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
pid
:
''
,
code
:
''
,
name
:
''
,
zzsl
:
''
,
snlen
:
''
,
bz
:
''
editColItemList
:
[{
label
:
'物料编码'
,
prop
:
'code'
,
span
:
6
,
type
:
'input'
,
},
{
label
:
'物料名称'
,
prop
:
'name'
,
span
:
6
,
type
:
'input'
,
rule
:
'required'
,
},
{
label
:
'物料分类'
,
prop
:
'flid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/wlxx/init/wlfl"
}
},
{
label
:
'规格'
,
prop
:
'gg'
,
span
:
6
,
type
:
'input'
},
{
label
:
'计量单位'
,
prop
:
'jldw'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/jldw/query"
},
rule
:
'required'
,
},
{
label
:
'辅计量单位'
,
prop
:
'fjldw'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/jldw/query"
},
},
{
label
:
'增值税率(%)'
,
prop
:
'zzsl'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'批号管理'
,
prop
:
'phgl'
,
span
:
6
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'单件管理'
,
prop
:
'djgl'
,
span
:
6
,
type
:
'checkbox'
,
value
:
'N'
},
{
label
:
'最小订货批量'
,
prop
:
'zxdhpl'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'订单倍数'
,
prop
:
'ddbs'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'安全库存'
,
prop
:
'aqkc'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'库存高限'
,
prop
:
'kcgx'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'订货提前期'
,
prop
:
'dhtqq'
,
span
:
6
,
type
:
'inputNumber'
},
{
label
:
'询价方式'
,
prop
:
'xjfs'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/wlxx/init/xjfs"
},
},
{
label
:
'供应商'
,
prop
:
'gysid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/gys/query"
},
},
{
label
:
'物料形态'
,
prop
:
'wlxt'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/wlxx/init/wlxt"
},
},
{
label
:
'缺省仓库'
,
prop
:
'ckid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/common/ck/query"
},
},
{
label
:
'缺省库位'
,
prop
:
'kwid'
,
span
:
6
,
type
:
'RelSelect'
,
typeConfig
:{
src
:
"jcsj/kw/query"
,
linkage
:
true
,
linkParams
:[
'ckid'
]
},
},
{
label
:
'产品结构号'
,
prop
:
'bomid'
,
span
:
6
,
type
:
'input'
},
{
label
:
'工艺路线号'
,
prop
:
'gylxid'
,
span
:
6
,
type
:
'input'
},
{
label
:
'库存期限'
,
prop
:
'kcqx'
,
span
:
6
,
type
:
'input'
},
{
label
:
'订货部门'
,
prop
:
'dhbmid'
,
span
:
6
,
type
:
'input'
},
{
label
:
'计划方法'
,
prop
:
'jhff'
,
span
:
6
,
type
:
'input'
},
{
label
:
'订货类型'
,
prop
:
'dhlx'
,
span
:
6
,
type
:
'input'
},
{
label
:
'条码规则'
,
prop
:
'snruleid'
,
span
:
6
,
type
:
'input'
},
{
label
:
'计划部门'
,
prop
:
'jhbmid'
,
span
:
6
,
type
:
'input'
},
{
label
:
'主生产计划 '
,
prop
:
'mps'
,
span
:
6
,
type
:
'input'
},
{
label
:
'定制生产'
,
prop
:
'dzsc'
,
span
:
6
,
type
:
'input'
},
{
label
:
'单件净重'
,
prop
:
'jz'
,
span
:
6
,
type
:
'input'
},
{
label
:
'单件毛重'
,
prop
:
'mz'
,
span
:
6
,
type
:
'input'
},
{
label
:
'标准成本'
,
prop
:
'bzcb'
,
span
:
6
,
type
:
'input'
},
{
label
:
'备注'
,
prop
:
'bz'
,
span
:
24
,
type
:
'input'
},
]
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
vue.config.js
View file @
c71e3edc
...
...
@@ -74,8 +74,8 @@ module.exports = {
],
},
chainWebpack
(
config
)
{
config
.
plugins
.
delete
(
'preload'
)
// TODO: need test
config
.
plugins
.
delete
(
'prefetch'
)
// TODO: need test
config
.
plugins
.
delete
(
'preload'
)
config
.
plugins
.
delete
(
'prefetch'
)
// set svg-sprite-loader
config
.
module
...
...
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