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 b9bb2fbd
authored
Mar 15, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
创建代金券使用途径为线上商品时,不显示关联商品可用选项
1 parent
67105b8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
11 deletions
src/config/index.js
src/views/couponManage/editCashCoupon.vue
src/views/productGroup/editProduct.vue
src/config/index.js
View file @
b9bb2fb
...
...
@@ -12,11 +12,11 @@ let cfg = require('./conf.js')
import
{
Http
}
from
'glsx-common'
let
timeout
=
30000
//超时时间
export
const
fetchConfig
=
function
(
isEnv
=
true
)
{
//
if (isEnv) {
//
let { request } = cfg
//
Object.assign(request, { timeout })
//
return Promise.resolve(cfg)
//
}
if
(
isEnv
)
{
let
{
request
}
=
cfg
Object
.
assign
(
request
,
{
timeout
})
return
Promise
.
resolve
(
cfg
)
}
//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' })
return
new
Http
().
get
(
'https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config'
)
...
...
src/views/couponManage/editCashCoupon.vue
View file @
b9bb2fb
...
...
@@ -33,11 +33,15 @@
<el-radio
v-model=
"editForm.useChannel"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
线上商品
</el-radio>
<el-radio
v-model=
"editForm.useChannel"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
到店核销
</el-radio>
</
template
>
<
template
slot=
"directionalFlagHtml"
>
<
template
slot=
"directionalFlagHtml"
v-if=
"editForm.useChannel == 2"
>
<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=
"3"
:disabled=
"apear != 'couponAdd'"
>
关联商品可用
</el-radio>
</
template
>
<
template
slot=
"directionalFlagHtml"
v-else
>
<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>
</
template
>
<
template
slot=
"effectiveHtml"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
无有效期
</el-radio>
<br
/>
...
...
src/views/productGroup/editProduct.vue
View file @
b9bb2fb
...
...
@@ -98,7 +98,8 @@
</div>
<
template
slot=
"association"
>
<el-button
type=
"text"
@
click=
"dialogTableVisible = true"
v-if=
"routeInfo.addOrEdit !== 3"
>
选择
</el-button>
<el-dialog
title=
"选择优惠券"
v-if=
"dialogTableVisible"
:visible
.
sync=
"dialogTableVisible"
>
<!--
<el-dialog
title=
"选择优惠券"
v-if=
"dialogTableVisible"
:visible
.
sync=
"dialogTableVisible"
>
-->
<glsx-dialog
title=
"选择优惠券"
:isVisible
.
sync=
"dialogTableVisible"
width=
"50%"
@
confirmDialog=
"associationConfirm"
@
closeDialog=
"associationCancel"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
...
...
@@ -110,11 +111,12 @@
</div>
</GLTable>
<!-- 表格区域 end -->
<div
class=
"associationBtn"
>
<
!--
<
div
class=
"associationBtn"
>
<el-button
type=
"primary"
@
click=
"associationConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"associationCancel"
>
取消
</el-button>
</div>
</el-dialog>
</div>
-->
</glsx-dialog>
<!--
</el-dialog>
-->
<div
class=
"association-X"
v-if=
"editForm.relatedCouponId"
>
<div
class=
"associationRow"
>
<span
class=
"associationLists"
>
名称
</span>
...
...
@@ -1655,7 +1657,7 @@ export default {
// console.log('this.$refs.coupon',this.$refs.coupon[0])
//接收到的数据为空
this
.
templateSelection
=
this
.
$refs
.
coupon
[
0
].
data
;
this
.
$refs
.
coupon
[
0
].
data
.
length
?
(
this
.
$refs
.
coupon
[
0
].
tableHeightValues
=
''
)
:
this
.
$refs
.
coupon
[
0
].
setTableHeightFun
()
//
this.$refs.coupon[0].data.length ? (this.$refs.coupon[0].tableHeightValues = '') : this.$refs.coupon[0].setTableHeightFun()
},
handleSearch
()
{
this
.
$refs
.
coupon
[
0
].
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