Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 e77d1ba6
authored
Feb 23, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
c7b89bcc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
46 deletions
src/config/env.development.js
src/config/index.js
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editMemberService.vue
src/views/giftBag/receivedGiftList.vue
src/config/env.development.js
View file @
e77d1ba
...
@@ -18,7 +18,7 @@ module.exports = {
...
@@ -18,7 +18,7 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
//
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
// 设置超时时间
...
...
src/config/index.js
View file @
e77d1ba
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import
{
Http
}
from
'glsx-common'
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
if
(
isEnv
)
{
//
if (isEnv) {
let
{
request
}
=
cfg
//
let { request } = cfg
Object
.
assign
(
request
,
{
timeout
})
//
Object.assign(request, { timeout })
return
Promise
.
resolve
(
cfg
)
//
return Promise.resolve(cfg)
}
//
}
//return window.fetch('https://', {}).then(res => res.json())
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
...
...
src/views/couponManage/editCashCoupon.vue
View file @
e77d1ba
...
@@ -661,7 +661,6 @@ export default {
...
@@ -661,7 +661,6 @@ export default {
}
else
{
}
else
{
method
=
'createCouponApi'
//后台创建优惠券
method
=
'createCouponApi'
//后台创建优惠券
}
}
console
.
log
(
params
)
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$apis
.
couponManage
[
method
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
...
...
src/views/couponManage/editMemberService.vue
View file @
e77d1ba
...
@@ -7,15 +7,15 @@
...
@@ -7,15 +7,15 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<br
/>
<br
/>
<el-form-item
prop=
"effectiveTime"
style=
"margin-top: 12px;
display: block;
"
>
<el-form-item
prop=
"effectiveTime"
style=
"margin-top: 12px;
display: block
"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"daterange"
style=
"width:
295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
领取后
领取后
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
<el-input
v-model=
"editForm.effectiveDays"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.effectiveType != 1"
/>
天内有效
天内有效
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
...
@@ -23,21 +23,21 @@
...
@@ -23,21 +23,21 @@
<
template
slot=
"useTypeHtml"
>
<
template
slot=
"useTypeHtml"
>
<el-radio
v-model=
"editForm.useType"
label=
"0"
:disabled=
"apear != 'couponAdd'"
>
无限制
</el-radio>
<el-radio
v-model=
"editForm.useType"
label=
"0"
:disabled=
"apear != 'couponAdd'"
>
无限制
</el-radio>
<br
/>
<br
/>
<el-form-item
prop=
"usageTimes"
style=
"margin-top: 12px;
display: block;
"
>
<el-form-item
prop=
"usageTimes"
style=
"margin-top: 12px;
display: block
"
>
<el-radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.useType"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
有效期内可使用
有效期内可使用
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 1"
/>
<el-input
v-model=
"editForm.usageTimes"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 1"
/>
次
次
</el-radio>
</el-radio>
</el-form-item>
</el-form-item>
<el-radio
v-model=
"editForm.useType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.useType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-form-item
prop=
"useLimitDays"
>
<el-form-item
prop=
"useLimitDays"
>
有效期内
有效期内
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;
margin-left:5px;margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
<el-input
v-model=
"editForm.useLimitDays"
style=
"width: 100px;
margin-left: 5px; margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
天可使用
天可使用
</el-form-item>
</el-form-item>
<el-form-item
prop=
"usageTimes2"
>
<el-form-item
prop=
"usageTimes2"
>
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
<el-input
v-model=
"editForm.usageTimes2"
style=
"width: 100px;
margin-right:
5px"
:disabled=
"apear != 'couponAdd' || editForm.useType != 2"
/>
次
次
</el-form-item>
</el-form-item>
</el-radio>
</el-radio>
...
...
src/views/giftBag/receivedGiftList.vue
View file @
e77d1ba
...
@@ -44,14 +44,15 @@ export default {
...
@@ -44,14 +44,15 @@ export default {
let
arr2
=
list
.
verificationCouponList
let
arr2
=
list
.
verificationCouponList
let
reduceArr
=
arr1
.
map
(
item
=>
{
let
reduceArr
=
arr1
.
map
(
item
=>
{
arr2
.
map
(
ele
=>
{
arr2
.
map
(
ele
=>
{
if
(
item
.
couponId
==
ele
.
couponId
)
{
// if (item.couponId == ele.couponId) {
item
.
numBer
=
item
.
couponAmount
-
ele
.
couponAmount
// item.numBer = item.couponAmount - ele.couponAmount
item
.
delet
=
ele
.
couponAmount
// item.delet = ele.couponAmount
}
// }
item
.
delet
=
ele
.
couponAmount
item
.
residueCouponAmount
=
ele
.
residueCouponAmount
})
})
return
item
return
item
})
})
console
.
log
(
reduceArr
)
return
reduceArr
return
reduceArr
}
}
},
},
...
@@ -148,10 +149,10 @@ export default {
...
@@ -148,10 +149,10 @@ export default {
label
:
'可使用'
,
label
:
'可使用'
,
prop
:
'getAmount'
,
prop
:
'getAmount'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
if
(
cellValue
.
numBer
)
{
if
(
cellValue
.
residueCouponAmount
==
-
1
)
{
return
'
X'
+
cellValue
.
numBer
return
'
不限次数'
}
else
{
}
else
{
return
'X'
+
cellValue
.
c
ouponAmount
return
'X'
+
cellValue
.
residueC
ouponAmount
}
}
}
}
}
}
...
@@ -207,11 +208,6 @@ export default {
...
@@ -207,11 +208,6 @@ export default {
prop
:
'directionalGiftRemarkName'
,
prop
:
'directionalGiftRemarkName'
,
width
:
'200'
width
:
'200'
},
},
// {
// label: '备注名称',
// prop: 'orderCode',
// width: '200'
// },
{
{
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
prop
:
'anticipatedCost'
prop
:
'anticipatedCost'
...
@@ -253,11 +249,11 @@ export default {
...
@@ -253,11 +249,11 @@ export default {
methods
:
{
methods
:
{
//客户
//客户
customerDetail
(
row
)
{
//
customerDetail(row) {
this
.
$router
.
push
({
//
this.$router.push({
path
:
'/custom/clientManage/clientDetail?id='
+
row
.
accountId
//
path: '/custom/clientManage/clientDetail?id=' + row.accountId
})
//
})
},
//
},
// 查看
// 查看
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -305,16 +301,6 @@ export default {
...
@@ -305,16 +301,6 @@ export default {
}
}
})
})
},
},
// 查看
// handleDetail(row) {
// this.$router.push({
// path: '/orderComment/commentDetail',
// query: {
// id: row.id
// }
// })
// },
handleExport
()
{
handleExport
()
{
var
params
=
this
.
getParams
()
var
params
=
this
.
getParams
()
this
.
$apis
.
giftBag
.
exportGiftInfoApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
giftBag
.
exportGiftInfoApi
(
params
).
then
(
res
=>
{
...
@@ -367,7 +353,6 @@ export default {
...
@@ -367,7 +353,6 @@ export default {
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
var
page
=
this
.
$refs
.
receivedGiftListRef
.
page
var
page
=
this
.
$refs
.
receivedGiftListRef
.
page
console
.
log
(
this
.
$refs
.
receivedGiftListRef
,
'1'
)
// 添加序号
// 添加序号
if
(
this
.
$refs
.
receivedGiftListRef
.
data
)
{
if
(
this
.
$refs
.
receivedGiftListRef
.
data
)
{
this
.
$refs
.
receivedGiftListRef
.
data
.
forEach
((
item
,
index
)
=>
{
this
.
$refs
.
receivedGiftListRef
.
data
.
forEach
((
item
,
index
)
=>
{
...
@@ -378,9 +363,7 @@ export default {
...
@@ -378,9 +363,7 @@ export default {
this
.
$refs
.
receivedGiftListRef
.
data
.
length
?
(
this
.
$refs
.
receivedGiftListRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
receivedGiftListRef
.
setTableHeightFun
()
this
.
$refs
.
receivedGiftListRef
.
data
.
length
?
(
this
.
$refs
.
receivedGiftListRef
.
tableHeightValues
=
''
)
:
this
.
$refs
.
receivedGiftListRef
.
setTableHeightFun
()
}
}
},
},
setGiftTableFinishFun
()
{
setGiftTableFinishFun
()
{},
console
.
log
(
this
.
$refs
.
giftListRef
,
'2'
)
},
handleSearch
()
{
handleSearch
()
{
this
.
$refs
.
receivedGiftListRef
.
refreshTable
()
this
.
$refs
.
receivedGiftListRef
.
refreshTable
()
},
},
...
...
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