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 f99afae7
authored
Mar 14, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券精确到时分秒,新建商品添加业务类型,新建商品关联优惠券
1 parent
550ea9b2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
70 additions
and
28 deletions
src/api/modules/proManage.js
src/config/env.development.js
src/setup/qiankun.js
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/index.vue
src/views/couponManage/receiveDetail.vue
src/views/productGroup/editProduct.vue
src/api/modules/proManage.js
View file @
f99afae
...
@@ -97,4 +97,14 @@ const getGoodsCommentListApi = params => {
...
@@ -97,4 +97,14 @@ const getGoodsCommentListApi = params => {
})
})
}
}
export
default
{
getListApi
,
getProShareApi
,
topProApi
,
updateStatusProApi
,
deleteTakeProApi
,
getProInfoApi
,
insertOrUpdateProApi
,
updateTakeProApi
,
getGoodsCommentListApi
}
\ No newline at end of file
\ No newline at end of file
const
getBusinessTypeByIdApi
=
params
=>
{
params
.
method
=
'scrm.api.shopmall.goods.getBusinessTypeById'
return
http
({
url
:
'rop-scrm-shopmall/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getBusinessTypeByIdApi
,
getListApi
,
getProShareApi
,
topProApi
,
updateStatusProApi
,
deleteTakeProApi
,
getProInfoApi
,
insertOrUpdateProApi
,
updateTakeProApi
,
getGoodsCommentListApi
}
\ No newline at end of file
\ No newline at end of file
src/config/env.development.js
View file @
f99afae
...
@@ -18,9 +18,9 @@ module.exports = {
...
@@ -18,9 +18,9 @@ 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/'
,
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/setup/qiankun.js
View file @
f99afae
...
@@ -21,9 +21,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
...
@@ -21,9 +21,9 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$messageBox
=
messageBox
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-dc073d36-45f8-48f4-ab10-dde84cacfed4-rop'
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
'scrm-base-dc073d36-45f8-48f4-ab10-dde84cacfed4-rop'
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
'scrm-base-dc073d36-45f8-48f4-ab10-dde84cacfed4-rop'
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
// Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
const
routesData
=
common
.
utils
.
deepClone
(
globalState
.
routers
)
...
...
src/views/couponManage/editCashCoupon.vue
View file @
f99afae
...
@@ -34,15 +34,16 @@
...
@@ -34,15 +34,16 @@
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
</
template
>
</
template
>
<
template
slot=
"directionalFlagHtml"
>
<
template
slot=
"directionalFlagHtml"
>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
否
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
所有客户可用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
是
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
定向礼包专用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
关联商品可用
</el-radio>
</
template
>
</
template
>
<
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"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"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=
"datetimerange"
style=
"width:
295
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOption"
:default-time=
"defaultTime"
:format=
"format"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"datetimerange"
style=
"width:
340
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:picker-options=
"pickerOption"
:default-time=
"defaultTime"
:format=
"format"
: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"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
@@ -239,13 +240,6 @@ export default {
...
@@ -239,13 +240,6 @@ export default {
// index:4
// index:4
},
},
{
{
label
:
'定向礼包专用'
,
name
:
'directionalFlag'
,
addHtml
:
'directionalFlagHtml'
,
isHide
:
false
// index:5
},
{
label
:
'适用商品'
,
label
:
'适用商品'
,
name
:
'goods'
,
name
:
'goods'
,
addHtml
:
'goodsHtml'
,
addHtml
:
'goodsHtml'
,
...
@@ -273,6 +267,13 @@ export default {
...
@@ -273,6 +267,13 @@ export default {
// index:9
// index:9
},
},
{
{
label
:
'使用规则'
,
name
:
'directionalFlag'
,
addHtml
:
'directionalFlagHtml'
,
isHide
:
false
// index:5
},
{
label
:
'使用说明'
,
label
:
'使用说明'
,
name
:
'useDescription'
,
name
:
'useDescription'
,
addHtml
:
'useDescriptionHtml'
addHtml
:
'useDescriptionHtml'
...
@@ -665,7 +666,7 @@ export default {
...
@@ -665,7 +666,7 @@ export default {
}
}
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'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
f99afae
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"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=
"datetimerange"
style=
"width:
295
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"defaultTime"
:format=
"format"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"datetimerange"
style=
"width:
340
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"defaultTime"
:format=
"format"
:picker-options=
"pickerOption"
: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"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
f99afae
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<template
slot=
"effectiveHtml"
>
<template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"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=
"datetimerange"
style=
"width:
295
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"defaultTime"
:format=
"format"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"datetimerange"
style=
"width:
340
px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd HH:mm:ss"
:default-time=
"defaultTime"
:format=
"format"
:picker-options=
"pickerOption"
: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"
ref=
"effectiveDays"
>
<el-form-item
prop=
"effectiveDays"
ref=
"effectiveDays"
>
...
...
src/views/couponManage/index.vue
View file @
f99afae
...
@@ -105,6 +105,15 @@ export default {
...
@@ -105,6 +105,15 @@ export default {
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'statusList'
optionsName
:
'statusList'
},
{
label
:
'使用规则'
,
name
:
'directionalFlag'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'directionalFlagList'
}
}
],
],
// 表格
// 表格
...
@@ -160,6 +169,14 @@ export default {
...
@@ -160,6 +169,14 @@ export default {
return
useChannel
return
useChannel
}
}
},
},
{
label
:
'使用规则'
,
name
:
'directionalFlag'
,
width
:
'150px'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
directionalFlagList
.
find
(
item
=>
item
.
confId
==
cellValue
.
directionalFlag
).
confName
}
},
{
{
label
:
'优惠券状态'
,
label
:
'优惠券状态'
,
name
:
'status'
,
name
:
'status'
,
...
@@ -190,6 +207,20 @@ export default {
...
@@ -190,6 +207,20 @@ export default {
// confName: '会员服务'
// confName: '会员服务'
// }
// }
],
],
directionalFlagList
:[
{
confId
:
'1'
,
confName
:
'所有客户可用'
},
{
confId
:
'2'
,
confName
:
'定向礼包专用'
},
{
confId
:
'3'
,
confName
:
'关联商品可用'
}
],
statusList
:
[
statusList
:
[
{
{
confId
:
'1'
,
confId
:
'1'
,
...
@@ -380,7 +411,7 @@ export default {
...
@@ -380,7 +411,7 @@ export default {
couponName
:
''
,
couponName
:
''
,
discountType
:
''
,
discountType
:
''
,
status
:
''
,
status
:
''
,
discountTypes
:
[
2
,
3
,
4
]
discountTypes
:
[
2
,
3
,
4
]
,
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/couponManage/receiveDetail.vue
View file @
f99afae
...
@@ -75,7 +75,7 @@ export default {
...
@@ -75,7 +75,7 @@ export default {
// 表格
// 表格
searchForm
:
{
searchForm
:
{
phone
:
''
,
phone
:
''
,
// isYes
:''
wechatUserFlag
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -88,12 +88,12 @@ export default {
...
@@ -88,12 +88,12 @@ export default {
},
},
{
{
label
:
'是否加企微'
,
label
:
'是否加企微'
,
name
:
'
isYes
'
,
name
:
'
wechatUserFlag
'
,
type
:
'select'
,
type
:
'select'
,
optionList
:[],
optionList
:[],
optionId
:
'statusId'
,
optionId
:
'statusId'
,
optionLabel
:
'statusName'
,
optionLabel
:
'statusName'
,
optionsName
:
'
isYesStatus
List'
optionsName
:
'
wechatUserFlag
List'
}
}
],
],
// 表格
// 表格
...
@@ -112,9 +112,9 @@ export default {
...
@@ -112,9 +112,9 @@ export default {
},
},
{
{
label
:
'是否加入企微'
,
label
:
'是否加入企微'
,
prop
:
'
isYes
'
,
prop
:
'
wechatUserFlag
'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
baseData
.
isYesStatusList
.
find
(
item
=>
item
.
statusId
==
cellValue
.
isYes
).
statusName
return
this
.
baseData
.
wechatUserFlagList
.
find
(
item
=>
item
.
statusId
==
cellValue
.
wechatUserFlag
).
statusName
}
}
},
},
{
{
...
@@ -153,9 +153,9 @@ export default {
...
@@ -153,9 +153,9 @@ export default {
confName
:
'已过期'
confName
:
'已过期'
}
}
],
],
isYesStatus
List
:
[
wechatUserFlag
List
:
[
{
{
statusId
:
'
0
'
,
statusId
:
'
2
'
,
statusName
:
'是'
statusName
:
'是'
},
},
{
{
...
@@ -288,7 +288,7 @@ export default {
...
@@ -288,7 +288,7 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
phone
:
''
,
phone
:
''
,
isYes
:
''
wechatUserFlag
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/productGroup/editProduct.vue
View file @
f99afae
This diff is collapsed.
Click to expand it.
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