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
9e69707b
Commit
9e69707b
authored
May 23, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品类型统计产品数量,产品列表
parent
48d2dcdc
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
434 additions
and
2 deletions
+434
-2
product.js
src/api/ecw/product.js
+54
-0
productAttr.js
src/api/ecw/productAttr.js
+9
-0
productType.js
src/api/ecw/productType.js
+9
-0
constants.js
src/utils/constants.js
+5
-0
dict.js
src/utils/dict.js
+1
-0
index.vue
src/views/ecw/product/index.vue
+350
-0
index.vue
src/views/ecw/productAttr/index.vue
+1
-1
index.vue
src/views/ecw/productType/index.vue
+5
-0
index.vue
src/views/ecw/warehouse/index.vue
+0
-1
No files found.
src/api/ecw/product.js
0 → 100644
View file @
9e69707b
import
request
from
'
@/utils/request
'
// 创建产品
export
function
createProduct
(
data
)
{
return
request
({
url
:
'
/ecw/product/create
'
,
method
:
'
post
'
,
data
:
data
})
}
// 更新产品
export
function
updateProduct
(
data
)
{
return
request
({
url
:
'
/ecw/product/update
'
,
method
:
'
put
'
,
data
:
data
})
}
// 删除产品
export
function
deleteProduct
(
id
)
{
return
request
({
url
:
'
/ecw/product/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
// 获得产品
export
function
getProduct
(
id
)
{
return
request
({
url
:
'
/ecw/product/get?id=
'
+
id
,
method
:
'
get
'
})
}
// 获得产品分页
export
function
getProductPage
(
query
)
{
return
request
({
url
:
'
/ecw/product/page
'
,
method
:
'
get
'
,
params
:
query
})
}
// 导出产品 Excel
export
function
exportProductExcel
(
query
)
{
return
request
({
url
:
'
/ecw/product/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
responseType
:
'
blob
'
})
}
src/api/ecw/productAttr.js
View file @
9e69707b
...
...
@@ -34,6 +34,15 @@ export function getProductAttr(id) {
})
}
// 获得所有产品属性
export
function
getProductAttrList
(
query
)
{
return
request
({
url
:
'
/ecw/product-attr/list
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得产品属性分页
export
function
getProductAttrPage
(
query
)
{
return
request
({
...
...
src/api/ecw/productType.js
View file @
9e69707b
...
...
@@ -34,6 +34,15 @@ export function getProductType(id) {
})
}
// 获得产品类型
export
function
getProductTypeList
(
query
)
{
return
request
({
url
:
'
/ecw/product-type/list
'
,
method
:
'
get
'
,
params
:
query
})
}
// 获得产品类型分页
export
function
getProductTypePage
(
query
)
{
return
request
({
...
...
src/utils/constants.js
View file @
9e69707b
...
...
@@ -12,6 +12,11 @@ export const CommonStatusEnum = {
DISABLE
:
1
// 禁用
}
export
const
AuditStatusEnum
=
{
PASS
:
0
,
NOT_PASS
:
1
}
/**
* 菜单的类型枚举
*/
...
...
src/utils/dict.js
View file @
9e69707b
...
...
@@ -8,6 +8,7 @@ import store from '@/store'
export
const
DICT_TYPE
=
{
USER_TYPE
:
'
user_type
'
,
COMMON_STATUS
:
'
common_status
'
,
AUDIT_STATUS
:
'
audit_status
'
,
// ========== SYSTEM 模块 ==========
SYSTEM_USER_SEX
:
'
system_user_sex
'
,
...
...
src/views/ecw/product/index.vue
0 → 100644
View file @
9e69707b
This diff is collapsed.
Click to expand it.
src/views/ecw/productAttr/index.vue
View file @
9e69707b
...
...
@@ -85,7 +85,7 @@ import { getDictDatas, DICT_TYPE } from '@/utils/dict'
export
default
{
name
:
"
ProductAttr
"
,
components
:
{
Editor
,
},
data
()
{
return
{
...
...
src/views/ecw/productType/index.vue
View file @
9e69707b
...
...
@@ -28,6 +28,11 @@
<el-table-column
label=
"排序"
align=
"center"
prop=
"sort"
/>
<el-table-column
label=
"中文标题"
align=
"center"
prop=
"titleZh"
/>
<el-table-column
label=
"英文标题"
align=
"center"
prop=
"titleEn"
/>
<el-table-column
label=
"产品统计"
align=
"center"
prop=
"productNum"
width=
"100"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
productNum
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"发布时间"
align=
"center"
prop=
"createTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
...
...
src/views/ecw/warehouse/index.vue
View file @
9e69707b
...
...
@@ -362,7 +362,6 @@ export default {
}
}
}
},
},
...
...
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