Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 55b19394
authored
Dec 30, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
4a4a0d60
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
6 deletions
src/main.js
src/views/activityLink/components/browseList.vue
src/views/activityLink/components/selectGiftDialog.vue
src/views/activityLink/editActivity.vue
src/views/activityOrder/index.vue
src/main.js
View file @
55b1939
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-
28 16:26:01
* @LastEditTime: 2022-12-
30 17:38:50
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
...
src/views/activityLink/components/browseList.vue
View file @
55b1939
...
@@ -4,7 +4,12 @@
...
@@ -4,7 +4,12 @@
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex-space-between m-b-10 w-100-percent"
>
<div
class=
"flex-space-between m-b-10 w-100-percent"
>
<div
class=
"table-title"
>
<div
class=
"table-title"
>
已累计
<template
v-if=
"browseObj.timeType"
>
当日新增
</
template
>
<
template
v-else
>
已累计
</
template
>
<
template
v-if=
"browseObj.type != 2"
>
<
template
v-if=
"browseObj.type != 2"
>
浏览
浏览
</
template
>
</
template
>
...
@@ -246,6 +251,9 @@ export default {
...
@@ -246,6 +251,9 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.table-popover-img
{
width
:
160px
;
}
.edit-container
{
.edit-container
{
.table-title
{
.table-title
{
font-weight
:
400
;
font-weight
:
400
;
...
...
src/views/activityLink/components/selectGiftDialog.vue
View file @
55b1939
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
slot=
"content"
>
{{
subItem
.
couponName
}}
</div>
<div
slot=
"content"
>
{{
subItem
.
couponName
}}
</div>
</el-tooltip>
</el-tooltip>
<div
class=
"gift-sum"
>
<div
class=
"gift-sum"
>
<el-input-number
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"
999999
"
size=
"mini"
label=
"描述文字"
></el-input-number>
<el-input-number
:disabled=
"subItem.status == '3'"
class=
"sum-input"
v-model=
"subItem.couponAmount"
@
change=
"handleChange"
:min=
"1"
:max=
"
subItem.residueAmount
"
size=
"mini"
label=
"描述文字"
></el-input-number>
<!--
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
-->
<!--
<p
:class=
"[subItem.status == '3' ? ' txt-grey' : '']"
v-else
>
×
{{
subItem
.
couponAmount
}}
</p>
-->
</div>
</div>
</div>
</div>
...
@@ -366,7 +366,8 @@ export default {
...
@@ -366,7 +366,8 @@ export default {
couponName
:
item
.
couponName
,
couponName
:
item
.
couponName
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
'1'
,
couponAmount
:
isSelected
?
list
.
find
(
k
=>
k
.
id
==
item
.
id
).
couponAmount
:
'1'
,
couponAnticipatedCost
:
item
.
couponAnticipatedCost
,
couponAnticipatedCost
:
item
.
couponAnticipatedCost
,
status
:
'2'
status
:
'2'
,
residueAmount
:
item
.
residueAmount
})
})
}
}
})
})
...
...
src/views/activityLink/editActivity.vue
View file @
55b1939
...
@@ -358,8 +358,10 @@ export default {
...
@@ -358,8 +358,10 @@ export default {
// },
// },
//优惠券
//优惠券
totalEstimatedCost
:
0
,
totalEstimatedCost
:
0
,
maxStock
:
9999
,
orderShow
,
orderShow
,
choseItemList
:
[],
choseItemList
:
[],
selectedMealList
:
[],
couponObj
,
couponObj
,
numToCoupon
,
numToCoupon
,
isSelectGiftVisible
:
false
,
isSelectGiftVisible
:
false
,
...
@@ -1137,6 +1139,9 @@ export default {
...
@@ -1137,6 +1139,9 @@ export default {
},
},
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
'editForm.goodsStock'
(
newValue
,
oldValue
)
{
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
this
.
editForm
.
goodsStock
=
limitPrice
(
newValue
,
oldValue
,
5
,
0
,
0
)
if
(
this
.
editForm
.
goodsStock
>
this
.
maxStock
)
{
this
.
editForm
.
goodsStock
=
this
.
maxStock
}
},
},
'editForm.activityTime'
(
newValue
)
{
'editForm.activityTime'
(
newValue
)
{
newValue
&&
newValue
.
length
&&
this
.
countDown
()
newValue
&&
newValue
.
length
&&
this
.
countDown
()
...
@@ -1220,8 +1225,12 @@ export default {
...
@@ -1220,8 +1225,12 @@ export default {
// 计算预估成本
// 计算预估成本
recoveryTotalPrice
()
{
recoveryTotalPrice
()
{
this
.
totalEstimatedCost
=
0
this
.
totalEstimatedCost
=
0
this
.
maxStock
=
9999
this
.
orderShow
.
forEach
(
item
=>
{
this
.
orderShow
.
forEach
(
item
=>
{
this
.
couponObj
[
item
].
list
.
forEach
(
subItem
=>
{
this
.
couponObj
[
item
].
list
.
forEach
(
subItem
=>
{
const
mult
=
Math
.
floor
(
subItem
.
residueAmount
/
subItem
.
couponAmount
)
console
.
log
(
mult
)
this
.
maxStock
=
this
.
maxStock
<
mult
?
this
.
maxStock
:
mult
// 失效券不加入预估成本
// 失效券不加入预估成本
if
(
subItem
.
status
!=
'3'
)
{
if
(
subItem
.
status
!=
'3'
)
{
this
.
totalEstimatedCost
=
this
.
totalEstimatedCost
+
parseInt
(
subItem
.
couponAnticipatedCost
||
0
)
*
parseInt
(
subItem
.
couponAmount
)
this
.
totalEstimatedCost
=
this
.
totalEstimatedCost
+
parseInt
(
subItem
.
couponAnticipatedCost
||
0
)
*
parseInt
(
subItem
.
couponAmount
)
...
@@ -1229,6 +1238,7 @@ export default {
...
@@ -1229,6 +1238,7 @@ export default {
})
})
})
})
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
this
.
totalEstimatedCost
=
(
this
.
totalEstimatedCost
/
100
).
toFixed
(
2
)
if
(
this
.
editForm
.
goodsStock
>
this
.
maxStock
)
this
.
editForm
.
goodsStock
=
this
.
maxStock
},
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
labelList
.
forEach
(
item
=>
{
...
...
src/views/activityOrder/index.vue
View file @
55b1939
...
@@ -430,7 +430,7 @@ export default {
...
@@ -430,7 +430,7 @@ export default {
fn
:
'退款'
fn
:
'退款'
},
},
condition
:
row
=>
{
condition
:
row
=>
{
return
row
.
orderSource
==
5
&&
[
0
,
1
].
includes
(
+
row
.
relatedUserCouponStatus
)
return
row
.
orderSource
==
5
&&
[
0
,
1
].
includes
(
+
row
.
relatedUserCouponStatus
)
&&
[
2
,
6
,
21
].
includes
(
+
row
.
orderStatus
)
&&
this
.
loginpath
},
},
listeners
:
{
listeners
:
{
click
:
row
=>
{
click
:
row
=>
{
...
@@ -597,7 +597,10 @@ export default {
...
@@ -597,7 +597,10 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// this.getCount()
if
(
!
this
.
loginpath
)
{
const
index
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
'merchantName'
)
this
.
searchFormData
.
splice
(
index
,
1
)
}
this
.
getOptionsList
(
'searchFormData'
)
this
.
getOptionsList
(
'searchFormData'
)
},
},
methods
:
{
methods
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment