Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
19fb4a72
Commit
19fb4a72
authored
May 24, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品类型,产品列表
parent
49e48606
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
index.js
src/router/index.js
+13
-0
index.vue
src/views/ecw/product/index.vue
+21
-1
index.vue
src/views/ecw/productType/index.vue
+14
-0
No files found.
src/router/index.js
View file @
19fb4a72
...
...
@@ -174,6 +174,19 @@ export const constantRoutes = [
meta
:
{
title
:
'
网点仓库
'
,
activeMenu
:
'
/config/node
'
}
}
]
},
{
path
:
'
/producttype
'
,
component
:
Layout
,
hidden
:
true
,
redirect
:
'
noredirect
'
,
children
:
[{
path
:
'
productlist
'
,
component
:
(
resolve
)
=>
require
([
'
@/views/ecw/product/index
'
],
resolve
),
name
:
'
product
'
,
meta
:
{
title
:
'
产品列表
'
,
activeMenu
:
'
/product/product-type
'
}
}
]
}
]
...
...
src/views/ecw/product/index.vue
View file @
19fb4a72
...
...
@@ -91,7 +91,7 @@
<!-- 对话框(添加 / 修改) -->
<el-dialog
:title=
"title"
:visible.sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
8
0px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"
11
0px"
>
<el-form-item
label=
"产品类型"
prop=
"typeId"
>
<el-select
v-model=
"form.typeId"
placeholder=
"选择产品类型"
clearable
>
<el-option
v-for=
"type in typeList"
:key=
"type.id"
:label=
"type.titleZh"
:value=
"type.id"
/>
...
...
@@ -111,6 +111,17 @@
</el-select>
</el-form-item>
<el-form-item
label=
"需要预约入仓"
prop=
"needBook"
>
<el-radio
v-model.number=
"form.needBook"
:label=
"1"
>
是
</el-radio>
<el-radio
v-model.number=
"form.needBook"
:label=
"0"
>
否
</el-radio>
</el-form-item>
<el-form-item
label=
"每日入仓上限"
prop=
"dayLimit"
>
<el-input
v-model.number=
"form.dayLimit"
type=
"number"
>
<
template
slot=
"append"
>
立方米
</
template
>
</el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -171,6 +182,7 @@ export default {
attrId
:
[{
required
:
true
,
message
:
"
产品属性不能为空
"
,
trigger
:
"
change
"
}],
titleZh
:
[{
required
:
true
,
message
:
"
中文标题不能为空
"
,
trigger
:
"
blur
"
}],
titleEn
:
[{
required
:
true
,
message
:
"
英文标题不能为空
"
,
trigger
:
"
blur
"
}],
needBook
:[{
required
:
true
,
message
:
"
预约入仓不能为空
"
,
trigger
:
"
blur
"
}],
},
CommonStatusEnum
:
CommonStatusEnum
,
...
...
@@ -205,6 +217,11 @@ export default {
},
created
()
{
let
typeId
=
this
.
$route
.
query
.
typeId
;
if
(
typeId
)
{
this
.
queryParams
.
typeId
=
parseInt
(
typeId
);
}
this
.
getAttrList
();
this
.
getTypeList
();
this
.
getList
();
...
...
@@ -284,6 +301,9 @@ export default {
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"
添加产品
"
;
if
(
this
.
queryParams
.
typeId
)
{
this
.
form
.
typeId
=
this
.
queryParams
.
typeId
;
}
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
src/views/ecw/productType/index.vue
View file @
19fb4a72
...
...
@@ -40,6 +40,9 @@
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
@
click=
"typeProductList(scope.row)"
v-hasPermi=
"['ecw:product:query']"
>
产品列表
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:product-type:update']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
...
...
@@ -175,6 +178,17 @@ export default {
this
.
title
=
"
修改产品类型
"
;
});
},
/**跳转到产品列表 */
typeProductList
(
row
)
{
this
.
$router
.
push
({
path
:
'
/producttype/productlist
'
,
query
:
{
typeId
:
row
.
id
}
})
},
/** 提交按钮 */
submitForm
()
{
this
.
$refs
[
"
form
"
].
validate
(
valid
=>
{
...
...
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