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 cac1ee5e
authored
Aug 17, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益订单汇总开发
1 parent
13dbc771
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
66 deletions
src/router/routes.js
src/views/addCards/index.vue
src/views/appointment/index.vue
src/views/beforeSale/equityList.vue
src/views/beforeSale/equitySummary.vue
src/views/config/index.vue
src/router/routes.js
View file @
cac1ee5
...
...
@@ -48,6 +48,12 @@ const staticRoutes = Object.freeze([
meta
:
{}
},
{
name
:
'equitySummary'
,
path
:
'/beforeSale/equitySummary'
,
component
:
resolve
=>
require
([
`@/views/beforeSale/equitySummary.vue`
],
resolve
),
meta
:
{}
},
{
name
:
'equityList'
,
path
:
'/beforeSale/equityList'
,
component
:
resolve
=>
require
([
`@/views/beforeSale/equityList.vue`
],
resolve
),
...
...
src/views/addCards/index.vue
View file @
cac1ee5
<
template
>
<div
class=
"equity-wrap"
style=
"margin-top: 20px"
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap contain"
>
<el-button
type=
"primary"
@
click=
"add"
size=
"small"
class=
"addButtom"
>
生成
</el-button>
<div
class=
"blank"
></div>
...
...
@@ -10,7 +10,7 @@
</span>
</GLTable>
<!-- 生成弹窗 -->
<GLDialog
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<GLDialog
title=
"生成无忧卡"
mode=
"mid"
v-if=
"addDialog"
:visible
.
sync=
"addDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('detailForm')"
@
onCancel=
"cancelDetailDialog"
>
<el-form
:inline=
"true"
:model=
"addDialogForm"
:rules=
"addDialogRules"
ref=
"detailForm"
label-width=
"120px"
class=
"detailForm"
>
<div
class=
"form"
>
<el-row>
...
...
@@ -51,16 +51,12 @@
</el-row>
</div>
</el-form>
<!--
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelDetailDialog"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submitForm('detailForm')"
>
确 定
</el-button>
</span>
-->
</GLDialog>
</div>
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
function
date_format
(
date
)
{
var
date2
=
new
Date
(
date
)
var
YY
=
date2
.
getFullYear
()
+
'-'
...
...
@@ -338,4 +334,4 @@ export default {
/
deep
/
.el-pagination
{
margin-top
:
20px
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/appointment/index.vue
View file @
cac1ee5
...
...
@@ -18,7 +18,7 @@
</el-row>
</el-form>
-->
<GLCombiForm
:rowNumber=
"1"
ref=
"showSearch"
:formObj=
"appointmentForm"
:formData=
"searchFormData"
@
handleOk=
"submitForm('modifyForm')"
@
handleRest=
"seletTable('reset')"
></GLCombiForm>
<el-button
plain
style=
"float:right;margin-bottom:10px;"
size=
"small"
@
click=
"exportTable"
class=
"selectBtn"
>
导出
</el-button>
<el-button
style=
"float:right;margin-bottom:10px;"
size=
"small"
@
click=
"exportTable"
class=
"selectBtn"
>
导出
</el-button>
<GLTable
ref=
"appointmentTable"
style=
"margin-top:10px"
:searchForm=
"appointmentForm"
:tableParams=
"tableParams"
:pageConf=
"tablePageConf"
:getListApi=
"getAppointmentList"
>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!-- 批次管理详情弹窗按钮 -->
...
...
@@ -28,7 +28,7 @@
</span>
</GLTable>
<!-- 修改界面弹窗 -->
<GLDialog
:title=
"dialogTitle"
mode=
"mid"
class=
"detailDialog"
v-if=
"modifyDialog"
:visible
.
sync=
"modifyDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('modifyForm')"
@
onCancel=
"cancelDialog"
>
<GLDialog
:title=
"dialogTitle"
mode=
"mid"
class=
"detailDialog"
v-if=
"modifyDialog"
:visible
.
sync=
"modifyDialog"
:before-close=
"handleClose"
@
onOk=
"submitForm('modifyForm')"
@
onCancel=
"cancelDialog"
>
<el-form
:inline=
"true"
:model=
"modifyDialogForm"
:rules=
"modifyDialogRules"
ref=
"modifyForm"
label-width=
"120px"
class=
"detailForm"
>
<div
class=
"form"
>
<el-row>
...
...
@@ -52,7 +52,7 @@
</div>
</
template
>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
function
date_format
(
date
)
{
var
date2
=
new
Date
(
date
)
var
YY
=
date2
.
getFullYear
()
+
'-'
...
...
@@ -318,21 +318,21 @@ export default {
word-break
:
break-all
;
text-align
:
center
;
}
/
deep
/
.el-textarea__inner
{
display
:
block
;
resize
:
vertical
;
padding
:
5px
15px
;
line-height
:
1.5
;
box-sizing
:
border-box
;
width
:
100%
;
font-size
:
inherit
;
color
:
#606266
;
background-color
:
#fff
;
background-image
:
none
;
border
:
1px
solid
#dcdfe6
;
border-radius
:
4px
;
transition
:
border-color
.2s
cubic-bezier
(
.645
,
.045
,
.355
,
1
);
width
:
320px
;
height
:
80px
;
/
deep
/
.el-textarea__inner
{
display
:
block
;
resize
:
vertical
;
padding
:
5px
15px
;
line-height
:
1.5
;
box-sizing
:
border-box
;
width
:
100%
;
font-size
:
inherit
;
color
:
#606266
;
background-color
:
#fff
;
background-image
:
none
;
border
:
1px
solid
#dcdfe6
;
border-radius
:
4px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
320px
;
height
:
80px
;
}
</
style
>
\ No newline at end of file
</
style
>
src/views/beforeSale/equityList.vue
View file @
cac1ee5
...
...
@@ -8,19 +8,12 @@
</div>
<div
class=
"container"
>
<div
class=
"find_wrap"
>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData2"
></glsx-combi-form>
<glsx-combi-form
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData3"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
class=
"resetBtn"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleExport"
>
导出
</el-button>
</span>
</glsx-combi-form>
<GLCombiForm
:key=
"newKey"
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
</div>
<!-- 表格区域 开始 -->
<div
class=
"table_wrapper"
>
<el-button
style=
"float:right;margin-bottom:10px;"
:size=
"size"
@
click=
"handleExport"
>
导出
</el-button>
<GLTable
ref=
"equityRef"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
...
...
@@ -57,7 +50,7 @@
<
script
>
import
*
as
dayjs
from
'dayjs'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
//
import glsxCombiForm from '@/components/glsx-combi-form'
import
glsxDialog
from
'@/components/glsx-dialog'
import
pdfDialog
from
'./pdfDialog'
import
utils
from
'../../util/util'
...
...
@@ -66,6 +59,7 @@ export default {
data
()
{
return
{
size
:
'small'
,
newKey
:
new
Date
(),
buttonList
:
[
{
type
:
'GLButton'
,
...
...
@@ -253,9 +247,7 @@ export default {
optionId
:
'packageCode'
,
optionLabel
:
'packageName'
,
optionsName
:
'goodsStatusList'
}
],
searchFormData2
:
[
},
{
label
:
'提单成功时间'
,
name
:
'successDate'
,
...
...
@@ -269,9 +261,7 @@ export default {
name
:
'effectiveDate'
,
type
:
'datePicker'
,
isClear
:
true
}
],
searchFormData3
:
[
},
{
label
:
'总部'
,
name
:
'merchantId'
,
...
...
@@ -282,16 +272,16 @@ export default {
optionsName
:
'merchantList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'2'
])
this
.
searchFormData
3
[
idx
].
isHide
=
false
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'2'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'2'
]]
=
''
var
tempIdx
=
''
for
(
var
i
=
3
;
i
<=
4
;
i
++
)
{
tempIdx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
3
[
tempIdx
].
isHide
=
true
tempIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
i
+
''
]]
=
''
}
this
.
getMerchantList
(
val
,
2
,
this
.
searchFormData
3
[
idx
].
name
,
this
.
searchFormData3
[
idx
].
optionsName
)
this
.
getMerchantList
(
val
,
2
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
...
...
@@ -304,13 +294,13 @@ export default {
optionsName
:
'dqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'3'
])
this
.
searchFormData
3
[
idx
].
isHide
=
false
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'3'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'3'
]]
=
''
var
tempIdx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
3
[
tempIdx
].
isHide
=
true
var
tempIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
'4'
]]
=
''
this
.
getMerchantList
(
val
,
3
,
this
.
searchFormData
3
[
idx
].
name
,
this
.
searchFormData3
[
idx
].
optionsName
)
this
.
getMerchantList
(
val
,
3
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
...
...
@@ -323,10 +313,10 @@ export default {
optionsName
:
'pqList'
,
isHide
:
true
,
changeAttr
:
(
val
,
targetItem
)
=>
{
var
idx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
3
[
idx
].
isHide
=
false
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
'4'
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchForm
[
this
.
levelToShow
[
'4'
]]
=
''
this
.
getMerchantList
(
val
,
4
,
this
.
searchFormData
3
[
idx
].
name
,
this
.
searchFormData3
[
idx
].
optionsName
)
this
.
getMerchantList
(
val
,
4
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
},
{
...
...
@@ -340,6 +330,22 @@ export default {
isHide
:
true
}
],
searchFormData2
:
[
{
label
:
'提单成功时间'
,
name
:
'successDate'
,
type
:
'datePicker'
,
labelWidth
:
95
,
isClear
:
true
,
pickerOptions
:
'beforeRangePickerOptions'
},
{
label
:
'生效时间'
,
name
:
'effectiveDate'
,
type
:
'datePicker'
,
isClear
:
true
}
],
// 表格
getListApi
:
this
.
$apis
.
beforeSale
.
getListApi
,
tableParams
:
{
...
...
@@ -650,7 +656,7 @@ export default {
},
components
:
{
glsxCombiForm
,
//
glsxCombiForm,
// glsxDialog,
pdfDialog
},
...
...
@@ -677,10 +683,10 @@ export default {
console
.
log
(
res
)
this
.
userInfo
=
res
if
(
res
.
merchantAccountLevel
!=
4
)
{
var
idx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
this
.
userInfo
.
admin
?
res
.
merchantAccountLevel
:
res
.
merchantAccountLevel
+
1
])
this
.
searchFormData
3
[
idx
].
isHide
=
false
this
.
searchFormData
3
[
idx
].
labelWidth
=
95
this
.
getMerchantList
(
''
,
''
,
this
.
searchFormData
3
[
idx
].
name
,
this
.
searchFormData3
[
idx
].
optionsName
)
var
idx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
this
.
userInfo
.
admin
?
res
.
merchantAccountLevel
:
res
.
merchantAccountLevel
+
1
])
this
.
searchFormData
[
idx
].
isHide
=
false
this
.
searchFormData
[
idx
].
labelWidth
=
95
this
.
getMerchantList
(
''
,
''
,
this
.
searchFormData
[
idx
].
name
,
this
.
searchFormData
[
idx
].
optionsName
)
}
})
},
...
...
@@ -698,7 +704,7 @@ export default {
}
this
.
$apis
.
beforeSale
.
getMerchantApi
(
params
).
then
(
res
=>
{
this
.
baseData
[
listName
]
=
res
this
.
getOptionsList
(
'searchFormData
3
'
,
false
,
attrName
)
this
.
getOptionsList
(
'searchFormData'
,
false
,
attrName
)
})
},
getSelectInputParams
()
{
...
...
@@ -768,6 +774,7 @@ export default {
}
})
}
this
.
newKey
=
new
Date
()
},
secondConfirm
(
title
,
txt
,
apiModule
,
apiName
,
apiParams
)
{
...
...
@@ -997,8 +1004,8 @@ export default {
var
addNum
=
this
.
userInfo
.
admin
?
1
:
2
if
(
this
.
userInfo
.
merchantAccountLevel
!=
4
)
{
for
(
var
i
=
this
.
userInfo
.
merchantAccountLevel
+
addNum
;
i
<=
4
;
i
++
)
{
tempIdx
=
this
.
searchFormData
3
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
3
[
tempIdx
].
isHide
=
true
tempIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
name
==
this
.
levelToShow
[
i
+
''
])
this
.
searchFormData
[
tempIdx
].
isHide
=
true
this
.
searchForm
[
this
.
levelToShow
[
i
+
''
]]
=
''
}
}
...
...
src/views/beforeSale/equitySummary.vue
0 → 100644
View file @
cac1ee5
This diff is collapsed.
Click to expand it.
src/views/config/index.vue
View file @
cac1ee5
...
...
@@ -8,9 +8,9 @@
<!--
<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;"
class=
"primary_plain_btn"
>
<el-button
size=
"small"
plain
@
click=
"exportTable"
>
导出
</el-button>
<el-button
size=
"small"
plain
@
click=
"batchOperation(1)"
>
批量开通
</el-button>
<el-button
size=
"small"
@
click=
"batchOperation(2)"
>
批量关闭
</el-button>
<el-button
size=
"small"
@
click=
"exportTable"
>
导出
</el-button>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
...
...
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