Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
99bb3d5f
Commit
99bb3d5f
authored
Jul 02, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
72c300d0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1021 additions
and
328 deletions
+1021
-328
activeOrder-form.vue
src/components/sale/activeOrder-form.vue
+20
-4
activeOrder-item.vue
src/components/sale/activeOrder-item.vue
+156
-238
myActiveOrder-form.vue
src/components/sale/myActiveOrder-form.vue
+791
-0
activeDetail.vue
src/pages/activity/activeDetail.vue
+0
-3
makeAd.vue
src/pages/activity/makeAd.vue
+0
-2
payment.vue
src/pages/activity/payment.vue
+1
-1
activeOrderList.vue
src/pages/sale/activeOrderList.vue
+23
-55
activeOrderStatistics.vue
src/pages/sale/activeOrderStatistics.vue
+18
-17
activityList.vue
src/pages/sale/activityList.vue
+5
-2
myActiveOrder.vue
src/pages/sale/myActiveOrder.vue
+7
-6
No files found.
src/components/sale/activeOrder-form.vue
View file @
99bb3d5f
...
...
@@ -22,13 +22,13 @@
</div>
<div
style=
"padding:20px 15px;"
>
<q-input
filled
stack-label
maxlength=
"30"
:dense=
"false"
v-model=
"OrderMsg.LinkMan"
class=
"col-12"
label=
"姓名"
v-model=
"OrderMsg.LinkMan"
class=
"col-12"
ref=
"LinkMan"
label=
"姓名"
:rules=
"[val => !!val || '请填写姓名']"
/>
<q-input
filled
stack-label
maxlength=
"30"
:dense=
"false"
v-model=
"OrderMsg.LinkTel"
class=
"col-12"
label=
"联系电话"
v-model=
"OrderMsg.LinkTel"
class=
"col-12"
ref=
"LinkTel"
label=
"联系电话"
:rules=
"[val => !!val || '请填写联系电话']"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"OrderMsg.Remark"
style=
"margin-top: 20px"
type=
"textarea"
class=
"col-12"
label=
"备注"
/>
type=
"textarea"
class=
"col-12"
ref=
"Remark"
label=
"备注"
/>
<div
style=
"margin:30px 10px 70px 0;"
>
<q-btn
class=
"q-mr-md"
label=
"取消"
@
click=
"closeEditOrder"
/>
<q-btn
color=
"accent"
class=
"q-mr-md"
label=
"保存"
@
click=
"saveOrderInfo()"
/>
...
...
@@ -63,6 +63,7 @@
}
},
mounted
()
{
console
.
log
(
66
,
this
.
saveObj
)
this
.
OrderMsg
.
Id
=
this
.
saveObj
.
Id
},
watch
:
{
...
...
@@ -75,7 +76,22 @@
this
.
$emit
(
'close'
)
},
saveOrderInfo
(){
this
.
$refs
.
LinkMan
.
validate
();
this
.
$refs
.
LinkTel
.
validate
();
// this.$refs.Remark.validate();
if
(
!
this
.
$refs
.
LinkMan
.
hasError
&&
!
this
.
$refs
.
LinkTel
.
hasError
){
this
.
apipostDS
(
"/api/Education/"
,
this
.
OrderMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
this
.
closeEditOrder
();
// this.$emit('success');
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
})
}
},
}
}
...
...
src/components/sale/activeOrder-item.vue
View file @
99bb3d5f
This diff is collapsed.
Click to expand it.
src/components/sale/myActiveOrder-form.vue
0 → 100644
View file @
99bb3d5f
This diff is collapsed.
Click to expand it.
src/pages/activity/activeDetail.vue
View file @
99bb3d5f
...
...
@@ -128,11 +128,8 @@ import DetailItem from "../../components/activity/activeDetail-item"
let
res
=
this
.
$refs
.
child
.
every
(
x
=>
{
return
x
.
ruleVerification
();
})
console
.
log
(
'res'
,
res
)
if
(
res
){
this
.
apipostDS
(
"/api/Education/GetSetActivityPlan"
,
this
.
msg
,
(
res
)
=>
{
console
.
log
(
136
,
res
)
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
Success
(
res
.
data
.
message
);
}
else
{
...
...
src/pages/activity/makeAd.vue
View file @
99bb3d5f
...
...
@@ -607,7 +607,6 @@
this
.
st
=
data
.
SamplePicturesUrl
+
'?width=470'
this
.
templateId
=
data
.
AdvertisingID
this
.
nodes
=
JSON
.
parse
(
data
.
Content
)
console
.
log
(
'596'
,
this
.
nodes
)
this
.
nodes
.
forEach
(
y
=>
{
this
.
currentZIndex
=
y
.
zindex
>
this
.
currentZIndex
?
y
.
zindex
:
this
.
currentZIndex
this
.
currentMaxId
=
y
.
nodeId
>
this
.
currentMaxId
?
y
.
nodeId
:
this
.
currentMaxId
...
...
@@ -639,7 +638,6 @@
let
blob
=
that
.
base64ToBlob
(
imgUrl
)
UploadViittoBlobFile
(
"Edu"
,
blob
,(
res
)
=>
{
this
.
isLoading
=
false
;
console
.
log
(
671
,
res
);
if
(
res
.
Code
===
1
){
msg
.
AdvertisingPicUrl
=
res
.
FileUrl
new
browserMD5File
(
blob
,
function
(
err
,
md5
)
{
...
...
src/pages/activity/payment.vue
View file @
99bb3d5f
...
...
@@ -583,7 +583,7 @@
// "ReFinanceId":this.msg.Id,
// "companyID": this.msg.Id,
// "path": "",
//
'blank': 'y',
'blank'
:
'y'
,
'orderObj'
:
JSON
.
stringify
(
orderObj
),
// 'tradeWay': '',
}
...
...
src/pages/sale/activeOrderList.vue
View file @
99bb3d5f
<
template
>
<div
class=
"page-body myOrder"
>
<div
class=
"row col"
style=
"height: 40px"
>
<div
class=
"row col"
style=
"justify-content: space-between;align-items: center;margin-bottom: 10px"
>
<div>
<template
v-if=
"data&& data.ClassInfo"
>
{{
data
.
ClassInfo
.
ClassName
}}
</
template
>
</div>
<div
class=
"row"
style=
"align-items: center"
>
<span>
带班老师
</span>
<q-avatar
size=
"sm"
style=
"margin:0 5px;"
v-if=
"data.ClassInfo&&data.ClassInfo.TeacherIcon"
>
<img
:src=
"data.ClassInfo.TeacherIcon"
/>
</q-avatar>
<q-avatar
style=
"margin:0 5px;"
size=
"sm"
color=
"teal-10"
text-color=
"white"
v-else
>
<
template
v-if=
"data.ClassInfo&&data.ClassInfo.TeacherName"
>
{{
data
.
ClassInfo
.
TeacherName
.
substring
(
0
,
1
)
}}
</
template
>
</q-avatar>
<span
v-if=
"data&& data.ClassInfo"
style=
"color:#2961FE;font-weight: bold"
>
{{data.ClassInfo.TeacherName}}
</span>
<div
class=
"row col "
style=
"align-items: center;margin-bottom: 10px"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md "
label=
"返回"
@
click=
"goBack"
/>
<div
v-if=
"activeName"
>
活动名称:
{{
activeName
}}
</div>
</div>
</div>
<div
class=
"page-content"
>
<OrderItem
:dataList=
"dataList"
ref=
"orderL"
:authObj=
"authObj"
:modityOrderType=
"2"
:cancelList=
"CancelList"
<OrderItem
:dataList=
"data
.
List"
ref=
"orderL"
:authObj=
"authObj"
:modityOrderType=
"2"
:cancelList=
"CancelList"
@
success=
"refreshClassOrder"
></OrderItem>
</div>
</div>
...
...
@@ -41,8 +27,9 @@
data
()
{
return
{
data
:
{},
activeName
:
""
,
msg
:
{
Id
:
0
Activity
Id
:
0
},
//正常订单
dataList
:
[],
...
...
@@ -62,54 +49,35 @@
},
created
()
{
if
(
this
.
$route
.
query
.
Id
)
{
this
.
msg
.
Id
=
this
.
$route
.
query
.
Id
this
.
msg
.
ActivityId
=
this
.
$route
.
query
.
Id
}
if
(
this
.
$route
.
query
.
name
)
{
this
.
activeName
=
this
.
$route
.
query
.
name
}
//
this.getList();
this
.
getList
();
},
mounted
()
{
},
methods
:
{
//获取菜单分页
列表
//获取订单
列表
getList
()
{
this
.
loading
=
true
;
quertClassOrderList
(
this
.
msg
).
then
(
res
=>
{
this
.
data
=
res
.
Data
;
if
(
this
.
data
&&
this
.
data
.
OrderList
&&
this
.
data
.
OrderList
.
NorList
)
{
this
.
dataList
=
this
.
data
.
OrderList
.
NorList
;
let
OrderIds
=
[]
this
.
dataList
.
forEach
(
x
=>
{
OrderIds
.
push
(
x
.
OrderId
)
})
if
(
OrderIds
.
length
>
0
)
{
OrderIds
=
OrderIds
.
join
(
','
)
if
(
this
.
dataList
.
length
>
0
)
{
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
1
)
}
}
}
if
(
this
.
data
&&
this
.
data
.
OrderList
&&
this
.
data
.
OrderList
.
CancelList
)
{
this
.
CancelList
=
this
.
data
.
OrderList
.
CancelList
;
let
OrderIds
=
[]
this
.
CancelList
.
forEach
(
x
=>
{
OrderIds
.
push
(
x
.
OrderId
)
})
if
(
OrderIds
.
length
>
0
)
{
OrderIds
=
OrderIds
.
join
(
','
)
if
(
this
.
CancelList
.
length
>
0
)
{
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
2
)
}
}
}
this
.
loading
=
false
}).
catch
(()
=>
{
this
.
apipostDS
(
"/api/Education/GetConsultOrderStatisticsPage"
,
this
.
msg
,
(
res
)
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
===
1
)
{
this
.
data
=
res
.
data
.
data
.
pageData
;
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
})
},
//刷新页面
refreshClassOrder
()
{
this
.
getList
();
}
},
goBack
(){
this
.
$router
.
go
(
-
1
)
}
,
}
}
...
...
src/pages/sale/activeOrderStatistics.vue
View file @
99bb3d5f
<
template
>
<div
class=
"page-body myOrder"
>
<div
style=
"width: 100%;display: flex;justify-content: space-between"
>
<span
style=
"font-size: 20px;font-weight: 400; "
>
活动报名
订单
</span>
<span
style=
"font-size: 20px;font-weight: 400; "
>
活动报名
统计
</span>
</div>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
...
...
@@ -75,14 +75,14 @@
<span
class=
"stics-name"
>
取消人数
</span>
<span>
{{data.Statistics.CancelNum}}人
</span>
</div>
<div
class=
"col stics"
>
<
!-- <
div class="col stics">
<span class="stics-name">提成金额</span>
<span>{{data.Statistics.CommissionMoney}}</span>
</div>
<div class="col stics">
<span class="stics-name">额外奖励</span>
<span>{{data.Statistics.ExtraRewardMoney}}</span>
</div>
</div>
-->
</div>
<div
class=
"row col"
style=
"justify-content: flex-end"
>
<div
class=
"row tis"
>
...
...
@@ -119,14 +119,14 @@
import
{
queryEmployee
}
from
'../../api/users/user'
//获取业务员列表
import
myOrderForm
from
'../../components/sale/myOrder-form'
//
import myOrderForm from '../../components/sale/myOrder-form'
import
activeOrder
from
'../../components/sale/activeOrder-item'
export
default
{
meta
:
{
title
:
"我的活动订单"
},
components
:
{
myOrderForm
,
//
myOrderForm,
activeOrder
},
data
()
{
...
...
@@ -265,17 +265,18 @@
this
.
apipostDS
(
"/api/Education/GetConsultOrderStatisticsPage"
,
msg
,
(
res
)
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
===
1
)
{
console
.
log
(
319
,
res
)
this
.
data
=
res
.
data
.
data
;
let
OrderIds
=
[]
this
.
data
.
forEach
(
x
=>
{
OrderIds
.
push
(
x
.
Id
)
})
OrderIds
=
OrderIds
.
join
(
','
)
if
(
this
.
data
.
length
>
0
)
{
this
.
$refs
.
orderL
.
getOrderFinanceList
(
OrderIds
,
1
)
}
// this.pageCount = res.data.PageCount;
this
.
data
=
res
.
data
.
data
.
pageData
;
console
.
log
(
319
,
this
.
data
)
// let OrderIds = []
// this.data.forEach(x => {
// OrderIds.push(x.Id)
// })
// OrderIds = OrderIds.join(',')
// if (this.data.length > 0) {
// this.$refs.orderL.getOrderFinanceList(OrderIds, 1)
// }
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
})
},
...
...
src/pages/sale/activityList.vue
View file @
99bb3d5f
...
...
@@ -446,9 +446,12 @@ import ActiveOrderForm from '../../components/sale/activeOrder-form.vue'
},
//跳转到订单中心
goUrl
(
item
)
{
var
tempStr
=
'/sale/activeOrderList?Id='
+
item
.
Id
;
this
.
$router
.
push
({
path
:
tempStr
path
:
"/sale/activeOrderList"
,
query
:{
Id
:
item
.
Id
,
name
:
item
.
ActivityName
}
});
},
}
...
...
src/pages/sale/myActiveOrder.vue
View file @
99bb3d5f
...
...
@@ -63,14 +63,14 @@
<span
class=
"stics-name"
>
取消人数
</span>
<span>
{{data.Statistics.CancelNum}}人
</span>
</div>
<div
class=
"col stics"
>
<
!-- <
div class="col stics">
<span class="stics-name">提成金额</span>
<span>{{data.Statistics.CommissionMoney}}</span>
</div>
<div class="col stics">
<span class="stics-name">额外奖励</span>
<span>{{data.Statistics.ExtraRewardMoney}}</span>
</div>
</div>
-->
</div>
<div
class=
"row col"
style=
"justify-content: flex-end"
>
<div
class=
"row tis"
>
...
...
@@ -206,9 +206,10 @@
this
.
apipostDS
(
"/api/Education/GetConsultOrderStatisticsPage"
,
msg
,
(
res
)
=>
{
this
.
loading
=
false
if
(
res
.
data
.
resultCode
===
1
)
{
console
.
log
(
319
,
res
.
data
)
this
.
data
=
res
.
data
.
pageData
;
let
OrderIds
=
[]
this
.
data
=
res
.
data
.
data
.
pageData
;
// let OrderIds = []
// this.data.forEach(x => {
// OrderIds.push(x.Id)
// })
...
...
@@ -216,7 +217,7 @@
// if (this.data.length > 0) {
// this.$refs.orderL.getOrderFinanceList(OrderIds, 1)
// }
this
.
pageCount
=
res
.
data
.
pageCount
;
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
})
},
...
...
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