Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 9f0e4dfe
authored
Jan 13, 2022
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能样式修改
1 parent
114d0301
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
55 deletions
package-lock.json
package.json
src/components/relateStoreDialog/index.vue
src/views/addCards/index.vue
src/views/appointment/index.vue
src/views/config/addConfig.vue
src/views/config/index.vue
src/views/worryFree/index.vue
package-lock.json
View file @
9f0e4df
{
"name"
:
"s
ervices
"
,
"name"
:
"s
alepre
"
,
"version"
:
"0.1.0"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
...
...
@@ -6710,9 +6710,9 @@
}
},
"glsx-components"
:
{
"version"
:
"1.3.
0
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.
0
.tgz"
,
"integrity"
:
"sha512-
J+tCvYONoAjD2XCWCkBFuemcEPiqpMA8XKxJHG5iZxnhEqWNkROiukEeYWQLQAsFQ1e2Wcv3QgI5ZJHBaz9fn
Q=="
,
"version"
:
"1.3.
5
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-components/-/glsx-components-1.3.
5
.tgz"
,
"integrity"
:
"sha512-
4Xi6IaTqEGczZV2Z5BN7rxQKX9R5ZV33sRFMOd6l+wxRbfCvwJsvzW92AEDeVOqZsf0r/hZHu+pB0L2vsqaRG
Q=="
,
"requires"
:
{
"core-js"
:
"^3.6.5"
,
"element-ui"
:
"^2.15.6"
,
...
...
package.json
View file @
9f0e4df
...
...
@@ -13,7 +13,7 @@
"el-tree-transfer"
:
"^2.2.6"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.3.
0
"
,
"glsx-components"
:
"^1.3.
5
"
,
"lodash"
:
"^4.17.21"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
src/components/relateStoreDialog/index.vue
View file @
9f0e4df
...
...
@@ -22,7 +22,10 @@
</
template
>
</el-table-column>
<el-table-column
prop=
"merchantName"
label=
"商户名称"
align=
"center"
></el-table-column>
<el-table-column
label=
"删除"
align=
"center"
width=
"50"
>
<el-table-column
align=
"center"
width=
"100"
>
<
template
slot=
"header"
>
<el-link
:underline=
"false"
icon=
"el-icon-delete"
@
click=
"batchDelete"
>
批量删除
</el-link>
</
template
>
<
template
slot-scope=
"scope"
>
<el-button
style=
"padding: 0"
class=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
type=
"text"
></el-button>
</
template
>
...
...
@@ -87,6 +90,11 @@ export default {
this
.
getSelectingList
()
},
methods
:
{
batchDelete
()
{
console
.
log
(
'1'
)
this
.
selectedData
=
[]
this
.
recoverySelection
()
},
selectable
(
row
,
index
)
{
var
isSelect
=
row
.
hasOwnProperty
(
'beServed'
)
?
!
row
.
beServed
:
true
return
isSelect
...
...
@@ -118,11 +126,11 @@ export default {
pageSize
:
this
.
pageSize
}).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
==
'33'
)
{
if
(
res
.
code
==
'33'
)
{
this
.
$message
.
error
(
'请正确输入商户号'
)
}
this
.
selectingData
=
res
.
data
.
list
for
(
var
a
=
0
;
a
<
this
.
selectingData
.
length
;
a
++
)
{
for
(
var
a
=
0
;
a
<
this
.
selectingData
.
length
;
a
++
)
{
this
.
selectingData
[
a
].
merchantNo
=
this
.
selectingData
[
a
].
merchantId
+
''
}
this
.
total
=
res
.
data
.
total
...
...
@@ -136,7 +144,7 @@ export default {
addOrDelete
?
this
.
selectedData
.
push
(
row
)
:
(
this
.
selectedData
=
this
.
selectedData
.
filter
(
item
=>
item
.
merchantNo
!==
row
.
merchantNo
))
},
handleAll
(
selection
)
{
console
.
log
(
selection
,
'112112'
);
console
.
log
(
selection
,
'112112'
)
// this.selectedData=[]
this
.
selectingData
.
forEach
(
item
=>
{
var
isExit
=
this
.
selectedData
.
findIndex
(
subItem
=>
subItem
.
merchantNo
===
item
.
merchantNo
)
...
...
src/views/addCards/index.vue
View file @
9f0e4df
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
style=
"margin-top:20px"
>
<div
class=
"equity-wrap contain"
>
<el-button
type=
"primary"
@
click=
"add"
size=
"small"
class=
"addButtom"
>
生成
</el-button>
<div
class=
"blank"
></div>
...
...
@@ -20,7 +20,7 @@
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"
适应
类型:"
prop=
"packageCode"
>
<el-form-item
label=
"
使用
类型:"
prop=
"packageCode"
>
<el-select
v-model=
"addDialogForm.packageCode"
placeholder=
"请选择"
size=
"small"
>
<el-option
v-for=
"(item, index) in dialogTypeOptions"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
...
...
@@ -72,7 +72,7 @@ function date_format(date) {
}
const
validatorActualPrice
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
)
{
var
reg
=
/
(
^
[
1-9
]\d
*
(\.\d{1,2})?
$
)
|
(
^0
(\.\d{1,2})?
$
)
/
var
reg
=
/
^
[
1-9
]\d
*$
/
if
(
reg
.
test
(
value
))
{
if
(
value
>
200
)
{
callback
(
'请输入200万以内的价格'
)
...
...
@@ -80,7 +80,7 @@ const validatorActualPrice = (rule, value, callback) => {
callback
()
}
}
else
{
callback
(
'请输入正
确格式的价格
'
)
callback
(
'请输入正
整数
'
)
}
}
else
{
callback
(
'请输入具体价格'
)
...
...
src/views/appointment/index.vue
View file @
9f0e4df
...
...
@@ -281,7 +281,7 @@ export default {
word-break
:
break-all
;
text-align
:
center
;
}
/
deep
/
.el-dialog__footer
{
/
deep
/
.
detailDialog
.
el-dialog__footer
{
padding
:
15px
;
border-top
:
1px
solid
#e6e6e6
;
text-align
:
center
;
...
...
src/views/config/addConfig.vue
View file @
9f0e4df
<
template
>
<div
class=
"equity-wrap container"
>
<div
class=
"equity-wrap contain"
style=
"padding:
0;margin-bottom:0;
"
>
<div
class=
"equity-wrap contain"
style=
"padding:
0; margin-bottom: 0
"
>
<div
class=
"top"
>
开通配置
</div>
</div>
<div
class=
"equity-wrap contain"
style=
"padding-left:
72px;
"
>
<div
class=
"equity-wrap contain"
style=
"padding-left:
72px
"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"left"
size=
"medium"
>
<el-form-item
v-if=
"add"
label=
"商户明细"
>
<el-button
size=
"small"
@
click=
"openDialog"
>
{{
selectedTable
==
true
?
'修改商户'
:
'选择商户'
}}
</el-button>
...
...
@@ -15,16 +15,16 @@
<relateStoreDialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"searchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<el-row
slot
>
<el-form
:model=
"searchForm"
ref=
"relate"
:inline=
"true"
label-width=
"90px"
class=
"configDialog"
>
<el-form-item
size=
"small"
label=
""
>
<el-input
placeholder=
"请输入内容"
v-model=
"searchForm.selectInput"
class=
"input-with-select"
>
<el-form-item>
<el-input
placeholder=
"请输入内容"
v-model=
"searchForm.selectInput"
class=
"input-with-select"
size=
"small"
>
<el-select
v-model=
"searchForm.select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
<el-option
label=
"商户号"
value=
"2"
></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item>
<el-button
:size=
"size
"
type=
"primary"
@
click=
"handleSearchStore"
>
查询
</el-button>
<el-form-item
style=
"margin-top:-2px"
>
<el-button
size=
"small
"
type=
"primary"
@
click=
"handleSearchStore"
>
查询
</el-button>
</el-form-item>
</el-form>
</el-row>
...
...
@@ -286,7 +286,7 @@ export default {
theftObj
.
cardName
=
'card'
}
params
.
push
(
theftObj
)
console
.
log
(
params
,
'params'
);
console
.
log
(
params
,
'params'
)
}
if
(
this
.
vehicleAll
==
true
)
{
let
vehicleObj
=
{}
...
...
@@ -423,7 +423,16 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.container
{
/
deep
/
.el-pager
{
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
list-style
:
none
;
font-size
:
0
;
margin-top
:
13px
;
}
.container
{
padding-right
:
20px
;
padding-bottom
:
74px
;
}
...
...
@@ -451,11 +460,11 @@ export default {
margin-right
:
40px
;
}
}
.el-button
{
.el-button
{
width
:
88px
;
height
:
40px
;
}
>
.el-button
{
>
.el-button
{
border
:
1px
solid
#d1d1d1
;
color
:
#666
;
}
...
...
@@ -463,7 +472,7 @@ export default {
.top
{
padding-left
:
20px
;
height
:
58px
;
border-bottom
:
1px
solid
#
D8D8D
8
;
border-bottom
:
1px
solid
#
d8d8d
8
;
line-height
:
58px
;
font-size
:
16px
;
font-weight
:
600
;
...
...
@@ -492,12 +501,12 @@ export default {
margin
:
-10px
-20px
;
width
:
120px
;
}
/
deep
/
.el-form
{
.
el-form-item
:
nth-child
(
-n
+
2
)
{
.
el-form-item__label
{
/
deep
/
.el-form
{
.
el-form-item
:
nth-child
(
-n
+
2
)
{
.
el-form-item__label
{
font-size
:
14px
;
font-weight
:
600
;
color
:
#3
E3E3E
;
color
:
#3
e3e3e
;
}
}
.el-form-item
{
...
...
@@ -505,25 +514,27 @@ export default {
}
.el-form-item
:first-child
{
margin-bottom
:
20px
;
.el-button{
border
:
1px
solid
#5850
FF
;
color
:
#5850
FF
;
.el-button
{
border
:
1px
solid
#5850
ff
;
color
:
#5850
ff
;
}
}
.el-form-item
:nth-child
(
2
)
{
margin-bottom
:
0
;
}
.el-form-item
:nth-child
(
n
+
2
)
{
.el-form-item__content{
>
div
{
.el-form-item
:nth-child
(
n
+
2
)
{
.el-form-item__content
{
>
div
{
margin-left
:
20px
;
&,
.el-checkbox__label,
.el-radio__label
{
&,
.el-checkbox__label,
.el-radio__label
{
color
:
#666
;
}
}
>
label
{
>
label
{
.el-checkbox__label
{
color
:
#3
E3E3E
;
color
:
#3
e3e3e
;
}
}
}
...
...
src/views/config/index.vue
View file @
9f0e4df
<
template
>
<div
class=
"equity-wrap"
>
<GLButton
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</GLButton>
<el-button
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-right"
@
click=
"jump('add')"
>
开通配置
</el-button>
<div
class=
"equity-wrap contain merchant-select"
>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-row>
...
...
@@ -28,7 +27,8 @@
</div>
<div
class=
"equity-wrap contain"
>
<div
class=
"row-btns"
>
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
<div
style=
"float: right"
>
<el-button
size=
"small"
@
click=
"batchOperation(1)"
>
批量开通
</el-button>
<el-button
size=
"small"
@
click=
"batchOperation(2)"
>
批量关闭
</el-button>
...
...
@@ -65,6 +65,7 @@ export default {
// mixins: [searchMixin],
data
()
{
return
{
checkbox
:
false
,
date_format
,
openFlag
:
''
,
getConfigList
:
this
.
$apis
.
openconfig
.
getConfigList
,
...
...
@@ -360,7 +361,7 @@ export default {
color
:
#999
;
}
.el-form-item__content
.el-button--small
:first-child
,
.row-btns
>
div
.el-button--small
:first-child
{
border-color
:
#
5850ff
;
border-color
:
#
383747
;
color
:
#5850ff
;
}
.el-form-item__content
.el-button--small
:last-child
,
.row-btns
>
div
.el-button--small
:last-child
{
...
...
src/views/worryFree/index.vue
View file @
9f0e4df
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
style=
"margin-top:20px"
>
<div
class=
"equity-wrap contain"
>
<el-form
:inline=
"true"
label-width=
"70px"
label-position=
"right"
class=
"detailForm"
>
<el-row
style=
"align-items: center"
>
...
...
@@ -42,7 +42,7 @@
<el-alert
type=
"info"
show-icon
>
总计
{{
line
.
total
}}
张,已使用
{{
line
.
usedAmount
}}
张
</el-alert>
<GLTable
ref=
"detailTable"
:searchForm=
"detailForm"
:tableParams=
"detailParams"
:pageConf=
"detailPageConf"
:getListApi=
"getDetailList"
:beforeSearchFn=
"check"
style=
"margin-top: 10px"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<el-button
type=
"text"
@
click=
"modify(scope.scope)"
>
修改
</el-button>
<el-button
type=
"text"
@
click=
"modify(scope.scope)"
:disabled=
"scope.scope.status == 0 ? false : true"
>
修改
</el-button>
</span>
</GLTable>
</div>
...
...
@@ -98,14 +98,17 @@ function date_format(date) {
return
YY
+
MM
+
DD
+
' '
+
hh
+
mm
+
ss
}
const
validatorActualPrice
=
(
rule
,
value
,
callback
)
=>
{
if
(
value
)
{
var
reg
=
/^
[
+
]{0,1}(\d
+
)
$/
if
(
!
reg
.
test
(
value
))
{
callback
(
'请输入1-200的整数'
)
}
else
if
(
value
>
200
)
{
callback
(
'请输入1-200的数字'
)
if
(
value
)
{
var
reg
=
/^
[
1-9
]\d
*$/
if
(
reg
.
test
(
value
))
{
if
(
value
>
200
)
{
callback
(
'请输入200万以内的价格'
)
}
else
{
callback
()
}
}
else
{
callback
(
'请输入正整数'
)
}
callback
()
}
else
{
callback
(
'请输入具体价格'
)
}
...
...
@@ -405,11 +408,6 @@ export default {
})
}
})
}
else
{
this
.
$message
({
message
:
'请填写必要信息'
,
type
:
'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