Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-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 b499f16a
authored
Jul 13, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建界面改动及接口变化
1 parent
6d69ec58
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
520 additions
and
760 deletions
package-lock.json
src/api/api.js
src/views/customer/collectionManagement/index.vue
src/views/customer/newEquityCard/app.js
src/views/customer/newEquityCard/index.vue
src/views/customer/rightsCardManagement/index.vue
package-lock.json
View file @
b499f16
...
...
@@ -10026,7 +10026,7 @@
},
"resize-observer-polyfill"
:
{
"version"
:
"1.5.1"
,
"resolved"
:
"https://r
.cnpmjs
.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz"
,
"resolved"
:
"https://r
egistry.npm.taobao
.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz"
,
"integrity"
:
"sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
},
"resolve"
:
{
...
...
src/api/api.js
View file @
b499f16
...
...
@@ -8,4 +8,14 @@ export const orderApi = {
getOrderList
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.list.get'
)
},
}
export
const
orderApi
=
{
/**获取财务管理列表*/
getBalanceList
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.balance.list.get'
)
},
/** 获取订单列表*/
getOrderList
(
data
=
{})
{
return
request
(
data
,
'dj.api.get.equity.order.list.get'
)
},
}
\ No newline at end of file
src/views/customer/collectionManagement/index.vue
View file @
b499f16
...
...
@@ -45,10 +45,10 @@
</div>
</div>
<div
class=
"firstpickerContainer"
>
权益套餐
:
门店
:
<el-select
v-model=
"batchListSearch.
define
Id"
placeholder=
"请选择
权益套餐
"
v-model=
"batchListSearch.
merchant
Id"
placeholder=
"请选择
门店
"
>
<el-option
v-for=
"(item, index) in baseDate.equityList"
...
...
@@ -72,21 +72,26 @@
class=
"demo-form-inline"
>
<span
class=
"itemLeftContainer"
>
<el-form-item
label=
"门店:"
>
{{
cardsInformationForm
.
storeName
}}
</el-form-item>
</span>
<span
class=
"itemRightContainer"
>
<el-form-item
label=
"权益卡名称:"
>
{{
cardsInformationForm
.
memberName
}}
</el-form-item>
</span>
<span
class=
"item
Righ
tContainer"
>
<span
class=
"item
Lef
tContainer"
>
<el-form-item
label=
"批次:"
>
{{
cardsInformationForm
.
batchId
}}
</el-form-item>
</span>
<span
class=
"item
Lef
tContainer"
>
<span
class=
"item
Righ
tContainer"
>
<el-form-item
label=
"生成日期:"
>
{{
date_format
(
cardsInformationForm
.
createdDateStr
)
}}
</el-form-item>
</span>
<span
class=
"item
Righ
tContainer"
>
<span
class=
"item
Lef
tContainer"
>
<el-form-item
label=
"已激活:"
>
{{
cardsInformationForm
.
activationCount
||
"0"
}}
(
{{
ChangeDecimalToPercentage
(
...
...
@@ -96,14 +101,11 @@
}}
)
</el-form-item>
</span>
<span
class=
"item
Lef
tContainer"
>
<span
class=
"item
Righ
tContainer"
>
<el-form-item
label=
"生成张数:"
>
{{
cardsInformationForm
.
number
}}
</el-form-item>
</span>
<span
class=
"itemRightContainer"
>
<el-form-item
label=
""
>
</el-form-item>
</span>
</el-form>
<h2>
权益明细:
</h2>
<el-form
...
...
@@ -188,12 +190,12 @@
class=
"demo-ruleForm"
>
<el-form-item
label=
"关联
权益套餐
:"
label=
"关联
门店
:"
prop=
"relatedRightsPackage"
>
<el-select
v-model=
"generateRightCardsForm.related
RightsPackage
"
placeholder=
"请选择关联
权益套餐
"
v-model=
"generateRightCardsForm.related
Stores
"
placeholder=
"请选择关联
门店
"
value-key=
"id"
@
change=
"generateCardsformat"
>
...
...
@@ -240,6 +242,7 @@
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 批次管理分页表格 -->
<div
class=
"tablecontainer"
>
<d2-table
ref=
"batchDetailTable"
...
...
@@ -287,7 +290,7 @@
设备SN:
<div
class=
"Input"
>
<el-input
v-model=
"collectionListSearch.
condition.
sn"
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
></el-input>
...
...
@@ -297,7 +300,7 @@
账号:
<div
class=
"Input"
>
<el-input
v-model=
"collectionListSearch.
condition.
mobile"
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
></el-input>
...
...
@@ -332,10 +335,10 @@
></el-cascader>
</div>
-->
<div
class=
"firstpickerContainer"
>
权益套餐
:
门店
:
<el-select
v-model=
"collectionListSearch.
condition.define
Id"
placeholder=
"请选择
权益套餐
"
v-model=
"collectionListSearch.
merchant
Id"
placeholder=
"请选择
门店
"
>
<el-option
v-for=
"(item, index) in baseDate.equityList"
...
...
@@ -352,82 +355,7 @@
></el-cascader>
-->
</div>
</div>
<!-- 导出按钮 -->
<!--
<el-button
type=
"primary"
style=
"margin-left: 80px;margin-top: 20px"
@
click=
"dataExport"
>
数据导出
</el-button>
-->
<!-- 模拟查看按钮 -->
</div>
<!-- 详情弹窗 -->
<el-dialog
title=
"权益明细"
:visible
.
sync=
"detailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<div>
用户信息:
</div>
<el-form
:inline=
"true"
:model=
"userInformationForm"
class=
"demo-form-inline"
>
<span
class=
"topFirstItem"
>
<el-form-item
label=
"账号:"
>
{{
userInformationForm
.
mobile
}}
</el-form-item>
</span>
<span
class=
"topItem"
>
<el-form-item
label=
"激活时间:"
>
{{
this
.
date_format
(
userInformationForm
.
updatedDate
)
}}
</el-form-item>
</span>
<span
class=
"topItem"
>
<el-form-item
label=
"权益卡有效期:"
>
{{
this
.
date_format
(
userInformationForm
.
validitDate
)
}}
</el-form-item>
</span>
</el-form>
<div>
权益卡信息:
</div>
<el-form
:inline=
"true"
:model=
"rightsCardInformationForm"
class=
"demo-form-inline"
>
<span
class=
"itemLeftContainer"
>
<el-form-item
label=
"权益卡卡号:"
>
{{
rightsCardInformationForm
.
cardNo
}}
</el-form-item>
</span>
<span
class=
"itemRightContainer"
>
<el-form-item
label=
"激活码:"
>
{{
rightsCardInformationForm
.
activationCode
}}
</el-form-item>
</span>
<span
class=
"itemLeftContainer"
>
<el-form-item
label=
"权益卡名称:"
>
<!--
{{
rightsCardInformationForm
.
memberCardDefine
?
rightsCardInformationForm
.
memberCardDefine
.
memberName
:
""
}}
-->
{{
rightsCardInformationForm
.
memberCardDefine
.
memberName
}}
</el-form-item>
</span>
</el-form>
<div>
权益明细:
</div>
<!-- 领用详情界面弹窗表格 -->
<d2-table
ref=
"detailTable"
:tableParams=
"collectiondetailTable"
:getListApi=
"getMemberCardDetail"
:searchForm=
"collectPoupdetailTable"
>
</d2-table>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"detailsVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"detailsVisible = false"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 领用界面表格 -->
<div
class=
"tablecontainer"
>
<d2-table
...
...
@@ -437,16 +365,6 @@
:getListApi=
"listRequisitionMemberCard"
:beforeSearchFn=
"changeCollectionDataFormat"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"startcollectiondetails(scope.scope)"
>
查看详情
</el-button>
</span>
</d2-table>
</div>
</div>
...
...
@@ -469,13 +387,13 @@ import { exportExcel } from '@/common.js'
import
{
generateMemberBatch
,
// getlistMemberInfo,
getlistByCardName
,
//
getlistByCardName,
// getdetailsMemberInfo,
listMemberBatch
,
listMemberCard
,
listRequisitionMemberCard
,
getMemberCardDetail
,
exportMemberCard
//
listMemberBatch,
//
listMemberCard,
//
listRequisitionMemberCard,
//
getMemberCardDetail,
//
exportMemberCard
// exportMemberCardByBatchId
// getmemberRights
}
from
'@/api/test'
...
...
@@ -483,12 +401,6 @@ import {
export
default
{
data
()
{
return
{
// 开始时间and结束时间
// startData:"",
// endData:"",
// getmemberRights:getmemberRights,
// exportMemberCard: exportMemberCard,
// rate: ChangeDecimalToPercentage(this.cardsInformationForm.activationCount/this.cardsInformationForm.number),
exportMemberCard
:
exportMemberCard
,
colletionDate
:
''
,
batchDate
:
''
,
...
...
@@ -502,13 +414,13 @@ export default {
},
// 领用弹窗列表搜索
collectionListSearch
:
{
condition
:
{
begin
Time
:
''
||
null
,
//
condition: {
start
Time
:
''
||
null
,
endTime
:
''
||
null
,
sn
:
''
,
mobile
:
''
,
define
Id
:
''
||
null
}
merchant
Id
:
''
||
null
//
}
},
// 批次弹窗列表搜索项
batchPopupListSearch
:
{
...
...
@@ -518,12 +430,12 @@ export default {
},
getlistMemberBatch
:
listMemberBatch
,
// 批次列表搜索项
selectBatchId
:
''
||
null
,
selectBatchId
:
''
||
null
,
batchListSearch
:
{
batch
Id
:
''
||
null
,
define
Id
:
''
||
null
,
createdDateStart
:
''
,
createdDateEnd
:
''
batch
No
:
''
||
null
,
merchant
Id
:
''
||
null
,
startTime
:
''
,
endTime
:
''
},
dialogVisible
:
false
,
activeName
:
'first'
,
...
...
@@ -560,11 +472,11 @@ export default {
],
// 批次管理表格
MemberBatchVo
:
{
count
:
''
,
defineCode
:
''
,
// merchantId: ""
,
// merchantName: ""
,
remark
:
''
num
:
''
,
//
defineCode: '',
merchantId
:
''
,
merchantName
:
''
,
remark
s
:
''
},
batchTableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
...
@@ -573,26 +485,26 @@ export default {
tableColumns
:
[
{
label
:
'批次'
,
prop
:
'batch
Id
'
prop
:
'batch
No
'
},
{
label
:
'
权益套餐
'
,
prop
:
'me
mber
Name'
label
:
'
门店
'
,
prop
:
'me
rchant
Name'
},
{
label
:
'生成数量'
,
prop
:
'num
ber
'
prop
:
'num'
// width: 110,
// tagLabel: true
},
{
label
:
'激活数量'
,
prop
:
'
activation
Count'
,
prop
:
'
recipient
Count'
,
// minWidth: '200'
formatter
:
(
cellValue
)
=>
{
if
(
cellValue
.
activation
Count
)
{
return
cellValue
.
activation
Count
if
(
cellValue
.
recipient
Count
)
{
return
cellValue
.
recipient
Count
}
else
{
return
0
}
...
...
@@ -600,9 +512,9 @@ export default {
},
{
label
:
'生成时间'
,
prop
:
'createdDate
Str
'
,
prop
:
'createdDate'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
date_format
(
cellValue
.
createdDate
Str
)
return
this
.
date_format
(
cellValue
.
createdDate
)
}
// formatter: (cellValue) => {
...
...
@@ -670,7 +582,6 @@ export default {
collectionTableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'卡号'
,
...
...
@@ -697,19 +608,19 @@ export default {
// // minWidth: '200'
// },
{
label
:
'
权益套餐
'
,
prop
:
'me
mber
Name'
,
label
:
'
门店
'
,
prop
:
'me
rchant
Name'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
me
mberCardDefine
.
member
Name
return
cellValue
.
me
rchant
Name
}
},
{
label
:
'生成时间'
,
prop
:
'
updatedDat
e'
,
prop
:
'
activeTim
e'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
return
this
.
date_format
(
cellValue
.
updatedDat
e
)
return
this
.
date_format
(
cellValue
.
activeTim
e
)
}
},
{
...
...
@@ -725,8 +636,9 @@ export default {
prop
:
'status'
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
'已激活'
,
0
:
'未激活'
"-1"
:
'初始化'
,
"1"
:
'已激活'
,
"0"
:
'未激活'
,
}[
cellValue
.
status
]
},
minWidth
:
'200'
...
...
@@ -735,11 +647,11 @@ export default {
},
// 批量生成权益卡弹窗表格
generateRightCardsForm
:
{
related
RightsPackage
:
''
,
related
Stores
:
''
,
cardsNumber
:
''
,
remarks
:
''
,
Id
:
''
,
Cod
e
:
''
merchant
Id
:
''
,
merchantNam
e
:
''
},
rules
:
{
// applicableChannel: [{ required: true, message: "请选择渠道", trigger: "change" }],
...
...
@@ -749,11 +661,6 @@ export default {
cardsNumber
:
[{
required
:
true
,
message
:
'请填写张数 '
,
trigger
:
'blur'
}]
},
// 将id转化成cardId
// 领用详情界面弹窗
collectPoupdetailTable
:
{
cardId
:
''
},
// 用户详情
userInformationForm
:
{
detailsVisible
:
false
,
...
...
@@ -768,51 +675,6 @@ export default {
memberName
:
''
,
memberCardDefine
:
{}
},
// 详情界面table
// 详情弹框权益明细table
collectiondetailTable
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'memberRights'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'权益名'
,
prop
:
'name'
// minWidth: '200'
},
{
label
:
'状态'
,
prop
:
'rightStatus'
,
formatter
:
(
cellValue
)
=>
{
return
'正常'
}
},
{
label
:
'有效期'
,
prop
:
'validitDate'
,
formatter
:
(
cellValue
)
=>
{
var
date
=
cellValue
.
validitDate
.
split
(
' '
)[
0
].
split
(
'-'
)
return
`
${
date
[
0
]}
年
${
date
[
1
]}
月
${
date
[
2
]}
日`
}
},
{
label
:
'剩余次数'
,
prop
:
'brief'
,
// minWidth: '200'
formatter
:
()
=>
{
return
'不限制'
}
},
{
label
:
'权益说明'
,
prop
:
'brief'
,
// minWidth: '200'
formatter
:
()
=>
{
return
'暂无说明'
}
}
]
},
// 批次管理详情弹窗
cardsInformationForm
:
{
batchdetailsVisible
:
false
,
...
...
@@ -822,7 +684,8 @@ export default {
batchId
:
''
,
generateNumber
:
''
,
activation
:
''
,
memberName
:
''
memberName
:
''
,
storeName
:
''
},
// 权益明细
BatchDetailInformationForm
:
{
...
...
@@ -879,9 +742,6 @@ export default {
this
.
baseDate
.
equityList
=
res
})
},
activated
()
{
console
.
log
(
1111
)
},
methods
:
{
fetch
(
url
,
params
)
{
return
new
Promise
((
resolve
)
=>
{
...
...
@@ -911,11 +771,11 @@ export default {
// 领用界面导出
exportCollection
()
{
var
data
=
{
beginTime
:
this
.
collectionListSearch
.
condition
.
begin
Time
,
endTime
:
this
.
collectionListSearch
.
condition
.
endTime
,
sn
:
this
.
collectionListSearch
.
condition
.
sn
,
mobile
:
this
.
collectionListSearch
.
condition
.
mobile
,
defineId
:
this
.
collectionListSearch
.
condition
.
define
Id
beginTime
:
this
.
collectionListSearch
.
start
Time
,
endTime
:
this
.
collectionListSearch
.
endTime
,
sn
:
this
.
collectionListSearch
.
sn
,
mobile
:
this
.
collectionListSearch
.
mobile
,
defineId
:
this
.
collectionListSearch
.
merchant
Id
}
const
url
=
...
...
@@ -956,8 +816,8 @@ export default {
// 批量生成change
generateCardsformat
(
e
)
{
console
.
log
(
e
)
this
.
generateRightCardsForm
.
Id
=
e
.
id
this
.
generateRightCardsForm
.
Cod
e
=
e
.
defineCode
this
.
generateRightCardsForm
.
merchant
Id
=
e
.
id
this
.
generateRightCardsForm
.
merchantNam
e
=
e
.
defineCode
},
// 去重
...
...
@@ -972,16 +832,16 @@ export default {
// 改变批次日期数据格式
changeBatchDataFormat
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
batchListSearch
.
createdDateEnd
=
this
.
batchDate
this
.
batchListSearch
.
endTime
=
this
.
batchDate
?
this
.
batchDate
[
1
]
+
' 23:59:59'
:
''
this
.
batchListSearch
.
createdDateStart
=
this
.
batchDate
this
.
batchListSearch
.
startTime
=
this
.
batchDate
?
this
.
batchDate
[
0
]
+
' 00:00:01'
:
''
if
(
this
.
selectBatchId
)
{
this
.
batchListSearch
.
batch
Id
=
+
this
.
selectBatchId
}
else
{
this
.
batchListSearch
.
batch
Id
=
null
:
''
if
(
this
.
selectBatchId
)
{
this
.
batchListSearch
.
batch
No
=
+
this
.
selectBatchId
}
else
{
this
.
batchListSearch
.
batch
No
=
null
}
console
.
log
(
this
.
batchListSearch
)
resolve
()
...
...
@@ -991,18 +851,18 @@ export default {
changeCollectionDataFormat
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
this
.
collectionListSearch
.
condition
.
sn
.
length
>
2
||
this
.
collectionListSearch
.
condition
.
sn
.
length
<
1
this
.
collectionListSearch
.
sn
.
length
>
2
||
this
.
collectionListSearch
.
sn
.
length
<
1
)
{
if
(
this
.
collectionListSearch
.
condition
.
mobile
.
length
>
2
||
this
.
collectionListSearch
.
condition
.
mobile
.
length
<
1
this
.
collectionListSearch
.
mobile
.
length
>
2
||
this
.
collectionListSearch
.
mobile
.
length
<
1
)
{
console
.
log
(
this
.
colletionDate
)
this
.
collectionListSearch
.
condition
.
endTime
=
this
.
colletionDate
this
.
collectionListSearch
.
endTime
=
this
.
colletionDate
?
this
.
colletionDate
[
1
]
+
' 23:59:59'
:
''
||
undefined
this
.
collectionListSearch
.
condition
.
begin
Time
=
this
.
colletionDate
this
.
collectionListSearch
.
start
Time
=
this
.
colletionDate
?
this
.
colletionDate
[
0
]
+
' 00:00:01'
:
''
||
undefined
resolve
()
...
...
@@ -1076,13 +936,13 @@ export default {
// 批量制造卡片
generateCards
(
formName
)
{
var
params
=
{
count
:
+
this
.
generateRightCardsForm
.
cardsNumber
,
defineId
:
+
this
.
generateRightCardsForm
.
Id
,
defineCode
:
this
.
generateRightCardsForm
.
Cod
e
,
num
:
+
this
.
generateRightCardsForm
.
cardsNumber
,
merchantId
:
+
this
.
generateRightCardsForm
.
merchant
Id
,
merchantName
:
this
.
generateRightCardsForm
.
merchantNam
e
,
// merchantId: this.merchantId,
// merchantName: this.merchantName + '',
// remarks清空后转为空字符串,不然会undefined
remark
:
this
.
generateRightCardsForm
.
remarks
||
''
remark
s
:
this
.
generateRightCardsForm
.
remarks
||
''
}
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
@@ -1169,7 +1029,7 @@ h2 {
margin-left
:
10px
;
}
.firstpickerContainer
{
margin-left
:
2
0px
;
margin-left
:
5
0px
;
margin-top
:
20px
;
}
.lastpickerContainer
{
...
...
src/views/customer/newEquityCard/app.js
deleted
100644 → 0
View file @
6d69ec5
import
App
from
'./index.vue'
import
base
from
'@/base'
import
GlsxVueCommon
from
'glsx-vue-common'
base
.
getConfig
().
then
(
data
=>
{
const
{
vue
,
config
}
=
data
vue
.
use
(
GlsxVueCommon
,
config
)
base
.
render
(
App
)
})
src/views/customer/newEquityCard/index.vue
deleted
100644 → 0
View file @
6d69ec5
<!-- -->
<
template
>
<div
class=
"container"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"200px"
class=
"demo-ruleForm"
label-position=
"right"
>
<div
class=
"baseinformation"
>
基础信息
</div>
<div
class=
"itemContainer"
>
<el-form-item
label=
"权益卡名称:"
prop=
"name"
>
<el-input
v-model=
"ruleForm.name"
style=
"width: 60%"
id=
"name"
size=
"mini"
></el-input>
</el-form-item>
<el-form-item
label=
"权益卡说明:"
prop=
"explain"
>
<el-input
maxlength=
"200"
type=
"textarea"
v-model=
"ruleForm.explain"
style=
"width: 60%"
id=
"explain"
size=
"mini"
></el-input>
</el-form-item>
<el-form-item
label=
"套餐有效期:"
prop=
"validity"
>
领卡时起
<el-input-number
v-model=
"ruleForm.validity"
controls-position=
"right"
:min=
"1"
:max=
"999"
size=
"mini"
id=
"validity"
></el-input-number>
月内有效
</el-form-item>
</div>
<div>
权益配置
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.currencyCheckbox"
@
change=
"startcurrencyInputioncheck"
>
停驶返嘀币
</el-checkbox>
</el-form-item>
<el-form-item
label=
"返嘀币(天):"
prop=
"currencyInpution"
>
<el-input-number
v-model=
"ruleForm.currencyInpution"
size=
"mini"
style=
"width: 60%"
:disabled=
"!ruleForm.currencyCheckbox"
id=
"currencyInpution"
:min=
"0"
:max=
"999"
controls-position=
"right"
></el-input-number>
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.oilCheckbox"
@
change=
"startoilInputioncheck"
>
加油无忧
</el-checkbox>
</el-form-item>
<el-form-item
label=
"油站推荐半径:"
prop=
"oilInpution"
>
<el-input-number
v-model=
"ruleForm.oilInpution"
size=
"mini"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
id=
"oilInpution"
:min=
"0"
:max=
"999"
controls-position=
"right"
></el-input-number>
公里
</el-form-item>
<el-form-item
label=
"加油优惠推送最长间隔 :"
prop=
"timeInpution"
>
<el-input-number
v-model=
"ruleForm.timeInpution"
placeholder=
"若车主近期无加油记录,系统将触发该规则进行消息推送"
size=
"mini"
style=
"width: 60%"
:disabled=
"!ruleForm.oilCheckbox"
id=
"timeInpution"
type=
"number"
:min=
"0"
:max=
"999"
controls-position=
"right"
></el-input-number>
天
</el-form-item>
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.worryFreeCheckbox"
@
change=
"startpushCollisioncheck"
>
出险无忧
</el-checkbox>
</el-form-item>
<!--
<el-form-item
label=
"启用碰撞推送:"
prop=
"pushCollision"
>
<el-switch
v-model=
"ruleForm.pushCollision"
active-text=
"开"
inactive-text=
"关"
active-color=
"#13ce66"
inactive-color=
"#ff4949"
:disabled=
"!ruleForm.worryFreeCheckbox"
>
</el-switch>
</el-form-item>
-->
</div>
<div
class=
"itemContainer"
>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.specialOfferCheckbox"
@
change=
"startrebateRatiocheck"
>
特惠商品
</el-checkbox>
</el-form-item>
<el-form-item
label=
"嘀币返利比例(%):"
prop=
"rebateRatio"
>
<el-input-number
v-model=
"ruleForm.rebateRatio"
size=
"mini"
placeholder=
"如设置10%,代表消费100元返利10嘀币"
style=
"width: 60%"
:disabled=
"!ruleForm.specialOfferCheckbox"
id=
"rebateRatio"
type=
"number"
:min=
"0"
:max=
"999"
controls-position=
"right"
></el-input-number>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.rescueCheckbox"
>
救援无忧
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.creditCheckbox"
>
微众车主信用分期
</el-checkbox>
</el-form-item>
<el-form-item>
<el-checkbox
v-model=
"ruleForm.meituanCheckbox"
>
美团外卖,天天好劵
</el-checkbox>
</el-form-item>
</div>
<div
class=
"buttonContainer"
>
<el-button
size=
"middle"
@
click=
"cancel"
>
取消
</el-button>
<el-button
:plain=
"true"
size=
"middle"
@
click=
"jump('ruleForm')"
type=
"primary"
>
提交
</el-button>
</div>
</el-form>
</div>
</
template
>
<
script
>
import
{
insertMemberCardDefineRf
}
from
'@/api/test'
export
default
{
data
()
{
// var currencyInputionCheck = (rule, value, callback) => {
// if (!value&&this.rules.currencyInpution[0].required==true) {
// return callback(new Error('请填写嘀币值'));
// }
// if (!Number.isInteger(value)&&this.rules.currencyInpution[0].required==true) {
// this.$refs.ruleForm.clearValidate()
// callback(new Error('请输入数字值'));
// }
// };
return
{
// MemberCardDefineRightsVo:{
// description:ruleForm.explain,
// equityItemJson:,
// name:ruleForm.name,
// validitVaule:""
// },
ruleForm
:
{
name
:
''
,
explain
:
''
,
validity
:
1
,
date1
:
''
,
date2
:
''
,
delivery
:
false
,
type
:
[],
resource
:
''
,
currencyCheckbox
:
false
,
currencyInpution
:
''
,
oilCheckbox
:
false
,
oilInpution
:
''
,
timeInpution
:
''
,
worryFreeCheckbox
:
false
,
pushCollision
:
false
,
rebateRatio
:
''
,
specialOfferCheckbox
:
false
,
exchangeStandard
:
false
,
rescueCheckbox
:
false
,
creditCheckbox
:
false
,
// rescueWorryFree: null,
creditInstallment
:
null
,
meiTuan
:
null
,
meituanCheckbox
:
false
},
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入长度在2-10以内的权益卡名称'
,
trigger
:
'blur'
},
{
min
:
2
,
max
:
10
,
message
:
'长度在 2 到 10 个字符'
,
trigger
:
'blur'
}
],
validity
:
[{
required
:
true
,
message
:
'请选择有效期'
,
trigger
:
'blur'
}],
currencyInpution
:
[{
required
:
false
,
message
:
'请填写加油半径'
,
trigger
:
'blur'
}],
timeInpution
:
[{
required
:
false
,
message
:
'请填写时间间隔'
,
trigger
:
'blur'
}],
rebateRatio
:
[{
required
:
false
,
message
:
'请填写嘀币返利比例'
,
trigger
:
'blur'
}]
// currencyInpution: [
// { required: true, message: "请填写返回的嘀币数", trigger: "blur" },
// ],
// oilInpution: [{ required: true, message: "请填写推荐半径", trigger: "blur" }],
// timeInpution: [{ required: true, message: "请填写最大天数", trigger: "blur" }],
// rebateRatio: [{ required: true, message: "请填写返利比例", trigger: "blur" }],
}
}
},
activated
()
{
console
.
log
(
1111
)
},
methods
:
{
// 开启input验证
startcurrencyInputioncheck
()
{
this
.
rules
.
currencyInpution
[
0
].
required
=
!
this
.
rules
.
currencyInpution
[
0
].
required
this
.
$refs
.
ruleForm
.
clearValidate
()
this
.
ruleForm
.
currencyInpution
=
''
},
startoilInputioncheck
()
{
this
.
rules
.
timeInpution
[
0
].
required
=
!
this
.
rules
.
timeInpution
[
0
].
required
this
.
$refs
.
ruleForm
.
clearValidate
()
this
.
ruleForm
.
timeInpution
=
''
this
.
ruleForm
.
oilInpution
=
''
},
startpushCollisioncheck
()
{
this
.
rules
.
pushCollision
[
0
].
required
=
!
this
.
rules
.
pushCollision
[
0
].
required
this
.
$refs
.
ruleForm
.
clearValidate
()
this
.
ruleForm
.
pushCollision
=
''
},
startrebateRatiocheck
()
{
this
.
rules
.
rebateRatio
[
0
].
required
=
!
this
.
rules
.
rebateRatio
[
0
].
required
this
.
$refs
.
ruleForm
.
clearValidate
()
this
.
ruleForm
.
rebateRatio
=
''
},
// 检验跳转
jumpScroll
(
nameId
)
{
var
dom
=
document
.
getElementById
(
nameId
)
document
.
documentElement
.
scrollTop
=
dom
.
clientHeight
// document.getElementById(nameId).scrollIntoView()
},
cancel
()
{
window
.
history
.
go
(
-
1
)
this
.
ruleForm
=
{}
},
clear
(
params
,
arr
=
[])
{
// console.log(params);
for
(
let
i
in
params
)
{
if
(
params
[
i
]
instanceof
Array
)
{
for
(
let
j
in
params
[
i
])
this
.
clear
(
params
[
i
][
j
])
}
if
(
params
[
i
]
instanceof
Object
)
this
.
clear
((
params
[
i
]))
if
((
params
[
i
]
==
''
||
params
[
i
]
==
null
||
params
[
i
]
==
undefined
)
&&
!
arr
.
find
(
item
=>
item
==
i
))
delete
params
[
i
]
}
// console.log(params);
return
params
},
jump
(
formName
)
{
let
submit
=
false
this
.
jumpScroll
(
'validity'
)
var
equityItemJson
=
{
returnDicoins
:
+
this
.
ruleForm
.
currencyInpution
,
oilworry
:
{
oilRecommendRadius
:
+
this
.
ruleForm
.
oilInpution
,
oilRemindInterval
:
+
this
.
ruleForm
.
timeInpution
},
collisionPush
:
this
.
ruleForm
.
pushCollision
,
dicoinRebateRatio
:
+
this
.
ruleForm
.
rebateRatio
,
// rescueWorryFree: this.ruleForm.rescueWorryFree,
creditInstallment
:
this
.
ruleForm
.
creditInstallment
,
meiTuan
:
this
.
ruleForm
.
meiTuan
}
var
equityItem
=
this
.
clear
(
equityItemJson
)
console
.
log
(
this
.
ruleForm
);
var
params
=
{
memberDescription
:
this
.
ruleForm
.
explain
,
memberName
:
this
.
ruleForm
.
name
,
validitVaule
:
this
.
ruleForm
.
validity
||
0
,
rightsList
:
[]
}
// console.log(params, '-----')
if
(
this
.
ruleForm
.
currencyCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
20
,
equityItemJson
:
JSON
.
stringify
({
returnDicoins
:
equityItem
.
returnDicoins
})
})
submit
=
true
}
if
(
this
.
ruleForm
.
oilCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
21
,
equityItemJson
:
JSON
.
stringify
(
equityItem
.
oilworry
)
})
submit
=
true
}
if
(
this
.
ruleForm
.
worryFreeCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
22
// equityItemJson: JSON.stringify(equityItem)
})
submit
=
true
}
if
(
this
.
ruleForm
.
specialOfferCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
23
,
equityItemJson
:
JSON
.
stringify
({
dicoinRebateRatio
:
equityItem
.
dicoinRebateRatio
})
})
submit
=
true
}
if
(
this
.
ruleForm
.
rescueCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
24
// equityItemJson: JSON.stringify(equityItem)
})
submit
=
true
}
if
(
this
.
ruleForm
.
creditCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
25
// equityItemJson: JSON.stringify(equityItem)
})
submit
=
true
}
if
(
this
.
ruleForm
.
meituanCheckbox
)
{
params
.
rightsList
.
push
({
rightsId
:
26
// equityItemJson: JSON.stringify(equityItem)
})
submit
=
true
}
this
.
$refs
[
formName
].
validate
((
valid
,
options
)
=>
{
if
(
valid
)
{
if
(
submit
==
true
)
{
var
data
=
this
.
clear
(
params
,
[
'validitVaule'
])
insertMemberCardDefineRf
(
data
).
then
((
res
)
=>
{
if
(
res
>
0
)
{
window
.
history
.
go
(
-
1
)
this
.
ruleForm
=
{}
// this.$message({
// message: '增加成功!',
// type: 'success'
// })
}
else
{
this
.
$message
({
message
:
'增加失败!'
,
type
:
'error'
})
}
})
}
else
{
this
.
$message
({
message
:
'请至少选择一项服务!'
,
type
:
'error'
})
}
}
else
{
console
.
log
(
Object
.
keys
(
options
))
// 转换成prop对应的id,需要分别转,最好id取唯一的prop值
// var temp = {
// "name": 'nameId'
// }
// this.jumpScroll(temp[Object.keys(options)[0]])
this
.
jumpScroll
(
Object
.
keys
(
options
)[
0
])
// console.log('----------------')
return
false
}
})
// if (this.ruleForm.name) {
// if (this.submit == true) {
// insertMemberCardDefineRf(params).then((res) => {
// // console.log(res)
// if (res > 0) {
// window.history.go(-1);
// ruleForm = {};
// } else {
// this.$message({
// message: "增加失败",
// type: "error",
// });
// }
// });
// } else {
// this.$message({
// message: "需开通至少一项服务",
// type: "error",
// });
// }
// } else {
// this.$message({
// message: "权益卡名称不能为空",
// type: "error",
// });
// }
}
// inableInpution(checkStatus, inputStatus) {
// this[inputStatus] = !this[checkStatus]
// // if(this.stopdriving==true){
// // this. stopdrivingInpution=false
// // }else{
// // this. stopdrivingInpution=true
// // }
// }
}
}
</
script
>
<
style
>
*
{
padding
:
0
;
margin
:
0
;
border
:
0
;
}
.container
{
height
:
900px
;
margin-left
:
100px
;
margin-top
:
20px
;
}
.itemContainer
{
margin-left
:
20px
;
margin-top
:
20px
;
}
.buttonContainer
{
margin-left
:
40%
;
margin-top
:
50px
;
}
</
style
>
src/views/customer/rightsCardManagement/index.vue
View file @
b499f16
<!-- -->
<
template
>
<div
class=
"contianer"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"addCard"
>
新建权益卡
</el-button>
<div
class=
"topline"
>
<div
class=
"button"
>
<el-button
type=
"primary"
@
click=
"addCard"
>
新建权益卡
</el-button>
</div>
<el-select
v-model=
"searchForm.merchantName"
filterable
placeholder=
"请选择门店"
>
<el-option
v-for=
"(item,index) in storeOptions"
:key=
"index"
:label=
"item.storeName"
:value=
"item.storeValue"
>
</el-option>
</el-select>
<div
class=
"buttonContainer"
>
<el-button
:id=
"tableParams.btnId"
type=
"primary"
icon=
"el-icon-search"
>
搜索
</el-button>
</div>
</div>
<div
class=
"tablecontainer"
>
<d2-table
ref=
"recordTable"
...
...
@@ -19,15 +42,154 @@
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
></el-button>
<el-button
type=
"text"
@
click=
"edit(scope.scope)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</el-button>
</span>
</d2-table>
</div>
<!-- 新建权益卡弹窗 -->
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"985px"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
label-position=
"left"
>
<!-- 基础表单 -->
<div
class=
"baseinformation"
>
<span
class=
"titleText"
>
基本信息
</span>
</div>
<div
class=
"form"
>
<el-form-item
label=
"名称"
prop=
"name"
style=
"width: 30%"
id=
"name"
>
<el-input
v-model=
"ruleForm.name"
maxlength=
"10"
type=
"text"
size=
"mini"
></el-input>
</el-form-item>
<el-form-item
label=
"卡片样式:"
prop=
"cardStyle"
>
<div
class=
"imageList"
>
<div
v-for=
"(item,index) in product"
:key=
"index"
:id=
item.id
@
click=
"changeStyle(item.id)"
class=
"imgCtn"
>
<img
:src=
"item.imgSrc"
alt=
""
class=
"imageItem"
>
</div>
</div>
</el-form-item>
<el-form-item
label=
"渠道门店"
prop=
"store"
>
<el-select
v-model=
"ruleForm.store"
filterable
placeholder=
"请选择门店"
size=
"mini"
>
<el-option
v-for=
"(item,index) in storeOptions"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"有效期:"
prop=
"resource"
>
<el-radio-group
v-model=
"ruleForm.resource"
>
<el-radio
label=
"永久有效"
@
change=
"e => controlSwitch(e, 'disable')"
>
永久有效
</el-radio>
<el-radio
:label=
"month"
@
change=
"e => controlSwitch(e, 'input')"
>
领取时起
<el-input-number
v-model=
"month"
controls-position=
"right"
:min=
"1"
:max=
"999"
id=
"month"
:disabled=
"inputSwitch"
size=
"mini"
change=
""
></el-input-number>
天内有效
</el-radio>
<el-radio
:label=
"data"
@
change=
"e => controlSwitch(e, 'data')"
>
<el-date-picker
v-model=
"data"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:disabled=
"dataSwitch"
size=
"mini"
>
</el-date-picker>
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"使用说明:"
prop=
"desc"
>
<el-input
type=
"textarea"
v-model=
"ruleForm.desc"
maxlength=
"500"
></el-input>
</el-form-item>
</div>
<div
class=
"buttonCtn"
>
<el-form-item>
<el-button
type=
"primary"
@
click=
"submitForm('ruleForm')"
>
提交
</el-button>
<el-button
@
click=
"resetForm('ruleForm')"
>
取消
</el-button>
</el-form-item>
</div>
</el-form>
</el-dialog>
</div>
</
template
>
<
script
>
function
date_format
(
d
)
{
function
date_format
(
d
)
{
var
date
=
new
Date
(
d
)
var
Y
=
date
.
getFullYear
()
+
'-'
var
M
=
...
...
@@ -38,12 +200,69 @@ function date_format (d) {
import
{
listMemberCardDefine
}
from
'@/api/test'
// import {memberCardDetails} from "@/api/test";
export
default
{
data
()
{
data
()
{
return
{
//门店搜索下拉框
store
:
''
,
//弹窗界面
merchantName
:
''
,
dialogVisible
:
false
,
src
:
'./images/yiquan.jpg'
,
inputSwitch
:
true
,
dataSwitch
:
true
,
storeOptions
:
[],
month
:
''
,
data
:
''
,
ruleForm
:
{
name
:
''
,
cardStyle
:
''
,
desc
:
''
,
store
:
''
,
resource
:
''
,
},
product
:
[
{
id
:
"firstImg"
,
imgSrc
:
require
(
"./images/yiquan.jpg"
),
},
{
id
:
"secondImg"
,
imgSrc
:
require
(
"./images/yiquan.jpg"
),
},
{
id
:
"thirdImg"
,
imgSrc
:
require
(
"./images/yiquan.jpg"
),
},
{
id
:
"forthImg"
,
imgSrc
:
require
(
"./images/yiquan.jpg"
),
},
],
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'change'
},
{
min
:
1
,
max
:
15
,
message
:
'请输入是15字以内的名称'
,
trigger
:
'blur'
}
],
resource
:
[
{
required
:
true
,
message
:
'请选择有效期类型'
,
trigger
:
'change'
}
],
cardStyle
:
[
{
required
:
true
,
message
:
'请选择卡片'
,
trigger
:
'change'
}
],
desc
:
[
{
min
:
0
,
max
:
10
,
message
:
'请输入500字以内的名称'
,
trigger
:
'blur'
}
],
store
:
[
{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}
],
},
//权益卡管理界面
date_format
,
getListApi
:
listMemberCardDefine
,
// getListApi: none,
searchForm
:
null
,
searchForm
:
{
merchantName
:
''
},
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
...
...
@@ -55,6 +274,18 @@ export default {
// minWidth: '200'
},
{
label
:
'门店名称'
,
prop
:
'store'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
let
arr
=
[]
cellValue
.
memberRights
.
map
(
e
=>
{
if
(
e
)
arr
.
push
(
e
.
name
)
})
return
arr
.
join
(
'、'
)
}
},
{
label
:
'有效期'
,
prop
:
'dateExpire'
,
formatter
:
(
cellValue
)
=>
{
...
...
@@ -66,29 +297,12 @@ export default {
}
},
{
label
:
'权益内容'
,
prop
:
'name'
,
minWidth
:
'200'
,
formatter
:
(
cellValue
)
=>
{
const
arr
=
[]
cellValue
.
memberRights
.
map
(
e
=>
{
if
(
e
)
arr
.
push
(
e
.
name
)
})
return
arr
.
join
(
'、'
)
}
},
{
label
:
'领卡人数'
,
label
:
'领卡用户'
,
prop
:
'activationCount'
// width: 110,
// tagLabel: true
},
{
label
:
'创建时间'
,
prop
:
'createdDateStr'
// minWidth: '200'
},
{
label
:
'状态'
,
prop
:
'status'
,
formatter
:
(
cellValue
)
=>
{
...
...
@@ -96,7 +310,11 @@ export default {
1
:
'正常'
}[
cellValue
.
status
]
}
},
{
label
:
'创建时间'
,
prop
:
'createdDateStr'
// minWidth: '200'
},
{
label
:
'备注'
,
...
...
@@ -108,27 +326,102 @@ export default {
}
}
},
mounted
()
{
mounted
()
{
// 门店下拉框的的获取
// getStoreList({}).then((res) => {
// this.storeOptions = res
// })
},
methods
:
{
addCard
()
{
window
.
location
.
href
=
'/customer/newEquityCard.html'
//编辑
edit
(
row
)
{
console
.
log
(
row
)
this
.
dialogVisible
=
true
this
.
ruleForm
=
row
},
//复制
copy
(
row
)
{
console
.
log
(
row
)
this
.
dialogVisible
=
true
this
.
ruleForm
=
row
}
// handleEdit() {
// // },
// updateRightCardTable(params = {}) {
// var _this = this;
// request
// .req("/rightCardManagement", params)
// .then(function (res) {
// console.log(res);
// _this. = res. rightsCardManagement;
// })
// .catch(function (error) {
// console.log(error);
// });
// },
},
addCard
()
{
this
.
dialogVisible
=
true
},
groupChange
(
value
)
{
console
.
log
(
value
);
},
//弹窗界面
//clear imageStyle
clearStyle
()
{
var
firstImgStyle
=
document
.
getElementById
(
'firstImg'
)
var
secondImgStyle
=
document
.
getElementById
(
'secondImg'
)
var
thirdImgStyle
=
document
.
getElementById
(
'thirdImg'
)
var
forthImgStyle
=
document
.
getElementById
(
'forthImg'
)
firstImgStyle
.
style
.
background
=
secondImgStyle
.
style
.
background
=
thirdImgStyle
.
style
.
background
=
forthImgStyle
.
style
.
background
=
"rgb(240, 240, 240)"
},
//change imageStyle
changeStyle
(
cd
)
{
// console.log(cd)
this
.
clearStyle
()
var
imgItem
=
document
.
getElementById
(
cd
)
imgItem
.
style
.
background
=
"rgb(255, 173, 134)"
this
.
ruleForm
.
cardStyle
=
cd
this
.
$refs
.
ruleForm
.
validateField
(
'cardStyle'
)
console
.
log
(
this
.
ruleForm
)
},
//checkbox的input开关
controlSwitch
(
value
,
cd
)
{
console
.
log
(
value
)
if
(
cd
==
'disable'
)
{
this
.
inputSwitch
=
this
.
dataSwitch
=
true
this
.
ruleForm
.
month
=
''
this
.
ruleForm
.
data
=
''
}
else
if
(
cd
==
'input'
)
{
this
.
inputSwitch
=
false
this
.
dataSwitch
=
true
this
.
ruleForm
.
data
=
''
}
else
{
this
.
inputSwitch
=
true
this
.
dataSwitch
=
false
this
.
ruleForm
.
month
=
''
}
},
//提交验证
submitForm
(
formName
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
console
.
log
(
this
.
month
);
// Interface(this.ruleForm).then((res) => {
// console.log(res)
// if (res > 0) {
// this.ruleForm = {};
// this.dialogVisible = false
// this.$message({
// message: "添加成功",
// type: "success",
// });
// } else {
// this.$message({
// message: "增加失败",
// type: "error",
// });
// }
// });
// } else {
// this.$message({
// message: "请正确填写信息",
// type: "error",
// });
return
false
;
}
});
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
this
.
dialogVisible
=
false
},
}
}
</
script
>
...
...
@@ -138,14 +431,92 @@ export default {
margin
:
0
;
border
:
0
;
}
.button
{
margin-left
:
20px
;
margin-top
:
20px
;
}
.tablecontainer
{
margin-top
:
20px
;
margin-left
:
20px
;
margin-right
:
20px
;
}
/* 弹窗界面样式 */
.avatar-uploader
.el-upload
{
border
:
1px
dashed
#d9d9d9
;
border-radius
:
6px
;
cursor
:
pointer
;
position
:
relative
;
overflow
:
hidden
;
}
.avatar-uploader
.el-upload
:hover
{
border-color
:
#409eff
;
}
.avatar-uploader-icon
{
font-size
:
14px
;
color
:
#8c939d
;
width
:
40px
;
height
:
30px
;
line-height
:
30px
;
text-align
:
center
;
}
.avatar
{
width
:
40px
;
height
:
30px
;
display
:
block
;
}
.baseinformation
{
width
:
100%
;
background
:
#d3d3d3
;
height
:
60px
;
line-height
:
60px
;
margin-top
:
-40px
;
}
.titleText
{
margin-left
:
20px
;
}
.form
{
margin-top
:
20px
;
margin-left
:
40px
;
}
.explain
{
color
:
#d3d3d3
;
}
.buttonCtn
{
text-align
:
center
;
margin-left
:
-100px
;
}
.carEquCtn
{
background
:
#f0f0f0
;
}
.shopEquCtn
{
background
:
#f0f0f0
;
}
.imageList
{
display
:
flex
;
flex-direction
:
row
;
}
.imageItem
{
width
:
150px
;
height
:
60px
;
}
.imgCtn
{
background
:
rgb
(
240
,
240
,
240
);
width
:
170px
;
text-align
:
center
;
padding
:
10px
;
height
:
80px
;
margin-right
:
20px
;
}
.topline
{
display
:
flex
;
flex-direction
:
row
;
margin-left
:
20px
;
margin-top
:
20px
;
}
.button
{
margin-right
:
40px
;
}
.buttonContainer
{
margin-left
:
40px
;
}
.el-dialog__headerbtn
{
display
:
none
;
}
</
style
>
\ No newline at end of file
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