Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
0267eac5
提交
0267eac5
编写于
6月 11, 2021
作者:
vino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
运费配置
上级
f495f730
变更
6
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
541 行增加
和
15 行删除
+541
-15
index.js
src/utils/shop/index.js
+18
-0
freight-config-backup.vue
src/views/freight/freight-config-backup.vue
+343
-0
freight-config.vue
src/views/freight/freight-config.vue
+47
-11
order-detail.vue
src/views/goods/order-detail.vue
+4
-0
order-manage.vue
src/views/goods/order-manage.vue
+76
-2
shop-list.vue
src/views/shop/shop-list.vue
+53
-2
未找到文件。
src/utils/shop/index.js
浏览文件 @
0267eac5
...
...
@@ -90,4 +90,22 @@ export const closeShop = (storeId, status = 0) => {
})
};
export
const
brokerListAll
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
'broker/admin/brokerListAll'
),
method
:
'post'
,
data
:
params
,
description
:
'云鹊店铺-订单管理-药代列表'
,
})
};
export
const
brokerOwnerListAll
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
'broker/admin/brokerOwnerListAll'
),
method
:
'post'
,
data
:
params
,
description
:
'云鹊店铺-订单管理-招募人列表'
,
})
};
src/views/freight/freight-config-backup.vue
0 → 100644
浏览文件 @
0267eac5
此差异已折叠。
点击以展开。
src/views/freight/freight-config.vue
浏览文件 @
0267eac5
...
...
@@ -114,15 +114,6 @@
></el-input>
</el-form-item>
</el-row>
<el-row
style=
"margin: 50px 0 0 220px;"
>
<el-button
:disabled=
"btnDisabled"
type=
"primary"
size=
"small"
@
click=
"beforSave()"
>
保存
</el-button
>
</el-row>
</el-form>
</div>
<div
class=
"header-title"
>
商品运费
</div>
...
...
@@ -151,7 +142,19 @@
</
template
>
</el-table-column>
</el-table>
<el-row
style=
"margin: 50px 0 0 220px;"
>
<el-button
:disabled=
"btnDisabled"
type=
"primary"
size=
"small"
@
click=
"beforSave()"
>
保存
</el-button>
<el-button
:disabled=
"btnDisabled"
size=
"small"
@
click=
"cancleSave()"
>
取消
</el-button>
</el-row>
<el-dialog
:title=
"title"
:visible
.
sync=
"setAddVisible"
...
...
@@ -379,6 +382,9 @@ export default {
if
(
res
.
code
==
"000000"
)
{
this
.
getExpressFeeInfo
();
this
.
$message
({
type
:
"success"
,
message
:
"保存成功!"
});
this
.
$router
.
push
({
path
:
`/shop-list`
})
}
else
{
this
.
$message
({
type
:
"error"
,
message
:
"保存失败!"
});
}
...
...
@@ -387,6 +393,36 @@ export default {
this
.
btnDisabled
=
false
;
});
},
cancleSave
(){
this
.
$router
.
push
({
path
:
`/shop-list`
})
// this.$confirm(`是否取消?`, "", {
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning"
// // customClass: 'range-make-box',
// })
// .then(() => {
// // confirm
// vm.DELETE("rtc/liveAdmin/" + row.id, {}).then(res => {
// if (res.code == "000000") {
// vm.$message({
// type: "success",
// message: "删除成功"
// });
// this.getLiveList("", "");
// } else {
// vm.$message({
// type: "warning",
// message: res.message
// });
// }
// });
// })
// .catch(() => {});
},
// 查看商品详情
viewGoods
(
row
){
// url = `/create-good?id=${row.goodsId}&storeId=${this.searchForm.storeId}&goodsType=${goodsType}&commissionFlag=${this.commissionFlag}`
...
...
@@ -464,7 +500,7 @@ export default {
}
.freight-config-content {
margin-top: 60px;
min-height:
5
00px;
min-height:
4
00px;
.title {
border-bottom: 0.5px solid #e7e8e9;
padding-bottom: 6px;
...
...
src/views/goods/order-detail.vue
浏览文件 @
0267eac5
...
...
@@ -65,6 +65,8 @@
<p>
下单时间:
{{
orderDetailData
.
createdTime
}}
</p>
<p
v-if=
"(showStatus == 1 || showStatus == 2 || showStatus == 3) && orderDetailData.payChannel"
>
支付方式:
{{
orderDetailData
.
payChannel
|
payChanelFormat
}}
</p>
<p
v-if=
"showStatus == 1 || showStatus == 2 || showStatus == 3"
>
支付时间:
{{
orderDetailData
.
paymentTime
}}
</p>
<p
v-if=
"showStatus == 1 || showStatus == 2 || showStatus == 3"
>
招募人:
{{
orderDetailData
.
ownerName
}}
</p>
<p
v-if=
"showStatus == 1 || showStatus == 2 || showStatus == 3"
>
所属药代:
{{
orderDetailData
.
brokerName
}}
</p>
<!--
<p>
发货时间:
{{
orderDetailData
.
sendTime
}}
</p>
-->
<!--
<p>
成交时间:
{{
orderDetailData
.
finishTime
}}
</p>
-->
</div>
...
...
@@ -148,6 +150,8 @@
remark
:
''
,
//备注
sendTime
:
''
,
//发货时间
payChannel
:
''
,
//支付方式
ownerName
:
''
,
// 招募人姓名
brokerName
:
''
,
//药代名称
// showStatus: null,//订单展示状态,1已完成,2已发货,3待发货,4待支付,5交易关闭
},
tableData
:
[],
...
...
src/views/goods/order-manage.vue
浏览文件 @
0267eac5
...
...
@@ -26,6 +26,43 @@
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"18"
>
<el-form-item
label=
"招募人"
>
<el-select
v-model=
"searchForm.broker"
id=
"statusSelector"
placeholder=
"请输入招募人"
@
change=
"changeOwner"
clearable
style=
"width:110%;height: 32px;line-height: 32px;"
>
<el-option
v-for=
"item in brokerOwnerList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"药代姓名"
>
<el-select
v-model=
"searchForm.brokerOwner"
id=
"statusSelector"
placeholder=
"请输入药代姓名"
clearable
style=
"width:110%;height: 32px;line-height: 32px;"
>
<el-option
v-for=
"item in brokerList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
style=
"text-align: right"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"resetForm"
style=
"margin-left:0;"
>
重置
</el-button>
...
...
@@ -81,6 +118,8 @@
<span>
{{
scope
.
row
.
createTime
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"ownerName"
label=
"招募人"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"brokerName"
label=
"所属药代"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"comments"
label=
"备注"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
min-width=
"250"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
...
...
@@ -251,7 +290,7 @@
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
SendSetDialog
from
"@/components/shop/send-set-dialog"
;
import
{
getOrdersExportUrl
}
from
"@/utils/yqrange/yqrangeApi"
;
import
{
queryOrderList
,
updateExpress
,
refundApply
}
from
"@/utils/shop"
;
import
{
queryOrderList
,
updateExpress
,
refundApply
,
brokerListAll
,
brokerOwnerListAll
}
from
"@/utils/shop"
;
import
{
toDecimal2
}
from
'@/utils'
;
export
default
{
...
...
@@ -271,6 +310,8 @@
orderNo
:
''
,
receiver
:
''
,
orderDate
:
''
,
broker
:
''
,
brokerOwner
:
''
,
pageNo
:
1
,
pageSize
:
10
,
},
...
...
@@ -334,13 +375,19 @@
label
:
'支付用户'
,
value
:
2
,
},
]
],
ownerId
:
''
,
brokerList
:[],
brokerOwnerList
:[],
}
},
created
()
{
console
.
log
(
"order created() : enter"
);
this
.
searchForm
.
storeId
=
this
.
$route
.
query
.
storeId
||
0
,
this
.
searchList
();
this
.
brokerListAll
();
this
.
brokerOwnerListAll
();
},
methods
:
{
searchList
(){
...
...
@@ -538,7 +585,34 @@
}
window
.
open
(
res
.
data
);
});
},
// 云鹊店铺-订单管理-药代列表
brokerListAll
(){
brokerListAll
({
ownerId
:
this
.
ownerId
}).
then
(
res
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
'000000'
)
{
this
.
brokerList
=
res
.
data
;
}
})
},
//云鹊店铺-订单管理-招募人列表
brokerOwnerListAll
(){
brokerOwnerListAll
().
then
(
res
=>
{
closeLoading
(
this
);
if
(
res
.
code
==
'000000'
)
{
this
.
brokerOwnerList
=
res
.
data
;
}
})
},
changeOwner
(
data
)
{
this
.
ownerId
=
data
;
this
.
brokerListAll
();
}
},
filters
:
{
toFixed2
:
function
(
value
)
{
...
...
src/views/shop/shop-list.vue
浏览文件 @
0267eac5
...
...
@@ -3,15 +3,19 @@
<bread-crumb
:curmbFirst=
"curmbFirst"
></bread-crumb>
<div
class=
"yqshop-content screenSet"
id=
"screenSet"
>
<div
class=
"header-title"
>
云鹊店铺
</div>
<el-form
ref=
"searchForm"
:model=
"searchForm"
label-width=
"
8
0px"
label-suffix=
":"
:inline=
"true"
>
<el-form
ref=
"searchForm"
:model=
"searchForm"
label-width=
"
10
0px"
label-suffix=
":"
:inline=
"true"
>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"
18
"
>
<el-col
:span=
"
6
"
>
<el-form-item
label=
"店铺名称"
>
<el-input
v-model=
"searchForm.storeName"
size=
"small"
placeholder=
"请输入店铺名称"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"店铺ID"
>
<el-input
v-model=
"searchForm.id"
size=
"small"
placeholder=
"请输入店铺ID"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"店铺类型"
>
<el-select
v-model=
"searchForm.type"
...
...
@@ -26,6 +30,10 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"30"
type=
"flex"
style=
"margin-top: 10px"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"分佣方式"
>
<el-select
v-model=
"searchForm.commissionType"
...
...
@@ -41,6 +49,22 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"药代分佣方式"
>
<el-select
v-model=
"searchForm.commissionType"
placeholder=
"请选择分佣方式"
size=
"small"
clearable
>
<el-option
v-for=
"item in commissionTypeList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"6"
style=
"text-align: right"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"searchList"
>
查询
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"resetForm"
style=
"margin-left:0;"
>
重置
</el-button>
...
...
@@ -96,6 +120,17 @@
<span
v-if=
"scope.row.tradeStore.commissionType == 2"
>
{{
scope
.
row
.
tradeStore
.
commissionPrice
|
priceNum
}}
元
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"commissionType"
label=
"药代分佣方式"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
tradeStore
.
commissionType
|
commissionTypeFormat
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"commissionPrice"
label=
"药代分佣"
width=
"120"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.tradeStore.commissionType == 1"
>
{{
scope
.
row
.
tradeStore
.
commissionPrice
|
priceNum
}}
%
</span>
<span
v-if=
"scope.row.tradeStore.commissionType == 2"
>
{{
scope
.
row
.
tradeStore
.
commissionPrice
|
priceNum
}}
元
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"230"
align=
"center"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<div>
...
...
@@ -135,6 +170,7 @@
label-position=
"right"
size=
"mini"
style=
"width: 100%;"
>
<el-form-item
label=
"分佣方式"
prop=
"commissionType"
>
<el-col
:span=
"18"
>
<el-radio-group
v-model=
"setPriceForm.commissionType"
size=
"small"
style=
"line-height: 45px;"
>
...
...
@@ -150,6 +186,21 @@
</el-col>
</el-form-item>
<!-- <el-form-item label="药代分佣方式">-->
<!-- <el-col :span="18">-->
<!-- <el-radio-group v-model="setPriceForm.commissionType" size="small" style="line-height: 45px;">-->
<!-- <div>-->
<!-- <el-radio :label="1" style="float: left;margin-top: 5px;line-height: 20px;">按比例分佣(%)</el-radio>-->
<!-- <span style="float: right;width: 100px;"><el-input-number v-model="setPriceForm.commissionPrice1" size="small" :precision="2" :min="0"></el-input-number></span>-->
<!-- </div>-->
<!-- <div>-->
<!-- <el-radio :label="2" style="float: left;margin-top: 30px;line-height: 20px;">固定分佣金额(元)</el-radio>-->
<!-- <span style="float: right;width: 100px;margin-left: 14px;"><el-input-number v-model="setPriceForm.commissionPrice2" size="small" :precision="2" :min="0" :max="9999.99"></el-input-number></span>-->
<!-- </div>-->
<!-- </el-radio-group>-->
<!-- </el-col>-->
<!-- </el-form-item>-->
</el-form>
<!-- </el-row>-->
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录