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 550ea9b2
authored
Mar 10, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优惠券有效期支持到当天的时分秒
1 parent
fbdd12b2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
104 additions
and
27 deletions
package-lock.json
package.json
src/views/couponManage/editCashCoupon.vue
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/views/couponManage/receiveDetail.vue
src/views/material/components/textBox.vue
src/views/productGroup/editProduct.vue
package-lock.json
View file @
550ea9b
This diff is collapsed.
Click to expand it.
package.json
View file @
550ea9b
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
"glsx-common"
:
"^1.4.6"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.3.7"
,
"glsx-components"
:
"^1.3.7"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"node-sass"
:
"^4.0.0"
,
"vue"
:
"^2.6.10"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
"vue-router"
:
"^3.1.3"
,
"vuex"
:
"^3.1.2"
,
"vuex"
:
"^3.1.2"
,
...
...
src/views/couponManage/editCashCoupon.vue
View file @
550ea9b
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<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=
"date
range"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOption
"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"date
timerange"
style=
"width: 295px"
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"
>
...
@@ -112,6 +112,8 @@ export default {
...
@@ -112,6 +112,8 @@ export default {
name
:
'editCashCoupon'
,
name
:
'editCashCoupon'
,
data
()
{
data
()
{
return
{
return
{
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
format
:
"yyyy-MM-dd HH:mm:ss"
,
// 日期显示格式
showSubmit
:
true
,
showSubmit
:
true
,
userDisable
:
false
,
userDisable
:
false
,
size
:
'small'
,
size
:
'small'
,
...
@@ -596,8 +598,8 @@ export default {
...
@@ -596,8 +598,8 @@ export default {
//时间段
//时间段
const
d
=
form
.
effectiveTime
const
d
=
form
.
effectiveTime
if
(
d
&&
d
.
length
>
0
)
{
if
(
d
&&
d
.
length
>
0
)
{
obj
.
effectiveStartTime
=
d
[
0
]
+
' 00:00:00'
obj
.
effectiveStartTime
=
d
[
0
]
obj
.
effectiveEndTime
=
d
[
1
]
+
' 23:59:59'
obj
.
effectiveEndTime
=
d
[
1
]
}
}
}
}
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
550ea9b
...
@@ -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=
"date
range"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd
"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"date
timerange"
style=
"width: 295px"
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"
>
...
@@ -85,6 +85,8 @@ export default {
...
@@ -85,6 +85,8 @@ export default {
name
:
'editDiscountCoupon'
,
name
:
'editDiscountCoupon'
,
data
()
{
data
()
{
return
{
return
{
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
format
:
"yyyy-MM-dd HH:mm:ss"
,
// 日期显示格式
showSubmit
:
true
,
showSubmit
:
true
,
userDisable
:
false
,
userDisable
:
false
,
size
:
'small'
,
size
:
'small'
,
...
@@ -309,8 +311,8 @@ export default {
...
@@ -309,8 +311,8 @@ export default {
//时间段
//时间段
const
d
=
form
.
effectiveTime
const
d
=
form
.
effectiveTime
if
(
d
&&
d
.
length
>
0
)
{
if
(
d
&&
d
.
length
>
0
)
{
obj
.
effectiveStartTime
=
d
[
0
]
+
' 00:00:00'
obj
.
effectiveStartTime
=
d
[
0
]
obj
.
effectiveEndTime
=
d
[
1
]
+
' 23:59:59'
obj
.
effectiveEndTime
=
d
[
1
]
}
}
}
}
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
550ea9b
...
@@ -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=
"date
range"
style=
"width: 295px"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd
"
:picker-options=
"pickerOption"
:disabled=
"editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
<el-date-picker
v-model=
"editForm.effectiveTime"
type=
"date
timerange"
style=
"width: 295px"
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"
>
...
@@ -64,6 +64,8 @@ export default {
...
@@ -64,6 +64,8 @@ export default {
name
:
'editDiscountCoupon'
,
name
:
'editDiscountCoupon'
,
data
()
{
data
()
{
return
{
return
{
defaultTime
:
[
'00:00:00'
,
'23:59:59'
],
// 选择日期后的默认时间
format
:
"yyyy-MM-dd HH:mm:ss"
,
// 日期显示格式
showSubmit
:
true
,
showSubmit
:
true
,
userDisable
:
false
,
userDisable
:
false
,
size
:
'small'
,
size
:
'small'
,
...
@@ -287,8 +289,8 @@ export default {
...
@@ -287,8 +289,8 @@ export default {
//时间段
//时间段
const
d
=
form
.
effectiveTime
const
d
=
form
.
effectiveTime
if
(
d
&&
d
.
length
>
0
)
{
if
(
d
&&
d
.
length
>
0
)
{
obj
.
effectiveStartTime
=
d
[
0
]
+
' 00:00:00'
obj
.
effectiveStartTime
=
d
[
0
]
obj
.
effectiveEndTime
=
d
[
1
]
+
' 23:59:59'
obj
.
effectiveEndTime
=
d
[
1
]
}
}
}
}
...
...
src/views/couponManage/receiveDetail.vue
View file @
550ea9b
...
@@ -74,7 +74,8 @@ export default {
...
@@ -74,7 +74,8 @@ export default {
useB
:
''
,
useB
:
''
,
// 表格
// 表格
searchForm
:
{
searchForm
:
{
phone
:
''
phone
:
''
,
// isYes:''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
// 搜索
// 搜索
...
@@ -84,6 +85,15 @@ export default {
...
@@ -84,6 +85,15 @@ export default {
name
:
'phone'
,
name
:
'phone'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
11
maxlength
:
11
},
{
label
:
'是否加企微'
,
name
:
'isYes'
,
type
:
'select'
,
optionList
:[],
optionId
:
'statusId'
,
optionLabel
:
'statusName'
,
optionsName
:
'isYesStatusList'
}
}
],
],
// 表格
// 表格
...
@@ -101,6 +111,13 @@ export default {
...
@@ -101,6 +111,13 @@ export default {
prop
:
'userName'
prop
:
'userName'
},
},
{
{
label
:
'是否加入企微'
,
prop
:
'isYes'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
isYesStatusList
.
find
(
item
=>
item
.
statusId
==
cellValue
.
isYes
).
statusName
}
},
{
label
:
'优惠券状态'
,
label
:
'优惠券状态'
,
prop
:
'userStatus'
,
prop
:
'userStatus'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
...
@@ -113,7 +130,7 @@ export default {
...
@@ -113,7 +130,7 @@ export default {
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
return
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
}
}
,
]
]
},
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
...
@@ -135,6 +152,16 @@ export default {
...
@@ -135,6 +152,16 @@ export default {
confId
:
'3'
,
confId
:
'3'
,
confName
:
'已过期'
confName
:
'已过期'
}
}
],
isYesStatusList
:
[
{
statusId
:
'0'
,
statusName
:
'是'
},
{
statusId
:
'1'
,
statusName
:
'否'
}
]
]
},
},
exportLoading
:
false
exportLoading
:
false
...
@@ -260,7 +287,8 @@ export default {
...
@@ -260,7 +287,8 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
phone
:
''
phone
:
''
,
isYes
:
''
}
}
this
.
handleSearch
()
this
.
handleSearch
()
},
},
...
...
src/views/material/components/textBox.vue
View file @
550ea9b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
E
from
'wangeditor'
//
import E from 'wangeditor'
export
default
{
export
default
{
name
:
'textBox'
,
name
:
'textBox'
,
data
()
{
data
()
{
...
@@ -15,23 +15,23 @@ export default {
...
@@ -15,23 +15,23 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getEdit
()
//
this.getEdit()
},
},
methods
:
{
methods
:
{
getEdit
()
{
//
getEdit() {
var
editor
=
new
E
(
'#div-demo'
)
//
var editor = new E('#div-demo')
editor
.
config
.
uploadImgShowBase64
=
true
//
editor.config.uploadImgShowBase64 = true
editor
.
config
.
showMenuTooltips
=
true
//
editor.config.showMenuTooltips = true
editor
.
config
.
menuTooltipPosition
=
'down'
//
editor.config.menuTooltipPosition = 'down'
editor
.
config
.
height
=
400
//
editor.config.height = 400
editor
.
config
.
uploadVideoServer
=
'/api/upload-video'
//
editor.config.uploadVideoServer = '/api/upload-video'
editor
.
config
.
excludeMenus
=
[
//
editor.config.excludeMenus = [
'code'
//
'code'
]
//
]
editor
.
create
()
//
editor.create()
}
//
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/productGroup/editProduct.vue
View file @
550ea9b
...
@@ -23,6 +23,13 @@
...
@@ -23,6 +23,13 @@
:formRules=
"item.editRule"
:formRules=
"item.editRule"
@
handleImgDelete=
"handleFormImgDelete"
@
handleImgDelete=
"handleFormImgDelete"
>
>
<template
slot=
"businessType"
slot-scope=
"scope"
>
<!--
{{
scope
.
scope
}}
-->
<!--
<div
v-for=
"(item, idx) in scope.scope.optionList"
:key=
"idx"
>
{{
item
.
confName
}}
</div>
-->
<el-checkbox-group
v-model=
"editForm.applicationType"
@
change=
"checkApplication"
>
<el-checkbox
v-for=
"value in scope.scope.optionList"
:key=
"value.confId"
:label=
"value.confId"
>
{{
value
.
confName
}}
</el-checkbox>
</el-checkbox-group>
</
template
>
<
template
slot=
"describeBtn"
>
<
template
slot=
"describeBtn"
>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleDescribeImgAdd"
>
+添加图片
</el-button>
<el-button
:disabled=
"isDisabled"
type=
"default"
@
click=
"handleDescribeImgAdd"
>
+添加图片
</el-button>
<span
class=
"edit-tips m-l-20"
>
最多可添加10张图片
</span>
<span
class=
"edit-tips m-l-20"
>
最多可添加10张图片
</span>
...
@@ -489,6 +496,8 @@ export default {
...
@@ -489,6 +496,8 @@ export default {
classifyIdList
:
[],
classifyIdList
:
[],
zoneId
:
''
,
zoneId
:
''
,
descImgList
:
[],
descImgList
:
[],
businessType
:
''
,
applicationType
:
[],
// 商品规格
// 商品规格
// specificationDetailList: [],
// specificationDetailList: [],
retailPrice
:
''
,
retailPrice
:
''
,
...
@@ -579,6 +588,31 @@ export default {
...
@@ -579,6 +588,31 @@ export default {
}
}
},
},
{
{
label
:
'业务类型'
,
name
:
'businessType'
,
addHtml
:
'businessType'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
isDisabled
:
false
,
optionList
:
[
{
confId
:
1
,
confName
:
'123'
},
{
confId
:
2
,
confName
:
'456'
},
{
confId
:
3
,
confName
:
'789'
}
],
// handleRadioChange: val => {
// this.handleTypeChange(val)
// }
},
{
label
:
'商品分类'
,
label
:
'商品分类'
,
name
:
'classifyIdList'
,
name
:
'classifyIdList'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -837,6 +871,11 @@ export default {
...
@@ -837,6 +871,11 @@ export default {
},
},
methods
:
{
methods
:
{
checkApplication
(
res1
,
res2
,
res3
)
{
console
.
log
(
'res1'
,
res1
);
console
.
log
(
'res2'
,
res2
);
console
.
log
(
'res3'
,
res3
);
},
getBaseDate
()
{
getBaseDate
()
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
Promise
.
all
([
this
.
$apis
.
common
.
getClassifyListApi
({}),
this
.
$apis
.
common
.
getZoneListApi
({
zoneType
:
2
,
merchantId
:
this
.
userInfo
.
merchantId
})]).
then
(([
classify
,
zone
])
=>
{
Promise
.
all
([
this
.
$apis
.
common
.
getClassifyListApi
({}),
this
.
$apis
.
common
.
getZoneListApi
({
zoneType
:
2
,
merchantId
:
this
.
userInfo
.
merchantId
})]).
then
(([
classify
,
zone
])
=>
{
...
@@ -1172,6 +1211,7 @@ export default {
...
@@ -1172,6 +1211,7 @@ export default {
// 获取商品信息
// 获取商品信息
getInfo
()
{
getInfo
()
{
this
.
$apis
.
proManage
.
getProInfoApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
proManage
.
getProInfoApi
({
id
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
);
this
.
editForm
=
{
this
.
editForm
=
{
...
res
,
...
res
,
goodsVideo
:
res
.
goodsVideo
||
''
,
goodsVideo
:
res
.
goodsVideo
||
''
,
...
@@ -1181,7 +1221,8 @@ export default {
...
@@ -1181,7 +1221,8 @@ export default {
goodsStock
:
res
.
goodsStock
+
''
,
goodsStock
:
res
.
goodsStock
+
''
,
supplyPrice
:
res
.
supplyPrice
?
(
res
.
supplyPrice
/
100
).
toFixed
(
2
)
:
''
,
supplyPrice
:
res
.
supplyPrice
?
(
res
.
supplyPrice
/
100
).
toFixed
(
2
)
:
''
,
describeTxt
:
''
,
describeTxt
:
''
,
descImgList
:
[]
descImgList
:
[],
applicationType
:[]
}
}
// 是否需要安装
// 是否需要安装
this
.
editForm
.
install
=
this
.
editForm
.
install
||
'Y'
this
.
editForm
.
install
=
this
.
editForm
.
install
||
'Y'
...
@@ -1375,6 +1416,7 @@ export default {
...
@@ -1375,6 +1416,7 @@ export default {
})
})
// console.log(params)
// console.log(params)
this
.
$apis
.
proManage
.
insertOrUpdateProApi
(
params
).
then
(
res
=>
{
this
.
$apis
.
proManage
.
insertOrUpdateProApi
(
params
).
then
(
res
=>
{
console
.
log
(
'res'
,
res
);
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
...
...
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