Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-dj-oss-equity
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 14f21381
authored
Jul 16, 2021
by
liwk
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://192.168.3.233:8090/glsx-web/glsx-dj-oss-equity
2 parents
bc193d38
6dd599f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
225 additions
and
94 deletions
src/views/customer/collectionManagement/index.vue
src/views/customer/rightsCardManagement/index.vue
src/views/customer/collectionManagement/index.vue
View file @
14f2138
...
@@ -50,18 +50,26 @@
...
@@ -50,18 +50,26 @@
<div
class=
"storeTitle"
>
<div
class=
"storeTitle"
>
门店:
门店:
</div>
</div>
<el-
inpu
t
<el-
selec
t
v-model=
"batchListSearch.merchantName"
v-model=
"batchListSearch.merchantName"
placeholder=
"请输入门店"
filterable
></el-input>
remote
</div>
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
>
</el-option>
</el-select>
</div>
</div>
<div
class=
"selctMerchantBtn"
>
<el-button
type=
"primary"
icon=
"el-icon-search"
@
click=
"selectMerchant('batchListSearch')"
>
搜索门店
</el-button>
</div>
</div>
</div>
</div>
<!-- 批次界面弹窗 -->
<!-- 批次界面弹窗 -->
...
@@ -187,7 +195,6 @@
...
@@ -187,7 +195,6 @@
width=
"50%"
width=
"50%"
:before-close=
"handleClose"
:before-close=
"handleClose"
>
>
<h3>
权益卡信息
</h3>
<el-form
<el-form
:model=
"generateRightCardsForm"
:model=
"generateRightCardsForm"
:rules=
"rules"
:rules=
"rules"
...
@@ -200,27 +207,27 @@
...
@@ -200,27 +207,27 @@
prop=
"merchantName"
prop=
"merchantName"
>
>
<div
class=
"InputContainer2"
>
<div
class=
"InputContainer2"
>
<div
class=
"storeTitle"
>
<el-select
门店:
</div>
<el-input
v-model=
"generateRightCardsForm.merchantName"
placeholder=
"请输入门店"
></el-input>
</div>
<!--
<el-select
v-model=
"generateRightCardsForm.merchantName"
v-model=
"generateRightCardsForm.merchantName"
placeholder=
"请选择关联门店"
filterable
value-key=
"id"
remote
@
change=
"generateCardsformat"
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
>
>
<el-option
<el-option
v-for=
"
item in baseDate.equityList
"
v-for=
"
(item, index) in generateOptions
"
:key=
"i
tem.merchantId
"
:key=
"i
ndex
"
:label=
"item.merchantName"
:label=
"item.merchantName"
:value=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
>
</el-select>
-->
</el-option>
</el-select>
</div>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"生成张数"
label=
"生成张数"
...
@@ -353,14 +360,20 @@
...
@@ -353,14 +360,20 @@
门店:
门店:
<el-select
<el-select
v-model=
"collectionListSearch.merchantName"
v-model=
"collectionListSearch.merchantName"
placeholder=
"请选择门店"
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
>
>
<el-option
<el-option
v-for=
"(item, index) in
baseDate.equityList
"
v-for=
"(item, index) in
options
"
:key=
"index"
:key=
"index"
:label=
"item.merchantName"
:label=
"item.merchantName"
:value=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
>
</el-option>
</el-select>
</el-select>
<!--
<el-cascader
<!--
<el-cascader
v-model=
"batchListSearch.benefitPackagePickerList"
v-model=
"batchListSearch.benefitPackagePickerList"
...
@@ -407,6 +420,15 @@ export default {
...
@@ -407,6 +420,15 @@ export default {
data
()
{
data
()
{
return
{
return
{
// exportMemberCard: exportMemberCard,
// exportMemberCard: exportMemberCard,
// 批次下拉框
options
:
[],
// value: [],
list
:
[],
loading
:
false
,
states
:
[],
//批量生成下拉框
generateOptions
:[],
colletionDate
:
''
,
colletionDate
:
''
,
batchDate
:
''
,
batchDate
:
''
,
date_format
,
date_format
,
...
@@ -427,8 +449,8 @@ export default {
...
@@ -427,8 +449,8 @@ export default {
// 批次列表搜索项
// 批次列表搜索项
selectBatchId
:
''
||
null
,
selectBatchId
:
''
||
null
,
batchListSearch
:
{
batchListSearch
:
{
batchNo
:
''
||
null
,
batchNo
:
''
,
merchantName
:
''
||
null
,
merchantName
:
''
,
startTime
:
''
,
startTime
:
''
,
endTime
:
''
endTime
:
''
},
},
...
@@ -668,7 +690,16 @@ export default {
...
@@ -668,7 +690,16 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
list
=
this
.
states
.
map
(
item
=>
{
return
{
value
:
`value:
${
item
}
`
,
label
:
`label:
${
item
}
`
};
});
},
watch
:{
'generateRightCardsForm.merchantName'
(
n
){
this
.
generateOptions
.
map
(
e
=>
{
if
(
e
.
merchantName
==
n
)
this
.
generateRightCardsForm
.
merchantId
=
e
.
merchantId
})
}
},
},
methods
:
{
methods
:
{
fetch
(
url
,
params
)
{
fetch
(
url
,
params
)
{
...
@@ -683,11 +714,34 @@ export default {
...
@@ -683,11 +714,34 @@ export default {
xhr
.
send
(
params
)
xhr
.
send
(
params
)
})
})
},
},
//批次搜索获取门店下拉框
//批次下拉框异步请求
selectMerchant
(
listName
)
{
remoteMethod
(
query
)
{
equityApi
.
getCollectionMerchantList
({
merchantName
:
this
[
listName
].
merchantName
}).
then
((
res
)
=>
{
if
(
query
!==
''
)
{
this
[
listName
].
merchantName
=
res
.
merchantName
this
.
loading
=
true
;
equityApi
.
getCollectionMerchantList
({
merchantName
:
query
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
options
=
res
.
data
.
list
})
})
}
else
{
this
.
options
=
[];
}
},
//批量生成下拉框异步请求
generateRemoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
loading
=
true
;
equityApi
.
getCollectionMerchantList
({
merchantName
:
query
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
generateOptions
=
res
.
data
.
list
})
}
else
{
this
.
options
=
[];
}
},
},
// 批次界面导出
// 批次界面导出
exportbatchdetail
()
{
exportbatchdetail
()
{
...
@@ -872,7 +926,9 @@ export default {
...
@@ -872,7 +926,9 @@ export default {
resolve
()
resolve
()
})
})
},
},
handleClick
(
tab
,
event
)
{
},
handleClick
(
tab
,
event
)
{
this
.
options
=
[]
},
handleChange
(
value
)
{
},
handleChange
(
value
)
{
},
// 关闭批量生成界面
// 关闭批量生成界面
handleClose
(
done
)
{
handleClose
(
done
)
{
...
...
src/views/customer/rightsCardManagement/index.vue
View file @
14f2138
...
@@ -11,6 +11,23 @@
...
@@ -11,6 +11,23 @@
<el-select
<el-select
v-model=
"searchForm.merchantName"
v-model=
"searchForm.merchantName"
filterable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
>
<el-option
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
>
</el-option>
</el-select>
<!--
<el-select
v-model=
"searchForm.merchantName"
filterable
placeholder=
"请选择门店"
placeholder=
"请选择门店"
>
>
<el-option
<el-option
...
@@ -20,7 +37,7 @@
...
@@ -20,7 +37,7 @@
:value=
"item.name"
:value=
"item.name"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
-->
<div
class=
"buttonContainer"
>
<div
class=
"buttonContainer"
>
<el-button
<el-button
:id=
"tableParams.btnId"
:id=
"tableParams.btnId"
...
@@ -110,6 +127,23 @@
...
@@ -110,6 +127,23 @@
<el-select
<el-select
v-model=
"ruleForm.merchantName"
v-model=
"ruleForm.merchantName"
filterable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
>
<el-option
v-for=
"(item, index) in generateOptions"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
>
</el-option>
</el-select>
<!--
<el-select
v-model=
"ruleForm.merchantName"
filterable
placeholder=
"请选择门店"
placeholder=
"请选择门店"
size=
"mini"
size=
"mini"
@
change=
"changeStore"
@
change=
"changeStore"
...
@@ -121,7 +155,7 @@
...
@@ -121,7 +155,7 @@
:value=
"item.name"
:value=
"item.name"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
-->
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
label=
"有效期:"
label=
"有效期:"
...
@@ -218,6 +252,14 @@ import { equityApi } from '@/api/api'
...
@@ -218,6 +252,14 @@ import { equityApi } from '@/api/api'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//分页查询下拉框
options
:
[],
// value: [],
list
:
[],
loading
:
false
,
states
:
[],
// 建卡下拉框
generateOptions
:[],
//新建or编辑
//新建or编辑
isAdd
:
false
,
isAdd
:
false
,
//门店搜索下拉框
//门店搜索下拉框
...
@@ -227,54 +269,54 @@ export default {
...
@@ -227,54 +269,54 @@ export default {
src
:
'./images/yiquan.jpg'
,
src
:
'./images/yiquan.jpg'
,
inputSwitch
:
true
,
inputSwitch
:
true
,
dataSwitch
:
true
,
dataSwitch
:
true
,
storeOptions
:
[
//
storeOptions: [
{
//
{
id
:
'21'
,
//
id: '21',
name
:
'辛巴克'
//
name: '辛巴克'
},
{
//
}, {
id
:
'22'
,
//
id: '22',
name
:
'必胜客'
//
name: '必胜客'
},
//
},
{
//
{
id
:
'23'
,
//
id: '23',
name
:
'肯德基'
//
name: '肯德基'
},
//
},
{
//
{
id
:
'24'
,
//
id: '24',
name
:
'汉堡王'
//
name: '汉堡王'
},
//
},
{
//
{
id
:
'27'
,
//
id: '27',
name
:
'太平洋咖啡'
//
name: '太平洋咖啡'
},
//
},
{
//
{
id
:
'28'
,
//
id: '28',
name
:
'COSTA咖啡'
//
name: 'COSTA咖啡'
},
//
},
{
//
{
id
:
'26'
,
//
id: '26',
name
:
'哈根达斯'
//
name: '哈根达斯'
},
//
},
{
//
{
id
:
'25'
,
//
id: '25',
name
:
'CoCo都可'
//
name: 'CoCo都可'
},
//
},
{
//
{
id
:
'30'
,
//
id: '30',
name
:
'百果园 '
//
name: '百果园 '
},
//
},
{
//
{
id
:
'31'
,
//
id: '31',
name
:
'腾讯会员'
//
name: '腾讯会员'
},
{
//
}, {
id
:
'4'
,
//
id: '4',
name
:
'淘票票'
//
name: '淘票票'
},
//
},
{
//
{
id
:
'2'
,
//
id: '2',
name
:
'淘票票2'
//
name: '淘票票2'
}
//
}
],
//
],
effectiveNum
:
''
,
effectiveNum
:
''
,
data
:
''
,
data
:
''
,
ruleForm
:
{
ruleForm
:
{
...
@@ -285,7 +327,7 @@ export default {
...
@@ -285,7 +327,7 @@ export default {
effectiveType
:
''
,
effectiveType
:
''
,
platformGoodsId
:
+
''
,
platformGoodsId
:
+
''
,
merchantName
:
''
,
merchantName
:
''
,
id
:
''
id
:
''
},
},
product
:
[
product
:
[
{
{
...
@@ -393,12 +435,46 @@ export default {
...
@@ -393,12 +435,46 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
// 门店下拉框的的获取
this
.
list
=
this
.
states
.
map
(
item
=>
{
// getStoreList({}).then((res) => {
return
{
value
:
`value:
${
item
}
`
,
label
:
`label:
${
item
}
`
};
// this.storeOptions = res
});
// })
},
watch
:{
'ruleForm.merchantName'
(
n
){
this
.
generateOptions
.
map
(
e
=>
{
if
(
e
.
merchantName
==
n
)
this
.
ruleForm
.
merchantId
=
e
.
merchantId
})
}
},
},
methods
:
{
methods
:
{
//管理分页列表下拉框
remoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
loading
=
true
;
equityApi
.
getMerchantList
({
merchantName
:
query
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
options
=
res
.
data
.
list
})
}
else
{
this
.
options
=
[];
}
},
//建卡下拉框
generateRemoteMethod
(
query
)
{
if
(
query
!==
''
)
{
this
.
loading
=
true
;
equityApi
.
getCollectionMerchantList
({
merchantName
:
query
}).
then
((
res
)
=>
{
this
.
loading
=
false
;
this
.
generateOptions
=
res
.
data
.
list
})
}
else
{
this
.
options
=
[];
}
},
//改变门店
//改变门店
changeStore
(
value
)
{
changeStore
(
value
)
{
this
.
ruleForm
.
merchantId
=
this
.
storeOptions
.
filter
(
item
=>
item
.
name
==
value
)[
0
].
id
this
.
ruleForm
.
merchantId
=
this
.
storeOptions
.
filter
(
item
=>
item
.
name
==
value
)[
0
].
id
...
@@ -422,7 +498,6 @@ export default {
...
@@ -422,7 +498,6 @@ export default {
console
.
log
(
this
.
isAdd
)
console
.
log
(
this
.
isAdd
)
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
this
.
ruleForm
=
row
this
.
ruleForm
=
row
this
.
ruleForm
.
merchantName
=
''
this
.
ruleForm
.
effectiveType
=
row
.
effectiveType
+
''
this
.
ruleForm
.
effectiveType
=
row
.
effectiveType
+
''
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
this
.
effectiveNum
=
row
.
effectiveNum
this
.
effectiveNum
=
row
.
effectiveNum
...
...
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