Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
e3529d6d
提交
e3529d6d
编写于
8月 22, 2020
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单详情和订单管理联调33
上级
2d5dc003
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
106 行增加
和
59 行删除
+106
-59
index.js
src/utils/shop/index.js
+1
-1
order-manage.vue
src/views/goods/order-manage.vue
+38
-13
slidebar.vue
src/views/layout/slidebar.vue
+46
-12
shop-list.vue
src/views/shop/shop-list.vue
+21
-33
未找到文件。
src/utils/shop/index.js
浏览文件 @
e3529d6d
...
@@ -61,7 +61,7 @@ export const updateExpress = (params) => {
...
@@ -61,7 +61,7 @@ export const updateExpress = (params) => {
export
const
queryShopAuth
=
(
params
)
=>
{
export
const
queryShopAuth
=
(
params
)
=>
{
return
fetch
({
return
fetch
({
headers
,
headers
,
url
:
getBaseUrl
(
`user/storeid`
),
url
:
getBaseUrl
(
`
store/
user/storeid`
),
method
:
'get'
,
method
:
'get'
,
params
:
params
,
params
:
params
,
description
:
'查询超级管理员权限'
,
description
:
'查询超级管理员权限'
,
...
...
src/views/goods/order-manage.vue
浏览文件 @
e3529d6d
...
@@ -41,11 +41,13 @@
...
@@ -41,11 +41,13 @@
</el-tabs>
</el-tabs>
<el-table
:data=
"tableData"
border
max-height=
"1000"
class=
"item-table"
style=
"width: 100%;margin-top: 10px;"
>
<el-table
:data=
"tableData"
border
max-height=
"1000"
class=
"item-table"
style=
"width: 100%;margin-top: 10px;"
>
<el-table-column
prop=
"id"
label=
"订单号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"id"
label=
"订单号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"goodsName"
label=
"商品名称"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"goodsName"
label=
"商品名称"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
goodsName
}}
</span>
<!--
<p
v-for=
"(item, index) in scope.row.goodsName"
:key=
"index"
class=
"p-normal"
>
{{
item
.
name
}}
</p>
-->
</
template
>
</el-table-column>
<el-table-column
prop=
"showStatusStr"
label=
"交易状态"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"showStatusStr"
label=
"交易状态"
min-width=
"100"
align=
"center"
>
<!--
<template
slot-scope=
"scope"
>
-->
<!--
<span>
{{
scope
.
row
.
status
|
rangeStatus
}}
</span>
-->
<!--
</
template
>
-->
</el-table-column>
</el-table-column>
<el-table-column
prop=
"amount"
label=
"实收款"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"amount"
label=
"实收款"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -53,7 +55,8 @@
...
@@ -53,7 +55,8 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"receiver"
label=
"买家"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"receiver"
label=
"买家"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"goodsQuantity"
label=
"数量"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"goodsQuantity"
label=
"数量"
min-width=
"100"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"size"
label=
"规格"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"size"
label=
"规格"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"price"
label=
"单价"
min-width=
"100"
align=
"center"
>
<el-table-column
prop=
"price"
label=
"单价"
min-width=
"100"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -221,14 +224,14 @@
...
@@ -221,14 +224,14 @@
},
},
totalRows
:
0
,
totalRows
:
0
,
tableData
:
[
tableData
:
[
{
//
{
id
:
''
,
//
id: '',
name
:
''
,
//
name: '',
type
:
null
,
//
type: null,
status
:
''
,
//
status: '',
num
:
null
,
//
num: null,
createdTime
:
''
,
//
createdTime: '',
}
//
}
],
],
typeList
:
[{
typeList
:
[{
label
:
'供货商'
,
label
:
'供货商'
,
...
@@ -273,6 +276,21 @@
...
@@ -273,6 +276,21 @@
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
code
==
'000000'
)
{
this
.
tableData
=
res
.
data
.
orderSingleDtoList
;
this
.
tableData
=
res
.
data
.
orderSingleDtoList
;
this
.
totalRows
=
res
.
data
.
totalNum
;
this
.
totalRows
=
res
.
data
.
totalNum
;
/*let item = {
id: 123,
goodsName: [
{
name: '阿莫西林',
},
{
name: '不知道什么鬼',
},
{
name: '啊咧',
}
],
}
this.tableData.push(item);*/
}
}
})
})
},
},
...
@@ -493,4 +511,11 @@
...
@@ -493,4 +511,11 @@
.hidden-input
{
.hidden-input
{
height
:
0
;
height
:
0
;
}
}
.p-normal
{
line-height
:
34px
;
border-bottom
:
1px
solid
#E4E7ED
;
&
:last-child
{
border-bottom
:
none
;
}
}
</
style
>
</
style
>
src/views/layout/slidebar.vue
浏览文件 @
e3529d6d
...
@@ -39,6 +39,11 @@
...
@@ -39,6 +39,11 @@
</template>
</template>
</template>
</template>
</template>
</template>
<!--<template v-if="isOutsideGetted && isOutsideUser && isShowGoods">-->
<!--<el-menu-item v-for="(outItem, outIndex) in outsideGoodsItem" :index="'/'+outItem.index" :key="outIndex">-->
<!--<i :class="outItem.icon"></i>{{ outItem.title }}-->
<!--</el-menu-item>-->
<!--</template>-->
</el-menu>
</el-menu>
</div>
</div>
</template>
</template>
...
@@ -49,6 +54,7 @@
...
@@ -49,6 +54,7 @@
import
{
isNotEmptyUtils
}
from
'../../utils/utils'
import
{
isNotEmptyUtils
}
from
'../../utils/utils'
import
{
getUserTypeReq
}
from
'@/utils/cme/cmeApi'
import
{
getUserTypeReq
}
from
'@/utils/cme/cmeApi'
import
{
getCircleRole
}
from
'@/utils/patients/patientsapi'
import
{
getCircleRole
}
from
'@/utils/patients/patientsapi'
import
{
queryShopAuth
}
from
'@/utils/shop'
;
let
vm
=
null
let
vm
=
null
export
default
{
export
default
{
...
@@ -86,6 +92,7 @@
...
@@ -86,6 +92,7 @@
return
{
return
{
isOutsideUser
:
false
,
// 是否是外部用户;(外部用户:只展示一个页面路由; 非外部用户:正常展示之前的逻辑)
isOutsideUser
:
false
,
// 是否是外部用户;(外部用户:只展示一个页面路由; 非外部用户:正常展示之前的逻辑)
isOutsideGetted
:
false
,
isOutsideGetted
:
false
,
isShowGoods
:
false
,
items
:
[
items
:
[
{
{
title
:
'数据总览'
,
title
:
'数据总览'
,
...
@@ -133,6 +140,18 @@
...
@@ -133,6 +140,18 @@
index
:
'credit-send-manage'
index
:
'credit-send-manage'
},
},
],
],
/*outsideGoodsItem: [//只有通过店铺管理操作才可展示
{
title: '商品管理',
icon: 'el-icon-first-aid-kit',
index: 'goods-manage'
},
{
title: '订单管理',
icon: 'el-icon-first-aid-kit',
index: 'order-manage'
},
],*/
}
}
},
},
computed
:
{
computed
:
{
...
@@ -147,12 +166,12 @@
...
@@ -147,12 +166,12 @@
mounted
(){
mounted
(){
if
(
this
.
storageIdType
==
1
){
if
(
this
.
storageIdType
==
1
){
vm
.
setEntrySide
();
vm
.
setEntrySide
();
vm
.
setShopSide
()
}
else
if
(
this
.
storageIdType
==
2
)
{
}
else
if
(
this
.
storageIdType
==
2
)
{
vm
.
setFollowSide
();
vm
.
setFollowSide
();
vm
.
getRoleObj
();
vm
.
getRoleObj
();
vm
.
setShopSide
()
}
}
vm
.
setShopSide
()
// vm.getGoodsAuth();
},
},
watch
:
{
watch
:
{
authList
(
newVal
,
oldVal
){
authList
(
newVal
,
oldVal
){
...
@@ -169,11 +188,9 @@
...
@@ -169,11 +188,9 @@
storageIdType
(
val
){
storageIdType
(
val
){
if
(
val
==
1
){
if
(
val
==
1
){
vm
.
setEntrySide
();
vm
.
setEntrySide
();
vm
.
setShopSide
()
}
else
if
(
val
==
2
)
{
}
else
if
(
val
==
2
)
{
vm
.
setFollowSide
();
vm
.
setFollowSide
();
vm
.
getRoleObj
();
vm
.
getRoleObj
();
vm
.
setShopSide
()
}
}
},
},
},
},
...
@@ -212,6 +229,16 @@
...
@@ -212,6 +229,16 @@
return
0
;
return
0
;
}
}
},
},
getGoodsAuth
()
{
let
isShowGoods
=
localStorage
.
getItem
(
'isShowGoods'
)
if
(
isShowGoods
==
1
)
{
this
.
isShowGoods
=
true
;
localStorage
.
setItem
(
'isShowGoods'
,
2
)
}
else
{
this
.
isShowGoods
=
false
;
localStorage
.
setItem
(
'isShowGoods'
,
2
)
}
},
getRoleObj
()
{
getRoleObj
()
{
getCircleRole
({}).
then
((
res
)
=>
{
getCircleRole
({}).
then
((
res
)
=>
{
localStorage
.
removeItem
(
'highMainManager'
);
localStorage
.
removeItem
(
'highMainManager'
);
...
@@ -419,13 +446,20 @@
...
@@ -419,13 +446,20 @@
vm
.
items
.
push
(
outResourceManage
);
vm
.
items
.
push
(
outResourceManage
);
},
},
setShopSide
(){
setShopSide
(){
const
shop
=
{
queryShopAuth
().
then
(
res
=>
{
title
:
'云鹊店铺'
,
//0 表示超级管理员,大于0 表示小店或供应商,null 表示非法用户
icon
:
'el-icon-first-aid-kit'
,
// if (res.data == null) {
index
:
'shop-list'
// return;
};
// }else {
vm
.
items
.
push
(
shop
);
const
shop
=
{
const
shop1
=
{
title
:
'云鹊店铺'
,
icon
:
'el-icon-first-aid-kit'
,
index
:
'shop-list'
};
vm
.
items
.
push
(
shop
);
// }
})
/*const shop1 = {
title: '商品管理',
title: '商品管理',
icon: 'el-icon-first-aid-kit',
icon: 'el-icon-first-aid-kit',
index: 'goods-manage'
index: 'goods-manage'
...
@@ -436,7 +470,7 @@
...
@@ -436,7 +470,7 @@
icon: 'el-icon-first-aid-kit',
icon: 'el-icon-first-aid-kit',
index: 'order-manage'
index: 'order-manage'
};
};
vm
.
items
.
push
(
shop2
);
vm.items.push(shop2);
*/
},
},
goToMessageSendPage
(
checkAuth
)
{
goToMessageSendPage
(
checkAuth
)
{
...
...
src/views/shop/shop-list.vue
浏览文件 @
e3529d6d
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</el-row>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"24"
style=
"text-align: right"
>
<el-col
:span=
"24"
style=
"text-align: right"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"createShop"
>
新建店铺
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"createShop"
:disabled=
"!canAdd"
>
新建店铺
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
<span>
{{
scope
.
row
.
tradeStore
.
storeStatus
|
statusFormat
}}
</span>
<span>
{{
scope
.
row
.
tradeStore
.
storeStatus
|
statusFormat
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"
num
"
label=
"已上架商品数"
min-width=
"120"
align=
"center"
>
<el-table-column
prop=
"
count
"
label=
"已上架商品数"
min-width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
tradeStore
.
count
}}
</span>
<span>
{{
scope
.
row
.
tradeStore
.
count
}}
</span>
</
template
>
</
template
>
...
@@ -116,8 +116,20 @@
...
@@ -116,8 +116,20 @@
id
:
null
,
id
:
null
,
type
:
null
,
type
:
null
,
},
},
canAdd
:
false
,
totalRows
:
0
,
totalRows
:
0
,
tableData
:
[],
tableData
:
[
// {
// tradeStore: {
// id: 12,
// storeName: '康爱多',
// storeType: 1,
// storeStatus: 0,
// count: 2,
// createdTime: ''
// }
// }
],
typeList
:
[
typeList
:
[
{
{
label
:
'供货商'
,
label
:
'供货商'
,
...
@@ -134,42 +146,17 @@
...
@@ -134,42 +146,17 @@
created
()
{
created
()
{
// this.initPrivilege();
// this.initPrivilege();
this
.
getAddAuth
();
this
.
getAddAuth
();
this
.
searchList
();
//
this.searchList();
},
},
methods
:
{
methods
:
{
getAddAuth
()
{
getAddAuth
()
{
queryShopAuth
().
then
(
res
=>
{
queryShopAuth
().
then
(
res
=>
{
console
.
log
(
'权限接口'
,
res
)
// 0 表示超级管理员,大于0 表示小店或供应商,null 表示非法用户
if
(
res
.
data
==
0
)
{
this
.
canAdd
=
true
;
}
})
})
},
},
initPrivilege
(){
let
idType
=
localStorage
.
getItem
(
'storageIdType'
);
this
.
searchForm
.
userType
=
idType
;
// 内部用户:运营人员
if
(
idType
==
"1"
){
this
.
showAllFlag
=
true
;
this
.
showNewFlag
=
true
;
}
// 外部用户
else
if
(
idType
==
"2"
){
this
.
showAllFlag
=
false
;
this
.
getUserAuth
();
}
},
// 外部用户权限
getUserAuth
(){
let
highMainManager
=
localStorage
.
getItem
(
'highMainManager'
);
let
mainManager
=
localStorage
.
getItem
(
'mainManager'
);
let
manager
=
localStorage
.
getItem
(
'manager'
);
if
(
highMainManager
==
"1"
||
mainManager
==
"1"
){
this
.
showNewFlag
=
true
;
}
else
if
(
manager
==
"1"
){
this
.
showNewFlag
=
false
;
}
},
searchList
()
{
searchList
()
{
openLoading
(
this
);
openLoading
(
this
);
let
params
=
this
.
searchForm
;
let
params
=
this
.
searchForm
;
...
@@ -216,6 +203,7 @@
...
@@ -216,6 +203,7 @@
},
},
//店铺管理
//店铺管理
shopManage
(
row
)
{
shopManage
(
row
)
{
localStorage
.
setItem
(
'isShowGoods'
,
1
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/goods-manage'
,
path
:
'/goods-manage'
,
query
:
{
query
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录